~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to daemon/configure

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-19 21:46:37 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120519214637-la8rbrford5kj6m3
Tags: 1.1.0-1
* New upstream release 
  - Fixes "FTBFS with libccrtp-dev/2.0.2 from experimental" (Closes: #663282)
* NEW Maintainer: Debian VoIP Team - Thanks Francois for your work.
  - (Closes: #665789: O: sflphone -- SIP and IAX2 compatible VoIP phone)
* Added Build-Depends: libdbus-c++-bin
* Add gcc47-fixes.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# From configure.ac Revision.
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated by GNU Autoconf 2.68 for sflphone 1.1.0.
 
5
#
 
6
# Report bugs to <sflphoneteam@savoirfairelinux.com>.
 
7
#
 
8
#
 
9
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
10
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
11
# Foundation, Inc.
 
12
#
 
13
#
 
14
# This configure script is free software; the Free Software Foundation
 
15
# gives unlimited permission to copy, distribute and modify it.
 
16
#
 
17
# Copyright (c) Savoir-Faire Linux 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
18
## -------------------- ##
 
19
## M4sh Initialization. ##
 
20
## -------------------- ##
 
21
 
 
22
# Be more Bourne compatible
 
23
DUALCASE=1; export DUALCASE # for MKS sh
 
24
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
25
  emulate sh
 
26
  NULLCMD=:
 
27
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
28
  # is contrary to our usage.  Disable this feature.
 
29
  alias -g '${1+"$@"}'='"$@"'
 
30
  setopt NO_GLOB_SUBST
 
31
else
 
32
  case `(set -o) 2>/dev/null` in #(
 
33
  *posix*) :
 
34
    set -o posix ;; #(
 
35
  *) :
 
36
     ;;
 
37
esac
 
38
fi
 
39
 
 
40
 
 
41
as_nl='
 
42
'
 
43
export as_nl
 
44
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
45
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
48
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
49
# but without wasting forks for bash or zsh.
 
50
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
51
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='print -r --'
 
53
  as_echo_n='print -rn --'
 
54
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
55
  as_echo='printf %s\n'
 
56
  as_echo_n='printf %s'
 
57
else
 
58
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
59
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
60
    as_echo_n='/usr/ucb/echo -n'
 
61
  else
 
62
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
63
    as_echo_n_body='eval
 
64
      arg=$1;
 
65
      case $arg in #(
 
66
      *"$as_nl"*)
 
67
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
68
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
69
      esac;
 
70
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
71
    '
 
72
    export as_echo_n_body
 
73
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
74
  fi
 
75
  export as_echo_body
 
76
  as_echo='sh -c $as_echo_body as_echo'
 
77
fi
 
78
 
 
79
# The user is always right.
 
80
if test "${PATH_SEPARATOR+set}" != set; then
 
81
  PATH_SEPARATOR=:
 
82
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
83
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
84
      PATH_SEPARATOR=';'
 
85
  }
 
86
fi
 
87
 
 
88
 
 
89
# IFS
 
90
# We need space, tab and new line, in precisely that order.  Quoting is
 
91
# there to prevent editors from complaining about space-tab.
 
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
93
# splitting by setting IFS to empty value.)
 
94
IFS=" ""        $as_nl"
 
95
 
 
96
# Find who we are.  Look in the path if we contain no directory separator.
 
97
as_myself=
 
98
case $0 in #((
 
99
  *[\\/]* ) as_myself=$0 ;;
 
100
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
101
for as_dir in $PATH
 
102
do
 
103
  IFS=$as_save_IFS
 
104
  test -z "$as_dir" && as_dir=.
 
105
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
106
  done
 
107
IFS=$as_save_IFS
 
108
 
 
109
     ;;
 
110
esac
 
111
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
112
# in which case we are not to be found in the path.
 
113
if test "x$as_myself" = x; then
 
114
  as_myself=$0
 
115
fi
 
116
if test ! -f "$as_myself"; then
 
117
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
118
  exit 1
 
119
fi
 
120
 
 
121
# Unset variables that we do not need and which cause bugs (e.g. in
 
122
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
123
# suppresses any "Segmentation fault" message there.  '((' could
 
124
# trigger a bug in pdksh 5.2.14.
 
125
for as_var in BASH_ENV ENV MAIL MAILPATH
 
126
do eval test x\${$as_var+set} = xset \
 
127
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
128
done
 
129
PS1='$ '
 
130
PS2='> '
 
131
PS4='+ '
 
132
 
 
133
# NLS nuisances.
 
134
LC_ALL=C
 
135
export LC_ALL
 
136
LANGUAGE=C
 
137
export LANGUAGE
 
138
 
 
139
# CDPATH.
 
140
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
141
 
 
142
if test "x$CONFIG_SHELL" = x; then
 
143
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
144
  emulate sh
 
145
  NULLCMD=:
 
146
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
147
  # is contrary to our usage.  Disable this feature.
 
148
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
149
  setopt NO_GLOB_SUBST
 
150
else
 
151
  case \`(set -o) 2>/dev/null\` in #(
 
152
  *posix*) :
 
153
    set -o posix ;; #(
 
154
  *) :
 
155
     ;;
 
156
esac
 
157
fi
 
158
"
 
159
  as_required="as_fn_return () { (exit \$1); }
 
160
as_fn_success () { as_fn_return 0; }
 
161
as_fn_failure () { as_fn_return 1; }
 
162
as_fn_ret_success () { return 0; }
 
163
as_fn_ret_failure () { return 1; }
 
164
 
 
165
exitcode=0
 
166
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
167
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
168
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
169
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
170
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
171
 
 
172
else
 
173
  exitcode=1; echo positional parameters were not saved.
 
174
fi
 
175
test x\$exitcode = x0 || exit 1"
 
176
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
177
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
178
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
179
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
180
 
 
181
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
182
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
183
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
184
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
185
    PATH=/empty FPATH=/empty; export PATH FPATH
 
186
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
187
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
188
test \$(( 1 + 1 )) = 2 || exit 1"
 
189
  if (eval "$as_required") 2>/dev/null; then :
 
190
  as_have_required=yes
 
191
else
 
192
  as_have_required=no
 
193
fi
 
194
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
195
 
 
196
else
 
197
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
198
as_found=false
 
199
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
200
do
 
201
  IFS=$as_save_IFS
 
202
  test -z "$as_dir" && as_dir=.
 
203
  as_found=:
 
204
  case $as_dir in #(
 
205
         /*)
 
206
           for as_base in sh bash ksh sh5; do
 
207
             # Try only shells that exist, to save several forks.
 
208
             as_shell=$as_dir/$as_base
 
209
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
210
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
211
  CONFIG_SHELL=$as_shell as_have_required=yes
 
212
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
213
  break 2
 
214
fi
 
215
fi
 
216
           done;;
 
217
       esac
 
218
  as_found=false
 
219
done
 
220
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
221
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
222
  CONFIG_SHELL=$SHELL as_have_required=yes
 
223
fi; }
 
224
IFS=$as_save_IFS
 
225
 
 
226
 
 
227
      if test "x$CONFIG_SHELL" != x; then :
 
228
  # We cannot yet assume a decent shell, so we have to provide a
 
229
        # neutralization value for shells without unset; and this also
 
230
        # works around shells that cannot unset nonexistent variables.
 
231
        # Preserve -v and -x to the replacement shell.
 
232
        BASH_ENV=/dev/null
 
233
        ENV=/dev/null
 
234
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
235
        export CONFIG_SHELL
 
236
        case $- in # ((((
 
237
          *v*x* | *x*v* ) as_opts=-vx ;;
 
238
          *v* ) as_opts=-v ;;
 
239
          *x* ) as_opts=-x ;;
 
240
          * ) as_opts= ;;
 
241
        esac
 
242
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
243
fi
 
244
 
 
245
    if test x$as_have_required = xno; then :
 
246
  $as_echo "$0: This script requires a shell more modern than all"
 
247
  $as_echo "$0: the shells that I found on your system."
 
248
  if test x${ZSH_VERSION+set} = xset ; then
 
249
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
250
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
251
  else
 
252
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
253
$0: sflphoneteam@savoirfairelinux.com about your system,
 
254
$0: including any error possibly output before this
 
255
$0: message. Then install a modern shell, or manually run
 
256
$0: the script under such a shell if you do have one."
 
257
  fi
 
258
  exit 1
 
259
fi
 
260
fi
 
261
fi
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
export SHELL
 
264
# Unset more variables known to interfere with behavior of common tools.
 
265
CLICOLOR_FORCE= GREP_OPTIONS=
 
266
unset CLICOLOR_FORCE GREP_OPTIONS
 
267
 
 
268
## --------------------- ##
 
269
## M4sh Shell Functions. ##
 
270
## --------------------- ##
 
271
# as_fn_unset VAR
 
272
# ---------------
 
273
# Portably unset VAR.
 
274
as_fn_unset ()
 
275
{
 
276
  { eval $1=; unset $1;}
 
277
}
 
278
as_unset=as_fn_unset
 
279
 
 
280
# as_fn_set_status STATUS
 
281
# -----------------------
 
282
# Set $? to STATUS, without forking.
 
283
as_fn_set_status ()
 
284
{
 
285
  return $1
 
286
} # as_fn_set_status
 
287
 
 
288
# as_fn_exit STATUS
 
289
# -----------------
 
290
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
291
as_fn_exit ()
 
292
{
 
293
  set +e
 
294
  as_fn_set_status $1
 
295
  exit $1
 
296
} # as_fn_exit
 
297
 
 
298
# as_fn_mkdir_p
 
299
# -------------
 
300
# Create "$as_dir" as a directory, including parents if necessary.
 
301
as_fn_mkdir_p ()
 
302
{
 
303
 
 
304
  case $as_dir in #(
 
305
  -*) as_dir=./$as_dir;;
 
306
  esac
 
307
  test -d "$as_dir" || eval $as_mkdir_p || {
 
308
    as_dirs=
 
309
    while :; do
 
310
      case $as_dir in #(
 
311
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
312
      *) as_qdir=$as_dir;;
 
313
      esac
 
314
      as_dirs="'$as_qdir' $as_dirs"
 
315
      as_dir=`$as_dirname -- "$as_dir" ||
 
316
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
317
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
318
         X"$as_dir" : 'X\(//\)$' \| \
 
319
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
320
$as_echo X"$as_dir" |
 
321
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
322
            s//\1/
 
323
            q
 
324
          }
 
325
          /^X\(\/\/\)[^/].*/{
 
326
            s//\1/
 
327
            q
 
328
          }
 
329
          /^X\(\/\/\)$/{
 
330
            s//\1/
 
331
            q
 
332
          }
 
333
          /^X\(\/\).*/{
 
334
            s//\1/
 
335
            q
 
336
          }
 
337
          s/.*/./; q'`
 
338
      test -d "$as_dir" && break
 
339
    done
 
340
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
341
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
342
 
 
343
 
 
344
} # as_fn_mkdir_p
 
345
# as_fn_append VAR VALUE
 
346
# ----------------------
 
347
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
348
# advantage of any shell optimizations that allow amortized linear growth over
 
349
# repeated appends, instead of the typical quadratic growth present in naive
 
350
# implementations.
 
351
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
352
  eval 'as_fn_append ()
 
353
  {
 
354
    eval $1+=\$2
 
355
  }'
 
356
else
 
357
  as_fn_append ()
 
358
  {
 
359
    eval $1=\$$1\$2
 
360
  }
 
361
fi # as_fn_append
 
362
 
 
363
# as_fn_arith ARG...
 
364
# ------------------
 
365
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
366
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
367
# must be portable across $(()) and expr.
 
368
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
369
  eval 'as_fn_arith ()
 
370
  {
 
371
    as_val=$(( $* ))
 
372
  }'
 
373
else
 
374
  as_fn_arith ()
 
375
  {
 
376
    as_val=`expr "$@" || test $? -eq 1`
 
377
  }
 
378
fi # as_fn_arith
 
379
 
 
380
 
 
381
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
382
# ----------------------------------------
 
383
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
384
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
385
# script with STATUS, using 1 if that was 0.
 
386
as_fn_error ()
 
387
{
 
388
  as_status=$1; test $as_status -eq 0 && as_status=1
 
389
  if test "$4"; then
 
390
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
391
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
392
  fi
 
393
  $as_echo "$as_me: error: $2" >&2
 
394
  as_fn_exit $as_status
 
395
} # as_fn_error
 
396
 
 
397
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
398
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
399
  as_expr=expr
 
400
else
 
401
  as_expr=false
 
402
fi
 
403
 
 
404
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
405
  as_basename=basename
 
406
else
 
407
  as_basename=false
 
408
fi
 
409
 
 
410
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
411
  as_dirname=dirname
 
412
else
 
413
  as_dirname=false
 
414
fi
 
415
 
 
416
as_me=`$as_basename -- "$0" ||
 
417
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
418
         X"$0" : 'X\(//\)$' \| \
 
419
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
420
$as_echo X/"$0" |
 
421
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
422
            s//\1/
 
423
            q
 
424
          }
 
425
          /^X\/\(\/\/\)$/{
 
426
            s//\1/
 
427
            q
 
428
          }
 
429
          /^X\/\(\/\).*/{
 
430
            s//\1/
 
431
            q
 
432
          }
 
433
          s/.*/./; q'`
 
434
 
 
435
# Avoid depending upon Character Ranges.
 
436
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
437
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
438
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
439
as_cr_digits='0123456789'
 
440
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
441
 
 
442
 
 
443
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
444
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
445
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
446
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
447
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
448
  sed -n '
 
449
    p
 
450
    /[$]LINENO/=
 
451
  ' <$as_myself |
 
452
    sed '
 
453
      s/[$]LINENO.*/&-/
 
454
      t lineno
 
455
      b
 
456
      :lineno
 
457
      N
 
458
      :loop
 
459
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
460
      t loop
 
461
      s/-\n.*//
 
462
    ' >$as_me.lineno &&
 
463
  chmod +x "$as_me.lineno" ||
 
464
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
465
 
 
466
  # Don't try to exec as it changes $[0], causing all sort of problems
 
467
  # (the dirname of $[0] is not the place where we might find the
 
468
  # original and so on.  Autoconf is especially sensitive to this).
 
469
  . "./$as_me.lineno"
 
470
  # Exit status is that of the last command.
 
471
  exit
 
472
}
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in #(((((
 
476
-n*)
 
477
  case `echo 'xy\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  xy)  ECHO_C='\c';;
 
480
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
481
       ECHO_T=' ';;
 
482
  esac;;
 
483
*)
 
484
  ECHO_N='-n';;
 
485
esac
 
486
 
 
487
rm -f conf$$ conf$$.exe conf$$.file
 
488
if test -d conf$$.dir; then
 
489
  rm -f conf$$.dir/conf$$.file
 
490
else
 
491
  rm -f conf$$.dir
 
492
  mkdir conf$$.dir 2>/dev/null
 
493
fi
 
494
if (echo >conf$$.file) 2>/dev/null; then
 
495
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
496
    as_ln_s='ln -s'
 
497
    # ... but there are two gotchas:
 
498
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
499
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
500
    # In both cases, we have to default to `cp -p'.
 
501
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
502
      as_ln_s='cp -p'
 
503
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
504
    as_ln_s=ln
 
505
  else
 
506
    as_ln_s='cp -p'
 
507
  fi
 
508
else
 
509
  as_ln_s='cp -p'
 
510
fi
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
 
513
 
 
514
if mkdir -p . 2>/dev/null; then
 
515
  as_mkdir_p='mkdir -p "$as_dir"'
 
516
else
 
517
  test -d ./-p && rmdir ./-p
 
518
  as_mkdir_p=false
 
519
fi
 
520
 
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in #(
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
 
543
 
 
544
# Sed expression to map a string onto a valid CPP name.
 
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
# Sed expression to map a string onto a valid variable name.
 
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
SHELL=${CONFIG_SHELL-/bin/sh}
 
551
 
 
552
 
 
553
test -n "$DJDIR" || exec 7<&0 </dev/null
 
554
exec 6>&1
 
555
 
 
556
# Name of the host.
 
557
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
558
# so uname gets run too.
 
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
560
 
 
561
#
 
562
# Initializations.
 
563
#
 
564
ac_default_prefix=/usr/local
 
565
ac_clean_files=
 
566
ac_config_libobj_dir=.
 
567
LIBOBJS=
 
568
cross_compiling=no
 
569
subdirs=
 
570
MFLAGS=
 
571
MAKEFLAGS=
 
572
 
 
573
# Identity of this package.
 
574
PACKAGE_NAME='sflphone'
 
575
PACKAGE_TARNAME='sflphone'
 
576
PACKAGE_VERSION='1.1.0'
 
577
PACKAGE_STRING='sflphone 1.1.0'
 
578
PACKAGE_BUGREPORT='sflphoneteam@savoirfairelinux.com'
 
579
PACKAGE_URL=''
 
580
 
 
581
# Factoring default headers for most tests.
 
582
ac_includes_default="\
 
583
#include <stdio.h>
 
584
#ifdef HAVE_SYS_TYPES_H
 
585
# include <sys/types.h>
 
586
#endif
 
587
#ifdef HAVE_SYS_STAT_H
 
588
# include <sys/stat.h>
 
589
#endif
 
590
#ifdef STDC_HEADERS
 
591
# include <stdlib.h>
 
592
# include <stddef.h>
 
593
#else
 
594
# ifdef HAVE_STDLIB_H
 
595
#  include <stdlib.h>
 
596
# endif
 
597
#endif
 
598
#ifdef HAVE_STRING_H
 
599
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
600
#  include <memory.h>
 
601
# endif
 
602
# include <string.h>
 
603
#endif
 
604
#ifdef HAVE_STRINGS_H
 
605
# include <strings.h>
 
606
#endif
 
607
#ifdef HAVE_INTTYPES_H
 
608
# include <inttypes.h>
 
609
#endif
 
610
#ifdef HAVE_STDINT_H
 
611
# include <stdint.h>
 
612
#endif
 
613
#ifdef HAVE_UNISTD_H
 
614
# include <unistd.h>
 
615
#endif"
 
616
 
 
617
ac_header_list=
 
618
enable_option_checking=no
 
619
ac_subst_vars='subdirs
 
620
am__EXEEXT_FALSE
 
621
am__EXEEXT_TRUE
 
622
LTLIBOBJS
 
623
ENABLE_DOXYGEN_FALSE
 
624
ENABLE_DOXYGEN_TRUE
 
625
DOT
 
626
DOXYGEN
 
627
USE_NETWORKMANAGER_FALSE
 
628
USE_NETWORKMANAGER_TRUE
 
629
USE_IAX_FALSE
 
630
USE_IAX_TRUE
 
631
BUILD_SPEEX_FALSE
 
632
BUILD_SPEEX_TRUE
 
633
BUILD_GSM_FALSE
 
634
BUILD_GSM_TRUE
 
635
CPPUNIT_LIBS
 
636
CPPUNIT_CFLAGS
 
637
BUILD_TEST_FALSE
 
638
BUILD_TEST_TRUE
 
639
PCRE_CFLAGS
 
640
PCRE_LIBS
 
641
PTHREAD_CFLAGS
 
642
PTHREAD_LIBS
 
643
PTHREAD_CC
 
644
ax_pthread_config
 
645
EXPAT_VERSION
 
646
EXPAT_LIBS
 
647
EXPAT_CFLAGS
 
648
DBUSCPP_LIBS
 
649
DBUSCPP_CFLAGS
 
650
ZRTPCPP_LIBS
 
651
ZRTPCPP_CFLAGS
 
652
libssl_LIBS
 
653
libssl_CFLAGS
 
654
CCRTP_LIBS
 
655
CCRTP_CFLAGS
 
656
CCGNU2_LIBS
 
657
CCGNU2_CFLAGS
 
658
SAMPLERATE_LIBS
 
659
SAMPLERATE_CFLAGS
 
660
PULSEAUDIO_LIBS
 
661
PULSEAUDIO_CFLAGS
 
662
ALSA_LIBS
 
663
ALSA_CFLAGS
 
664
LIBCRYPTO_LIBS
 
665
LIBCRYPTO_CFLAGS
 
666
YAML_LIBS
 
667
UUID_LIBS
 
668
UUID_CFLAGS
 
669
PKG_CONFIG_LIBDIR
 
670
PKG_CONFIG_PATH
 
671
PKG_CONFIG
 
672
LIBOBJS
 
673
ALLOCA
 
674
CXXCPP
 
675
OTOOL64
 
676
OTOOL
 
677
LIPO
 
678
NMEDIT
 
679
DSYMUTIL
 
680
MANIFEST_TOOL
 
681
RANLIB
 
682
ac_ct_AR
 
683
AR
 
684
DLLTOOL
 
685
OBJDUMP
 
686
NM
 
687
ac_ct_DUMPBIN
 
688
DUMPBIN
 
689
LD
 
690
FGREP
 
691
EGREP
 
692
GREP
 
693
SED
 
694
host_os
 
695
host_vendor
 
696
host_cpu
 
697
host
 
698
build_os
 
699
build_vendor
 
700
build_cpu
 
701
build
 
702
LIBTOOL
 
703
LN_S
 
704
CPP
 
705
am__fastdepCXX_FALSE
 
706
am__fastdepCXX_TRUE
 
707
CXXDEPMODE
 
708
ac_ct_CXX
 
709
CXXFLAGS
 
710
CXX
 
711
am__fastdepCC_FALSE
 
712
am__fastdepCC_TRUE
 
713
CCDEPMODE
 
714
am__nodep
 
715
AMDEPBACKSLASH
 
716
AMDEP_FALSE
 
717
AMDEP_TRUE
 
718
am__quote
 
719
am__include
 
720
DEPDIR
 
721
OBJEXT
 
722
EXEEXT
 
723
ac_ct_CC
 
724
CPPFLAGS
 
725
LDFLAGS
 
726
CFLAGS
 
727
CC
 
728
AM_BACKSLASH
 
729
AM_DEFAULT_VERBOSITY
 
730
AM_DEFAULT_V
 
731
AM_V
 
732
am__untar
 
733
am__tar
 
734
AMTAR
 
735
am__leading_dot
 
736
SET_MAKE
 
737
AWK
 
738
mkdir_p
 
739
MKDIR_P
 
740
INSTALL_STRIP_PROGRAM
 
741
STRIP
 
742
install_sh
 
743
MAKEINFO
 
744
AUTOHEADER
 
745
AUTOMAKE
 
746
AUTOCONF
 
747
ACLOCAL
 
748
VERSION
 
749
PACKAGE
 
750
CYGPATH_W
 
751
am__isrc
 
752
INSTALL_DATA
 
753
INSTALL_SCRIPT
 
754
INSTALL_PROGRAM
 
755
target_alias
 
756
host_alias
 
757
build_alias
 
758
LIBS
 
759
ECHO_T
 
760
ECHO_N
 
761
ECHO_C
 
762
DEFS
 
763
mandir
 
764
localedir
 
765
libdir
 
766
psdir
 
767
pdfdir
 
768
dvidir
 
769
htmldir
 
770
infodir
 
771
docdir
 
772
oldincludedir
 
773
includedir
 
774
localstatedir
 
775
sharedstatedir
 
776
sysconfdir
 
777
datadir
 
778
datarootdir
 
779
libexecdir
 
780
sbindir
 
781
bindir
 
782
program_transform_name
 
783
prefix
 
784
exec_prefix
 
785
PACKAGE_URL
 
786
PACKAGE_BUGREPORT
 
787
PACKAGE_STRING
 
788
PACKAGE_VERSION
 
789
PACKAGE_TARNAME
 
790
PACKAGE_NAME
 
791
PATH_SEPARATOR
 
792
SHELL'
 
793
ac_subst_files=''
 
794
ac_user_opts='
 
795
enable_option_checking
 
796
enable_silent_rules
 
797
enable_dependency_tracking
 
798
enable_shared
 
799
enable_static
 
800
with_pic
 
801
enable_fast_install
 
802
with_gnu_ld
 
803
with_sysroot
 
804
enable_libtool_lock
 
805
with_expat
 
806
with_expat_inc
 
807
with_expat_lib
 
808
with_pcre
 
809
with_gsm
 
810
with_speex
 
811
with_iax2
 
812
with_networkmanager
 
813
enable_doxygen
 
814
enable_dot
 
815
'
 
816
      ac_precious_vars='build_alias
 
817
host_alias
 
818
target_alias
 
819
CC
 
820
CFLAGS
 
821
LDFLAGS
 
822
LIBS
 
823
CPPFLAGS
 
824
CXX
 
825
CXXFLAGS
 
826
CCC
 
827
CPP
 
828
CXXCPP
 
829
PKG_CONFIG
 
830
PKG_CONFIG_PATH
 
831
PKG_CONFIG_LIBDIR
 
832
UUID_CFLAGS
 
833
UUID_LIBS
 
834
LIBCRYPTO_CFLAGS
 
835
LIBCRYPTO_LIBS
 
836
ALSA_CFLAGS
 
837
ALSA_LIBS
 
838
PULSEAUDIO_CFLAGS
 
839
PULSEAUDIO_LIBS
 
840
SAMPLERATE_CFLAGS
 
841
SAMPLERATE_LIBS
 
842
CCGNU2_CFLAGS
 
843
CCGNU2_LIBS
 
844
CCRTP_CFLAGS
 
845
CCRTP_LIBS
 
846
libssl_CFLAGS
 
847
libssl_LIBS
 
848
ZRTPCPP_CFLAGS
 
849
ZRTPCPP_LIBS
 
850
DBUSCPP_CFLAGS
 
851
DBUSCPP_LIBS
 
852
CPPUNIT_CFLAGS
 
853
CPPUNIT_LIBS'
 
854
ac_subdirs_all='libs/pjproject'
 
855
 
 
856
# Initialize some variables set by options.
 
857
ac_init_help=
 
858
ac_init_version=false
 
859
ac_unrecognized_opts=
 
860
ac_unrecognized_sep=
 
861
# The variables have the same names as the options, with
 
862
# dashes changed to underlines.
 
863
cache_file=/dev/null
 
864
exec_prefix=NONE
 
865
no_create=
 
866
no_recursion=
 
867
prefix=NONE
 
868
program_prefix=NONE
 
869
program_suffix=NONE
 
870
program_transform_name=s,x,x,
 
871
silent=
 
872
site=
 
873
srcdir=
 
874
verbose=
 
875
x_includes=NONE
 
876
x_libraries=NONE
 
877
 
 
878
# Installation directory options.
 
879
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
880
# and all the variables that are supposed to be based on exec_prefix
 
881
# by default will actually change.
 
882
# Use braces instead of parens because sh, perl, etc. also accept them.
 
883
# (The list follows the same order as the GNU Coding Standards.)
 
884
bindir='${exec_prefix}/bin'
 
885
sbindir='${exec_prefix}/sbin'
 
886
libexecdir='${exec_prefix}/libexec'
 
887
datarootdir='${prefix}/share'
 
888
datadir='${datarootdir}'
 
889
sysconfdir='${prefix}/etc'
 
890
sharedstatedir='${prefix}/com'
 
891
localstatedir='${prefix}/var'
 
892
includedir='${prefix}/include'
 
893
oldincludedir='/usr/include'
 
894
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
895
infodir='${datarootdir}/info'
 
896
htmldir='${docdir}'
 
897
dvidir='${docdir}'
 
898
pdfdir='${docdir}'
 
899
psdir='${docdir}'
 
900
libdir='${exec_prefix}/lib'
 
901
localedir='${datarootdir}/locale'
 
902
mandir='${datarootdir}/man'
 
903
 
 
904
ac_prev=
 
905
ac_dashdash=
 
906
for ac_option
 
907
do
 
908
  # If the previous option needs an argument, assign it.
 
909
  if test -n "$ac_prev"; then
 
910
    eval $ac_prev=\$ac_option
 
911
    ac_prev=
 
912
    continue
 
913
  fi
 
914
 
 
915
  case $ac_option in
 
916
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
917
  *=)   ac_optarg= ;;
 
918
  *)    ac_optarg=yes ;;
 
919
  esac
 
920
 
 
921
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
922
 
 
923
  case $ac_dashdash$ac_option in
 
924
  --)
 
925
    ac_dashdash=yes ;;
 
926
 
 
927
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
928
    ac_prev=bindir ;;
 
929
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
930
    bindir=$ac_optarg ;;
 
931
 
 
932
  -build | --build | --buil | --bui | --bu)
 
933
    ac_prev=build_alias ;;
 
934
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
935
    build_alias=$ac_optarg ;;
 
936
 
 
937
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
938
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
939
    ac_prev=cache_file ;;
 
940
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
941
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
942
    cache_file=$ac_optarg ;;
 
943
 
 
944
  --config-cache | -C)
 
945
    cache_file=config.cache ;;
 
946
 
 
947
  -datadir | --datadir | --datadi | --datad)
 
948
    ac_prev=datadir ;;
 
949
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
950
    datadir=$ac_optarg ;;
 
951
 
 
952
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
953
  | --dataroo | --dataro | --datar)
 
954
    ac_prev=datarootdir ;;
 
955
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
956
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
957
    datarootdir=$ac_optarg ;;
 
958
 
 
959
  -disable-* | --disable-*)
 
960
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
961
    # Reject names that are not valid shell variable names.
 
962
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
963
      as_fn_error $? "invalid feature name: $ac_useropt"
 
964
    ac_useropt_orig=$ac_useropt
 
965
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
966
    case $ac_user_opts in
 
967
      *"
 
968
"enable_$ac_useropt"
 
969
"*) ;;
 
970
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
971
         ac_unrecognized_sep=', ';;
 
972
    esac
 
973
    eval enable_$ac_useropt=no ;;
 
974
 
 
975
  -docdir | --docdir | --docdi | --doc | --do)
 
976
    ac_prev=docdir ;;
 
977
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
978
    docdir=$ac_optarg ;;
 
979
 
 
980
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
981
    ac_prev=dvidir ;;
 
982
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
983
    dvidir=$ac_optarg ;;
 
984
 
 
985
  -enable-* | --enable-*)
 
986
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
987
    # Reject names that are not valid shell variable names.
 
988
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
989
      as_fn_error $? "invalid feature name: $ac_useropt"
 
990
    ac_useropt_orig=$ac_useropt
 
991
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
992
    case $ac_user_opts in
 
993
      *"
 
994
"enable_$ac_useropt"
 
995
"*) ;;
 
996
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
997
         ac_unrecognized_sep=', ';;
 
998
    esac
 
999
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1000
 
 
1001
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1002
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1003
  | --exec | --exe | --ex)
 
1004
    ac_prev=exec_prefix ;;
 
1005
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1006
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1007
  | --exec=* | --exe=* | --ex=*)
 
1008
    exec_prefix=$ac_optarg ;;
 
1009
 
 
1010
  -gas | --gas | --ga | --g)
 
1011
    # Obsolete; use --with-gas.
 
1012
    with_gas=yes ;;
 
1013
 
 
1014
  -help | --help | --hel | --he | -h)
 
1015
    ac_init_help=long ;;
 
1016
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1017
    ac_init_help=recursive ;;
 
1018
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1019
    ac_init_help=short ;;
 
1020
 
 
1021
  -host | --host | --hos | --ho)
 
1022
    ac_prev=host_alias ;;
 
1023
  -host=* | --host=* | --hos=* | --ho=*)
 
1024
    host_alias=$ac_optarg ;;
 
1025
 
 
1026
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1027
    ac_prev=htmldir ;;
 
1028
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1029
  | --ht=*)
 
1030
    htmldir=$ac_optarg ;;
 
1031
 
 
1032
  -includedir | --includedir | --includedi | --included | --include \
 
1033
  | --includ | --inclu | --incl | --inc)
 
1034
    ac_prev=includedir ;;
 
1035
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1036
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1037
    includedir=$ac_optarg ;;
 
1038
 
 
1039
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1040
    ac_prev=infodir ;;
 
1041
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1042
    infodir=$ac_optarg ;;
 
1043
 
 
1044
  -libdir | --libdir | --libdi | --libd)
 
1045
    ac_prev=libdir ;;
 
1046
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1047
    libdir=$ac_optarg ;;
 
1048
 
 
1049
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1050
  | --libexe | --libex | --libe)
 
1051
    ac_prev=libexecdir ;;
 
1052
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1053
  | --libexe=* | --libex=* | --libe=*)
 
1054
    libexecdir=$ac_optarg ;;
 
1055
 
 
1056
  -localedir | --localedir | --localedi | --localed | --locale)
 
1057
    ac_prev=localedir ;;
 
1058
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1059
    localedir=$ac_optarg ;;
 
1060
 
 
1061
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1062
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1063
    ac_prev=localstatedir ;;
 
1064
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1065
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1066
    localstatedir=$ac_optarg ;;
 
1067
 
 
1068
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1069
    ac_prev=mandir ;;
 
1070
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1071
    mandir=$ac_optarg ;;
 
1072
 
 
1073
  -nfp | --nfp | --nf)
 
1074
    # Obsolete; use --without-fp.
 
1075
    with_fp=no ;;
 
1076
 
 
1077
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1078
  | --no-cr | --no-c | -n)
 
1079
    no_create=yes ;;
 
1080
 
 
1081
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1082
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1083
    no_recursion=yes ;;
 
1084
 
 
1085
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1086
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1087
  | --oldin | --oldi | --old | --ol | --o)
 
1088
    ac_prev=oldincludedir ;;
 
1089
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1090
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1091
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1092
    oldincludedir=$ac_optarg ;;
 
1093
 
 
1094
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1095
    ac_prev=prefix ;;
 
1096
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1097
    prefix=$ac_optarg ;;
 
1098
 
 
1099
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1100
  | --program-pre | --program-pr | --program-p)
 
1101
    ac_prev=program_prefix ;;
 
1102
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1103
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1104
    program_prefix=$ac_optarg ;;
 
1105
 
 
1106
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1107
  | --program-suf | --program-su | --program-s)
 
1108
    ac_prev=program_suffix ;;
 
1109
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1110
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1111
    program_suffix=$ac_optarg ;;
 
1112
 
 
1113
  -program-transform-name | --program-transform-name \
 
1114
  | --program-transform-nam | --program-transform-na \
 
1115
  | --program-transform-n | --program-transform- \
 
1116
  | --program-transform | --program-transfor \
 
1117
  | --program-transfo | --program-transf \
 
1118
  | --program-trans | --program-tran \
 
1119
  | --progr-tra | --program-tr | --program-t)
 
1120
    ac_prev=program_transform_name ;;
 
1121
  -program-transform-name=* | --program-transform-name=* \
 
1122
  | --program-transform-nam=* | --program-transform-na=* \
 
1123
  | --program-transform-n=* | --program-transform-=* \
 
1124
  | --program-transform=* | --program-transfor=* \
 
1125
  | --program-transfo=* | --program-transf=* \
 
1126
  | --program-trans=* | --program-tran=* \
 
1127
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1128
    program_transform_name=$ac_optarg ;;
 
1129
 
 
1130
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1131
    ac_prev=pdfdir ;;
 
1132
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1133
    pdfdir=$ac_optarg ;;
 
1134
 
 
1135
  -psdir | --psdir | --psdi | --psd | --ps)
 
1136
    ac_prev=psdir ;;
 
1137
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1138
    psdir=$ac_optarg ;;
 
1139
 
 
1140
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1141
  | -silent | --silent | --silen | --sile | --sil)
 
1142
    silent=yes ;;
 
1143
 
 
1144
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1145
    ac_prev=sbindir ;;
 
1146
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1147
  | --sbi=* | --sb=*)
 
1148
    sbindir=$ac_optarg ;;
 
1149
 
 
1150
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1151
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1152
  | --sharedst | --shareds | --shared | --share | --shar \
 
1153
  | --sha | --sh)
 
1154
    ac_prev=sharedstatedir ;;
 
1155
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1156
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1157
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1158
  | --sha=* | --sh=*)
 
1159
    sharedstatedir=$ac_optarg ;;
 
1160
 
 
1161
  -site | --site | --sit)
 
1162
    ac_prev=site ;;
 
1163
  -site=* | --site=* | --sit=*)
 
1164
    site=$ac_optarg ;;
 
1165
 
 
1166
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1167
    ac_prev=srcdir ;;
 
1168
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1169
    srcdir=$ac_optarg ;;
 
1170
 
 
1171
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1172
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1173
    ac_prev=sysconfdir ;;
 
1174
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1175
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1176
    sysconfdir=$ac_optarg ;;
 
1177
 
 
1178
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1179
    ac_prev=target_alias ;;
 
1180
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1181
    target_alias=$ac_optarg ;;
 
1182
 
 
1183
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1184
    verbose=yes ;;
 
1185
 
 
1186
  -version | --version | --versio | --versi | --vers | -V)
 
1187
    ac_init_version=: ;;
 
1188
 
 
1189
  -with-* | --with-*)
 
1190
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1191
    # Reject names that are not valid shell variable names.
 
1192
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1193
      as_fn_error $? "invalid package name: $ac_useropt"
 
1194
    ac_useropt_orig=$ac_useropt
 
1195
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1196
    case $ac_user_opts in
 
1197
      *"
 
1198
"with_$ac_useropt"
 
1199
"*) ;;
 
1200
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1201
         ac_unrecognized_sep=', ';;
 
1202
    esac
 
1203
    eval with_$ac_useropt=\$ac_optarg ;;
 
1204
 
 
1205
  -without-* | --without-*)
 
1206
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1207
    # Reject names that are not valid shell variable names.
 
1208
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1209
      as_fn_error $? "invalid package name: $ac_useropt"
 
1210
    ac_useropt_orig=$ac_useropt
 
1211
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1212
    case $ac_user_opts in
 
1213
      *"
 
1214
"with_$ac_useropt"
 
1215
"*) ;;
 
1216
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1217
         ac_unrecognized_sep=', ';;
 
1218
    esac
 
1219
    eval with_$ac_useropt=no ;;
 
1220
 
 
1221
  --x)
 
1222
    # Obsolete; use --with-x.
 
1223
    with_x=yes ;;
 
1224
 
 
1225
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1226
  | --x-incl | --x-inc | --x-in | --x-i)
 
1227
    ac_prev=x_includes ;;
 
1228
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1229
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1230
    x_includes=$ac_optarg ;;
 
1231
 
 
1232
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1233
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1234
    ac_prev=x_libraries ;;
 
1235
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1236
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1237
    x_libraries=$ac_optarg ;;
 
1238
 
 
1239
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1240
Try \`$0 --help' for more information"
 
1241
    ;;
 
1242
 
 
1243
  *=*)
 
1244
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1245
    # Reject names that are not valid shell variable names.
 
1246
    case $ac_envvar in #(
 
1247
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1248
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1249
    esac
 
1250
    eval $ac_envvar=\$ac_optarg
 
1251
    export $ac_envvar ;;
 
1252
 
 
1253
  *)
 
1254
    # FIXME: should be removed in autoconf 3.0.
 
1255
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1256
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1257
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1258
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1259
    ;;
 
1260
 
 
1261
  esac
 
1262
done
 
1263
 
 
1264
if test -n "$ac_prev"; then
 
1265
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1266
  as_fn_error $? "missing argument to $ac_option"
 
1267
fi
 
1268
 
 
1269
if test -n "$ac_unrecognized_opts"; then
 
1270
  case $enable_option_checking in
 
1271
    no) ;;
 
1272
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1273
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1274
  esac
 
1275
fi
 
1276
 
 
1277
# Check all directory arguments for consistency.
 
1278
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1279
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1280
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1281
                libdir localedir mandir
 
1282
do
 
1283
  eval ac_val=\$$ac_var
 
1284
  # Remove trailing slashes.
 
1285
  case $ac_val in
 
1286
    */ )
 
1287
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1288
      eval $ac_var=\$ac_val;;
 
1289
  esac
 
1290
  # Be sure to have absolute directory names.
 
1291
  case $ac_val in
 
1292
    [\\/$]* | ?:[\\/]* )  continue;;
 
1293
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1294
  esac
 
1295
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1296
done
 
1297
 
 
1298
# There might be people who depend on the old broken behavior: `$host'
 
1299
# used to hold the argument of --host etc.
 
1300
# FIXME: To remove some day.
 
1301
build=$build_alias
 
1302
host=$host_alias
 
1303
target=$target_alias
 
1304
 
 
1305
# FIXME: To remove some day.
 
1306
if test "x$host_alias" != x; then
 
1307
  if test "x$build_alias" = x; then
 
1308
    cross_compiling=maybe
 
1309
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1310
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1311
  elif test "x$build_alias" != "x$host_alias"; then
 
1312
    cross_compiling=yes
 
1313
  fi
 
1314
fi
 
1315
 
 
1316
ac_tool_prefix=
 
1317
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1318
 
 
1319
test "$silent" = yes && exec 6>/dev/null
 
1320
 
 
1321
 
 
1322
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1323
ac_ls_di=`ls -di .` &&
 
1324
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1325
  as_fn_error $? "working directory cannot be determined"
 
1326
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1327
  as_fn_error $? "pwd does not report name of working directory"
 
1328
 
 
1329
 
 
1330
# Find the source files, if location was not specified.
 
1331
if test -z "$srcdir"; then
 
1332
  ac_srcdir_defaulted=yes
 
1333
  # Try the directory containing this script, then the parent directory.
 
1334
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1335
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1336
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1337
         X"$as_myself" : 'X\(//\)$' \| \
 
1338
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1339
$as_echo X"$as_myself" |
 
1340
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1341
            s//\1/
 
1342
            q
 
1343
          }
 
1344
          /^X\(\/\/\)[^/].*/{
 
1345
            s//\1/
 
1346
            q
 
1347
          }
 
1348
          /^X\(\/\/\)$/{
 
1349
            s//\1/
 
1350
            q
 
1351
          }
 
1352
          /^X\(\/\).*/{
 
1353
            s//\1/
 
1354
            q
 
1355
          }
 
1356
          s/.*/./; q'`
 
1357
  srcdir=$ac_confdir
 
1358
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1359
    srcdir=..
 
1360
  fi
 
1361
else
 
1362
  ac_srcdir_defaulted=no
 
1363
fi
 
1364
if test ! -r "$srcdir/$ac_unique_file"; then
 
1365
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1366
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1367
fi
 
1368
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1369
ac_abs_confdir=`(
 
1370
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1371
        pwd)`
 
1372
# When building in place, set srcdir=.
 
1373
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1374
  srcdir=.
 
1375
fi
 
1376
# Remove unnecessary trailing slashes from srcdir.
 
1377
# Double slashes in file names in object file debugging info
 
1378
# mess up M-x gdb in Emacs.
 
1379
case $srcdir in
 
1380
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1381
esac
 
1382
for ac_var in $ac_precious_vars; do
 
1383
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1384
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1385
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1386
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1387
done
 
1388
 
 
1389
#
 
1390
# Report the --help message.
 
1391
#
 
1392
if test "$ac_init_help" = "long"; then
 
1393
  # Omit some internal or obsolete options to make the list less imposing.
 
1394
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1395
  cat <<_ACEOF
 
1396
\`configure' configures sflphone 1.1.0 to adapt to many kinds of systems.
 
1397
 
 
1398
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1399
 
 
1400
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1401
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1402
 
 
1403
Defaults for the options are specified in brackets.
 
1404
 
 
1405
Configuration:
 
1406
  -h, --help              display this help and exit
 
1407
      --help=short        display options specific to this package
 
1408
      --help=recursive    display the short help of all the included packages
 
1409
  -V, --version           display version information and exit
 
1410
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1411
      --cache-file=FILE   cache test results in FILE [disabled]
 
1412
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1413
  -n, --no-create         do not create output files
 
1414
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1415
 
 
1416
Installation directories:
 
1417
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1418
                          [$ac_default_prefix]
 
1419
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1420
                          [PREFIX]
 
1421
 
 
1422
By default, \`make install' will install all the files in
 
1423
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1424
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1425
for instance \`--prefix=\$HOME'.
 
1426
 
 
1427
For better control, use the options below.
 
1428
 
 
1429
Fine tuning of the installation directories:
 
1430
  --bindir=DIR            user executables [EPREFIX/bin]
 
1431
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1432
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1433
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1434
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1435
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1436
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1437
  --includedir=DIR        C header files [PREFIX/include]
 
1438
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1439
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1440
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1441
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1442
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1443
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1444
  --docdir=DIR            documentation root [DATAROOTDIR/doc/sflphone]
 
1445
  --htmldir=DIR           html documentation [DOCDIR]
 
1446
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1447
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1448
  --psdir=DIR             ps documentation [DOCDIR]
 
1449
_ACEOF
 
1450
 
 
1451
  cat <<\_ACEOF
 
1452
 
 
1453
Program names:
 
1454
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1455
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1456
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1457
 
 
1458
System types:
 
1459
  --build=BUILD     configure for building on BUILD [guessed]
 
1460
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1461
_ACEOF
 
1462
fi
 
1463
 
 
1464
if test -n "$ac_init_help"; then
 
1465
  case $ac_init_help in
 
1466
     short | recursive ) echo "Configuration of sflphone 1.1.0:";;
 
1467
   esac
 
1468
  cat <<\_ACEOF
 
1469
 
 
1470
Optional Features:
 
1471
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1472
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1473
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1474
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1475
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1476
  --disable-dependency-tracking  speeds up one-time build
 
1477
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1478
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1479
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1480
  --enable-fast-install[=PKGS]
 
1481
                          optimize for fast installation [default=yes]
 
1482
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1483
  --enable-doxygen        enable documentation generation with doxygen (disabled by default)
 
1484
  --enable-dot            use 'dot' to generate graphs in doxygen (auto)
 
1485
 
 
1486
Optional Packages:
 
1487
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1488
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1489
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1490
                          both]
 
1491
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1492
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1493
                        (or the compiler's sysroot if not specified).
 
1494
  --with-expat=[ARG]      use Expat XML Parser from given prefix (ARG=path);
 
1495
                          check standard prefixes (ARG=yes); disable (ARG=no)
 
1496
  --with-expat-inc=[DIR]  path to Expat XML Parser headers
 
1497
  --with-expat-lib=[ARG]  link options for Expat XML Parser libraries
 
1498
  --with-pcre[=prefix]    compile xmlpcre part (via libpcre check)
 
1499
  --without-gsm           disable support for gsm codec
 
1500
  --without-speex         disable support for speex codec
 
1501
  --without-iax2          disable support for the iax2 protocol
 
1502
  --without-networkmanager
 
1503
                          disable support for network-manager events
 
1504
 
 
1505
Some influential environment variables:
 
1506
  CC          C compiler command
 
1507
  CFLAGS      C compiler flags
 
1508
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1509
              nonstandard directory <lib dir>
 
1510
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1511
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1512
              you have headers in a nonstandard directory <include dir>
 
1513
  CXX         C++ compiler command
 
1514
  CXXFLAGS    C++ compiler flags
 
1515
  CPP         C preprocessor
 
1516
  CXXCPP      C++ preprocessor
 
1517
  PKG_CONFIG  path to pkg-config utility
 
1518
  PKG_CONFIG_PATH
 
1519
              directories to add to pkg-config's search path
 
1520
  PKG_CONFIG_LIBDIR
 
1521
              path overriding pkg-config's built-in search path
 
1522
  UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
 
1523
  UUID_LIBS   linker flags for UUID, overriding pkg-config
 
1524
  LIBCRYPTO_CFLAGS
 
1525
              C compiler flags for LIBCRYPTO, overriding pkg-config
 
1526
  LIBCRYPTO_LIBS
 
1527
              linker flags for LIBCRYPTO, overriding pkg-config
 
1528
  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
 
1529
  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
 
1530
  PULSEAUDIO_CFLAGS
 
1531
              C compiler flags for PULSEAUDIO, overriding pkg-config
 
1532
  PULSEAUDIO_LIBS
 
1533
              linker flags for PULSEAUDIO, overriding pkg-config
 
1534
  SAMPLERATE_CFLAGS
 
1535
              C compiler flags for SAMPLERATE, overriding pkg-config
 
1536
  SAMPLERATE_LIBS
 
1537
              linker flags for SAMPLERATE, overriding pkg-config
 
1538
  CCGNU2_CFLAGS
 
1539
              C compiler flags for CCGNU2, overriding pkg-config
 
1540
  CCGNU2_LIBS linker flags for CCGNU2, overriding pkg-config
 
1541
  CCRTP_CFLAGS
 
1542
              C compiler flags for CCRTP, overriding pkg-config
 
1543
  CCRTP_LIBS  linker flags for CCRTP, overriding pkg-config
 
1544
  libssl_CFLAGS
 
1545
              C compiler flags for libssl, overriding pkg-config
 
1546
  libssl_LIBS linker flags for libssl, overriding pkg-config
 
1547
  ZRTPCPP_CFLAGS
 
1548
              C compiler flags for ZRTPCPP, overriding pkg-config
 
1549
  ZRTPCPP_LIBS
 
1550
              linker flags for ZRTPCPP, overriding pkg-config
 
1551
  DBUSCPP_CFLAGS
 
1552
              C compiler flags for DBUSCPP, overriding pkg-config
 
1553
  DBUSCPP_LIBS
 
1554
              linker flags for DBUSCPP, overriding pkg-config
 
1555
  CPPUNIT_CFLAGS
 
1556
              C compiler flags for CPPUNIT, overriding pkg-config
 
1557
  CPPUNIT_LIBS
 
1558
              linker flags for CPPUNIT, overriding pkg-config
 
1559
 
 
1560
Use these variables to override the choices made by `configure' or to help
 
1561
it to find libraries and programs with nonstandard names/locations.
 
1562
 
 
1563
Report bugs to <sflphoneteam@savoirfairelinux.com>.
 
1564
_ACEOF
 
1565
ac_status=$?
 
1566
fi
 
1567
 
 
1568
if test "$ac_init_help" = "recursive"; then
 
1569
  # If there are subdirs, report their specific --help.
 
1570
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1571
    test -d "$ac_dir" ||
 
1572
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1573
      continue
 
1574
    ac_builddir=.
 
1575
 
 
1576
case "$ac_dir" in
 
1577
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1578
*)
 
1579
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1580
  # A ".." for each directory in $ac_dir_suffix.
 
1581
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1582
  case $ac_top_builddir_sub in
 
1583
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1584
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1585
  esac ;;
 
1586
esac
 
1587
ac_abs_top_builddir=$ac_pwd
 
1588
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1589
# for backward compatibility:
 
1590
ac_top_builddir=$ac_top_build_prefix
 
1591
 
 
1592
case $srcdir in
 
1593
  .)  # We are building in place.
 
1594
    ac_srcdir=.
 
1595
    ac_top_srcdir=$ac_top_builddir_sub
 
1596
    ac_abs_top_srcdir=$ac_pwd ;;
 
1597
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1598
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1599
    ac_top_srcdir=$srcdir
 
1600
    ac_abs_top_srcdir=$srcdir ;;
 
1601
  *) # Relative name.
 
1602
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1603
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1604
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1605
esac
 
1606
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1607
 
 
1608
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1609
    # Check for guested configure.
 
1610
    if test -f "$ac_srcdir/configure.gnu"; then
 
1611
      echo &&
 
1612
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1613
    elif test -f "$ac_srcdir/configure"; then
 
1614
      echo &&
 
1615
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1616
    else
 
1617
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1618
    fi || ac_status=$?
 
1619
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1620
  done
 
1621
fi
 
1622
 
 
1623
test -n "$ac_init_help" && exit $ac_status
 
1624
if $ac_init_version; then
 
1625
  cat <<\_ACEOF
 
1626
sflphone configure 1.1.0
 
1627
generated by GNU Autoconf 2.68
 
1628
 
 
1629
Copyright (C) 2010 Free Software Foundation, Inc.
 
1630
This configure script is free software; the Free Software Foundation
 
1631
gives unlimited permission to copy, distribute and modify it.
 
1632
 
 
1633
Copyright (c) Savoir-Faire Linux 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
1634
_ACEOF
 
1635
  exit
 
1636
fi
 
1637
 
 
1638
## ------------------------ ##
 
1639
## Autoconf initialization. ##
 
1640
## ------------------------ ##
 
1641
 
 
1642
# ac_fn_c_try_compile LINENO
 
1643
# --------------------------
 
1644
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1645
ac_fn_c_try_compile ()
 
1646
{
 
1647
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1648
  rm -f conftest.$ac_objext
 
1649
  if { { ac_try="$ac_compile"
 
1650
case "(($ac_try" in
 
1651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1652
  *) ac_try_echo=$ac_try;;
 
1653
esac
 
1654
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1655
$as_echo "$ac_try_echo"; } >&5
 
1656
  (eval "$ac_compile") 2>conftest.err
 
1657
  ac_status=$?
 
1658
  if test -s conftest.err; then
 
1659
    grep -v '^ *+' conftest.err >conftest.er1
 
1660
    cat conftest.er1 >&5
 
1661
    mv -f conftest.er1 conftest.err
 
1662
  fi
 
1663
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1664
  test $ac_status = 0; } && {
 
1665
         test -z "$ac_c_werror_flag" ||
 
1666
         test ! -s conftest.err
 
1667
       } && test -s conftest.$ac_objext; then :
 
1668
  ac_retval=0
 
1669
else
 
1670
  $as_echo "$as_me: failed program was:" >&5
 
1671
sed 's/^/| /' conftest.$ac_ext >&5
 
1672
 
 
1673
        ac_retval=1
 
1674
fi
 
1675
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1676
  as_fn_set_status $ac_retval
 
1677
 
 
1678
} # ac_fn_c_try_compile
 
1679
 
 
1680
# ac_fn_cxx_try_compile LINENO
 
1681
# ----------------------------
 
1682
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1683
ac_fn_cxx_try_compile ()
 
1684
{
 
1685
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1686
  rm -f conftest.$ac_objext
 
1687
  if { { ac_try="$ac_compile"
 
1688
case "(($ac_try" in
 
1689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1690
  *) ac_try_echo=$ac_try;;
 
1691
esac
 
1692
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1693
$as_echo "$ac_try_echo"; } >&5
 
1694
  (eval "$ac_compile") 2>conftest.err
 
1695
  ac_status=$?
 
1696
  if test -s conftest.err; then
 
1697
    grep -v '^ *+' conftest.err >conftest.er1
 
1698
    cat conftest.er1 >&5
 
1699
    mv -f conftest.er1 conftest.err
 
1700
  fi
 
1701
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1702
  test $ac_status = 0; } && {
 
1703
         test -z "$ac_cxx_werror_flag" ||
 
1704
         test ! -s conftest.err
 
1705
       } && test -s conftest.$ac_objext; then :
 
1706
  ac_retval=0
 
1707
else
 
1708
  $as_echo "$as_me: failed program was:" >&5
 
1709
sed 's/^/| /' conftest.$ac_ext >&5
 
1710
 
 
1711
        ac_retval=1
 
1712
fi
 
1713
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1714
  as_fn_set_status $ac_retval
 
1715
 
 
1716
} # ac_fn_cxx_try_compile
 
1717
 
 
1718
# ac_fn_c_try_cpp LINENO
 
1719
# ----------------------
 
1720
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1721
ac_fn_c_try_cpp ()
 
1722
{
 
1723
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1724
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1725
case "(($ac_try" in
 
1726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1727
  *) ac_try_echo=$ac_try;;
 
1728
esac
 
1729
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1730
$as_echo "$ac_try_echo"; } >&5
 
1731
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1732
  ac_status=$?
 
1733
  if test -s conftest.err; then
 
1734
    grep -v '^ *+' conftest.err >conftest.er1
 
1735
    cat conftest.er1 >&5
 
1736
    mv -f conftest.er1 conftest.err
 
1737
  fi
 
1738
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1739
  test $ac_status = 0; } > conftest.i && {
 
1740
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1741
         test ! -s conftest.err
 
1742
       }; then :
 
1743
  ac_retval=0
 
1744
else
 
1745
  $as_echo "$as_me: failed program was:" >&5
 
1746
sed 's/^/| /' conftest.$ac_ext >&5
 
1747
 
 
1748
    ac_retval=1
 
1749
fi
 
1750
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1751
  as_fn_set_status $ac_retval
 
1752
 
 
1753
} # ac_fn_c_try_cpp
 
1754
 
 
1755
# ac_fn_c_try_link LINENO
 
1756
# -----------------------
 
1757
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1758
ac_fn_c_try_link ()
 
1759
{
 
1760
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1761
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1762
  if { { ac_try="$ac_link"
 
1763
case "(($ac_try" in
 
1764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1765
  *) ac_try_echo=$ac_try;;
 
1766
esac
 
1767
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1768
$as_echo "$ac_try_echo"; } >&5
 
1769
  (eval "$ac_link") 2>conftest.err
 
1770
  ac_status=$?
 
1771
  if test -s conftest.err; then
 
1772
    grep -v '^ *+' conftest.err >conftest.er1
 
1773
    cat conftest.er1 >&5
 
1774
    mv -f conftest.er1 conftest.err
 
1775
  fi
 
1776
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1777
  test $ac_status = 0; } && {
 
1778
         test -z "$ac_c_werror_flag" ||
 
1779
         test ! -s conftest.err
 
1780
       } && test -s conftest$ac_exeext && {
 
1781
         test "$cross_compiling" = yes ||
 
1782
         $as_test_x conftest$ac_exeext
 
1783
       }; then :
 
1784
  ac_retval=0
 
1785
else
 
1786
  $as_echo "$as_me: failed program was:" >&5
 
1787
sed 's/^/| /' conftest.$ac_ext >&5
 
1788
 
 
1789
        ac_retval=1
 
1790
fi
 
1791
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1792
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1793
  # interfere with the next link command; also delete a directory that is
 
1794
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1795
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1796
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1797
  as_fn_set_status $ac_retval
 
1798
 
 
1799
} # ac_fn_c_try_link
 
1800
 
 
1801
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1802
# -------------------------------------------------------
 
1803
# Tests whether HEADER exists and can be compiled using the include files in
 
1804
# INCLUDES, setting the cache variable VAR accordingly.
 
1805
ac_fn_c_check_header_compile ()
 
1806
{
 
1807
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1808
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1809
$as_echo_n "checking for $2... " >&6; }
 
1810
if eval \${$3+:} false; then :
 
1811
  $as_echo_n "(cached) " >&6
 
1812
else
 
1813
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1814
/* end confdefs.h.  */
 
1815
$4
 
1816
#include <$2>
 
1817
_ACEOF
 
1818
if ac_fn_c_try_compile "$LINENO"; then :
 
1819
  eval "$3=yes"
 
1820
else
 
1821
  eval "$3=no"
 
1822
fi
 
1823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1824
fi
 
1825
eval ac_res=\$$3
 
1826
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1827
$as_echo "$ac_res" >&6; }
 
1828
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1829
 
 
1830
} # ac_fn_c_check_header_compile
 
1831
 
 
1832
# ac_fn_c_try_run LINENO
 
1833
# ----------------------
 
1834
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1835
# that executables *can* be run.
 
1836
ac_fn_c_try_run ()
 
1837
{
 
1838
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1839
  if { { ac_try="$ac_link"
 
1840
case "(($ac_try" in
 
1841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1842
  *) ac_try_echo=$ac_try;;
 
1843
esac
 
1844
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1845
$as_echo "$ac_try_echo"; } >&5
 
1846
  (eval "$ac_link") 2>&5
 
1847
  ac_status=$?
 
1848
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1849
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1850
  { { case "(($ac_try" in
 
1851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1852
  *) ac_try_echo=$ac_try;;
 
1853
esac
 
1854
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1855
$as_echo "$ac_try_echo"; } >&5
 
1856
  (eval "$ac_try") 2>&5
 
1857
  ac_status=$?
 
1858
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1859
  test $ac_status = 0; }; }; then :
 
1860
  ac_retval=0
 
1861
else
 
1862
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1863
       $as_echo "$as_me: failed program was:" >&5
 
1864
sed 's/^/| /' conftest.$ac_ext >&5
 
1865
 
 
1866
       ac_retval=$ac_status
 
1867
fi
 
1868
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1869
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1870
  as_fn_set_status $ac_retval
 
1871
 
 
1872
} # ac_fn_c_try_run
 
1873
 
 
1874
# ac_fn_c_check_func LINENO FUNC VAR
 
1875
# ----------------------------------
 
1876
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1877
ac_fn_c_check_func ()
 
1878
{
 
1879
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1881
$as_echo_n "checking for $2... " >&6; }
 
1882
if eval \${$3+:} false; then :
 
1883
  $as_echo_n "(cached) " >&6
 
1884
else
 
1885
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1886
/* end confdefs.h.  */
 
1887
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1888
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1889
#define $2 innocuous_$2
 
1890
 
 
1891
/* System header to define __stub macros and hopefully few prototypes,
 
1892
    which can conflict with char $2 (); below.
 
1893
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1894
    <limits.h> exists even on freestanding compilers.  */
 
1895
 
 
1896
#ifdef __STDC__
 
1897
# include <limits.h>
 
1898
#else
 
1899
# include <assert.h>
 
1900
#endif
 
1901
 
 
1902
#undef $2
 
1903
 
 
1904
/* Override any GCC internal prototype to avoid an error.
 
1905
   Use char because int might match the return type of a GCC
 
1906
   builtin and then its argument prototype would still apply.  */
 
1907
#ifdef __cplusplus
 
1908
extern "C"
 
1909
#endif
 
1910
char $2 ();
 
1911
/* The GNU C library defines this for functions which it implements
 
1912
    to always fail with ENOSYS.  Some functions are actually named
 
1913
    something starting with __ and the normal name is an alias.  */
 
1914
#if defined __stub_$2 || defined __stub___$2
 
1915
choke me
 
1916
#endif
 
1917
 
 
1918
int
 
1919
main ()
 
1920
{
 
1921
return $2 ();
 
1922
  ;
 
1923
  return 0;
 
1924
}
 
1925
_ACEOF
 
1926
if ac_fn_c_try_link "$LINENO"; then :
 
1927
  eval "$3=yes"
 
1928
else
 
1929
  eval "$3=no"
 
1930
fi
 
1931
rm -f core conftest.err conftest.$ac_objext \
 
1932
    conftest$ac_exeext conftest.$ac_ext
 
1933
fi
 
1934
eval ac_res=\$$3
 
1935
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1936
$as_echo "$ac_res" >&6; }
 
1937
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1938
 
 
1939
} # ac_fn_c_check_func
 
1940
 
 
1941
# ac_fn_cxx_try_cpp LINENO
 
1942
# ------------------------
 
1943
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1944
ac_fn_cxx_try_cpp ()
 
1945
{
 
1946
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1947
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1948
case "(($ac_try" in
 
1949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1950
  *) ac_try_echo=$ac_try;;
 
1951
esac
 
1952
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1953
$as_echo "$ac_try_echo"; } >&5
 
1954
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1955
  ac_status=$?
 
1956
  if test -s conftest.err; then
 
1957
    grep -v '^ *+' conftest.err >conftest.er1
 
1958
    cat conftest.er1 >&5
 
1959
    mv -f conftest.er1 conftest.err
 
1960
  fi
 
1961
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1962
  test $ac_status = 0; } > conftest.i && {
 
1963
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1964
         test ! -s conftest.err
 
1965
       }; then :
 
1966
  ac_retval=0
 
1967
else
 
1968
  $as_echo "$as_me: failed program was:" >&5
 
1969
sed 's/^/| /' conftest.$ac_ext >&5
 
1970
 
 
1971
    ac_retval=1
 
1972
fi
 
1973
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1974
  as_fn_set_status $ac_retval
 
1975
 
 
1976
} # ac_fn_cxx_try_cpp
 
1977
 
 
1978
# ac_fn_cxx_try_link LINENO
 
1979
# -------------------------
 
1980
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1981
ac_fn_cxx_try_link ()
 
1982
{
 
1983
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1984
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1985
  if { { ac_try="$ac_link"
 
1986
case "(($ac_try" in
 
1987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1988
  *) ac_try_echo=$ac_try;;
 
1989
esac
 
1990
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1991
$as_echo "$ac_try_echo"; } >&5
 
1992
  (eval "$ac_link") 2>conftest.err
 
1993
  ac_status=$?
 
1994
  if test -s conftest.err; then
 
1995
    grep -v '^ *+' conftest.err >conftest.er1
 
1996
    cat conftest.er1 >&5
 
1997
    mv -f conftest.er1 conftest.err
 
1998
  fi
 
1999
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2000
  test $ac_status = 0; } && {
 
2001
         test -z "$ac_cxx_werror_flag" ||
 
2002
         test ! -s conftest.err
 
2003
       } && test -s conftest$ac_exeext && {
 
2004
         test "$cross_compiling" = yes ||
 
2005
         $as_test_x conftest$ac_exeext
 
2006
       }; then :
 
2007
  ac_retval=0
 
2008
else
 
2009
  $as_echo "$as_me: failed program was:" >&5
 
2010
sed 's/^/| /' conftest.$ac_ext >&5
 
2011
 
 
2012
        ac_retval=1
 
2013
fi
 
2014
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2015
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2016
  # interfere with the next link command; also delete a directory that is
 
2017
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2018
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2019
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2020
  as_fn_set_status $ac_retval
 
2021
 
 
2022
} # ac_fn_cxx_try_link
 
2023
 
 
2024
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
 
2025
# ---------------------------------------------
 
2026
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2027
# variable VAR accordingly.
 
2028
ac_fn_cxx_check_type ()
 
2029
{
 
2030
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2031
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2032
$as_echo_n "checking for $2... " >&6; }
 
2033
if eval \${$3+:} false; then :
 
2034
  $as_echo_n "(cached) " >&6
 
2035
else
 
2036
  eval "$3=no"
 
2037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2038
/* end confdefs.h.  */
 
2039
$4
 
2040
int
 
2041
main ()
 
2042
{
 
2043
if (sizeof ($2))
 
2044
         return 0;
 
2045
  ;
 
2046
  return 0;
 
2047
}
 
2048
_ACEOF
 
2049
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2050
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2051
/* end confdefs.h.  */
 
2052
$4
 
2053
int
 
2054
main ()
 
2055
{
 
2056
if (sizeof (($2)))
 
2057
            return 0;
 
2058
  ;
 
2059
  return 0;
 
2060
}
 
2061
_ACEOF
 
2062
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2063
 
 
2064
else
 
2065
  eval "$3=yes"
 
2066
fi
 
2067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2068
fi
 
2069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2070
fi
 
2071
eval ac_res=\$$3
 
2072
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2073
$as_echo "$ac_res" >&6; }
 
2074
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2075
 
 
2076
} # ac_fn_cxx_check_type
 
2077
 
 
2078
# ac_fn_cxx_check_func LINENO FUNC VAR
 
2079
# ------------------------------------
 
2080
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2081
ac_fn_cxx_check_func ()
 
2082
{
 
2083
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2084
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2085
$as_echo_n "checking for $2... " >&6; }
 
2086
if eval \${$3+:} false; then :
 
2087
  $as_echo_n "(cached) " >&6
 
2088
else
 
2089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2090
/* end confdefs.h.  */
 
2091
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2092
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2093
#define $2 innocuous_$2
 
2094
 
 
2095
/* System header to define __stub macros and hopefully few prototypes,
 
2096
    which can conflict with char $2 (); below.
 
2097
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2098
    <limits.h> exists even on freestanding compilers.  */
 
2099
 
 
2100
#ifdef __STDC__
 
2101
# include <limits.h>
 
2102
#else
 
2103
# include <assert.h>
 
2104
#endif
 
2105
 
 
2106
#undef $2
 
2107
 
 
2108
/* Override any GCC internal prototype to avoid an error.
 
2109
   Use char because int might match the return type of a GCC
 
2110
   builtin and then its argument prototype would still apply.  */
 
2111
#ifdef __cplusplus
 
2112
extern "C"
 
2113
#endif
 
2114
char $2 ();
 
2115
/* The GNU C library defines this for functions which it implements
 
2116
    to always fail with ENOSYS.  Some functions are actually named
 
2117
    something starting with __ and the normal name is an alias.  */
 
2118
#if defined __stub_$2 || defined __stub___$2
 
2119
choke me
 
2120
#endif
 
2121
 
 
2122
int
 
2123
main ()
 
2124
{
 
2125
return $2 ();
 
2126
  ;
 
2127
  return 0;
 
2128
}
 
2129
_ACEOF
 
2130
if ac_fn_cxx_try_link "$LINENO"; then :
 
2131
  eval "$3=yes"
 
2132
else
 
2133
  eval "$3=no"
 
2134
fi
 
2135
rm -f core conftest.err conftest.$ac_objext \
 
2136
    conftest$ac_exeext conftest.$ac_ext
 
2137
fi
 
2138
eval ac_res=\$$3
 
2139
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2140
$as_echo "$ac_res" >&6; }
 
2141
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2142
 
 
2143
} # ac_fn_cxx_check_func
 
2144
 
 
2145
# ac_fn_cxx_try_run LINENO
 
2146
# ------------------------
 
2147
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
2148
# that executables *can* be run.
 
2149
ac_fn_cxx_try_run ()
 
2150
{
 
2151
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2152
  if { { ac_try="$ac_link"
 
2153
case "(($ac_try" in
 
2154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2155
  *) ac_try_echo=$ac_try;;
 
2156
esac
 
2157
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2158
$as_echo "$ac_try_echo"; } >&5
 
2159
  (eval "$ac_link") 2>&5
 
2160
  ac_status=$?
 
2161
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2162
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
2163
  { { case "(($ac_try" in
 
2164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2165
  *) ac_try_echo=$ac_try;;
 
2166
esac
 
2167
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2168
$as_echo "$ac_try_echo"; } >&5
 
2169
  (eval "$ac_try") 2>&5
 
2170
  ac_status=$?
 
2171
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2172
  test $ac_status = 0; }; }; then :
 
2173
  ac_retval=0
 
2174
else
 
2175
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
2176
       $as_echo "$as_me: failed program was:" >&5
 
2177
sed 's/^/| /' conftest.$ac_ext >&5
 
2178
 
 
2179
       ac_retval=$ac_status
 
2180
fi
 
2181
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2182
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2183
  as_fn_set_status $ac_retval
 
2184
 
 
2185
} # ac_fn_cxx_try_run
 
2186
 
 
2187
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
 
2188
# ---------------------------------------------------------
 
2189
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
2190
# the include files in INCLUDES and setting the cache variable VAR
 
2191
# accordingly.
 
2192
ac_fn_cxx_check_header_mongrel ()
 
2193
{
 
2194
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2195
  if eval \${$3+:} false; then :
 
2196
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2197
$as_echo_n "checking for $2... " >&6; }
 
2198
if eval \${$3+:} false; then :
 
2199
  $as_echo_n "(cached) " >&6
 
2200
fi
 
2201
eval ac_res=\$$3
 
2202
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2203
$as_echo "$ac_res" >&6; }
 
2204
else
 
2205
  # Is the header compilable?
 
2206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2207
$as_echo_n "checking $2 usability... " >&6; }
 
2208
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2209
/* end confdefs.h.  */
 
2210
$4
 
2211
#include <$2>
 
2212
_ACEOF
 
2213
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2214
  ac_header_compiler=yes
 
2215
else
 
2216
  ac_header_compiler=no
 
2217
fi
 
2218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2220
$as_echo "$ac_header_compiler" >&6; }
 
2221
 
 
2222
# Is the header present?
 
2223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2224
$as_echo_n "checking $2 presence... " >&6; }
 
2225
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2226
/* end confdefs.h.  */
 
2227
#include <$2>
 
2228
_ACEOF
 
2229
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
2230
  ac_header_preproc=yes
 
2231
else
 
2232
  ac_header_preproc=no
 
2233
fi
 
2234
rm -f conftest.err conftest.i conftest.$ac_ext
 
2235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2236
$as_echo "$ac_header_preproc" >&6; }
 
2237
 
 
2238
# So?  What about this header?
 
2239
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
 
2240
  yes:no: )
 
2241
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2242
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2243
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2244
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2245
    ;;
 
2246
  no:yes:* )
 
2247
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2248
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2249
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2250
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2251
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2252
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2253
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2254
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2255
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2256
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2257
( $as_echo "## ------------------------------------------------ ##
 
2258
## Report this to sflphoneteam@savoirfairelinux.com ##
 
2259
## ------------------------------------------------ ##"
 
2260
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2261
    ;;
 
2262
esac
 
2263
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2264
$as_echo_n "checking for $2... " >&6; }
 
2265
if eval \${$3+:} false; then :
 
2266
  $as_echo_n "(cached) " >&6
 
2267
else
 
2268
  eval "$3=\$ac_header_compiler"
 
2269
fi
 
2270
eval ac_res=\$$3
 
2271
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2272
$as_echo "$ac_res" >&6; }
 
2273
fi
 
2274
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2275
 
 
2276
} # ac_fn_cxx_check_header_mongrel
 
2277
 
 
2278
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
 
2279
# ---------------------------------------------------------
 
2280
# Tests whether HEADER exists and can be compiled using the include files in
 
2281
# INCLUDES, setting the cache variable VAR accordingly.
 
2282
ac_fn_cxx_check_header_compile ()
 
2283
{
 
2284
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2285
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2286
$as_echo_n "checking for $2... " >&6; }
 
2287
if eval \${$3+:} false; then :
 
2288
  $as_echo_n "(cached) " >&6
 
2289
else
 
2290
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2291
/* end confdefs.h.  */
 
2292
$4
 
2293
#include <$2>
 
2294
_ACEOF
 
2295
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2296
  eval "$3=yes"
 
2297
else
 
2298
  eval "$3=no"
 
2299
fi
 
2300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2301
fi
 
2302
eval ac_res=\$$3
 
2303
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2304
$as_echo "$ac_res" >&6; }
 
2305
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2306
 
 
2307
} # ac_fn_cxx_check_header_compile
 
2308
cat >config.log <<_ACEOF
 
2309
This file contains any messages produced by compilers while
 
2310
running configure, to aid debugging if configure makes a mistake.
 
2311
 
 
2312
It was created by sflphone $as_me 1.1.0, which was
 
2313
generated by GNU Autoconf 2.68.  Invocation command line was
 
2314
 
 
2315
  $ $0 $@
 
2316
 
 
2317
_ACEOF
 
2318
exec 5>>config.log
 
2319
{
 
2320
cat <<_ASUNAME
 
2321
## --------- ##
 
2322
## Platform. ##
 
2323
## --------- ##
 
2324
 
 
2325
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2326
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2327
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2328
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2329
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2330
 
 
2331
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2332
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2333
 
 
2334
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2335
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2336
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2337
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2338
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2339
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2340
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2341
 
 
2342
_ASUNAME
 
2343
 
 
2344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2345
for as_dir in $PATH
 
2346
do
 
2347
  IFS=$as_save_IFS
 
2348
  test -z "$as_dir" && as_dir=.
 
2349
    $as_echo "PATH: $as_dir"
 
2350
  done
 
2351
IFS=$as_save_IFS
 
2352
 
 
2353
} >&5
 
2354
 
 
2355
cat >&5 <<_ACEOF
 
2356
 
 
2357
 
 
2358
## ----------- ##
 
2359
## Core tests. ##
 
2360
## ----------- ##
 
2361
 
 
2362
_ACEOF
 
2363
 
 
2364
 
 
2365
# Keep a trace of the command line.
 
2366
# Strip out --no-create and --no-recursion so they do not pile up.
 
2367
# Strip out --silent because we don't want to record it for future runs.
 
2368
# Also quote any args containing shell meta-characters.
 
2369
# Make two passes to allow for proper duplicate-argument suppression.
 
2370
ac_configure_args=
 
2371
ac_configure_args0=
 
2372
ac_configure_args1=
 
2373
ac_must_keep_next=false
 
2374
for ac_pass in 1 2
 
2375
do
 
2376
  for ac_arg
 
2377
  do
 
2378
    case $ac_arg in
 
2379
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2380
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2381
    | -silent | --silent | --silen | --sile | --sil)
 
2382
      continue ;;
 
2383
    *\'*)
 
2384
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2385
    esac
 
2386
    case $ac_pass in
 
2387
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2388
    2)
 
2389
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2390
      if test $ac_must_keep_next = true; then
 
2391
        ac_must_keep_next=false # Got value, back to normal.
 
2392
      else
 
2393
        case $ac_arg in
 
2394
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2395
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2396
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2397
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2398
            case "$ac_configure_args0 " in
 
2399
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2400
            esac
 
2401
            ;;
 
2402
          -* ) ac_must_keep_next=true ;;
 
2403
        esac
 
2404
      fi
 
2405
      as_fn_append ac_configure_args " '$ac_arg'"
 
2406
      ;;
 
2407
    esac
 
2408
  done
 
2409
done
 
2410
{ ac_configure_args0=; unset ac_configure_args0;}
 
2411
{ ac_configure_args1=; unset ac_configure_args1;}
 
2412
 
 
2413
# When interrupted or exit'd, cleanup temporary files, and complete
 
2414
# config.log.  We remove comments because anyway the quotes in there
 
2415
# would cause problems or look ugly.
 
2416
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2417
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2418
trap 'exit_status=$?
 
2419
  # Save into config.log some information that might help in debugging.
 
2420
  {
 
2421
    echo
 
2422
 
 
2423
    $as_echo "## ---------------- ##
 
2424
## Cache variables. ##
 
2425
## ---------------- ##"
 
2426
    echo
 
2427
    # The following way of writing the cache mishandles newlines in values,
 
2428
(
 
2429
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2430
    eval ac_val=\$$ac_var
 
2431
    case $ac_val in #(
 
2432
    *${as_nl}*)
 
2433
      case $ac_var in #(
 
2434
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2435
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2436
      esac
 
2437
      case $ac_var in #(
 
2438
      _ | IFS | as_nl) ;; #(
 
2439
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2440
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2441
      esac ;;
 
2442
    esac
 
2443
  done
 
2444
  (set) 2>&1 |
 
2445
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2446
    *${as_nl}ac_space=\ *)
 
2447
      sed -n \
 
2448
        "s/'\''/'\''\\\\'\'''\''/g;
 
2449
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2450
      ;; #(
 
2451
    *)
 
2452
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2453
      ;;
 
2454
    esac |
 
2455
    sort
 
2456
)
 
2457
    echo
 
2458
 
 
2459
    $as_echo "## ----------------- ##
 
2460
## Output variables. ##
 
2461
## ----------------- ##"
 
2462
    echo
 
2463
    for ac_var in $ac_subst_vars
 
2464
    do
 
2465
      eval ac_val=\$$ac_var
 
2466
      case $ac_val in
 
2467
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2468
      esac
 
2469
      $as_echo "$ac_var='\''$ac_val'\''"
 
2470
    done | sort
 
2471
    echo
 
2472
 
 
2473
    if test -n "$ac_subst_files"; then
 
2474
      $as_echo "## ------------------- ##
 
2475
## File substitutions. ##
 
2476
## ------------------- ##"
 
2477
      echo
 
2478
      for ac_var in $ac_subst_files
 
2479
      do
 
2480
        eval ac_val=\$$ac_var
 
2481
        case $ac_val in
 
2482
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2483
        esac
 
2484
        $as_echo "$ac_var='\''$ac_val'\''"
 
2485
      done | sort
 
2486
      echo
 
2487
    fi
 
2488
 
 
2489
    if test -s confdefs.h; then
 
2490
      $as_echo "## ----------- ##
 
2491
## confdefs.h. ##
 
2492
## ----------- ##"
 
2493
      echo
 
2494
      cat confdefs.h
 
2495
      echo
 
2496
    fi
 
2497
    test "$ac_signal" != 0 &&
 
2498
      $as_echo "$as_me: caught signal $ac_signal"
 
2499
    $as_echo "$as_me: exit $exit_status"
 
2500
  } >&5
 
2501
  rm -f core *.core core.conftest.* &&
 
2502
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2503
    exit $exit_status
 
2504
' 0
 
2505
for ac_signal in 1 2 13 15; do
 
2506
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2507
done
 
2508
ac_signal=0
 
2509
 
 
2510
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2511
rm -f -r conftest* confdefs.h
 
2512
 
 
2513
$as_echo "/* confdefs.h */" > confdefs.h
 
2514
 
 
2515
# Predefined preprocessor variables.
 
2516
 
 
2517
cat >>confdefs.h <<_ACEOF
 
2518
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2519
_ACEOF
 
2520
 
 
2521
cat >>confdefs.h <<_ACEOF
 
2522
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2523
_ACEOF
 
2524
 
 
2525
cat >>confdefs.h <<_ACEOF
 
2526
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2527
_ACEOF
 
2528
 
 
2529
cat >>confdefs.h <<_ACEOF
 
2530
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2531
_ACEOF
 
2532
 
 
2533
cat >>confdefs.h <<_ACEOF
 
2534
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2535
_ACEOF
 
2536
 
 
2537
cat >>confdefs.h <<_ACEOF
 
2538
#define PACKAGE_URL "$PACKAGE_URL"
 
2539
_ACEOF
 
2540
 
 
2541
 
 
2542
# Let the site file select an alternate cache file if it wants to.
 
2543
# Prefer an explicitly selected file to automatically selected ones.
 
2544
ac_site_file1=NONE
 
2545
ac_site_file2=NONE
 
2546
if test -n "$CONFIG_SITE"; then
 
2547
  # We do not want a PATH search for config.site.
 
2548
  case $CONFIG_SITE in #((
 
2549
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2550
    */*) ac_site_file1=$CONFIG_SITE;;
 
2551
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2552
  esac
 
2553
elif test "x$prefix" != xNONE; then
 
2554
  ac_site_file1=$prefix/share/config.site
 
2555
  ac_site_file2=$prefix/etc/config.site
 
2556
else
 
2557
  ac_site_file1=$ac_default_prefix/share/config.site
 
2558
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2559
fi
 
2560
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2561
do
 
2562
  test "x$ac_site_file" = xNONE && continue
 
2563
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2564
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2565
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2566
    sed 's/^/| /' "$ac_site_file" >&5
 
2567
    . "$ac_site_file" \
 
2568
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2569
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2570
as_fn_error $? "failed to load site script $ac_site_file
 
2571
See \`config.log' for more details" "$LINENO" 5; }
 
2572
  fi
 
2573
done
 
2574
 
 
2575
if test -r "$cache_file"; then
 
2576
  # Some versions of bash will fail to source /dev/null (special files
 
2577
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2578
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2579
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2580
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2581
    case $cache_file in
 
2582
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2583
      *)                      . "./$cache_file";;
 
2584
    esac
 
2585
  fi
 
2586
else
 
2587
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2588
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2589
  >$cache_file
 
2590
fi
 
2591
 
 
2592
as_fn_append ac_header_list " utime.h"
 
2593
# Check that the precious variables saved in the cache have kept the same
 
2594
# value.
 
2595
ac_cache_corrupted=false
 
2596
for ac_var in $ac_precious_vars; do
 
2597
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2598
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2599
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2600
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2601
  case $ac_old_set,$ac_new_set in
 
2602
    set,)
 
2603
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2604
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2605
      ac_cache_corrupted=: ;;
 
2606
    ,set)
 
2607
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2608
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2609
      ac_cache_corrupted=: ;;
 
2610
    ,);;
 
2611
    *)
 
2612
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2613
        # differences in whitespace do not lead to failure.
 
2614
        ac_old_val_w=`echo x $ac_old_val`
 
2615
        ac_new_val_w=`echo x $ac_new_val`
 
2616
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2617
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2618
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2619
          ac_cache_corrupted=:
 
2620
        else
 
2621
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2622
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2623
          eval $ac_var=\$ac_old_val
 
2624
        fi
 
2625
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2626
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2627
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2628
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2629
      fi;;
 
2630
  esac
 
2631
  # Pass precious variables to config.status.
 
2632
  if test "$ac_new_set" = set; then
 
2633
    case $ac_new_val in
 
2634
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2635
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2636
    esac
 
2637
    case " $ac_configure_args " in
 
2638
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2639
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2640
    esac
 
2641
  fi
 
2642
done
 
2643
if $ac_cache_corrupted; then
 
2644
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2645
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2646
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2647
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2648
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2649
fi
 
2650
## -------------------- ##
 
2651
## Main body of script. ##
 
2652
## -------------------- ##
 
2653
 
 
2654
ac_ext=c
 
2655
ac_cpp='$CPP $CPPFLAGS'
 
2656
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2657
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2658
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2659
 
 
2660
 
 
2661
 
 
2662
 
 
2663
 
 
2664
am__api_version='1.11'
 
2665
 
 
2666
ac_aux_dir=
 
2667
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2668
  if test -f "$ac_dir/install-sh"; then
 
2669
    ac_aux_dir=$ac_dir
 
2670
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2671
    break
 
2672
  elif test -f "$ac_dir/install.sh"; then
 
2673
    ac_aux_dir=$ac_dir
 
2674
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2675
    break
 
2676
  elif test -f "$ac_dir/shtool"; then
 
2677
    ac_aux_dir=$ac_dir
 
2678
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2679
    break
 
2680
  fi
 
2681
done
 
2682
if test -z "$ac_aux_dir"; then
 
2683
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2684
fi
 
2685
 
 
2686
# These three variables are undocumented and unsupported,
 
2687
# and are intended to be withdrawn in a future Autoconf release.
 
2688
# They can cause serious problems if a builder's source tree is in a directory
 
2689
# whose full name contains unusual characters.
 
2690
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2691
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2692
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2693
 
 
2694
 
 
2695
# Find a good install program.  We prefer a C program (faster),
 
2696
# so one script is as good as another.  But avoid the broken or
 
2697
# incompatible versions:
 
2698
# SysV /etc/install, /usr/sbin/install
 
2699
# SunOS /usr/etc/install
 
2700
# IRIX /sbin/install
 
2701
# AIX /bin/install
 
2702
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2703
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2704
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2705
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2706
# OS/2's system install, which has a completely different semantic
 
2707
# ./install, which can be erroneously created by make from ./install.sh.
 
2708
# Reject install programs that cannot install multiple files.
 
2709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2710
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2711
if test -z "$INSTALL"; then
 
2712
if ${ac_cv_path_install+:} false; then :
 
2713
  $as_echo_n "(cached) " >&6
 
2714
else
 
2715
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2716
for as_dir in $PATH
 
2717
do
 
2718
  IFS=$as_save_IFS
 
2719
  test -z "$as_dir" && as_dir=.
 
2720
    # Account for people who put trailing slashes in PATH elements.
 
2721
case $as_dir/ in #((
 
2722
  ./ | .// | /[cC]/* | \
 
2723
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2724
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2725
  /usr/ucb/* ) ;;
 
2726
  *)
 
2727
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2728
    # Don't use installbsd from OSF since it installs stuff as root
 
2729
    # by default.
 
2730
    for ac_prog in ginstall scoinst install; do
 
2731
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2732
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2733
          if test $ac_prog = install &&
 
2734
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2735
            # AIX install.  It has an incompatible calling convention.
 
2736
            :
 
2737
          elif test $ac_prog = install &&
 
2738
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2739
            # program-specific install script used by HP pwplus--don't use.
 
2740
            :
 
2741
          else
 
2742
            rm -rf conftest.one conftest.two conftest.dir
 
2743
            echo one > conftest.one
 
2744
            echo two > conftest.two
 
2745
            mkdir conftest.dir
 
2746
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2747
              test -s conftest.one && test -s conftest.two &&
 
2748
              test -s conftest.dir/conftest.one &&
 
2749
              test -s conftest.dir/conftest.two
 
2750
            then
 
2751
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2752
              break 3
 
2753
            fi
 
2754
          fi
 
2755
        fi
 
2756
      done
 
2757
    done
 
2758
    ;;
 
2759
esac
 
2760
 
 
2761
  done
 
2762
IFS=$as_save_IFS
 
2763
 
 
2764
rm -rf conftest.one conftest.two conftest.dir
 
2765
 
 
2766
fi
 
2767
  if test "${ac_cv_path_install+set}" = set; then
 
2768
    INSTALL=$ac_cv_path_install
 
2769
  else
 
2770
    # As a last resort, use the slow shell script.  Don't cache a
 
2771
    # value for INSTALL within a source directory, because that will
 
2772
    # break other packages using the cache if that directory is
 
2773
    # removed, or if the value is a relative name.
 
2774
    INSTALL=$ac_install_sh
 
2775
  fi
 
2776
fi
 
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2778
$as_echo "$INSTALL" >&6; }
 
2779
 
 
2780
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2781
# It thinks the first close brace ends the variable substitution.
 
2782
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2783
 
 
2784
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2785
 
 
2786
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2787
 
 
2788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2789
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2790
# Just in case
 
2791
sleep 1
 
2792
echo timestamp > conftest.file
 
2793
# Reject unsafe characters in $srcdir or the absolute working directory
 
2794
# name.  Accept space and tab only in the latter.
 
2795
am_lf='
 
2796
'
 
2797
case `pwd` in
 
2798
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2799
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2800
esac
 
2801
case $srcdir in
 
2802
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2803
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2804
esac
 
2805
 
 
2806
# Do `set' in a subshell so we don't clobber the current shell's
 
2807
# arguments.  Must try -L first in case configure is actually a
 
2808
# symlink; some systems play weird games with the mod time of symlinks
 
2809
# (eg FreeBSD returns the mod time of the symlink's containing
 
2810
# directory).
 
2811
if (
 
2812
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2813
   if test "$*" = "X"; then
 
2814
      # -L didn't work.
 
2815
      set X `ls -t "$srcdir/configure" conftest.file`
 
2816
   fi
 
2817
   rm -f conftest.file
 
2818
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2819
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2820
 
 
2821
      # If neither matched, then we have a broken ls.  This can happen
 
2822
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2823
      # broken ls alias from the environment.  This has actually
 
2824
      # happened.  Such a system could not be considered "sane".
 
2825
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2826
alias in your environment" "$LINENO" 5
 
2827
   fi
 
2828
 
 
2829
   test "$2" = conftest.file
 
2830
   )
 
2831
then
 
2832
   # Ok.
 
2833
   :
 
2834
else
 
2835
   as_fn_error $? "newly created file is older than distributed files!
 
2836
Check your system clock" "$LINENO" 5
 
2837
fi
 
2838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2839
$as_echo "yes" >&6; }
 
2840
test "$program_prefix" != NONE &&
 
2841
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2842
# Use a double $ so make ignores it.
 
2843
test "$program_suffix" != NONE &&
 
2844
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2845
# Double any \ or $.
 
2846
# By default was `s,x,x', remove it if useless.
 
2847
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2848
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2849
 
 
2850
# expand $ac_aux_dir to an absolute path
 
2851
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2852
 
 
2853
if test x"${MISSING+set}" != xset; then
 
2854
  case $am_aux_dir in
 
2855
  *\ * | *\     *)
 
2856
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2857
  *)
 
2858
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2859
  esac
 
2860
fi
 
2861
# Use eval to expand $SHELL
 
2862
if eval "$MISSING --run true"; then
 
2863
  am_missing_run="$MISSING --run "
 
2864
else
 
2865
  am_missing_run=
 
2866
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2867
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2868
fi
 
2869
 
 
2870
if test x"${install_sh}" != xset; then
 
2871
  case $am_aux_dir in
 
2872
  *\ * | *\     *)
 
2873
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2874
  *)
 
2875
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2876
  esac
 
2877
fi
 
2878
 
 
2879
# Installed binaries are usually stripped using `strip' when the user
 
2880
# run `make install-strip'.  However `strip' might not be the right
 
2881
# tool to use in cross-compilation environments, therefore Automake
 
2882
# will honor the `STRIP' environment variable to overrule this program.
 
2883
if test "$cross_compiling" != no; then
 
2884
  if test -n "$ac_tool_prefix"; then
 
2885
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2886
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2888
$as_echo_n "checking for $ac_word... " >&6; }
 
2889
if ${ac_cv_prog_STRIP+:} false; then :
 
2890
  $as_echo_n "(cached) " >&6
 
2891
else
 
2892
  if test -n "$STRIP"; then
 
2893
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2894
else
 
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2896
for as_dir in $PATH
 
2897
do
 
2898
  IFS=$as_save_IFS
 
2899
  test -z "$as_dir" && as_dir=.
 
2900
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2902
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2903
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2904
    break 2
 
2905
  fi
 
2906
done
 
2907
  done
 
2908
IFS=$as_save_IFS
 
2909
 
 
2910
fi
 
2911
fi
 
2912
STRIP=$ac_cv_prog_STRIP
 
2913
if test -n "$STRIP"; then
 
2914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2915
$as_echo "$STRIP" >&6; }
 
2916
else
 
2917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2918
$as_echo "no" >&6; }
 
2919
fi
 
2920
 
 
2921
 
 
2922
fi
 
2923
if test -z "$ac_cv_prog_STRIP"; then
 
2924
  ac_ct_STRIP=$STRIP
 
2925
  # Extract the first word of "strip", so it can be a program name with args.
 
2926
set dummy strip; ac_word=$2
 
2927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2928
$as_echo_n "checking for $ac_word... " >&6; }
 
2929
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2930
  $as_echo_n "(cached) " >&6
 
2931
else
 
2932
  if test -n "$ac_ct_STRIP"; then
 
2933
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2934
else
 
2935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2936
for as_dir in $PATH
 
2937
do
 
2938
  IFS=$as_save_IFS
 
2939
  test -z "$as_dir" && as_dir=.
 
2940
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2941
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2942
    ac_cv_prog_ac_ct_STRIP="strip"
 
2943
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2944
    break 2
 
2945
  fi
 
2946
done
 
2947
  done
 
2948
IFS=$as_save_IFS
 
2949
 
 
2950
fi
 
2951
fi
 
2952
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2953
if test -n "$ac_ct_STRIP"; then
 
2954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2955
$as_echo "$ac_ct_STRIP" >&6; }
 
2956
else
 
2957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2958
$as_echo "no" >&6; }
 
2959
fi
 
2960
 
 
2961
  if test "x$ac_ct_STRIP" = x; then
 
2962
    STRIP=":"
 
2963
  else
 
2964
    case $cross_compiling:$ac_tool_warned in
 
2965
yes:)
 
2966
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2968
ac_tool_warned=yes ;;
 
2969
esac
 
2970
    STRIP=$ac_ct_STRIP
 
2971
  fi
 
2972
else
 
2973
  STRIP="$ac_cv_prog_STRIP"
 
2974
fi
 
2975
 
 
2976
fi
 
2977
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2978
 
 
2979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2980
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2981
if test -z "$MKDIR_P"; then
 
2982
  if ${ac_cv_path_mkdir+:} false; then :
 
2983
  $as_echo_n "(cached) " >&6
 
2984
else
 
2985
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2986
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2987
do
 
2988
  IFS=$as_save_IFS
 
2989
  test -z "$as_dir" && as_dir=.
 
2990
    for ac_prog in mkdir gmkdir; do
 
2991
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2992
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2993
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2994
             'mkdir (GNU coreutils) '* | \
 
2995
             'mkdir (coreutils) '* | \
 
2996
             'mkdir (fileutils) '4.1*)
 
2997
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2998
               break 3;;
 
2999
           esac
 
3000
         done
 
3001
       done
 
3002
  done
 
3003
IFS=$as_save_IFS
 
3004
 
 
3005
fi
 
3006
 
 
3007
  test -d ./--version && rmdir ./--version
 
3008
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3009
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3010
  else
 
3011
    # As a last resort, use the slow shell script.  Don't cache a
 
3012
    # value for MKDIR_P within a source directory, because that will
 
3013
    # break other packages using the cache if that directory is
 
3014
    # removed, or if the value is a relative name.
 
3015
    MKDIR_P="$ac_install_sh -d"
 
3016
  fi
 
3017
fi
 
3018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3019
$as_echo "$MKDIR_P" >&6; }
 
3020
 
 
3021
mkdir_p="$MKDIR_P"
 
3022
case $mkdir_p in
 
3023
  [\\/$]* | ?:[\\/]*) ;;
 
3024
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3025
esac
 
3026
 
 
3027
for ac_prog in gawk mawk nawk awk
 
3028
do
 
3029
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3030
set dummy $ac_prog; ac_word=$2
 
3031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3032
$as_echo_n "checking for $ac_word... " >&6; }
 
3033
if ${ac_cv_prog_AWK+:} false; then :
 
3034
  $as_echo_n "(cached) " >&6
 
3035
else
 
3036
  if test -n "$AWK"; then
 
3037
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3038
else
 
3039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3040
for as_dir in $PATH
 
3041
do
 
3042
  IFS=$as_save_IFS
 
3043
  test -z "$as_dir" && as_dir=.
 
3044
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3045
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3046
    ac_cv_prog_AWK="$ac_prog"
 
3047
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3048
    break 2
 
3049
  fi
 
3050
done
 
3051
  done
 
3052
IFS=$as_save_IFS
 
3053
 
 
3054
fi
 
3055
fi
 
3056
AWK=$ac_cv_prog_AWK
 
3057
if test -n "$AWK"; then
 
3058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3059
$as_echo "$AWK" >&6; }
 
3060
else
 
3061
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3062
$as_echo "no" >&6; }
 
3063
fi
 
3064
 
 
3065
 
 
3066
  test -n "$AWK" && break
 
3067
done
 
3068
 
 
3069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3070
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3071
set x ${MAKE-make}
 
3072
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3073
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
3074
  $as_echo_n "(cached) " >&6
 
3075
else
 
3076
  cat >conftest.make <<\_ACEOF
 
3077
SHELL = /bin/sh
 
3078
all:
 
3079
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3080
_ACEOF
 
3081
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3082
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3083
  *@@@%%%=?*=@@@%%%*)
 
3084
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3085
  *)
 
3086
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3087
esac
 
3088
rm -f conftest.make
 
3089
fi
 
3090
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3092
$as_echo "yes" >&6; }
 
3093
  SET_MAKE=
 
3094
else
 
3095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3096
$as_echo "no" >&6; }
 
3097
  SET_MAKE="MAKE=${MAKE-make}"
 
3098
fi
 
3099
 
 
3100
rm -rf .tst 2>/dev/null
 
3101
mkdir .tst 2>/dev/null
 
3102
if test -d .tst; then
 
3103
  am__leading_dot=.
 
3104
else
 
3105
  am__leading_dot=_
 
3106
fi
 
3107
rmdir .tst 2>/dev/null
 
3108
 
 
3109
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3110
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3111
  # is not polluted with repeated "-I."
 
3112
  am__isrc=' -I$(srcdir)'
 
3113
  # test to see if srcdir already configured
 
3114
  if test -f $srcdir/config.status; then
 
3115
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3116
  fi
 
3117
fi
 
3118
 
 
3119
# test whether we have cygpath
 
3120
if test -z "$CYGPATH_W"; then
 
3121
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3122
    CYGPATH_W='cygpath -w'
 
3123
  else
 
3124
    CYGPATH_W=echo
 
3125
  fi
 
3126
fi
 
3127
 
 
3128
 
 
3129
# Define the identity of the package.
 
3130
 PACKAGE='sflphone'
 
3131
 VERSION='1.1.0'
 
3132
 
 
3133
 
 
3134
cat >>confdefs.h <<_ACEOF
 
3135
#define PACKAGE "$PACKAGE"
 
3136
_ACEOF
 
3137
 
 
3138
 
 
3139
cat >>confdefs.h <<_ACEOF
 
3140
#define VERSION "$VERSION"
 
3141
_ACEOF
 
3142
 
 
3143
# Some tools Automake needs.
 
3144
 
 
3145
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3146
 
 
3147
 
 
3148
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3149
 
 
3150
 
 
3151
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3152
 
 
3153
 
 
3154
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3155
 
 
3156
 
 
3157
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3158
 
 
3159
# We need awk for the "check" target.  The system "awk" is bad on
 
3160
# some platforms.
 
3161
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
3162
# in the wild :-(  We should find a proper way to deprecate it ...
 
3163
AMTAR='$${TAR-tar}'
 
3164
 
 
3165
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
3166
 
 
3167
 
 
3168
 
 
3169
 
 
3170
 
 
3171
ac_config_headers="$ac_config_headers config.h"
 
3172
 
 
3173
 
 
3174
# Silent build by default. Use make V=1 to increase verbosity
 
3175
# Check whether --enable-silent-rules was given.
 
3176
if test "${enable_silent_rules+set}" = set; then :
 
3177
  enableval=$enable_silent_rules;
 
3178
fi
 
3179
 
 
3180
case $enable_silent_rules in
 
3181
yes) AM_DEFAULT_VERBOSITY=0;;
 
3182
no)  AM_DEFAULT_VERBOSITY=1;;
 
3183
*)   AM_DEFAULT_VERBOSITY=0;;
 
3184
esac
 
3185
am_make=${MAKE-make}
 
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
3187
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
3188
if ${am_cv_make_support_nested_variables+:} false; then :
 
3189
  $as_echo_n "(cached) " >&6
 
3190
else
 
3191
  if $as_echo 'TRUE=$(BAR$(V))
 
3192
BAR0=false
 
3193
BAR1=true
 
3194
V=1
 
3195
am__doit:
 
3196
        @$(TRUE)
 
3197
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
3198
  am_cv_make_support_nested_variables=yes
 
3199
else
 
3200
  am_cv_make_support_nested_variables=no
 
3201
fi
 
3202
fi
 
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
3204
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
3205
if test $am_cv_make_support_nested_variables = yes; then
 
3206
    AM_V='$(V)'
 
3207
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
3208
else
 
3209
  AM_V=$AM_DEFAULT_VERBOSITY
 
3210
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
3211
fi
 
3212
AM_BACKSLASH='\'
 
3213
 
 
3214
 
 
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3216
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3217
set x ${MAKE-make}
 
3218
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3219
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
3220
  $as_echo_n "(cached) " >&6
 
3221
else
 
3222
  cat >conftest.make <<\_ACEOF
 
3223
SHELL = /bin/sh
 
3224
all:
 
3225
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3226
_ACEOF
 
3227
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3228
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3229
  *@@@%%%=?*=@@@%%%*)
 
3230
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3231
  *)
 
3232
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3233
esac
 
3234
rm -f conftest.make
 
3235
fi
 
3236
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3238
$as_echo "yes" >&6; }
 
3239
  SET_MAKE=
 
3240
else
 
3241
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3242
$as_echo "no" >&6; }
 
3243
  SET_MAKE="MAKE=${MAKE-make}"
 
3244
fi
 
3245
 
 
3246
 
 
3247
 
 
3248
 
 
3249
ac_config_files="$ac_config_files test/Makefile"
 
3250
 
 
3251
 
 
3252
ac_config_files="$ac_config_files ringtones/Makefile"
 
3253
 
 
3254
 
 
3255
ac_config_files="$ac_config_files man/Makefile"
 
3256
 
 
3257
 
 
3258
ac_config_files="$ac_config_files doc/Makefile doc/dbus-api/Makefile doc/doxygen/Makefile"
 
3259
 
 
3260
 
 
3261
ac_ext=c
 
3262
ac_cpp='$CPP $CPPFLAGS'
 
3263
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3264
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3265
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3266
if test -n "$ac_tool_prefix"; then
 
3267
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3268
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3270
$as_echo_n "checking for $ac_word... " >&6; }
 
3271
if ${ac_cv_prog_CC+:} false; then :
 
3272
  $as_echo_n "(cached) " >&6
 
3273
else
 
3274
  if test -n "$CC"; then
 
3275
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3276
else
 
3277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3278
for as_dir in $PATH
 
3279
do
 
3280
  IFS=$as_save_IFS
 
3281
  test -z "$as_dir" && as_dir=.
 
3282
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3283
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3284
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3285
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3286
    break 2
 
3287
  fi
 
3288
done
 
3289
  done
 
3290
IFS=$as_save_IFS
 
3291
 
 
3292
fi
 
3293
fi
 
3294
CC=$ac_cv_prog_CC
 
3295
if test -n "$CC"; then
 
3296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3297
$as_echo "$CC" >&6; }
 
3298
else
 
3299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3300
$as_echo "no" >&6; }
 
3301
fi
 
3302
 
 
3303
 
 
3304
fi
 
3305
if test -z "$ac_cv_prog_CC"; then
 
3306
  ac_ct_CC=$CC
 
3307
  # Extract the first word of "gcc", so it can be a program name with args.
 
3308
set dummy gcc; ac_word=$2
 
3309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3310
$as_echo_n "checking for $ac_word... " >&6; }
 
3311
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3312
  $as_echo_n "(cached) " >&6
 
3313
else
 
3314
  if test -n "$ac_ct_CC"; then
 
3315
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3316
else
 
3317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3318
for as_dir in $PATH
 
3319
do
 
3320
  IFS=$as_save_IFS
 
3321
  test -z "$as_dir" && as_dir=.
 
3322
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3323
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3324
    ac_cv_prog_ac_ct_CC="gcc"
 
3325
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3326
    break 2
 
3327
  fi
 
3328
done
 
3329
  done
 
3330
IFS=$as_save_IFS
 
3331
 
 
3332
fi
 
3333
fi
 
3334
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3335
if test -n "$ac_ct_CC"; then
 
3336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3337
$as_echo "$ac_ct_CC" >&6; }
 
3338
else
 
3339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3340
$as_echo "no" >&6; }
 
3341
fi
 
3342
 
 
3343
  if test "x$ac_ct_CC" = x; then
 
3344
    CC=""
 
3345
  else
 
3346
    case $cross_compiling:$ac_tool_warned in
 
3347
yes:)
 
3348
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3349
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3350
ac_tool_warned=yes ;;
 
3351
esac
 
3352
    CC=$ac_ct_CC
 
3353
  fi
 
3354
else
 
3355
  CC="$ac_cv_prog_CC"
 
3356
fi
 
3357
 
 
3358
if test -z "$CC"; then
 
3359
          if test -n "$ac_tool_prefix"; then
 
3360
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3361
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3363
$as_echo_n "checking for $ac_word... " >&6; }
 
3364
if ${ac_cv_prog_CC+:} false; then :
 
3365
  $as_echo_n "(cached) " >&6
 
3366
else
 
3367
  if test -n "$CC"; then
 
3368
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3369
else
 
3370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3371
for as_dir in $PATH
 
3372
do
 
3373
  IFS=$as_save_IFS
 
3374
  test -z "$as_dir" && as_dir=.
 
3375
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3376
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3377
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3378
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3379
    break 2
 
3380
  fi
 
3381
done
 
3382
  done
 
3383
IFS=$as_save_IFS
 
3384
 
 
3385
fi
 
3386
fi
 
3387
CC=$ac_cv_prog_CC
 
3388
if test -n "$CC"; then
 
3389
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3390
$as_echo "$CC" >&6; }
 
3391
else
 
3392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3393
$as_echo "no" >&6; }
 
3394
fi
 
3395
 
 
3396
 
 
3397
  fi
 
3398
fi
 
3399
if test -z "$CC"; then
 
3400
  # Extract the first word of "cc", so it can be a program name with args.
 
3401
set dummy cc; ac_word=$2
 
3402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3403
$as_echo_n "checking for $ac_word... " >&6; }
 
3404
if ${ac_cv_prog_CC+:} false; then :
 
3405
  $as_echo_n "(cached) " >&6
 
3406
else
 
3407
  if test -n "$CC"; then
 
3408
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3409
else
 
3410
  ac_prog_rejected=no
 
3411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3412
for as_dir in $PATH
 
3413
do
 
3414
  IFS=$as_save_IFS
 
3415
  test -z "$as_dir" && as_dir=.
 
3416
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3417
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3418
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3419
       ac_prog_rejected=yes
 
3420
       continue
 
3421
     fi
 
3422
    ac_cv_prog_CC="cc"
 
3423
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3424
    break 2
 
3425
  fi
 
3426
done
 
3427
  done
 
3428
IFS=$as_save_IFS
 
3429
 
 
3430
if test $ac_prog_rejected = yes; then
 
3431
  # We found a bogon in the path, so make sure we never use it.
 
3432
  set dummy $ac_cv_prog_CC
 
3433
  shift
 
3434
  if test $# != 0; then
 
3435
    # We chose a different compiler from the bogus one.
 
3436
    # However, it has the same basename, so the bogon will be chosen
 
3437
    # first if we set CC to just the basename; use the full file name.
 
3438
    shift
 
3439
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3440
  fi
 
3441
fi
 
3442
fi
 
3443
fi
 
3444
CC=$ac_cv_prog_CC
 
3445
if test -n "$CC"; then
 
3446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3447
$as_echo "$CC" >&6; }
 
3448
else
 
3449
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3450
$as_echo "no" >&6; }
 
3451
fi
 
3452
 
 
3453
 
 
3454
fi
 
3455
if test -z "$CC"; then
 
3456
  if test -n "$ac_tool_prefix"; then
 
3457
  for ac_prog in cl.exe
 
3458
  do
 
3459
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3460
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3462
$as_echo_n "checking for $ac_word... " >&6; }
 
3463
if ${ac_cv_prog_CC+:} false; then :
 
3464
  $as_echo_n "(cached) " >&6
 
3465
else
 
3466
  if test -n "$CC"; then
 
3467
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3468
else
 
3469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3470
for as_dir in $PATH
 
3471
do
 
3472
  IFS=$as_save_IFS
 
3473
  test -z "$as_dir" && as_dir=.
 
3474
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3475
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3476
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3477
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3478
    break 2
 
3479
  fi
 
3480
done
 
3481
  done
 
3482
IFS=$as_save_IFS
 
3483
 
 
3484
fi
 
3485
fi
 
3486
CC=$ac_cv_prog_CC
 
3487
if test -n "$CC"; then
 
3488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3489
$as_echo "$CC" >&6; }
 
3490
else
 
3491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3492
$as_echo "no" >&6; }
 
3493
fi
 
3494
 
 
3495
 
 
3496
    test -n "$CC" && break
 
3497
  done
 
3498
fi
 
3499
if test -z "$CC"; then
 
3500
  ac_ct_CC=$CC
 
3501
  for ac_prog in cl.exe
 
3502
do
 
3503
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3504
set dummy $ac_prog; ac_word=$2
 
3505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3506
$as_echo_n "checking for $ac_word... " >&6; }
 
3507
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3508
  $as_echo_n "(cached) " >&6
 
3509
else
 
3510
  if test -n "$ac_ct_CC"; then
 
3511
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3512
else
 
3513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3514
for as_dir in $PATH
 
3515
do
 
3516
  IFS=$as_save_IFS
 
3517
  test -z "$as_dir" && as_dir=.
 
3518
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3520
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3521
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3522
    break 2
 
3523
  fi
 
3524
done
 
3525
  done
 
3526
IFS=$as_save_IFS
 
3527
 
 
3528
fi
 
3529
fi
 
3530
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3531
if test -n "$ac_ct_CC"; then
 
3532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3533
$as_echo "$ac_ct_CC" >&6; }
 
3534
else
 
3535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3536
$as_echo "no" >&6; }
 
3537
fi
 
3538
 
 
3539
 
 
3540
  test -n "$ac_ct_CC" && break
 
3541
done
 
3542
 
 
3543
  if test "x$ac_ct_CC" = x; then
 
3544
    CC=""
 
3545
  else
 
3546
    case $cross_compiling:$ac_tool_warned in
 
3547
yes:)
 
3548
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3549
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3550
ac_tool_warned=yes ;;
 
3551
esac
 
3552
    CC=$ac_ct_CC
 
3553
  fi
 
3554
fi
 
3555
 
 
3556
fi
 
3557
 
 
3558
 
 
3559
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3560
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3561
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3562
See \`config.log' for more details" "$LINENO" 5; }
 
3563
 
 
3564
# Provide some information about the compiler.
 
3565
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3566
set X $ac_compile
 
3567
ac_compiler=$2
 
3568
for ac_option in --version -v -V -qversion; do
 
3569
  { { ac_try="$ac_compiler $ac_option >&5"
 
3570
case "(($ac_try" in
 
3571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3572
  *) ac_try_echo=$ac_try;;
 
3573
esac
 
3574
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3575
$as_echo "$ac_try_echo"; } >&5
 
3576
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3577
  ac_status=$?
 
3578
  if test -s conftest.err; then
 
3579
    sed '10a\
 
3580
... rest of stderr output deleted ...
 
3581
         10q' conftest.err >conftest.er1
 
3582
    cat conftest.er1 >&5
 
3583
  fi
 
3584
  rm -f conftest.er1 conftest.err
 
3585
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3586
  test $ac_status = 0; }
 
3587
done
 
3588
 
 
3589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3590
/* end confdefs.h.  */
 
3591
 
 
3592
int
 
3593
main ()
 
3594
{
 
3595
 
 
3596
  ;
 
3597
  return 0;
 
3598
}
 
3599
_ACEOF
 
3600
ac_clean_files_save=$ac_clean_files
 
3601
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3602
# Try to create an executable without -o first, disregard a.out.
 
3603
# It will help us diagnose broken compilers, and finding out an intuition
 
3604
# of exeext.
 
3605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3606
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3607
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3608
 
 
3609
# The possible output files:
 
3610
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3611
 
 
3612
ac_rmfiles=
 
3613
for ac_file in $ac_files
 
3614
do
 
3615
  case $ac_file in
 
3616
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3617
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3618
  esac
 
3619
done
 
3620
rm -f $ac_rmfiles
 
3621
 
 
3622
if { { ac_try="$ac_link_default"
 
3623
case "(($ac_try" in
 
3624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3625
  *) ac_try_echo=$ac_try;;
 
3626
esac
 
3627
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3628
$as_echo "$ac_try_echo"; } >&5
 
3629
  (eval "$ac_link_default") 2>&5
 
3630
  ac_status=$?
 
3631
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3632
  test $ac_status = 0; }; then :
 
3633
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3634
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3635
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3636
# so that the user can short-circuit this test for compilers unknown to
 
3637
# Autoconf.
 
3638
for ac_file in $ac_files ''
 
3639
do
 
3640
  test -f "$ac_file" || continue
 
3641
  case $ac_file in
 
3642
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3643
        ;;
 
3644
    [ab].out )
 
3645
        # We found the default executable, but exeext='' is most
 
3646
        # certainly right.
 
3647
        break;;
 
3648
    *.* )
 
3649
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3650
        then :; else
 
3651
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3652
        fi
 
3653
        # We set ac_cv_exeext here because the later test for it is not
 
3654
        # safe: cross compilers may not add the suffix if given an `-o'
 
3655
        # argument, so we may need to know it at that point already.
 
3656
        # Even if this section looks crufty: it has the advantage of
 
3657
        # actually working.
 
3658
        break;;
 
3659
    * )
 
3660
        break;;
 
3661
  esac
 
3662
done
 
3663
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3664
 
 
3665
else
 
3666
  ac_file=''
 
3667
fi
 
3668
if test -z "$ac_file"; then :
 
3669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3670
$as_echo "no" >&6; }
 
3671
$as_echo "$as_me: failed program was:" >&5
 
3672
sed 's/^/| /' conftest.$ac_ext >&5
 
3673
 
 
3674
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3675
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3676
as_fn_error 77 "C compiler cannot create executables
 
3677
See \`config.log' for more details" "$LINENO" 5; }
 
3678
else
 
3679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3680
$as_echo "yes" >&6; }
 
3681
fi
 
3682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3683
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3685
$as_echo "$ac_file" >&6; }
 
3686
ac_exeext=$ac_cv_exeext
 
3687
 
 
3688
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3689
ac_clean_files=$ac_clean_files_save
 
3690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3691
$as_echo_n "checking for suffix of executables... " >&6; }
 
3692
if { { ac_try="$ac_link"
 
3693
case "(($ac_try" in
 
3694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3695
  *) ac_try_echo=$ac_try;;
 
3696
esac
 
3697
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3698
$as_echo "$ac_try_echo"; } >&5
 
3699
  (eval "$ac_link") 2>&5
 
3700
  ac_status=$?
 
3701
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3702
  test $ac_status = 0; }; then :
 
3703
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3704
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3705
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3706
# `rm'.
 
3707
for ac_file in conftest.exe conftest conftest.*; do
 
3708
  test -f "$ac_file" || continue
 
3709
  case $ac_file in
 
3710
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3711
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3712
          break;;
 
3713
    * ) break;;
 
3714
  esac
 
3715
done
 
3716
else
 
3717
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3718
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3719
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3720
See \`config.log' for more details" "$LINENO" 5; }
 
3721
fi
 
3722
rm -f conftest conftest$ac_cv_exeext
 
3723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3724
$as_echo "$ac_cv_exeext" >&6; }
 
3725
 
 
3726
rm -f conftest.$ac_ext
 
3727
EXEEXT=$ac_cv_exeext
 
3728
ac_exeext=$EXEEXT
 
3729
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3730
/* end confdefs.h.  */
 
3731
#include <stdio.h>
 
3732
int
 
3733
main ()
 
3734
{
 
3735
FILE *f = fopen ("conftest.out", "w");
 
3736
 return ferror (f) || fclose (f) != 0;
 
3737
 
 
3738
  ;
 
3739
  return 0;
 
3740
}
 
3741
_ACEOF
 
3742
ac_clean_files="$ac_clean_files conftest.out"
 
3743
# Check that the compiler produces executables we can run.  If not, either
 
3744
# the compiler is broken, or we cross compile.
 
3745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3746
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3747
if test "$cross_compiling" != yes; then
 
3748
  { { ac_try="$ac_link"
 
3749
case "(($ac_try" in
 
3750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3751
  *) ac_try_echo=$ac_try;;
 
3752
esac
 
3753
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3754
$as_echo "$ac_try_echo"; } >&5
 
3755
  (eval "$ac_link") 2>&5
 
3756
  ac_status=$?
 
3757
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3758
  test $ac_status = 0; }
 
3759
  if { ac_try='./conftest$ac_cv_exeext'
 
3760
  { { case "(($ac_try" in
 
3761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3762
  *) ac_try_echo=$ac_try;;
 
3763
esac
 
3764
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3765
$as_echo "$ac_try_echo"; } >&5
 
3766
  (eval "$ac_try") 2>&5
 
3767
  ac_status=$?
 
3768
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3769
  test $ac_status = 0; }; }; then
 
3770
    cross_compiling=no
 
3771
  else
 
3772
    if test "$cross_compiling" = maybe; then
 
3773
        cross_compiling=yes
 
3774
    else
 
3775
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3776
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3777
as_fn_error $? "cannot run C compiled programs.
 
3778
If you meant to cross compile, use \`--host'.
 
3779
See \`config.log' for more details" "$LINENO" 5; }
 
3780
    fi
 
3781
  fi
 
3782
fi
 
3783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3784
$as_echo "$cross_compiling" >&6; }
 
3785
 
 
3786
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3787
ac_clean_files=$ac_clean_files_save
 
3788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3789
$as_echo_n "checking for suffix of object files... " >&6; }
 
3790
if ${ac_cv_objext+:} false; then :
 
3791
  $as_echo_n "(cached) " >&6
 
3792
else
 
3793
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3794
/* end confdefs.h.  */
 
3795
 
 
3796
int
 
3797
main ()
 
3798
{
 
3799
 
 
3800
  ;
 
3801
  return 0;
 
3802
}
 
3803
_ACEOF
 
3804
rm -f conftest.o conftest.obj
 
3805
if { { ac_try="$ac_compile"
 
3806
case "(($ac_try" in
 
3807
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3808
  *) ac_try_echo=$ac_try;;
 
3809
esac
 
3810
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3811
$as_echo "$ac_try_echo"; } >&5
 
3812
  (eval "$ac_compile") 2>&5
 
3813
  ac_status=$?
 
3814
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3815
  test $ac_status = 0; }; then :
 
3816
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3817
  test -f "$ac_file" || continue;
 
3818
  case $ac_file in
 
3819
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3820
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3821
       break;;
 
3822
  esac
 
3823
done
 
3824
else
 
3825
  $as_echo "$as_me: failed program was:" >&5
 
3826
sed 's/^/| /' conftest.$ac_ext >&5
 
3827
 
 
3828
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3829
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3830
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3831
See \`config.log' for more details" "$LINENO" 5; }
 
3832
fi
 
3833
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3834
fi
 
3835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3836
$as_echo "$ac_cv_objext" >&6; }
 
3837
OBJEXT=$ac_cv_objext
 
3838
ac_objext=$OBJEXT
 
3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3840
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3841
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3842
  $as_echo_n "(cached) " >&6
 
3843
else
 
3844
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3845
/* end confdefs.h.  */
 
3846
 
 
3847
int
 
3848
main ()
 
3849
{
 
3850
#ifndef __GNUC__
 
3851
       choke me
 
3852
#endif
 
3853
 
 
3854
  ;
 
3855
  return 0;
 
3856
}
 
3857
_ACEOF
 
3858
if ac_fn_c_try_compile "$LINENO"; then :
 
3859
  ac_compiler_gnu=yes
 
3860
else
 
3861
  ac_compiler_gnu=no
 
3862
fi
 
3863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3864
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3865
 
 
3866
fi
 
3867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3868
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3869
if test $ac_compiler_gnu = yes; then
 
3870
  GCC=yes
 
3871
else
 
3872
  GCC=
 
3873
fi
 
3874
ac_test_CFLAGS=${CFLAGS+set}
 
3875
ac_save_CFLAGS=$CFLAGS
 
3876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3877
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3878
if ${ac_cv_prog_cc_g+:} false; then :
 
3879
  $as_echo_n "(cached) " >&6
 
3880
else
 
3881
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3882
   ac_c_werror_flag=yes
 
3883
   ac_cv_prog_cc_g=no
 
3884
   CFLAGS="-g"
 
3885
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3886
/* end confdefs.h.  */
 
3887
 
 
3888
int
 
3889
main ()
 
3890
{
 
3891
 
 
3892
  ;
 
3893
  return 0;
 
3894
}
 
3895
_ACEOF
 
3896
if ac_fn_c_try_compile "$LINENO"; then :
 
3897
  ac_cv_prog_cc_g=yes
 
3898
else
 
3899
  CFLAGS=""
 
3900
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3901
/* end confdefs.h.  */
 
3902
 
 
3903
int
 
3904
main ()
 
3905
{
 
3906
 
 
3907
  ;
 
3908
  return 0;
 
3909
}
 
3910
_ACEOF
 
3911
if ac_fn_c_try_compile "$LINENO"; then :
 
3912
 
 
3913
else
 
3914
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3915
         CFLAGS="-g"
 
3916
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3917
/* end confdefs.h.  */
 
3918
 
 
3919
int
 
3920
main ()
 
3921
{
 
3922
 
 
3923
  ;
 
3924
  return 0;
 
3925
}
 
3926
_ACEOF
 
3927
if ac_fn_c_try_compile "$LINENO"; then :
 
3928
  ac_cv_prog_cc_g=yes
 
3929
fi
 
3930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3931
fi
 
3932
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3933
fi
 
3934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3935
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3936
fi
 
3937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3938
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3939
if test "$ac_test_CFLAGS" = set; then
 
3940
  CFLAGS=$ac_save_CFLAGS
 
3941
elif test $ac_cv_prog_cc_g = yes; then
 
3942
  if test "$GCC" = yes; then
 
3943
    CFLAGS="-g -O2"
 
3944
  else
 
3945
    CFLAGS="-g"
 
3946
  fi
 
3947
else
 
3948
  if test "$GCC" = yes; then
 
3949
    CFLAGS="-O2"
 
3950
  else
 
3951
    CFLAGS=
 
3952
  fi
 
3953
fi
 
3954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3955
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3956
if ${ac_cv_prog_cc_c89+:} false; then :
 
3957
  $as_echo_n "(cached) " >&6
 
3958
else
 
3959
  ac_cv_prog_cc_c89=no
 
3960
ac_save_CC=$CC
 
3961
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3962
/* end confdefs.h.  */
 
3963
#include <stdarg.h>
 
3964
#include <stdio.h>
 
3965
#include <sys/types.h>
 
3966
#include <sys/stat.h>
 
3967
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3968
struct buf { int x; };
 
3969
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3970
static char *e (p, i)
 
3971
     char **p;
 
3972
     int i;
 
3973
{
 
3974
  return p[i];
 
3975
}
 
3976
static char *f (char * (*g) (char **, int), char **p, ...)
 
3977
{
 
3978
  char *s;
 
3979
  va_list v;
 
3980
  va_start (v,p);
 
3981
  s = g (p, va_arg (v,int));
 
3982
  va_end (v);
 
3983
  return s;
 
3984
}
 
3985
 
 
3986
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3987
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3988
   These don't provoke an error unfortunately, instead are silently treated
 
3989
   as 'x'.  The following induces an error, until -std is added to get
 
3990
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3991
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3992
   that's true only with -std.  */
 
3993
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3994
 
 
3995
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3996
   inside strings and character constants.  */
 
3997
#define FOO(x) 'x'
 
3998
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3999
 
 
4000
int test (int i, double x);
 
4001
struct s1 {int (*f) (int a);};
 
4002
struct s2 {int (*f) (double a);};
 
4003
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4004
int argc;
 
4005
char **argv;
 
4006
int
 
4007
main ()
 
4008
{
 
4009
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4010
  ;
 
4011
  return 0;
 
4012
}
 
4013
_ACEOF
 
4014
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4015
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4016
do
 
4017
  CC="$ac_save_CC $ac_arg"
 
4018
  if ac_fn_c_try_compile "$LINENO"; then :
 
4019
  ac_cv_prog_cc_c89=$ac_arg
 
4020
fi
 
4021
rm -f core conftest.err conftest.$ac_objext
 
4022
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4023
done
 
4024
rm -f conftest.$ac_ext
 
4025
CC=$ac_save_CC
 
4026
 
 
4027
fi
 
4028
# AC_CACHE_VAL
 
4029
case "x$ac_cv_prog_cc_c89" in
 
4030
  x)
 
4031
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4032
$as_echo "none needed" >&6; } ;;
 
4033
  xno)
 
4034
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4035
$as_echo "unsupported" >&6; } ;;
 
4036
  *)
 
4037
    CC="$CC $ac_cv_prog_cc_c89"
 
4038
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4039
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4040
esac
 
4041
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4042
 
 
4043
fi
 
4044
 
 
4045
ac_ext=c
 
4046
ac_cpp='$CPP $CPPFLAGS'
 
4047
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4048
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4049
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4050
DEPDIR="${am__leading_dot}deps"
 
4051
 
 
4052
ac_config_commands="$ac_config_commands depfiles"
 
4053
 
 
4054
 
 
4055
am_make=${MAKE-make}
 
4056
cat > confinc << 'END'
 
4057
am__doit:
 
4058
        @echo this is the am__doit target
 
4059
.PHONY: am__doit
 
4060
END
 
4061
# If we don't find an include directive, just comment out the code.
 
4062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4063
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
4064
am__include="#"
 
4065
am__quote=
 
4066
_am_result=none
 
4067
# First try GNU make style include.
 
4068
echo "include confinc" > confmf
 
4069
# Ignore all kinds of additional output from `make'.
 
4070
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4071
*the\ am__doit\ target*)
 
4072
  am__include=include
 
4073
  am__quote=
 
4074
  _am_result=GNU
 
4075
  ;;
 
4076
esac
 
4077
# Now try BSD make style include.
 
4078
if test "$am__include" = "#"; then
 
4079
   echo '.include "confinc"' > confmf
 
4080
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4081
   *the\ am__doit\ target*)
 
4082
     am__include=.include
 
4083
     am__quote="\""
 
4084
     _am_result=BSD
 
4085
     ;;
 
4086
   esac
 
4087
fi
 
4088
 
 
4089
 
 
4090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4091
$as_echo "$_am_result" >&6; }
 
4092
rm -f confinc confmf
 
4093
 
 
4094
# Check whether --enable-dependency-tracking was given.
 
4095
if test "${enable_dependency_tracking+set}" = set; then :
 
4096
  enableval=$enable_dependency_tracking;
 
4097
fi
 
4098
 
 
4099
if test "x$enable_dependency_tracking" != xno; then
 
4100
  am_depcomp="$ac_aux_dir/depcomp"
 
4101
  AMDEPBACKSLASH='\'
 
4102
  am__nodep='_no'
 
4103
fi
 
4104
 if test "x$enable_dependency_tracking" != xno; then
 
4105
  AMDEP_TRUE=
 
4106
  AMDEP_FALSE='#'
 
4107
else
 
4108
  AMDEP_TRUE='#'
 
4109
  AMDEP_FALSE=
 
4110
fi
 
4111
 
 
4112
 
 
4113
 
 
4114
depcc="$CC"   am_compiler_list=
 
4115
 
 
4116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4117
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4118
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4119
  $as_echo_n "(cached) " >&6
 
4120
else
 
4121
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4122
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4123
  # making bogus files that we don't know about and never remove.  For
 
4124
  # instance it was reported that on HP-UX the gcc test will end up
 
4125
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4126
  # in D'.
 
4127
  rm -rf conftest.dir
 
4128
  mkdir conftest.dir
 
4129
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4130
  # using a relative directory.
 
4131
  cp "$am_depcomp" conftest.dir
 
4132
  cd conftest.dir
 
4133
  # We will build objects and dependencies in a subdirectory because
 
4134
  # it helps to detect inapplicable dependency modes.  For instance
 
4135
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4136
  # side effect of compilation, but ICC will put the dependencies in
 
4137
  # the current directory while Tru64 will put them in the object
 
4138
  # directory.
 
4139
  mkdir sub
 
4140
 
 
4141
  am_cv_CC_dependencies_compiler_type=none
 
4142
  if test "$am_compiler_list" = ""; then
 
4143
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4144
  fi
 
4145
  am__universal=false
 
4146
  case " $depcc " in #(
 
4147
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4148
     esac
 
4149
 
 
4150
  for depmode in $am_compiler_list; do
 
4151
    # Setup a source with many dependencies, because some compilers
 
4152
    # like to wrap large dependency lists on column 80 (with \), and
 
4153
    # we should not choose a depcomp mode which is confused by this.
 
4154
    #
 
4155
    # We need to recreate these files for each test, as the compiler may
 
4156
    # overwrite some of them when testing with obscure command lines.
 
4157
    # This happens at least with the AIX C compiler.
 
4158
    : > sub/conftest.c
 
4159
    for i in 1 2 3 4 5 6; do
 
4160
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4161
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4162
      # Solaris 8's {/usr,}/bin/sh.
 
4163
      touch sub/conftst$i.h
 
4164
    done
 
4165
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4166
 
 
4167
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4168
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4169
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4170
    # versions had trouble with output in subdirs
 
4171
    am__obj=sub/conftest.${OBJEXT-o}
 
4172
    am__minus_obj="-o $am__obj"
 
4173
    case $depmode in
 
4174
    gcc)
 
4175
      # This depmode causes a compiler race in universal mode.
 
4176
      test "$am__universal" = false || continue
 
4177
      ;;
 
4178
    nosideeffect)
 
4179
      # after this tag, mechanisms are not by side-effect, so they'll
 
4180
      # only be used when explicitly requested
 
4181
      if test "x$enable_dependency_tracking" = xyes; then
 
4182
        continue
 
4183
      else
 
4184
        break
 
4185
      fi
 
4186
      ;;
 
4187
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4188
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4189
      # not run yet.  These depmodes are late enough in the game, and
 
4190
      # so weak that their functioning should not be impacted.
 
4191
      am__obj=conftest.${OBJEXT-o}
 
4192
      am__minus_obj=
 
4193
      ;;
 
4194
    none) break ;;
 
4195
    esac
 
4196
    if depmode=$depmode \
 
4197
       source=sub/conftest.c object=$am__obj \
 
4198
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4199
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4200
         >/dev/null 2>conftest.err &&
 
4201
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4202
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4203
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4204
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4205
      # icc doesn't choke on unknown options, it will just issue warnings
 
4206
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4207
      # that says an option was ignored or not supported.
 
4208
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4209
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4210
      # The diagnosis changed in icc 8.0:
 
4211
      #   icc: Command line remark: option '-MP' not supported
 
4212
      if (grep 'ignoring option' conftest.err ||
 
4213
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4214
        am_cv_CC_dependencies_compiler_type=$depmode
 
4215
        break
 
4216
      fi
 
4217
    fi
 
4218
  done
 
4219
 
 
4220
  cd ..
 
4221
  rm -rf conftest.dir
 
4222
else
 
4223
  am_cv_CC_dependencies_compiler_type=none
 
4224
fi
 
4225
 
 
4226
fi
 
4227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4228
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4229
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4230
 
 
4231
 if
 
4232
  test "x$enable_dependency_tracking" != xno \
 
4233
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4234
  am__fastdepCC_TRUE=
 
4235
  am__fastdepCC_FALSE='#'
 
4236
else
 
4237
  am__fastdepCC_TRUE='#'
 
4238
  am__fastdepCC_FALSE=
 
4239
fi
 
4240
 
 
4241
 
 
4242
ac_ext=cpp
 
4243
ac_cpp='$CXXCPP $CPPFLAGS'
 
4244
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4245
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4246
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4247
if test -z "$CXX"; then
 
4248
  if test -n "$CCC"; then
 
4249
    CXX=$CCC
 
4250
  else
 
4251
    if test -n "$ac_tool_prefix"; then
 
4252
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4253
  do
 
4254
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4255
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4257
$as_echo_n "checking for $ac_word... " >&6; }
 
4258
if ${ac_cv_prog_CXX+:} false; then :
 
4259
  $as_echo_n "(cached) " >&6
 
4260
else
 
4261
  if test -n "$CXX"; then
 
4262
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4263
else
 
4264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4265
for as_dir in $PATH
 
4266
do
 
4267
  IFS=$as_save_IFS
 
4268
  test -z "$as_dir" && as_dir=.
 
4269
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4270
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4271
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4272
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4273
    break 2
 
4274
  fi
 
4275
done
 
4276
  done
 
4277
IFS=$as_save_IFS
 
4278
 
 
4279
fi
 
4280
fi
 
4281
CXX=$ac_cv_prog_CXX
 
4282
if test -n "$CXX"; then
 
4283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
4284
$as_echo "$CXX" >&6; }
 
4285
else
 
4286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4287
$as_echo "no" >&6; }
 
4288
fi
 
4289
 
 
4290
 
 
4291
    test -n "$CXX" && break
 
4292
  done
 
4293
fi
 
4294
if test -z "$CXX"; then
 
4295
  ac_ct_CXX=$CXX
 
4296
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4297
do
 
4298
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4299
set dummy $ac_prog; ac_word=$2
 
4300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4301
$as_echo_n "checking for $ac_word... " >&6; }
 
4302
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
4303
  $as_echo_n "(cached) " >&6
 
4304
else
 
4305
  if test -n "$ac_ct_CXX"; then
 
4306
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4307
else
 
4308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4309
for as_dir in $PATH
 
4310
do
 
4311
  IFS=$as_save_IFS
 
4312
  test -z "$as_dir" && as_dir=.
 
4313
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4314
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4315
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4316
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4317
    break 2
 
4318
  fi
 
4319
done
 
4320
  done
 
4321
IFS=$as_save_IFS
 
4322
 
 
4323
fi
 
4324
fi
 
4325
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4326
if test -n "$ac_ct_CXX"; then
 
4327
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
4328
$as_echo "$ac_ct_CXX" >&6; }
 
4329
else
 
4330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4331
$as_echo "no" >&6; }
 
4332
fi
 
4333
 
 
4334
 
 
4335
  test -n "$ac_ct_CXX" && break
 
4336
done
 
4337
 
 
4338
  if test "x$ac_ct_CXX" = x; then
 
4339
    CXX="g++"
 
4340
  else
 
4341
    case $cross_compiling:$ac_tool_warned in
 
4342
yes:)
 
4343
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4344
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4345
ac_tool_warned=yes ;;
 
4346
esac
 
4347
    CXX=$ac_ct_CXX
 
4348
  fi
 
4349
fi
 
4350
 
 
4351
  fi
 
4352
fi
 
4353
# Provide some information about the compiler.
 
4354
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
4355
set X $ac_compile
 
4356
ac_compiler=$2
 
4357
for ac_option in --version -v -V -qversion; do
 
4358
  { { ac_try="$ac_compiler $ac_option >&5"
 
4359
case "(($ac_try" in
 
4360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4361
  *) ac_try_echo=$ac_try;;
 
4362
esac
 
4363
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4364
$as_echo "$ac_try_echo"; } >&5
 
4365
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4366
  ac_status=$?
 
4367
  if test -s conftest.err; then
 
4368
    sed '10a\
 
4369
... rest of stderr output deleted ...
 
4370
         10q' conftest.err >conftest.er1
 
4371
    cat conftest.er1 >&5
 
4372
  fi
 
4373
  rm -f conftest.er1 conftest.err
 
4374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4375
  test $ac_status = 0; }
 
4376
done
 
4377
 
 
4378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
4379
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
4380
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
4381
  $as_echo_n "(cached) " >&6
 
4382
else
 
4383
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4384
/* end confdefs.h.  */
 
4385
 
 
4386
int
 
4387
main ()
 
4388
{
 
4389
#ifndef __GNUC__
 
4390
       choke me
 
4391
#endif
 
4392
 
 
4393
  ;
 
4394
  return 0;
 
4395
}
 
4396
_ACEOF
 
4397
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4398
  ac_compiler_gnu=yes
 
4399
else
 
4400
  ac_compiler_gnu=no
 
4401
fi
 
4402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4403
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4404
 
 
4405
fi
 
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
4407
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
4408
if test $ac_compiler_gnu = yes; then
 
4409
  GXX=yes
 
4410
else
 
4411
  GXX=
 
4412
fi
 
4413
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4414
ac_save_CXXFLAGS=$CXXFLAGS
 
4415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
4416
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
4417
if ${ac_cv_prog_cxx_g+:} false; then :
 
4418
  $as_echo_n "(cached) " >&6
 
4419
else
 
4420
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
4421
   ac_cxx_werror_flag=yes
 
4422
   ac_cv_prog_cxx_g=no
 
4423
   CXXFLAGS="-g"
 
4424
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4425
/* end confdefs.h.  */
 
4426
 
 
4427
int
 
4428
main ()
 
4429
{
 
4430
 
 
4431
  ;
 
4432
  return 0;
 
4433
}
 
4434
_ACEOF
 
4435
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4436
  ac_cv_prog_cxx_g=yes
 
4437
else
 
4438
  CXXFLAGS=""
 
4439
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4440
/* end confdefs.h.  */
 
4441
 
 
4442
int
 
4443
main ()
 
4444
{
 
4445
 
 
4446
  ;
 
4447
  return 0;
 
4448
}
 
4449
_ACEOF
 
4450
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4451
 
 
4452
else
 
4453
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4454
         CXXFLAGS="-g"
 
4455
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4456
/* end confdefs.h.  */
 
4457
 
 
4458
int
 
4459
main ()
 
4460
{
 
4461
 
 
4462
  ;
 
4463
  return 0;
 
4464
}
 
4465
_ACEOF
 
4466
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4467
  ac_cv_prog_cxx_g=yes
 
4468
fi
 
4469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4470
fi
 
4471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4472
fi
 
4473
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4474
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4475
fi
 
4476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
4477
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
4478
if test "$ac_test_CXXFLAGS" = set; then
 
4479
  CXXFLAGS=$ac_save_CXXFLAGS
 
4480
elif test $ac_cv_prog_cxx_g = yes; then
 
4481
  if test "$GXX" = yes; then
 
4482
    CXXFLAGS="-g -O2"
 
4483
  else
 
4484
    CXXFLAGS="-g"
 
4485
  fi
 
4486
else
 
4487
  if test "$GXX" = yes; then
 
4488
    CXXFLAGS="-O2"
 
4489
  else
 
4490
    CXXFLAGS=
 
4491
  fi
 
4492
fi
 
4493
ac_ext=c
 
4494
ac_cpp='$CPP $CPPFLAGS'
 
4495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4498
 
 
4499
depcc="$CXX"  am_compiler_list=
 
4500
 
 
4501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4502
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4503
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
4504
  $as_echo_n "(cached) " >&6
 
4505
else
 
4506
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4507
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4508
  # making bogus files that we don't know about and never remove.  For
 
4509
  # instance it was reported that on HP-UX the gcc test will end up
 
4510
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4511
  # in D'.
 
4512
  rm -rf conftest.dir
 
4513
  mkdir conftest.dir
 
4514
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4515
  # using a relative directory.
 
4516
  cp "$am_depcomp" conftest.dir
 
4517
  cd conftest.dir
 
4518
  # We will build objects and dependencies in a subdirectory because
 
4519
  # it helps to detect inapplicable dependency modes.  For instance
 
4520
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4521
  # side effect of compilation, but ICC will put the dependencies in
 
4522
  # the current directory while Tru64 will put them in the object
 
4523
  # directory.
 
4524
  mkdir sub
 
4525
 
 
4526
  am_cv_CXX_dependencies_compiler_type=none
 
4527
  if test "$am_compiler_list" = ""; then
 
4528
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4529
  fi
 
4530
  am__universal=false
 
4531
  case " $depcc " in #(
 
4532
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4533
     esac
 
4534
 
 
4535
  for depmode in $am_compiler_list; do
 
4536
    # Setup a source with many dependencies, because some compilers
 
4537
    # like to wrap large dependency lists on column 80 (with \), and
 
4538
    # we should not choose a depcomp mode which is confused by this.
 
4539
    #
 
4540
    # We need to recreate these files for each test, as the compiler may
 
4541
    # overwrite some of them when testing with obscure command lines.
 
4542
    # This happens at least with the AIX C compiler.
 
4543
    : > sub/conftest.c
 
4544
    for i in 1 2 3 4 5 6; do
 
4545
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4546
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4547
      # Solaris 8's {/usr,}/bin/sh.
 
4548
      touch sub/conftst$i.h
 
4549
    done
 
4550
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4551
 
 
4552
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4553
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4554
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4555
    # versions had trouble with output in subdirs
 
4556
    am__obj=sub/conftest.${OBJEXT-o}
 
4557
    am__minus_obj="-o $am__obj"
 
4558
    case $depmode in
 
4559
    gcc)
 
4560
      # This depmode causes a compiler race in universal mode.
 
4561
      test "$am__universal" = false || continue
 
4562
      ;;
 
4563
    nosideeffect)
 
4564
      # after this tag, mechanisms are not by side-effect, so they'll
 
4565
      # only be used when explicitly requested
 
4566
      if test "x$enable_dependency_tracking" = xyes; then
 
4567
        continue
 
4568
      else
 
4569
        break
 
4570
      fi
 
4571
      ;;
 
4572
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4573
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4574
      # not run yet.  These depmodes are late enough in the game, and
 
4575
      # so weak that their functioning should not be impacted.
 
4576
      am__obj=conftest.${OBJEXT-o}
 
4577
      am__minus_obj=
 
4578
      ;;
 
4579
    none) break ;;
 
4580
    esac
 
4581
    if depmode=$depmode \
 
4582
       source=sub/conftest.c object=$am__obj \
 
4583
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4584
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4585
         >/dev/null 2>conftest.err &&
 
4586
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4587
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4588
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4589
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4590
      # icc doesn't choke on unknown options, it will just issue warnings
 
4591
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4592
      # that says an option was ignored or not supported.
 
4593
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4594
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4595
      # The diagnosis changed in icc 8.0:
 
4596
      #   icc: Command line remark: option '-MP' not supported
 
4597
      if (grep 'ignoring option' conftest.err ||
 
4598
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4599
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4600
        break
 
4601
      fi
 
4602
    fi
 
4603
  done
 
4604
 
 
4605
  cd ..
 
4606
  rm -rf conftest.dir
 
4607
else
 
4608
  am_cv_CXX_dependencies_compiler_type=none
 
4609
fi
 
4610
 
 
4611
fi
 
4612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4613
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4614
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4615
 
 
4616
 if
 
4617
  test "x$enable_dependency_tracking" != xno \
 
4618
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4619
  am__fastdepCXX_TRUE=
 
4620
  am__fastdepCXX_FALSE='#'
 
4621
else
 
4622
  am__fastdepCXX_TRUE='#'
 
4623
  am__fastdepCXX_FALSE=
 
4624
fi
 
4625
 
 
4626
 
 
4627
ac_ext=c
 
4628
ac_cpp='$CPP $CPPFLAGS'
 
4629
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4630
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4631
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4633
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4634
# On Suns, sometimes $CPP names a directory.
 
4635
if test -n "$CPP" && test -d "$CPP"; then
 
4636
  CPP=
 
4637
fi
 
4638
if test -z "$CPP"; then
 
4639
  if ${ac_cv_prog_CPP+:} false; then :
 
4640
  $as_echo_n "(cached) " >&6
 
4641
else
 
4642
      # Double quotes because CPP needs to be expanded
 
4643
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4644
    do
 
4645
      ac_preproc_ok=false
 
4646
for ac_c_preproc_warn_flag in '' yes
 
4647
do
 
4648
  # Use a header file that comes with gcc, so configuring glibc
 
4649
  # with a fresh cross-compiler works.
 
4650
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4651
  # <limits.h> exists even on freestanding compilers.
 
4652
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4653
  # not just through cpp. "Syntax error" is here to catch this case.
 
4654
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4655
/* end confdefs.h.  */
 
4656
#ifdef __STDC__
 
4657
# include <limits.h>
 
4658
#else
 
4659
# include <assert.h>
 
4660
#endif
 
4661
                     Syntax error
 
4662
_ACEOF
 
4663
if ac_fn_c_try_cpp "$LINENO"; then :
 
4664
 
 
4665
else
 
4666
  # Broken: fails on valid input.
 
4667
continue
 
4668
fi
 
4669
rm -f conftest.err conftest.i conftest.$ac_ext
 
4670
 
 
4671
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4672
  # can be detected and how.
 
4673
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4674
/* end confdefs.h.  */
 
4675
#include <ac_nonexistent.h>
 
4676
_ACEOF
 
4677
if ac_fn_c_try_cpp "$LINENO"; then :
 
4678
  # Broken: success on invalid input.
 
4679
continue
 
4680
else
 
4681
  # Passes both tests.
 
4682
ac_preproc_ok=:
 
4683
break
 
4684
fi
 
4685
rm -f conftest.err conftest.i conftest.$ac_ext
 
4686
 
 
4687
done
 
4688
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4689
rm -f conftest.i conftest.err conftest.$ac_ext
 
4690
if $ac_preproc_ok; then :
 
4691
  break
 
4692
fi
 
4693
 
 
4694
    done
 
4695
    ac_cv_prog_CPP=$CPP
 
4696
 
 
4697
fi
 
4698
  CPP=$ac_cv_prog_CPP
 
4699
else
 
4700
  ac_cv_prog_CPP=$CPP
 
4701
fi
 
4702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4703
$as_echo "$CPP" >&6; }
 
4704
ac_preproc_ok=false
 
4705
for ac_c_preproc_warn_flag in '' yes
 
4706
do
 
4707
  # Use a header file that comes with gcc, so configuring glibc
 
4708
  # with a fresh cross-compiler works.
 
4709
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4710
  # <limits.h> exists even on freestanding compilers.
 
4711
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4712
  # not just through cpp. "Syntax error" is here to catch this case.
 
4713
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4714
/* end confdefs.h.  */
 
4715
#ifdef __STDC__
 
4716
# include <limits.h>
 
4717
#else
 
4718
# include <assert.h>
 
4719
#endif
 
4720
                     Syntax error
 
4721
_ACEOF
 
4722
if ac_fn_c_try_cpp "$LINENO"; then :
 
4723
 
 
4724
else
 
4725
  # Broken: fails on valid input.
 
4726
continue
 
4727
fi
 
4728
rm -f conftest.err conftest.i conftest.$ac_ext
 
4729
 
 
4730
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4731
  # can be detected and how.
 
4732
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4733
/* end confdefs.h.  */
 
4734
#include <ac_nonexistent.h>
 
4735
_ACEOF
 
4736
if ac_fn_c_try_cpp "$LINENO"; then :
 
4737
  # Broken: success on invalid input.
 
4738
continue
 
4739
else
 
4740
  # Passes both tests.
 
4741
ac_preproc_ok=:
 
4742
break
 
4743
fi
 
4744
rm -f conftest.err conftest.i conftest.$ac_ext
 
4745
 
 
4746
done
 
4747
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4748
rm -f conftest.i conftest.err conftest.$ac_ext
 
4749
if $ac_preproc_ok; then :
 
4750
 
 
4751
else
 
4752
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4753
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4754
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
4755
See \`config.log' for more details" "$LINENO" 5; }
 
4756
fi
 
4757
 
 
4758
ac_ext=c
 
4759
ac_cpp='$CPP $CPPFLAGS'
 
4760
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4761
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4762
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4763
 
 
4764
 
 
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4766
$as_echo_n "checking whether ln -s works... " >&6; }
 
4767
LN_S=$as_ln_s
 
4768
if test "$LN_S" = "ln -s"; then
 
4769
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4770
$as_echo "yes" >&6; }
 
4771
else
 
4772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4773
$as_echo "no, using $LN_S" >&6; }
 
4774
fi
 
4775
 
 
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
4777
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
4778
set x ${MAKE-make}
 
4779
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
4780
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
4781
  $as_echo_n "(cached) " >&6
 
4782
else
 
4783
  cat >conftest.make <<\_ACEOF
 
4784
SHELL = /bin/sh
 
4785
all:
 
4786
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
4787
_ACEOF
 
4788
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
4789
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
4790
  *@@@%%%=?*=@@@%%%*)
 
4791
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
4792
  *)
 
4793
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
4794
esac
 
4795
rm -f conftest.make
 
4796
fi
 
4797
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
4798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4799
$as_echo "yes" >&6; }
 
4800
  SET_MAKE=
 
4801
else
 
4802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4803
$as_echo "no" >&6; }
 
4804
  SET_MAKE="MAKE=${MAKE-make}"
 
4805
fi
 
4806
 
 
4807
 
 
4808
case `pwd` in
 
4809
  *\ * | *\     *)
 
4810
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4811
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4812
esac
 
4813
 
 
4814
 
 
4815
 
 
4816
macro_version='2.4.2'
 
4817
macro_revision='1.3337'
 
4818
 
 
4819
 
 
4820
 
 
4821
 
 
4822
 
 
4823
 
 
4824
 
 
4825
 
 
4826
 
 
4827
 
 
4828
 
 
4829
 
 
4830
 
 
4831
ltmain="$ac_aux_dir/ltmain.sh"
 
4832
 
 
4833
# Make sure we can run config.sub.
 
4834
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4835
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4836
 
 
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4838
$as_echo_n "checking build system type... " >&6; }
 
4839
if ${ac_cv_build+:} false; then :
 
4840
  $as_echo_n "(cached) " >&6
 
4841
else
 
4842
  ac_build_alias=$build_alias
 
4843
test "x$ac_build_alias" = x &&
 
4844
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4845
test "x$ac_build_alias" = x &&
 
4846
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4847
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4848
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4849
 
 
4850
fi
 
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4852
$as_echo "$ac_cv_build" >&6; }
 
4853
case $ac_cv_build in
 
4854
*-*-*) ;;
 
4855
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4856
esac
 
4857
build=$ac_cv_build
 
4858
ac_save_IFS=$IFS; IFS='-'
 
4859
set x $ac_cv_build
 
4860
shift
 
4861
build_cpu=$1
 
4862
build_vendor=$2
 
4863
shift; shift
 
4864
# Remember, the first character of IFS is used to create $*,
 
4865
# except with old shells:
 
4866
build_os=$*
 
4867
IFS=$ac_save_IFS
 
4868
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4869
 
 
4870
 
 
4871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4872
$as_echo_n "checking host system type... " >&6; }
 
4873
if ${ac_cv_host+:} false; then :
 
4874
  $as_echo_n "(cached) " >&6
 
4875
else
 
4876
  if test "x$host_alias" = x; then
 
4877
  ac_cv_host=$ac_cv_build
 
4878
else
 
4879
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4880
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4881
fi
 
4882
 
 
4883
fi
 
4884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4885
$as_echo "$ac_cv_host" >&6; }
 
4886
case $ac_cv_host in
 
4887
*-*-*) ;;
 
4888
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4889
esac
 
4890
host=$ac_cv_host
 
4891
ac_save_IFS=$IFS; IFS='-'
 
4892
set x $ac_cv_host
 
4893
shift
 
4894
host_cpu=$1
 
4895
host_vendor=$2
 
4896
shift; shift
 
4897
# Remember, the first character of IFS is used to create $*,
 
4898
# except with old shells:
 
4899
host_os=$*
 
4900
IFS=$ac_save_IFS
 
4901
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4902
 
 
4903
 
 
4904
# Backslashify metacharacters that are still active within
 
4905
# double-quoted strings.
 
4906
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4907
 
 
4908
# Same as above, but do not quote variable references.
 
4909
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4910
 
 
4911
# Sed substitution to delay expansion of an escaped shell variable in a
 
4912
# double_quote_subst'ed string.
 
4913
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4914
 
 
4915
# Sed substitution to delay expansion of an escaped single quote.
 
4916
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4917
 
 
4918
# Sed substitution to avoid accidental globbing in evaled expressions
 
4919
no_glob_subst='s/\*/\\\*/g'
 
4920
 
 
4921
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4922
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4923
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4924
 
 
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4926
$as_echo_n "checking how to print strings... " >&6; }
 
4927
# Test print first, because it will be a builtin if present.
 
4928
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4929
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4930
  ECHO='print -r --'
 
4931
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4932
  ECHO='printf %s\n'
 
4933
else
 
4934
  # Use this function as a fallback that always works.
 
4935
  func_fallback_echo ()
 
4936
  {
 
4937
    eval 'cat <<_LTECHO_EOF
 
4938
$1
 
4939
_LTECHO_EOF'
 
4940
  }
 
4941
  ECHO='func_fallback_echo'
 
4942
fi
 
4943
 
 
4944
# func_echo_all arg...
 
4945
# Invoke $ECHO with all args, space-separated.
 
4946
func_echo_all ()
 
4947
{
 
4948
    $ECHO ""
 
4949
}
 
4950
 
 
4951
case "$ECHO" in
 
4952
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4953
$as_echo "printf" >&6; } ;;
 
4954
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4955
$as_echo "print -r" >&6; } ;;
 
4956
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4957
$as_echo "cat" >&6; } ;;
 
4958
esac
 
4959
 
 
4960
 
 
4961
 
 
4962
 
 
4963
 
 
4964
 
 
4965
 
 
4966
 
 
4967
 
 
4968
 
 
4969
 
 
4970
 
 
4971
 
 
4972
 
 
4973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4974
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4975
if ${ac_cv_path_SED+:} false; then :
 
4976
  $as_echo_n "(cached) " >&6
 
4977
else
 
4978
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4979
     for ac_i in 1 2 3 4 5 6 7; do
 
4980
       ac_script="$ac_script$as_nl$ac_script"
 
4981
     done
 
4982
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4983
     { ac_script=; unset ac_script;}
 
4984
     if test -z "$SED"; then
 
4985
  ac_path_SED_found=false
 
4986
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4987
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4988
for as_dir in $PATH
 
4989
do
 
4990
  IFS=$as_save_IFS
 
4991
  test -z "$as_dir" && as_dir=.
 
4992
    for ac_prog in sed gsed; do
 
4993
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4994
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4995
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4996
# Check for GNU ac_path_SED and select it if it is found.
 
4997
  # Check for GNU $ac_path_SED
 
4998
case `"$ac_path_SED" --version 2>&1` in
 
4999
*GNU*)
 
5000
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5001
*)
 
5002
  ac_count=0
 
5003
  $as_echo_n 0123456789 >"conftest.in"
 
5004
  while :
 
5005
  do
 
5006
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5007
    mv "conftest.tmp" "conftest.in"
 
5008
    cp "conftest.in" "conftest.nl"
 
5009
    $as_echo '' >> "conftest.nl"
 
5010
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5011
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5012
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5013
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5014
      # Best one so far, save it but keep looking for a better one
 
5015
      ac_cv_path_SED="$ac_path_SED"
 
5016
      ac_path_SED_max=$ac_count
 
5017
    fi
 
5018
    # 10*(2^10) chars as input seems more than enough
 
5019
    test $ac_count -gt 10 && break
 
5020
  done
 
5021
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5022
esac
 
5023
 
 
5024
      $ac_path_SED_found && break 3
 
5025
    done
 
5026
  done
 
5027
  done
 
5028
IFS=$as_save_IFS
 
5029
  if test -z "$ac_cv_path_SED"; then
 
5030
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5031
  fi
 
5032
else
 
5033
  ac_cv_path_SED=$SED
 
5034
fi
 
5035
 
 
5036
fi
 
5037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5038
$as_echo "$ac_cv_path_SED" >&6; }
 
5039
 SED="$ac_cv_path_SED"
 
5040
  rm -f conftest.sed
 
5041
 
 
5042
test -z "$SED" && SED=sed
 
5043
Xsed="$SED -e 1s/^X//"
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
 
 
5053
 
 
5054
 
 
5055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
5056
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
5057
if ${ac_cv_path_GREP+:} false; then :
 
5058
  $as_echo_n "(cached) " >&6
 
5059
else
 
5060
  if test -z "$GREP"; then
 
5061
  ac_path_GREP_found=false
 
5062
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5063
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5064
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5065
do
 
5066
  IFS=$as_save_IFS
 
5067
  test -z "$as_dir" && as_dir=.
 
5068
    for ac_prog in grep ggrep; do
 
5069
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5070
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
5071
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
5072
# Check for GNU ac_path_GREP and select it if it is found.
 
5073
  # Check for GNU $ac_path_GREP
 
5074
case `"$ac_path_GREP" --version 2>&1` in
 
5075
*GNU*)
 
5076
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5077
*)
 
5078
  ac_count=0
 
5079
  $as_echo_n 0123456789 >"conftest.in"
 
5080
  while :
 
5081
  do
 
5082
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5083
    mv "conftest.tmp" "conftest.in"
 
5084
    cp "conftest.in" "conftest.nl"
 
5085
    $as_echo 'GREP' >> "conftest.nl"
 
5086
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5087
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5088
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5089
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5090
      # Best one so far, save it but keep looking for a better one
 
5091
      ac_cv_path_GREP="$ac_path_GREP"
 
5092
      ac_path_GREP_max=$ac_count
 
5093
    fi
 
5094
    # 10*(2^10) chars as input seems more than enough
 
5095
    test $ac_count -gt 10 && break
 
5096
  done
 
5097
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5098
esac
 
5099
 
 
5100
      $ac_path_GREP_found && break 3
 
5101
    done
 
5102
  done
 
5103
  done
 
5104
IFS=$as_save_IFS
 
5105
  if test -z "$ac_cv_path_GREP"; then
 
5106
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5107
  fi
 
5108
else
 
5109
  ac_cv_path_GREP=$GREP
 
5110
fi
 
5111
 
 
5112
fi
 
5113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5114
$as_echo "$ac_cv_path_GREP" >&6; }
 
5115
 GREP="$ac_cv_path_GREP"
 
5116
 
 
5117
 
 
5118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5119
$as_echo_n "checking for egrep... " >&6; }
 
5120
if ${ac_cv_path_EGREP+:} false; then :
 
5121
  $as_echo_n "(cached) " >&6
 
5122
else
 
5123
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5124
   then ac_cv_path_EGREP="$GREP -E"
 
5125
   else
 
5126
     if test -z "$EGREP"; then
 
5127
  ac_path_EGREP_found=false
 
5128
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5129
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5130
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5131
do
 
5132
  IFS=$as_save_IFS
 
5133
  test -z "$as_dir" && as_dir=.
 
5134
    for ac_prog in egrep; do
 
5135
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5136
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5137
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
5138
# Check for GNU ac_path_EGREP and select it if it is found.
 
5139
  # Check for GNU $ac_path_EGREP
 
5140
case `"$ac_path_EGREP" --version 2>&1` in
 
5141
*GNU*)
 
5142
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5143
*)
 
5144
  ac_count=0
 
5145
  $as_echo_n 0123456789 >"conftest.in"
 
5146
  while :
 
5147
  do
 
5148
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5149
    mv "conftest.tmp" "conftest.in"
 
5150
    cp "conftest.in" "conftest.nl"
 
5151
    $as_echo 'EGREP' >> "conftest.nl"
 
5152
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5153
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5154
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5155
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5156
      # Best one so far, save it but keep looking for a better one
 
5157
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5158
      ac_path_EGREP_max=$ac_count
 
5159
    fi
 
5160
    # 10*(2^10) chars as input seems more than enough
 
5161
    test $ac_count -gt 10 && break
 
5162
  done
 
5163
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5164
esac
 
5165
 
 
5166
      $ac_path_EGREP_found && break 3
 
5167
    done
 
5168
  done
 
5169
  done
 
5170
IFS=$as_save_IFS
 
5171
  if test -z "$ac_cv_path_EGREP"; then
 
5172
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5173
  fi
 
5174
else
 
5175
  ac_cv_path_EGREP=$EGREP
 
5176
fi
 
5177
 
 
5178
   fi
 
5179
fi
 
5180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5181
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5182
 EGREP="$ac_cv_path_EGREP"
 
5183
 
 
5184
 
 
5185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5186
$as_echo_n "checking for fgrep... " >&6; }
 
5187
if ${ac_cv_path_FGREP+:} false; then :
 
5188
  $as_echo_n "(cached) " >&6
 
5189
else
 
5190
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5191
   then ac_cv_path_FGREP="$GREP -F"
 
5192
   else
 
5193
     if test -z "$FGREP"; then
 
5194
  ac_path_FGREP_found=false
 
5195
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5196
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5197
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5198
do
 
5199
  IFS=$as_save_IFS
 
5200
  test -z "$as_dir" && as_dir=.
 
5201
    for ac_prog in fgrep; do
 
5202
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5203
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5204
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
5205
# Check for GNU ac_path_FGREP and select it if it is found.
 
5206
  # Check for GNU $ac_path_FGREP
 
5207
case `"$ac_path_FGREP" --version 2>&1` in
 
5208
*GNU*)
 
5209
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5210
*)
 
5211
  ac_count=0
 
5212
  $as_echo_n 0123456789 >"conftest.in"
 
5213
  while :
 
5214
  do
 
5215
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5216
    mv "conftest.tmp" "conftest.in"
 
5217
    cp "conftest.in" "conftest.nl"
 
5218
    $as_echo 'FGREP' >> "conftest.nl"
 
5219
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5220
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5221
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5222
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5223
      # Best one so far, save it but keep looking for a better one
 
5224
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5225
      ac_path_FGREP_max=$ac_count
 
5226
    fi
 
5227
    # 10*(2^10) chars as input seems more than enough
 
5228
    test $ac_count -gt 10 && break
 
5229
  done
 
5230
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5231
esac
 
5232
 
 
5233
      $ac_path_FGREP_found && break 3
 
5234
    done
 
5235
  done
 
5236
  done
 
5237
IFS=$as_save_IFS
 
5238
  if test -z "$ac_cv_path_FGREP"; then
 
5239
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5240
  fi
 
5241
else
 
5242
  ac_cv_path_FGREP=$FGREP
 
5243
fi
 
5244
 
 
5245
   fi
 
5246
fi
 
5247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5248
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5249
 FGREP="$ac_cv_path_FGREP"
 
5250
 
 
5251
 
 
5252
test -z "$GREP" && GREP=grep
 
5253
 
 
5254
 
 
5255
 
 
5256
 
 
5257
 
 
5258
 
 
5259
 
 
5260
 
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
 
5266
 
 
5267
 
 
5268
 
 
5269
 
 
5270
 
 
5271
 
 
5272
# Check whether --with-gnu-ld was given.
 
5273
if test "${with_gnu_ld+set}" = set; then :
 
5274
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5275
else
 
5276
  with_gnu_ld=no
 
5277
fi
 
5278
 
 
5279
ac_prog=ld
 
5280
if test "$GCC" = yes; then
 
5281
  # Check if gcc -print-prog-name=ld gives a path.
 
5282
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5283
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5284
  case $host in
 
5285
  *-*-mingw*)
 
5286
    # gcc leaves a trailing carriage return which upsets mingw
 
5287
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5288
  *)
 
5289
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5290
  esac
 
5291
  case $ac_prog in
 
5292
    # Accept absolute paths.
 
5293
    [\\/]* | ?:[\\/]*)
 
5294
      re_direlt='/[^/][^/]*/\.\./'
 
5295
      # Canonicalize the pathname of ld
 
5296
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5297
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5298
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5299
      done
 
5300
      test -z "$LD" && LD="$ac_prog"
 
5301
      ;;
 
5302
  "")
 
5303
    # If it fails, then pretend we aren't using GCC.
 
5304
    ac_prog=ld
 
5305
    ;;
 
5306
  *)
 
5307
    # If it is relative, then search for the first ld in PATH.
 
5308
    with_gnu_ld=unknown
 
5309
    ;;
 
5310
  esac
 
5311
elif test "$with_gnu_ld" = yes; then
 
5312
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5313
$as_echo_n "checking for GNU ld... " >&6; }
 
5314
else
 
5315
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5316
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5317
fi
 
5318
if ${lt_cv_path_LD+:} false; then :
 
5319
  $as_echo_n "(cached) " >&6
 
5320
else
 
5321
  if test -z "$LD"; then
 
5322
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5323
  for ac_dir in $PATH; do
 
5324
    IFS="$lt_save_ifs"
 
5325
    test -z "$ac_dir" && ac_dir=.
 
5326
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5327
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5328
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5329
      # but apparently some variants of GNU ld only accept -v.
 
5330
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5331
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5332
      *GNU* | *'with BFD'*)
 
5333
        test "$with_gnu_ld" != no && break
 
5334
        ;;
 
5335
      *)
 
5336
        test "$with_gnu_ld" != yes && break
 
5337
        ;;
 
5338
      esac
 
5339
    fi
 
5340
  done
 
5341
  IFS="$lt_save_ifs"
 
5342
else
 
5343
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5344
fi
 
5345
fi
 
5346
 
 
5347
LD="$lt_cv_path_LD"
 
5348
if test -n "$LD"; then
 
5349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5350
$as_echo "$LD" >&6; }
 
5351
else
 
5352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5353
$as_echo "no" >&6; }
 
5354
fi
 
5355
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5357
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5358
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5359
  $as_echo_n "(cached) " >&6
 
5360
else
 
5361
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5362
case `$LD -v 2>&1 </dev/null` in
 
5363
*GNU* | *'with BFD'*)
 
5364
  lt_cv_prog_gnu_ld=yes
 
5365
  ;;
 
5366
*)
 
5367
  lt_cv_prog_gnu_ld=no
 
5368
  ;;
 
5369
esac
 
5370
fi
 
5371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5372
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5373
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
 
5379
 
 
5380
 
 
5381
 
 
5382
 
 
5383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5384
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5385
if ${lt_cv_path_NM+:} false; then :
 
5386
  $as_echo_n "(cached) " >&6
 
5387
else
 
5388
  if test -n "$NM"; then
 
5389
  # Let the user override the test.
 
5390
  lt_cv_path_NM="$NM"
 
5391
else
 
5392
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5393
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5394
    lt_nm_to_check="$lt_nm_to_check nm"
 
5395
  fi
 
5396
  for lt_tmp_nm in $lt_nm_to_check; do
 
5397
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5398
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5399
      IFS="$lt_save_ifs"
 
5400
      test -z "$ac_dir" && ac_dir=.
 
5401
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5402
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5403
        # Check to see if the nm accepts a BSD-compat flag.
 
5404
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5405
        #   nm: unknown option "B" ignored
 
5406
        # Tru64's nm complains that /dev/null is an invalid object file
 
5407
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5408
        */dev/null* | *'Invalid file or object type'*)
 
5409
          lt_cv_path_NM="$tmp_nm -B"
 
5410
          break
 
5411
          ;;
 
5412
        *)
 
5413
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5414
          */dev/null*)
 
5415
            lt_cv_path_NM="$tmp_nm -p"
 
5416
            break
 
5417
            ;;
 
5418
          *)
 
5419
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5420
            continue # so that we can try to find one that supports BSD flags
 
5421
            ;;
 
5422
          esac
 
5423
          ;;
 
5424
        esac
 
5425
      fi
 
5426
    done
 
5427
    IFS="$lt_save_ifs"
 
5428
  done
 
5429
  : ${lt_cv_path_NM=no}
 
5430
fi
 
5431
fi
 
5432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5433
$as_echo "$lt_cv_path_NM" >&6; }
 
5434
if test "$lt_cv_path_NM" != "no"; then
 
5435
  NM="$lt_cv_path_NM"
 
5436
else
 
5437
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5438
  if test -n "$DUMPBIN"; then :
 
5439
    # Let the user override the test.
 
5440
  else
 
5441
    if test -n "$ac_tool_prefix"; then
 
5442
  for ac_prog in dumpbin "link -dump"
 
5443
  do
 
5444
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5445
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5447
$as_echo_n "checking for $ac_word... " >&6; }
 
5448
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5449
  $as_echo_n "(cached) " >&6
 
5450
else
 
5451
  if test -n "$DUMPBIN"; then
 
5452
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5453
else
 
5454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5455
for as_dir in $PATH
 
5456
do
 
5457
  IFS=$as_save_IFS
 
5458
  test -z "$as_dir" && as_dir=.
 
5459
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5461
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5462
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5463
    break 2
 
5464
  fi
 
5465
done
 
5466
  done
 
5467
IFS=$as_save_IFS
 
5468
 
 
5469
fi
 
5470
fi
 
5471
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5472
if test -n "$DUMPBIN"; then
 
5473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5474
$as_echo "$DUMPBIN" >&6; }
 
5475
else
 
5476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5477
$as_echo "no" >&6; }
 
5478
fi
 
5479
 
 
5480
 
 
5481
    test -n "$DUMPBIN" && break
 
5482
  done
 
5483
fi
 
5484
if test -z "$DUMPBIN"; then
 
5485
  ac_ct_DUMPBIN=$DUMPBIN
 
5486
  for ac_prog in dumpbin "link -dump"
 
5487
do
 
5488
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5489
set dummy $ac_prog; ac_word=$2
 
5490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5491
$as_echo_n "checking for $ac_word... " >&6; }
 
5492
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5493
  $as_echo_n "(cached) " >&6
 
5494
else
 
5495
  if test -n "$ac_ct_DUMPBIN"; then
 
5496
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5497
else
 
5498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5499
for as_dir in $PATH
 
5500
do
 
5501
  IFS=$as_save_IFS
 
5502
  test -z "$as_dir" && as_dir=.
 
5503
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5504
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5505
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5506
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5507
    break 2
 
5508
  fi
 
5509
done
 
5510
  done
 
5511
IFS=$as_save_IFS
 
5512
 
 
5513
fi
 
5514
fi
 
5515
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5516
if test -n "$ac_ct_DUMPBIN"; then
 
5517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5518
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5519
else
 
5520
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5521
$as_echo "no" >&6; }
 
5522
fi
 
5523
 
 
5524
 
 
5525
  test -n "$ac_ct_DUMPBIN" && break
 
5526
done
 
5527
 
 
5528
  if test "x$ac_ct_DUMPBIN" = x; then
 
5529
    DUMPBIN=":"
 
5530
  else
 
5531
    case $cross_compiling:$ac_tool_warned in
 
5532
yes:)
 
5533
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5534
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5535
ac_tool_warned=yes ;;
 
5536
esac
 
5537
    DUMPBIN=$ac_ct_DUMPBIN
 
5538
  fi
 
5539
fi
 
5540
 
 
5541
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5542
    *COFF*)
 
5543
      DUMPBIN="$DUMPBIN -symbols"
 
5544
      ;;
 
5545
    *)
 
5546
      DUMPBIN=:
 
5547
      ;;
 
5548
    esac
 
5549
  fi
 
5550
 
 
5551
  if test "$DUMPBIN" != ":"; then
 
5552
    NM="$DUMPBIN"
 
5553
  fi
 
5554
fi
 
5555
test -z "$NM" && NM=nm
 
5556
 
 
5557
 
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5563
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5564
if ${lt_cv_nm_interface+:} false; then :
 
5565
  $as_echo_n "(cached) " >&6
 
5566
else
 
5567
  lt_cv_nm_interface="BSD nm"
 
5568
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5569
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5570
  (eval "$ac_compile" 2>conftest.err)
 
5571
  cat conftest.err >&5
 
5572
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5573
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5574
  cat conftest.err >&5
 
5575
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5576
  cat conftest.out >&5
 
5577
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5578
    lt_cv_nm_interface="MS dumpbin"
 
5579
  fi
 
5580
  rm -f conftest*
 
5581
fi
 
5582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5583
$as_echo "$lt_cv_nm_interface" >&6; }
 
5584
 
 
5585
# find the maximum length of command line arguments
 
5586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5587
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5588
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5589
  $as_echo_n "(cached) " >&6
 
5590
else
 
5591
    i=0
 
5592
  teststring="ABCD"
 
5593
 
 
5594
  case $build_os in
 
5595
  msdosdjgpp*)
 
5596
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5597
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5598
    # during glob expansion).  Even if it were fixed, the result of this
 
5599
    # check would be larger than it should be.
 
5600
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5601
    ;;
 
5602
 
 
5603
  gnu*)
 
5604
    # Under GNU Hurd, this test is not required because there is
 
5605
    # no limit to the length of command line arguments.
 
5606
    # Libtool will interpret -1 as no limit whatsoever
 
5607
    lt_cv_sys_max_cmd_len=-1;
 
5608
    ;;
 
5609
 
 
5610
  cygwin* | mingw* | cegcc*)
 
5611
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5612
    # about 5 minutes as the teststring grows exponentially.
 
5613
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5614
    # you end up with a "frozen" computer, even though with patience
 
5615
    # the test eventually succeeds (with a max line length of 256k).
 
5616
    # Instead, let's just punt: use the minimum linelength reported by
 
5617
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5618
    lt_cv_sys_max_cmd_len=8192;
 
5619
    ;;
 
5620
 
 
5621
  mint*)
 
5622
    # On MiNT this can take a long time and run out of memory.
 
5623
    lt_cv_sys_max_cmd_len=8192;
 
5624
    ;;
 
5625
 
 
5626
  amigaos*)
 
5627
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5628
    # So we just punt and use a minimum line length of 8192.
 
5629
    lt_cv_sys_max_cmd_len=8192;
 
5630
    ;;
 
5631
 
 
5632
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5633
    # This has been around since 386BSD, at least.  Likely further.
 
5634
    if test -x /sbin/sysctl; then
 
5635
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5636
    elif test -x /usr/sbin/sysctl; then
 
5637
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5638
    else
 
5639
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5640
    fi
 
5641
    # And add a safety zone
 
5642
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5643
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5644
    ;;
 
5645
 
 
5646
  interix*)
 
5647
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5648
    lt_cv_sys_max_cmd_len=196608
 
5649
    ;;
 
5650
 
 
5651
  os2*)
 
5652
    # The test takes a long time on OS/2.
 
5653
    lt_cv_sys_max_cmd_len=8192
 
5654
    ;;
 
5655
 
 
5656
  osf*)
 
5657
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5658
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5659
    # nice to cause kernel panics so lets avoid the loop below.
 
5660
    # First set a reasonable default.
 
5661
    lt_cv_sys_max_cmd_len=16384
 
5662
    #
 
5663
    if test -x /sbin/sysconfig; then
 
5664
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5665
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5666
      esac
 
5667
    fi
 
5668
    ;;
 
5669
  sco3.2v5*)
 
5670
    lt_cv_sys_max_cmd_len=102400
 
5671
    ;;
 
5672
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5673
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5674
    if test -n "$kargmax"; then
 
5675
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5676
    else
 
5677
      lt_cv_sys_max_cmd_len=32768
 
5678
    fi
 
5679
    ;;
 
5680
  *)
 
5681
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5682
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5683
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5684
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5685
    else
 
5686
      # Make teststring a little bigger before we do anything with it.
 
5687
      # a 1K string should be a reasonable start.
 
5688
      for i in 1 2 3 4 5 6 7 8 ; do
 
5689
        teststring=$teststring$teststring
 
5690
      done
 
5691
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5692
      # If test is not a shell built-in, we'll probably end up computing a
 
5693
      # maximum length that is only half of the actual maximum length, but
 
5694
      # we can't tell.
 
5695
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5696
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5697
              test $i != 17 # 1/2 MB should be enough
 
5698
      do
 
5699
        i=`expr $i + 1`
 
5700
        teststring=$teststring$teststring
 
5701
      done
 
5702
      # Only check the string length outside the loop.
 
5703
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5704
      teststring=
 
5705
      # Add a significant safety factor because C++ compilers can tack on
 
5706
      # massive amounts of additional arguments before passing them to the
 
5707
      # linker.  It appears as though 1/2 is a usable value.
 
5708
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5709
    fi
 
5710
    ;;
 
5711
  esac
 
5712
 
 
5713
fi
 
5714
 
 
5715
if test -n $lt_cv_sys_max_cmd_len ; then
 
5716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5717
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5718
else
 
5719
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5720
$as_echo "none" >&6; }
 
5721
fi
 
5722
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5723
 
 
5724
 
 
5725
 
 
5726
 
 
5727
 
 
5728
 
 
5729
: ${CP="cp -f"}
 
5730
: ${MV="mv -f"}
 
5731
: ${RM="rm -f"}
 
5732
 
 
5733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5734
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5735
# Try some XSI features
 
5736
xsi_shell=no
 
5737
( _lt_dummy="a/b/c"
 
5738
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5739
      = c,a/b,b/c, \
 
5740
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5741
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5742
  && xsi_shell=yes
 
5743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5744
$as_echo "$xsi_shell" >&6; }
 
5745
 
 
5746
 
 
5747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5748
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5749
lt_shell_append=no
 
5750
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5751
    >/dev/null 2>&1 \
 
5752
  && lt_shell_append=yes
 
5753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5754
$as_echo "$lt_shell_append" >&6; }
 
5755
 
 
5756
 
 
5757
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5758
  lt_unset=unset
 
5759
else
 
5760
  lt_unset=false
 
5761
fi
 
5762
 
 
5763
 
 
5764
 
 
5765
 
 
5766
 
 
5767
# test EBCDIC or ASCII
 
5768
case `echo X|tr X '\101'` in
 
5769
 A) # ASCII based system
 
5770
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5771
  lt_SP2NL='tr \040 \012'
 
5772
  lt_NL2SP='tr \015\012 \040\040'
 
5773
  ;;
 
5774
 *) # EBCDIC based system
 
5775
  lt_SP2NL='tr \100 \n'
 
5776
  lt_NL2SP='tr \r\n \100\100'
 
5777
  ;;
 
5778
esac
 
5779
 
 
5780
 
 
5781
 
 
5782
 
 
5783
 
 
5784
 
 
5785
 
 
5786
 
 
5787
 
 
5788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5789
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5790
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5791
  $as_echo_n "(cached) " >&6
 
5792
else
 
5793
  case $host in
 
5794
  *-*-mingw* )
 
5795
    case $build in
 
5796
      *-*-mingw* ) # actually msys
 
5797
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5798
        ;;
 
5799
      *-*-cygwin* )
 
5800
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5801
        ;;
 
5802
      * ) # otherwise, assume *nix
 
5803
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5804
        ;;
 
5805
    esac
 
5806
    ;;
 
5807
  *-*-cygwin* )
 
5808
    case $build in
 
5809
      *-*-mingw* ) # actually msys
 
5810
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5811
        ;;
 
5812
      *-*-cygwin* )
 
5813
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5814
        ;;
 
5815
      * ) # otherwise, assume *nix
 
5816
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5817
        ;;
 
5818
    esac
 
5819
    ;;
 
5820
  * ) # unhandled hosts (and "normal" native builds)
 
5821
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5822
    ;;
 
5823
esac
 
5824
 
 
5825
fi
 
5826
 
 
5827
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5829
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5830
 
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5836
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5837
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5838
  $as_echo_n "(cached) " >&6
 
5839
else
 
5840
  #assume ordinary cross tools, or native build.
 
5841
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5842
case $host in
 
5843
  *-*-mingw* )
 
5844
    case $build in
 
5845
      *-*-mingw* ) # actually msys
 
5846
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5847
        ;;
 
5848
    esac
 
5849
    ;;
 
5850
esac
 
5851
 
 
5852
fi
 
5853
 
 
5854
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5856
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5863
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5864
if ${lt_cv_ld_reload_flag+:} false; then :
 
5865
  $as_echo_n "(cached) " >&6
 
5866
else
 
5867
  lt_cv_ld_reload_flag='-r'
 
5868
fi
 
5869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5870
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5871
reload_flag=$lt_cv_ld_reload_flag
 
5872
case $reload_flag in
 
5873
"" | " "*) ;;
 
5874
*) reload_flag=" $reload_flag" ;;
 
5875
esac
 
5876
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5877
case $host_os in
 
5878
  cygwin* | mingw* | pw32* | cegcc*)
 
5879
    if test "$GCC" != yes; then
 
5880
      reload_cmds=false
 
5881
    fi
 
5882
    ;;
 
5883
  darwin*)
 
5884
    if test "$GCC" = yes; then
 
5885
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5886
    else
 
5887
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5888
    fi
 
5889
    ;;
 
5890
esac
 
5891
 
 
5892
 
 
5893
 
 
5894
 
 
5895
 
 
5896
 
 
5897
 
 
5898
 
 
5899
 
 
5900
if test -n "$ac_tool_prefix"; then
 
5901
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5902
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5904
$as_echo_n "checking for $ac_word... " >&6; }
 
5905
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5906
  $as_echo_n "(cached) " >&6
 
5907
else
 
5908
  if test -n "$OBJDUMP"; then
 
5909
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5910
else
 
5911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5912
for as_dir in $PATH
 
5913
do
 
5914
  IFS=$as_save_IFS
 
5915
  test -z "$as_dir" && as_dir=.
 
5916
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5918
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5919
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5920
    break 2
 
5921
  fi
 
5922
done
 
5923
  done
 
5924
IFS=$as_save_IFS
 
5925
 
 
5926
fi
 
5927
fi
 
5928
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5929
if test -n "$OBJDUMP"; then
 
5930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5931
$as_echo "$OBJDUMP" >&6; }
 
5932
else
 
5933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5934
$as_echo "no" >&6; }
 
5935
fi
 
5936
 
 
5937
 
 
5938
fi
 
5939
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5940
  ac_ct_OBJDUMP=$OBJDUMP
 
5941
  # Extract the first word of "objdump", so it can be a program name with args.
 
5942
set dummy objdump; ac_word=$2
 
5943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5944
$as_echo_n "checking for $ac_word... " >&6; }
 
5945
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5946
  $as_echo_n "(cached) " >&6
 
5947
else
 
5948
  if test -n "$ac_ct_OBJDUMP"; then
 
5949
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5950
else
 
5951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5952
for as_dir in $PATH
 
5953
do
 
5954
  IFS=$as_save_IFS
 
5955
  test -z "$as_dir" && as_dir=.
 
5956
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5957
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5958
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5959
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5960
    break 2
 
5961
  fi
 
5962
done
 
5963
  done
 
5964
IFS=$as_save_IFS
 
5965
 
 
5966
fi
 
5967
fi
 
5968
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5969
if test -n "$ac_ct_OBJDUMP"; then
 
5970
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5971
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5972
else
 
5973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5974
$as_echo "no" >&6; }
 
5975
fi
 
5976
 
 
5977
  if test "x$ac_ct_OBJDUMP" = x; then
 
5978
    OBJDUMP="false"
 
5979
  else
 
5980
    case $cross_compiling:$ac_tool_warned in
 
5981
yes:)
 
5982
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5983
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5984
ac_tool_warned=yes ;;
 
5985
esac
 
5986
    OBJDUMP=$ac_ct_OBJDUMP
 
5987
  fi
 
5988
else
 
5989
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5990
fi
 
5991
 
 
5992
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5993
 
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
 
 
6000
 
 
6001
 
 
6002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6003
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6004
if ${lt_cv_deplibs_check_method+:} false; then :
 
6005
  $as_echo_n "(cached) " >&6
 
6006
else
 
6007
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6008
lt_cv_file_magic_test_file=
 
6009
lt_cv_deplibs_check_method='unknown'
 
6010
# Need to set the preceding variable on all platforms that support
 
6011
# interlibrary dependencies.
 
6012
# 'none' -- dependencies not supported.
 
6013
# `unknown' -- same as none, but documents that we really don't know.
 
6014
# 'pass_all' -- all dependencies passed with no checks.
 
6015
# 'test_compile' -- check by making test program.
 
6016
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6017
# which responds to the $file_magic_cmd with a given extended regex.
 
6018
# If you have `file' or equivalent on your system and you're not sure
 
6019
# whether `pass_all' will *always* work, you probably want this one.
 
6020
 
 
6021
case $host_os in
 
6022
aix[4-9]*)
 
6023
  lt_cv_deplibs_check_method=pass_all
 
6024
  ;;
 
6025
 
 
6026
beos*)
 
6027
  lt_cv_deplibs_check_method=pass_all
 
6028
  ;;
 
6029
 
 
6030
bsdi[45]*)
 
6031
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6032
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6033
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6034
  ;;
 
6035
 
 
6036
cygwin*)
 
6037
  # func_win32_libid is a shell function defined in ltmain.sh
 
6038
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6039
  lt_cv_file_magic_cmd='func_win32_libid'
 
6040
  ;;
 
6041
 
 
6042
mingw* | pw32*)
 
6043
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6044
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6045
  # unless we find 'file', for example because we are cross-compiling.
 
6046
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
6047
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
6048
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6049
    lt_cv_file_magic_cmd='func_win32_libid'
 
6050
  else
 
6051
    # Keep this pattern in sync with the one in func_win32_libid.
 
6052
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
6053
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6054
  fi
 
6055
  ;;
 
6056
 
 
6057
cegcc*)
 
6058
  # use the weaker test based on 'objdump'. See mingw*.
 
6059
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6060
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6061
  ;;
 
6062
 
 
6063
darwin* | rhapsody*)
 
6064
  lt_cv_deplibs_check_method=pass_all
 
6065
  ;;
 
6066
 
 
6067
freebsd* | dragonfly*)
 
6068
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6069
    case $host_cpu in
 
6070
    i*86 )
 
6071
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6072
      # Let's accept both of them until this is cleared up.
 
6073
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6074
      lt_cv_file_magic_cmd=/usr/bin/file
 
6075
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6076
      ;;
 
6077
    esac
 
6078
  else
 
6079
    lt_cv_deplibs_check_method=pass_all
 
6080
  fi
 
6081
  ;;
 
6082
 
 
6083
gnu*)
 
6084
  lt_cv_deplibs_check_method=pass_all
 
6085
  ;;
 
6086
 
 
6087
haiku*)
 
6088
  lt_cv_deplibs_check_method=pass_all
 
6089
  ;;
 
6090
 
 
6091
hpux10.20* | hpux11*)
 
6092
  lt_cv_file_magic_cmd=/usr/bin/file
 
6093
  case $host_cpu in
 
6094
  ia64*)
 
6095
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6096
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6097
    ;;
 
6098
  hppa*64*)
 
6099
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
6100
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6101
    ;;
 
6102
  *)
 
6103
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
6104
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6105
    ;;
 
6106
  esac
 
6107
  ;;
 
6108
 
 
6109
interix[3-9]*)
 
6110
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6111
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6112
  ;;
 
6113
 
 
6114
irix5* | irix6* | nonstopux*)
 
6115
  case $LD in
 
6116
  *-32|*"-32 ") libmagic=32-bit;;
 
6117
  *-n32|*"-n32 ") libmagic=N32;;
 
6118
  *-64|*"-64 ") libmagic=64-bit;;
 
6119
  *) libmagic=never-match;;
 
6120
  esac
 
6121
  lt_cv_deplibs_check_method=pass_all
 
6122
  ;;
 
6123
 
 
6124
# This must be glibc/ELF.
 
6125
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6126
  lt_cv_deplibs_check_method=pass_all
 
6127
  ;;
 
6128
 
 
6129
netbsd* | netbsdelf*-gnu)
 
6130
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6131
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6132
  else
 
6133
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6134
  fi
 
6135
  ;;
 
6136
 
 
6137
newos6*)
 
6138
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6139
  lt_cv_file_magic_cmd=/usr/bin/file
 
6140
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6141
  ;;
 
6142
 
 
6143
*nto* | *qnx*)
 
6144
  lt_cv_deplibs_check_method=pass_all
 
6145
  ;;
 
6146
 
 
6147
openbsd*)
 
6148
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6149
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6150
  else
 
6151
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6152
  fi
 
6153
  ;;
 
6154
 
 
6155
osf3* | osf4* | osf5*)
 
6156
  lt_cv_deplibs_check_method=pass_all
 
6157
  ;;
 
6158
 
 
6159
rdos*)
 
6160
  lt_cv_deplibs_check_method=pass_all
 
6161
  ;;
 
6162
 
 
6163
solaris*)
 
6164
  lt_cv_deplibs_check_method=pass_all
 
6165
  ;;
 
6166
 
 
6167
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6168
  lt_cv_deplibs_check_method=pass_all
 
6169
  ;;
 
6170
 
 
6171
sysv4 | sysv4.3*)
 
6172
  case $host_vendor in
 
6173
  motorola)
 
6174
    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]'
 
6175
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6176
    ;;
 
6177
  ncr)
 
6178
    lt_cv_deplibs_check_method=pass_all
 
6179
    ;;
 
6180
  sequent)
 
6181
    lt_cv_file_magic_cmd='/bin/file'
 
6182
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6183
    ;;
 
6184
  sni)
 
6185
    lt_cv_file_magic_cmd='/bin/file'
 
6186
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6187
    lt_cv_file_magic_test_file=/lib/libc.so
 
6188
    ;;
 
6189
  siemens)
 
6190
    lt_cv_deplibs_check_method=pass_all
 
6191
    ;;
 
6192
  pc)
 
6193
    lt_cv_deplibs_check_method=pass_all
 
6194
    ;;
 
6195
  esac
 
6196
  ;;
 
6197
 
 
6198
tpf*)
 
6199
  lt_cv_deplibs_check_method=pass_all
 
6200
  ;;
 
6201
esac
 
6202
 
 
6203
fi
 
6204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6205
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6206
 
 
6207
file_magic_glob=
 
6208
want_nocaseglob=no
 
6209
if test "$build" = "$host"; then
 
6210
  case $host_os in
 
6211
  mingw* | pw32*)
 
6212
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6213
      want_nocaseglob=yes
 
6214
    else
 
6215
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6216
    fi
 
6217
    ;;
 
6218
  esac
 
6219
fi
 
6220
 
 
6221
file_magic_cmd=$lt_cv_file_magic_cmd
 
6222
deplibs_check_method=$lt_cv_deplibs_check_method
 
6223
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
 
6232
 
 
6233
 
 
6234
 
 
6235
 
 
6236
 
 
6237
 
 
6238
 
 
6239
 
 
6240
 
 
6241
 
 
6242
 
 
6243
 
 
6244
 
 
6245
 
 
6246
if test -n "$ac_tool_prefix"; then
 
6247
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6248
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6250
$as_echo_n "checking for $ac_word... " >&6; }
 
6251
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6252
  $as_echo_n "(cached) " >&6
 
6253
else
 
6254
  if test -n "$DLLTOOL"; then
 
6255
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6256
else
 
6257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6258
for as_dir in $PATH
 
6259
do
 
6260
  IFS=$as_save_IFS
 
6261
  test -z "$as_dir" && as_dir=.
 
6262
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6263
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6264
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6265
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6266
    break 2
 
6267
  fi
 
6268
done
 
6269
  done
 
6270
IFS=$as_save_IFS
 
6271
 
 
6272
fi
 
6273
fi
 
6274
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6275
if test -n "$DLLTOOL"; then
 
6276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6277
$as_echo "$DLLTOOL" >&6; }
 
6278
else
 
6279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6280
$as_echo "no" >&6; }
 
6281
fi
 
6282
 
 
6283
 
 
6284
fi
 
6285
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6286
  ac_ct_DLLTOOL=$DLLTOOL
 
6287
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6288
set dummy dlltool; ac_word=$2
 
6289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6290
$as_echo_n "checking for $ac_word... " >&6; }
 
6291
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6292
  $as_echo_n "(cached) " >&6
 
6293
else
 
6294
  if test -n "$ac_ct_DLLTOOL"; then
 
6295
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6296
else
 
6297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6298
for as_dir in $PATH
 
6299
do
 
6300
  IFS=$as_save_IFS
 
6301
  test -z "$as_dir" && as_dir=.
 
6302
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6303
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6304
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6305
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6306
    break 2
 
6307
  fi
 
6308
done
 
6309
  done
 
6310
IFS=$as_save_IFS
 
6311
 
 
6312
fi
 
6313
fi
 
6314
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6315
if test -n "$ac_ct_DLLTOOL"; then
 
6316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6317
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6318
else
 
6319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6320
$as_echo "no" >&6; }
 
6321
fi
 
6322
 
 
6323
  if test "x$ac_ct_DLLTOOL" = x; then
 
6324
    DLLTOOL="false"
 
6325
  else
 
6326
    case $cross_compiling:$ac_tool_warned in
 
6327
yes:)
 
6328
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6329
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6330
ac_tool_warned=yes ;;
 
6331
esac
 
6332
    DLLTOOL=$ac_ct_DLLTOOL
 
6333
  fi
 
6334
else
 
6335
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6336
fi
 
6337
 
 
6338
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
 
6345
 
 
6346
 
 
6347
 
 
6348
 
 
6349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6350
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6351
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6352
  $as_echo_n "(cached) " >&6
 
6353
else
 
6354
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6355
 
 
6356
case $host_os in
 
6357
cygwin* | mingw* | pw32* | cegcc*)
 
6358
  # two different shell functions defined in ltmain.sh
 
6359
  # decide which to use based on capabilities of $DLLTOOL
 
6360
  case `$DLLTOOL --help 2>&1` in
 
6361
  *--identify-strict*)
 
6362
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6363
    ;;
 
6364
  *)
 
6365
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6366
    ;;
 
6367
  esac
 
6368
  ;;
 
6369
*)
 
6370
  # fallback: assume linklib IS sharedlib
 
6371
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6372
  ;;
 
6373
esac
 
6374
 
 
6375
fi
 
6376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6377
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6378
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6379
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6380
 
 
6381
 
 
6382
 
 
6383
 
 
6384
 
 
6385
 
 
6386
 
 
6387
 
 
6388
if test -n "$ac_tool_prefix"; then
 
6389
  for ac_prog in ar
 
6390
  do
 
6391
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6392
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6394
$as_echo_n "checking for $ac_word... " >&6; }
 
6395
if ${ac_cv_prog_AR+:} false; then :
 
6396
  $as_echo_n "(cached) " >&6
 
6397
else
 
6398
  if test -n "$AR"; then
 
6399
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6400
else
 
6401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6402
for as_dir in $PATH
 
6403
do
 
6404
  IFS=$as_save_IFS
 
6405
  test -z "$as_dir" && as_dir=.
 
6406
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6408
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6409
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6410
    break 2
 
6411
  fi
 
6412
done
 
6413
  done
 
6414
IFS=$as_save_IFS
 
6415
 
 
6416
fi
 
6417
fi
 
6418
AR=$ac_cv_prog_AR
 
6419
if test -n "$AR"; then
 
6420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6421
$as_echo "$AR" >&6; }
 
6422
else
 
6423
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6424
$as_echo "no" >&6; }
 
6425
fi
 
6426
 
 
6427
 
 
6428
    test -n "$AR" && break
 
6429
  done
 
6430
fi
 
6431
if test -z "$AR"; then
 
6432
  ac_ct_AR=$AR
 
6433
  for ac_prog in ar
 
6434
do
 
6435
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6436
set dummy $ac_prog; ac_word=$2
 
6437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6438
$as_echo_n "checking for $ac_word... " >&6; }
 
6439
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6440
  $as_echo_n "(cached) " >&6
 
6441
else
 
6442
  if test -n "$ac_ct_AR"; then
 
6443
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6444
else
 
6445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6446
for as_dir in $PATH
 
6447
do
 
6448
  IFS=$as_save_IFS
 
6449
  test -z "$as_dir" && as_dir=.
 
6450
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6451
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6452
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6453
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6454
    break 2
 
6455
  fi
 
6456
done
 
6457
  done
 
6458
IFS=$as_save_IFS
 
6459
 
 
6460
fi
 
6461
fi
 
6462
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6463
if test -n "$ac_ct_AR"; then
 
6464
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6465
$as_echo "$ac_ct_AR" >&6; }
 
6466
else
 
6467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6468
$as_echo "no" >&6; }
 
6469
fi
 
6470
 
 
6471
 
 
6472
  test -n "$ac_ct_AR" && break
 
6473
done
 
6474
 
 
6475
  if test "x$ac_ct_AR" = x; then
 
6476
    AR="false"
 
6477
  else
 
6478
    case $cross_compiling:$ac_tool_warned in
 
6479
yes:)
 
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6481
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6482
ac_tool_warned=yes ;;
 
6483
esac
 
6484
    AR=$ac_ct_AR
 
6485
  fi
 
6486
fi
 
6487
 
 
6488
: ${AR=ar}
 
6489
: ${AR_FLAGS=cru}
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
 
 
6496
 
 
6497
 
 
6498
 
 
6499
 
 
6500
 
 
6501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6502
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6503
if ${lt_cv_ar_at_file+:} false; then :
 
6504
  $as_echo_n "(cached) " >&6
 
6505
else
 
6506
  lt_cv_ar_at_file=no
 
6507
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6508
/* end confdefs.h.  */
 
6509
 
 
6510
int
 
6511
main ()
 
6512
{
 
6513
 
 
6514
  ;
 
6515
  return 0;
 
6516
}
 
6517
_ACEOF
 
6518
if ac_fn_c_try_compile "$LINENO"; then :
 
6519
  echo conftest.$ac_objext > conftest.lst
 
6520
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6521
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6522
  (eval $lt_ar_try) 2>&5
 
6523
  ac_status=$?
 
6524
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6525
  test $ac_status = 0; }
 
6526
      if test "$ac_status" -eq 0; then
 
6527
        # Ensure the archiver fails upon bogus file names.
 
6528
        rm -f conftest.$ac_objext libconftest.a
 
6529
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6530
  (eval $lt_ar_try) 2>&5
 
6531
  ac_status=$?
 
6532
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6533
  test $ac_status = 0; }
 
6534
        if test "$ac_status" -ne 0; then
 
6535
          lt_cv_ar_at_file=@
 
6536
        fi
 
6537
      fi
 
6538
      rm -f conftest.* libconftest.a
 
6539
 
 
6540
fi
 
6541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6542
 
 
6543
fi
 
6544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6545
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6546
 
 
6547
if test "x$lt_cv_ar_at_file" = xno; then
 
6548
  archiver_list_spec=
 
6549
else
 
6550
  archiver_list_spec=$lt_cv_ar_at_file
 
6551
fi
 
6552
 
 
6553
 
 
6554
 
 
6555
 
 
6556
 
 
6557
 
 
6558
 
 
6559
if test -n "$ac_tool_prefix"; then
 
6560
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6561
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6563
$as_echo_n "checking for $ac_word... " >&6; }
 
6564
if ${ac_cv_prog_STRIP+:} false; then :
 
6565
  $as_echo_n "(cached) " >&6
 
6566
else
 
6567
  if test -n "$STRIP"; then
 
6568
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6569
else
 
6570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6571
for as_dir in $PATH
 
6572
do
 
6573
  IFS=$as_save_IFS
 
6574
  test -z "$as_dir" && as_dir=.
 
6575
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6576
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6577
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6578
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6579
    break 2
 
6580
  fi
 
6581
done
 
6582
  done
 
6583
IFS=$as_save_IFS
 
6584
 
 
6585
fi
 
6586
fi
 
6587
STRIP=$ac_cv_prog_STRIP
 
6588
if test -n "$STRIP"; then
 
6589
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6590
$as_echo "$STRIP" >&6; }
 
6591
else
 
6592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6593
$as_echo "no" >&6; }
 
6594
fi
 
6595
 
 
6596
 
 
6597
fi
 
6598
if test -z "$ac_cv_prog_STRIP"; then
 
6599
  ac_ct_STRIP=$STRIP
 
6600
  # Extract the first word of "strip", so it can be a program name with args.
 
6601
set dummy strip; ac_word=$2
 
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6603
$as_echo_n "checking for $ac_word... " >&6; }
 
6604
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6605
  $as_echo_n "(cached) " >&6
 
6606
else
 
6607
  if test -n "$ac_ct_STRIP"; then
 
6608
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6609
else
 
6610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6611
for as_dir in $PATH
 
6612
do
 
6613
  IFS=$as_save_IFS
 
6614
  test -z "$as_dir" && as_dir=.
 
6615
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6616
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6617
    ac_cv_prog_ac_ct_STRIP="strip"
 
6618
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6619
    break 2
 
6620
  fi
 
6621
done
 
6622
  done
 
6623
IFS=$as_save_IFS
 
6624
 
 
6625
fi
 
6626
fi
 
6627
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6628
if test -n "$ac_ct_STRIP"; then
 
6629
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6630
$as_echo "$ac_ct_STRIP" >&6; }
 
6631
else
 
6632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6633
$as_echo "no" >&6; }
 
6634
fi
 
6635
 
 
6636
  if test "x$ac_ct_STRIP" = x; then
 
6637
    STRIP=":"
 
6638
  else
 
6639
    case $cross_compiling:$ac_tool_warned in
 
6640
yes:)
 
6641
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6642
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6643
ac_tool_warned=yes ;;
 
6644
esac
 
6645
    STRIP=$ac_ct_STRIP
 
6646
  fi
 
6647
else
 
6648
  STRIP="$ac_cv_prog_STRIP"
 
6649
fi
 
6650
 
 
6651
test -z "$STRIP" && STRIP=:
 
6652
 
 
6653
 
 
6654
 
 
6655
 
 
6656
 
 
6657
 
 
6658
if test -n "$ac_tool_prefix"; then
 
6659
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6660
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6662
$as_echo_n "checking for $ac_word... " >&6; }
 
6663
if ${ac_cv_prog_RANLIB+:} false; then :
 
6664
  $as_echo_n "(cached) " >&6
 
6665
else
 
6666
  if test -n "$RANLIB"; then
 
6667
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6668
else
 
6669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6670
for as_dir in $PATH
 
6671
do
 
6672
  IFS=$as_save_IFS
 
6673
  test -z "$as_dir" && as_dir=.
 
6674
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6675
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6676
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6677
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6678
    break 2
 
6679
  fi
 
6680
done
 
6681
  done
 
6682
IFS=$as_save_IFS
 
6683
 
 
6684
fi
 
6685
fi
 
6686
RANLIB=$ac_cv_prog_RANLIB
 
6687
if test -n "$RANLIB"; then
 
6688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6689
$as_echo "$RANLIB" >&6; }
 
6690
else
 
6691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6692
$as_echo "no" >&6; }
 
6693
fi
 
6694
 
 
6695
 
 
6696
fi
 
6697
if test -z "$ac_cv_prog_RANLIB"; then
 
6698
  ac_ct_RANLIB=$RANLIB
 
6699
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6700
set dummy ranlib; ac_word=$2
 
6701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6702
$as_echo_n "checking for $ac_word... " >&6; }
 
6703
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6704
  $as_echo_n "(cached) " >&6
 
6705
else
 
6706
  if test -n "$ac_ct_RANLIB"; then
 
6707
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6708
else
 
6709
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6710
for as_dir in $PATH
 
6711
do
 
6712
  IFS=$as_save_IFS
 
6713
  test -z "$as_dir" && as_dir=.
 
6714
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6715
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6716
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6717
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6718
    break 2
 
6719
  fi
 
6720
done
 
6721
  done
 
6722
IFS=$as_save_IFS
 
6723
 
 
6724
fi
 
6725
fi
 
6726
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6727
if test -n "$ac_ct_RANLIB"; then
 
6728
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6729
$as_echo "$ac_ct_RANLIB" >&6; }
 
6730
else
 
6731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6732
$as_echo "no" >&6; }
 
6733
fi
 
6734
 
 
6735
  if test "x$ac_ct_RANLIB" = x; then
 
6736
    RANLIB=":"
 
6737
  else
 
6738
    case $cross_compiling:$ac_tool_warned in
 
6739
yes:)
 
6740
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6741
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6742
ac_tool_warned=yes ;;
 
6743
esac
 
6744
    RANLIB=$ac_ct_RANLIB
 
6745
  fi
 
6746
else
 
6747
  RANLIB="$ac_cv_prog_RANLIB"
 
6748
fi
 
6749
 
 
6750
test -z "$RANLIB" && RANLIB=:
 
6751
 
 
6752
 
 
6753
 
 
6754
 
 
6755
 
 
6756
 
 
6757
# Determine commands to create old-style static archives.
 
6758
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6759
old_postinstall_cmds='chmod 644 $oldlib'
 
6760
old_postuninstall_cmds=
 
6761
 
 
6762
if test -n "$RANLIB"; then
 
6763
  case $host_os in
 
6764
  openbsd*)
 
6765
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6766
    ;;
 
6767
  *)
 
6768
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6769
    ;;
 
6770
  esac
 
6771
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6772
fi
 
6773
 
 
6774
case $host_os in
 
6775
  darwin*)
 
6776
    lock_old_archive_extraction=yes ;;
 
6777
  *)
 
6778
    lock_old_archive_extraction=no ;;
 
6779
esac
 
6780
 
 
6781
 
 
6782
 
 
6783
 
 
6784
 
 
6785
 
 
6786
 
 
6787
 
 
6788
 
 
6789
 
 
6790
 
 
6791
 
 
6792
 
 
6793
 
 
6794
 
 
6795
 
 
6796
 
 
6797
 
 
6798
 
 
6799
 
 
6800
 
 
6801
 
 
6802
 
 
6803
 
 
6804
 
 
6805
 
 
6806
 
 
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
 
6815
 
 
6816
 
 
6817
 
 
6818
 
 
6819
# If no C compiler was specified, use CC.
 
6820
LTCC=${LTCC-"$CC"}
 
6821
 
 
6822
# If no C compiler flags were specified, use CFLAGS.
 
6823
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6824
 
 
6825
# Allow CC to be a program name with arguments.
 
6826
compiler=$CC
 
6827
 
 
6828
 
 
6829
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6831
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6832
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6833
  $as_echo_n "(cached) " >&6
 
6834
else
 
6835
 
 
6836
# These are sane defaults that work on at least a few old systems.
 
6837
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6838
 
 
6839
# Character class describing NM global symbol codes.
 
6840
symcode='[BCDEGRST]'
 
6841
 
 
6842
# Regexp to match symbols that can be accessed directly from C.
 
6843
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6844
 
 
6845
# Define system-specific variables.
 
6846
case $host_os in
 
6847
aix*)
 
6848
  symcode='[BCDT]'
 
6849
  ;;
 
6850
cygwin* | mingw* | pw32* | cegcc*)
 
6851
  symcode='[ABCDGISTW]'
 
6852
  ;;
 
6853
hpux*)
 
6854
  if test "$host_cpu" = ia64; then
 
6855
    symcode='[ABCDEGRST]'
 
6856
  fi
 
6857
  ;;
 
6858
irix* | nonstopux*)
 
6859
  symcode='[BCDEGRST]'
 
6860
  ;;
 
6861
osf*)
 
6862
  symcode='[BCDEGQRST]'
 
6863
  ;;
 
6864
solaris*)
 
6865
  symcode='[BDRT]'
 
6866
  ;;
 
6867
sco3.2v5*)
 
6868
  symcode='[DT]'
 
6869
  ;;
 
6870
sysv4.2uw2*)
 
6871
  symcode='[DT]'
 
6872
  ;;
 
6873
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6874
  symcode='[ABDT]'
 
6875
  ;;
 
6876
sysv4)
 
6877
  symcode='[DFNSTU]'
 
6878
  ;;
 
6879
esac
 
6880
 
 
6881
# If we're using GNU nm, then use its standard symbol codes.
 
6882
case `$NM -V 2>&1` in
 
6883
*GNU* | *'with BFD'*)
 
6884
  symcode='[ABCDGIRSTW]' ;;
 
6885
esac
 
6886
 
 
6887
# Transform an extracted symbol line into a proper C declaration.
 
6888
# Some systems (esp. on ia64) link data and code symbols differently,
 
6889
# so use this general approach.
 
6890
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6891
 
 
6892
# Transform an extracted symbol line into symbol name and symbol address
 
6893
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6894
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
6895
 
 
6896
# Handle CRLF in mingw tool chain
 
6897
opt_cr=
 
6898
case $build_os in
 
6899
mingw*)
 
6900
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6901
  ;;
 
6902
esac
 
6903
 
 
6904
# Try without a prefix underscore, then with it.
 
6905
for ac_symprfx in "" "_"; do
 
6906
 
 
6907
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6908
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6909
 
 
6910
  # Write the raw and C identifiers.
 
6911
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6912
    # Fake it for dumpbin and say T for any non-static function
 
6913
    # and D for any global variable.
 
6914
    # Also find C++ and __fastcall symbols from MSVC++,
 
6915
    # which start with @ or ?.
 
6916
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6917
"     {last_section=section; section=\$ 3};"\
 
6918
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6919
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6920
"     \$ 0!~/External *\|/{next};"\
 
6921
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6922
"     {if(hide[section]) next};"\
 
6923
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6924
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6925
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6926
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6927
"     ' prfx=^$ac_symprfx"
 
6928
  else
 
6929
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6930
  fi
 
6931
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6932
 
 
6933
  # Check to see that the pipe works correctly.
 
6934
  pipe_works=no
 
6935
 
 
6936
  rm -f conftest*
 
6937
  cat > conftest.$ac_ext <<_LT_EOF
 
6938
#ifdef __cplusplus
 
6939
extern "C" {
 
6940
#endif
 
6941
char nm_test_var;
 
6942
void nm_test_func(void);
 
6943
void nm_test_func(void){}
 
6944
#ifdef __cplusplus
 
6945
}
 
6946
#endif
 
6947
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6948
_LT_EOF
 
6949
 
 
6950
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6951
  (eval $ac_compile) 2>&5
 
6952
  ac_status=$?
 
6953
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6954
  test $ac_status = 0; }; then
 
6955
    # Now try to grab the symbols.
 
6956
    nlist=conftest.nm
 
6957
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6958
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6959
  ac_status=$?
 
6960
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6961
  test $ac_status = 0; } && test -s "$nlist"; then
 
6962
      # Try sorting and uniquifying the output.
 
6963
      if sort "$nlist" | uniq > "$nlist"T; then
 
6964
        mv -f "$nlist"T "$nlist"
 
6965
      else
 
6966
        rm -f "$nlist"T
 
6967
      fi
 
6968
 
 
6969
      # Make sure that we snagged all the symbols we need.
 
6970
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6971
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6972
          cat <<_LT_EOF > conftest.$ac_ext
 
6973
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6974
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6975
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6976
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6977
# define LT_DLSYM_CONST
 
6978
#elif defined(__osf__)
 
6979
/* This system does not cope well with relocations in const data.  */
 
6980
# define LT_DLSYM_CONST
 
6981
#else
 
6982
# define LT_DLSYM_CONST const
 
6983
#endif
 
6984
 
 
6985
#ifdef __cplusplus
 
6986
extern "C" {
 
6987
#endif
 
6988
 
 
6989
_LT_EOF
 
6990
          # Now generate the symbol file.
 
6991
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6992
 
 
6993
          cat <<_LT_EOF >> conftest.$ac_ext
 
6994
 
 
6995
/* The mapping between symbol names and symbols.  */
 
6996
LT_DLSYM_CONST struct {
 
6997
  const char *name;
 
6998
  void       *address;
 
6999
}
 
7000
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7001
{
 
7002
  { "@PROGRAM@", (void *) 0 },
 
7003
_LT_EOF
 
7004
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7005
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7006
  {0, (void *) 0}
 
7007
};
 
7008
 
 
7009
/* This works around a problem in FreeBSD linker */
 
7010
#ifdef FREEBSD_WORKAROUND
 
7011
static const void *lt_preloaded_setup() {
 
7012
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7013
}
 
7014
#endif
 
7015
 
 
7016
#ifdef __cplusplus
 
7017
}
 
7018
#endif
 
7019
_LT_EOF
 
7020
          # Now try linking the two files.
 
7021
          mv conftest.$ac_objext conftstm.$ac_objext
 
7022
          lt_globsym_save_LIBS=$LIBS
 
7023
          lt_globsym_save_CFLAGS=$CFLAGS
 
7024
          LIBS="conftstm.$ac_objext"
 
7025
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7026
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7027
  (eval $ac_link) 2>&5
 
7028
  ac_status=$?
 
7029
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7030
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
7031
            pipe_works=yes
 
7032
          fi
 
7033
          LIBS=$lt_globsym_save_LIBS
 
7034
          CFLAGS=$lt_globsym_save_CFLAGS
 
7035
        else
 
7036
          echo "cannot find nm_test_func in $nlist" >&5
 
7037
        fi
 
7038
      else
 
7039
        echo "cannot find nm_test_var in $nlist" >&5
 
7040
      fi
 
7041
    else
 
7042
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7043
    fi
 
7044
  else
 
7045
    echo "$progname: failed program was:" >&5
 
7046
    cat conftest.$ac_ext >&5
 
7047
  fi
 
7048
  rm -rf conftest* conftst*
 
7049
 
 
7050
  # Do not use the global_symbol_pipe unless it works.
 
7051
  if test "$pipe_works" = yes; then
 
7052
    break
 
7053
  else
 
7054
    lt_cv_sys_global_symbol_pipe=
 
7055
  fi
 
7056
done
 
7057
 
 
7058
fi
 
7059
 
 
7060
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7061
  lt_cv_sys_global_symbol_to_cdecl=
 
7062
fi
 
7063
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7065
$as_echo "failed" >&6; }
 
7066
else
 
7067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7068
$as_echo "ok" >&6; }
 
7069
fi
 
7070
 
 
7071
# Response file support.
 
7072
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7073
  nm_file_list_spec='@'
 
7074
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7075
  nm_file_list_spec='@'
 
7076
fi
 
7077
 
 
7078
 
 
7079
 
 
7080
 
 
7081
 
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
 
7088
 
 
7089
 
 
7090
 
 
7091
 
 
7092
 
 
7093
 
 
7094
 
 
7095
 
 
7096
 
 
7097
 
 
7098
 
 
7099
 
 
7100
 
 
7101
 
 
7102
 
 
7103
 
 
7104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7105
$as_echo_n "checking for sysroot... " >&6; }
 
7106
 
 
7107
# Check whether --with-sysroot was given.
 
7108
if test "${with_sysroot+set}" = set; then :
 
7109
  withval=$with_sysroot;
 
7110
else
 
7111
  with_sysroot=no
 
7112
fi
 
7113
 
 
7114
 
 
7115
lt_sysroot=
 
7116
case ${with_sysroot} in #(
 
7117
 yes)
 
7118
   if test "$GCC" = yes; then
 
7119
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7120
   fi
 
7121
   ;; #(
 
7122
 /*)
 
7123
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7124
   ;; #(
 
7125
 no|'')
 
7126
   ;; #(
 
7127
 *)
 
7128
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
7129
$as_echo "${with_sysroot}" >&6; }
 
7130
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7131
   ;;
 
7132
esac
 
7133
 
 
7134
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7135
$as_echo "${lt_sysroot:-no}" >&6; }
 
7136
 
 
7137
 
 
7138
 
 
7139
 
 
7140
 
 
7141
# Check whether --enable-libtool-lock was given.
 
7142
if test "${enable_libtool_lock+set}" = set; then :
 
7143
  enableval=$enable_libtool_lock;
 
7144
fi
 
7145
 
 
7146
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7147
 
 
7148
# Some flags need to be propagated to the compiler or linker for good
 
7149
# libtool support.
 
7150
case $host in
 
7151
ia64-*-hpux*)
 
7152
  # Find out which ABI we are using.
 
7153
  echo 'int i;' > conftest.$ac_ext
 
7154
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7155
  (eval $ac_compile) 2>&5
 
7156
  ac_status=$?
 
7157
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7158
  test $ac_status = 0; }; then
 
7159
    case `/usr/bin/file conftest.$ac_objext` in
 
7160
      *ELF-32*)
 
7161
        HPUX_IA64_MODE="32"
 
7162
        ;;
 
7163
      *ELF-64*)
 
7164
        HPUX_IA64_MODE="64"
 
7165
        ;;
 
7166
    esac
 
7167
  fi
 
7168
  rm -rf conftest*
 
7169
  ;;
 
7170
*-*-irix6*)
 
7171
  # Find out which ABI we are using.
 
7172
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7173
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7174
  (eval $ac_compile) 2>&5
 
7175
  ac_status=$?
 
7176
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7177
  test $ac_status = 0; }; then
 
7178
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7179
      case `/usr/bin/file conftest.$ac_objext` in
 
7180
        *32-bit*)
 
7181
          LD="${LD-ld} -melf32bsmip"
 
7182
          ;;
 
7183
        *N32*)
 
7184
          LD="${LD-ld} -melf32bmipn32"
 
7185
          ;;
 
7186
        *64-bit*)
 
7187
          LD="${LD-ld} -melf64bmip"
 
7188
        ;;
 
7189
      esac
 
7190
    else
 
7191
      case `/usr/bin/file conftest.$ac_objext` in
 
7192
        *32-bit*)
 
7193
          LD="${LD-ld} -32"
 
7194
          ;;
 
7195
        *N32*)
 
7196
          LD="${LD-ld} -n32"
 
7197
          ;;
 
7198
        *64-bit*)
 
7199
          LD="${LD-ld} -64"
 
7200
          ;;
 
7201
      esac
 
7202
    fi
 
7203
  fi
 
7204
  rm -rf conftest*
 
7205
  ;;
 
7206
 
 
7207
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7208
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7209
  # Find out which ABI we are using.
 
7210
  echo 'int i;' > conftest.$ac_ext
 
7211
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7212
  (eval $ac_compile) 2>&5
 
7213
  ac_status=$?
 
7214
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7215
  test $ac_status = 0; }; then
 
7216
    case `/usr/bin/file conftest.o` in
 
7217
      *32-bit*)
 
7218
        case $host in
 
7219
          x86_64-*kfreebsd*-gnu)
 
7220
            LD="${LD-ld} -m elf_i386_fbsd"
 
7221
            ;;
 
7222
          x86_64-*linux*)
 
7223
            LD="${LD-ld} -m elf_i386"
 
7224
            ;;
 
7225
          ppc64-*linux*|powerpc64-*linux*)
 
7226
            LD="${LD-ld} -m elf32ppclinux"
 
7227
            ;;
 
7228
          s390x-*linux*)
 
7229
            LD="${LD-ld} -m elf_s390"
 
7230
            ;;
 
7231
          sparc64-*linux*)
 
7232
            LD="${LD-ld} -m elf32_sparc"
 
7233
            ;;
 
7234
        esac
 
7235
        ;;
 
7236
      *64-bit*)
 
7237
        case $host in
 
7238
          x86_64-*kfreebsd*-gnu)
 
7239
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7240
            ;;
 
7241
          x86_64-*linux*)
 
7242
            LD="${LD-ld} -m elf_x86_64"
 
7243
            ;;
 
7244
          ppc*-*linux*|powerpc*-*linux*)
 
7245
            LD="${LD-ld} -m elf64ppc"
 
7246
            ;;
 
7247
          s390*-*linux*|s390*-*tpf*)
 
7248
            LD="${LD-ld} -m elf64_s390"
 
7249
            ;;
 
7250
          sparc*-*linux*)
 
7251
            LD="${LD-ld} -m elf64_sparc"
 
7252
            ;;
 
7253
        esac
 
7254
        ;;
 
7255
    esac
 
7256
  fi
 
7257
  rm -rf conftest*
 
7258
  ;;
 
7259
 
 
7260
*-*-sco3.2v5*)
 
7261
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7262
  SAVE_CFLAGS="$CFLAGS"
 
7263
  CFLAGS="$CFLAGS -belf"
 
7264
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7265
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7266
if ${lt_cv_cc_needs_belf+:} false; then :
 
7267
  $as_echo_n "(cached) " >&6
 
7268
else
 
7269
  ac_ext=c
 
7270
ac_cpp='$CPP $CPPFLAGS'
 
7271
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7272
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7273
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7274
 
 
7275
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7276
/* end confdefs.h.  */
 
7277
 
 
7278
int
 
7279
main ()
 
7280
{
 
7281
 
 
7282
  ;
 
7283
  return 0;
 
7284
}
 
7285
_ACEOF
 
7286
if ac_fn_c_try_link "$LINENO"; then :
 
7287
  lt_cv_cc_needs_belf=yes
 
7288
else
 
7289
  lt_cv_cc_needs_belf=no
 
7290
fi
 
7291
rm -f core conftest.err conftest.$ac_objext \
 
7292
    conftest$ac_exeext conftest.$ac_ext
 
7293
     ac_ext=c
 
7294
ac_cpp='$CPP $CPPFLAGS'
 
7295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7298
 
 
7299
fi
 
7300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7301
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7302
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7303
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7304
    CFLAGS="$SAVE_CFLAGS"
 
7305
  fi
 
7306
  ;;
 
7307
*-*solaris*)
 
7308
  # Find out which ABI we are using.
 
7309
  echo 'int i;' > conftest.$ac_ext
 
7310
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7311
  (eval $ac_compile) 2>&5
 
7312
  ac_status=$?
 
7313
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7314
  test $ac_status = 0; }; then
 
7315
    case `/usr/bin/file conftest.o` in
 
7316
    *64-bit*)
 
7317
      case $lt_cv_prog_gnu_ld in
 
7318
      yes*)
 
7319
        case $host in
 
7320
        i?86-*-solaris*)
 
7321
          LD="${LD-ld} -m elf_x86_64"
 
7322
          ;;
 
7323
        sparc*-*-solaris*)
 
7324
          LD="${LD-ld} -m elf64_sparc"
 
7325
          ;;
 
7326
        esac
 
7327
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7328
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7329
          LD="${LD-ld}_sol2"
 
7330
        fi
 
7331
        ;;
 
7332
      *)
 
7333
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7334
          LD="${LD-ld} -64"
 
7335
        fi
 
7336
        ;;
 
7337
      esac
 
7338
      ;;
 
7339
    esac
 
7340
  fi
 
7341
  rm -rf conftest*
 
7342
  ;;
 
7343
esac
 
7344
 
 
7345
need_locks="$enable_libtool_lock"
 
7346
 
 
7347
if test -n "$ac_tool_prefix"; then
 
7348
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7349
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7351
$as_echo_n "checking for $ac_word... " >&6; }
 
7352
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7353
  $as_echo_n "(cached) " >&6
 
7354
else
 
7355
  if test -n "$MANIFEST_TOOL"; then
 
7356
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7357
else
 
7358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7359
for as_dir in $PATH
 
7360
do
 
7361
  IFS=$as_save_IFS
 
7362
  test -z "$as_dir" && as_dir=.
 
7363
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7365
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7366
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7367
    break 2
 
7368
  fi
 
7369
done
 
7370
  done
 
7371
IFS=$as_save_IFS
 
7372
 
 
7373
fi
 
7374
fi
 
7375
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7376
if test -n "$MANIFEST_TOOL"; then
 
7377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7378
$as_echo "$MANIFEST_TOOL" >&6; }
 
7379
else
 
7380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7381
$as_echo "no" >&6; }
 
7382
fi
 
7383
 
 
7384
 
 
7385
fi
 
7386
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7387
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7388
  # Extract the first word of "mt", so it can be a program name with args.
 
7389
set dummy mt; ac_word=$2
 
7390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7391
$as_echo_n "checking for $ac_word... " >&6; }
 
7392
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7393
  $as_echo_n "(cached) " >&6
 
7394
else
 
7395
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7396
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7397
else
 
7398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7399
for as_dir in $PATH
 
7400
do
 
7401
  IFS=$as_save_IFS
 
7402
  test -z "$as_dir" && as_dir=.
 
7403
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7404
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7405
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7406
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7407
    break 2
 
7408
  fi
 
7409
done
 
7410
  done
 
7411
IFS=$as_save_IFS
 
7412
 
 
7413
fi
 
7414
fi
 
7415
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7416
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7418
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7419
else
 
7420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7421
$as_echo "no" >&6; }
 
7422
fi
 
7423
 
 
7424
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7425
    MANIFEST_TOOL=":"
 
7426
  else
 
7427
    case $cross_compiling:$ac_tool_warned in
 
7428
yes:)
 
7429
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7430
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7431
ac_tool_warned=yes ;;
 
7432
esac
 
7433
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7434
  fi
 
7435
else
 
7436
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7437
fi
 
7438
 
 
7439
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7441
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7442
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7443
  $as_echo_n "(cached) " >&6
 
7444
else
 
7445
  lt_cv_path_mainfest_tool=no
 
7446
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7447
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7448
  cat conftest.err >&5
 
7449
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7450
    lt_cv_path_mainfest_tool=yes
 
7451
  fi
 
7452
  rm -f conftest*
 
7453
fi
 
7454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7455
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7456
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7457
  MANIFEST_TOOL=:
 
7458
fi
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
 
 
7464
 
 
7465
  case $host_os in
 
7466
    rhapsody* | darwin*)
 
7467
    if test -n "$ac_tool_prefix"; then
 
7468
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7469
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7471
$as_echo_n "checking for $ac_word... " >&6; }
 
7472
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7473
  $as_echo_n "(cached) " >&6
 
7474
else
 
7475
  if test -n "$DSYMUTIL"; then
 
7476
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7477
else
 
7478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7479
for as_dir in $PATH
 
7480
do
 
7481
  IFS=$as_save_IFS
 
7482
  test -z "$as_dir" && as_dir=.
 
7483
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7484
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7485
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7486
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7487
    break 2
 
7488
  fi
 
7489
done
 
7490
  done
 
7491
IFS=$as_save_IFS
 
7492
 
 
7493
fi
 
7494
fi
 
7495
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7496
if test -n "$DSYMUTIL"; then
 
7497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7498
$as_echo "$DSYMUTIL" >&6; }
 
7499
else
 
7500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7501
$as_echo "no" >&6; }
 
7502
fi
 
7503
 
 
7504
 
 
7505
fi
 
7506
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7507
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7508
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7509
set dummy dsymutil; ac_word=$2
 
7510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7511
$as_echo_n "checking for $ac_word... " >&6; }
 
7512
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7513
  $as_echo_n "(cached) " >&6
 
7514
else
 
7515
  if test -n "$ac_ct_DSYMUTIL"; then
 
7516
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7517
else
 
7518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7519
for as_dir in $PATH
 
7520
do
 
7521
  IFS=$as_save_IFS
 
7522
  test -z "$as_dir" && as_dir=.
 
7523
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7525
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7526
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7527
    break 2
 
7528
  fi
 
7529
done
 
7530
  done
 
7531
IFS=$as_save_IFS
 
7532
 
 
7533
fi
 
7534
fi
 
7535
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7536
if test -n "$ac_ct_DSYMUTIL"; then
 
7537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7538
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7539
else
 
7540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7541
$as_echo "no" >&6; }
 
7542
fi
 
7543
 
 
7544
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7545
    DSYMUTIL=":"
 
7546
  else
 
7547
    case $cross_compiling:$ac_tool_warned in
 
7548
yes:)
 
7549
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7550
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7551
ac_tool_warned=yes ;;
 
7552
esac
 
7553
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7554
  fi
 
7555
else
 
7556
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7557
fi
 
7558
 
 
7559
    if test -n "$ac_tool_prefix"; then
 
7560
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7561
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7563
$as_echo_n "checking for $ac_word... " >&6; }
 
7564
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7565
  $as_echo_n "(cached) " >&6
 
7566
else
 
7567
  if test -n "$NMEDIT"; then
 
7568
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7569
else
 
7570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7571
for as_dir in $PATH
 
7572
do
 
7573
  IFS=$as_save_IFS
 
7574
  test -z "$as_dir" && as_dir=.
 
7575
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7576
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7577
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7578
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7579
    break 2
 
7580
  fi
 
7581
done
 
7582
  done
 
7583
IFS=$as_save_IFS
 
7584
 
 
7585
fi
 
7586
fi
 
7587
NMEDIT=$ac_cv_prog_NMEDIT
 
7588
if test -n "$NMEDIT"; then
 
7589
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7590
$as_echo "$NMEDIT" >&6; }
 
7591
else
 
7592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7593
$as_echo "no" >&6; }
 
7594
fi
 
7595
 
 
7596
 
 
7597
fi
 
7598
if test -z "$ac_cv_prog_NMEDIT"; then
 
7599
  ac_ct_NMEDIT=$NMEDIT
 
7600
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7601
set dummy nmedit; ac_word=$2
 
7602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7603
$as_echo_n "checking for $ac_word... " >&6; }
 
7604
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7605
  $as_echo_n "(cached) " >&6
 
7606
else
 
7607
  if test -n "$ac_ct_NMEDIT"; then
 
7608
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7609
else
 
7610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7611
for as_dir in $PATH
 
7612
do
 
7613
  IFS=$as_save_IFS
 
7614
  test -z "$as_dir" && as_dir=.
 
7615
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7616
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7617
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7618
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7619
    break 2
 
7620
  fi
 
7621
done
 
7622
  done
 
7623
IFS=$as_save_IFS
 
7624
 
 
7625
fi
 
7626
fi
 
7627
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7628
if test -n "$ac_ct_NMEDIT"; then
 
7629
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7630
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7631
else
 
7632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7633
$as_echo "no" >&6; }
 
7634
fi
 
7635
 
 
7636
  if test "x$ac_ct_NMEDIT" = x; then
 
7637
    NMEDIT=":"
 
7638
  else
 
7639
    case $cross_compiling:$ac_tool_warned in
 
7640
yes:)
 
7641
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7642
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7643
ac_tool_warned=yes ;;
 
7644
esac
 
7645
    NMEDIT=$ac_ct_NMEDIT
 
7646
  fi
 
7647
else
 
7648
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7649
fi
 
7650
 
 
7651
    if test -n "$ac_tool_prefix"; then
 
7652
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7653
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7655
$as_echo_n "checking for $ac_word... " >&6; }
 
7656
if ${ac_cv_prog_LIPO+:} false; then :
 
7657
  $as_echo_n "(cached) " >&6
 
7658
else
 
7659
  if test -n "$LIPO"; then
 
7660
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7661
else
 
7662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7663
for as_dir in $PATH
 
7664
do
 
7665
  IFS=$as_save_IFS
 
7666
  test -z "$as_dir" && as_dir=.
 
7667
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7668
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7669
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7670
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7671
    break 2
 
7672
  fi
 
7673
done
 
7674
  done
 
7675
IFS=$as_save_IFS
 
7676
 
 
7677
fi
 
7678
fi
 
7679
LIPO=$ac_cv_prog_LIPO
 
7680
if test -n "$LIPO"; then
 
7681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7682
$as_echo "$LIPO" >&6; }
 
7683
else
 
7684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7685
$as_echo "no" >&6; }
 
7686
fi
 
7687
 
 
7688
 
 
7689
fi
 
7690
if test -z "$ac_cv_prog_LIPO"; then
 
7691
  ac_ct_LIPO=$LIPO
 
7692
  # Extract the first word of "lipo", so it can be a program name with args.
 
7693
set dummy lipo; ac_word=$2
 
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7695
$as_echo_n "checking for $ac_word... " >&6; }
 
7696
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7697
  $as_echo_n "(cached) " >&6
 
7698
else
 
7699
  if test -n "$ac_ct_LIPO"; then
 
7700
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7701
else
 
7702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7703
for as_dir in $PATH
 
7704
do
 
7705
  IFS=$as_save_IFS
 
7706
  test -z "$as_dir" && as_dir=.
 
7707
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7708
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7709
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7710
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7711
    break 2
 
7712
  fi
 
7713
done
 
7714
  done
 
7715
IFS=$as_save_IFS
 
7716
 
 
7717
fi
 
7718
fi
 
7719
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7720
if test -n "$ac_ct_LIPO"; then
 
7721
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7722
$as_echo "$ac_ct_LIPO" >&6; }
 
7723
else
 
7724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7725
$as_echo "no" >&6; }
 
7726
fi
 
7727
 
 
7728
  if test "x$ac_ct_LIPO" = x; then
 
7729
    LIPO=":"
 
7730
  else
 
7731
    case $cross_compiling:$ac_tool_warned in
 
7732
yes:)
 
7733
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7734
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7735
ac_tool_warned=yes ;;
 
7736
esac
 
7737
    LIPO=$ac_ct_LIPO
 
7738
  fi
 
7739
else
 
7740
  LIPO="$ac_cv_prog_LIPO"
 
7741
fi
 
7742
 
 
7743
    if test -n "$ac_tool_prefix"; then
 
7744
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7745
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7747
$as_echo_n "checking for $ac_word... " >&6; }
 
7748
if ${ac_cv_prog_OTOOL+:} false; then :
 
7749
  $as_echo_n "(cached) " >&6
 
7750
else
 
7751
  if test -n "$OTOOL"; then
 
7752
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7753
else
 
7754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7755
for as_dir in $PATH
 
7756
do
 
7757
  IFS=$as_save_IFS
 
7758
  test -z "$as_dir" && as_dir=.
 
7759
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7760
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7761
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7762
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7763
    break 2
 
7764
  fi
 
7765
done
 
7766
  done
 
7767
IFS=$as_save_IFS
 
7768
 
 
7769
fi
 
7770
fi
 
7771
OTOOL=$ac_cv_prog_OTOOL
 
7772
if test -n "$OTOOL"; then
 
7773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7774
$as_echo "$OTOOL" >&6; }
 
7775
else
 
7776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7777
$as_echo "no" >&6; }
 
7778
fi
 
7779
 
 
7780
 
 
7781
fi
 
7782
if test -z "$ac_cv_prog_OTOOL"; then
 
7783
  ac_ct_OTOOL=$OTOOL
 
7784
  # Extract the first word of "otool", so it can be a program name with args.
 
7785
set dummy otool; ac_word=$2
 
7786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7787
$as_echo_n "checking for $ac_word... " >&6; }
 
7788
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7789
  $as_echo_n "(cached) " >&6
 
7790
else
 
7791
  if test -n "$ac_ct_OTOOL"; then
 
7792
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7793
else
 
7794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7795
for as_dir in $PATH
 
7796
do
 
7797
  IFS=$as_save_IFS
 
7798
  test -z "$as_dir" && as_dir=.
 
7799
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7800
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7801
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7802
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7803
    break 2
 
7804
  fi
 
7805
done
 
7806
  done
 
7807
IFS=$as_save_IFS
 
7808
 
 
7809
fi
 
7810
fi
 
7811
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7812
if test -n "$ac_ct_OTOOL"; then
 
7813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7814
$as_echo "$ac_ct_OTOOL" >&6; }
 
7815
else
 
7816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7817
$as_echo "no" >&6; }
 
7818
fi
 
7819
 
 
7820
  if test "x$ac_ct_OTOOL" = x; then
 
7821
    OTOOL=":"
 
7822
  else
 
7823
    case $cross_compiling:$ac_tool_warned in
 
7824
yes:)
 
7825
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7826
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7827
ac_tool_warned=yes ;;
 
7828
esac
 
7829
    OTOOL=$ac_ct_OTOOL
 
7830
  fi
 
7831
else
 
7832
  OTOOL="$ac_cv_prog_OTOOL"
 
7833
fi
 
7834
 
 
7835
    if test -n "$ac_tool_prefix"; then
 
7836
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7837
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7839
$as_echo_n "checking for $ac_word... " >&6; }
 
7840
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7841
  $as_echo_n "(cached) " >&6
 
7842
else
 
7843
  if test -n "$OTOOL64"; then
 
7844
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7845
else
 
7846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7847
for as_dir in $PATH
 
7848
do
 
7849
  IFS=$as_save_IFS
 
7850
  test -z "$as_dir" && as_dir=.
 
7851
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7852
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7853
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7854
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7855
    break 2
 
7856
  fi
 
7857
done
 
7858
  done
 
7859
IFS=$as_save_IFS
 
7860
 
 
7861
fi
 
7862
fi
 
7863
OTOOL64=$ac_cv_prog_OTOOL64
 
7864
if test -n "$OTOOL64"; then
 
7865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7866
$as_echo "$OTOOL64" >&6; }
 
7867
else
 
7868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7869
$as_echo "no" >&6; }
 
7870
fi
 
7871
 
 
7872
 
 
7873
fi
 
7874
if test -z "$ac_cv_prog_OTOOL64"; then
 
7875
  ac_ct_OTOOL64=$OTOOL64
 
7876
  # Extract the first word of "otool64", so it can be a program name with args.
 
7877
set dummy otool64; ac_word=$2
 
7878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7879
$as_echo_n "checking for $ac_word... " >&6; }
 
7880
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7881
  $as_echo_n "(cached) " >&6
 
7882
else
 
7883
  if test -n "$ac_ct_OTOOL64"; then
 
7884
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7885
else
 
7886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7887
for as_dir in $PATH
 
7888
do
 
7889
  IFS=$as_save_IFS
 
7890
  test -z "$as_dir" && as_dir=.
 
7891
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7892
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7893
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7894
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7895
    break 2
 
7896
  fi
 
7897
done
 
7898
  done
 
7899
IFS=$as_save_IFS
 
7900
 
 
7901
fi
 
7902
fi
 
7903
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7904
if test -n "$ac_ct_OTOOL64"; then
 
7905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7906
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7907
else
 
7908
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7909
$as_echo "no" >&6; }
 
7910
fi
 
7911
 
 
7912
  if test "x$ac_ct_OTOOL64" = x; then
 
7913
    OTOOL64=":"
 
7914
  else
 
7915
    case $cross_compiling:$ac_tool_warned in
 
7916
yes:)
 
7917
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7918
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7919
ac_tool_warned=yes ;;
 
7920
esac
 
7921
    OTOOL64=$ac_ct_OTOOL64
 
7922
  fi
 
7923
else
 
7924
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7925
fi
 
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
 
 
7948
 
 
7949
 
 
7950
 
 
7951
 
 
7952
 
 
7953
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7954
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7955
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7956
  $as_echo_n "(cached) " >&6
 
7957
else
 
7958
  lt_cv_apple_cc_single_mod=no
 
7959
      if test -z "${LT_MULTI_MODULE}"; then
 
7960
        # By default we will add the -single_module flag. You can override
 
7961
        # by either setting the environment variable LT_MULTI_MODULE
 
7962
        # non-empty at configure time, or by adding -multi_module to the
 
7963
        # link flags.
 
7964
        rm -rf libconftest.dylib*
 
7965
        echo "int foo(void){return 1;}" > conftest.c
 
7966
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7967
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7968
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7969
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7970
        _lt_result=$?
 
7971
        # If there is a non-empty error log, and "single_module"
 
7972
        # appears in it, assume the flag caused a linker warning
 
7973
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7974
          cat conftest.err >&5
 
7975
        # Otherwise, if the output was created with a 0 exit code from
 
7976
        # the compiler, it worked.
 
7977
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7978
          lt_cv_apple_cc_single_mod=yes
 
7979
        else
 
7980
          cat conftest.err >&5
 
7981
        fi
 
7982
        rm -rf libconftest.dylib*
 
7983
        rm -f conftest.*
 
7984
      fi
 
7985
fi
 
7986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7987
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7988
 
 
7989
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7990
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7991
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7992
  $as_echo_n "(cached) " >&6
 
7993
else
 
7994
  lt_cv_ld_exported_symbols_list=no
 
7995
      save_LDFLAGS=$LDFLAGS
 
7996
      echo "_main" > conftest.sym
 
7997
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7998
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7999
/* end confdefs.h.  */
 
8000
 
 
8001
int
 
8002
main ()
 
8003
{
 
8004
 
 
8005
  ;
 
8006
  return 0;
 
8007
}
 
8008
_ACEOF
 
8009
if ac_fn_c_try_link "$LINENO"; then :
 
8010
  lt_cv_ld_exported_symbols_list=yes
 
8011
else
 
8012
  lt_cv_ld_exported_symbols_list=no
 
8013
fi
 
8014
rm -f core conftest.err conftest.$ac_objext \
 
8015
    conftest$ac_exeext conftest.$ac_ext
 
8016
        LDFLAGS="$save_LDFLAGS"
 
8017
 
 
8018
fi
 
8019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8020
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8021
 
 
8022
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8023
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8024
if ${lt_cv_ld_force_load+:} false; then :
 
8025
  $as_echo_n "(cached) " >&6
 
8026
else
 
8027
  lt_cv_ld_force_load=no
 
8028
      cat > conftest.c << _LT_EOF
 
8029
int forced_loaded() { return 2;}
 
8030
_LT_EOF
 
8031
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8032
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8033
      echo "$AR cru libconftest.a conftest.o" >&5
 
8034
      $AR cru libconftest.a conftest.o 2>&5
 
8035
      echo "$RANLIB libconftest.a" >&5
 
8036
      $RANLIB libconftest.a 2>&5
 
8037
      cat > conftest.c << _LT_EOF
 
8038
int main() { return 0;}
 
8039
_LT_EOF
 
8040
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8041
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8042
      _lt_result=$?
 
8043
      if test -s conftest.err && $GREP force_load conftest.err; then
 
8044
        cat conftest.err >&5
 
8045
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
8046
        lt_cv_ld_force_load=yes
 
8047
      else
 
8048
        cat conftest.err >&5
 
8049
      fi
 
8050
        rm -f conftest.err libconftest.a conftest conftest.c
 
8051
        rm -rf conftest.dSYM
 
8052
 
 
8053
fi
 
8054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8055
$as_echo "$lt_cv_ld_force_load" >&6; }
 
8056
    case $host_os in
 
8057
    rhapsody* | darwin1.[012])
 
8058
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
8059
    darwin1.*)
 
8060
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8061
    darwin*) # darwin 5.x on
 
8062
      # if running on 10.5 or later, the deployment target defaults
 
8063
      # to the OS version, if on x86, and 10.4, the deployment
 
8064
      # target defaults to 10.4. Don't you love it?
 
8065
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8066
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8067
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8068
        10.[012]*)
 
8069
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8070
        10.*)
 
8071
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8072
      esac
 
8073
    ;;
 
8074
  esac
 
8075
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8076
      _lt_dar_single_mod='$single_module'
 
8077
    fi
 
8078
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8079
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8080
    else
 
8081
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8082
    fi
 
8083
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
8084
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8085
    else
 
8086
      _lt_dsymutil=
 
8087
    fi
 
8088
    ;;
 
8089
  esac
 
8090
 
 
8091
 
 
8092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8093
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8094
if ${ac_cv_header_stdc+:} false; then :
 
8095
  $as_echo_n "(cached) " >&6
 
8096
else
 
8097
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8098
/* end confdefs.h.  */
 
8099
#include <stdlib.h>
 
8100
#include <stdarg.h>
 
8101
#include <string.h>
 
8102
#include <float.h>
 
8103
 
 
8104
int
 
8105
main ()
 
8106
{
 
8107
 
 
8108
  ;
 
8109
  return 0;
 
8110
}
 
8111
_ACEOF
 
8112
if ac_fn_c_try_compile "$LINENO"; then :
 
8113
  ac_cv_header_stdc=yes
 
8114
else
 
8115
  ac_cv_header_stdc=no
 
8116
fi
 
8117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8118
 
 
8119
if test $ac_cv_header_stdc = yes; then
 
8120
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8121
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8122
/* end confdefs.h.  */
 
8123
#include <string.h>
 
8124
 
 
8125
_ACEOF
 
8126
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8127
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8128
 
 
8129
else
 
8130
  ac_cv_header_stdc=no
 
8131
fi
 
8132
rm -f conftest*
 
8133
 
 
8134
fi
 
8135
 
 
8136
if test $ac_cv_header_stdc = yes; then
 
8137
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8138
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8139
/* end confdefs.h.  */
 
8140
#include <stdlib.h>
 
8141
 
 
8142
_ACEOF
 
8143
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8144
  $EGREP "free" >/dev/null 2>&1; then :
 
8145
 
 
8146
else
 
8147
  ac_cv_header_stdc=no
 
8148
fi
 
8149
rm -f conftest*
 
8150
 
 
8151
fi
 
8152
 
 
8153
if test $ac_cv_header_stdc = yes; then
 
8154
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8155
  if test "$cross_compiling" = yes; then :
 
8156
  :
 
8157
else
 
8158
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8159
/* end confdefs.h.  */
 
8160
#include <ctype.h>
 
8161
#include <stdlib.h>
 
8162
#if ((' ' & 0x0FF) == 0x020)
 
8163
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8164
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8165
#else
 
8166
# define ISLOWER(c) \
 
8167
                   (('a' <= (c) && (c) <= 'i') \
 
8168
                     || ('j' <= (c) && (c) <= 'r') \
 
8169
                     || ('s' <= (c) && (c) <= 'z'))
 
8170
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8171
#endif
 
8172
 
 
8173
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8174
int
 
8175
main ()
 
8176
{
 
8177
  int i;
 
8178
  for (i = 0; i < 256; i++)
 
8179
    if (XOR (islower (i), ISLOWER (i))
 
8180
        || toupper (i) != TOUPPER (i))
 
8181
      return 2;
 
8182
  return 0;
 
8183
}
 
8184
_ACEOF
 
8185
if ac_fn_c_try_run "$LINENO"; then :
 
8186
 
 
8187
else
 
8188
  ac_cv_header_stdc=no
 
8189
fi
 
8190
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8191
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8192
fi
 
8193
 
 
8194
fi
 
8195
fi
 
8196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8197
$as_echo "$ac_cv_header_stdc" >&6; }
 
8198
if test $ac_cv_header_stdc = yes; then
 
8199
 
 
8200
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
8201
 
 
8202
fi
 
8203
 
 
8204
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8205
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8206
                  inttypes.h stdint.h unistd.h
 
8207
do :
 
8208
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8209
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8210
"
 
8211
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8212
  cat >>confdefs.h <<_ACEOF
 
8213
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8214
_ACEOF
 
8215
 
 
8216
fi
 
8217
 
 
8218
done
 
8219
 
 
8220
 
 
8221
for ac_header in dlfcn.h
 
8222
do :
 
8223
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8224
"
 
8225
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8226
  cat >>confdefs.h <<_ACEOF
 
8227
#define HAVE_DLFCN_H 1
 
8228
_ACEOF
 
8229
 
 
8230
fi
 
8231
 
 
8232
done
 
8233
 
 
8234
 
 
8235
 
 
8236
 
 
8237
func_stripname_cnf ()
 
8238
{
 
8239
  case ${2} in
 
8240
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8241
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8242
  esac
 
8243
} # func_stripname_cnf
 
8244
 
 
8245
 
 
8246
 
 
8247
 
 
8248
 
 
8249
# Set options
 
8250
 
 
8251
 
 
8252
 
 
8253
        enable_dlopen=no
 
8254
 
 
8255
 
 
8256
  enable_win32_dll=no
 
8257
 
 
8258
 
 
8259
            # Check whether --enable-shared was given.
 
8260
if test "${enable_shared+set}" = set; then :
 
8261
  enableval=$enable_shared; p=${PACKAGE-default}
 
8262
    case $enableval in
 
8263
    yes) enable_shared=yes ;;
 
8264
    no) enable_shared=no ;;
 
8265
    *)
 
8266
      enable_shared=no
 
8267
      # Look at the argument we got.  We use all the common list separators.
 
8268
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8269
      for pkg in $enableval; do
 
8270
        IFS="$lt_save_ifs"
 
8271
        if test "X$pkg" = "X$p"; then
 
8272
          enable_shared=yes
 
8273
        fi
 
8274
      done
 
8275
      IFS="$lt_save_ifs"
 
8276
      ;;
 
8277
    esac
 
8278
else
 
8279
  enable_shared=yes
 
8280
fi
 
8281
 
 
8282
 
 
8283
 
 
8284
 
 
8285
 
 
8286
 
 
8287
 
 
8288
 
 
8289
 
 
8290
  # Check whether --enable-static was given.
 
8291
if test "${enable_static+set}" = set; then :
 
8292
  enableval=$enable_static; p=${PACKAGE-default}
 
8293
    case $enableval in
 
8294
    yes) enable_static=yes ;;
 
8295
    no) enable_static=no ;;
 
8296
    *)
 
8297
     enable_static=no
 
8298
      # Look at the argument we got.  We use all the common list separators.
 
8299
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8300
      for pkg in $enableval; do
 
8301
        IFS="$lt_save_ifs"
 
8302
        if test "X$pkg" = "X$p"; then
 
8303
          enable_static=yes
 
8304
        fi
 
8305
      done
 
8306
      IFS="$lt_save_ifs"
 
8307
      ;;
 
8308
    esac
 
8309
else
 
8310
  enable_static=yes
 
8311
fi
 
8312
 
 
8313
 
 
8314
 
 
8315
 
 
8316
 
 
8317
 
 
8318
 
 
8319
 
 
8320
 
 
8321
 
 
8322
# Check whether --with-pic was given.
 
8323
if test "${with_pic+set}" = set; then :
 
8324
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8325
    case $withval in
 
8326
    yes|no) pic_mode=$withval ;;
 
8327
    *)
 
8328
      pic_mode=default
 
8329
      # Look at the argument we got.  We use all the common list separators.
 
8330
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8331
      for lt_pkg in $withval; do
 
8332
        IFS="$lt_save_ifs"
 
8333
        if test "X$lt_pkg" = "X$lt_p"; then
 
8334
          pic_mode=yes
 
8335
        fi
 
8336
      done
 
8337
      IFS="$lt_save_ifs"
 
8338
      ;;
 
8339
    esac
 
8340
else
 
8341
  pic_mode=default
 
8342
fi
 
8343
 
 
8344
 
 
8345
test -z "$pic_mode" && pic_mode=default
 
8346
 
 
8347
 
 
8348
 
 
8349
 
 
8350
 
 
8351
 
 
8352
 
 
8353
  # Check whether --enable-fast-install was given.
 
8354
if test "${enable_fast_install+set}" = set; then :
 
8355
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8356
    case $enableval in
 
8357
    yes) enable_fast_install=yes ;;
 
8358
    no) enable_fast_install=no ;;
 
8359
    *)
 
8360
      enable_fast_install=no
 
8361
      # Look at the argument we got.  We use all the common list separators.
 
8362
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8363
      for pkg in $enableval; do
 
8364
        IFS="$lt_save_ifs"
 
8365
        if test "X$pkg" = "X$p"; then
 
8366
          enable_fast_install=yes
 
8367
        fi
 
8368
      done
 
8369
      IFS="$lt_save_ifs"
 
8370
      ;;
 
8371
    esac
 
8372
else
 
8373
  enable_fast_install=yes
 
8374
fi
 
8375
 
 
8376
 
 
8377
 
 
8378
 
 
8379
 
 
8380
 
 
8381
 
 
8382
 
 
8383
 
 
8384
 
 
8385
 
 
8386
# This can be used to rebuild libtool when needed
 
8387
LIBTOOL_DEPS="$ltmain"
 
8388
 
 
8389
# Always use our own libtool.
 
8390
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8391
 
 
8392
 
 
8393
 
 
8394
 
 
8395
 
 
8396
 
 
8397
 
 
8398
 
 
8399
 
 
8400
 
 
8401
 
 
8402
 
 
8403
 
 
8404
 
 
8405
 
 
8406
 
 
8407
 
 
8408
 
 
8409
 
 
8410
 
 
8411
 
 
8412
 
 
8413
 
 
8414
 
 
8415
 
 
8416
 
 
8417
 
 
8418
 
 
8419
 
 
8420
 
 
8421
test -z "$LN_S" && LN_S="ln -s"
 
8422
 
 
8423
 
 
8424
 
 
8425
 
 
8426
 
 
8427
 
 
8428
 
 
8429
 
 
8430
 
 
8431
 
 
8432
 
 
8433
 
 
8434
 
 
8435
 
 
8436
if test -n "${ZSH_VERSION+set}" ; then
 
8437
   setopt NO_GLOB_SUBST
 
8438
fi
 
8439
 
 
8440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8441
$as_echo_n "checking for objdir... " >&6; }
 
8442
if ${lt_cv_objdir+:} false; then :
 
8443
  $as_echo_n "(cached) " >&6
 
8444
else
 
8445
  rm -f .libs 2>/dev/null
 
8446
mkdir .libs 2>/dev/null
 
8447
if test -d .libs; then
 
8448
  lt_cv_objdir=.libs
 
8449
else
 
8450
  # MS-DOS does not allow filenames that begin with a dot.
 
8451
  lt_cv_objdir=_libs
 
8452
fi
 
8453
rmdir .libs 2>/dev/null
 
8454
fi
 
8455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8456
$as_echo "$lt_cv_objdir" >&6; }
 
8457
objdir=$lt_cv_objdir
 
8458
 
 
8459
 
 
8460
 
 
8461
 
 
8462
 
 
8463
cat >>confdefs.h <<_ACEOF
 
8464
#define LT_OBJDIR "$lt_cv_objdir/"
 
8465
_ACEOF
 
8466
 
 
8467
 
 
8468
 
 
8469
 
 
8470
case $host_os in
 
8471
aix3*)
 
8472
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8473
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8474
  # vanish in a puff of smoke.
 
8475
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8476
    COLLECT_NAMES=
 
8477
    export COLLECT_NAMES
 
8478
  fi
 
8479
  ;;
 
8480
esac
 
8481
 
 
8482
# Global variables:
 
8483
ofile=libtool
 
8484
can_build_shared=yes
 
8485
 
 
8486
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8487
# which needs '.lib').
 
8488
libext=a
 
8489
 
 
8490
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8491
 
 
8492
old_CC="$CC"
 
8493
old_CFLAGS="$CFLAGS"
 
8494
 
 
8495
# Set sane defaults for various variables
 
8496
test -z "$CC" && CC=cc
 
8497
test -z "$LTCC" && LTCC=$CC
 
8498
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8499
test -z "$LD" && LD=ld
 
8500
test -z "$ac_objext" && ac_objext=o
 
8501
 
 
8502
for cc_temp in $compiler""; do
 
8503
  case $cc_temp in
 
8504
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8505
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8506
    \-*) ;;
 
8507
    *) break;;
 
8508
  esac
 
8509
done
 
8510
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8511
 
 
8512
 
 
8513
# Only perform the check for file, if the check method requires it
 
8514
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8515
case $deplibs_check_method in
 
8516
file_magic*)
 
8517
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8518
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8519
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8520
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8521
  $as_echo_n "(cached) " >&6
 
8522
else
 
8523
  case $MAGIC_CMD in
 
8524
[\\/*] |  ?:[\\/]*)
 
8525
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8526
  ;;
 
8527
*)
 
8528
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8529
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8530
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8531
  for ac_dir in $ac_dummy; do
 
8532
    IFS="$lt_save_ifs"
 
8533
    test -z "$ac_dir" && ac_dir=.
 
8534
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8535
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8536
      if test -n "$file_magic_test_file"; then
 
8537
        case $deplibs_check_method in
 
8538
        "file_magic "*)
 
8539
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8540
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8541
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8542
            $EGREP "$file_magic_regex" > /dev/null; then
 
8543
            :
 
8544
          else
 
8545
            cat <<_LT_EOF 1>&2
 
8546
 
 
8547
*** Warning: the command libtool uses to detect shared libraries,
 
8548
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8549
*** The result is that libtool may fail to recognize shared libraries
 
8550
*** as such.  This will affect the creation of libtool libraries that
 
8551
*** depend on shared libraries, but programs linked with such libtool
 
8552
*** libraries will work regardless of this problem.  Nevertheless, you
 
8553
*** may want to report the problem to your system manager and/or to
 
8554
*** bug-libtool@gnu.org
 
8555
 
 
8556
_LT_EOF
 
8557
          fi ;;
 
8558
        esac
 
8559
      fi
 
8560
      break
 
8561
    fi
 
8562
  done
 
8563
  IFS="$lt_save_ifs"
 
8564
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8565
  ;;
 
8566
esac
 
8567
fi
 
8568
 
 
8569
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8570
if test -n "$MAGIC_CMD"; then
 
8571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8572
$as_echo "$MAGIC_CMD" >&6; }
 
8573
else
 
8574
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8575
$as_echo "no" >&6; }
 
8576
fi
 
8577
 
 
8578
 
 
8579
 
 
8580
 
 
8581
 
 
8582
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8583
  if test -n "$ac_tool_prefix"; then
 
8584
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8585
$as_echo_n "checking for file... " >&6; }
 
8586
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8587
  $as_echo_n "(cached) " >&6
 
8588
else
 
8589
  case $MAGIC_CMD in
 
8590
[\\/*] |  ?:[\\/]*)
 
8591
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8592
  ;;
 
8593
*)
 
8594
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8595
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8596
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8597
  for ac_dir in $ac_dummy; do
 
8598
    IFS="$lt_save_ifs"
 
8599
    test -z "$ac_dir" && ac_dir=.
 
8600
    if test -f $ac_dir/file; then
 
8601
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8602
      if test -n "$file_magic_test_file"; then
 
8603
        case $deplibs_check_method in
 
8604
        "file_magic "*)
 
8605
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8606
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8607
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8608
            $EGREP "$file_magic_regex" > /dev/null; then
 
8609
            :
 
8610
          else
 
8611
            cat <<_LT_EOF 1>&2
 
8612
 
 
8613
*** Warning: the command libtool uses to detect shared libraries,
 
8614
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8615
*** The result is that libtool may fail to recognize shared libraries
 
8616
*** as such.  This will affect the creation of libtool libraries that
 
8617
*** depend on shared libraries, but programs linked with such libtool
 
8618
*** libraries will work regardless of this problem.  Nevertheless, you
 
8619
*** may want to report the problem to your system manager and/or to
 
8620
*** bug-libtool@gnu.org
 
8621
 
 
8622
_LT_EOF
 
8623
          fi ;;
 
8624
        esac
 
8625
      fi
 
8626
      break
 
8627
    fi
 
8628
  done
 
8629
  IFS="$lt_save_ifs"
 
8630
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8631
  ;;
 
8632
esac
 
8633
fi
 
8634
 
 
8635
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8636
if test -n "$MAGIC_CMD"; then
 
8637
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8638
$as_echo "$MAGIC_CMD" >&6; }
 
8639
else
 
8640
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8641
$as_echo "no" >&6; }
 
8642
fi
 
8643
 
 
8644
 
 
8645
  else
 
8646
    MAGIC_CMD=:
 
8647
  fi
 
8648
fi
 
8649
 
 
8650
  fi
 
8651
  ;;
 
8652
esac
 
8653
 
 
8654
# Use C for the default configuration in the libtool script
 
8655
 
 
8656
lt_save_CC="$CC"
 
8657
ac_ext=c
 
8658
ac_cpp='$CPP $CPPFLAGS'
 
8659
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8660
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8661
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8662
 
 
8663
 
 
8664
# Source file extension for C test sources.
 
8665
ac_ext=c
 
8666
 
 
8667
# Object file extension for compiled C test sources.
 
8668
objext=o
 
8669
objext=$objext
 
8670
 
 
8671
# Code to be used in simple compile tests
 
8672
lt_simple_compile_test_code="int some_variable = 0;"
 
8673
 
 
8674
# Code to be used in simple link tests
 
8675
lt_simple_link_test_code='int main(){return(0);}'
 
8676
 
 
8677
 
 
8678
 
 
8679
 
 
8680
 
 
8681
 
 
8682
 
 
8683
# If no C compiler was specified, use CC.
 
8684
LTCC=${LTCC-"$CC"}
 
8685
 
 
8686
# If no C compiler flags were specified, use CFLAGS.
 
8687
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8688
 
 
8689
# Allow CC to be a program name with arguments.
 
8690
compiler=$CC
 
8691
 
 
8692
# Save the default compiler, since it gets overwritten when the other
 
8693
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8694
compiler_DEFAULT=$CC
 
8695
 
 
8696
# save warnings/boilerplate of simple test code
 
8697
ac_outfile=conftest.$ac_objext
 
8698
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8699
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8700
_lt_compiler_boilerplate=`cat conftest.err`
 
8701
$RM conftest*
 
8702
 
 
8703
ac_outfile=conftest.$ac_objext
 
8704
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8705
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8706
_lt_linker_boilerplate=`cat conftest.err`
 
8707
$RM -r conftest*
 
8708
 
 
8709
 
 
8710
## CAVEAT EMPTOR:
 
8711
## There is no encapsulation within the following macros, do not change
 
8712
## the running order or otherwise move them around unless you know exactly
 
8713
## what you are doing...
 
8714
if test -n "$compiler"; then
 
8715
 
 
8716
lt_prog_compiler_no_builtin_flag=
 
8717
 
 
8718
if test "$GCC" = yes; then
 
8719
  case $cc_basename in
 
8720
  nvcc*)
 
8721
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8722
  *)
 
8723
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8724
  esac
 
8725
 
 
8726
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8727
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8728
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8729
  $as_echo_n "(cached) " >&6
 
8730
else
 
8731
  lt_cv_prog_compiler_rtti_exceptions=no
 
8732
   ac_outfile=conftest.$ac_objext
 
8733
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8734
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8735
   # Insert the option either (1) after the last *FLAGS variable, or
 
8736
   # (2) before a word containing "conftest.", or (3) at the end.
 
8737
   # Note that $ac_compile itself does not contain backslashes and begins
 
8738
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8739
   # The option is referenced via a variable to avoid confusing sed.
 
8740
   lt_compile=`echo "$ac_compile" | $SED \
 
8741
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8742
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8743
   -e 's:$: $lt_compiler_flag:'`
 
8744
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8745
   (eval "$lt_compile" 2>conftest.err)
 
8746
   ac_status=$?
 
8747
   cat conftest.err >&5
 
8748
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8749
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8750
     # The compiler can only warn and ignore the option if not recognized
 
8751
     # So say no if there are warnings other than the usual output.
 
8752
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8753
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8754
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8755
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8756
     fi
 
8757
   fi
 
8758
   $RM conftest*
 
8759
 
 
8760
fi
 
8761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8762
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8763
 
 
8764
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8765
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8766
else
 
8767
    :
 
8768
fi
 
8769
 
 
8770
fi
 
8771
 
 
8772
 
 
8773
 
 
8774
 
 
8775
 
 
8776
 
 
8777
  lt_prog_compiler_wl=
 
8778
lt_prog_compiler_pic=
 
8779
lt_prog_compiler_static=
 
8780
 
 
8781
 
 
8782
  if test "$GCC" = yes; then
 
8783
    lt_prog_compiler_wl='-Wl,'
 
8784
    lt_prog_compiler_static='-static'
 
8785
 
 
8786
    case $host_os in
 
8787
      aix*)
 
8788
      # All AIX code is PIC.
 
8789
      if test "$host_cpu" = ia64; then
 
8790
        # AIX 5 now supports IA64 processor
 
8791
        lt_prog_compiler_static='-Bstatic'
 
8792
      fi
 
8793
      ;;
 
8794
 
 
8795
    amigaos*)
 
8796
      case $host_cpu in
 
8797
      powerpc)
 
8798
            # see comment about AmigaOS4 .so support
 
8799
            lt_prog_compiler_pic='-fPIC'
 
8800
        ;;
 
8801
      m68k)
 
8802
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8803
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8804
            # like `-m68040'.
 
8805
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8806
        ;;
 
8807
      esac
 
8808
      ;;
 
8809
 
 
8810
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8811
      # PIC is the default for these OSes.
 
8812
      ;;
 
8813
 
 
8814
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8815
      # This hack is so that the source file can tell whether it is being
 
8816
      # built for inclusion in a dll (and should export symbols for example).
 
8817
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8818
      # (--disable-auto-import) libraries
 
8819
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8820
      ;;
 
8821
 
 
8822
    darwin* | rhapsody*)
 
8823
      # PIC is the default on this platform
 
8824
      # Common symbols not allowed in MH_DYLIB files
 
8825
      lt_prog_compiler_pic='-fno-common'
 
8826
      ;;
 
8827
 
 
8828
    haiku*)
 
8829
      # PIC is the default for Haiku.
 
8830
      # The "-static" flag exists, but is broken.
 
8831
      lt_prog_compiler_static=
 
8832
      ;;
 
8833
 
 
8834
    hpux*)
 
8835
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8836
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8837
      # sets the default TLS model and affects inlining.
 
8838
      case $host_cpu in
 
8839
      hppa*64*)
 
8840
        # +Z the default
 
8841
        ;;
 
8842
      *)
 
8843
        lt_prog_compiler_pic='-fPIC'
 
8844
        ;;
 
8845
      esac
 
8846
      ;;
 
8847
 
 
8848
    interix[3-9]*)
 
8849
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8850
      # Instead, we relocate shared libraries at runtime.
 
8851
      ;;
 
8852
 
 
8853
    msdosdjgpp*)
 
8854
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8855
      # on systems that don't support them.
 
8856
      lt_prog_compiler_can_build_shared=no
 
8857
      enable_shared=no
 
8858
      ;;
 
8859
 
 
8860
    *nto* | *qnx*)
 
8861
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8862
      # it will coredump.
 
8863
      lt_prog_compiler_pic='-fPIC -shared'
 
8864
      ;;
 
8865
 
 
8866
    sysv4*MP*)
 
8867
      if test -d /usr/nec; then
 
8868
        lt_prog_compiler_pic=-Kconform_pic
 
8869
      fi
 
8870
      ;;
 
8871
 
 
8872
    *)
 
8873
      lt_prog_compiler_pic='-fPIC'
 
8874
      ;;
 
8875
    esac
 
8876
 
 
8877
    case $cc_basename in
 
8878
    nvcc*) # Cuda Compiler Driver 2.2
 
8879
      lt_prog_compiler_wl='-Xlinker '
 
8880
      if test -n "$lt_prog_compiler_pic"; then
 
8881
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8882
      fi
 
8883
      ;;
 
8884
    esac
 
8885
  else
 
8886
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8887
    case $host_os in
 
8888
    aix*)
 
8889
      lt_prog_compiler_wl='-Wl,'
 
8890
      if test "$host_cpu" = ia64; then
 
8891
        # AIX 5 now supports IA64 processor
 
8892
        lt_prog_compiler_static='-Bstatic'
 
8893
      else
 
8894
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8895
      fi
 
8896
      ;;
 
8897
 
 
8898
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8899
      # This hack is so that the source file can tell whether it is being
 
8900
      # built for inclusion in a dll (and should export symbols for example).
 
8901
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8902
      ;;
 
8903
 
 
8904
    hpux9* | hpux10* | hpux11*)
 
8905
      lt_prog_compiler_wl='-Wl,'
 
8906
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8907
      # not for PA HP-UX.
 
8908
      case $host_cpu in
 
8909
      hppa*64*|ia64*)
 
8910
        # +Z the default
 
8911
        ;;
 
8912
      *)
 
8913
        lt_prog_compiler_pic='+Z'
 
8914
        ;;
 
8915
      esac
 
8916
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8917
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8918
      ;;
 
8919
 
 
8920
    irix5* | irix6* | nonstopux*)
 
8921
      lt_prog_compiler_wl='-Wl,'
 
8922
      # PIC (with -KPIC) is the default.
 
8923
      lt_prog_compiler_static='-non_shared'
 
8924
      ;;
 
8925
 
 
8926
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8927
      case $cc_basename in
 
8928
      # old Intel for x86_64 which still supported -KPIC.
 
8929
      ecc*)
 
8930
        lt_prog_compiler_wl='-Wl,'
 
8931
        lt_prog_compiler_pic='-KPIC'
 
8932
        lt_prog_compiler_static='-static'
 
8933
        ;;
 
8934
      # icc used to be incompatible with GCC.
 
8935
      # ICC 10 doesn't accept -KPIC any more.
 
8936
      icc* | ifort*)
 
8937
        lt_prog_compiler_wl='-Wl,'
 
8938
        lt_prog_compiler_pic='-fPIC'
 
8939
        lt_prog_compiler_static='-static'
 
8940
        ;;
 
8941
      # Lahey Fortran 8.1.
 
8942
      lf95*)
 
8943
        lt_prog_compiler_wl='-Wl,'
 
8944
        lt_prog_compiler_pic='--shared'
 
8945
        lt_prog_compiler_static='--static'
 
8946
        ;;
 
8947
      nagfor*)
 
8948
        # NAG Fortran compiler
 
8949
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8950
        lt_prog_compiler_pic='-PIC'
 
8951
        lt_prog_compiler_static='-Bstatic'
 
8952
        ;;
 
8953
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8954
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8955
        # which looks to be a dead project)
 
8956
        lt_prog_compiler_wl='-Wl,'
 
8957
        lt_prog_compiler_pic='-fpic'
 
8958
        lt_prog_compiler_static='-Bstatic'
 
8959
        ;;
 
8960
      ccc*)
 
8961
        lt_prog_compiler_wl='-Wl,'
 
8962
        # All Alpha code is PIC.
 
8963
        lt_prog_compiler_static='-non_shared'
 
8964
        ;;
 
8965
      xl* | bgxl* | bgf* | mpixl*)
 
8966
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8967
        lt_prog_compiler_wl='-Wl,'
 
8968
        lt_prog_compiler_pic='-qpic'
 
8969
        lt_prog_compiler_static='-qstaticlink'
 
8970
        ;;
 
8971
      *)
 
8972
        case `$CC -V 2>&1 | sed 5q` in
 
8973
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8974
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8975
          lt_prog_compiler_pic='-KPIC'
 
8976
          lt_prog_compiler_static='-Bstatic'
 
8977
          lt_prog_compiler_wl=''
 
8978
          ;;
 
8979
        *Sun\ F* | *Sun*Fortran*)
 
8980
          lt_prog_compiler_pic='-KPIC'
 
8981
          lt_prog_compiler_static='-Bstatic'
 
8982
          lt_prog_compiler_wl='-Qoption ld '
 
8983
          ;;
 
8984
        *Sun\ C*)
 
8985
          # Sun C 5.9
 
8986
          lt_prog_compiler_pic='-KPIC'
 
8987
          lt_prog_compiler_static='-Bstatic'
 
8988
          lt_prog_compiler_wl='-Wl,'
 
8989
          ;;
 
8990
        *Intel*\ [CF]*Compiler*)
 
8991
          lt_prog_compiler_wl='-Wl,'
 
8992
          lt_prog_compiler_pic='-fPIC'
 
8993
          lt_prog_compiler_static='-static'
 
8994
          ;;
 
8995
        *Portland\ Group*)
 
8996
          lt_prog_compiler_wl='-Wl,'
 
8997
          lt_prog_compiler_pic='-fpic'
 
8998
          lt_prog_compiler_static='-Bstatic'
 
8999
          ;;
 
9000
        esac
 
9001
        ;;
 
9002
      esac
 
9003
      ;;
 
9004
 
 
9005
    newsos6)
 
9006
      lt_prog_compiler_pic='-KPIC'
 
9007
      lt_prog_compiler_static='-Bstatic'
 
9008
      ;;
 
9009
 
 
9010
    *nto* | *qnx*)
 
9011
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9012
      # it will coredump.
 
9013
      lt_prog_compiler_pic='-fPIC -shared'
 
9014
      ;;
 
9015
 
 
9016
    osf3* | osf4* | osf5*)
 
9017
      lt_prog_compiler_wl='-Wl,'
 
9018
      # All OSF/1 code is PIC.
 
9019
      lt_prog_compiler_static='-non_shared'
 
9020
      ;;
 
9021
 
 
9022
    rdos*)
 
9023
      lt_prog_compiler_static='-non_shared'
 
9024
      ;;
 
9025
 
 
9026
    solaris*)
 
9027
      lt_prog_compiler_pic='-KPIC'
 
9028
      lt_prog_compiler_static='-Bstatic'
 
9029
      case $cc_basename in
 
9030
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
9031
        lt_prog_compiler_wl='-Qoption ld ';;
 
9032
      *)
 
9033
        lt_prog_compiler_wl='-Wl,';;
 
9034
      esac
 
9035
      ;;
 
9036
 
 
9037
    sunos4*)
 
9038
      lt_prog_compiler_wl='-Qoption ld '
 
9039
      lt_prog_compiler_pic='-PIC'
 
9040
      lt_prog_compiler_static='-Bstatic'
 
9041
      ;;
 
9042
 
 
9043
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9044
      lt_prog_compiler_wl='-Wl,'
 
9045
      lt_prog_compiler_pic='-KPIC'
 
9046
      lt_prog_compiler_static='-Bstatic'
 
9047
      ;;
 
9048
 
 
9049
    sysv4*MP*)
 
9050
      if test -d /usr/nec ;then
 
9051
        lt_prog_compiler_pic='-Kconform_pic'
 
9052
        lt_prog_compiler_static='-Bstatic'
 
9053
      fi
 
9054
      ;;
 
9055
 
 
9056
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9057
      lt_prog_compiler_wl='-Wl,'
 
9058
      lt_prog_compiler_pic='-KPIC'
 
9059
      lt_prog_compiler_static='-Bstatic'
 
9060
      ;;
 
9061
 
 
9062
    unicos*)
 
9063
      lt_prog_compiler_wl='-Wl,'
 
9064
      lt_prog_compiler_can_build_shared=no
 
9065
      ;;
 
9066
 
 
9067
    uts4*)
 
9068
      lt_prog_compiler_pic='-pic'
 
9069
      lt_prog_compiler_static='-Bstatic'
 
9070
      ;;
 
9071
 
 
9072
    *)
 
9073
      lt_prog_compiler_can_build_shared=no
 
9074
      ;;
 
9075
    esac
 
9076
  fi
 
9077
 
 
9078
case $host_os in
 
9079
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9080
  *djgpp*)
 
9081
    lt_prog_compiler_pic=
 
9082
    ;;
 
9083
  *)
 
9084
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9085
    ;;
 
9086
esac
 
9087
 
 
9088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9089
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9090
if ${lt_cv_prog_compiler_pic+:} false; then :
 
9091
  $as_echo_n "(cached) " >&6
 
9092
else
 
9093
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9094
fi
 
9095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9096
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9097
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9098
 
 
9099
#
 
9100
# Check to make sure the PIC flag actually works.
 
9101
#
 
9102
if test -n "$lt_prog_compiler_pic"; then
 
9103
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9104
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9105
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
9106
  $as_echo_n "(cached) " >&6
 
9107
else
 
9108
  lt_cv_prog_compiler_pic_works=no
 
9109
   ac_outfile=conftest.$ac_objext
 
9110
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9111
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9112
   # Insert the option either (1) after the last *FLAGS variable, or
 
9113
   # (2) before a word containing "conftest.", or (3) at the end.
 
9114
   # Note that $ac_compile itself does not contain backslashes and begins
 
9115
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9116
   # The option is referenced via a variable to avoid confusing sed.
 
9117
   lt_compile=`echo "$ac_compile" | $SED \
 
9118
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9119
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9120
   -e 's:$: $lt_compiler_flag:'`
 
9121
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9122
   (eval "$lt_compile" 2>conftest.err)
 
9123
   ac_status=$?
 
9124
   cat conftest.err >&5
 
9125
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9126
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9127
     # The compiler can only warn and ignore the option if not recognized
 
9128
     # So say no if there are warnings other than the usual output.
 
9129
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9130
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9131
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9132
       lt_cv_prog_compiler_pic_works=yes
 
9133
     fi
 
9134
   fi
 
9135
   $RM conftest*
 
9136
 
 
9137
fi
 
9138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9139
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9140
 
 
9141
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9142
    case $lt_prog_compiler_pic in
 
9143
     "" | " "*) ;;
 
9144
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9145
     esac
 
9146
else
 
9147
    lt_prog_compiler_pic=
 
9148
     lt_prog_compiler_can_build_shared=no
 
9149
fi
 
9150
 
 
9151
fi
 
9152
 
 
9153
 
 
9154
 
 
9155
 
 
9156
 
 
9157
 
 
9158
 
 
9159
 
 
9160
 
 
9161
 
 
9162
 
 
9163
#
 
9164
# Check to make sure the static flag actually works.
 
9165
#
 
9166
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9168
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9169
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9170
  $as_echo_n "(cached) " >&6
 
9171
else
 
9172
  lt_cv_prog_compiler_static_works=no
 
9173
   save_LDFLAGS="$LDFLAGS"
 
9174
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9175
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9176
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9177
     # The linker can only warn and ignore the option if not recognized
 
9178
     # So say no if there are warnings
 
9179
     if test -s conftest.err; then
 
9180
       # Append any errors to the config.log.
 
9181
       cat conftest.err 1>&5
 
9182
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9183
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9184
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9185
         lt_cv_prog_compiler_static_works=yes
 
9186
       fi
 
9187
     else
 
9188
       lt_cv_prog_compiler_static_works=yes
 
9189
     fi
 
9190
   fi
 
9191
   $RM -r conftest*
 
9192
   LDFLAGS="$save_LDFLAGS"
 
9193
 
 
9194
fi
 
9195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9196
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9197
 
 
9198
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9199
    :
 
9200
else
 
9201
    lt_prog_compiler_static=
 
9202
fi
 
9203
 
 
9204
 
 
9205
 
 
9206
 
 
9207
 
 
9208
 
 
9209
 
 
9210
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9211
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9212
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9213
  $as_echo_n "(cached) " >&6
 
9214
else
 
9215
  lt_cv_prog_compiler_c_o=no
 
9216
   $RM -r conftest 2>/dev/null
 
9217
   mkdir conftest
 
9218
   cd conftest
 
9219
   mkdir out
 
9220
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9221
 
 
9222
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9223
   # Insert the option either (1) after the last *FLAGS variable, or
 
9224
   # (2) before a word containing "conftest.", or (3) at the end.
 
9225
   # Note that $ac_compile itself does not contain backslashes and begins
 
9226
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9227
   lt_compile=`echo "$ac_compile" | $SED \
 
9228
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9229
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9230
   -e 's:$: $lt_compiler_flag:'`
 
9231
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9232
   (eval "$lt_compile" 2>out/conftest.err)
 
9233
   ac_status=$?
 
9234
   cat out/conftest.err >&5
 
9235
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9236
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9237
   then
 
9238
     # The compiler can only warn and ignore the option if not recognized
 
9239
     # So say no if there are warnings
 
9240
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9241
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9242
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9243
       lt_cv_prog_compiler_c_o=yes
 
9244
     fi
 
9245
   fi
 
9246
   chmod u+w . 2>&5
 
9247
   $RM conftest*
 
9248
   # SGI C++ compiler will create directory out/ii_files/ for
 
9249
   # template instantiation
 
9250
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9251
   $RM out/* && rmdir out
 
9252
   cd ..
 
9253
   $RM -r conftest
 
9254
   $RM conftest*
 
9255
 
 
9256
fi
 
9257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9258
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9259
 
 
9260
 
 
9261
 
 
9262
 
 
9263
 
 
9264
 
 
9265
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9266
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9267
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9268
  $as_echo_n "(cached) " >&6
 
9269
else
 
9270
  lt_cv_prog_compiler_c_o=no
 
9271
   $RM -r conftest 2>/dev/null
 
9272
   mkdir conftest
 
9273
   cd conftest
 
9274
   mkdir out
 
9275
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9276
 
 
9277
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9278
   # Insert the option either (1) after the last *FLAGS variable, or
 
9279
   # (2) before a word containing "conftest.", or (3) at the end.
 
9280
   # Note that $ac_compile itself does not contain backslashes and begins
 
9281
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9282
   lt_compile=`echo "$ac_compile" | $SED \
 
9283
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9284
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9285
   -e 's:$: $lt_compiler_flag:'`
 
9286
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9287
   (eval "$lt_compile" 2>out/conftest.err)
 
9288
   ac_status=$?
 
9289
   cat out/conftest.err >&5
 
9290
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9291
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9292
   then
 
9293
     # The compiler can only warn and ignore the option if not recognized
 
9294
     # So say no if there are warnings
 
9295
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9296
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9297
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9298
       lt_cv_prog_compiler_c_o=yes
 
9299
     fi
 
9300
   fi
 
9301
   chmod u+w . 2>&5
 
9302
   $RM conftest*
 
9303
   # SGI C++ compiler will create directory out/ii_files/ for
 
9304
   # template instantiation
 
9305
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9306
   $RM out/* && rmdir out
 
9307
   cd ..
 
9308
   $RM -r conftest
 
9309
   $RM conftest*
 
9310
 
 
9311
fi
 
9312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9313
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9314
 
 
9315
 
 
9316
 
 
9317
 
 
9318
hard_links="nottested"
 
9319
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9320
  # do not overwrite the value of need_locks provided by the user
 
9321
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9322
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9323
  hard_links=yes
 
9324
  $RM conftest*
 
9325
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9326
  touch conftest.a
 
9327
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9328
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9330
$as_echo "$hard_links" >&6; }
 
9331
  if test "$hard_links" = no; then
 
9332
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9333
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9334
    need_locks=warn
 
9335
  fi
 
9336
else
 
9337
  need_locks=no
 
9338
fi
 
9339
 
 
9340
 
 
9341
 
 
9342
 
 
9343
 
 
9344
 
 
9345
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9346
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9347
 
 
9348
  runpath_var=
 
9349
  allow_undefined_flag=
 
9350
  always_export_symbols=no
 
9351
  archive_cmds=
 
9352
  archive_expsym_cmds=
 
9353
  compiler_needs_object=no
 
9354
  enable_shared_with_static_runtimes=no
 
9355
  export_dynamic_flag_spec=
 
9356
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9357
  hardcode_automatic=no
 
9358
  hardcode_direct=no
 
9359
  hardcode_direct_absolute=no
 
9360
  hardcode_libdir_flag_spec=
 
9361
  hardcode_libdir_separator=
 
9362
  hardcode_minus_L=no
 
9363
  hardcode_shlibpath_var=unsupported
 
9364
  inherit_rpath=no
 
9365
  link_all_deplibs=unknown
 
9366
  module_cmds=
 
9367
  module_expsym_cmds=
 
9368
  old_archive_from_new_cmds=
 
9369
  old_archive_from_expsyms_cmds=
 
9370
  thread_safe_flag_spec=
 
9371
  whole_archive_flag_spec=
 
9372
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9373
  # included in the symbol list
 
9374
  include_expsyms=
 
9375
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9376
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9377
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9378
  # as well as any symbol that contains `d'.
 
9379
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9380
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9381
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9382
  # the symbol is explicitly referenced.  Since portable code cannot
 
9383
  # rely on this symbol name, it's probably fine to never include it in
 
9384
  # preloaded symbol tables.
 
9385
  # Exclude shared library initialization/finalization symbols.
 
9386
  extract_expsyms_cmds=
 
9387
 
 
9388
  case $host_os in
 
9389
  cygwin* | mingw* | pw32* | cegcc*)
 
9390
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9391
    # When not using gcc, we currently assume that we are using
 
9392
    # Microsoft Visual C++.
 
9393
    if test "$GCC" != yes; then
 
9394
      with_gnu_ld=no
 
9395
    fi
 
9396
    ;;
 
9397
  interix*)
 
9398
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9399
    with_gnu_ld=yes
 
9400
    ;;
 
9401
  openbsd*)
 
9402
    with_gnu_ld=no
 
9403
    ;;
 
9404
  linux* | k*bsd*-gnu | gnu*)
 
9405
    link_all_deplibs=no
 
9406
    ;;
 
9407
  esac
 
9408
 
 
9409
  ld_shlibs=yes
 
9410
 
 
9411
  # On some targets, GNU ld is compatible enough with the native linker
 
9412
  # that we're better off using the native interface for both.
 
9413
  lt_use_gnu_ld_interface=no
 
9414
  if test "$with_gnu_ld" = yes; then
 
9415
    case $host_os in
 
9416
      aix*)
 
9417
        # The AIX port of GNU ld has always aspired to compatibility
 
9418
        # with the native linker.  However, as the warning in the GNU ld
 
9419
        # block says, versions before 2.19.5* couldn't really create working
 
9420
        # shared libraries, regardless of the interface used.
 
9421
        case `$LD -v 2>&1` in
 
9422
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9423
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9424
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9425
          *)
 
9426
            lt_use_gnu_ld_interface=yes
 
9427
            ;;
 
9428
        esac
 
9429
        ;;
 
9430
      *)
 
9431
        lt_use_gnu_ld_interface=yes
 
9432
        ;;
 
9433
    esac
 
9434
  fi
 
9435
 
 
9436
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9437
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9438
    wlarc='${wl}'
 
9439
 
 
9440
    # Set some defaults for GNU ld with shared library support. These
 
9441
    # are reset later if shared libraries are not supported. Putting them
 
9442
    # here allows them to be overridden if necessary.
 
9443
    runpath_var=LD_RUN_PATH
 
9444
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9445
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9446
    # ancient GNU ld didn't support --whole-archive et. al.
 
9447
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9448
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9449
    else
 
9450
      whole_archive_flag_spec=
 
9451
    fi
 
9452
    supports_anon_versioning=no
 
9453
    case `$LD -v 2>&1` in
 
9454
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9455
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9456
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9457
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9458
      *\ 2.11.*) ;; # other 2.11 versions
 
9459
      *) supports_anon_versioning=yes ;;
 
9460
    esac
 
9461
 
 
9462
    # See if GNU ld supports shared libraries.
 
9463
    case $host_os in
 
9464
    aix[3-9]*)
 
9465
      # On AIX/PPC, the GNU linker is very broken
 
9466
      if test "$host_cpu" != ia64; then
 
9467
        ld_shlibs=no
 
9468
        cat <<_LT_EOF 1>&2
 
9469
 
 
9470
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9471
*** to be unable to reliably create shared libraries on AIX.
 
9472
*** Therefore, libtool is disabling shared libraries support.  If you
 
9473
*** really care for shared libraries, you may want to install binutils
 
9474
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9475
*** You will then need to restart the configuration process.
 
9476
 
 
9477
_LT_EOF
 
9478
      fi
 
9479
      ;;
 
9480
 
 
9481
    amigaos*)
 
9482
      case $host_cpu in
 
9483
      powerpc)
 
9484
            # see comment about AmigaOS4 .so support
 
9485
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9486
            archive_expsym_cmds=''
 
9487
        ;;
 
9488
      m68k)
 
9489
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9490
            hardcode_libdir_flag_spec='-L$libdir'
 
9491
            hardcode_minus_L=yes
 
9492
        ;;
 
9493
      esac
 
9494
      ;;
 
9495
 
 
9496
    beos*)
 
9497
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9498
        allow_undefined_flag=unsupported
 
9499
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9500
        # support --undefined.  This deserves some investigation.  FIXME
 
9501
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9502
      else
 
9503
        ld_shlibs=no
 
9504
      fi
 
9505
      ;;
 
9506
 
 
9507
    cygwin* | mingw* | pw32* | cegcc*)
 
9508
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9509
      # as there is no search path for DLLs.
 
9510
      hardcode_libdir_flag_spec='-L$libdir'
 
9511
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9512
      allow_undefined_flag=unsupported
 
9513
      always_export_symbols=no
 
9514
      enable_shared_with_static_runtimes=yes
 
9515
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9516
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9517
 
 
9518
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9519
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9520
        # If the export-symbols file already is a .def file (1st line
 
9521
        # is EXPORTS), use it as is; otherwise, prepend...
 
9522
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9523
          cp $export_symbols $output_objdir/$soname.def;
 
9524
        else
 
9525
          echo EXPORTS > $output_objdir/$soname.def;
 
9526
          cat $export_symbols >> $output_objdir/$soname.def;
 
9527
        fi~
 
9528
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9529
      else
 
9530
        ld_shlibs=no
 
9531
      fi
 
9532
      ;;
 
9533
 
 
9534
    haiku*)
 
9535
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9536
      link_all_deplibs=yes
 
9537
      ;;
 
9538
 
 
9539
    interix[3-9]*)
 
9540
      hardcode_direct=no
 
9541
      hardcode_shlibpath_var=no
 
9542
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9543
      export_dynamic_flag_spec='${wl}-E'
 
9544
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9545
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9546
      # default) and relocated if they conflict, which is a slow very memory
 
9547
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9548
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9549
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9550
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9551
      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'
 
9552
      ;;
 
9553
 
 
9554
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9555
      tmp_diet=no
 
9556
      if test "$host_os" = linux-dietlibc; then
 
9557
        case $cc_basename in
 
9558
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9559
        esac
 
9560
      fi
 
9561
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9562
         && test "$tmp_diet" = no
 
9563
      then
 
9564
        tmp_addflag=' $pic_flag'
 
9565
        tmp_sharedflag='-shared'
 
9566
        case $cc_basename,$host_cpu in
 
9567
        pgcc*)                          # Portland Group C compiler
 
9568
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9569
          tmp_addflag=' $pic_flag'
 
9570
          ;;
 
9571
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9572
                                        # Portland Group f77 and f90 compilers
 
9573
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9574
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9575
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9576
          tmp_addflag=' -i_dynamic' ;;
 
9577
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9578
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9579
        ifc* | ifort*)                  # Intel Fortran compiler
 
9580
          tmp_addflag=' -nofor_main' ;;
 
9581
        lf95*)                          # Lahey Fortran 8.1
 
9582
          whole_archive_flag_spec=
 
9583
          tmp_sharedflag='--shared' ;;
 
9584
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9585
          tmp_sharedflag='-qmkshrobj'
 
9586
          tmp_addflag= ;;
 
9587
        nvcc*)  # Cuda Compiler Driver 2.2
 
9588
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9589
          compiler_needs_object=yes
 
9590
          ;;
 
9591
        esac
 
9592
        case `$CC -V 2>&1 | sed 5q` in
 
9593
        *Sun\ C*)                       # Sun C 5.9
 
9594
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9595
          compiler_needs_object=yes
 
9596
          tmp_sharedflag='-G' ;;
 
9597
        *Sun\ F*)                       # Sun Fortran 8.3
 
9598
          tmp_sharedflag='-G' ;;
 
9599
        esac
 
9600
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9601
 
 
9602
        if test "x$supports_anon_versioning" = xyes; then
 
9603
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9604
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9605
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9606
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9607
        fi
 
9608
 
 
9609
        case $cc_basename in
 
9610
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9611
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9612
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9613
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9614
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9615
          if test "x$supports_anon_versioning" = xyes; then
 
9616
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9617
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9618
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9619
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9620
          fi
 
9621
          ;;
 
9622
        esac
 
9623
      else
 
9624
        ld_shlibs=no
 
9625
      fi
 
9626
      ;;
 
9627
 
 
9628
    netbsd* | netbsdelf*-gnu)
 
9629
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9630
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9631
        wlarc=
 
9632
      else
 
9633
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9634
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9635
      fi
 
9636
      ;;
 
9637
 
 
9638
    solaris*)
 
9639
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9640
        ld_shlibs=no
 
9641
        cat <<_LT_EOF 1>&2
 
9642
 
 
9643
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9644
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9645
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9646
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9647
*** your PATH or compiler configuration so that the native linker is
 
9648
*** used, and then restart.
 
9649
 
 
9650
_LT_EOF
 
9651
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9652
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9653
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9654
      else
 
9655
        ld_shlibs=no
 
9656
      fi
 
9657
      ;;
 
9658
 
 
9659
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9660
      case `$LD -v 2>&1` in
 
9661
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9662
        ld_shlibs=no
 
9663
        cat <<_LT_EOF 1>&2
 
9664
 
 
9665
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9666
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9667
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9668
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9669
*** your PATH or compiler configuration so that the native linker is
 
9670
*** used, and then restart.
 
9671
 
 
9672
_LT_EOF
 
9673
        ;;
 
9674
        *)
 
9675
          # For security reasons, it is highly recommended that you always
 
9676
          # use absolute paths for naming shared libraries, and exclude the
 
9677
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9678
          # requires that you compile everything twice, which is a pain.
 
9679
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9680
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9681
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9682
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9683
          else
 
9684
            ld_shlibs=no
 
9685
          fi
 
9686
        ;;
 
9687
      esac
 
9688
      ;;
 
9689
 
 
9690
    sunos4*)
 
9691
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9692
      wlarc=
 
9693
      hardcode_direct=yes
 
9694
      hardcode_shlibpath_var=no
 
9695
      ;;
 
9696
 
 
9697
    *)
 
9698
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9699
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9700
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9701
      else
 
9702
        ld_shlibs=no
 
9703
      fi
 
9704
      ;;
 
9705
    esac
 
9706
 
 
9707
    if test "$ld_shlibs" = no; then
 
9708
      runpath_var=
 
9709
      hardcode_libdir_flag_spec=
 
9710
      export_dynamic_flag_spec=
 
9711
      whole_archive_flag_spec=
 
9712
    fi
 
9713
  else
 
9714
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9715
    case $host_os in
 
9716
    aix3*)
 
9717
      allow_undefined_flag=unsupported
 
9718
      always_export_symbols=yes
 
9719
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
9720
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9721
      # are no directories specified by -L.
 
9722
      hardcode_minus_L=yes
 
9723
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9724
        # Neither direct hardcoding nor static linking is supported with a
 
9725
        # broken collect2.
 
9726
        hardcode_direct=unsupported
 
9727
      fi
 
9728
      ;;
 
9729
 
 
9730
    aix[4-9]*)
 
9731
      if test "$host_cpu" = ia64; then
 
9732
        # On IA64, the linker does run time linking by default, so we don't
 
9733
        # have to do anything special.
 
9734
        aix_use_runtimelinking=no
 
9735
        exp_sym_flag='-Bexport'
 
9736
        no_entry_flag=""
 
9737
      else
 
9738
        # If we're using GNU nm, then we don't want the "-C" option.
 
9739
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9740
        # Also, AIX nm treats weak defined symbols like other global
 
9741
        # defined symbols, whereas GNU nm marks them as "W".
 
9742
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9743
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9744
        else
 
9745
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9746
        fi
 
9747
        aix_use_runtimelinking=no
 
9748
 
 
9749
        # Test if we are trying to use run time linking or normal
 
9750
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9751
        # need to do runtime linking.
 
9752
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9753
          for ld_flag in $LDFLAGS; do
 
9754
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9755
            aix_use_runtimelinking=yes
 
9756
            break
 
9757
          fi
 
9758
          done
 
9759
          ;;
 
9760
        esac
 
9761
 
 
9762
        exp_sym_flag='-bexport'
 
9763
        no_entry_flag='-bnoentry'
 
9764
      fi
 
9765
 
 
9766
      # When large executables or shared objects are built, AIX ld can
 
9767
      # have problems creating the table of contents.  If linking a library
 
9768
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9769
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9770
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9771
 
 
9772
      archive_cmds=''
 
9773
      hardcode_direct=yes
 
9774
      hardcode_direct_absolute=yes
 
9775
      hardcode_libdir_separator=':'
 
9776
      link_all_deplibs=yes
 
9777
      file_list_spec='${wl}-f,'
 
9778
 
 
9779
      if test "$GCC" = yes; then
 
9780
        case $host_os in aix4.[012]|aix4.[012].*)
 
9781
        # We only want to do this on AIX 4.2 and lower, the check
 
9782
        # below for broken collect2 doesn't work under 4.3+
 
9783
          collect2name=`${CC} -print-prog-name=collect2`
 
9784
          if test -f "$collect2name" &&
 
9785
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9786
          then
 
9787
          # We have reworked collect2
 
9788
          :
 
9789
          else
 
9790
          # We have old collect2
 
9791
          hardcode_direct=unsupported
 
9792
          # It fails to find uninstalled libraries when the uninstalled
 
9793
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9794
          # to unsupported forces relinking
 
9795
          hardcode_minus_L=yes
 
9796
          hardcode_libdir_flag_spec='-L$libdir'
 
9797
          hardcode_libdir_separator=
 
9798
          fi
 
9799
          ;;
 
9800
        esac
 
9801
        shared_flag='-shared'
 
9802
        if test "$aix_use_runtimelinking" = yes; then
 
9803
          shared_flag="$shared_flag "'${wl}-G'
 
9804
        fi
 
9805
        link_all_deplibs=no
 
9806
      else
 
9807
        # not using gcc
 
9808
        if test "$host_cpu" = ia64; then
 
9809
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9810
        # chokes on -Wl,-G. The following line is correct:
 
9811
          shared_flag='-G'
 
9812
        else
 
9813
          if test "$aix_use_runtimelinking" = yes; then
 
9814
            shared_flag='${wl}-G'
 
9815
          else
 
9816
            shared_flag='${wl}-bM:SRE'
 
9817
          fi
 
9818
        fi
 
9819
      fi
 
9820
 
 
9821
      export_dynamic_flag_spec='${wl}-bexpall'
 
9822
      # It seems that -bexpall does not export symbols beginning with
 
9823
      # underscore (_), so it is better to generate a list of symbols to export.
 
9824
      always_export_symbols=yes
 
9825
      if test "$aix_use_runtimelinking" = yes; then
 
9826
        # Warning - without using the other runtime loading flags (-brtl),
 
9827
        # -berok will link without error, but may produce a broken library.
 
9828
        allow_undefined_flag='-berok'
 
9829
        # Determine the default libpath from the value encoded in an
 
9830
        # empty executable.
 
9831
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9832
  aix_libpath=$lt_cv_aix_libpath
 
9833
else
 
9834
  if ${lt_cv_aix_libpath_+:} false; then :
 
9835
  $as_echo_n "(cached) " >&6
 
9836
else
 
9837
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9838
/* end confdefs.h.  */
 
9839
 
 
9840
int
 
9841
main ()
 
9842
{
 
9843
 
 
9844
  ;
 
9845
  return 0;
 
9846
}
 
9847
_ACEOF
 
9848
if ac_fn_c_try_link "$LINENO"; then :
 
9849
 
 
9850
  lt_aix_libpath_sed='
 
9851
      /Import File Strings/,/^$/ {
 
9852
          /^0/ {
 
9853
              s/^0  *\([^ ]*\) *$/\1/
 
9854
              p
 
9855
          }
 
9856
      }'
 
9857
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9858
  # Check for a 64-bit object if we didn't find anything.
 
9859
  if test -z "$lt_cv_aix_libpath_"; then
 
9860
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9861
  fi
 
9862
fi
 
9863
rm -f core conftest.err conftest.$ac_objext \
 
9864
    conftest$ac_exeext conftest.$ac_ext
 
9865
  if test -z "$lt_cv_aix_libpath_"; then
 
9866
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9867
  fi
 
9868
 
 
9869
fi
 
9870
 
 
9871
  aix_libpath=$lt_cv_aix_libpath_
 
9872
fi
 
9873
 
 
9874
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9875
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9876
      else
 
9877
        if test "$host_cpu" = ia64; then
 
9878
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9879
          allow_undefined_flag="-z nodefs"
 
9880
          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"
 
9881
        else
 
9882
         # Determine the default libpath from the value encoded in an
 
9883
         # empty executable.
 
9884
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9885
  aix_libpath=$lt_cv_aix_libpath
 
9886
else
 
9887
  if ${lt_cv_aix_libpath_+:} false; then :
 
9888
  $as_echo_n "(cached) " >&6
 
9889
else
 
9890
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9891
/* end confdefs.h.  */
 
9892
 
 
9893
int
 
9894
main ()
 
9895
{
 
9896
 
 
9897
  ;
 
9898
  return 0;
 
9899
}
 
9900
_ACEOF
 
9901
if ac_fn_c_try_link "$LINENO"; then :
 
9902
 
 
9903
  lt_aix_libpath_sed='
 
9904
      /Import File Strings/,/^$/ {
 
9905
          /^0/ {
 
9906
              s/^0  *\([^ ]*\) *$/\1/
 
9907
              p
 
9908
          }
 
9909
      }'
 
9910
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9911
  # Check for a 64-bit object if we didn't find anything.
 
9912
  if test -z "$lt_cv_aix_libpath_"; then
 
9913
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9914
  fi
 
9915
fi
 
9916
rm -f core conftest.err conftest.$ac_objext \
 
9917
    conftest$ac_exeext conftest.$ac_ext
 
9918
  if test -z "$lt_cv_aix_libpath_"; then
 
9919
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9920
  fi
 
9921
 
 
9922
fi
 
9923
 
 
9924
  aix_libpath=$lt_cv_aix_libpath_
 
9925
fi
 
9926
 
 
9927
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9928
          # Warning - without using the other run time loading flags,
 
9929
          # -berok will link without error, but may produce a broken library.
 
9930
          no_undefined_flag=' ${wl}-bernotok'
 
9931
          allow_undefined_flag=' ${wl}-berok'
 
9932
          if test "$with_gnu_ld" = yes; then
 
9933
            # We only use this code for GNU lds that support --whole-archive.
 
9934
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9935
          else
 
9936
            # Exported symbols can be pulled into shared objects from archives
 
9937
            whole_archive_flag_spec='$convenience'
 
9938
          fi
 
9939
          archive_cmds_need_lc=yes
 
9940
          # This is similar to how AIX traditionally builds its shared libraries.
 
9941
          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'
 
9942
        fi
 
9943
      fi
 
9944
      ;;
 
9945
 
 
9946
    amigaos*)
 
9947
      case $host_cpu in
 
9948
      powerpc)
 
9949
            # see comment about AmigaOS4 .so support
 
9950
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9951
            archive_expsym_cmds=''
 
9952
        ;;
 
9953
      m68k)
 
9954
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9955
            hardcode_libdir_flag_spec='-L$libdir'
 
9956
            hardcode_minus_L=yes
 
9957
        ;;
 
9958
      esac
 
9959
      ;;
 
9960
 
 
9961
    bsdi[45]*)
 
9962
      export_dynamic_flag_spec=-rdynamic
 
9963
      ;;
 
9964
 
 
9965
    cygwin* | mingw* | pw32* | cegcc*)
 
9966
      # When not using gcc, we currently assume that we are using
 
9967
      # Microsoft Visual C++.
 
9968
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9969
      # no search path for DLLs.
 
9970
      case $cc_basename in
 
9971
      cl*)
 
9972
        # Native MSVC
 
9973
        hardcode_libdir_flag_spec=' '
 
9974
        allow_undefined_flag=unsupported
 
9975
        always_export_symbols=yes
 
9976
        file_list_spec='@'
 
9977
        # Tell ltmain to make .lib files, not .a files.
 
9978
        libext=lib
 
9979
        # Tell ltmain to make .dll files, not .so files.
 
9980
        shrext_cmds=".dll"
 
9981
        # FIXME: Setting linknames here is a bad hack.
 
9982
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9983
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9984
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9985
          else
 
9986
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9987
          fi~
 
9988
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9989
          linknames='
 
9990
        # The linker will not automatically build a static lib if we build a DLL.
 
9991
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9992
        enable_shared_with_static_runtimes=yes
 
9993
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9994
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9995
        # Don't use ranlib
 
9996
        old_postinstall_cmds='chmod 644 $oldlib'
 
9997
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9998
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9999
          case $lt_outputfile in
 
10000
            *.exe|*.EXE) ;;
 
10001
            *)
 
10002
              lt_outputfile="$lt_outputfile.exe"
 
10003
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
10004
              ;;
 
10005
          esac~
 
10006
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
10007
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10008
            $RM "$lt_outputfile.manifest";
 
10009
          fi'
 
10010
        ;;
 
10011
      *)
 
10012
        # Assume MSVC wrapper
 
10013
        hardcode_libdir_flag_spec=' '
 
10014
        allow_undefined_flag=unsupported
 
10015
        # Tell ltmain to make .lib files, not .a files.
 
10016
        libext=lib
 
10017
        # Tell ltmain to make .dll files, not .so files.
 
10018
        shrext_cmds=".dll"
 
10019
        # FIXME: Setting linknames here is a bad hack.
 
10020
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10021
        # The linker will automatically build a .lib file if we build a DLL.
 
10022
        old_archive_from_new_cmds='true'
 
10023
        # FIXME: Should let the user specify the lib program.
 
10024
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10025
        enable_shared_with_static_runtimes=yes
 
10026
        ;;
 
10027
      esac
 
10028
      ;;
 
10029
 
 
10030
    darwin* | rhapsody*)
 
10031
 
 
10032
 
 
10033
  archive_cmds_need_lc=no
 
10034
  hardcode_direct=no
 
10035
  hardcode_automatic=yes
 
10036
  hardcode_shlibpath_var=unsupported
 
10037
  if test "$lt_cv_ld_force_load" = "yes"; then
 
10038
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
10039
 
 
10040
  else
 
10041
    whole_archive_flag_spec=''
 
10042
  fi
 
10043
  link_all_deplibs=yes
 
10044
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10045
  case $cc_basename in
 
10046
     ifort*) _lt_dar_can_shared=yes ;;
 
10047
     *) _lt_dar_can_shared=$GCC ;;
 
10048
  esac
 
10049
  if test "$_lt_dar_can_shared" = "yes"; then
 
10050
    output_verbose_link_cmd=func_echo_all
 
10051
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10052
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10053
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
10054
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
10055
 
 
10056
  else
 
10057
  ld_shlibs=no
 
10058
  fi
 
10059
 
 
10060
      ;;
 
10061
 
 
10062
    dgux*)
 
10063
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10064
      hardcode_libdir_flag_spec='-L$libdir'
 
10065
      hardcode_shlibpath_var=no
 
10066
      ;;
 
10067
 
 
10068
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10069
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10070
    # does not break anything, and helps significantly (at the cost of a little
 
10071
    # extra space).
 
10072
    freebsd2.2*)
 
10073
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10074
      hardcode_libdir_flag_spec='-R$libdir'
 
10075
      hardcode_direct=yes
 
10076
      hardcode_shlibpath_var=no
 
10077
      ;;
 
10078
 
 
10079
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10080
    freebsd2.*)
 
10081
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10082
      hardcode_direct=yes
 
10083
      hardcode_minus_L=yes
 
10084
      hardcode_shlibpath_var=no
 
10085
      ;;
 
10086
 
 
10087
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10088
    freebsd* | dragonfly*)
 
10089
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10090
      hardcode_libdir_flag_spec='-R$libdir'
 
10091
      hardcode_direct=yes
 
10092
      hardcode_shlibpath_var=no
 
10093
      ;;
 
10094
 
 
10095
    hpux9*)
 
10096
      if test "$GCC" = yes; then
 
10097
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10098
      else
 
10099
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10100
      fi
 
10101
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10102
      hardcode_libdir_separator=:
 
10103
      hardcode_direct=yes
 
10104
 
 
10105
      # hardcode_minus_L: Not really in the search PATH,
 
10106
      # but as the default location of the library.
 
10107
      hardcode_minus_L=yes
 
10108
      export_dynamic_flag_spec='${wl}-E'
 
10109
      ;;
 
10110
 
 
10111
    hpux10*)
 
10112
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10113
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10114
      else
 
10115
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10116
      fi
 
10117
      if test "$with_gnu_ld" = no; then
 
10118
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10119
        hardcode_libdir_separator=:
 
10120
        hardcode_direct=yes
 
10121
        hardcode_direct_absolute=yes
 
10122
        export_dynamic_flag_spec='${wl}-E'
 
10123
        # hardcode_minus_L: Not really in the search PATH,
 
10124
        # but as the default location of the library.
 
10125
        hardcode_minus_L=yes
 
10126
      fi
 
10127
      ;;
 
10128
 
 
10129
    hpux11*)
 
10130
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10131
        case $host_cpu in
 
10132
        hppa*64*)
 
10133
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10134
          ;;
 
10135
        ia64*)
 
10136
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10137
          ;;
 
10138
        *)
 
10139
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10140
          ;;
 
10141
        esac
 
10142
      else
 
10143
        case $host_cpu in
 
10144
        hppa*64*)
 
10145
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10146
          ;;
 
10147
        ia64*)
 
10148
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10149
          ;;
 
10150
        *)
 
10151
 
 
10152
          # Older versions of the 11.00 compiler do not understand -b yet
 
10153
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10154
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10155
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10156
if ${lt_cv_prog_compiler__b+:} false; then :
 
10157
  $as_echo_n "(cached) " >&6
 
10158
else
 
10159
  lt_cv_prog_compiler__b=no
 
10160
   save_LDFLAGS="$LDFLAGS"
 
10161
   LDFLAGS="$LDFLAGS -b"
 
10162
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10163
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10164
     # The linker can only warn and ignore the option if not recognized
 
10165
     # So say no if there are warnings
 
10166
     if test -s conftest.err; then
 
10167
       # Append any errors to the config.log.
 
10168
       cat conftest.err 1>&5
 
10169
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10170
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10171
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10172
         lt_cv_prog_compiler__b=yes
 
10173
       fi
 
10174
     else
 
10175
       lt_cv_prog_compiler__b=yes
 
10176
     fi
 
10177
   fi
 
10178
   $RM -r conftest*
 
10179
   LDFLAGS="$save_LDFLAGS"
 
10180
 
 
10181
fi
 
10182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10183
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10184
 
 
10185
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10186
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10187
else
 
10188
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10189
fi
 
10190
 
 
10191
          ;;
 
10192
        esac
 
10193
      fi
 
10194
      if test "$with_gnu_ld" = no; then
 
10195
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10196
        hardcode_libdir_separator=:
 
10197
 
 
10198
        case $host_cpu in
 
10199
        hppa*64*|ia64*)
 
10200
          hardcode_direct=no
 
10201
          hardcode_shlibpath_var=no
 
10202
          ;;
 
10203
        *)
 
10204
          hardcode_direct=yes
 
10205
          hardcode_direct_absolute=yes
 
10206
          export_dynamic_flag_spec='${wl}-E'
 
10207
 
 
10208
          # hardcode_minus_L: Not really in the search PATH,
 
10209
          # but as the default location of the library.
 
10210
          hardcode_minus_L=yes
 
10211
          ;;
 
10212
        esac
 
10213
      fi
 
10214
      ;;
 
10215
 
 
10216
    irix5* | irix6* | nonstopux*)
 
10217
      if test "$GCC" = yes; then
 
10218
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10219
        # Try to use the -exported_symbol ld option, if it does not
 
10220
        # work, assume that -exports_file does not work either and
 
10221
        # implicitly export all symbols.
 
10222
        # This should be the same for all languages, so no per-tag cache variable.
 
10223
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10224
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10225
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10226
  $as_echo_n "(cached) " >&6
 
10227
else
 
10228
  save_LDFLAGS="$LDFLAGS"
 
10229
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10230
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10231
/* end confdefs.h.  */
 
10232
int foo (void) { return 0; }
 
10233
_ACEOF
 
10234
if ac_fn_c_try_link "$LINENO"; then :
 
10235
  lt_cv_irix_exported_symbol=yes
 
10236
else
 
10237
  lt_cv_irix_exported_symbol=no
 
10238
fi
 
10239
rm -f core conftest.err conftest.$ac_objext \
 
10240
    conftest$ac_exeext conftest.$ac_ext
 
10241
           LDFLAGS="$save_LDFLAGS"
 
10242
fi
 
10243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10244
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10245
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10246
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10247
        fi
 
10248
      else
 
10249
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10250
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10251
      fi
 
10252
      archive_cmds_need_lc='no'
 
10253
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10254
      hardcode_libdir_separator=:
 
10255
      inherit_rpath=yes
 
10256
      link_all_deplibs=yes
 
10257
      ;;
 
10258
 
 
10259
    netbsd* | netbsdelf*-gnu)
 
10260
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10261
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10262
      else
 
10263
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10264
      fi
 
10265
      hardcode_libdir_flag_spec='-R$libdir'
 
10266
      hardcode_direct=yes
 
10267
      hardcode_shlibpath_var=no
 
10268
      ;;
 
10269
 
 
10270
    newsos6)
 
10271
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10272
      hardcode_direct=yes
 
10273
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10274
      hardcode_libdir_separator=:
 
10275
      hardcode_shlibpath_var=no
 
10276
      ;;
 
10277
 
 
10278
    *nto* | *qnx*)
 
10279
      ;;
 
10280
 
 
10281
    openbsd*)
 
10282
      if test -f /usr/libexec/ld.so; then
 
10283
        hardcode_direct=yes
 
10284
        hardcode_shlibpath_var=no
 
10285
        hardcode_direct_absolute=yes
 
10286
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10287
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10288
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10289
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10290
          export_dynamic_flag_spec='${wl}-E'
 
10291
        else
 
10292
          case $host_os in
 
10293
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10294
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10295
             hardcode_libdir_flag_spec='-R$libdir'
 
10296
             ;;
 
10297
           *)
 
10298
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10299
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10300
             ;;
 
10301
          esac
 
10302
        fi
 
10303
      else
 
10304
        ld_shlibs=no
 
10305
      fi
 
10306
      ;;
 
10307
 
 
10308
    os2*)
 
10309
      hardcode_libdir_flag_spec='-L$libdir'
 
10310
      hardcode_minus_L=yes
 
10311
      allow_undefined_flag=unsupported
 
10312
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
10313
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10314
      ;;
 
10315
 
 
10316
    osf3*)
 
10317
      if test "$GCC" = yes; then
 
10318
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10319
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10320
      else
 
10321
        allow_undefined_flag=' -expect_unresolved \*'
 
10322
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10323
      fi
 
10324
      archive_cmds_need_lc='no'
 
10325
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10326
      hardcode_libdir_separator=:
 
10327
      ;;
 
10328
 
 
10329
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10330
      if test "$GCC" = yes; then
 
10331
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10332
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10333
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10334
      else
 
10335
        allow_undefined_flag=' -expect_unresolved \*'
 
10336
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10337
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
10338
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10339
 
 
10340
        # Both c and cxx compiler support -rpath directly
 
10341
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10342
      fi
 
10343
      archive_cmds_need_lc='no'
 
10344
      hardcode_libdir_separator=:
 
10345
      ;;
 
10346
 
 
10347
    solaris*)
 
10348
      no_undefined_flag=' -z defs'
 
10349
      if test "$GCC" = yes; then
 
10350
        wlarc='${wl}'
 
10351
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10352
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10353
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10354
      else
 
10355
        case `$CC -V 2>&1` in
 
10356
        *"Compilers 5.0"*)
 
10357
          wlarc=''
 
10358
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10359
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10360
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10361
          ;;
 
10362
        *)
 
10363
          wlarc='${wl}'
 
10364
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10365
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10366
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10367
          ;;
 
10368
        esac
 
10369
      fi
 
10370
      hardcode_libdir_flag_spec='-R$libdir'
 
10371
      hardcode_shlibpath_var=no
 
10372
      case $host_os in
 
10373
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10374
      *)
 
10375
        # The compiler driver will combine and reorder linker options,
 
10376
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10377
        # but is careful enough not to reorder.
 
10378
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10379
        if test "$GCC" = yes; then
 
10380
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10381
        else
 
10382
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10383
        fi
 
10384
        ;;
 
10385
      esac
 
10386
      link_all_deplibs=yes
 
10387
      ;;
 
10388
 
 
10389
    sunos4*)
 
10390
      if test "x$host_vendor" = xsequent; then
 
10391
        # Use $CC to link under sequent, because it throws in some extra .o
 
10392
        # files that make .init and .fini sections work.
 
10393
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10394
      else
 
10395
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10396
      fi
 
10397
      hardcode_libdir_flag_spec='-L$libdir'
 
10398
      hardcode_direct=yes
 
10399
      hardcode_minus_L=yes
 
10400
      hardcode_shlibpath_var=no
 
10401
      ;;
 
10402
 
 
10403
    sysv4)
 
10404
      case $host_vendor in
 
10405
        sni)
 
10406
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10407
          hardcode_direct=yes # is this really true???
 
10408
        ;;
 
10409
        siemens)
 
10410
          ## LD is ld it makes a PLAMLIB
 
10411
          ## CC just makes a GrossModule.
 
10412
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10413
          reload_cmds='$CC -r -o $output$reload_objs'
 
10414
          hardcode_direct=no
 
10415
        ;;
 
10416
        motorola)
 
10417
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10418
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10419
        ;;
 
10420
      esac
 
10421
      runpath_var='LD_RUN_PATH'
 
10422
      hardcode_shlibpath_var=no
 
10423
      ;;
 
10424
 
 
10425
    sysv4.3*)
 
10426
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10427
      hardcode_shlibpath_var=no
 
10428
      export_dynamic_flag_spec='-Bexport'
 
10429
      ;;
 
10430
 
 
10431
    sysv4*MP*)
 
10432
      if test -d /usr/nec; then
 
10433
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10434
        hardcode_shlibpath_var=no
 
10435
        runpath_var=LD_RUN_PATH
 
10436
        hardcode_runpath_var=yes
 
10437
        ld_shlibs=yes
 
10438
      fi
 
10439
      ;;
 
10440
 
 
10441
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10442
      no_undefined_flag='${wl}-z,text'
 
10443
      archive_cmds_need_lc=no
 
10444
      hardcode_shlibpath_var=no
 
10445
      runpath_var='LD_RUN_PATH'
 
10446
 
 
10447
      if test "$GCC" = yes; then
 
10448
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10449
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10450
      else
 
10451
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10452
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10453
      fi
 
10454
      ;;
 
10455
 
 
10456
    sysv5* | sco3.2v5* | sco5v6*)
 
10457
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10458
      # link with -lc, and that would cause any symbols used from libc to
 
10459
      # always be unresolved, which means just about no library would
 
10460
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10461
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10462
      # as -z defs.
 
10463
      no_undefined_flag='${wl}-z,text'
 
10464
      allow_undefined_flag='${wl}-z,nodefs'
 
10465
      archive_cmds_need_lc=no
 
10466
      hardcode_shlibpath_var=no
 
10467
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10468
      hardcode_libdir_separator=':'
 
10469
      link_all_deplibs=yes
 
10470
      export_dynamic_flag_spec='${wl}-Bexport'
 
10471
      runpath_var='LD_RUN_PATH'
 
10472
 
 
10473
      if test "$GCC" = yes; then
 
10474
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10475
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10476
      else
 
10477
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10478
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10479
      fi
 
10480
      ;;
 
10481
 
 
10482
    uts4*)
 
10483
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10484
      hardcode_libdir_flag_spec='-L$libdir'
 
10485
      hardcode_shlibpath_var=no
 
10486
      ;;
 
10487
 
 
10488
    *)
 
10489
      ld_shlibs=no
 
10490
      ;;
 
10491
    esac
 
10492
 
 
10493
    if test x$host_vendor = xsni; then
 
10494
      case $host in
 
10495
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10496
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10497
        ;;
 
10498
      esac
 
10499
    fi
 
10500
  fi
 
10501
 
 
10502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10503
$as_echo "$ld_shlibs" >&6; }
 
10504
test "$ld_shlibs" = no && can_build_shared=no
 
10505
 
 
10506
with_gnu_ld=$with_gnu_ld
 
10507
 
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
 
10516
 
 
10517
 
 
10518
 
 
10519
 
 
10520
 
 
10521
 
 
10522
#
 
10523
# Do we need to explicitly link libc?
 
10524
#
 
10525
case "x$archive_cmds_need_lc" in
 
10526
x|xyes)
 
10527
  # Assume -lc should be added
 
10528
  archive_cmds_need_lc=yes
 
10529
 
 
10530
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10531
    case $archive_cmds in
 
10532
    *'~'*)
 
10533
      # FIXME: we may have to deal with multi-command sequences.
 
10534
      ;;
 
10535
    '$CC '*)
 
10536
      # Test whether the compiler implicitly links with -lc since on some
 
10537
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10538
      # to ld, don't add -lc before -lgcc.
 
10539
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10540
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10541
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10542
  $as_echo_n "(cached) " >&6
 
10543
else
 
10544
  $RM conftest*
 
10545
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10546
 
 
10547
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10548
  (eval $ac_compile) 2>&5
 
10549
  ac_status=$?
 
10550
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10551
  test $ac_status = 0; } 2>conftest.err; then
 
10552
          soname=conftest
 
10553
          lib=conftest
 
10554
          libobjs=conftest.$ac_objext
 
10555
          deplibs=
 
10556
          wl=$lt_prog_compiler_wl
 
10557
          pic_flag=$lt_prog_compiler_pic
 
10558
          compiler_flags=-v
 
10559
          linker_flags=-v
 
10560
          verstring=
 
10561
          output_objdir=.
 
10562
          libname=conftest
 
10563
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10564
          allow_undefined_flag=
 
10565
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10566
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10567
  ac_status=$?
 
10568
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10569
  test $ac_status = 0; }
 
10570
          then
 
10571
            lt_cv_archive_cmds_need_lc=no
 
10572
          else
 
10573
            lt_cv_archive_cmds_need_lc=yes
 
10574
          fi
 
10575
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10576
        else
 
10577
          cat conftest.err 1>&5
 
10578
        fi
 
10579
        $RM conftest*
 
10580
 
 
10581
fi
 
10582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10583
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10584
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10585
      ;;
 
10586
    esac
 
10587
  fi
 
10588
  ;;
 
10589
esac
 
10590
 
 
10591
 
 
10592
 
 
10593
 
 
10594
 
 
10595
 
 
10596
 
 
10597
 
 
10598
 
 
10599
 
 
10600
 
 
10601
 
 
10602
 
 
10603
 
 
10604
 
 
10605
 
 
10606
 
 
10607
 
 
10608
 
 
10609
 
 
10610
 
 
10611
 
 
10612
 
 
10613
 
 
10614
 
 
10615
 
 
10616
 
 
10617
 
 
10618
 
 
10619
 
 
10620
 
 
10621
 
 
10622
 
 
10623
 
 
10624
 
 
10625
 
 
10626
 
 
10627
 
 
10628
 
 
10629
 
 
10630
 
 
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
 
10636
 
 
10637
 
 
10638
 
 
10639
 
 
10640
 
 
10641
 
 
10642
 
 
10643
 
 
10644
 
 
10645
 
 
10646
 
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
 
10654
 
 
10655
 
 
10656
 
 
10657
 
 
10658
 
 
10659
 
 
10660
 
 
10661
 
 
10662
 
 
10663
 
 
10664
 
 
10665
 
 
10666
 
 
10667
 
 
10668
 
 
10669
 
 
10670
 
 
10671
 
 
10672
 
 
10673
 
 
10674
 
 
10675
 
 
10676
 
 
10677
 
 
10678
 
 
10679
 
 
10680
 
 
10681
 
 
10682
 
 
10683
 
 
10684
 
 
10685
 
 
10686
 
 
10687
 
 
10688
 
 
10689
 
 
10690
 
 
10691
 
 
10692
 
 
10693
 
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
 
 
10733
 
 
10734
 
 
10735
 
 
10736
 
 
10737
 
 
10738
 
 
10739
 
 
10740
 
 
10741
 
 
10742
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10743
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10744
 
 
10745
if test "$GCC" = yes; then
 
10746
  case $host_os in
 
10747
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10748
    *) lt_awk_arg="/^libraries:/" ;;
 
10749
  esac
 
10750
  case $host_os in
 
10751
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10752
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10753
  esac
 
10754
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10755
  case $lt_search_path_spec in
 
10756
  *\;*)
 
10757
    # if the path contains ";" then we assume it to be the separator
 
10758
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10759
    # assumed that no part of a normal pathname contains ";" but that should
 
10760
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10761
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10762
    ;;
 
10763
  *)
 
10764
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10765
    ;;
 
10766
  esac
 
10767
  # Ok, now we have the path, separated by spaces, we can step through it
 
10768
  # and add multilib dir if necessary.
 
10769
  lt_tmp_lt_search_path_spec=
 
10770
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10771
  for lt_sys_path in $lt_search_path_spec; do
 
10772
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10773
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10774
    else
 
10775
      test -d "$lt_sys_path" && \
 
10776
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10777
    fi
 
10778
  done
 
10779
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10780
BEGIN {RS=" "; FS="/|\n";} {
 
10781
  lt_foo="";
 
10782
  lt_count=0;
 
10783
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10784
    if ($lt_i != "" && $lt_i != ".") {
 
10785
      if ($lt_i == "..") {
 
10786
        lt_count++;
 
10787
      } else {
 
10788
        if (lt_count == 0) {
 
10789
          lt_foo="/" $lt_i lt_foo;
 
10790
        } else {
 
10791
          lt_count--;
 
10792
        }
 
10793
      }
 
10794
    }
 
10795
  }
 
10796
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10797
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10798
}'`
 
10799
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10800
  # for these hosts.
 
10801
  case $host_os in
 
10802
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10803
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10804
  esac
 
10805
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10806
else
 
10807
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10808
fi
 
10809
library_names_spec=
 
10810
libname_spec='lib$name'
 
10811
soname_spec=
 
10812
shrext_cmds=".so"
 
10813
postinstall_cmds=
 
10814
postuninstall_cmds=
 
10815
finish_cmds=
 
10816
finish_eval=
 
10817
shlibpath_var=
 
10818
shlibpath_overrides_runpath=unknown
 
10819
version_type=none
 
10820
dynamic_linker="$host_os ld.so"
 
10821
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10822
need_lib_prefix=unknown
 
10823
hardcode_into_libs=no
 
10824
 
 
10825
# when you set need_version to no, make sure it does not cause -set_version
 
10826
# flags to be left without arguments
 
10827
need_version=unknown
 
10828
 
 
10829
case $host_os in
 
10830
aix3*)
 
10831
  version_type=linux # correct to gnu/linux during the next big refactor
 
10832
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10833
  shlibpath_var=LIBPATH
 
10834
 
 
10835
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10836
  soname_spec='${libname}${release}${shared_ext}$major'
 
10837
  ;;
 
10838
 
 
10839
aix[4-9]*)
 
10840
  version_type=linux # correct to gnu/linux during the next big refactor
 
10841
  need_lib_prefix=no
 
10842
  need_version=no
 
10843
  hardcode_into_libs=yes
 
10844
  if test "$host_cpu" = ia64; then
 
10845
    # AIX 5 supports IA64
 
10846
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10847
    shlibpath_var=LD_LIBRARY_PATH
 
10848
  else
 
10849
    # With GCC up to 2.95.x, collect2 would create an import file
 
10850
    # for dependence libraries.  The import file would start with
 
10851
    # the line `#! .'.  This would cause the generated library to
 
10852
    # depend on `.', always an invalid library.  This was fixed in
 
10853
    # development snapshots of GCC prior to 3.0.
 
10854
    case $host_os in
 
10855
      aix4 | aix4.[01] | aix4.[01].*)
 
10856
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10857
           echo ' yes '
 
10858
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10859
        :
 
10860
      else
 
10861
        can_build_shared=no
 
10862
      fi
 
10863
      ;;
 
10864
    esac
 
10865
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10866
    # soname into executable. Probably we can add versioning support to
 
10867
    # collect2, so additional links can be useful in future.
 
10868
    if test "$aix_use_runtimelinking" = yes; then
 
10869
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10870
      # instead of lib<name>.a to let people know that these are not
 
10871
      # typical AIX shared libraries.
 
10872
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10873
    else
 
10874
      # We preserve .a as extension for shared libraries through AIX4.2
 
10875
      # and later when we are not doing run time linking.
 
10876
      library_names_spec='${libname}${release}.a $libname.a'
 
10877
      soname_spec='${libname}${release}${shared_ext}$major'
 
10878
    fi
 
10879
    shlibpath_var=LIBPATH
 
10880
  fi
 
10881
  ;;
 
10882
 
 
10883
amigaos*)
 
10884
  case $host_cpu in
 
10885
  powerpc)
 
10886
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10887
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10888
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10889
    ;;
 
10890
  m68k)
 
10891
    library_names_spec='$libname.ixlibrary $libname.a'
 
10892
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10893
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10894
    ;;
 
10895
  esac
 
10896
  ;;
 
10897
 
 
10898
beos*)
 
10899
  library_names_spec='${libname}${shared_ext}'
 
10900
  dynamic_linker="$host_os ld.so"
 
10901
  shlibpath_var=LIBRARY_PATH
 
10902
  ;;
 
10903
 
 
10904
bsdi[45]*)
 
10905
  version_type=linux # correct to gnu/linux during the next big refactor
 
10906
  need_version=no
 
10907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10908
  soname_spec='${libname}${release}${shared_ext}$major'
 
10909
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10910
  shlibpath_var=LD_LIBRARY_PATH
 
10911
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10912
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10913
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10914
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10915
  # libtool to hard-code these into programs
 
10916
  ;;
 
10917
 
 
10918
cygwin* | mingw* | pw32* | cegcc*)
 
10919
  version_type=windows
 
10920
  shrext_cmds=".dll"
 
10921
  need_version=no
 
10922
  need_lib_prefix=no
 
10923
 
 
10924
  case $GCC,$cc_basename in
 
10925
  yes,*)
 
10926
    # gcc
 
10927
    library_names_spec='$libname.dll.a'
 
10928
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10929
    postinstall_cmds='base_file=`basename \${file}`~
 
10930
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10931
      dldir=$destdir/`dirname \$dlpath`~
 
10932
      test -d \$dldir || mkdir -p \$dldir~
 
10933
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10934
      chmod a+x \$dldir/$dlname~
 
10935
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10936
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10937
      fi'
 
10938
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10939
      dlpath=$dir/\$dldll~
 
10940
       $RM \$dlpath'
 
10941
    shlibpath_overrides_runpath=yes
 
10942
 
 
10943
    case $host_os in
 
10944
    cygwin*)
 
10945
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10946
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10947
 
 
10948
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10949
      ;;
 
10950
    mingw* | cegcc*)
 
10951
      # MinGW DLLs use traditional 'lib' prefix
 
10952
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10953
      ;;
 
10954
    pw32*)
 
10955
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10956
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10957
      ;;
 
10958
    esac
 
10959
    dynamic_linker='Win32 ld.exe'
 
10960
    ;;
 
10961
 
 
10962
  *,cl*)
 
10963
    # Native MSVC
 
10964
    libname_spec='$name'
 
10965
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10966
    library_names_spec='${libname}.dll.lib'
 
10967
 
 
10968
    case $build_os in
 
10969
    mingw*)
 
10970
      sys_lib_search_path_spec=
 
10971
      lt_save_ifs=$IFS
 
10972
      IFS=';'
 
10973
      for lt_path in $LIB
 
10974
      do
 
10975
        IFS=$lt_save_ifs
 
10976
        # Let DOS variable expansion print the short 8.3 style file name.
 
10977
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10978
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10979
      done
 
10980
      IFS=$lt_save_ifs
 
10981
      # Convert to MSYS style.
 
10982
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10983
      ;;
 
10984
    cygwin*)
 
10985
      # Convert to unix form, then to dos form, then back to unix form
 
10986
      # but this time dos style (no spaces!) so that the unix form looks
 
10987
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10988
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10989
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10990
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10991
      ;;
 
10992
    *)
 
10993
      sys_lib_search_path_spec="$LIB"
 
10994
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10995
        # It is most probably a Windows format PATH.
 
10996
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10997
      else
 
10998
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10999
      fi
 
11000
      # FIXME: find the short name or the path components, as spaces are
 
11001
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11002
      ;;
 
11003
    esac
 
11004
 
 
11005
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11006
    postinstall_cmds='base_file=`basename \${file}`~
 
11007
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11008
      dldir=$destdir/`dirname \$dlpath`~
 
11009
      test -d \$dldir || mkdir -p \$dldir~
 
11010
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11011
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11012
      dlpath=$dir/\$dldll~
 
11013
       $RM \$dlpath'
 
11014
    shlibpath_overrides_runpath=yes
 
11015
    dynamic_linker='Win32 link.exe'
 
11016
    ;;
 
11017
 
 
11018
  *)
 
11019
    # Assume MSVC wrapper
 
11020
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11021
    dynamic_linker='Win32 ld.exe'
 
11022
    ;;
 
11023
  esac
 
11024
  # FIXME: first we should search . and the directory the executable is in
 
11025
  shlibpath_var=PATH
 
11026
  ;;
 
11027
 
 
11028
darwin* | rhapsody*)
 
11029
  dynamic_linker="$host_os dyld"
 
11030
  version_type=darwin
 
11031
  need_lib_prefix=no
 
11032
  need_version=no
 
11033
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11034
  soname_spec='${libname}${release}${major}$shared_ext'
 
11035
  shlibpath_overrides_runpath=yes
 
11036
  shlibpath_var=DYLD_LIBRARY_PATH
 
11037
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11038
 
 
11039
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11040
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11041
  ;;
 
11042
 
 
11043
dgux*)
 
11044
  version_type=linux # correct to gnu/linux during the next big refactor
 
11045
  need_lib_prefix=no
 
11046
  need_version=no
 
11047
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11048
  soname_spec='${libname}${release}${shared_ext}$major'
 
11049
  shlibpath_var=LD_LIBRARY_PATH
 
11050
  ;;
 
11051
 
 
11052
freebsd* | dragonfly*)
 
11053
  # DragonFly does not have aout.  When/if they implement a new
 
11054
  # versioning mechanism, adjust this.
 
11055
  if test -x /usr/bin/objformat; then
 
11056
    objformat=`/usr/bin/objformat`
 
11057
  else
 
11058
    case $host_os in
 
11059
    freebsd[23].*) objformat=aout ;;
 
11060
    *) objformat=elf ;;
 
11061
    esac
 
11062
  fi
 
11063
  version_type=freebsd-$objformat
 
11064
  case $version_type in
 
11065
    freebsd-elf*)
 
11066
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11067
      need_version=no
 
11068
      need_lib_prefix=no
 
11069
      ;;
 
11070
    freebsd-*)
 
11071
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11072
      need_version=yes
 
11073
      ;;
 
11074
  esac
 
11075
  shlibpath_var=LD_LIBRARY_PATH
 
11076
  case $host_os in
 
11077
  freebsd2.*)
 
11078
    shlibpath_overrides_runpath=yes
 
11079
    ;;
 
11080
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11081
    shlibpath_overrides_runpath=yes
 
11082
    hardcode_into_libs=yes
 
11083
    ;;
 
11084
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11085
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11086
    shlibpath_overrides_runpath=no
 
11087
    hardcode_into_libs=yes
 
11088
    ;;
 
11089
  *) # from 4.6 on, and DragonFly
 
11090
    shlibpath_overrides_runpath=yes
 
11091
    hardcode_into_libs=yes
 
11092
    ;;
 
11093
  esac
 
11094
  ;;
 
11095
 
 
11096
gnu*)
 
11097
  version_type=linux # correct to gnu/linux during the next big refactor
 
11098
  need_lib_prefix=no
 
11099
  need_version=no
 
11100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11101
  soname_spec='${libname}${release}${shared_ext}$major'
 
11102
  shlibpath_var=LD_LIBRARY_PATH
 
11103
  shlibpath_overrides_runpath=no
 
11104
  hardcode_into_libs=yes
 
11105
  ;;
 
11106
 
 
11107
haiku*)
 
11108
  version_type=linux # correct to gnu/linux during the next big refactor
 
11109
  need_lib_prefix=no
 
11110
  need_version=no
 
11111
  dynamic_linker="$host_os runtime_loader"
 
11112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11113
  soname_spec='${libname}${release}${shared_ext}$major'
 
11114
  shlibpath_var=LIBRARY_PATH
 
11115
  shlibpath_overrides_runpath=yes
 
11116
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11117
  hardcode_into_libs=yes
 
11118
  ;;
 
11119
 
 
11120
hpux9* | hpux10* | hpux11*)
 
11121
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11122
  # link against other versions.
 
11123
  version_type=sunos
 
11124
  need_lib_prefix=no
 
11125
  need_version=no
 
11126
  case $host_cpu in
 
11127
  ia64*)
 
11128
    shrext_cmds='.so'
 
11129
    hardcode_into_libs=yes
 
11130
    dynamic_linker="$host_os dld.so"
 
11131
    shlibpath_var=LD_LIBRARY_PATH
 
11132
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11133
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11134
    soname_spec='${libname}${release}${shared_ext}$major'
 
11135
    if test "X$HPUX_IA64_MODE" = X32; then
 
11136
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11137
    else
 
11138
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11139
    fi
 
11140
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11141
    ;;
 
11142
  hppa*64*)
 
11143
    shrext_cmds='.sl'
 
11144
    hardcode_into_libs=yes
 
11145
    dynamic_linker="$host_os dld.sl"
 
11146
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11147
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11148
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11149
    soname_spec='${libname}${release}${shared_ext}$major'
 
11150
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11151
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11152
    ;;
 
11153
  *)
 
11154
    shrext_cmds='.sl'
 
11155
    dynamic_linker="$host_os dld.sl"
 
11156
    shlibpath_var=SHLIB_PATH
 
11157
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11158
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11159
    soname_spec='${libname}${release}${shared_ext}$major'
 
11160
    ;;
 
11161
  esac
 
11162
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11163
  postinstall_cmds='chmod 555 $lib'
 
11164
  # or fails outright, so override atomically:
 
11165
  install_override_mode=555
 
11166
  ;;
 
11167
 
 
11168
interix[3-9]*)
 
11169
  version_type=linux # correct to gnu/linux during the next big refactor
 
11170
  need_lib_prefix=no
 
11171
  need_version=no
 
11172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11173
  soname_spec='${libname}${release}${shared_ext}$major'
 
11174
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11175
  shlibpath_var=LD_LIBRARY_PATH
 
11176
  shlibpath_overrides_runpath=no
 
11177
  hardcode_into_libs=yes
 
11178
  ;;
 
11179
 
 
11180
irix5* | irix6* | nonstopux*)
 
11181
  case $host_os in
 
11182
    nonstopux*) version_type=nonstopux ;;
 
11183
    *)
 
11184
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11185
                version_type=linux # correct to gnu/linux during the next big refactor
 
11186
        else
 
11187
                version_type=irix
 
11188
        fi ;;
 
11189
  esac
 
11190
  need_lib_prefix=no
 
11191
  need_version=no
 
11192
  soname_spec='${libname}${release}${shared_ext}$major'
 
11193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11194
  case $host_os in
 
11195
  irix5* | nonstopux*)
 
11196
    libsuff= shlibsuff=
 
11197
    ;;
 
11198
  *)
 
11199
    case $LD in # libtool.m4 will add one of these switches to LD
 
11200
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11201
      libsuff= shlibsuff= libmagic=32-bit;;
 
11202
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11203
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11204
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11205
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11206
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11207
    esac
 
11208
    ;;
 
11209
  esac
 
11210
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11211
  shlibpath_overrides_runpath=no
 
11212
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11213
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11214
  hardcode_into_libs=yes
 
11215
  ;;
 
11216
 
 
11217
# No shared lib support for Linux oldld, aout, or coff.
 
11218
linux*oldld* | linux*aout* | linux*coff*)
 
11219
  dynamic_linker=no
 
11220
  ;;
 
11221
 
 
11222
# This must be glibc/ELF.
 
11223
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
11224
  version_type=linux # correct to gnu/linux during the next big refactor
 
11225
  need_lib_prefix=no
 
11226
  need_version=no
 
11227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11228
  soname_spec='${libname}${release}${shared_ext}$major'
 
11229
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11230
  shlibpath_var=LD_LIBRARY_PATH
 
11231
  shlibpath_overrides_runpath=no
 
11232
 
 
11233
  # Some binutils ld are patched to set DT_RUNPATH
 
11234
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11235
  $as_echo_n "(cached) " >&6
 
11236
else
 
11237
  lt_cv_shlibpath_overrides_runpath=no
 
11238
    save_LDFLAGS=$LDFLAGS
 
11239
    save_libdir=$libdir
 
11240
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11241
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11242
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11243
/* end confdefs.h.  */
 
11244
 
 
11245
int
 
11246
main ()
 
11247
{
 
11248
 
 
11249
  ;
 
11250
  return 0;
 
11251
}
 
11252
_ACEOF
 
11253
if ac_fn_c_try_link "$LINENO"; then :
 
11254
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11255
  lt_cv_shlibpath_overrides_runpath=yes
 
11256
fi
 
11257
fi
 
11258
rm -f core conftest.err conftest.$ac_objext \
 
11259
    conftest$ac_exeext conftest.$ac_ext
 
11260
    LDFLAGS=$save_LDFLAGS
 
11261
    libdir=$save_libdir
 
11262
 
 
11263
fi
 
11264
 
 
11265
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11266
 
 
11267
  # This implies no fast_install, which is unacceptable.
 
11268
  # Some rework will be needed to allow for fast_install
 
11269
  # before this can be enabled.
 
11270
  hardcode_into_libs=yes
 
11271
 
 
11272
  # Append ld.so.conf contents to the search path
 
11273
  if test -f /etc/ld.so.conf; then
 
11274
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
11275
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11276
  fi
 
11277
 
 
11278
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11279
  # powerpc, because MkLinux only supported shared libraries with the
 
11280
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11281
  # most powerpc-linux boxes support dynamic linking these days and
 
11282
  # people can always --disable-shared, the test was removed, and we
 
11283
  # assume the GNU/Linux dynamic linker is in use.
 
11284
  dynamic_linker='GNU/Linux ld.so'
 
11285
  ;;
 
11286
 
 
11287
netbsdelf*-gnu)
 
11288
  version_type=linux
 
11289
  need_lib_prefix=no
 
11290
  need_version=no
 
11291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11292
  soname_spec='${libname}${release}${shared_ext}$major'
 
11293
  shlibpath_var=LD_LIBRARY_PATH
 
11294
  shlibpath_overrides_runpath=no
 
11295
  hardcode_into_libs=yes
 
11296
  dynamic_linker='NetBSD ld.elf_so'
 
11297
  ;;
 
11298
 
 
11299
netbsd*)
 
11300
  version_type=sunos
 
11301
  need_lib_prefix=no
 
11302
  need_version=no
 
11303
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11304
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11305
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11306
    dynamic_linker='NetBSD (a.out) ld.so'
 
11307
  else
 
11308
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11309
    soname_spec='${libname}${release}${shared_ext}$major'
 
11310
    dynamic_linker='NetBSD ld.elf_so'
 
11311
  fi
 
11312
  shlibpath_var=LD_LIBRARY_PATH
 
11313
  shlibpath_overrides_runpath=yes
 
11314
  hardcode_into_libs=yes
 
11315
  ;;
 
11316
 
 
11317
newsos6)
 
11318
  version_type=linux # correct to gnu/linux during the next big refactor
 
11319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11320
  shlibpath_var=LD_LIBRARY_PATH
 
11321
  shlibpath_overrides_runpath=yes
 
11322
  ;;
 
11323
 
 
11324
*nto* | *qnx*)
 
11325
  version_type=qnx
 
11326
  need_lib_prefix=no
 
11327
  need_version=no
 
11328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11329
  soname_spec='${libname}${release}${shared_ext}$major'
 
11330
  shlibpath_var=LD_LIBRARY_PATH
 
11331
  shlibpath_overrides_runpath=no
 
11332
  hardcode_into_libs=yes
 
11333
  dynamic_linker='ldqnx.so'
 
11334
  ;;
 
11335
 
 
11336
openbsd*)
 
11337
  version_type=sunos
 
11338
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11339
  need_lib_prefix=no
 
11340
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11341
  case $host_os in
 
11342
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11343
    *)                          need_version=no  ;;
 
11344
  esac
 
11345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11346
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11347
  shlibpath_var=LD_LIBRARY_PATH
 
11348
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11349
    case $host_os in
 
11350
      openbsd2.[89] | openbsd2.[89].*)
 
11351
        shlibpath_overrides_runpath=no
 
11352
        ;;
 
11353
      *)
 
11354
        shlibpath_overrides_runpath=yes
 
11355
        ;;
 
11356
      esac
 
11357
  else
 
11358
    shlibpath_overrides_runpath=yes
 
11359
  fi
 
11360
  ;;
 
11361
 
 
11362
os2*)
 
11363
  libname_spec='$name'
 
11364
  shrext_cmds=".dll"
 
11365
  need_lib_prefix=no
 
11366
  library_names_spec='$libname${shared_ext} $libname.a'
 
11367
  dynamic_linker='OS/2 ld.exe'
 
11368
  shlibpath_var=LIBPATH
 
11369
  ;;
 
11370
 
 
11371
osf3* | osf4* | osf5*)
 
11372
  version_type=osf
 
11373
  need_lib_prefix=no
 
11374
  need_version=no
 
11375
  soname_spec='${libname}${release}${shared_ext}$major'
 
11376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11377
  shlibpath_var=LD_LIBRARY_PATH
 
11378
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11379
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11380
  ;;
 
11381
 
 
11382
rdos*)
 
11383
  dynamic_linker=no
 
11384
  ;;
 
11385
 
 
11386
solaris*)
 
11387
  version_type=linux # correct to gnu/linux during the next big refactor
 
11388
  need_lib_prefix=no
 
11389
  need_version=no
 
11390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11391
  soname_spec='${libname}${release}${shared_ext}$major'
 
11392
  shlibpath_var=LD_LIBRARY_PATH
 
11393
  shlibpath_overrides_runpath=yes
 
11394
  hardcode_into_libs=yes
 
11395
  # ldd complains unless libraries are executable
 
11396
  postinstall_cmds='chmod +x $lib'
 
11397
  ;;
 
11398
 
 
11399
sunos4*)
 
11400
  version_type=sunos
 
11401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11402
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11403
  shlibpath_var=LD_LIBRARY_PATH
 
11404
  shlibpath_overrides_runpath=yes
 
11405
  if test "$with_gnu_ld" = yes; then
 
11406
    need_lib_prefix=no
 
11407
  fi
 
11408
  need_version=yes
 
11409
  ;;
 
11410
 
 
11411
sysv4 | sysv4.3*)
 
11412
  version_type=linux # correct to gnu/linux during the next big refactor
 
11413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11414
  soname_spec='${libname}${release}${shared_ext}$major'
 
11415
  shlibpath_var=LD_LIBRARY_PATH
 
11416
  case $host_vendor in
 
11417
    sni)
 
11418
      shlibpath_overrides_runpath=no
 
11419
      need_lib_prefix=no
 
11420
      runpath_var=LD_RUN_PATH
 
11421
      ;;
 
11422
    siemens)
 
11423
      need_lib_prefix=no
 
11424
      ;;
 
11425
    motorola)
 
11426
      need_lib_prefix=no
 
11427
      need_version=no
 
11428
      shlibpath_overrides_runpath=no
 
11429
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11430
      ;;
 
11431
  esac
 
11432
  ;;
 
11433
 
 
11434
sysv4*MP*)
 
11435
  if test -d /usr/nec ;then
 
11436
    version_type=linux # correct to gnu/linux during the next big refactor
 
11437
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11438
    soname_spec='$libname${shared_ext}.$major'
 
11439
    shlibpath_var=LD_LIBRARY_PATH
 
11440
  fi
 
11441
  ;;
 
11442
 
 
11443
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11444
  version_type=freebsd-elf
 
11445
  need_lib_prefix=no
 
11446
  need_version=no
 
11447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11448
  soname_spec='${libname}${release}${shared_ext}$major'
 
11449
  shlibpath_var=LD_LIBRARY_PATH
 
11450
  shlibpath_overrides_runpath=yes
 
11451
  hardcode_into_libs=yes
 
11452
  if test "$with_gnu_ld" = yes; then
 
11453
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11454
  else
 
11455
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11456
    case $host_os in
 
11457
      sco3.2v5*)
 
11458
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11459
        ;;
 
11460
    esac
 
11461
  fi
 
11462
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11463
  ;;
 
11464
 
 
11465
tpf*)
 
11466
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11467
  version_type=linux # correct to gnu/linux during the next big refactor
 
11468
  need_lib_prefix=no
 
11469
  need_version=no
 
11470
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11471
  shlibpath_var=LD_LIBRARY_PATH
 
11472
  shlibpath_overrides_runpath=no
 
11473
  hardcode_into_libs=yes
 
11474
  ;;
 
11475
 
 
11476
uts4*)
 
11477
  version_type=linux # correct to gnu/linux during the next big refactor
 
11478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11479
  soname_spec='${libname}${release}${shared_ext}$major'
 
11480
  shlibpath_var=LD_LIBRARY_PATH
 
11481
  ;;
 
11482
 
 
11483
*)
 
11484
  dynamic_linker=no
 
11485
  ;;
 
11486
esac
 
11487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11488
$as_echo "$dynamic_linker" >&6; }
 
11489
test "$dynamic_linker" = no && can_build_shared=no
 
11490
 
 
11491
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11492
if test "$GCC" = yes; then
 
11493
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11494
fi
 
11495
 
 
11496
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11497
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11498
fi
 
11499
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11500
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11501
fi
 
11502
 
 
11503
 
 
11504
 
 
11505
 
 
11506
 
 
11507
 
 
11508
 
 
11509
 
 
11510
 
 
11511
 
 
11512
 
 
11513
 
 
11514
 
 
11515
 
 
11516
 
 
11517
 
 
11518
 
 
11519
 
 
11520
 
 
11521
 
 
11522
 
 
11523
 
 
11524
 
 
11525
 
 
11526
 
 
11527
 
 
11528
 
 
11529
 
 
11530
 
 
11531
 
 
11532
 
 
11533
 
 
11534
 
 
11535
 
 
11536
 
 
11537
 
 
11538
 
 
11539
 
 
11540
 
 
11541
 
 
11542
 
 
11543
 
 
11544
 
 
11545
 
 
11546
 
 
11547
 
 
11548
 
 
11549
 
 
11550
 
 
11551
 
 
11552
 
 
11553
 
 
11554
 
 
11555
 
 
11556
 
 
11557
 
 
11558
 
 
11559
 
 
11560
 
 
11561
 
 
11562
 
 
11563
 
 
11564
 
 
11565
 
 
11566
 
 
11567
 
 
11568
 
 
11569
 
 
11570
 
 
11571
 
 
11572
 
 
11573
 
 
11574
 
 
11575
 
 
11576
 
 
11577
 
 
11578
 
 
11579
 
 
11580
 
 
11581
 
 
11582
 
 
11583
 
 
11584
 
 
11585
 
 
11586
 
 
11587
 
 
11588
 
 
11589
 
 
11590
 
 
11591
 
 
11592
 
 
11593
 
 
11594
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11595
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11596
hardcode_action=
 
11597
if test -n "$hardcode_libdir_flag_spec" ||
 
11598
   test -n "$runpath_var" ||
 
11599
   test "X$hardcode_automatic" = "Xyes" ; then
 
11600
 
 
11601
  # We can hardcode non-existent directories.
 
11602
  if test "$hardcode_direct" != no &&
 
11603
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11604
     # have to relink, otherwise we might link with an installed library
 
11605
     # when we should be linking with a yet-to-be-installed one
 
11606
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11607
     test "$hardcode_minus_L" != no; then
 
11608
    # Linking always hardcodes the temporary library directory.
 
11609
    hardcode_action=relink
 
11610
  else
 
11611
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11612
    hardcode_action=immediate
 
11613
  fi
 
11614
else
 
11615
  # We cannot hardcode anything, or else we can only hardcode existing
 
11616
  # directories.
 
11617
  hardcode_action=unsupported
 
11618
fi
 
11619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11620
$as_echo "$hardcode_action" >&6; }
 
11621
 
 
11622
if test "$hardcode_action" = relink ||
 
11623
   test "$inherit_rpath" = yes; then
 
11624
  # Fast installation is not supported
 
11625
  enable_fast_install=no
 
11626
elif test "$shlibpath_overrides_runpath" = yes ||
 
11627
     test "$enable_shared" = no; then
 
11628
  # Fast installation is not necessary
 
11629
  enable_fast_install=needless
 
11630
fi
 
11631
 
 
11632
 
 
11633
 
 
11634
 
 
11635
 
 
11636
 
 
11637
  if test "x$enable_dlopen" != xyes; then
 
11638
  enable_dlopen=unknown
 
11639
  enable_dlopen_self=unknown
 
11640
  enable_dlopen_self_static=unknown
 
11641
else
 
11642
  lt_cv_dlopen=no
 
11643
  lt_cv_dlopen_libs=
 
11644
 
 
11645
  case $host_os in
 
11646
  beos*)
 
11647
    lt_cv_dlopen="load_add_on"
 
11648
    lt_cv_dlopen_libs=
 
11649
    lt_cv_dlopen_self=yes
 
11650
    ;;
 
11651
 
 
11652
  mingw* | pw32* | cegcc*)
 
11653
    lt_cv_dlopen="LoadLibrary"
 
11654
    lt_cv_dlopen_libs=
 
11655
    ;;
 
11656
 
 
11657
  cygwin*)
 
11658
    lt_cv_dlopen="dlopen"
 
11659
    lt_cv_dlopen_libs=
 
11660
    ;;
 
11661
 
 
11662
  darwin*)
 
11663
  # if libdl is installed we need to link against it
 
11664
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11665
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11666
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11667
  $as_echo_n "(cached) " >&6
 
11668
else
 
11669
  ac_check_lib_save_LIBS=$LIBS
 
11670
LIBS="-ldl  $LIBS"
 
11671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11672
/* end confdefs.h.  */
 
11673
 
 
11674
/* Override any GCC internal prototype to avoid an error.
 
11675
   Use char because int might match the return type of a GCC
 
11676
   builtin and then its argument prototype would still apply.  */
 
11677
#ifdef __cplusplus
 
11678
extern "C"
 
11679
#endif
 
11680
char dlopen ();
 
11681
int
 
11682
main ()
 
11683
{
 
11684
return dlopen ();
 
11685
  ;
 
11686
  return 0;
 
11687
}
 
11688
_ACEOF
 
11689
if ac_fn_c_try_link "$LINENO"; then :
 
11690
  ac_cv_lib_dl_dlopen=yes
 
11691
else
 
11692
  ac_cv_lib_dl_dlopen=no
 
11693
fi
 
11694
rm -f core conftest.err conftest.$ac_objext \
 
11695
    conftest$ac_exeext conftest.$ac_ext
 
11696
LIBS=$ac_check_lib_save_LIBS
 
11697
fi
 
11698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11699
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11700
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11701
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11702
else
 
11703
 
 
11704
    lt_cv_dlopen="dyld"
 
11705
    lt_cv_dlopen_libs=
 
11706
    lt_cv_dlopen_self=yes
 
11707
 
 
11708
fi
 
11709
 
 
11710
    ;;
 
11711
 
 
11712
  *)
 
11713
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11714
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11715
  lt_cv_dlopen="shl_load"
 
11716
else
 
11717
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11718
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11719
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11720
  $as_echo_n "(cached) " >&6
 
11721
else
 
11722
  ac_check_lib_save_LIBS=$LIBS
 
11723
LIBS="-ldld  $LIBS"
 
11724
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11725
/* end confdefs.h.  */
 
11726
 
 
11727
/* Override any GCC internal prototype to avoid an error.
 
11728
   Use char because int might match the return type of a GCC
 
11729
   builtin and then its argument prototype would still apply.  */
 
11730
#ifdef __cplusplus
 
11731
extern "C"
 
11732
#endif
 
11733
char shl_load ();
 
11734
int
 
11735
main ()
 
11736
{
 
11737
return shl_load ();
 
11738
  ;
 
11739
  return 0;
 
11740
}
 
11741
_ACEOF
 
11742
if ac_fn_c_try_link "$LINENO"; then :
 
11743
  ac_cv_lib_dld_shl_load=yes
 
11744
else
 
11745
  ac_cv_lib_dld_shl_load=no
 
11746
fi
 
11747
rm -f core conftest.err conftest.$ac_objext \
 
11748
    conftest$ac_exeext conftest.$ac_ext
 
11749
LIBS=$ac_check_lib_save_LIBS
 
11750
fi
 
11751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11752
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11753
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11754
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11755
else
 
11756
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11757
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11758
  lt_cv_dlopen="dlopen"
 
11759
else
 
11760
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11761
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11762
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11763
  $as_echo_n "(cached) " >&6
 
11764
else
 
11765
  ac_check_lib_save_LIBS=$LIBS
 
11766
LIBS="-ldl  $LIBS"
 
11767
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11768
/* end confdefs.h.  */
 
11769
 
 
11770
/* Override any GCC internal prototype to avoid an error.
 
11771
   Use char because int might match the return type of a GCC
 
11772
   builtin and then its argument prototype would still apply.  */
 
11773
#ifdef __cplusplus
 
11774
extern "C"
 
11775
#endif
 
11776
char dlopen ();
 
11777
int
 
11778
main ()
 
11779
{
 
11780
return dlopen ();
 
11781
  ;
 
11782
  return 0;
 
11783
}
 
11784
_ACEOF
 
11785
if ac_fn_c_try_link "$LINENO"; then :
 
11786
  ac_cv_lib_dl_dlopen=yes
 
11787
else
 
11788
  ac_cv_lib_dl_dlopen=no
 
11789
fi
 
11790
rm -f core conftest.err conftest.$ac_objext \
 
11791
    conftest$ac_exeext conftest.$ac_ext
 
11792
LIBS=$ac_check_lib_save_LIBS
 
11793
fi
 
11794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11795
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11796
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11797
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11798
else
 
11799
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11800
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11801
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11802
  $as_echo_n "(cached) " >&6
 
11803
else
 
11804
  ac_check_lib_save_LIBS=$LIBS
 
11805
LIBS="-lsvld  $LIBS"
 
11806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11807
/* end confdefs.h.  */
 
11808
 
 
11809
/* Override any GCC internal prototype to avoid an error.
 
11810
   Use char because int might match the return type of a GCC
 
11811
   builtin and then its argument prototype would still apply.  */
 
11812
#ifdef __cplusplus
 
11813
extern "C"
 
11814
#endif
 
11815
char dlopen ();
 
11816
int
 
11817
main ()
 
11818
{
 
11819
return dlopen ();
 
11820
  ;
 
11821
  return 0;
 
11822
}
 
11823
_ACEOF
 
11824
if ac_fn_c_try_link "$LINENO"; then :
 
11825
  ac_cv_lib_svld_dlopen=yes
 
11826
else
 
11827
  ac_cv_lib_svld_dlopen=no
 
11828
fi
 
11829
rm -f core conftest.err conftest.$ac_objext \
 
11830
    conftest$ac_exeext conftest.$ac_ext
 
11831
LIBS=$ac_check_lib_save_LIBS
 
11832
fi
 
11833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11834
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11835
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11836
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11837
else
 
11838
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11839
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11840
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11841
  $as_echo_n "(cached) " >&6
 
11842
else
 
11843
  ac_check_lib_save_LIBS=$LIBS
 
11844
LIBS="-ldld  $LIBS"
 
11845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11846
/* end confdefs.h.  */
 
11847
 
 
11848
/* Override any GCC internal prototype to avoid an error.
 
11849
   Use char because int might match the return type of a GCC
 
11850
   builtin and then its argument prototype would still apply.  */
 
11851
#ifdef __cplusplus
 
11852
extern "C"
 
11853
#endif
 
11854
char dld_link ();
 
11855
int
 
11856
main ()
 
11857
{
 
11858
return dld_link ();
 
11859
  ;
 
11860
  return 0;
 
11861
}
 
11862
_ACEOF
 
11863
if ac_fn_c_try_link "$LINENO"; then :
 
11864
  ac_cv_lib_dld_dld_link=yes
 
11865
else
 
11866
  ac_cv_lib_dld_dld_link=no
 
11867
fi
 
11868
rm -f core conftest.err conftest.$ac_objext \
 
11869
    conftest$ac_exeext conftest.$ac_ext
 
11870
LIBS=$ac_check_lib_save_LIBS
 
11871
fi
 
11872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11873
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11874
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11875
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11876
fi
 
11877
 
 
11878
 
 
11879
fi
 
11880
 
 
11881
 
 
11882
fi
 
11883
 
 
11884
 
 
11885
fi
 
11886
 
 
11887
 
 
11888
fi
 
11889
 
 
11890
 
 
11891
fi
 
11892
 
 
11893
    ;;
 
11894
  esac
 
11895
 
 
11896
  if test "x$lt_cv_dlopen" != xno; then
 
11897
    enable_dlopen=yes
 
11898
  else
 
11899
    enable_dlopen=no
 
11900
  fi
 
11901
 
 
11902
  case $lt_cv_dlopen in
 
11903
  dlopen)
 
11904
    save_CPPFLAGS="$CPPFLAGS"
 
11905
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11906
 
 
11907
    save_LDFLAGS="$LDFLAGS"
 
11908
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11909
 
 
11910
    save_LIBS="$LIBS"
 
11911
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11912
 
 
11913
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11914
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11915
if ${lt_cv_dlopen_self+:} false; then :
 
11916
  $as_echo_n "(cached) " >&6
 
11917
else
 
11918
          if test "$cross_compiling" = yes; then :
 
11919
  lt_cv_dlopen_self=cross
 
11920
else
 
11921
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11922
  lt_status=$lt_dlunknown
 
11923
  cat > conftest.$ac_ext <<_LT_EOF
 
11924
#line $LINENO "configure"
 
11925
#include "confdefs.h"
 
11926
 
 
11927
#if HAVE_DLFCN_H
 
11928
#include <dlfcn.h>
 
11929
#endif
 
11930
 
 
11931
#include <stdio.h>
 
11932
 
 
11933
#ifdef RTLD_GLOBAL
 
11934
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11935
#else
 
11936
#  ifdef DL_GLOBAL
 
11937
#    define LT_DLGLOBAL         DL_GLOBAL
 
11938
#  else
 
11939
#    define LT_DLGLOBAL         0
 
11940
#  endif
 
11941
#endif
 
11942
 
 
11943
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11944
   find out it does not work in some platform. */
 
11945
#ifndef LT_DLLAZY_OR_NOW
 
11946
#  ifdef RTLD_LAZY
 
11947
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11948
#  else
 
11949
#    ifdef DL_LAZY
 
11950
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11951
#    else
 
11952
#      ifdef RTLD_NOW
 
11953
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11954
#      else
 
11955
#        ifdef DL_NOW
 
11956
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11957
#        else
 
11958
#          define LT_DLLAZY_OR_NOW      0
 
11959
#        endif
 
11960
#      endif
 
11961
#    endif
 
11962
#  endif
 
11963
#endif
 
11964
 
 
11965
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11966
   correspondingly for the symbols needed.  */
 
11967
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11968
int fnord () __attribute__((visibility("default")));
 
11969
#endif
 
11970
 
 
11971
int fnord () { return 42; }
 
11972
int main ()
 
11973
{
 
11974
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11975
  int status = $lt_dlunknown;
 
11976
 
 
11977
  if (self)
 
11978
    {
 
11979
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11980
      else
 
11981
        {
 
11982
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11983
          else puts (dlerror ());
 
11984
        }
 
11985
      /* dlclose (self); */
 
11986
    }
 
11987
  else
 
11988
    puts (dlerror ());
 
11989
 
 
11990
  return status;
 
11991
}
 
11992
_LT_EOF
 
11993
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11994
  (eval $ac_link) 2>&5
 
11995
  ac_status=$?
 
11996
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11997
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11998
    (./conftest; exit; ) >&5 2>/dev/null
 
11999
    lt_status=$?
 
12000
    case x$lt_status in
 
12001
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12002
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12003
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12004
    esac
 
12005
  else :
 
12006
    # compilation failed
 
12007
    lt_cv_dlopen_self=no
 
12008
  fi
 
12009
fi
 
12010
rm -fr conftest*
 
12011
 
 
12012
 
 
12013
fi
 
12014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12015
$as_echo "$lt_cv_dlopen_self" >&6; }
 
12016
 
 
12017
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12018
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12019
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12020
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
12021
if ${lt_cv_dlopen_self_static+:} false; then :
 
12022
  $as_echo_n "(cached) " >&6
 
12023
else
 
12024
          if test "$cross_compiling" = yes; then :
 
12025
  lt_cv_dlopen_self_static=cross
 
12026
else
 
12027
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12028
  lt_status=$lt_dlunknown
 
12029
  cat > conftest.$ac_ext <<_LT_EOF
 
12030
#line $LINENO "configure"
 
12031
#include "confdefs.h"
 
12032
 
 
12033
#if HAVE_DLFCN_H
 
12034
#include <dlfcn.h>
 
12035
#endif
 
12036
 
 
12037
#include <stdio.h>
 
12038
 
 
12039
#ifdef RTLD_GLOBAL
 
12040
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12041
#else
 
12042
#  ifdef DL_GLOBAL
 
12043
#    define LT_DLGLOBAL         DL_GLOBAL
 
12044
#  else
 
12045
#    define LT_DLGLOBAL         0
 
12046
#  endif
 
12047
#endif
 
12048
 
 
12049
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12050
   find out it does not work in some platform. */
 
12051
#ifndef LT_DLLAZY_OR_NOW
 
12052
#  ifdef RTLD_LAZY
 
12053
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12054
#  else
 
12055
#    ifdef DL_LAZY
 
12056
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12057
#    else
 
12058
#      ifdef RTLD_NOW
 
12059
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12060
#      else
 
12061
#        ifdef DL_NOW
 
12062
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12063
#        else
 
12064
#          define LT_DLLAZY_OR_NOW      0
 
12065
#        endif
 
12066
#      endif
 
12067
#    endif
 
12068
#  endif
 
12069
#endif
 
12070
 
 
12071
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12072
   correspondingly for the symbols needed.  */
 
12073
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12074
int fnord () __attribute__((visibility("default")));
 
12075
#endif
 
12076
 
 
12077
int fnord () { return 42; }
 
12078
int main ()
 
12079
{
 
12080
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12081
  int status = $lt_dlunknown;
 
12082
 
 
12083
  if (self)
 
12084
    {
 
12085
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12086
      else
 
12087
        {
 
12088
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12089
          else puts (dlerror ());
 
12090
        }
 
12091
      /* dlclose (self); */
 
12092
    }
 
12093
  else
 
12094
    puts (dlerror ());
 
12095
 
 
12096
  return status;
 
12097
}
 
12098
_LT_EOF
 
12099
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12100
  (eval $ac_link) 2>&5
 
12101
  ac_status=$?
 
12102
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12103
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12104
    (./conftest; exit; ) >&5 2>/dev/null
 
12105
    lt_status=$?
 
12106
    case x$lt_status in
 
12107
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12108
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12109
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12110
    esac
 
12111
  else :
 
12112
    # compilation failed
 
12113
    lt_cv_dlopen_self_static=no
 
12114
  fi
 
12115
fi
 
12116
rm -fr conftest*
 
12117
 
 
12118
 
 
12119
fi
 
12120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12121
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12122
    fi
 
12123
 
 
12124
    CPPFLAGS="$save_CPPFLAGS"
 
12125
    LDFLAGS="$save_LDFLAGS"
 
12126
    LIBS="$save_LIBS"
 
12127
    ;;
 
12128
  esac
 
12129
 
 
12130
  case $lt_cv_dlopen_self in
 
12131
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12132
  *) enable_dlopen_self=unknown ;;
 
12133
  esac
 
12134
 
 
12135
  case $lt_cv_dlopen_self_static in
 
12136
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12137
  *) enable_dlopen_self_static=unknown ;;
 
12138
  esac
 
12139
fi
 
12140
 
 
12141
 
 
12142
 
 
12143
 
 
12144
 
 
12145
 
 
12146
 
 
12147
 
 
12148
 
 
12149
 
 
12150
 
 
12151
 
 
12152
 
 
12153
 
 
12154
 
 
12155
 
 
12156
 
 
12157
striplib=
 
12158
old_striplib=
 
12159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12160
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12161
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12162
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12163
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12165
$as_echo "yes" >&6; }
 
12166
else
 
12167
# FIXME - insert some real tests, host_os isn't really good enough
 
12168
  case $host_os in
 
12169
  darwin*)
 
12170
    if test -n "$STRIP" ; then
 
12171
      striplib="$STRIP -x"
 
12172
      old_striplib="$STRIP -S"
 
12173
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12174
$as_echo "yes" >&6; }
 
12175
    else
 
12176
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12177
$as_echo "no" >&6; }
 
12178
    fi
 
12179
    ;;
 
12180
  *)
 
12181
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12182
$as_echo "no" >&6; }
 
12183
    ;;
 
12184
  esac
 
12185
fi
 
12186
 
 
12187
 
 
12188
 
 
12189
 
 
12190
 
 
12191
 
 
12192
 
 
12193
 
 
12194
 
 
12195
 
 
12196
 
 
12197
 
 
12198
  # Report which library types will actually be built
 
12199
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12200
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12202
$as_echo "$can_build_shared" >&6; }
 
12203
 
 
12204
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12205
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12206
  test "$can_build_shared" = "no" && enable_shared=no
 
12207
 
 
12208
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12209
  # are all built from PIC.
 
12210
  case $host_os in
 
12211
  aix3*)
 
12212
    test "$enable_shared" = yes && enable_static=no
 
12213
    if test -n "$RANLIB"; then
 
12214
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12215
      postinstall_cmds='$RANLIB $lib'
 
12216
    fi
 
12217
    ;;
 
12218
 
 
12219
  aix[4-9]*)
 
12220
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12221
      test "$enable_shared" = yes && enable_static=no
 
12222
    fi
 
12223
    ;;
 
12224
  esac
 
12225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12226
$as_echo "$enable_shared" >&6; }
 
12227
 
 
12228
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12229
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12230
  # Make sure either enable_shared or enable_static is yes.
 
12231
  test "$enable_shared" = yes || enable_static=yes
 
12232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12233
$as_echo "$enable_static" >&6; }
 
12234
 
 
12235
 
 
12236
 
 
12237
 
 
12238
fi
 
12239
ac_ext=c
 
12240
ac_cpp='$CPP $CPPFLAGS'
 
12241
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12242
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12243
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12244
 
 
12245
CC="$lt_save_CC"
 
12246
 
 
12247
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12248
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12249
    (test "X$CXX" != "Xg++"))) ; then
 
12250
  ac_ext=cpp
 
12251
ac_cpp='$CXXCPP $CPPFLAGS'
 
12252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12256
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12257
if test -z "$CXXCPP"; then
 
12258
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
12259
  $as_echo_n "(cached) " >&6
 
12260
else
 
12261
      # Double quotes because CXXCPP needs to be expanded
 
12262
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12263
    do
 
12264
      ac_preproc_ok=false
 
12265
for ac_cxx_preproc_warn_flag in '' yes
 
12266
do
 
12267
  # Use a header file that comes with gcc, so configuring glibc
 
12268
  # with a fresh cross-compiler works.
 
12269
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12270
  # <limits.h> exists even on freestanding compilers.
 
12271
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12272
  # not just through cpp. "Syntax error" is here to catch this case.
 
12273
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12274
/* end confdefs.h.  */
 
12275
#ifdef __STDC__
 
12276
# include <limits.h>
 
12277
#else
 
12278
# include <assert.h>
 
12279
#endif
 
12280
                     Syntax error
 
12281
_ACEOF
 
12282
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12283
 
 
12284
else
 
12285
  # Broken: fails on valid input.
 
12286
continue
 
12287
fi
 
12288
rm -f conftest.err conftest.i conftest.$ac_ext
 
12289
 
 
12290
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12291
  # can be detected and how.
 
12292
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12293
/* end confdefs.h.  */
 
12294
#include <ac_nonexistent.h>
 
12295
_ACEOF
 
12296
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12297
  # Broken: success on invalid input.
 
12298
continue
 
12299
else
 
12300
  # Passes both tests.
 
12301
ac_preproc_ok=:
 
12302
break
 
12303
fi
 
12304
rm -f conftest.err conftest.i conftest.$ac_ext
 
12305
 
 
12306
done
 
12307
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12308
rm -f conftest.i conftest.err conftest.$ac_ext
 
12309
if $ac_preproc_ok; then :
 
12310
  break
 
12311
fi
 
12312
 
 
12313
    done
 
12314
    ac_cv_prog_CXXCPP=$CXXCPP
 
12315
 
 
12316
fi
 
12317
  CXXCPP=$ac_cv_prog_CXXCPP
 
12318
else
 
12319
  ac_cv_prog_CXXCPP=$CXXCPP
 
12320
fi
 
12321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12322
$as_echo "$CXXCPP" >&6; }
 
12323
ac_preproc_ok=false
 
12324
for ac_cxx_preproc_warn_flag in '' yes
 
12325
do
 
12326
  # Use a header file that comes with gcc, so configuring glibc
 
12327
  # with a fresh cross-compiler works.
 
12328
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12329
  # <limits.h> exists even on freestanding compilers.
 
12330
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12331
  # not just through cpp. "Syntax error" is here to catch this case.
 
12332
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12333
/* end confdefs.h.  */
 
12334
#ifdef __STDC__
 
12335
# include <limits.h>
 
12336
#else
 
12337
# include <assert.h>
 
12338
#endif
 
12339
                     Syntax error
 
12340
_ACEOF
 
12341
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12342
 
 
12343
else
 
12344
  # Broken: fails on valid input.
 
12345
continue
 
12346
fi
 
12347
rm -f conftest.err conftest.i conftest.$ac_ext
 
12348
 
 
12349
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12350
  # can be detected and how.
 
12351
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12352
/* end confdefs.h.  */
 
12353
#include <ac_nonexistent.h>
 
12354
_ACEOF
 
12355
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12356
  # Broken: success on invalid input.
 
12357
continue
 
12358
else
 
12359
  # Passes both tests.
 
12360
ac_preproc_ok=:
 
12361
break
 
12362
fi
 
12363
rm -f conftest.err conftest.i conftest.$ac_ext
 
12364
 
 
12365
done
 
12366
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12367
rm -f conftest.i conftest.err conftest.$ac_ext
 
12368
if $ac_preproc_ok; then :
 
12369
 
 
12370
else
 
12371
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12372
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12373
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12374
See \`config.log' for more details" "$LINENO" 5; }
 
12375
fi
 
12376
 
 
12377
ac_ext=c
 
12378
ac_cpp='$CPP $CPPFLAGS'
 
12379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12382
 
 
12383
else
 
12384
  _lt_caught_CXX_error=yes
 
12385
fi
 
12386
 
 
12387
ac_ext=cpp
 
12388
ac_cpp='$CXXCPP $CPPFLAGS'
 
12389
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12390
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12391
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12392
 
 
12393
archive_cmds_need_lc_CXX=no
 
12394
allow_undefined_flag_CXX=
 
12395
always_export_symbols_CXX=no
 
12396
archive_expsym_cmds_CXX=
 
12397
compiler_needs_object_CXX=no
 
12398
export_dynamic_flag_spec_CXX=
 
12399
hardcode_direct_CXX=no
 
12400
hardcode_direct_absolute_CXX=no
 
12401
hardcode_libdir_flag_spec_CXX=
 
12402
hardcode_libdir_separator_CXX=
 
12403
hardcode_minus_L_CXX=no
 
12404
hardcode_shlibpath_var_CXX=unsupported
 
12405
hardcode_automatic_CXX=no
 
12406
inherit_rpath_CXX=no
 
12407
module_cmds_CXX=
 
12408
module_expsym_cmds_CXX=
 
12409
link_all_deplibs_CXX=unknown
 
12410
old_archive_cmds_CXX=$old_archive_cmds
 
12411
reload_flag_CXX=$reload_flag
 
12412
reload_cmds_CXX=$reload_cmds
 
12413
no_undefined_flag_CXX=
 
12414
whole_archive_flag_spec_CXX=
 
12415
enable_shared_with_static_runtimes_CXX=no
 
12416
 
 
12417
# Source file extension for C++ test sources.
 
12418
ac_ext=cpp
 
12419
 
 
12420
# Object file extension for compiled C++ test sources.
 
12421
objext=o
 
12422
objext_CXX=$objext
 
12423
 
 
12424
# No sense in running all these tests if we already determined that
 
12425
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12426
# are currently assumed to apply to all compilers on this platform,
 
12427
# and will be corrupted by setting them based on a non-working compiler.
 
12428
if test "$_lt_caught_CXX_error" != yes; then
 
12429
  # Code to be used in simple compile tests
 
12430
  lt_simple_compile_test_code="int some_variable = 0;"
 
12431
 
 
12432
  # Code to be used in simple link tests
 
12433
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12434
 
 
12435
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12436
 
 
12437
 
 
12438
 
 
12439
 
 
12440
 
 
12441
 
 
12442
# If no C compiler was specified, use CC.
 
12443
LTCC=${LTCC-"$CC"}
 
12444
 
 
12445
# If no C compiler flags were specified, use CFLAGS.
 
12446
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12447
 
 
12448
# Allow CC to be a program name with arguments.
 
12449
compiler=$CC
 
12450
 
 
12451
 
 
12452
  # save warnings/boilerplate of simple test code
 
12453
  ac_outfile=conftest.$ac_objext
 
12454
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12455
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12456
_lt_compiler_boilerplate=`cat conftest.err`
 
12457
$RM conftest*
 
12458
 
 
12459
  ac_outfile=conftest.$ac_objext
 
12460
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12461
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12462
_lt_linker_boilerplate=`cat conftest.err`
 
12463
$RM -r conftest*
 
12464
 
 
12465
 
 
12466
  # Allow CC to be a program name with arguments.
 
12467
  lt_save_CC=$CC
 
12468
  lt_save_CFLAGS=$CFLAGS
 
12469
  lt_save_LD=$LD
 
12470
  lt_save_GCC=$GCC
 
12471
  GCC=$GXX
 
12472
  lt_save_with_gnu_ld=$with_gnu_ld
 
12473
  lt_save_path_LD=$lt_cv_path_LD
 
12474
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12475
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12476
  else
 
12477
    $as_unset lt_cv_prog_gnu_ld
 
12478
  fi
 
12479
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12480
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12481
  else
 
12482
    $as_unset lt_cv_path_LD
 
12483
  fi
 
12484
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12485
  CC=${CXX-"c++"}
 
12486
  CFLAGS=$CXXFLAGS
 
12487
  compiler=$CC
 
12488
  compiler_CXX=$CC
 
12489
  for cc_temp in $compiler""; do
 
12490
  case $cc_temp in
 
12491
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12492
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12493
    \-*) ;;
 
12494
    *) break;;
 
12495
  esac
 
12496
done
 
12497
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12498
 
 
12499
 
 
12500
  if test -n "$compiler"; then
 
12501
    # We don't want -fno-exception when compiling C++ code, so set the
 
12502
    # no_builtin_flag separately
 
12503
    if test "$GXX" = yes; then
 
12504
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12505
    else
 
12506
      lt_prog_compiler_no_builtin_flag_CXX=
 
12507
    fi
 
12508
 
 
12509
    if test "$GXX" = yes; then
 
12510
      # Set up default GNU C++ configuration
 
12511
 
 
12512
 
 
12513
 
 
12514
# Check whether --with-gnu-ld was given.
 
12515
if test "${with_gnu_ld+set}" = set; then :
 
12516
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12517
else
 
12518
  with_gnu_ld=no
 
12519
fi
 
12520
 
 
12521
ac_prog=ld
 
12522
if test "$GCC" = yes; then
 
12523
  # Check if gcc -print-prog-name=ld gives a path.
 
12524
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12525
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12526
  case $host in
 
12527
  *-*-mingw*)
 
12528
    # gcc leaves a trailing carriage return which upsets mingw
 
12529
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12530
  *)
 
12531
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12532
  esac
 
12533
  case $ac_prog in
 
12534
    # Accept absolute paths.
 
12535
    [\\/]* | ?:[\\/]*)
 
12536
      re_direlt='/[^/][^/]*/\.\./'
 
12537
      # Canonicalize the pathname of ld
 
12538
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12539
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12540
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12541
      done
 
12542
      test -z "$LD" && LD="$ac_prog"
 
12543
      ;;
 
12544
  "")
 
12545
    # If it fails, then pretend we aren't using GCC.
 
12546
    ac_prog=ld
 
12547
    ;;
 
12548
  *)
 
12549
    # If it is relative, then search for the first ld in PATH.
 
12550
    with_gnu_ld=unknown
 
12551
    ;;
 
12552
  esac
 
12553
elif test "$with_gnu_ld" = yes; then
 
12554
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12555
$as_echo_n "checking for GNU ld... " >&6; }
 
12556
else
 
12557
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12558
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12559
fi
 
12560
if ${lt_cv_path_LD+:} false; then :
 
12561
  $as_echo_n "(cached) " >&6
 
12562
else
 
12563
  if test -z "$LD"; then
 
12564
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12565
  for ac_dir in $PATH; do
 
12566
    IFS="$lt_save_ifs"
 
12567
    test -z "$ac_dir" && ac_dir=.
 
12568
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12569
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12570
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12571
      # but apparently some variants of GNU ld only accept -v.
 
12572
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12573
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12574
      *GNU* | *'with BFD'*)
 
12575
        test "$with_gnu_ld" != no && break
 
12576
        ;;
 
12577
      *)
 
12578
        test "$with_gnu_ld" != yes && break
 
12579
        ;;
 
12580
      esac
 
12581
    fi
 
12582
  done
 
12583
  IFS="$lt_save_ifs"
 
12584
else
 
12585
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12586
fi
 
12587
fi
 
12588
 
 
12589
LD="$lt_cv_path_LD"
 
12590
if test -n "$LD"; then
 
12591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12592
$as_echo "$LD" >&6; }
 
12593
else
 
12594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12595
$as_echo "no" >&6; }
 
12596
fi
 
12597
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12599
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12600
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12601
  $as_echo_n "(cached) " >&6
 
12602
else
 
12603
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12604
case `$LD -v 2>&1 </dev/null` in
 
12605
*GNU* | *'with BFD'*)
 
12606
  lt_cv_prog_gnu_ld=yes
 
12607
  ;;
 
12608
*)
 
12609
  lt_cv_prog_gnu_ld=no
 
12610
  ;;
 
12611
esac
 
12612
fi
 
12613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12614
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12615
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12616
 
 
12617
 
 
12618
 
 
12619
 
 
12620
 
 
12621
 
 
12622
 
 
12623
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12624
      # archiving commands below assume that GNU ld is being used.
 
12625
      if test "$with_gnu_ld" = yes; then
 
12626
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12627
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12628
 
 
12629
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12630
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12631
 
 
12632
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12633
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12634
        #     investigate it a little bit more. (MM)
 
12635
        wlarc='${wl}'
 
12636
 
 
12637
        # ancient GNU ld didn't support --whole-archive et. al.
 
12638
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12639
          $GREP 'no-whole-archive' > /dev/null; then
 
12640
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12641
        else
 
12642
          whole_archive_flag_spec_CXX=
 
12643
        fi
 
12644
      else
 
12645
        with_gnu_ld=no
 
12646
        wlarc=
 
12647
 
 
12648
        # A generic and very simple default shared library creation
 
12649
        # command for GNU C++ for the case where it uses the native
 
12650
        # linker, instead of GNU ld.  If possible, this setting should
 
12651
        # overridden to take advantage of the native linker features on
 
12652
        # the platform it is being used on.
 
12653
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12654
      fi
 
12655
 
 
12656
      # Commands to make compiler produce verbose output that lists
 
12657
      # what "hidden" libraries, object files and flags are used when
 
12658
      # linking a shared library.
 
12659
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
12660
 
 
12661
    else
 
12662
      GXX=no
 
12663
      with_gnu_ld=no
 
12664
      wlarc=
 
12665
    fi
 
12666
 
 
12667
    # PORTME: fill in a description of your system's C++ link characteristics
 
12668
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12669
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12670
    ld_shlibs_CXX=yes
 
12671
    case $host_os in
 
12672
      aix3*)
 
12673
        # FIXME: insert proper C++ library support
 
12674
        ld_shlibs_CXX=no
 
12675
        ;;
 
12676
      aix[4-9]*)
 
12677
        if test "$host_cpu" = ia64; then
 
12678
          # On IA64, the linker does run time linking by default, so we don't
 
12679
          # have to do anything special.
 
12680
          aix_use_runtimelinking=no
 
12681
          exp_sym_flag='-Bexport'
 
12682
          no_entry_flag=""
 
12683
        else
 
12684
          aix_use_runtimelinking=no
 
12685
 
 
12686
          # Test if we are trying to use run time linking or normal
 
12687
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12688
          # need to do runtime linking.
 
12689
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12690
            for ld_flag in $LDFLAGS; do
 
12691
              case $ld_flag in
 
12692
              *-brtl*)
 
12693
                aix_use_runtimelinking=yes
 
12694
                break
 
12695
                ;;
 
12696
              esac
 
12697
            done
 
12698
            ;;
 
12699
          esac
 
12700
 
 
12701
          exp_sym_flag='-bexport'
 
12702
          no_entry_flag='-bnoentry'
 
12703
        fi
 
12704
 
 
12705
        # When large executables or shared objects are built, AIX ld can
 
12706
        # have problems creating the table of contents.  If linking a library
 
12707
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12708
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12709
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12710
 
 
12711
        archive_cmds_CXX=''
 
12712
        hardcode_direct_CXX=yes
 
12713
        hardcode_direct_absolute_CXX=yes
 
12714
        hardcode_libdir_separator_CXX=':'
 
12715
        link_all_deplibs_CXX=yes
 
12716
        file_list_spec_CXX='${wl}-f,'
 
12717
 
 
12718
        if test "$GXX" = yes; then
 
12719
          case $host_os in aix4.[012]|aix4.[012].*)
 
12720
          # We only want to do this on AIX 4.2 and lower, the check
 
12721
          # below for broken collect2 doesn't work under 4.3+
 
12722
          collect2name=`${CC} -print-prog-name=collect2`
 
12723
          if test -f "$collect2name" &&
 
12724
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12725
          then
 
12726
            # We have reworked collect2
 
12727
            :
 
12728
          else
 
12729
            # We have old collect2
 
12730
            hardcode_direct_CXX=unsupported
 
12731
            # It fails to find uninstalled libraries when the uninstalled
 
12732
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12733
            # to unsupported forces relinking
 
12734
            hardcode_minus_L_CXX=yes
 
12735
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12736
            hardcode_libdir_separator_CXX=
 
12737
          fi
 
12738
          esac
 
12739
          shared_flag='-shared'
 
12740
          if test "$aix_use_runtimelinking" = yes; then
 
12741
            shared_flag="$shared_flag "'${wl}-G'
 
12742
          fi
 
12743
        else
 
12744
          # not using gcc
 
12745
          if test "$host_cpu" = ia64; then
 
12746
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12747
          # chokes on -Wl,-G. The following line is correct:
 
12748
          shared_flag='-G'
 
12749
          else
 
12750
            if test "$aix_use_runtimelinking" = yes; then
 
12751
              shared_flag='${wl}-G'
 
12752
            else
 
12753
              shared_flag='${wl}-bM:SRE'
 
12754
            fi
 
12755
          fi
 
12756
        fi
 
12757
 
 
12758
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12759
        # It seems that -bexpall does not export symbols beginning with
 
12760
        # underscore (_), so it is better to generate a list of symbols to
 
12761
        # export.
 
12762
        always_export_symbols_CXX=yes
 
12763
        if test "$aix_use_runtimelinking" = yes; then
 
12764
          # Warning - without using the other runtime loading flags (-brtl),
 
12765
          # -berok will link without error, but may produce a broken library.
 
12766
          allow_undefined_flag_CXX='-berok'
 
12767
          # Determine the default libpath from the value encoded in an empty
 
12768
          # executable.
 
12769
          if test "${lt_cv_aix_libpath+set}" = set; then
 
12770
  aix_libpath=$lt_cv_aix_libpath
 
12771
else
 
12772
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12773
  $as_echo_n "(cached) " >&6
 
12774
else
 
12775
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12776
/* end confdefs.h.  */
 
12777
 
 
12778
int
 
12779
main ()
 
12780
{
 
12781
 
 
12782
  ;
 
12783
  return 0;
 
12784
}
 
12785
_ACEOF
 
12786
if ac_fn_cxx_try_link "$LINENO"; then :
 
12787
 
 
12788
  lt_aix_libpath_sed='
 
12789
      /Import File Strings/,/^$/ {
 
12790
          /^0/ {
 
12791
              s/^0  *\([^ ]*\) *$/\1/
 
12792
              p
 
12793
          }
 
12794
      }'
 
12795
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12796
  # Check for a 64-bit object if we didn't find anything.
 
12797
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12798
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12799
  fi
 
12800
fi
 
12801
rm -f core conftest.err conftest.$ac_objext \
 
12802
    conftest$ac_exeext conftest.$ac_ext
 
12803
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12804
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12805
  fi
 
12806
 
 
12807
fi
 
12808
 
 
12809
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12810
fi
 
12811
 
 
12812
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12813
 
 
12814
          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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12815
        else
 
12816
          if test "$host_cpu" = ia64; then
 
12817
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12818
            allow_undefined_flag_CXX="-z nodefs"
 
12819
            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"
 
12820
          else
 
12821
            # Determine the default libpath from the value encoded in an
 
12822
            # empty executable.
 
12823
            if test "${lt_cv_aix_libpath+set}" = set; then
 
12824
  aix_libpath=$lt_cv_aix_libpath
 
12825
else
 
12826
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12827
  $as_echo_n "(cached) " >&6
 
12828
else
 
12829
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12830
/* end confdefs.h.  */
 
12831
 
 
12832
int
 
12833
main ()
 
12834
{
 
12835
 
 
12836
  ;
 
12837
  return 0;
 
12838
}
 
12839
_ACEOF
 
12840
if ac_fn_cxx_try_link "$LINENO"; then :
 
12841
 
 
12842
  lt_aix_libpath_sed='
 
12843
      /Import File Strings/,/^$/ {
 
12844
          /^0/ {
 
12845
              s/^0  *\([^ ]*\) *$/\1/
 
12846
              p
 
12847
          }
 
12848
      }'
 
12849
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12850
  # Check for a 64-bit object if we didn't find anything.
 
12851
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12852
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12853
  fi
 
12854
fi
 
12855
rm -f core conftest.err conftest.$ac_objext \
 
12856
    conftest$ac_exeext conftest.$ac_ext
 
12857
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12858
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12859
  fi
 
12860
 
 
12861
fi
 
12862
 
 
12863
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12864
fi
 
12865
 
 
12866
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12867
            # Warning - without using the other run time loading flags,
 
12868
            # -berok will link without error, but may produce a broken library.
 
12869
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
12870
            allow_undefined_flag_CXX=' ${wl}-berok'
 
12871
            if test "$with_gnu_ld" = yes; then
 
12872
              # We only use this code for GNU lds that support --whole-archive.
 
12873
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12874
            else
 
12875
              # Exported symbols can be pulled into shared objects from archives
 
12876
              whole_archive_flag_spec_CXX='$convenience'
 
12877
            fi
 
12878
            archive_cmds_need_lc_CXX=yes
 
12879
            # This is similar to how AIX traditionally builds its shared
 
12880
            # libraries.
 
12881
            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'
 
12882
          fi
 
12883
        fi
 
12884
        ;;
 
12885
 
 
12886
      beos*)
 
12887
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12888
          allow_undefined_flag_CXX=unsupported
 
12889
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12890
          # support --undefined.  This deserves some investigation.  FIXME
 
12891
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12892
        else
 
12893
          ld_shlibs_CXX=no
 
12894
        fi
 
12895
        ;;
 
12896
 
 
12897
      chorus*)
 
12898
        case $cc_basename in
 
12899
          *)
 
12900
          # FIXME: insert proper C++ library support
 
12901
          ld_shlibs_CXX=no
 
12902
          ;;
 
12903
        esac
 
12904
        ;;
 
12905
 
 
12906
      cygwin* | mingw* | pw32* | cegcc*)
 
12907
        case $GXX,$cc_basename in
 
12908
        ,cl* | no,cl*)
 
12909
          # Native MSVC
 
12910
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
12911
          # no search path for DLLs.
 
12912
          hardcode_libdir_flag_spec_CXX=' '
 
12913
          allow_undefined_flag_CXX=unsupported
 
12914
          always_export_symbols_CXX=yes
 
12915
          file_list_spec_CXX='@'
 
12916
          # Tell ltmain to make .lib files, not .a files.
 
12917
          libext=lib
 
12918
          # Tell ltmain to make .dll files, not .so files.
 
12919
          shrext_cmds=".dll"
 
12920
          # FIXME: Setting linknames here is a bad hack.
 
12921
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
12922
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12923
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
12924
            else
 
12925
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
12926
            fi~
 
12927
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
12928
            linknames='
 
12929
          # The linker will not automatically build a static lib if we build a DLL.
 
12930
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
12931
          enable_shared_with_static_runtimes_CXX=yes
 
12932
          # Don't use ranlib
 
12933
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
12934
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
12935
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
12936
            case $lt_outputfile in
 
12937
              *.exe|*.EXE) ;;
 
12938
              *)
 
12939
                lt_outputfile="$lt_outputfile.exe"
 
12940
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
12941
                ;;
 
12942
            esac~
 
12943
            func_to_tool_file "$lt_outputfile"~
 
12944
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
12945
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
12946
              $RM "$lt_outputfile.manifest";
 
12947
            fi'
 
12948
          ;;
 
12949
        *)
 
12950
          # g++
 
12951
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12952
          # as there is no search path for DLLs.
 
12953
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12954
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
12955
          allow_undefined_flag_CXX=unsupported
 
12956
          always_export_symbols_CXX=no
 
12957
          enable_shared_with_static_runtimes_CXX=yes
 
12958
 
 
12959
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12960
            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'
 
12961
            # If the export-symbols file already is a .def file (1st line
 
12962
            # is EXPORTS), use it as is; otherwise, prepend...
 
12963
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12964
              cp $export_symbols $output_objdir/$soname.def;
 
12965
            else
 
12966
              echo EXPORTS > $output_objdir/$soname.def;
 
12967
              cat $export_symbols >> $output_objdir/$soname.def;
 
12968
            fi~
 
12969
            $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'
 
12970
          else
 
12971
            ld_shlibs_CXX=no
 
12972
          fi
 
12973
          ;;
 
12974
        esac
 
12975
        ;;
 
12976
      darwin* | rhapsody*)
 
12977
 
 
12978
 
 
12979
  archive_cmds_need_lc_CXX=no
 
12980
  hardcode_direct_CXX=no
 
12981
  hardcode_automatic_CXX=yes
 
12982
  hardcode_shlibpath_var_CXX=unsupported
 
12983
  if test "$lt_cv_ld_force_load" = "yes"; then
 
12984
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
12985
 
 
12986
  else
 
12987
    whole_archive_flag_spec_CXX=''
 
12988
  fi
 
12989
  link_all_deplibs_CXX=yes
 
12990
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12991
  case $cc_basename in
 
12992
     ifort*) _lt_dar_can_shared=yes ;;
 
12993
     *) _lt_dar_can_shared=$GCC ;;
 
12994
  esac
 
12995
  if test "$_lt_dar_can_shared" = "yes"; then
 
12996
    output_verbose_link_cmd=func_echo_all
 
12997
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
12998
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12999
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
13000
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
13001
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13002
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
13003
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
13004
    fi
 
13005
 
 
13006
  else
 
13007
  ld_shlibs_CXX=no
 
13008
  fi
 
13009
 
 
13010
        ;;
 
13011
 
 
13012
      dgux*)
 
13013
        case $cc_basename in
 
13014
          ec++*)
 
13015
            # FIXME: insert proper C++ library support
 
13016
            ld_shlibs_CXX=no
 
13017
            ;;
 
13018
          ghcx*)
 
13019
            # Green Hills C++ Compiler
 
13020
            # FIXME: insert proper C++ library support
 
13021
            ld_shlibs_CXX=no
 
13022
            ;;
 
13023
          *)
 
13024
            # FIXME: insert proper C++ library support
 
13025
            ld_shlibs_CXX=no
 
13026
            ;;
 
13027
        esac
 
13028
        ;;
 
13029
 
 
13030
      freebsd2.*)
 
13031
        # C++ shared libraries reported to be fairly broken before
 
13032
        # switch to ELF
 
13033
        ld_shlibs_CXX=no
 
13034
        ;;
 
13035
 
 
13036
      freebsd-elf*)
 
13037
        archive_cmds_need_lc_CXX=no
 
13038
        ;;
 
13039
 
 
13040
      freebsd* | dragonfly*)
 
13041
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13042
        # conventions
 
13043
        ld_shlibs_CXX=yes
 
13044
        ;;
 
13045
 
 
13046
      gnu*)
 
13047
        ;;
 
13048
 
 
13049
      haiku*)
 
13050
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13051
        link_all_deplibs_CXX=yes
 
13052
        ;;
 
13053
 
 
13054
      hpux9*)
 
13055
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13056
        hardcode_libdir_separator_CXX=:
 
13057
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13058
        hardcode_direct_CXX=yes
 
13059
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13060
                                             # but as the default
 
13061
                                             # location of the library.
 
13062
 
 
13063
        case $cc_basename in
 
13064
          CC*)
 
13065
            # FIXME: insert proper C++ library support
 
13066
            ld_shlibs_CXX=no
 
13067
            ;;
 
13068
          aCC*)
 
13069
            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'
 
13070
            # Commands to make compiler produce verbose output that lists
 
13071
            # what "hidden" libraries, object files and flags are used when
 
13072
            # linking a shared library.
 
13073
            #
 
13074
            # There doesn't appear to be a way to prevent this compiler from
 
13075
            # explicitly linking system object files so we need to strip them
 
13076
            # from the output so that they don't get included in the library
 
13077
            # dependencies.
 
13078
            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; func_echo_all "$list"'
 
13079
            ;;
 
13080
          *)
 
13081
            if test "$GXX" = yes; then
 
13082
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
 
13083
            else
 
13084
              # FIXME: insert proper C++ library support
 
13085
              ld_shlibs_CXX=no
 
13086
            fi
 
13087
            ;;
 
13088
        esac
 
13089
        ;;
 
13090
 
 
13091
      hpux10*|hpux11*)
 
13092
        if test $with_gnu_ld = no; then
 
13093
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13094
          hardcode_libdir_separator_CXX=:
 
13095
 
 
13096
          case $host_cpu in
 
13097
            hppa*64*|ia64*)
 
13098
              ;;
 
13099
            *)
 
13100
              export_dynamic_flag_spec_CXX='${wl}-E'
 
13101
              ;;
 
13102
          esac
 
13103
        fi
 
13104
        case $host_cpu in
 
13105
          hppa*64*|ia64*)
 
13106
            hardcode_direct_CXX=no
 
13107
            hardcode_shlibpath_var_CXX=no
 
13108
            ;;
 
13109
          *)
 
13110
            hardcode_direct_CXX=yes
 
13111
            hardcode_direct_absolute_CXX=yes
 
13112
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13113
                                                 # but as the default
 
13114
                                                 # location of the library.
 
13115
            ;;
 
13116
        esac
 
13117
 
 
13118
        case $cc_basename in
 
13119
          CC*)
 
13120
            # FIXME: insert proper C++ library support
 
13121
            ld_shlibs_CXX=no
 
13122
            ;;
 
13123
          aCC*)
 
13124
            case $host_cpu in
 
13125
              hppa*64*)
 
13126
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13127
                ;;
 
13128
              ia64*)
 
13129
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13130
                ;;
 
13131
              *)
 
13132
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13133
                ;;
 
13134
            esac
 
13135
            # Commands to make compiler produce verbose output that lists
 
13136
            # what "hidden" libraries, object files and flags are used when
 
13137
            # linking a shared library.
 
13138
            #
 
13139
            # There doesn't appear to be a way to prevent this compiler from
 
13140
            # explicitly linking system object files so we need to strip them
 
13141
            # from the output so that they don't get included in the library
 
13142
            # dependencies.
 
13143
            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; func_echo_all "$list"'
 
13144
            ;;
 
13145
          *)
 
13146
            if test "$GXX" = yes; then
 
13147
              if test $with_gnu_ld = no; then
 
13148
                case $host_cpu in
 
13149
                  hppa*64*)
 
13150
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13151
                    ;;
 
13152
                  ia64*)
 
13153
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13154
                    ;;
 
13155
                  *)
 
13156
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13157
                    ;;
 
13158
                esac
 
13159
              fi
 
13160
            else
 
13161
              # FIXME: insert proper C++ library support
 
13162
              ld_shlibs_CXX=no
 
13163
            fi
 
13164
            ;;
 
13165
        esac
 
13166
        ;;
 
13167
 
 
13168
      interix[3-9]*)
 
13169
        hardcode_direct_CXX=no
 
13170
        hardcode_shlibpath_var_CXX=no
 
13171
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13172
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13173
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13174
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13175
        # default) and relocated if they conflict, which is a slow very memory
 
13176
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
13177
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13178
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13179
        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'
 
13180
        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'
 
13181
        ;;
 
13182
      irix5* | irix6*)
 
13183
        case $cc_basename in
 
13184
          CC*)
 
13185
            # SGI C++
 
13186
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13187
 
 
13188
            # Archives containing C++ object files must be created using
 
13189
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13190
            # necessary to make sure instantiated templates are included
 
13191
            # in the archive.
 
13192
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13193
            ;;
 
13194
          *)
 
13195
            if test "$GXX" = yes; then
 
13196
              if test "$with_gnu_ld" = no; then
 
13197
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13198
              else
 
13199
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
13200
              fi
 
13201
            fi
 
13202
            link_all_deplibs_CXX=yes
 
13203
            ;;
 
13204
        esac
 
13205
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13206
        hardcode_libdir_separator_CXX=:
 
13207
        inherit_rpath_CXX=yes
 
13208
        ;;
 
13209
 
 
13210
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
13211
        case $cc_basename in
 
13212
          KCC*)
 
13213
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13214
 
 
13215
            # KCC will only create a shared library if the output file
 
13216
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13217
            # to its proper name (with version) after linking.
 
13218
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13219
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
13220
            # Commands to make compiler produce verbose output that lists
 
13221
            # what "hidden" libraries, object files and flags are used when
 
13222
            # linking a shared library.
 
13223
            #
 
13224
            # There doesn't appear to be a way to prevent this compiler from
 
13225
            # explicitly linking system object files so we need to strip them
 
13226
            # from the output so that they don't get included in the library
 
13227
            # dependencies.
 
13228
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13229
 
 
13230
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13231
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13232
 
 
13233
            # Archives containing C++ object files must be created using
 
13234
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13235
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13236
            ;;
 
13237
          icpc* | ecpc* )
 
13238
            # Intel C++
 
13239
            with_gnu_ld=yes
 
13240
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13241
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13242
            # earlier do not add the objects themselves.
 
13243
            case `$CC -V 2>&1` in
 
13244
              *"Version 7."*)
 
13245
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13246
                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'
 
13247
                ;;
 
13248
              *)  # Version 8.0 or newer
 
13249
                tmp_idyn=
 
13250
                case $host_cpu in
 
13251
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13252
                esac
 
13253
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13254
                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'
 
13255
                ;;
 
13256
            esac
 
13257
            archive_cmds_need_lc_CXX=no
 
13258
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13259
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13260
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13261
            ;;
 
13262
          pgCC* | pgcpp*)
 
13263
            # Portland Group C++ compiler
 
13264
            case `$CC -V` in
 
13265
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
13266
              prelink_cmds_CXX='tpldir=Template.dir~
 
13267
                rm -rf $tpldir~
 
13268
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13269
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
13270
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13271
                rm -rf $tpldir~
 
13272
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13273
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
13274
                $RANLIB $oldlib'
 
13275
              archive_cmds_CXX='tpldir=Template.dir~
 
13276
                rm -rf $tpldir~
 
13277
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13278
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13279
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13280
                rm -rf $tpldir~
 
13281
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13282
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13283
              ;;
 
13284
            *) # Version 6 and above use weak symbols
 
13285
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13286
              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'
 
13287
              ;;
 
13288
            esac
 
13289
 
 
13290
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13291
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13292
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13293
            ;;
 
13294
          cxx*)
 
13295
            # Compaq C++
 
13296
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13297
            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'
 
13298
 
 
13299
            runpath_var=LD_RUN_PATH
 
13300
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13301
            hardcode_libdir_separator_CXX=:
 
13302
 
 
13303
            # Commands to make compiler produce verbose output that lists
 
13304
            # what "hidden" libraries, object files and flags are used when
 
13305
            # linking a shared library.
 
13306
            #
 
13307
            # There doesn't appear to be a way to prevent this compiler from
 
13308
            # explicitly linking system object files so we need to strip them
 
13309
            # from the output so that they don't get included in the library
 
13310
            # dependencies.
 
13311
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
13312
            ;;
 
13313
          xl* | mpixl* | bgxl*)
 
13314
            # IBM XL 8.0 on PPC, with GNU ld
 
13315
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13316
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13317
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13318
            if test "x$supports_anon_versioning" = xyes; then
 
13319
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13320
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13321
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13322
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13323
            fi
 
13324
            ;;
 
13325
          *)
 
13326
            case `$CC -V 2>&1 | sed 5q` in
 
13327
            *Sun\ C*)
 
13328
              # Sun C++ 5.9
 
13329
              no_undefined_flag_CXX=' -zdefs'
 
13330
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13331
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
13332
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13333
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13334
              compiler_needs_object_CXX=yes
 
13335
 
 
13336
              # Not sure whether something based on
 
13337
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13338
              # would be better.
 
13339
              output_verbose_link_cmd='func_echo_all'
 
13340
 
 
13341
              # Archives containing C++ object files must be created using
 
13342
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13343
              # necessary to make sure instantiated templates are included
 
13344
              # in the archive.
 
13345
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13346
              ;;
 
13347
            esac
 
13348
            ;;
 
13349
        esac
 
13350
        ;;
 
13351
 
 
13352
      lynxos*)
 
13353
        # FIXME: insert proper C++ library support
 
13354
        ld_shlibs_CXX=no
 
13355
        ;;
 
13356
 
 
13357
      m88k*)
 
13358
        # FIXME: insert proper C++ library support
 
13359
        ld_shlibs_CXX=no
 
13360
        ;;
 
13361
 
 
13362
      mvs*)
 
13363
        case $cc_basename in
 
13364
          cxx*)
 
13365
            # FIXME: insert proper C++ library support
 
13366
            ld_shlibs_CXX=no
 
13367
            ;;
 
13368
          *)
 
13369
            # FIXME: insert proper C++ library support
 
13370
            ld_shlibs_CXX=no
 
13371
            ;;
 
13372
        esac
 
13373
        ;;
 
13374
 
 
13375
      netbsd*)
 
13376
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13377
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13378
          wlarc=
 
13379
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13380
          hardcode_direct_CXX=yes
 
13381
          hardcode_shlibpath_var_CXX=no
 
13382
        fi
 
13383
        # Workaround some broken pre-1.5 toolchains
 
13384
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13385
        ;;
 
13386
 
 
13387
      *nto* | *qnx*)
 
13388
        ld_shlibs_CXX=yes
 
13389
        ;;
 
13390
 
 
13391
      openbsd2*)
 
13392
        # C++ shared libraries are fairly broken
 
13393
        ld_shlibs_CXX=no
 
13394
        ;;
 
13395
 
 
13396
      openbsd*)
 
13397
        if test -f /usr/libexec/ld.so; then
 
13398
          hardcode_direct_CXX=yes
 
13399
          hardcode_shlibpath_var_CXX=no
 
13400
          hardcode_direct_absolute_CXX=yes
 
13401
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13402
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13403
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13404
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13405
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13406
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13407
          fi
 
13408
          output_verbose_link_cmd=func_echo_all
 
13409
        else
 
13410
          ld_shlibs_CXX=no
 
13411
        fi
 
13412
        ;;
 
13413
 
 
13414
      osf3* | osf4* | osf5*)
 
13415
        case $cc_basename in
 
13416
          KCC*)
 
13417
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13418
 
 
13419
            # KCC will only create a shared library if the output file
 
13420
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13421
            # to its proper name (with version) after linking.
 
13422
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13423
 
 
13424
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13425
            hardcode_libdir_separator_CXX=:
 
13426
 
 
13427
            # Archives containing C++ object files must be created using
 
13428
            # the KAI C++ compiler.
 
13429
            case $host in
 
13430
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13431
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13432
            esac
 
13433
            ;;
 
13434
          RCC*)
 
13435
            # Rational C++ 2.4.1
 
13436
            # FIXME: insert proper C++ library support
 
13437
            ld_shlibs_CXX=no
 
13438
            ;;
 
13439
          cxx*)
 
13440
            case $host in
 
13441
              osf3*)
 
13442
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13443
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13444
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13445
                ;;
 
13446
              *)
 
13447
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13448
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13449
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13450
                  echo "-hidden">> $lib.exp~
 
13451
                  $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~
 
13452
                  $RM $lib.exp'
 
13453
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13454
                ;;
 
13455
            esac
 
13456
 
 
13457
            hardcode_libdir_separator_CXX=:
 
13458
 
 
13459
            # Commands to make compiler produce verbose output that lists
 
13460
            # what "hidden" libraries, object files and flags are used when
 
13461
            # linking a shared library.
 
13462
            #
 
13463
            # There doesn't appear to be a way to prevent this compiler from
 
13464
            # explicitly linking system object files so we need to strip them
 
13465
            # from the output so that they don't get included in the library
 
13466
            # dependencies.
 
13467
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13468
            ;;
 
13469
          *)
 
13470
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13471
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13472
              case $host in
 
13473
                osf3*)
 
13474
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13475
                  ;;
 
13476
                *)
 
13477
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13478
                  ;;
 
13479
              esac
 
13480
 
 
13481
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13482
              hardcode_libdir_separator_CXX=:
 
13483
 
 
13484
              # Commands to make compiler produce verbose output that lists
 
13485
              # what "hidden" libraries, object files and flags are used when
 
13486
              # linking a shared library.
 
13487
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13488
 
 
13489
            else
 
13490
              # FIXME: insert proper C++ library support
 
13491
              ld_shlibs_CXX=no
 
13492
            fi
 
13493
            ;;
 
13494
        esac
 
13495
        ;;
 
13496
 
 
13497
      psos*)
 
13498
        # FIXME: insert proper C++ library support
 
13499
        ld_shlibs_CXX=no
 
13500
        ;;
 
13501
 
 
13502
      sunos4*)
 
13503
        case $cc_basename in
 
13504
          CC*)
 
13505
            # Sun C++ 4.x
 
13506
            # FIXME: insert proper C++ library support
 
13507
            ld_shlibs_CXX=no
 
13508
            ;;
 
13509
          lcc*)
 
13510
            # Lucid
 
13511
            # FIXME: insert proper C++ library support
 
13512
            ld_shlibs_CXX=no
 
13513
            ;;
 
13514
          *)
 
13515
            # FIXME: insert proper C++ library support
 
13516
            ld_shlibs_CXX=no
 
13517
            ;;
 
13518
        esac
 
13519
        ;;
 
13520
 
 
13521
      solaris*)
 
13522
        case $cc_basename in
 
13523
          CC* | sunCC*)
 
13524
            # Sun C++ 4.2, 5.x and Centerline C++
 
13525
            archive_cmds_need_lc_CXX=yes
 
13526
            no_undefined_flag_CXX=' -zdefs'
 
13527
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13528
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13529
              $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'
 
13530
 
 
13531
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13532
            hardcode_shlibpath_var_CXX=no
 
13533
            case $host_os in
 
13534
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13535
              *)
 
13536
                # The compiler driver will combine and reorder linker options,
 
13537
                # but understands `-z linker_flag'.
 
13538
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13539
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13540
                ;;
 
13541
            esac
 
13542
            link_all_deplibs_CXX=yes
 
13543
 
 
13544
            output_verbose_link_cmd='func_echo_all'
 
13545
 
 
13546
            # Archives containing C++ object files must be created using
 
13547
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13548
            # necessary to make sure instantiated templates are included
 
13549
            # in the archive.
 
13550
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13551
            ;;
 
13552
          gcx*)
 
13553
            # Green Hills C++ Compiler
 
13554
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13555
 
 
13556
            # The C++ compiler must be used to create the archive.
 
13557
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13558
            ;;
 
13559
          *)
 
13560
            # GNU C++ compiler with Solaris linker
 
13561
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13562
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13563
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13564
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13565
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13566
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13567
 
 
13568
                # Commands to make compiler produce verbose output that lists
 
13569
                # what "hidden" libraries, object files and flags are used when
 
13570
                # linking a shared library.
 
13571
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13572
              else
 
13573
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13574
                # platform.
 
13575
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13576
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13577
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13578
 
 
13579
                # Commands to make compiler produce verbose output that lists
 
13580
                # what "hidden" libraries, object files and flags are used when
 
13581
                # linking a shared library.
 
13582
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13583
              fi
 
13584
 
 
13585
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13586
              case $host_os in
 
13587
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13588
                *)
 
13589
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13590
                  ;;
 
13591
              esac
 
13592
            fi
 
13593
            ;;
 
13594
        esac
 
13595
        ;;
 
13596
 
 
13597
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13598
      no_undefined_flag_CXX='${wl}-z,text'
 
13599
      archive_cmds_need_lc_CXX=no
 
13600
      hardcode_shlibpath_var_CXX=no
 
13601
      runpath_var='LD_RUN_PATH'
 
13602
 
 
13603
      case $cc_basename in
 
13604
        CC*)
 
13605
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13606
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13607
          ;;
 
13608
        *)
 
13609
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13610
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13611
          ;;
 
13612
      esac
 
13613
      ;;
 
13614
 
 
13615
      sysv5* | sco3.2v5* | sco5v6*)
 
13616
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13617
        # link with -lc, and that would cause any symbols used from libc to
 
13618
        # always be unresolved, which means just about no library would
 
13619
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13620
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13621
        # as -z defs.
 
13622
        no_undefined_flag_CXX='${wl}-z,text'
 
13623
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13624
        archive_cmds_need_lc_CXX=no
 
13625
        hardcode_shlibpath_var_CXX=no
 
13626
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13627
        hardcode_libdir_separator_CXX=':'
 
13628
        link_all_deplibs_CXX=yes
 
13629
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13630
        runpath_var='LD_RUN_PATH'
 
13631
 
 
13632
        case $cc_basename in
 
13633
          CC*)
 
13634
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13635
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13636
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13637
              '"$old_archive_cmds_CXX"
 
13638
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13639
              '"$reload_cmds_CXX"
 
13640
            ;;
 
13641
          *)
 
13642
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13643
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13644
            ;;
 
13645
        esac
 
13646
      ;;
 
13647
 
 
13648
      tandem*)
 
13649
        case $cc_basename in
 
13650
          NCC*)
 
13651
            # NonStop-UX NCC 3.20
 
13652
            # FIXME: insert proper C++ library support
 
13653
            ld_shlibs_CXX=no
 
13654
            ;;
 
13655
          *)
 
13656
            # FIXME: insert proper C++ library support
 
13657
            ld_shlibs_CXX=no
 
13658
            ;;
 
13659
        esac
 
13660
        ;;
 
13661
 
 
13662
      vxworks*)
 
13663
        # FIXME: insert proper C++ library support
 
13664
        ld_shlibs_CXX=no
 
13665
        ;;
 
13666
 
 
13667
      *)
 
13668
        # FIXME: insert proper C++ library support
 
13669
        ld_shlibs_CXX=no
 
13670
        ;;
 
13671
    esac
 
13672
 
 
13673
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13674
$as_echo "$ld_shlibs_CXX" >&6; }
 
13675
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13676
 
 
13677
    GCC_CXX="$GXX"
 
13678
    LD_CXX="$LD"
 
13679
 
 
13680
    ## CAVEAT EMPTOR:
 
13681
    ## There is no encapsulation within the following macros, do not change
 
13682
    ## the running order or otherwise move them around unless you know exactly
 
13683
    ## what you are doing...
 
13684
    # Dependencies to place before and after the object being linked:
 
13685
predep_objects_CXX=
 
13686
postdep_objects_CXX=
 
13687
predeps_CXX=
 
13688
postdeps_CXX=
 
13689
compiler_lib_search_path_CXX=
 
13690
 
 
13691
cat > conftest.$ac_ext <<_LT_EOF
 
13692
class Foo
 
13693
{
 
13694
public:
 
13695
  Foo (void) { a = 0; }
 
13696
private:
 
13697
  int a;
 
13698
};
 
13699
_LT_EOF
 
13700
 
 
13701
 
 
13702
_lt_libdeps_save_CFLAGS=$CFLAGS
 
13703
case "$CC $CFLAGS " in #(
 
13704
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
13705
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
13706
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
13707
esac
 
13708
 
 
13709
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13710
  (eval $ac_compile) 2>&5
 
13711
  ac_status=$?
 
13712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13713
  test $ac_status = 0; }; then
 
13714
  # Parse the compiler output and extract the necessary
 
13715
  # objects, libraries and library flags.
 
13716
 
 
13717
  # Sentinel used to keep track of whether or not we are before
 
13718
  # the conftest object file.
 
13719
  pre_test_object_deps_done=no
 
13720
 
 
13721
  for p in `eval "$output_verbose_link_cmd"`; do
 
13722
    case ${prev}${p} in
 
13723
 
 
13724
    -L* | -R* | -l*)
 
13725
       # Some compilers place space between "-{L,R}" and the path.
 
13726
       # Remove the space.
 
13727
       if test $p = "-L" ||
 
13728
          test $p = "-R"; then
 
13729
         prev=$p
 
13730
         continue
 
13731
       fi
 
13732
 
 
13733
       # Expand the sysroot to ease extracting the directories later.
 
13734
       if test -z "$prev"; then
 
13735
         case $p in
 
13736
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
13737
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
13738
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
13739
         esac
 
13740
       fi
 
13741
       case $p in
 
13742
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
13743
       esac
 
13744
       if test "$pre_test_object_deps_done" = no; then
 
13745
         case ${prev} in
 
13746
         -L | -R)
 
13747
           # Internal compiler library paths should come after those
 
13748
           # provided the user.  The postdeps already come after the
 
13749
           # user supplied libs so there is no need to process them.
 
13750
           if test -z "$compiler_lib_search_path_CXX"; then
 
13751
             compiler_lib_search_path_CXX="${prev}${p}"
 
13752
           else
 
13753
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13754
           fi
 
13755
           ;;
 
13756
         # The "-l" case would never come before the object being
 
13757
         # linked, so don't bother handling this case.
 
13758
         esac
 
13759
       else
 
13760
         if test -z "$postdeps_CXX"; then
 
13761
           postdeps_CXX="${prev}${p}"
 
13762
         else
 
13763
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13764
         fi
 
13765
       fi
 
13766
       prev=
 
13767
       ;;
 
13768
 
 
13769
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
13770
    *.$objext)
 
13771
       # This assumes that the test object file only shows up
 
13772
       # once in the compiler output.
 
13773
       if test "$p" = "conftest.$objext"; then
 
13774
         pre_test_object_deps_done=yes
 
13775
         continue
 
13776
       fi
 
13777
 
 
13778
       if test "$pre_test_object_deps_done" = no; then
 
13779
         if test -z "$predep_objects_CXX"; then
 
13780
           predep_objects_CXX="$p"
 
13781
         else
 
13782
           predep_objects_CXX="$predep_objects_CXX $p"
 
13783
         fi
 
13784
       else
 
13785
         if test -z "$postdep_objects_CXX"; then
 
13786
           postdep_objects_CXX="$p"
 
13787
         else
 
13788
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13789
         fi
 
13790
       fi
 
13791
       ;;
 
13792
 
 
13793
    *) ;; # Ignore the rest.
 
13794
 
 
13795
    esac
 
13796
  done
 
13797
 
 
13798
  # Clean up.
 
13799
  rm -f a.out a.exe
 
13800
else
 
13801
  echo "libtool.m4: error: problem compiling CXX test program"
 
13802
fi
 
13803
 
 
13804
$RM -f confest.$objext
 
13805
CFLAGS=$_lt_libdeps_save_CFLAGS
 
13806
 
 
13807
# PORTME: override above test on systems where it is broken
 
13808
case $host_os in
 
13809
interix[3-9]*)
 
13810
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
13811
  # hack all around it, let's just trust "g++" to DTRT.
 
13812
  predep_objects_CXX=
 
13813
  postdep_objects_CXX=
 
13814
  postdeps_CXX=
 
13815
  ;;
 
13816
 
 
13817
linux*)
 
13818
  case `$CC -V 2>&1 | sed 5q` in
 
13819
  *Sun\ C*)
 
13820
    # Sun C++ 5.9
 
13821
 
 
13822
    # The more standards-conforming stlport4 library is
 
13823
    # incompatible with the Cstd library. Avoid specifying
 
13824
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13825
    # -library=stlport4 depends on it.
 
13826
    case " $CXX $CXXFLAGS " in
 
13827
    *" -library=stlport4 "*)
 
13828
      solaris_use_stlport4=yes
 
13829
      ;;
 
13830
    esac
 
13831
 
 
13832
    if test "$solaris_use_stlport4" != yes; then
 
13833
      postdeps_CXX='-library=Cstd -library=Crun'
 
13834
    fi
 
13835
    ;;
 
13836
  esac
 
13837
  ;;
 
13838
 
 
13839
solaris*)
 
13840
  case $cc_basename in
 
13841
  CC* | sunCC*)
 
13842
    # The more standards-conforming stlport4 library is
 
13843
    # incompatible with the Cstd library. Avoid specifying
 
13844
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13845
    # -library=stlport4 depends on it.
 
13846
    case " $CXX $CXXFLAGS " in
 
13847
    *" -library=stlport4 "*)
 
13848
      solaris_use_stlport4=yes
 
13849
      ;;
 
13850
    esac
 
13851
 
 
13852
    # Adding this requires a known-good setup of shared libraries for
 
13853
    # Sun compiler versions before 5.6, else PIC objects from an old
 
13854
    # archive will be linked into the output, leading to subtle bugs.
 
13855
    if test "$solaris_use_stlport4" != yes; then
 
13856
      postdeps_CXX='-library=Cstd -library=Crun'
 
13857
    fi
 
13858
    ;;
 
13859
  esac
 
13860
  ;;
 
13861
esac
 
13862
 
 
13863
 
 
13864
case " $postdeps_CXX " in
 
13865
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13866
esac
 
13867
 compiler_lib_search_dirs_CXX=
 
13868
if test -n "${compiler_lib_search_path_CXX}"; then
 
13869
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13870
fi
 
13871
 
 
13872
 
 
13873
 
 
13874
 
 
13875
 
 
13876
 
 
13877
 
 
13878
 
 
13879
 
 
13880
 
 
13881
 
 
13882
 
 
13883
 
 
13884
 
 
13885
 
 
13886
 
 
13887
 
 
13888
 
 
13889
 
 
13890
 
 
13891
 
 
13892
 
 
13893
 
 
13894
 
 
13895
 
 
13896
 
 
13897
 
 
13898
 
 
13899
 
 
13900
 
 
13901
 
 
13902
    lt_prog_compiler_wl_CXX=
 
13903
lt_prog_compiler_pic_CXX=
 
13904
lt_prog_compiler_static_CXX=
 
13905
 
 
13906
 
 
13907
  # C++ specific cases for pic, static, wl, etc.
 
13908
  if test "$GXX" = yes; then
 
13909
    lt_prog_compiler_wl_CXX='-Wl,'
 
13910
    lt_prog_compiler_static_CXX='-static'
 
13911
 
 
13912
    case $host_os in
 
13913
    aix*)
 
13914
      # All AIX code is PIC.
 
13915
      if test "$host_cpu" = ia64; then
 
13916
        # AIX 5 now supports IA64 processor
 
13917
        lt_prog_compiler_static_CXX='-Bstatic'
 
13918
      fi
 
13919
      ;;
 
13920
 
 
13921
    amigaos*)
 
13922
      case $host_cpu in
 
13923
      powerpc)
 
13924
            # see comment about AmigaOS4 .so support
 
13925
            lt_prog_compiler_pic_CXX='-fPIC'
 
13926
        ;;
 
13927
      m68k)
 
13928
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13929
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13930
            # like `-m68040'.
 
13931
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13932
        ;;
 
13933
      esac
 
13934
      ;;
 
13935
 
 
13936
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13937
      # PIC is the default for these OSes.
 
13938
      ;;
 
13939
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13940
      # This hack is so that the source file can tell whether it is being
 
13941
      # built for inclusion in a dll (and should export symbols for example).
 
13942
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13943
      # (--disable-auto-import) libraries
 
13944
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13945
      ;;
 
13946
    darwin* | rhapsody*)
 
13947
      # PIC is the default on this platform
 
13948
      # Common symbols not allowed in MH_DYLIB files
 
13949
      lt_prog_compiler_pic_CXX='-fno-common'
 
13950
      ;;
 
13951
    *djgpp*)
 
13952
      # DJGPP does not support shared libraries at all
 
13953
      lt_prog_compiler_pic_CXX=
 
13954
      ;;
 
13955
    haiku*)
 
13956
      # PIC is the default for Haiku.
 
13957
      # The "-static" flag exists, but is broken.
 
13958
      lt_prog_compiler_static_CXX=
 
13959
      ;;
 
13960
    interix[3-9]*)
 
13961
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13962
      # Instead, we relocate shared libraries at runtime.
 
13963
      ;;
 
13964
    sysv4*MP*)
 
13965
      if test -d /usr/nec; then
 
13966
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13967
      fi
 
13968
      ;;
 
13969
    hpux*)
 
13970
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13971
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13972
      # sets the default TLS model and affects inlining.
 
13973
      case $host_cpu in
 
13974
      hppa*64*)
 
13975
        ;;
 
13976
      *)
 
13977
        lt_prog_compiler_pic_CXX='-fPIC'
 
13978
        ;;
 
13979
      esac
 
13980
      ;;
 
13981
    *qnx* | *nto*)
 
13982
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13983
      # it will coredump.
 
13984
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13985
      ;;
 
13986
    *)
 
13987
      lt_prog_compiler_pic_CXX='-fPIC'
 
13988
      ;;
 
13989
    esac
 
13990
  else
 
13991
    case $host_os in
 
13992
      aix[4-9]*)
 
13993
        # All AIX code is PIC.
 
13994
        if test "$host_cpu" = ia64; then
 
13995
          # AIX 5 now supports IA64 processor
 
13996
          lt_prog_compiler_static_CXX='-Bstatic'
 
13997
        else
 
13998
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13999
        fi
 
14000
        ;;
 
14001
      chorus*)
 
14002
        case $cc_basename in
 
14003
        cxch68*)
 
14004
          # Green Hills C++ Compiler
 
14005
          # _LT_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"
 
14006
          ;;
 
14007
        esac
 
14008
        ;;
 
14009
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14010
        # This hack is so that the source file can tell whether it is being
 
14011
        # built for inclusion in a dll (and should export symbols for example).
 
14012
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14013
        ;;
 
14014
      dgux*)
 
14015
        case $cc_basename in
 
14016
          ec++*)
 
14017
            lt_prog_compiler_pic_CXX='-KPIC'
 
14018
            ;;
 
14019
          ghcx*)
 
14020
            # Green Hills C++ Compiler
 
14021
            lt_prog_compiler_pic_CXX='-pic'
 
14022
            ;;
 
14023
          *)
 
14024
            ;;
 
14025
        esac
 
14026
        ;;
 
14027
      freebsd* | dragonfly*)
 
14028
        # FreeBSD uses GNU C++
 
14029
        ;;
 
14030
      hpux9* | hpux10* | hpux11*)
 
14031
        case $cc_basename in
 
14032
          CC*)
 
14033
            lt_prog_compiler_wl_CXX='-Wl,'
 
14034
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14035
            if test "$host_cpu" != ia64; then
 
14036
              lt_prog_compiler_pic_CXX='+Z'
 
14037
            fi
 
14038
            ;;
 
14039
          aCC*)
 
14040
            lt_prog_compiler_wl_CXX='-Wl,'
 
14041
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14042
            case $host_cpu in
 
14043
            hppa*64*|ia64*)
 
14044
              # +Z the default
 
14045
              ;;
 
14046
            *)
 
14047
              lt_prog_compiler_pic_CXX='+Z'
 
14048
              ;;
 
14049
            esac
 
14050
            ;;
 
14051
          *)
 
14052
            ;;
 
14053
        esac
 
14054
        ;;
 
14055
      interix*)
 
14056
        # This is c89, which is MS Visual C++ (no shared libs)
 
14057
        # Anyone wants to do a port?
 
14058
        ;;
 
14059
      irix5* | irix6* | nonstopux*)
 
14060
        case $cc_basename in
 
14061
          CC*)
 
14062
            lt_prog_compiler_wl_CXX='-Wl,'
 
14063
            lt_prog_compiler_static_CXX='-non_shared'
 
14064
            # CC pic flag -KPIC is the default.
 
14065
            ;;
 
14066
          *)
 
14067
            ;;
 
14068
        esac
 
14069
        ;;
 
14070
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14071
        case $cc_basename in
 
14072
          KCC*)
 
14073
            # KAI C++ Compiler
 
14074
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14075
            lt_prog_compiler_pic_CXX='-fPIC'
 
14076
            ;;
 
14077
          ecpc* )
 
14078
            # old Intel C++ for x86_64 which still supported -KPIC.
 
14079
            lt_prog_compiler_wl_CXX='-Wl,'
 
14080
            lt_prog_compiler_pic_CXX='-KPIC'
 
14081
            lt_prog_compiler_static_CXX='-static'
 
14082
            ;;
 
14083
          icpc* )
 
14084
            # Intel C++, used to be incompatible with GCC.
 
14085
            # ICC 10 doesn't accept -KPIC any more.
 
14086
            lt_prog_compiler_wl_CXX='-Wl,'
 
14087
            lt_prog_compiler_pic_CXX='-fPIC'
 
14088
            lt_prog_compiler_static_CXX='-static'
 
14089
            ;;
 
14090
          pgCC* | pgcpp*)
 
14091
            # Portland Group C++ compiler
 
14092
            lt_prog_compiler_wl_CXX='-Wl,'
 
14093
            lt_prog_compiler_pic_CXX='-fpic'
 
14094
            lt_prog_compiler_static_CXX='-Bstatic'
 
14095
            ;;
 
14096
          cxx*)
 
14097
            # Compaq C++
 
14098
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14099
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14100
            lt_prog_compiler_pic_CXX=
 
14101
            lt_prog_compiler_static_CXX='-non_shared'
 
14102
            ;;
 
14103
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
14104
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
14105
            lt_prog_compiler_wl_CXX='-Wl,'
 
14106
            lt_prog_compiler_pic_CXX='-qpic'
 
14107
            lt_prog_compiler_static_CXX='-qstaticlink'
 
14108
            ;;
 
14109
          *)
 
14110
            case `$CC -V 2>&1 | sed 5q` in
 
14111
            *Sun\ C*)
 
14112
              # Sun C++ 5.9
 
14113
              lt_prog_compiler_pic_CXX='-KPIC'
 
14114
              lt_prog_compiler_static_CXX='-Bstatic'
 
14115
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
14116
              ;;
 
14117
            esac
 
14118
            ;;
 
14119
        esac
 
14120
        ;;
 
14121
      lynxos*)
 
14122
        ;;
 
14123
      m88k*)
 
14124
        ;;
 
14125
      mvs*)
 
14126
        case $cc_basename in
 
14127
          cxx*)
 
14128
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14129
            ;;
 
14130
          *)
 
14131
            ;;
 
14132
        esac
 
14133
        ;;
 
14134
      netbsd* | netbsdelf*-gnu)
 
14135
        ;;
 
14136
      *qnx* | *nto*)
 
14137
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14138
        # it will coredump.
 
14139
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14140
        ;;
 
14141
      osf3* | osf4* | osf5*)
 
14142
        case $cc_basename in
 
14143
          KCC*)
 
14144
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14145
            ;;
 
14146
          RCC*)
 
14147
            # Rational C++ 2.4.1
 
14148
            lt_prog_compiler_pic_CXX='-pic'
 
14149
            ;;
 
14150
          cxx*)
 
14151
            # Digital/Compaq C++
 
14152
            lt_prog_compiler_wl_CXX='-Wl,'
 
14153
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14154
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14155
            lt_prog_compiler_pic_CXX=
 
14156
            lt_prog_compiler_static_CXX='-non_shared'
 
14157
            ;;
 
14158
          *)
 
14159
            ;;
 
14160
        esac
 
14161
        ;;
 
14162
      psos*)
 
14163
        ;;
 
14164
      solaris*)
 
14165
        case $cc_basename in
 
14166
          CC* | sunCC*)
 
14167
            # Sun C++ 4.2, 5.x and Centerline C++
 
14168
            lt_prog_compiler_pic_CXX='-KPIC'
 
14169
            lt_prog_compiler_static_CXX='-Bstatic'
 
14170
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14171
            ;;
 
14172
          gcx*)
 
14173
            # Green Hills C++ Compiler
 
14174
            lt_prog_compiler_pic_CXX='-PIC'
 
14175
            ;;
 
14176
          *)
 
14177
            ;;
 
14178
        esac
 
14179
        ;;
 
14180
      sunos4*)
 
14181
        case $cc_basename in
 
14182
          CC*)
 
14183
            # Sun C++ 4.x
 
14184
            lt_prog_compiler_pic_CXX='-pic'
 
14185
            lt_prog_compiler_static_CXX='-Bstatic'
 
14186
            ;;
 
14187
          lcc*)
 
14188
            # Lucid
 
14189
            lt_prog_compiler_pic_CXX='-pic'
 
14190
            ;;
 
14191
          *)
 
14192
            ;;
 
14193
        esac
 
14194
        ;;
 
14195
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14196
        case $cc_basename in
 
14197
          CC*)
 
14198
            lt_prog_compiler_wl_CXX='-Wl,'
 
14199
            lt_prog_compiler_pic_CXX='-KPIC'
 
14200
            lt_prog_compiler_static_CXX='-Bstatic'
 
14201
            ;;
 
14202
        esac
 
14203
        ;;
 
14204
      tandem*)
 
14205
        case $cc_basename in
 
14206
          NCC*)
 
14207
            # NonStop-UX NCC 3.20
 
14208
            lt_prog_compiler_pic_CXX='-KPIC'
 
14209
            ;;
 
14210
          *)
 
14211
            ;;
 
14212
        esac
 
14213
        ;;
 
14214
      vxworks*)
 
14215
        ;;
 
14216
      *)
 
14217
        lt_prog_compiler_can_build_shared_CXX=no
 
14218
        ;;
 
14219
    esac
 
14220
  fi
 
14221
 
 
14222
case $host_os in
 
14223
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14224
  *djgpp*)
 
14225
    lt_prog_compiler_pic_CXX=
 
14226
    ;;
 
14227
  *)
 
14228
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14229
    ;;
 
14230
esac
 
14231
 
 
14232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14233
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14234
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
14235
  $as_echo_n "(cached) " >&6
 
14236
else
 
14237
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
14238
fi
 
14239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
14240
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
14241
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
14242
 
 
14243
#
 
14244
# Check to make sure the PIC flag actually works.
 
14245
#
 
14246
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14247
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14248
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14249
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
14250
  $as_echo_n "(cached) " >&6
 
14251
else
 
14252
  lt_cv_prog_compiler_pic_works_CXX=no
 
14253
   ac_outfile=conftest.$ac_objext
 
14254
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14255
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14256
   # Insert the option either (1) after the last *FLAGS variable, or
 
14257
   # (2) before a word containing "conftest.", or (3) at the end.
 
14258
   # Note that $ac_compile itself does not contain backslashes and begins
 
14259
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14260
   # The option is referenced via a variable to avoid confusing sed.
 
14261
   lt_compile=`echo "$ac_compile" | $SED \
 
14262
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14263
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14264
   -e 's:$: $lt_compiler_flag:'`
 
14265
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14266
   (eval "$lt_compile" 2>conftest.err)
 
14267
   ac_status=$?
 
14268
   cat conftest.err >&5
 
14269
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14270
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14271
     # The compiler can only warn and ignore the option if not recognized
 
14272
     # So say no if there are warnings other than the usual output.
 
14273
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14274
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14275
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14276
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14277
     fi
 
14278
   fi
 
14279
   $RM conftest*
 
14280
 
 
14281
fi
 
14282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14283
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14284
 
 
14285
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14286
    case $lt_prog_compiler_pic_CXX in
 
14287
     "" | " "*) ;;
 
14288
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14289
     esac
 
14290
else
 
14291
    lt_prog_compiler_pic_CXX=
 
14292
     lt_prog_compiler_can_build_shared_CXX=no
 
14293
fi
 
14294
 
 
14295
fi
 
14296
 
 
14297
 
 
14298
 
 
14299
 
 
14300
 
 
14301
#
 
14302
# Check to make sure the static flag actually works.
 
14303
#
 
14304
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14306
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14307
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
14308
  $as_echo_n "(cached) " >&6
 
14309
else
 
14310
  lt_cv_prog_compiler_static_works_CXX=no
 
14311
   save_LDFLAGS="$LDFLAGS"
 
14312
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14313
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14314
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14315
     # The linker can only warn and ignore the option if not recognized
 
14316
     # So say no if there are warnings
 
14317
     if test -s conftest.err; then
 
14318
       # Append any errors to the config.log.
 
14319
       cat conftest.err 1>&5
 
14320
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14321
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14322
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14323
         lt_cv_prog_compiler_static_works_CXX=yes
 
14324
       fi
 
14325
     else
 
14326
       lt_cv_prog_compiler_static_works_CXX=yes
 
14327
     fi
 
14328
   fi
 
14329
   $RM -r conftest*
 
14330
   LDFLAGS="$save_LDFLAGS"
 
14331
 
 
14332
fi
 
14333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14334
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14335
 
 
14336
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14337
    :
 
14338
else
 
14339
    lt_prog_compiler_static_CXX=
 
14340
fi
 
14341
 
 
14342
 
 
14343
 
 
14344
 
 
14345
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14346
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14347
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14348
  $as_echo_n "(cached) " >&6
 
14349
else
 
14350
  lt_cv_prog_compiler_c_o_CXX=no
 
14351
   $RM -r conftest 2>/dev/null
 
14352
   mkdir conftest
 
14353
   cd conftest
 
14354
   mkdir out
 
14355
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14356
 
 
14357
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14358
   # Insert the option either (1) after the last *FLAGS variable, or
 
14359
   # (2) before a word containing "conftest.", or (3) at the end.
 
14360
   # Note that $ac_compile itself does not contain backslashes and begins
 
14361
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14362
   lt_compile=`echo "$ac_compile" | $SED \
 
14363
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14364
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14365
   -e 's:$: $lt_compiler_flag:'`
 
14366
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14367
   (eval "$lt_compile" 2>out/conftest.err)
 
14368
   ac_status=$?
 
14369
   cat out/conftest.err >&5
 
14370
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14371
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14372
   then
 
14373
     # The compiler can only warn and ignore the option if not recognized
 
14374
     # So say no if there are warnings
 
14375
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14376
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14377
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14378
       lt_cv_prog_compiler_c_o_CXX=yes
 
14379
     fi
 
14380
   fi
 
14381
   chmod u+w . 2>&5
 
14382
   $RM conftest*
 
14383
   # SGI C++ compiler will create directory out/ii_files/ for
 
14384
   # template instantiation
 
14385
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14386
   $RM out/* && rmdir out
 
14387
   cd ..
 
14388
   $RM -r conftest
 
14389
   $RM conftest*
 
14390
 
 
14391
fi
 
14392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14393
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14394
 
 
14395
 
 
14396
 
 
14397
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14398
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14399
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14400
  $as_echo_n "(cached) " >&6
 
14401
else
 
14402
  lt_cv_prog_compiler_c_o_CXX=no
 
14403
   $RM -r conftest 2>/dev/null
 
14404
   mkdir conftest
 
14405
   cd conftest
 
14406
   mkdir out
 
14407
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14408
 
 
14409
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14410
   # Insert the option either (1) after the last *FLAGS variable, or
 
14411
   # (2) before a word containing "conftest.", or (3) at the end.
 
14412
   # Note that $ac_compile itself does not contain backslashes and begins
 
14413
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14414
   lt_compile=`echo "$ac_compile" | $SED \
 
14415
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14416
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14417
   -e 's:$: $lt_compiler_flag:'`
 
14418
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14419
   (eval "$lt_compile" 2>out/conftest.err)
 
14420
   ac_status=$?
 
14421
   cat out/conftest.err >&5
 
14422
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14423
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14424
   then
 
14425
     # The compiler can only warn and ignore the option if not recognized
 
14426
     # So say no if there are warnings
 
14427
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14428
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14429
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14430
       lt_cv_prog_compiler_c_o_CXX=yes
 
14431
     fi
 
14432
   fi
 
14433
   chmod u+w . 2>&5
 
14434
   $RM conftest*
 
14435
   # SGI C++ compiler will create directory out/ii_files/ for
 
14436
   # template instantiation
 
14437
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14438
   $RM out/* && rmdir out
 
14439
   cd ..
 
14440
   $RM -r conftest
 
14441
   $RM conftest*
 
14442
 
 
14443
fi
 
14444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14445
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14446
 
 
14447
 
 
14448
 
 
14449
 
 
14450
hard_links="nottested"
 
14451
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14452
  # do not overwrite the value of need_locks provided by the user
 
14453
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14454
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14455
  hard_links=yes
 
14456
  $RM conftest*
 
14457
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14458
  touch conftest.a
 
14459
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14460
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14462
$as_echo "$hard_links" >&6; }
 
14463
  if test "$hard_links" = no; then
 
14464
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14465
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14466
    need_locks=warn
 
14467
  fi
 
14468
else
 
14469
  need_locks=no
 
14470
fi
 
14471
 
 
14472
 
 
14473
 
 
14474
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14475
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14476
 
 
14477
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14478
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14479
  case $host_os in
 
14480
  aix[4-9]*)
 
14481
    # If we're using GNU nm, then we don't want the "-C" option.
 
14482
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14483
    # Also, AIX nm treats weak defined symbols like other global defined
 
14484
    # symbols, whereas GNU nm marks them as "W".
 
14485
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14486
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14487
    else
 
14488
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14489
    fi
 
14490
    ;;
 
14491
  pw32*)
 
14492
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14493
    ;;
 
14494
  cygwin* | mingw* | cegcc*)
 
14495
    case $cc_basename in
 
14496
    cl*)
 
14497
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
14498
      ;;
 
14499
    *)
 
14500
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14501
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14502
      ;;
 
14503
    esac
 
14504
    ;;
 
14505
  linux* | k*bsd*-gnu | gnu*)
 
14506
    link_all_deplibs_CXX=no
 
14507
    ;;
 
14508
  *)
 
14509
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14510
    ;;
 
14511
  esac
 
14512
 
 
14513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14514
$as_echo "$ld_shlibs_CXX" >&6; }
 
14515
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14516
 
 
14517
with_gnu_ld_CXX=$with_gnu_ld
 
14518
 
 
14519
 
 
14520
 
 
14521
 
 
14522
 
 
14523
 
 
14524
#
 
14525
# Do we need to explicitly link libc?
 
14526
#
 
14527
case "x$archive_cmds_need_lc_CXX" in
 
14528
x|xyes)
 
14529
  # Assume -lc should be added
 
14530
  archive_cmds_need_lc_CXX=yes
 
14531
 
 
14532
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14533
    case $archive_cmds_CXX in
 
14534
    *'~'*)
 
14535
      # FIXME: we may have to deal with multi-command sequences.
 
14536
      ;;
 
14537
    '$CC '*)
 
14538
      # Test whether the compiler implicitly links with -lc since on some
 
14539
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14540
      # to ld, don't add -lc before -lgcc.
 
14541
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14542
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14543
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14544
  $as_echo_n "(cached) " >&6
 
14545
else
 
14546
  $RM conftest*
 
14547
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14548
 
 
14549
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14550
  (eval $ac_compile) 2>&5
 
14551
  ac_status=$?
 
14552
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14553
  test $ac_status = 0; } 2>conftest.err; then
 
14554
          soname=conftest
 
14555
          lib=conftest
 
14556
          libobjs=conftest.$ac_objext
 
14557
          deplibs=
 
14558
          wl=$lt_prog_compiler_wl_CXX
 
14559
          pic_flag=$lt_prog_compiler_pic_CXX
 
14560
          compiler_flags=-v
 
14561
          linker_flags=-v
 
14562
          verstring=
 
14563
          output_objdir=.
 
14564
          libname=conftest
 
14565
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14566
          allow_undefined_flag_CXX=
 
14567
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14568
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14569
  ac_status=$?
 
14570
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14571
  test $ac_status = 0; }
 
14572
          then
 
14573
            lt_cv_archive_cmds_need_lc_CXX=no
 
14574
          else
 
14575
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14576
          fi
 
14577
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14578
        else
 
14579
          cat conftest.err 1>&5
 
14580
        fi
 
14581
        $RM conftest*
 
14582
 
 
14583
fi
 
14584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14585
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14586
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
14587
      ;;
 
14588
    esac
 
14589
  fi
 
14590
  ;;
 
14591
esac
 
14592
 
 
14593
 
 
14594
 
 
14595
 
 
14596
 
 
14597
 
 
14598
 
 
14599
 
 
14600
 
 
14601
 
 
14602
 
 
14603
 
 
14604
 
 
14605
 
 
14606
 
 
14607
 
 
14608
 
 
14609
 
 
14610
 
 
14611
 
 
14612
 
 
14613
 
 
14614
 
 
14615
 
 
14616
 
 
14617
 
 
14618
 
 
14619
 
 
14620
 
 
14621
 
 
14622
 
 
14623
 
 
14624
 
 
14625
 
 
14626
 
 
14627
 
 
14628
 
 
14629
 
 
14630
 
 
14631
 
 
14632
 
 
14633
 
 
14634
 
 
14635
 
 
14636
 
 
14637
 
 
14638
 
 
14639
 
 
14640
 
 
14641
 
 
14642
 
 
14643
 
 
14644
 
 
14645
 
 
14646
 
 
14647
 
 
14648
 
 
14649
 
 
14650
 
 
14651
 
 
14652
 
 
14653
 
 
14654
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14655
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14656
 
 
14657
library_names_spec=
 
14658
libname_spec='lib$name'
 
14659
soname_spec=
 
14660
shrext_cmds=".so"
 
14661
postinstall_cmds=
 
14662
postuninstall_cmds=
 
14663
finish_cmds=
 
14664
finish_eval=
 
14665
shlibpath_var=
 
14666
shlibpath_overrides_runpath=unknown
 
14667
version_type=none
 
14668
dynamic_linker="$host_os ld.so"
 
14669
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14670
need_lib_prefix=unknown
 
14671
hardcode_into_libs=no
 
14672
 
 
14673
# when you set need_version to no, make sure it does not cause -set_version
 
14674
# flags to be left without arguments
 
14675
need_version=unknown
 
14676
 
 
14677
case $host_os in
 
14678
aix3*)
 
14679
  version_type=linux # correct to gnu/linux during the next big refactor
 
14680
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14681
  shlibpath_var=LIBPATH
 
14682
 
 
14683
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14684
  soname_spec='${libname}${release}${shared_ext}$major'
 
14685
  ;;
 
14686
 
 
14687
aix[4-9]*)
 
14688
  version_type=linux # correct to gnu/linux during the next big refactor
 
14689
  need_lib_prefix=no
 
14690
  need_version=no
 
14691
  hardcode_into_libs=yes
 
14692
  if test "$host_cpu" = ia64; then
 
14693
    # AIX 5 supports IA64
 
14694
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14695
    shlibpath_var=LD_LIBRARY_PATH
 
14696
  else
 
14697
    # With GCC up to 2.95.x, collect2 would create an import file
 
14698
    # for dependence libraries.  The import file would start with
 
14699
    # the line `#! .'.  This would cause the generated library to
 
14700
    # depend on `.', always an invalid library.  This was fixed in
 
14701
    # development snapshots of GCC prior to 3.0.
 
14702
    case $host_os in
 
14703
      aix4 | aix4.[01] | aix4.[01].*)
 
14704
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14705
           echo ' yes '
 
14706
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
14707
        :
 
14708
      else
 
14709
        can_build_shared=no
 
14710
      fi
 
14711
      ;;
 
14712
    esac
 
14713
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14714
    # soname into executable. Probably we can add versioning support to
 
14715
    # collect2, so additional links can be useful in future.
 
14716
    if test "$aix_use_runtimelinking" = yes; then
 
14717
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14718
      # instead of lib<name>.a to let people know that these are not
 
14719
      # typical AIX shared libraries.
 
14720
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14721
    else
 
14722
      # We preserve .a as extension for shared libraries through AIX4.2
 
14723
      # and later when we are not doing run time linking.
 
14724
      library_names_spec='${libname}${release}.a $libname.a'
 
14725
      soname_spec='${libname}${release}${shared_ext}$major'
 
14726
    fi
 
14727
    shlibpath_var=LIBPATH
 
14728
  fi
 
14729
  ;;
 
14730
 
 
14731
amigaos*)
 
14732
  case $host_cpu in
 
14733
  powerpc)
 
14734
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14735
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14736
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14737
    ;;
 
14738
  m68k)
 
14739
    library_names_spec='$libname.ixlibrary $libname.a'
 
14740
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14741
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14742
    ;;
 
14743
  esac
 
14744
  ;;
 
14745
 
 
14746
beos*)
 
14747
  library_names_spec='${libname}${shared_ext}'
 
14748
  dynamic_linker="$host_os ld.so"
 
14749
  shlibpath_var=LIBRARY_PATH
 
14750
  ;;
 
14751
 
 
14752
bsdi[45]*)
 
14753
  version_type=linux # correct to gnu/linux during the next big refactor
 
14754
  need_version=no
 
14755
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14756
  soname_spec='${libname}${release}${shared_ext}$major'
 
14757
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14758
  shlibpath_var=LD_LIBRARY_PATH
 
14759
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14760
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14761
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14762
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14763
  # libtool to hard-code these into programs
 
14764
  ;;
 
14765
 
 
14766
cygwin* | mingw* | pw32* | cegcc*)
 
14767
  version_type=windows
 
14768
  shrext_cmds=".dll"
 
14769
  need_version=no
 
14770
  need_lib_prefix=no
 
14771
 
 
14772
  case $GCC,$cc_basename in
 
14773
  yes,*)
 
14774
    # gcc
 
14775
    library_names_spec='$libname.dll.a'
 
14776
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14777
    postinstall_cmds='base_file=`basename \${file}`~
 
14778
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14779
      dldir=$destdir/`dirname \$dlpath`~
 
14780
      test -d \$dldir || mkdir -p \$dldir~
 
14781
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14782
      chmod a+x \$dldir/$dlname~
 
14783
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
14784
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
14785
      fi'
 
14786
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14787
      dlpath=$dir/\$dldll~
 
14788
       $RM \$dlpath'
 
14789
    shlibpath_overrides_runpath=yes
 
14790
 
 
14791
    case $host_os in
 
14792
    cygwin*)
 
14793
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14794
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14795
 
 
14796
      ;;
 
14797
    mingw* | cegcc*)
 
14798
      # MinGW DLLs use traditional 'lib' prefix
 
14799
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14800
      ;;
 
14801
    pw32*)
 
14802
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14803
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14804
      ;;
 
14805
    esac
 
14806
    dynamic_linker='Win32 ld.exe'
 
14807
    ;;
 
14808
 
 
14809
  *,cl*)
 
14810
    # Native MSVC
 
14811
    libname_spec='$name'
 
14812
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14813
    library_names_spec='${libname}.dll.lib'
 
14814
 
 
14815
    case $build_os in
 
14816
    mingw*)
 
14817
      sys_lib_search_path_spec=
 
14818
      lt_save_ifs=$IFS
 
14819
      IFS=';'
 
14820
      for lt_path in $LIB
 
14821
      do
 
14822
        IFS=$lt_save_ifs
 
14823
        # Let DOS variable expansion print the short 8.3 style file name.
 
14824
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
14825
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
14826
      done
 
14827
      IFS=$lt_save_ifs
 
14828
      # Convert to MSYS style.
 
14829
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
14830
      ;;
 
14831
    cygwin*)
 
14832
      # Convert to unix form, then to dos form, then back to unix form
 
14833
      # but this time dos style (no spaces!) so that the unix form looks
 
14834
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
14835
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
14836
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
14837
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14838
      ;;
 
14839
    *)
 
14840
      sys_lib_search_path_spec="$LIB"
 
14841
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
14842
        # It is most probably a Windows format PATH.
 
14843
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14844
      else
 
14845
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14846
      fi
 
14847
      # FIXME: find the short name or the path components, as spaces are
 
14848
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
14849
      ;;
 
14850
    esac
 
14851
 
 
14852
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14853
    postinstall_cmds='base_file=`basename \${file}`~
 
14854
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14855
      dldir=$destdir/`dirname \$dlpath`~
 
14856
      test -d \$dldir || mkdir -p \$dldir~
 
14857
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14858
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14859
      dlpath=$dir/\$dldll~
 
14860
       $RM \$dlpath'
 
14861
    shlibpath_overrides_runpath=yes
 
14862
    dynamic_linker='Win32 link.exe'
 
14863
    ;;
 
14864
 
 
14865
  *)
 
14866
    # Assume MSVC wrapper
 
14867
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14868
    dynamic_linker='Win32 ld.exe'
 
14869
    ;;
 
14870
  esac
 
14871
  # FIXME: first we should search . and the directory the executable is in
 
14872
  shlibpath_var=PATH
 
14873
  ;;
 
14874
 
 
14875
darwin* | rhapsody*)
 
14876
  dynamic_linker="$host_os dyld"
 
14877
  version_type=darwin
 
14878
  need_lib_prefix=no
 
14879
  need_version=no
 
14880
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14881
  soname_spec='${libname}${release}${major}$shared_ext'
 
14882
  shlibpath_overrides_runpath=yes
 
14883
  shlibpath_var=DYLD_LIBRARY_PATH
 
14884
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14885
 
 
14886
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14887
  ;;
 
14888
 
 
14889
dgux*)
 
14890
  version_type=linux # correct to gnu/linux during the next big refactor
 
14891
  need_lib_prefix=no
 
14892
  need_version=no
 
14893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14894
  soname_spec='${libname}${release}${shared_ext}$major'
 
14895
  shlibpath_var=LD_LIBRARY_PATH
 
14896
  ;;
 
14897
 
 
14898
freebsd* | dragonfly*)
 
14899
  # DragonFly does not have aout.  When/if they implement a new
 
14900
  # versioning mechanism, adjust this.
 
14901
  if test -x /usr/bin/objformat; then
 
14902
    objformat=`/usr/bin/objformat`
 
14903
  else
 
14904
    case $host_os in
 
14905
    freebsd[23].*) objformat=aout ;;
 
14906
    *) objformat=elf ;;
 
14907
    esac
 
14908
  fi
 
14909
  version_type=freebsd-$objformat
 
14910
  case $version_type in
 
14911
    freebsd-elf*)
 
14912
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14913
      need_version=no
 
14914
      need_lib_prefix=no
 
14915
      ;;
 
14916
    freebsd-*)
 
14917
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14918
      need_version=yes
 
14919
      ;;
 
14920
  esac
 
14921
  shlibpath_var=LD_LIBRARY_PATH
 
14922
  case $host_os in
 
14923
  freebsd2.*)
 
14924
    shlibpath_overrides_runpath=yes
 
14925
    ;;
 
14926
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14927
    shlibpath_overrides_runpath=yes
 
14928
    hardcode_into_libs=yes
 
14929
    ;;
 
14930
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14931
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14932
    shlibpath_overrides_runpath=no
 
14933
    hardcode_into_libs=yes
 
14934
    ;;
 
14935
  *) # from 4.6 on, and DragonFly
 
14936
    shlibpath_overrides_runpath=yes
 
14937
    hardcode_into_libs=yes
 
14938
    ;;
 
14939
  esac
 
14940
  ;;
 
14941
 
 
14942
gnu*)
 
14943
  version_type=linux # correct to gnu/linux during the next big refactor
 
14944
  need_lib_prefix=no
 
14945
  need_version=no
 
14946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14947
  soname_spec='${libname}${release}${shared_ext}$major'
 
14948
  shlibpath_var=LD_LIBRARY_PATH
 
14949
  shlibpath_overrides_runpath=no
 
14950
  hardcode_into_libs=yes
 
14951
  ;;
 
14952
 
 
14953
haiku*)
 
14954
  version_type=linux # correct to gnu/linux during the next big refactor
 
14955
  need_lib_prefix=no
 
14956
  need_version=no
 
14957
  dynamic_linker="$host_os runtime_loader"
 
14958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14959
  soname_spec='${libname}${release}${shared_ext}$major'
 
14960
  shlibpath_var=LIBRARY_PATH
 
14961
  shlibpath_overrides_runpath=yes
 
14962
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
14963
  hardcode_into_libs=yes
 
14964
  ;;
 
14965
 
 
14966
hpux9* | hpux10* | hpux11*)
 
14967
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14968
  # link against other versions.
 
14969
  version_type=sunos
 
14970
  need_lib_prefix=no
 
14971
  need_version=no
 
14972
  case $host_cpu in
 
14973
  ia64*)
 
14974
    shrext_cmds='.so'
 
14975
    hardcode_into_libs=yes
 
14976
    dynamic_linker="$host_os dld.so"
 
14977
    shlibpath_var=LD_LIBRARY_PATH
 
14978
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14979
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14980
    soname_spec='${libname}${release}${shared_ext}$major'
 
14981
    if test "X$HPUX_IA64_MODE" = X32; then
 
14982
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14983
    else
 
14984
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14985
    fi
 
14986
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14987
    ;;
 
14988
  hppa*64*)
 
14989
    shrext_cmds='.sl'
 
14990
    hardcode_into_libs=yes
 
14991
    dynamic_linker="$host_os dld.sl"
 
14992
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14993
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14994
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14995
    soname_spec='${libname}${release}${shared_ext}$major'
 
14996
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14997
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14998
    ;;
 
14999
  *)
 
15000
    shrext_cmds='.sl'
 
15001
    dynamic_linker="$host_os dld.sl"
 
15002
    shlibpath_var=SHLIB_PATH
 
15003
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15004
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15005
    soname_spec='${libname}${release}${shared_ext}$major'
 
15006
    ;;
 
15007
  esac
 
15008
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
15009
  postinstall_cmds='chmod 555 $lib'
 
15010
  # or fails outright, so override atomically:
 
15011
  install_override_mode=555
 
15012
  ;;
 
15013
 
 
15014
interix[3-9]*)
 
15015
  version_type=linux # correct to gnu/linux during the next big refactor
 
15016
  need_lib_prefix=no
 
15017
  need_version=no
 
15018
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15019
  soname_spec='${libname}${release}${shared_ext}$major'
 
15020
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15021
  shlibpath_var=LD_LIBRARY_PATH
 
15022
  shlibpath_overrides_runpath=no
 
15023
  hardcode_into_libs=yes
 
15024
  ;;
 
15025
 
 
15026
irix5* | irix6* | nonstopux*)
 
15027
  case $host_os in
 
15028
    nonstopux*) version_type=nonstopux ;;
 
15029
    *)
 
15030
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15031
                version_type=linux # correct to gnu/linux during the next big refactor
 
15032
        else
 
15033
                version_type=irix
 
15034
        fi ;;
 
15035
  esac
 
15036
  need_lib_prefix=no
 
15037
  need_version=no
 
15038
  soname_spec='${libname}${release}${shared_ext}$major'
 
15039
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15040
  case $host_os in
 
15041
  irix5* | nonstopux*)
 
15042
    libsuff= shlibsuff=
 
15043
    ;;
 
15044
  *)
 
15045
    case $LD in # libtool.m4 will add one of these switches to LD
 
15046
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15047
      libsuff= shlibsuff= libmagic=32-bit;;
 
15048
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15049
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15050
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15051
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15052
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15053
    esac
 
15054
    ;;
 
15055
  esac
 
15056
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15057
  shlibpath_overrides_runpath=no
 
15058
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15059
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15060
  hardcode_into_libs=yes
 
15061
  ;;
 
15062
 
 
15063
# No shared lib support for Linux oldld, aout, or coff.
 
15064
linux*oldld* | linux*aout* | linux*coff*)
 
15065
  dynamic_linker=no
 
15066
  ;;
 
15067
 
 
15068
# This must be glibc/ELF.
 
15069
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
15070
  version_type=linux # correct to gnu/linux during the next big refactor
 
15071
  need_lib_prefix=no
 
15072
  need_version=no
 
15073
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15074
  soname_spec='${libname}${release}${shared_ext}$major'
 
15075
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15076
  shlibpath_var=LD_LIBRARY_PATH
 
15077
  shlibpath_overrides_runpath=no
 
15078
 
 
15079
  # Some binutils ld are patched to set DT_RUNPATH
 
15080
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
15081
  $as_echo_n "(cached) " >&6
 
15082
else
 
15083
  lt_cv_shlibpath_overrides_runpath=no
 
15084
    save_LDFLAGS=$LDFLAGS
 
15085
    save_libdir=$libdir
 
15086
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15087
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15088
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15089
/* end confdefs.h.  */
 
15090
 
 
15091
int
 
15092
main ()
 
15093
{
 
15094
 
 
15095
  ;
 
15096
  return 0;
 
15097
}
 
15098
_ACEOF
 
15099
if ac_fn_cxx_try_link "$LINENO"; then :
 
15100
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
15101
  lt_cv_shlibpath_overrides_runpath=yes
 
15102
fi
 
15103
fi
 
15104
rm -f core conftest.err conftest.$ac_objext \
 
15105
    conftest$ac_exeext conftest.$ac_ext
 
15106
    LDFLAGS=$save_LDFLAGS
 
15107
    libdir=$save_libdir
 
15108
 
 
15109
fi
 
15110
 
 
15111
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
15112
 
 
15113
  # This implies no fast_install, which is unacceptable.
 
15114
  # Some rework will be needed to allow for fast_install
 
15115
  # before this can be enabled.
 
15116
  hardcode_into_libs=yes
 
15117
 
 
15118
  # Append ld.so.conf contents to the search path
 
15119
  if test -f /etc/ld.so.conf; then
 
15120
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
15121
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15122
  fi
 
15123
 
 
15124
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15125
  # powerpc, because MkLinux only supported shared libraries with the
 
15126
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15127
  # most powerpc-linux boxes support dynamic linking these days and
 
15128
  # people can always --disable-shared, the test was removed, and we
 
15129
  # assume the GNU/Linux dynamic linker is in use.
 
15130
  dynamic_linker='GNU/Linux ld.so'
 
15131
  ;;
 
15132
 
 
15133
netbsdelf*-gnu)
 
15134
  version_type=linux
 
15135
  need_lib_prefix=no
 
15136
  need_version=no
 
15137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15138
  soname_spec='${libname}${release}${shared_ext}$major'
 
15139
  shlibpath_var=LD_LIBRARY_PATH
 
15140
  shlibpath_overrides_runpath=no
 
15141
  hardcode_into_libs=yes
 
15142
  dynamic_linker='NetBSD ld.elf_so'
 
15143
  ;;
 
15144
 
 
15145
netbsd*)
 
15146
  version_type=sunos
 
15147
  need_lib_prefix=no
 
15148
  need_version=no
 
15149
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15150
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15151
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15152
    dynamic_linker='NetBSD (a.out) ld.so'
 
15153
  else
 
15154
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15155
    soname_spec='${libname}${release}${shared_ext}$major'
 
15156
    dynamic_linker='NetBSD ld.elf_so'
 
15157
  fi
 
15158
  shlibpath_var=LD_LIBRARY_PATH
 
15159
  shlibpath_overrides_runpath=yes
 
15160
  hardcode_into_libs=yes
 
15161
  ;;
 
15162
 
 
15163
newsos6)
 
15164
  version_type=linux # correct to gnu/linux during the next big refactor
 
15165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15166
  shlibpath_var=LD_LIBRARY_PATH
 
15167
  shlibpath_overrides_runpath=yes
 
15168
  ;;
 
15169
 
 
15170
*nto* | *qnx*)
 
15171
  version_type=qnx
 
15172
  need_lib_prefix=no
 
15173
  need_version=no
 
15174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15175
  soname_spec='${libname}${release}${shared_ext}$major'
 
15176
  shlibpath_var=LD_LIBRARY_PATH
 
15177
  shlibpath_overrides_runpath=no
 
15178
  hardcode_into_libs=yes
 
15179
  dynamic_linker='ldqnx.so'
 
15180
  ;;
 
15181
 
 
15182
openbsd*)
 
15183
  version_type=sunos
 
15184
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15185
  need_lib_prefix=no
 
15186
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15187
  case $host_os in
 
15188
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
15189
    *)                          need_version=no  ;;
 
15190
  esac
 
15191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15192
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15193
  shlibpath_var=LD_LIBRARY_PATH
 
15194
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15195
    case $host_os in
 
15196
      openbsd2.[89] | openbsd2.[89].*)
 
15197
        shlibpath_overrides_runpath=no
 
15198
        ;;
 
15199
      *)
 
15200
        shlibpath_overrides_runpath=yes
 
15201
        ;;
 
15202
      esac
 
15203
  else
 
15204
    shlibpath_overrides_runpath=yes
 
15205
  fi
 
15206
  ;;
 
15207
 
 
15208
os2*)
 
15209
  libname_spec='$name'
 
15210
  shrext_cmds=".dll"
 
15211
  need_lib_prefix=no
 
15212
  library_names_spec='$libname${shared_ext} $libname.a'
 
15213
  dynamic_linker='OS/2 ld.exe'
 
15214
  shlibpath_var=LIBPATH
 
15215
  ;;
 
15216
 
 
15217
osf3* | osf4* | osf5*)
 
15218
  version_type=osf
 
15219
  need_lib_prefix=no
 
15220
  need_version=no
 
15221
  soname_spec='${libname}${release}${shared_ext}$major'
 
15222
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15223
  shlibpath_var=LD_LIBRARY_PATH
 
15224
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15225
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15226
  ;;
 
15227
 
 
15228
rdos*)
 
15229
  dynamic_linker=no
 
15230
  ;;
 
15231
 
 
15232
solaris*)
 
15233
  version_type=linux # correct to gnu/linux during the next big refactor
 
15234
  need_lib_prefix=no
 
15235
  need_version=no
 
15236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15237
  soname_spec='${libname}${release}${shared_ext}$major'
 
15238
  shlibpath_var=LD_LIBRARY_PATH
 
15239
  shlibpath_overrides_runpath=yes
 
15240
  hardcode_into_libs=yes
 
15241
  # ldd complains unless libraries are executable
 
15242
  postinstall_cmds='chmod +x $lib'
 
15243
  ;;
 
15244
 
 
15245
sunos4*)
 
15246
  version_type=sunos
 
15247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15248
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15249
  shlibpath_var=LD_LIBRARY_PATH
 
15250
  shlibpath_overrides_runpath=yes
 
15251
  if test "$with_gnu_ld" = yes; then
 
15252
    need_lib_prefix=no
 
15253
  fi
 
15254
  need_version=yes
 
15255
  ;;
 
15256
 
 
15257
sysv4 | sysv4.3*)
 
15258
  version_type=linux # correct to gnu/linux during the next big refactor
 
15259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15260
  soname_spec='${libname}${release}${shared_ext}$major'
 
15261
  shlibpath_var=LD_LIBRARY_PATH
 
15262
  case $host_vendor in
 
15263
    sni)
 
15264
      shlibpath_overrides_runpath=no
 
15265
      need_lib_prefix=no
 
15266
      runpath_var=LD_RUN_PATH
 
15267
      ;;
 
15268
    siemens)
 
15269
      need_lib_prefix=no
 
15270
      ;;
 
15271
    motorola)
 
15272
      need_lib_prefix=no
 
15273
      need_version=no
 
15274
      shlibpath_overrides_runpath=no
 
15275
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15276
      ;;
 
15277
  esac
 
15278
  ;;
 
15279
 
 
15280
sysv4*MP*)
 
15281
  if test -d /usr/nec ;then
 
15282
    version_type=linux # correct to gnu/linux during the next big refactor
 
15283
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15284
    soname_spec='$libname${shared_ext}.$major'
 
15285
    shlibpath_var=LD_LIBRARY_PATH
 
15286
  fi
 
15287
  ;;
 
15288
 
 
15289
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15290
  version_type=freebsd-elf
 
15291
  need_lib_prefix=no
 
15292
  need_version=no
 
15293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15294
  soname_spec='${libname}${release}${shared_ext}$major'
 
15295
  shlibpath_var=LD_LIBRARY_PATH
 
15296
  shlibpath_overrides_runpath=yes
 
15297
  hardcode_into_libs=yes
 
15298
  if test "$with_gnu_ld" = yes; then
 
15299
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15300
  else
 
15301
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15302
    case $host_os in
 
15303
      sco3.2v5*)
 
15304
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15305
        ;;
 
15306
    esac
 
15307
  fi
 
15308
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15309
  ;;
 
15310
 
 
15311
tpf*)
 
15312
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15313
  version_type=linux # correct to gnu/linux during the next big refactor
 
15314
  need_lib_prefix=no
 
15315
  need_version=no
 
15316
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15317
  shlibpath_var=LD_LIBRARY_PATH
 
15318
  shlibpath_overrides_runpath=no
 
15319
  hardcode_into_libs=yes
 
15320
  ;;
 
15321
 
 
15322
uts4*)
 
15323
  version_type=linux # correct to gnu/linux during the next big refactor
 
15324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15325
  soname_spec='${libname}${release}${shared_ext}$major'
 
15326
  shlibpath_var=LD_LIBRARY_PATH
 
15327
  ;;
 
15328
 
 
15329
*)
 
15330
  dynamic_linker=no
 
15331
  ;;
 
15332
esac
 
15333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15334
$as_echo "$dynamic_linker" >&6; }
 
15335
test "$dynamic_linker" = no && can_build_shared=no
 
15336
 
 
15337
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15338
if test "$GCC" = yes; then
 
15339
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15340
fi
 
15341
 
 
15342
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15343
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15344
fi
 
15345
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15346
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15347
fi
 
15348
 
 
15349
 
 
15350
 
 
15351
 
 
15352
 
 
15353
 
 
15354
 
 
15355
 
 
15356
 
 
15357
 
 
15358
 
 
15359
 
 
15360
 
 
15361
 
 
15362
 
 
15363
 
 
15364
 
 
15365
 
 
15366
 
 
15367
 
 
15368
 
 
15369
 
 
15370
 
 
15371
 
 
15372
 
 
15373
 
 
15374
 
 
15375
 
 
15376
 
 
15377
 
 
15378
 
 
15379
 
 
15380
 
 
15381
 
 
15382
 
 
15383
 
 
15384
 
 
15385
 
 
15386
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15387
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15388
hardcode_action_CXX=
 
15389
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15390
   test -n "$runpath_var_CXX" ||
 
15391
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15392
 
 
15393
  # We can hardcode non-existent directories.
 
15394
  if test "$hardcode_direct_CXX" != no &&
 
15395
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15396
     # have to relink, otherwise we might link with an installed library
 
15397
     # when we should be linking with a yet-to-be-installed one
 
15398
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15399
     test "$hardcode_minus_L_CXX" != no; then
 
15400
    # Linking always hardcodes the temporary library directory.
 
15401
    hardcode_action_CXX=relink
 
15402
  else
 
15403
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15404
    hardcode_action_CXX=immediate
 
15405
  fi
 
15406
else
 
15407
  # We cannot hardcode anything, or else we can only hardcode existing
 
15408
  # directories.
 
15409
  hardcode_action_CXX=unsupported
 
15410
fi
 
15411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15412
$as_echo "$hardcode_action_CXX" >&6; }
 
15413
 
 
15414
if test "$hardcode_action_CXX" = relink ||
 
15415
   test "$inherit_rpath_CXX" = yes; then
 
15416
  # Fast installation is not supported
 
15417
  enable_fast_install=no
 
15418
elif test "$shlibpath_overrides_runpath" = yes ||
 
15419
     test "$enable_shared" = no; then
 
15420
  # Fast installation is not necessary
 
15421
  enable_fast_install=needless
 
15422
fi
 
15423
 
 
15424
 
 
15425
 
 
15426
 
 
15427
 
 
15428
 
 
15429
 
 
15430
  fi # test -n "$compiler"
 
15431
 
 
15432
  CC=$lt_save_CC
 
15433
  CFLAGS=$lt_save_CFLAGS
 
15434
  LDCXX=$LD
 
15435
  LD=$lt_save_LD
 
15436
  GCC=$lt_save_GCC
 
15437
  with_gnu_ld=$lt_save_with_gnu_ld
 
15438
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15439
  lt_cv_path_LD=$lt_save_path_LD
 
15440
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15441
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15442
fi # test "$_lt_caught_CXX_error" != yes
 
15443
 
 
15444
ac_ext=c
 
15445
ac_cpp='$CPP $CPPFLAGS'
 
15446
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15447
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15448
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15449
 
 
15450
 
 
15451
 
 
15452
 
 
15453
 
 
15454
 
 
15455
 
 
15456
 
 
15457
 
 
15458
 
 
15459
 
 
15460
 
 
15461
 
 
15462
 
 
15463
 
 
15464
        ac_config_commands="$ac_config_commands libtool"
 
15465
 
 
15466
 
 
15467
 
 
15468
 
 
15469
# Only expand once:
 
15470
 
 
15471
 
 
15472
 
 
15473
ac_ext=cpp
 
15474
ac_cpp='$CXXCPP $CPPFLAGS'
 
15475
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15476
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15477
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15478
 
 
15479
 
 
15480
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
15481
if test "x$ac_cv_type_size_t" = xyes; then :
 
15482
 
 
15483
else
 
15484
 
 
15485
cat >>confdefs.h <<_ACEOF
 
15486
#define size_t unsigned int
 
15487
_ACEOF
 
15488
 
 
15489
fi
 
15490
 
 
15491
 
 
15492
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
15493
# for constant arguments.  Useless!
 
15494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 
15495
$as_echo_n "checking for working alloca.h... " >&6; }
 
15496
if ${ac_cv_working_alloca_h+:} false; then :
 
15497
  $as_echo_n "(cached) " >&6
 
15498
else
 
15499
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15500
/* end confdefs.h.  */
 
15501
#include <alloca.h>
 
15502
int
 
15503
main ()
 
15504
{
 
15505
char *p = (char *) alloca (2 * sizeof (int));
 
15506
                          if (p) return 0;
 
15507
  ;
 
15508
  return 0;
 
15509
}
 
15510
_ACEOF
 
15511
if ac_fn_cxx_try_link "$LINENO"; then :
 
15512
  ac_cv_working_alloca_h=yes
 
15513
else
 
15514
  ac_cv_working_alloca_h=no
 
15515
fi
 
15516
rm -f core conftest.err conftest.$ac_objext \
 
15517
    conftest$ac_exeext conftest.$ac_ext
 
15518
fi
 
15519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
 
15520
$as_echo "$ac_cv_working_alloca_h" >&6; }
 
15521
if test $ac_cv_working_alloca_h = yes; then
 
15522
 
 
15523
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
 
15524
 
 
15525
fi
 
15526
 
 
15527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
 
15528
$as_echo_n "checking for alloca... " >&6; }
 
15529
if ${ac_cv_func_alloca_works+:} false; then :
 
15530
  $as_echo_n "(cached) " >&6
 
15531
else
 
15532
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15533
/* end confdefs.h.  */
 
15534
#ifdef __GNUC__
 
15535
# define alloca __builtin_alloca
 
15536
#else
 
15537
# ifdef _MSC_VER
 
15538
#  include <malloc.h>
 
15539
#  define alloca _alloca
 
15540
# else
 
15541
#  ifdef HAVE_ALLOCA_H
 
15542
#   include <alloca.h>
 
15543
#  else
 
15544
#   ifdef _AIX
 
15545
 #pragma alloca
 
15546
#   else
 
15547
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
15548
void *alloca (size_t);
 
15549
#    endif
 
15550
#   endif
 
15551
#  endif
 
15552
# endif
 
15553
#endif
 
15554
 
 
15555
int
 
15556
main ()
 
15557
{
 
15558
char *p = (char *) alloca (1);
 
15559
                                    if (p) return 0;
 
15560
  ;
 
15561
  return 0;
 
15562
}
 
15563
_ACEOF
 
15564
if ac_fn_cxx_try_link "$LINENO"; then :
 
15565
  ac_cv_func_alloca_works=yes
 
15566
else
 
15567
  ac_cv_func_alloca_works=no
 
15568
fi
 
15569
rm -f core conftest.err conftest.$ac_objext \
 
15570
    conftest$ac_exeext conftest.$ac_ext
 
15571
fi
 
15572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 
15573
$as_echo "$ac_cv_func_alloca_works" >&6; }
 
15574
 
 
15575
if test $ac_cv_func_alloca_works = yes; then
 
15576
 
 
15577
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
 
15578
 
 
15579
else
 
15580
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
15581
# that cause trouble.  Some versions do not even contain alloca or
 
15582
# contain a buggy version.  If you still want to use their alloca,
 
15583
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
15584
 
 
15585
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
15586
 
 
15587
$as_echo "#define C_ALLOCA 1" >>confdefs.h
 
15588
 
 
15589
 
 
15590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
 
15591
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
15592
if ${ac_cv_os_cray+:} false; then :
 
15593
  $as_echo_n "(cached) " >&6
 
15594
else
 
15595
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15596
/* end confdefs.h.  */
 
15597
#if defined CRAY && ! defined CRAY2
 
15598
webecray
 
15599
#else
 
15600
wenotbecray
 
15601
#endif
 
15602
 
 
15603
_ACEOF
 
15604
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15605
  $EGREP "webecray" >/dev/null 2>&1; then :
 
15606
  ac_cv_os_cray=yes
 
15607
else
 
15608
  ac_cv_os_cray=no
 
15609
fi
 
15610
rm -f conftest*
 
15611
 
 
15612
fi
 
15613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
 
15614
$as_echo "$ac_cv_os_cray" >&6; }
 
15615
if test $ac_cv_os_cray = yes; then
 
15616
  for ac_func in _getb67 GETB67 getb67; do
 
15617
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15618
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
15619
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
15620
 
 
15621
cat >>confdefs.h <<_ACEOF
 
15622
#define CRAY_STACKSEG_END $ac_func
 
15623
_ACEOF
 
15624
 
 
15625
    break
 
15626
fi
 
15627
 
 
15628
  done
 
15629
fi
 
15630
 
 
15631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
 
15632
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
15633
if ${ac_cv_c_stack_direction+:} false; then :
 
15634
  $as_echo_n "(cached) " >&6
 
15635
else
 
15636
  if test "$cross_compiling" = yes; then :
 
15637
  ac_cv_c_stack_direction=0
 
15638
else
 
15639
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15640
/* end confdefs.h.  */
 
15641
$ac_includes_default
 
15642
int
 
15643
find_stack_direction ()
 
15644
{
 
15645
  static char *addr = 0;
 
15646
  auto char dummy;
 
15647
  if (addr == 0)
 
15648
    {
 
15649
      addr = &dummy;
 
15650
      return find_stack_direction ();
 
15651
    }
 
15652
  else
 
15653
    return (&dummy > addr) ? 1 : -1;
 
15654
}
 
15655
 
 
15656
int
 
15657
main ()
 
15658
{
 
15659
  return find_stack_direction () < 0;
 
15660
}
 
15661
_ACEOF
 
15662
if ac_fn_cxx_try_run "$LINENO"; then :
 
15663
  ac_cv_c_stack_direction=1
 
15664
else
 
15665
  ac_cv_c_stack_direction=-1
 
15666
fi
 
15667
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15668
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15669
fi
 
15670
 
 
15671
fi
 
15672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
 
15673
$as_echo "$ac_cv_c_stack_direction" >&6; }
 
15674
cat >>confdefs.h <<_ACEOF
 
15675
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
15676
_ACEOF
 
15677
 
 
15678
 
 
15679
fi
 
15680
 
 
15681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
15682
$as_echo_n "checking for ANSI C header files... " >&6; }
 
15683
if ${ac_cv_header_stdc+:} false; then :
 
15684
  $as_echo_n "(cached) " >&6
 
15685
else
 
15686
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15687
/* end confdefs.h.  */
 
15688
#include <stdlib.h>
 
15689
#include <stdarg.h>
 
15690
#include <string.h>
 
15691
#include <float.h>
 
15692
 
 
15693
int
 
15694
main ()
 
15695
{
 
15696
 
 
15697
  ;
 
15698
  return 0;
 
15699
}
 
15700
_ACEOF
 
15701
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15702
  ac_cv_header_stdc=yes
 
15703
else
 
15704
  ac_cv_header_stdc=no
 
15705
fi
 
15706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15707
 
 
15708
if test $ac_cv_header_stdc = yes; then
 
15709
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
15710
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15711
/* end confdefs.h.  */
 
15712
#include <string.h>
 
15713
 
 
15714
_ACEOF
 
15715
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15716
  $EGREP "memchr" >/dev/null 2>&1; then :
 
15717
 
 
15718
else
 
15719
  ac_cv_header_stdc=no
 
15720
fi
 
15721
rm -f conftest*
 
15722
 
 
15723
fi
 
15724
 
 
15725
if test $ac_cv_header_stdc = yes; then
 
15726
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
15727
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15728
/* end confdefs.h.  */
 
15729
#include <stdlib.h>
 
15730
 
 
15731
_ACEOF
 
15732
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15733
  $EGREP "free" >/dev/null 2>&1; then :
 
15734
 
 
15735
else
 
15736
  ac_cv_header_stdc=no
 
15737
fi
 
15738
rm -f conftest*
 
15739
 
 
15740
fi
 
15741
 
 
15742
if test $ac_cv_header_stdc = yes; then
 
15743
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
15744
  if test "$cross_compiling" = yes; then :
 
15745
  :
 
15746
else
 
15747
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15748
/* end confdefs.h.  */
 
15749
#include <ctype.h>
 
15750
#include <stdlib.h>
 
15751
#if ((' ' & 0x0FF) == 0x020)
 
15752
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
15753
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
15754
#else
 
15755
# define ISLOWER(c) \
 
15756
                   (('a' <= (c) && (c) <= 'i') \
 
15757
                     || ('j' <= (c) && (c) <= 'r') \
 
15758
                     || ('s' <= (c) && (c) <= 'z'))
 
15759
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
15760
#endif
 
15761
 
 
15762
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
15763
int
 
15764
main ()
 
15765
{
 
15766
  int i;
 
15767
  for (i = 0; i < 256; i++)
 
15768
    if (XOR (islower (i), ISLOWER (i))
 
15769
        || toupper (i) != TOUPPER (i))
 
15770
      return 2;
 
15771
  return 0;
 
15772
}
 
15773
_ACEOF
 
15774
if ac_fn_cxx_try_run "$LINENO"; then :
 
15775
 
 
15776
else
 
15777
  ac_cv_header_stdc=no
 
15778
fi
 
15779
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15780
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15781
fi
 
15782
 
 
15783
fi
 
15784
fi
 
15785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
15786
$as_echo "$ac_cv_header_stdc" >&6; }
 
15787
if test $ac_cv_header_stdc = yes; then
 
15788
 
 
15789
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
15790
 
 
15791
fi
 
15792
 
 
15793
for ac_header in arpa/inet.h fcntl.h libintl.h limits.h malloc.h memory.h \
 
15794
                  netdb.h netinet/in.h stdlib.h string.h strings.h \
 
15795
                  sys/ioctl.h sys/socket.h sys/time.h unistd.h utime.h \
 
15796
                  ostream getopt.h
 
15797
do :
 
15798
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15799
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
15800
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
15801
  cat >>confdefs.h <<_ACEOF
 
15802
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15803
_ACEOF
 
15804
 
 
15805
fi
 
15806
 
 
15807
done
 
15808
 
 
15809
 
 
15810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
 
15811
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
 
15812
if ${ac_cv_header_stat_broken+:} false; then :
 
15813
  $as_echo_n "(cached) " >&6
 
15814
else
 
15815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15816
/* end confdefs.h.  */
 
15817
#include <sys/types.h>
 
15818
#include <sys/stat.h>
 
15819
 
 
15820
#if defined S_ISBLK && defined S_IFDIR
 
15821
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
 
15822
#endif
 
15823
 
 
15824
#if defined S_ISBLK && defined S_IFCHR
 
15825
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
 
15826
#endif
 
15827
 
 
15828
#if defined S_ISLNK && defined S_IFREG
 
15829
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
 
15830
#endif
 
15831
 
 
15832
#if defined S_ISSOCK && defined S_IFREG
 
15833
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
 
15834
#endif
 
15835
 
 
15836
_ACEOF
 
15837
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15838
  ac_cv_header_stat_broken=no
 
15839
else
 
15840
  ac_cv_header_stat_broken=yes
 
15841
fi
 
15842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15843
fi
 
15844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
 
15845
$as_echo "$ac_cv_header_stat_broken" >&6; }
 
15846
if test $ac_cv_header_stat_broken = yes; then
 
15847
 
 
15848
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
 
15849
 
 
15850
fi
 
15851
 
 
15852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 
15853
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
15854
if ${ac_cv_header_stdbool_h+:} false; then :
 
15855
  $as_echo_n "(cached) " >&6
 
15856
else
 
15857
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15858
/* end confdefs.h.  */
 
15859
 
 
15860
#include <stdbool.h>
 
15861
#ifndef bool
 
15862
 "error: bool is not defined"
 
15863
#endif
 
15864
#ifndef false
 
15865
 "error: false is not defined"
 
15866
#endif
 
15867
#if false
 
15868
 "error: false is not 0"
 
15869
#endif
 
15870
#ifndef true
 
15871
 "error: true is not defined"
 
15872
#endif
 
15873
#if true != 1
 
15874
 "error: true is not 1"
 
15875
#endif
 
15876
#ifndef __bool_true_false_are_defined
 
15877
 "error: __bool_true_false_are_defined is not defined"
 
15878
#endif
 
15879
 
 
15880
        struct s { _Bool s: 1; _Bool t; } s;
 
15881
 
 
15882
        char a[true == 1 ? 1 : -1];
 
15883
        char b[false == 0 ? 1 : -1];
 
15884
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
15885
        char d[(bool) 0.5 == true ? 1 : -1];
 
15886
        /* See body of main program for 'e'.  */
 
15887
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
15888
        char g[true];
 
15889
        char h[sizeof (_Bool)];
 
15890
        char i[sizeof s.t];
 
15891
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
15892
        /* The following fails for
 
15893
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
15894
        _Bool n[m];
 
15895
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
15896
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
15897
        /* Catch a bug in an HP-UX C compiler.  See
 
15898
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
15899
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
15900
         */
 
15901
        _Bool q = true;
 
15902
        _Bool *pq = &q;
 
15903
 
 
15904
int
 
15905
main ()
 
15906
{
 
15907
 
 
15908
        bool e = &s;
 
15909
        *pq |= q;
 
15910
        *pq |= ! q;
 
15911
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
15912
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
15913
                + !m + !n + !o + !p + !q + !pq);
 
15914
 
 
15915
  ;
 
15916
  return 0;
 
15917
}
 
15918
_ACEOF
 
15919
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15920
  ac_cv_header_stdbool_h=yes
 
15921
else
 
15922
  ac_cv_header_stdbool_h=no
 
15923
fi
 
15924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15925
fi
 
15926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
 
15927
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
15928
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
15929
if test "x$ac_cv_type__Bool" = xyes; then :
 
15930
 
 
15931
cat >>confdefs.h <<_ACEOF
 
15932
#define HAVE__BOOL 1
 
15933
_ACEOF
 
15934
 
 
15935
 
 
15936
fi
 
15937
 
 
15938
if test $ac_cv_header_stdbool_h = yes; then
 
15939
 
 
15940
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
 
15941
 
 
15942
fi
 
15943
 
 
15944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
15945
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
15946
if ${ac_cv_c_const+:} false; then :
 
15947
  $as_echo_n "(cached) " >&6
 
15948
else
 
15949
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15950
/* end confdefs.h.  */
 
15951
 
 
15952
int
 
15953
main ()
 
15954
{
 
15955
/* FIXME: Include the comments suggested by Paul. */
 
15956
#ifndef __cplusplus
 
15957
  /* Ultrix mips cc rejects this.  */
 
15958
  typedef int charset[2];
 
15959
  const charset cs;
 
15960
  /* SunOS 4.1.1 cc rejects this.  */
 
15961
  char const *const *pcpcc;
 
15962
  char **ppc;
 
15963
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
15964
  struct point {int x, y;};
 
15965
  static struct point const zero = {0,0};
 
15966
  /* AIX XL C 1.02.0.0 rejects this.
 
15967
     It does not let you subtract one const X* pointer from another in
 
15968
     an arm of an if-expression whose if-part is not a constant
 
15969
     expression */
 
15970
  const char *g = "string";
 
15971
  pcpcc = &g + (g ? g-g : 0);
 
15972
  /* HPUX 7.0 cc rejects these. */
 
15973
  ++pcpcc;
 
15974
  ppc = (char**) pcpcc;
 
15975
  pcpcc = (char const *const *) ppc;
 
15976
  { /* SCO 3.2v4 cc rejects this.  */
 
15977
    char *t;
 
15978
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
15979
 
 
15980
    *t++ = 0;
 
15981
    if (s) return 0;
 
15982
  }
 
15983
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
15984
    int x[] = {25, 17};
 
15985
    const int *foo = &x[0];
 
15986
    ++foo;
 
15987
  }
 
15988
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
15989
    typedef const int *iptr;
 
15990
    iptr p = 0;
 
15991
    ++p;
 
15992
  }
 
15993
  { /* AIX XL C 1.02.0.0 rejects this saying
 
15994
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
15995
    struct s { int j; const int *ap[3]; };
 
15996
    struct s *b; b->j = 5;
 
15997
  }
 
15998
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
15999
    const int foo = 10;
 
16000
    if (!foo) return 0;
 
16001
  }
 
16002
  return !cs[0] && !zero.x;
 
16003
#endif
 
16004
 
 
16005
  ;
 
16006
  return 0;
 
16007
}
 
16008
_ACEOF
 
16009
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16010
  ac_cv_c_const=yes
 
16011
else
 
16012
  ac_cv_c_const=no
 
16013
fi
 
16014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16015
fi
 
16016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
16017
$as_echo "$ac_cv_c_const" >&6; }
 
16018
if test $ac_cv_c_const = no; then
 
16019
 
 
16020
$as_echo "#define const /**/" >>confdefs.h
 
16021
 
 
16022
fi
 
16023
 
 
16024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
16025
$as_echo_n "checking for inline... " >&6; }
 
16026
if ${ac_cv_c_inline+:} false; then :
 
16027
  $as_echo_n "(cached) " >&6
 
16028
else
 
16029
  ac_cv_c_inline=no
 
16030
for ac_kw in inline __inline__ __inline; do
 
16031
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16032
/* end confdefs.h.  */
 
16033
#ifndef __cplusplus
 
16034
typedef int foo_t;
 
16035
static $ac_kw foo_t static_foo () {return 0; }
 
16036
$ac_kw foo_t foo () {return 0; }
 
16037
#endif
 
16038
 
 
16039
_ACEOF
 
16040
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16041
  ac_cv_c_inline=$ac_kw
 
16042
fi
 
16043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16044
  test "$ac_cv_c_inline" != no && break
 
16045
done
 
16046
 
 
16047
fi
 
16048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
16049
$as_echo "$ac_cv_c_inline" >&6; }
 
16050
 
 
16051
case $ac_cv_c_inline in
 
16052
  inline | yes) ;;
 
16053
  *)
 
16054
    case $ac_cv_c_inline in
 
16055
      no) ac_val=;;
 
16056
      *) ac_val=$ac_cv_c_inline;;
 
16057
    esac
 
16058
    cat >>confdefs.h <<_ACEOF
 
16059
#ifndef __cplusplus
 
16060
#define inline $ac_val
 
16061
#endif
 
16062
_ACEOF
 
16063
    ;;
 
16064
esac
 
16065
 
 
16066
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
16067
if test "x$ac_cv_type_pid_t" = xyes; then :
 
16068
 
 
16069
else
 
16070
 
 
16071
cat >>confdefs.h <<_ACEOF
 
16072
#define pid_t int
 
16073
_ACEOF
 
16074
 
 
16075
fi
 
16076
 
 
16077
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
16078
if test "x$ac_cv_type_size_t" = xyes; then :
 
16079
 
 
16080
else
 
16081
 
 
16082
cat >>confdefs.h <<_ACEOF
 
16083
#define size_t unsigned int
 
16084
_ACEOF
 
16085
 
 
16086
fi
 
16087
 
 
16088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
16089
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
16090
if ${ac_cv_header_time+:} false; then :
 
16091
  $as_echo_n "(cached) " >&6
 
16092
else
 
16093
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16094
/* end confdefs.h.  */
 
16095
#include <sys/types.h>
 
16096
#include <sys/time.h>
 
16097
#include <time.h>
 
16098
 
 
16099
int
 
16100
main ()
 
16101
{
 
16102
if ((struct tm *) 0)
 
16103
return 0;
 
16104
  ;
 
16105
  return 0;
 
16106
}
 
16107
_ACEOF
 
16108
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16109
  ac_cv_header_time=yes
 
16110
else
 
16111
  ac_cv_header_time=no
 
16112
fi
 
16113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16114
fi
 
16115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
16116
$as_echo "$ac_cv_header_time" >&6; }
 
16117
if test $ac_cv_header_time = yes; then
 
16118
 
 
16119
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 
16120
 
 
16121
fi
 
16122
 
 
16123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
 
16124
$as_echo_n "checking for working volatile... " >&6; }
 
16125
if ${ac_cv_c_volatile+:} false; then :
 
16126
  $as_echo_n "(cached) " >&6
 
16127
else
 
16128
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16129
/* end confdefs.h.  */
 
16130
 
 
16131
int
 
16132
main ()
 
16133
{
 
16134
 
 
16135
volatile int x;
 
16136
int * volatile y = (int *) 0;
 
16137
return !x && !y;
 
16138
  ;
 
16139
  return 0;
 
16140
}
 
16141
_ACEOF
 
16142
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16143
  ac_cv_c_volatile=yes
 
16144
else
 
16145
  ac_cv_c_volatile=no
 
16146
fi
 
16147
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16148
fi
 
16149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
 
16150
$as_echo "$ac_cv_c_volatile" >&6; }
 
16151
if test $ac_cv_c_volatile = no; then
 
16152
 
 
16153
$as_echo "#define volatile /**/" >>confdefs.h
 
16154
 
 
16155
fi
 
16156
 
 
16157
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
 
16158
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
 
16159
 
 
16160
cat >>confdefs.h <<_ACEOF
 
16161
#define HAVE_PTRDIFF_T 1
 
16162
_ACEOF
 
16163
 
 
16164
 
 
16165
fi
 
16166
 
 
16167
 
 
16168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
 
16169
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
 
16170
if ${ac_cv_type_uid_t+:} false; then :
 
16171
  $as_echo_n "(cached) " >&6
 
16172
else
 
16173
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16174
/* end confdefs.h.  */
 
16175
#include <sys/types.h>
 
16176
 
 
16177
_ACEOF
 
16178
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16179
  $EGREP "uid_t" >/dev/null 2>&1; then :
 
16180
  ac_cv_type_uid_t=yes
 
16181
else
 
16182
  ac_cv_type_uid_t=no
 
16183
fi
 
16184
rm -f conftest*
 
16185
 
 
16186
fi
 
16187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
 
16188
$as_echo "$ac_cv_type_uid_t" >&6; }
 
16189
if test $ac_cv_type_uid_t = no; then
 
16190
 
 
16191
$as_echo "#define uid_t int" >>confdefs.h
 
16192
 
 
16193
 
 
16194
$as_echo "#define gid_t int" >>confdefs.h
 
16195
 
 
16196
fi
 
16197
 
 
16198
for ac_header in unistd.h
 
16199
do :
 
16200
  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
 
16201
if test "x$ac_cv_header_unistd_h" = xyes; then :
 
16202
  cat >>confdefs.h <<_ACEOF
 
16203
#define HAVE_UNISTD_H 1
 
16204
_ACEOF
 
16205
 
 
16206
fi
 
16207
 
 
16208
done
 
16209
 
 
16210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
 
16211
$as_echo_n "checking for working chown... " >&6; }
 
16212
if ${ac_cv_func_chown_works+:} false; then :
 
16213
  $as_echo_n "(cached) " >&6
 
16214
else
 
16215
  if test "$cross_compiling" = yes; then :
 
16216
  ac_cv_func_chown_works=no
 
16217
else
 
16218
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16219
/* end confdefs.h.  */
 
16220
$ac_includes_default
 
16221
#include <fcntl.h>
 
16222
 
 
16223
int
 
16224
main ()
 
16225
{
 
16226
  char *f = "conftest.chown";
 
16227
  struct stat before, after;
 
16228
 
 
16229
  if (creat (f, 0600) < 0)
 
16230
    return 1;
 
16231
  if (stat (f, &before) < 0)
 
16232
    return 1;
 
16233
  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
 
16234
    return 1;
 
16235
  if (stat (f, &after) < 0)
 
16236
    return 1;
 
16237
  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
 
16238
 
 
16239
  ;
 
16240
  return 0;
 
16241
}
 
16242
_ACEOF
 
16243
if ac_fn_cxx_try_run "$LINENO"; then :
 
16244
  ac_cv_func_chown_works=yes
 
16245
else
 
16246
  ac_cv_func_chown_works=no
 
16247
fi
 
16248
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16249
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16250
fi
 
16251
 
 
16252
rm -f conftest.chown
 
16253
 
 
16254
fi
 
16255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
 
16256
$as_echo "$ac_cv_func_chown_works" >&6; }
 
16257
if test $ac_cv_func_chown_works = yes; then
 
16258
 
 
16259
$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
 
16260
 
 
16261
fi
 
16262
 
 
16263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
 
16264
$as_echo_n "checking for error_at_line... " >&6; }
 
16265
if ${ac_cv_lib_error_at_line+:} false; then :
 
16266
  $as_echo_n "(cached) " >&6
 
16267
else
 
16268
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16269
/* end confdefs.h.  */
 
16270
#include <error.h>
 
16271
int
 
16272
main ()
 
16273
{
 
16274
error_at_line (0, 0, "", 0, "an error occurred");
 
16275
  ;
 
16276
  return 0;
 
16277
}
 
16278
_ACEOF
 
16279
if ac_fn_cxx_try_link "$LINENO"; then :
 
16280
  ac_cv_lib_error_at_line=yes
 
16281
else
 
16282
  ac_cv_lib_error_at_line=no
 
16283
fi
 
16284
rm -f core conftest.err conftest.$ac_objext \
 
16285
    conftest$ac_exeext conftest.$ac_ext
 
16286
fi
 
16287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
 
16288
$as_echo "$ac_cv_lib_error_at_line" >&6; }
 
16289
if test $ac_cv_lib_error_at_line = no; then
 
16290
  case " $LIBOBJS " in
 
16291
  *" error.$ac_objext "* ) ;;
 
16292
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
 
16293
 ;;
 
16294
esac
 
16295
 
 
16296
fi
 
16297
 
 
16298
for ac_header in vfork.h
 
16299
do :
 
16300
  ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
16301
if test "x$ac_cv_header_vfork_h" = xyes; then :
 
16302
  cat >>confdefs.h <<_ACEOF
 
16303
#define HAVE_VFORK_H 1
 
16304
_ACEOF
 
16305
 
 
16306
fi
 
16307
 
 
16308
done
 
16309
 
 
16310
for ac_func in fork vfork
 
16311
do :
 
16312
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16313
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
16314
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
16315
  cat >>confdefs.h <<_ACEOF
 
16316
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16317
_ACEOF
 
16318
 
 
16319
fi
 
16320
done
 
16321
 
 
16322
if test "x$ac_cv_func_fork" = xyes; then
 
16323
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
16324
$as_echo_n "checking for working fork... " >&6; }
 
16325
if ${ac_cv_func_fork_works+:} false; then :
 
16326
  $as_echo_n "(cached) " >&6
 
16327
else
 
16328
  if test "$cross_compiling" = yes; then :
 
16329
  ac_cv_func_fork_works=cross
 
16330
else
 
16331
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16332
/* end confdefs.h.  */
 
16333
$ac_includes_default
 
16334
int
 
16335
main ()
 
16336
{
 
16337
 
 
16338
          /* By Ruediger Kuhlmann. */
 
16339
          return fork () < 0;
 
16340
 
 
16341
  ;
 
16342
  return 0;
 
16343
}
 
16344
_ACEOF
 
16345
if ac_fn_cxx_try_run "$LINENO"; then :
 
16346
  ac_cv_func_fork_works=yes
 
16347
else
 
16348
  ac_cv_func_fork_works=no
 
16349
fi
 
16350
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16351
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16352
fi
 
16353
 
 
16354
fi
 
16355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
16356
$as_echo "$ac_cv_func_fork_works" >&6; }
 
16357
 
 
16358
else
 
16359
  ac_cv_func_fork_works=$ac_cv_func_fork
 
16360
fi
 
16361
if test "x$ac_cv_func_fork_works" = xcross; then
 
16362
  case $host in
 
16363
    *-*-amigaos* | *-*-msdosdjgpp*)
 
16364
      # Override, as these systems have only a dummy fork() stub
 
16365
      ac_cv_func_fork_works=no
 
16366
      ;;
 
16367
    *)
 
16368
      ac_cv_func_fork_works=yes
 
16369
      ;;
 
16370
  esac
 
16371
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
16372
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
16373
fi
 
16374
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
16375
if test "x$ac_cv_func_vfork" = xyes; then
 
16376
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
16377
$as_echo_n "checking for working vfork... " >&6; }
 
16378
if ${ac_cv_func_vfork_works+:} false; then :
 
16379
  $as_echo_n "(cached) " >&6
 
16380
else
 
16381
  if test "$cross_compiling" = yes; then :
 
16382
  ac_cv_func_vfork_works=cross
 
16383
else
 
16384
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16385
/* end confdefs.h.  */
 
16386
/* Thanks to Paul Eggert for this test.  */
 
16387
$ac_includes_default
 
16388
#include <sys/wait.h>
 
16389
#ifdef HAVE_VFORK_H
 
16390
# include <vfork.h>
 
16391
#endif
 
16392
/* On some sparc systems, changes by the child to local and incoming
 
16393
   argument registers are propagated back to the parent.  The compiler
 
16394
   is told about this with #include <vfork.h>, but some compilers
 
16395
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
16396
   static variable whose address is put into a register that is
 
16397
   clobbered by the vfork.  */
 
16398
static void
 
16399
#ifdef __cplusplus
 
16400
sparc_address_test (int arg)
 
16401
# else
 
16402
sparc_address_test (arg) int arg;
 
16403
#endif
 
16404
{
 
16405
  static pid_t child;
 
16406
  if (!child) {
 
16407
    child = vfork ();
 
16408
    if (child < 0) {
 
16409
      perror ("vfork");
 
16410
      _exit(2);
 
16411
    }
 
16412
    if (!child) {
 
16413
      arg = getpid();
 
16414
      write(-1, "", 0);
 
16415
      _exit (arg);
 
16416
    }
 
16417
  }
 
16418
}
 
16419
 
 
16420
int
 
16421
main ()
 
16422
{
 
16423
  pid_t parent = getpid ();
 
16424
  pid_t child;
 
16425
 
 
16426
  sparc_address_test (0);
 
16427
 
 
16428
  child = vfork ();
 
16429
 
 
16430
  if (child == 0) {
 
16431
    /* Here is another test for sparc vfork register problems.  This
 
16432
       test uses lots of local variables, at least as many local
 
16433
       variables as main has allocated so far including compiler
 
16434
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
16435
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
16436
       reuse the register of parent for one of the local variables,
 
16437
       since it will think that parent can't possibly be used any more
 
16438
       in this routine.  Assigning to the local variable will thus
 
16439
       munge parent in the parent process.  */
 
16440
    pid_t
 
16441
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
16442
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
16443
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
16444
       use the same hardware register for all 8 local variables.  */
 
16445
    if (p != p1 || p != p2 || p != p3 || p != p4
 
16446
        || p != p5 || p != p6 || p != p7)
 
16447
      _exit(1);
 
16448
 
 
16449
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
16450
       from child file descriptors.  If the child closes a descriptor
 
16451
       before it execs or exits, this munges the parent's descriptor
 
16452
       as well.  Test for this by closing stdout in the child.  */
 
16453
    _exit(close(fileno(stdout)) != 0);
 
16454
  } else {
 
16455
    int status;
 
16456
    struct stat st;
 
16457
 
 
16458
    while (wait(&status) != child)
 
16459
      ;
 
16460
    return (
 
16461
         /* Was there some problem with vforking?  */
 
16462
         child < 0
 
16463
 
 
16464
         /* Did the child fail?  (This shouldn't happen.)  */
 
16465
         || status
 
16466
 
 
16467
         /* Did the vfork/compiler bug occur?  */
 
16468
         || parent != getpid()
 
16469
 
 
16470
         /* Did the file descriptor bug occur?  */
 
16471
         || fstat(fileno(stdout), &st) != 0
 
16472
         );
 
16473
  }
 
16474
}
 
16475
_ACEOF
 
16476
if ac_fn_cxx_try_run "$LINENO"; then :
 
16477
  ac_cv_func_vfork_works=yes
 
16478
else
 
16479
  ac_cv_func_vfork_works=no
 
16480
fi
 
16481
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16482
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16483
fi
 
16484
 
 
16485
fi
 
16486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
16487
$as_echo "$ac_cv_func_vfork_works" >&6; }
 
16488
 
 
16489
fi;
 
16490
if test "x$ac_cv_func_fork_works" = xcross; then
 
16491
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
16492
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
16493
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
16494
fi
 
16495
 
 
16496
if test "x$ac_cv_func_vfork_works" = xyes; then
 
16497
 
 
16498
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
 
16499
 
 
16500
else
 
16501
 
 
16502
$as_echo "#define vfork fork" >>confdefs.h
 
16503
 
 
16504
fi
 
16505
if test "x$ac_cv_func_fork_works" = xyes; then
 
16506
 
 
16507
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
16508
 
 
16509
fi
 
16510
 
 
16511
if test $ac_cv_c_compiler_gnu = yes; then
 
16512
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
 
16513
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
 
16514
if ${ac_cv_prog_gcc_traditional+:} false; then :
 
16515
  $as_echo_n "(cached) " >&6
 
16516
else
 
16517
    ac_pattern="Autoconf.*'x'"
 
16518
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16519
/* end confdefs.h.  */
 
16520
#include <sgtty.h>
 
16521
Autoconf TIOCGETP
 
16522
_ACEOF
 
16523
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16524
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
 
16525
  ac_cv_prog_gcc_traditional=yes
 
16526
else
 
16527
  ac_cv_prog_gcc_traditional=no
 
16528
fi
 
16529
rm -f conftest*
 
16530
 
 
16531
 
 
16532
  if test $ac_cv_prog_gcc_traditional = no; then
 
16533
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16534
/* end confdefs.h.  */
 
16535
#include <termio.h>
 
16536
Autoconf TCGETA
 
16537
_ACEOF
 
16538
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16539
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
 
16540
  ac_cv_prog_gcc_traditional=yes
 
16541
fi
 
16542
rm -f conftest*
 
16543
 
 
16544
  fi
 
16545
fi
 
16546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
 
16547
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
 
16548
  if test $ac_cv_prog_gcc_traditional = yes; then
 
16549
    CC="$CC -traditional"
 
16550
  fi
 
16551
fi
 
16552
 
 
16553
for ac_header in stdlib.h
 
16554
do :
 
16555
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
16556
if test "x$ac_cv_header_stdlib_h" = xyes; then :
 
16557
  cat >>confdefs.h <<_ACEOF
 
16558
#define HAVE_STDLIB_H 1
 
16559
_ACEOF
 
16560
 
 
16561
fi
 
16562
 
 
16563
done
 
16564
 
 
16565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
 
16566
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 
16567
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
 
16568
  $as_echo_n "(cached) " >&6
 
16569
else
 
16570
  if test "$cross_compiling" = yes; then :
 
16571
  ac_cv_func_malloc_0_nonnull=no
 
16572
else
 
16573
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16574
/* end confdefs.h.  */
 
16575
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
16576
# include <stdlib.h>
 
16577
#else
 
16578
char *malloc ();
 
16579
#endif
 
16580
 
 
16581
int
 
16582
main ()
 
16583
{
 
16584
return ! malloc (0);
 
16585
  ;
 
16586
  return 0;
 
16587
}
 
16588
_ACEOF
 
16589
if ac_fn_cxx_try_run "$LINENO"; then :
 
16590
  ac_cv_func_malloc_0_nonnull=yes
 
16591
else
 
16592
  ac_cv_func_malloc_0_nonnull=no
 
16593
fi
 
16594
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16595
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16596
fi
 
16597
 
 
16598
fi
 
16599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
 
16600
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 
16601
if test $ac_cv_func_malloc_0_nonnull = yes; then :
 
16602
 
 
16603
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
 
16604
 
 
16605
else
 
16606
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
 
16607
 
 
16608
   case " $LIBOBJS " in
 
16609
  *" malloc.$ac_objext "* ) ;;
 
16610
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
16611
 ;;
 
16612
esac
 
16613
 
 
16614
 
 
16615
$as_echo "#define malloc rpl_malloc" >>confdefs.h
 
16616
 
 
16617
fi
 
16618
 
 
16619
 
 
16620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
 
16621
$as_echo_n "checking for working memcmp... " >&6; }
 
16622
if ${ac_cv_func_memcmp_working+:} false; then :
 
16623
  $as_echo_n "(cached) " >&6
 
16624
else
 
16625
  if test "$cross_compiling" = yes; then :
 
16626
  ac_cv_func_memcmp_working=no
 
16627
else
 
16628
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16629
/* end confdefs.h.  */
 
16630
$ac_includes_default
 
16631
int
 
16632
main ()
 
16633
{
 
16634
 
 
16635
  /* Some versions of memcmp are not 8-bit clean.  */
 
16636
  char c0 = '\100', c1 = '\200', c2 = '\201';
 
16637
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
16638
    return 1;
 
16639
 
 
16640
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
16641
     or more and with at least one buffer not starting on a 4-byte boundary.
 
16642
     William Lewis provided this test program.   */
 
16643
  {
 
16644
    char foo[21];
 
16645
    char bar[21];
 
16646
    int i;
 
16647
    for (i = 0; i < 4; i++)
 
16648
      {
 
16649
        char *a = foo + i;
 
16650
        char *b = bar + i;
 
16651
        strcpy (a, "--------01111111");
 
16652
        strcpy (b, "--------10000000");
 
16653
        if (memcmp (a, b, 16) >= 0)
 
16654
          return 1;
 
16655
      }
 
16656
    return 0;
 
16657
  }
 
16658
 
 
16659
  ;
 
16660
  return 0;
 
16661
}
 
16662
_ACEOF
 
16663
if ac_fn_cxx_try_run "$LINENO"; then :
 
16664
  ac_cv_func_memcmp_working=yes
 
16665
else
 
16666
  ac_cv_func_memcmp_working=no
 
16667
fi
 
16668
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16669
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16670
fi
 
16671
 
 
16672
fi
 
16673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
 
16674
$as_echo "$ac_cv_func_memcmp_working" >&6; }
 
16675
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
 
16676
  *" memcmp.$ac_objext "* ) ;;
 
16677
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
 
16678
 ;;
 
16679
esac
 
16680
 
 
16681
 
 
16682
for ac_header in stdlib.h
 
16683
do :
 
16684
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
16685
if test "x$ac_cv_header_stdlib_h" = xyes; then :
 
16686
  cat >>confdefs.h <<_ACEOF
 
16687
#define HAVE_STDLIB_H 1
 
16688
_ACEOF
 
16689
 
 
16690
fi
 
16691
 
 
16692
done
 
16693
 
 
16694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
 
16695
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
 
16696
if ${ac_cv_func_realloc_0_nonnull+:} false; then :
 
16697
  $as_echo_n "(cached) " >&6
 
16698
else
 
16699
  if test "$cross_compiling" = yes; then :
 
16700
  ac_cv_func_realloc_0_nonnull=no
 
16701
else
 
16702
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16703
/* end confdefs.h.  */
 
16704
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
16705
# include <stdlib.h>
 
16706
#else
 
16707
char *realloc ();
 
16708
#endif
 
16709
 
 
16710
int
 
16711
main ()
 
16712
{
 
16713
return ! realloc (0, 0);
 
16714
  ;
 
16715
  return 0;
 
16716
}
 
16717
_ACEOF
 
16718
if ac_fn_cxx_try_run "$LINENO"; then :
 
16719
  ac_cv_func_realloc_0_nonnull=yes
 
16720
else
 
16721
  ac_cv_func_realloc_0_nonnull=no
 
16722
fi
 
16723
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16724
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16725
fi
 
16726
 
 
16727
fi
 
16728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
 
16729
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
 
16730
if test $ac_cv_func_realloc_0_nonnull = yes; then :
 
16731
 
 
16732
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
 
16733
 
 
16734
else
 
16735
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
 
16736
 
 
16737
   case " $LIBOBJS " in
 
16738
  *" realloc.$ac_objext "* ) ;;
 
16739
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
16740
 ;;
 
16741
esac
 
16742
 
 
16743
 
 
16744
$as_echo "#define realloc rpl_realloc" >>confdefs.h
 
16745
 
 
16746
fi
 
16747
 
 
16748
 
 
16749
for ac_header in sys/select.h sys/socket.h
 
16750
do :
 
16751
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16752
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
16753
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
16754
  cat >>confdefs.h <<_ACEOF
 
16755
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
16756
_ACEOF
 
16757
 
 
16758
fi
 
16759
 
 
16760
done
 
16761
 
 
16762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
 
16763
$as_echo_n "checking types of arguments for select... " >&6; }
 
16764
if ${ac_cv_func_select_args+:} false; then :
 
16765
  $as_echo_n "(cached) " >&6
 
16766
else
 
16767
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
 
16768
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
 
16769
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
 
16770
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16771
/* end confdefs.h.  */
 
16772
$ac_includes_default
 
16773
#ifdef HAVE_SYS_SELECT_H
 
16774
# include <sys/select.h>
 
16775
#endif
 
16776
#ifdef HAVE_SYS_SOCKET_H
 
16777
# include <sys/socket.h>
 
16778
#endif
 
16779
 
 
16780
int
 
16781
main ()
 
16782
{
 
16783
extern int select ($ac_arg1,
 
16784
                                            $ac_arg234, $ac_arg234, $ac_arg234,
 
16785
                                            $ac_arg5);
 
16786
  ;
 
16787
  return 0;
 
16788
}
 
16789
_ACEOF
 
16790
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16791
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
 
16792
fi
 
16793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16794
  done
 
16795
 done
 
16796
done
 
16797
# Provide a safe default value.
 
16798
: "${ac_cv_func_select_args=int,int *,struct timeval *}"
 
16799
 
 
16800
fi
 
16801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
 
16802
$as_echo "$ac_cv_func_select_args" >&6; }
 
16803
ac_save_IFS=$IFS; IFS=','
 
16804
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
 
16805
IFS=$ac_save_IFS
 
16806
shift
 
16807
 
 
16808
cat >>confdefs.h <<_ACEOF
 
16809
#define SELECT_TYPE_ARG1 $1
 
16810
_ACEOF
 
16811
 
 
16812
 
 
16813
cat >>confdefs.h <<_ACEOF
 
16814
#define SELECT_TYPE_ARG234 ($2)
 
16815
_ACEOF
 
16816
 
 
16817
 
 
16818
cat >>confdefs.h <<_ACEOF
 
16819
#define SELECT_TYPE_ARG5 ($3)
 
16820
_ACEOF
 
16821
 
 
16822
rm -f conftest*
 
16823
 
 
16824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
16825
$as_echo_n "checking return type of signal handlers... " >&6; }
 
16826
if ${ac_cv_type_signal+:} false; then :
 
16827
  $as_echo_n "(cached) " >&6
 
16828
else
 
16829
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16830
/* end confdefs.h.  */
 
16831
#include <sys/types.h>
 
16832
#include <signal.h>
 
16833
 
 
16834
int
 
16835
main ()
 
16836
{
 
16837
return *(signal (0, 0)) (0) == 1;
 
16838
  ;
 
16839
  return 0;
 
16840
}
 
16841
_ACEOF
 
16842
if ac_fn_cxx_try_compile "$LINENO"; then :
 
16843
  ac_cv_type_signal=int
 
16844
else
 
16845
  ac_cv_type_signal=void
 
16846
fi
 
16847
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16848
fi
 
16849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
16850
$as_echo "$ac_cv_type_signal" >&6; }
 
16851
 
 
16852
cat >>confdefs.h <<_ACEOF
 
16853
#define RETSIGTYPE $ac_cv_type_signal
 
16854
_ACEOF
 
16855
 
 
16856
 
 
16857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
 
16858
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
 
16859
if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
 
16860
  $as_echo_n "(cached) " >&6
 
16861
else
 
16862
  rm -f conftest.sym conftest.file
 
16863
echo >conftest.file
 
16864
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
16865
  if test "$cross_compiling" = yes; then :
 
16866
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
16867
else
 
16868
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16869
/* end confdefs.h.  */
 
16870
$ac_includes_default
 
16871
int
 
16872
main ()
 
16873
{
 
16874
struct stat sbuf;
 
16875
     /* Linux will dereference the symlink and fail, as required by POSIX.
 
16876
        That is better in the sense that it means we will not
 
16877
        have to compile and use the lstat wrapper.  */
 
16878
     return lstat ("conftest.sym/", &sbuf) == 0;
 
16879
  ;
 
16880
  return 0;
 
16881
}
 
16882
_ACEOF
 
16883
if ac_fn_cxx_try_run "$LINENO"; then :
 
16884
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
16885
else
 
16886
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
16887
fi
 
16888
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16889
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16890
fi
 
16891
 
 
16892
else
 
16893
  # If the `ln -s' command failed, then we probably don't even
 
16894
  # have an lstat function.
 
16895
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
16896
fi
 
16897
rm -f conftest.sym conftest.file
 
16898
 
 
16899
fi
 
16900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
16901
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
16902
 
 
16903
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
16904
 
 
16905
cat >>confdefs.h <<_ACEOF
 
16906
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
16907
_ACEOF
 
16908
 
 
16909
 
 
16910
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
 
16911
  case " $LIBOBJS " in
 
16912
  *" lstat.$ac_objext "* ) ;;
 
16913
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
16914
 ;;
 
16915
esac
 
16916
 
 
16917
fi
 
16918
 
 
16919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
 
16920
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
 
16921
if ${ac_cv_func_stat_empty_string_bug+:} false; then :
 
16922
  $as_echo_n "(cached) " >&6
 
16923
else
 
16924
  if test "$cross_compiling" = yes; then :
 
16925
  ac_cv_func_stat_empty_string_bug=yes
 
16926
else
 
16927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16928
/* end confdefs.h.  */
 
16929
$ac_includes_default
 
16930
int
 
16931
main ()
 
16932
{
 
16933
struct stat sbuf;
 
16934
  return stat ("", &sbuf) == 0;
 
16935
  ;
 
16936
  return 0;
 
16937
}
 
16938
_ACEOF
 
16939
if ac_fn_cxx_try_run "$LINENO"; then :
 
16940
  ac_cv_func_stat_empty_string_bug=no
 
16941
else
 
16942
  ac_cv_func_stat_empty_string_bug=yes
 
16943
fi
 
16944
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16945
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16946
fi
 
16947
 
 
16948
fi
 
16949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
 
16950
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
 
16951
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
16952
  case " $LIBOBJS " in
 
16953
  *" stat.$ac_objext "* ) ;;
 
16954
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
16955
 ;;
 
16956
esac
 
16957
 
 
16958
 
 
16959
cat >>confdefs.h <<_ACEOF
 
16960
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
16961
_ACEOF
 
16962
 
 
16963
fi
 
16964
 
 
16965
 
 
16966
 
 
16967
 
 
16968
  for ac_header in $ac_header_list
 
16969
do :
 
16970
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16971
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
16972
"
 
16973
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
16974
  cat >>confdefs.h <<_ACEOF
 
16975
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
16976
_ACEOF
 
16977
 
 
16978
fi
 
16979
 
 
16980
done
 
16981
 
 
16982
 
 
16983
 
 
16984
 
 
16985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
 
16986
$as_echo_n "checking whether utime accepts a null argument... " >&6; }
 
16987
if ${ac_cv_func_utime_null+:} false; then :
 
16988
  $as_echo_n "(cached) " >&6
 
16989
else
 
16990
  rm -f conftest.data; >conftest.data
 
16991
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
 
16992
if test "$cross_compiling" = yes; then :
 
16993
  ac_cv_func_utime_null='guessing yes'
 
16994
else
 
16995
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16996
/* end confdefs.h.  */
 
16997
$ac_includes_default
 
16998
               #ifdef HAVE_UTIME_H
 
16999
               # include <utime.h>
 
17000
               #endif
 
17001
int
 
17002
main ()
 
17003
{
 
17004
struct stat s, t;
 
17005
  return ! (stat ("conftest.data", &s) == 0
 
17006
            && utime ("conftest.data", 0) == 0
 
17007
            && stat ("conftest.data", &t) == 0
 
17008
            && t.st_mtime >= s.st_mtime
 
17009
            && t.st_mtime - s.st_mtime < 120);
 
17010
  ;
 
17011
  return 0;
 
17012
}
 
17013
_ACEOF
 
17014
if ac_fn_cxx_try_run "$LINENO"; then :
 
17015
  ac_cv_func_utime_null=yes
 
17016
else
 
17017
  ac_cv_func_utime_null=no
 
17018
fi
 
17019
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
17020
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
17021
fi
 
17022
 
 
17023
fi
 
17024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
 
17025
$as_echo "$ac_cv_func_utime_null" >&6; }
 
17026
if test "x$ac_cv_func_utime_null" != xno; then
 
17027
  ac_cv_func_utime_null=yes
 
17028
 
 
17029
$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
 
17030
 
 
17031
fi
 
17032
rm -f conftest.data
 
17033
 
 
17034
for ac_func in vprintf
 
17035
do :
 
17036
  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
 
17037
if test "x$ac_cv_func_vprintf" = xyes; then :
 
17038
  cat >>confdefs.h <<_ACEOF
 
17039
#define HAVE_VPRINTF 1
 
17040
_ACEOF
 
17041
 
 
17042
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
 
17043
if test "x$ac_cv_func__doprnt" = xyes; then :
 
17044
 
 
17045
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
 
17046
 
 
17047
fi
 
17048
 
 
17049
fi
 
17050
done
 
17051
 
 
17052
 
 
17053
 
 
17054
 
 
17055
 
 
17056
 
 
17057
 
 
17058
 
 
17059
 
 
17060
 
 
17061
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
17062
        if test -n "$ac_tool_prefix"; then
 
17063
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
17064
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
17065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17066
$as_echo_n "checking for $ac_word... " >&6; }
 
17067
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
17068
  $as_echo_n "(cached) " >&6
 
17069
else
 
17070
  case $PKG_CONFIG in
 
17071
  [\\/]* | ?:[\\/]*)
 
17072
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
17073
  ;;
 
17074
  *)
 
17075
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17076
for as_dir in $PATH
 
17077
do
 
17078
  IFS=$as_save_IFS
 
17079
  test -z "$as_dir" && as_dir=.
 
17080
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17081
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17082
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
17083
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17084
    break 2
 
17085
  fi
 
17086
done
 
17087
  done
 
17088
IFS=$as_save_IFS
 
17089
 
 
17090
  ;;
 
17091
esac
 
17092
fi
 
17093
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
17094
if test -n "$PKG_CONFIG"; then
 
17095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
17096
$as_echo "$PKG_CONFIG" >&6; }
 
17097
else
 
17098
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17099
$as_echo "no" >&6; }
 
17100
fi
 
17101
 
 
17102
 
 
17103
fi
 
17104
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
17105
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
17106
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
17107
set dummy pkg-config; ac_word=$2
 
17108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17109
$as_echo_n "checking for $ac_word... " >&6; }
 
17110
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
17111
  $as_echo_n "(cached) " >&6
 
17112
else
 
17113
  case $ac_pt_PKG_CONFIG in
 
17114
  [\\/]* | ?:[\\/]*)
 
17115
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
17116
  ;;
 
17117
  *)
 
17118
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17119
for as_dir in $PATH
 
17120
do
 
17121
  IFS=$as_save_IFS
 
17122
  test -z "$as_dir" && as_dir=.
 
17123
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17124
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17125
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
17126
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17127
    break 2
 
17128
  fi
 
17129
done
 
17130
  done
 
17131
IFS=$as_save_IFS
 
17132
 
 
17133
  ;;
 
17134
esac
 
17135
fi
 
17136
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
17137
if test -n "$ac_pt_PKG_CONFIG"; then
 
17138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
17139
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
17140
else
 
17141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17142
$as_echo "no" >&6; }
 
17143
fi
 
17144
 
 
17145
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
17146
    PKG_CONFIG=""
 
17147
  else
 
17148
    case $cross_compiling:$ac_tool_warned in
 
17149
yes:)
 
17150
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
17151
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
17152
ac_tool_warned=yes ;;
 
17153
esac
 
17154
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
17155
  fi
 
17156
else
 
17157
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
17158
fi
 
17159
 
 
17160
fi
 
17161
if test -n "$PKG_CONFIG"; then
 
17162
        _pkg_min_version=0.9.0
 
17163
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
17164
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
17165
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
17166
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17167
$as_echo "yes" >&6; }
 
17168
        else
 
17169
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17170
$as_echo "no" >&6; }
 
17171
                PKG_CONFIG=""
 
17172
        fi
 
17173
fi
 
17174
 
 
17175
UUID_MIN_VERSION=1.0
 
17176
 
 
17177
pkg_failed=no
 
17178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
 
17179
$as_echo_n "checking for UUID... " >&6; }
 
17180
 
 
17181
if test -n "$UUID_CFLAGS"; then
 
17182
    pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
 
17183
 elif test -n "$PKG_CONFIG"; then
 
17184
    if test -n "$PKG_CONFIG" && \
 
17185
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= \${UUID_MIN_VERSION}\""; } >&5
 
17186
  ($PKG_CONFIG --exists --print-errors "uuid >= ${UUID_MIN_VERSION}") 2>&5
 
17187
  ac_status=$?
 
17188
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17189
  test $ac_status = 0; }; then
 
17190
  pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= ${UUID_MIN_VERSION}" 2>/dev/null`
 
17191
                      test "x$?" != "x0" && pkg_failed=yes
 
17192
else
 
17193
  pkg_failed=yes
 
17194
fi
 
17195
 else
 
17196
    pkg_failed=untried
 
17197
fi
 
17198
if test -n "$UUID_LIBS"; then
 
17199
    pkg_cv_UUID_LIBS="$UUID_LIBS"
 
17200
 elif test -n "$PKG_CONFIG"; then
 
17201
    if test -n "$PKG_CONFIG" && \
 
17202
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= \${UUID_MIN_VERSION}\""; } >&5
 
17203
  ($PKG_CONFIG --exists --print-errors "uuid >= ${UUID_MIN_VERSION}") 2>&5
 
17204
  ac_status=$?
 
17205
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17206
  test $ac_status = 0; }; then
 
17207
  pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid >= ${UUID_MIN_VERSION}" 2>/dev/null`
 
17208
                      test "x$?" != "x0" && pkg_failed=yes
 
17209
else
 
17210
  pkg_failed=yes
 
17211
fi
 
17212
 else
 
17213
    pkg_failed=untried
 
17214
fi
 
17215
 
 
17216
 
 
17217
 
 
17218
if test $pkg_failed = yes; then
 
17219
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17220
$as_echo "no" >&6; }
 
17221
 
 
17222
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17223
        _pkg_short_errors_supported=yes
 
17224
else
 
17225
        _pkg_short_errors_supported=no
 
17226
fi
 
17227
        if test $_pkg_short_errors_supported = yes; then
 
17228
                UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= ${UUID_MIN_VERSION}" 2>&1`
 
17229
        else
 
17230
                UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= ${UUID_MIN_VERSION}" 2>&1`
 
17231
        fi
 
17232
        # Put the nasty error message in config.log where it belongs
 
17233
        echo "$UUID_PKG_ERRORS" >&5
 
17234
 
 
17235
        HAVE_UUID=false
 
17236
elif test $pkg_failed = untried; then
 
17237
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17238
$as_echo "no" >&6; }
 
17239
        HAVE_UUID=false
 
17240
else
 
17241
        UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
 
17242
        UUID_LIBS=$pkg_cv_UUID_LIBS
 
17243
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17244
$as_echo "yes" >&6; }
 
17245
        HAVE_UUID=true
 
17246
fi;
 
17247
 
 
17248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yaml_parser_initialize" >&5
 
17249
$as_echo_n "checking for library containing yaml_parser_initialize... " >&6; }
 
17250
if ${ac_cv_search_yaml_parser_initialize+:} false; then :
 
17251
  $as_echo_n "(cached) " >&6
 
17252
else
 
17253
  ac_func_search_save_LIBS=$LIBS
 
17254
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17255
/* end confdefs.h.  */
 
17256
 
 
17257
/* Override any GCC internal prototype to avoid an error.
 
17258
   Use char because int might match the return type of a GCC
 
17259
   builtin and then its argument prototype would still apply.  */
 
17260
#ifdef __cplusplus
 
17261
extern "C"
 
17262
#endif
 
17263
char yaml_parser_initialize ();
 
17264
int
 
17265
main ()
 
17266
{
 
17267
return yaml_parser_initialize ();
 
17268
  ;
 
17269
  return 0;
 
17270
}
 
17271
_ACEOF
 
17272
for ac_lib in '' yaml; do
 
17273
  if test -z "$ac_lib"; then
 
17274
    ac_res="none required"
 
17275
  else
 
17276
    ac_res=-l$ac_lib
 
17277
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
17278
  fi
 
17279
  if ac_fn_cxx_try_link "$LINENO"; then :
 
17280
  ac_cv_search_yaml_parser_initialize=$ac_res
 
17281
fi
 
17282
rm -f core conftest.err conftest.$ac_objext \
 
17283
    conftest$ac_exeext
 
17284
  if ${ac_cv_search_yaml_parser_initialize+:} false; then :
 
17285
  break
 
17286
fi
 
17287
done
 
17288
if ${ac_cv_search_yaml_parser_initialize+:} false; then :
 
17289
 
 
17290
else
 
17291
  ac_cv_search_yaml_parser_initialize=no
 
17292
fi
 
17293
rm conftest.$ac_ext
 
17294
LIBS=$ac_func_search_save_LIBS
 
17295
fi
 
17296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yaml_parser_initialize" >&5
 
17297
$as_echo "$ac_cv_search_yaml_parser_initialize" >&6; }
 
17298
ac_res=$ac_cv_search_yaml_parser_initialize
 
17299
if test "$ac_res" != no; then :
 
17300
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
17301
  YAML_LIBS=-lyaml
 
17302
 
 
17303
else
 
17304
 
 
17305
       as_fn_error $? "Unable to find yaml development files" "$LINENO" 5
 
17306
fi
 
17307
 
 
17308
 
 
17309
LIBCRYPTO_MIN_VERSION=1.0
 
17310
 
 
17311
pkg_failed=no
 
17312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPTO" >&5
 
17313
$as_echo_n "checking for LIBCRYPTO... " >&6; }
 
17314
 
 
17315
if test -n "$LIBCRYPTO_CFLAGS"; then
 
17316
    pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS"
 
17317
 elif test -n "$PKG_CONFIG"; then
 
17318
    if test -n "$PKG_CONFIG" && \
 
17319
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= \${LIBCRYPTO_MIN_VERSION}\""; } >&5
 
17320
  ($PKG_CONFIG --exists --print-errors "libcrypto >= ${LIBCRYPTO_MIN_VERSION}") 2>&5
 
17321
  ac_status=$?
 
17322
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17323
  test $ac_status = 0; }; then
 
17324
  pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= ${LIBCRYPTO_MIN_VERSION}" 2>/dev/null`
 
17325
                      test "x$?" != "x0" && pkg_failed=yes
 
17326
else
 
17327
  pkg_failed=yes
 
17328
fi
 
17329
 else
 
17330
    pkg_failed=untried
 
17331
fi
 
17332
if test -n "$LIBCRYPTO_LIBS"; then
 
17333
    pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS"
 
17334
 elif test -n "$PKG_CONFIG"; then
 
17335
    if test -n "$PKG_CONFIG" && \
 
17336
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= \${LIBCRYPTO_MIN_VERSION}\""; } >&5
 
17337
  ($PKG_CONFIG --exists --print-errors "libcrypto >= ${LIBCRYPTO_MIN_VERSION}") 2>&5
 
17338
  ac_status=$?
 
17339
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17340
  test $ac_status = 0; }; then
 
17341
  pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= ${LIBCRYPTO_MIN_VERSION}" 2>/dev/null`
 
17342
                      test "x$?" != "x0" && pkg_failed=yes
 
17343
else
 
17344
  pkg_failed=yes
 
17345
fi
 
17346
 else
 
17347
    pkg_failed=untried
 
17348
fi
 
17349
 
 
17350
 
 
17351
 
 
17352
if test $pkg_failed = yes; then
 
17353
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17354
$as_echo "no" >&6; }
 
17355
 
 
17356
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17357
        _pkg_short_errors_supported=yes
 
17358
else
 
17359
        _pkg_short_errors_supported=no
 
17360
fi
 
17361
        if test $_pkg_short_errors_supported = yes; then
 
17362
                LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= ${LIBCRYPTO_MIN_VERSION}" 2>&1`
 
17363
        else
 
17364
                LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= ${LIBCRYPTO_MIN_VERSION}" 2>&1`
 
17365
        fi
 
17366
        # Put the nasty error message in config.log where it belongs
 
17367
        echo "$LIBCRYPTO_PKG_ERRORS" >&5
 
17368
 
 
17369
        HAVE_LIBCRYPTO=false
 
17370
elif test $pkg_failed = untried; then
 
17371
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17372
$as_echo "no" >&6; }
 
17373
        HAVE_LIBCRYPTO=false
 
17374
else
 
17375
        LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS
 
17376
        LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS
 
17377
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17378
$as_echo "yes" >&6; }
 
17379
        HAVE_LIBCRYPTO=true
 
17380
fi;
 
17381
 
 
17382
ALSA_MIN_VERSION=1.0
 
17383
 
 
17384
pkg_failed=no
 
17385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
 
17386
$as_echo_n "checking for ALSA... " >&6; }
 
17387
 
 
17388
if test -n "$ALSA_CFLAGS"; then
 
17389
    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 
17390
 elif test -n "$PKG_CONFIG"; then
 
17391
    if test -n "$PKG_CONFIG" && \
 
17392
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= \${ALSA_MIN_VERSION}\""; } >&5
 
17393
  ($PKG_CONFIG --exists --print-errors "alsa >= ${ALSA_MIN_VERSION}") 2>&5
 
17394
  ac_status=$?
 
17395
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17396
  test $ac_status = 0; }; then
 
17397
  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= ${ALSA_MIN_VERSION}" 2>/dev/null`
 
17398
                      test "x$?" != "x0" && pkg_failed=yes
 
17399
else
 
17400
  pkg_failed=yes
 
17401
fi
 
17402
 else
 
17403
    pkg_failed=untried
 
17404
fi
 
17405
if test -n "$ALSA_LIBS"; then
 
17406
    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 
17407
 elif test -n "$PKG_CONFIG"; then
 
17408
    if test -n "$PKG_CONFIG" && \
 
17409
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= \${ALSA_MIN_VERSION}\""; } >&5
 
17410
  ($PKG_CONFIG --exists --print-errors "alsa >= ${ALSA_MIN_VERSION}") 2>&5
 
17411
  ac_status=$?
 
17412
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17413
  test $ac_status = 0; }; then
 
17414
  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= ${ALSA_MIN_VERSION}" 2>/dev/null`
 
17415
                      test "x$?" != "x0" && pkg_failed=yes
 
17416
else
 
17417
  pkg_failed=yes
 
17418
fi
 
17419
 else
 
17420
    pkg_failed=untried
 
17421
fi
 
17422
 
 
17423
 
 
17424
 
 
17425
if test $pkg_failed = yes; then
 
17426
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17427
$as_echo "no" >&6; }
 
17428
 
 
17429
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17430
        _pkg_short_errors_supported=yes
 
17431
else
 
17432
        _pkg_short_errors_supported=no
 
17433
fi
 
17434
        if test $_pkg_short_errors_supported = yes; then
 
17435
                ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa >= ${ALSA_MIN_VERSION}" 2>&1`
 
17436
        else
 
17437
                ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa >= ${ALSA_MIN_VERSION}" 2>&1`
 
17438
        fi
 
17439
        # Put the nasty error message in config.log where it belongs
 
17440
        echo "$ALSA_PKG_ERRORS" >&5
 
17441
 
 
17442
        as_fn_error $? "Missing alsa development package: libasound2-dev or alsa-lib-devel" "$LINENO" 5
 
17443
elif test $pkg_failed = untried; then
 
17444
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17445
$as_echo "no" >&6; }
 
17446
        as_fn_error $? "Missing alsa development package: libasound2-dev or alsa-lib-devel" "$LINENO" 5
 
17447
else
 
17448
        ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 
17449
        ALSA_LIBS=$pkg_cv_ALSA_LIBS
 
17450
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17451
$as_echo "yes" >&6; }
 
17452
 
 
17453
fi
 
17454
 
 
17455
LIBPULSE_MIN_VERSION=0.9.15
 
17456
 
 
17457
pkg_failed=no
 
17458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
 
17459
$as_echo_n "checking for PULSEAUDIO... " >&6; }
 
17460
 
 
17461
if test -n "$PULSEAUDIO_CFLAGS"; then
 
17462
    pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
 
17463
 elif test -n "$PKG_CONFIG"; then
 
17464
    if test -n "$PKG_CONFIG" && \
 
17465
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= \${LIBPULSE_MIN_VERSION}\""; } >&5
 
17466
  ($PKG_CONFIG --exists --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}") 2>&5
 
17467
  ac_status=$?
 
17468
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17469
  test $ac_status = 0; }; then
 
17470
  pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>/dev/null`
 
17471
                      test "x$?" != "x0" && pkg_failed=yes
 
17472
else
 
17473
  pkg_failed=yes
 
17474
fi
 
17475
 else
 
17476
    pkg_failed=untried
 
17477
fi
 
17478
if test -n "$PULSEAUDIO_LIBS"; then
 
17479
    pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
 
17480
 elif test -n "$PKG_CONFIG"; then
 
17481
    if test -n "$PKG_CONFIG" && \
 
17482
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= \${LIBPULSE_MIN_VERSION}\""; } >&5
 
17483
  ($PKG_CONFIG --exists --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}") 2>&5
 
17484
  ac_status=$?
 
17485
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17486
  test $ac_status = 0; }; then
 
17487
  pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>/dev/null`
 
17488
                      test "x$?" != "x0" && pkg_failed=yes
 
17489
else
 
17490
  pkg_failed=yes
 
17491
fi
 
17492
 else
 
17493
    pkg_failed=untried
 
17494
fi
 
17495
 
 
17496
 
 
17497
 
 
17498
if test $pkg_failed = yes; then
 
17499
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17500
$as_echo "no" >&6; }
 
17501
 
 
17502
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17503
        _pkg_short_errors_supported=yes
 
17504
else
 
17505
        _pkg_short_errors_supported=no
 
17506
fi
 
17507
        if test $_pkg_short_errors_supported = yes; then
 
17508
                PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>&1`
 
17509
        else
 
17510
                PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>&1`
 
17511
        fi
 
17512
        # Put the nasty error message in config.log where it belongs
 
17513
        echo "$PULSEAUDIO_PKG_ERRORS" >&5
 
17514
 
 
17515
        as_fn_error $? "Missing pulseaudio development package: libpulse-dev" "$LINENO" 5
 
17516
elif test $pkg_failed = untried; then
 
17517
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17518
$as_echo "no" >&6; }
 
17519
        as_fn_error $? "Missing pulseaudio development package: libpulse-dev" "$LINENO" 5
 
17520
else
 
17521
        PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
 
17522
        PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
 
17523
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17524
$as_echo "yes" >&6; }
 
17525
 
 
17526
fi
 
17527
 
 
17528
LIBSAMPLERATE_MIN_VERSION=0.1.2
 
17529
 
 
17530
pkg_failed=no
 
17531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAMPLERATE" >&5
 
17532
$as_echo_n "checking for SAMPLERATE... " >&6; }
 
17533
 
 
17534
if test -n "$SAMPLERATE_CFLAGS"; then
 
17535
    pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
 
17536
 elif test -n "$PKG_CONFIG"; then
 
17537
    if test -n "$PKG_CONFIG" && \
 
17538
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= \${LIBSAMPLERATE_MIN_VERSION}\""; } >&5
 
17539
  ($PKG_CONFIG --exists --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}") 2>&5
 
17540
  ac_status=$?
 
17541
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17542
  test $ac_status = 0; }; then
 
17543
  pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>/dev/null`
 
17544
                      test "x$?" != "x0" && pkg_failed=yes
 
17545
else
 
17546
  pkg_failed=yes
 
17547
fi
 
17548
 else
 
17549
    pkg_failed=untried
 
17550
fi
 
17551
if test -n "$SAMPLERATE_LIBS"; then
 
17552
    pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
 
17553
 elif test -n "$PKG_CONFIG"; then
 
17554
    if test -n "$PKG_CONFIG" && \
 
17555
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= \${LIBSAMPLERATE_MIN_VERSION}\""; } >&5
 
17556
  ($PKG_CONFIG --exists --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}") 2>&5
 
17557
  ac_status=$?
 
17558
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17559
  test $ac_status = 0; }; then
 
17560
  pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>/dev/null`
 
17561
                      test "x$?" != "x0" && pkg_failed=yes
 
17562
else
 
17563
  pkg_failed=yes
 
17564
fi
 
17565
 else
 
17566
    pkg_failed=untried
 
17567
fi
 
17568
 
 
17569
 
 
17570
 
 
17571
if test $pkg_failed = yes; then
 
17572
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17573
$as_echo "no" >&6; }
 
17574
 
 
17575
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17576
        _pkg_short_errors_supported=yes
 
17577
else
 
17578
        _pkg_short_errors_supported=no
 
17579
fi
 
17580
        if test $_pkg_short_errors_supported = yes; then
 
17581
                SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>&1`
 
17582
        else
 
17583
                SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>&1`
 
17584
        fi
 
17585
        # Put the nasty error message in config.log where it belongs
 
17586
        echo "$SAMPLERATE_PKG_ERRORS" >&5
 
17587
 
 
17588
        as_fn_error $? "Missing libsamplerate development package: libsamplerate0-dev" "$LINENO" 5
 
17589
elif test $pkg_failed = untried; then
 
17590
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17591
$as_echo "no" >&6; }
 
17592
        as_fn_error $? "Missing libsamplerate development package: libsamplerate0-dev" "$LINENO" 5
 
17593
else
 
17594
        SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
 
17595
        SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
 
17596
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17597
$as_echo "yes" >&6; }
 
17598
 
 
17599
fi
 
17600
 
 
17601
LIBCCGNU2_MIN_VERSION=1.3.1
 
17602
 
 
17603
pkg_failed=no
 
17604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCGNU2" >&5
 
17605
$as_echo_n "checking for CCGNU2... " >&6; }
 
17606
 
 
17607
if test -n "$CCGNU2_CFLAGS"; then
 
17608
    pkg_cv_CCGNU2_CFLAGS="$CCGNU2_CFLAGS"
 
17609
 elif test -n "$PKG_CONFIG"; then
 
17610
    if test -n "$PKG_CONFIG" && \
 
17611
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"commoncpp >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
 
17612
  ($PKG_CONFIG --exists --print-errors "commoncpp >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
 
17613
  ac_status=$?
 
17614
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17615
  test $ac_status = 0; }; then
 
17616
  pkg_cv_CCGNU2_CFLAGS=`$PKG_CONFIG --cflags "commoncpp >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
 
17617
                      test "x$?" != "x0" && pkg_failed=yes
 
17618
else
 
17619
  pkg_failed=yes
 
17620
fi
 
17621
 else
 
17622
    pkg_failed=untried
 
17623
fi
 
17624
if test -n "$CCGNU2_LIBS"; then
 
17625
    pkg_cv_CCGNU2_LIBS="$CCGNU2_LIBS"
 
17626
 elif test -n "$PKG_CONFIG"; then
 
17627
    if test -n "$PKG_CONFIG" && \
 
17628
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"commoncpp >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
 
17629
  ($PKG_CONFIG --exists --print-errors "commoncpp >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
 
17630
  ac_status=$?
 
17631
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17632
  test $ac_status = 0; }; then
 
17633
  pkg_cv_CCGNU2_LIBS=`$PKG_CONFIG --libs "commoncpp >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
 
17634
                      test "x$?" != "x0" && pkg_failed=yes
 
17635
else
 
17636
  pkg_failed=yes
 
17637
fi
 
17638
 else
 
17639
    pkg_failed=untried
 
17640
fi
 
17641
 
 
17642
 
 
17643
 
 
17644
if test $pkg_failed = yes; then
 
17645
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17646
$as_echo "no" >&6; }
 
17647
 
 
17648
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17649
        _pkg_short_errors_supported=yes
 
17650
else
 
17651
        _pkg_short_errors_supported=no
 
17652
fi
 
17653
        if test $_pkg_short_errors_supported = yes; then
 
17654
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "commoncpp >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
 
17655
        else
 
17656
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "commoncpp >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
 
17657
        fi
 
17658
        # Put the nasty error message in config.log where it belongs
 
17659
        echo "$CCGNU2_PKG_ERRORS" >&5
 
17660
 
 
17661
 
 
17662
 
 
17663
pkg_failed=no
 
17664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCGNU2" >&5
 
17665
$as_echo_n "checking for CCGNU2... " >&6; }
 
17666
 
 
17667
if test -n "$CCGNU2_CFLAGS"; then
 
17668
    pkg_cv_CCGNU2_CFLAGS="$CCGNU2_CFLAGS"
 
17669
 elif test -n "$PKG_CONFIG"; then
 
17670
    if test -n "$PKG_CONFIG" && \
 
17671
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
 
17672
  ($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
 
17673
  ac_status=$?
 
17674
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17675
  test $ac_status = 0; }; then
 
17676
  pkg_cv_CCGNU2_CFLAGS=`$PKG_CONFIG --cflags "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
 
17677
                      test "x$?" != "x0" && pkg_failed=yes
 
17678
else
 
17679
  pkg_failed=yes
 
17680
fi
 
17681
 else
 
17682
    pkg_failed=untried
 
17683
fi
 
17684
if test -n "$CCGNU2_LIBS"; then
 
17685
    pkg_cv_CCGNU2_LIBS="$CCGNU2_LIBS"
 
17686
 elif test -n "$PKG_CONFIG"; then
 
17687
    if test -n "$PKG_CONFIG" && \
 
17688
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
 
17689
  ($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
 
17690
  ac_status=$?
 
17691
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17692
  test $ac_status = 0; }; then
 
17693
  pkg_cv_CCGNU2_LIBS=`$PKG_CONFIG --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
 
17694
                      test "x$?" != "x0" && pkg_failed=yes
 
17695
else
 
17696
  pkg_failed=yes
 
17697
fi
 
17698
 else
 
17699
    pkg_failed=untried
 
17700
fi
 
17701
 
 
17702
 
 
17703
 
 
17704
if test $pkg_failed = yes; then
 
17705
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17706
$as_echo "no" >&6; }
 
17707
 
 
17708
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17709
        _pkg_short_errors_supported=yes
 
17710
else
 
17711
        _pkg_short_errors_supported=no
 
17712
fi
 
17713
        if test $_pkg_short_errors_supported = yes; then
 
17714
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
 
17715
        else
 
17716
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
 
17717
        fi
 
17718
        # Put the nasty error message in config.log where it belongs
 
17719
        echo "$CCGNU2_PKG_ERRORS" >&5
 
17720
 
 
17721
        as_fn_error $? "Missing common cpp development package: libcommoncpp2-dev" "$LINENO" 5
 
17722
elif test $pkg_failed = untried; then
 
17723
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17724
$as_echo "no" >&6; }
 
17725
        as_fn_error $? "Missing common cpp development package: libcommoncpp2-dev" "$LINENO" 5
 
17726
else
 
17727
        CCGNU2_CFLAGS=$pkg_cv_CCGNU2_CFLAGS
 
17728
        CCGNU2_LIBS=$pkg_cv_CCGNU2_LIBS
 
17729
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17730
$as_echo "yes" >&6; }
 
17731
 
 
17732
cat >>confdefs.h <<_ACEOF
 
17733
#define CCPP_PREFIX 1
 
17734
_ACEOF
 
17735
 
 
17736
fi
 
17737
 
 
17738
elif test $pkg_failed = untried; then
 
17739
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17740
$as_echo "no" >&6; }
 
17741
 
 
17742
 
 
17743
pkg_failed=no
 
17744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCGNU2" >&5
 
17745
$as_echo_n "checking for CCGNU2... " >&6; }
 
17746
 
 
17747
if test -n "$CCGNU2_CFLAGS"; then
 
17748
    pkg_cv_CCGNU2_CFLAGS="$CCGNU2_CFLAGS"
 
17749
 elif test -n "$PKG_CONFIG"; then
 
17750
    if test -n "$PKG_CONFIG" && \
 
17751
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
 
17752
  ($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
 
17753
  ac_status=$?
 
17754
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17755
  test $ac_status = 0; }; then
 
17756
  pkg_cv_CCGNU2_CFLAGS=`$PKG_CONFIG --cflags "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
 
17757
                      test "x$?" != "x0" && pkg_failed=yes
 
17758
else
 
17759
  pkg_failed=yes
 
17760
fi
 
17761
 else
 
17762
    pkg_failed=untried
 
17763
fi
 
17764
if test -n "$CCGNU2_LIBS"; then
 
17765
    pkg_cv_CCGNU2_LIBS="$CCGNU2_LIBS"
 
17766
 elif test -n "$PKG_CONFIG"; then
 
17767
    if test -n "$PKG_CONFIG" && \
 
17768
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
 
17769
  ($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
 
17770
  ac_status=$?
 
17771
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17772
  test $ac_status = 0; }; then
 
17773
  pkg_cv_CCGNU2_LIBS=`$PKG_CONFIG --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
 
17774
                      test "x$?" != "x0" && pkg_failed=yes
 
17775
else
 
17776
  pkg_failed=yes
 
17777
fi
 
17778
 else
 
17779
    pkg_failed=untried
 
17780
fi
 
17781
 
 
17782
 
 
17783
 
 
17784
if test $pkg_failed = yes; then
 
17785
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17786
$as_echo "no" >&6; }
 
17787
 
 
17788
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17789
        _pkg_short_errors_supported=yes
 
17790
else
 
17791
        _pkg_short_errors_supported=no
 
17792
fi
 
17793
        if test $_pkg_short_errors_supported = yes; then
 
17794
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
 
17795
        else
 
17796
                CCGNU2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
 
17797
        fi
 
17798
        # Put the nasty error message in config.log where it belongs
 
17799
        echo "$CCGNU2_PKG_ERRORS" >&5
 
17800
 
 
17801
        as_fn_error $? "Missing common cpp development package: libcommoncpp2-dev" "$LINENO" 5
 
17802
elif test $pkg_failed = untried; then
 
17803
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17804
$as_echo "no" >&6; }
 
17805
        as_fn_error $? "Missing common cpp development package: libcommoncpp2-dev" "$LINENO" 5
 
17806
else
 
17807
        CCGNU2_CFLAGS=$pkg_cv_CCGNU2_CFLAGS
 
17808
        CCGNU2_LIBS=$pkg_cv_CCGNU2_LIBS
 
17809
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17810
$as_echo "yes" >&6; }
 
17811
 
 
17812
cat >>confdefs.h <<_ACEOF
 
17813
#define CCPP_PREFIX 1
 
17814
_ACEOF
 
17815
 
 
17816
fi
 
17817
 
 
17818
else
 
17819
        CCGNU2_CFLAGS=$pkg_cv_CCGNU2_CFLAGS
 
17820
        CCGNU2_LIBS=$pkg_cv_CCGNU2_LIBS
 
17821
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17822
$as_echo "yes" >&6; }
 
17823
 
 
17824
cat >>confdefs.h <<_ACEOF
 
17825
#define COMMONCPP_PREFIX 1
 
17826
_ACEOF
 
17827
 
 
17828
fi
 
17829
 
 
17830
LIBCCRTP_MIN_VERSION=1.3.0
 
17831
 
 
17832
pkg_failed=no
 
17833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCRTP" >&5
 
17834
$as_echo_n "checking for CCRTP... " >&6; }
 
17835
 
 
17836
if test -n "$CCRTP_CFLAGS"; then
 
17837
    pkg_cv_CCRTP_CFLAGS="$CCRTP_CFLAGS"
 
17838
 elif test -n "$PKG_CONFIG"; then
 
17839
    if test -n "$PKG_CONFIG" && \
 
17840
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp >= \${LIBCCRTP_MIN_VERSION}\""; } >&5
 
17841
  ($PKG_CONFIG --exists --print-errors "libccrtp >= ${LIBCCRTP_MIN_VERSION}") 2>&5
 
17842
  ac_status=$?
 
17843
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17844
  test $ac_status = 0; }; then
 
17845
  pkg_cv_CCRTP_CFLAGS=`$PKG_CONFIG --cflags "libccrtp >= ${LIBCCRTP_MIN_VERSION}" 2>/dev/null`
 
17846
                      test "x$?" != "x0" && pkg_failed=yes
 
17847
else
 
17848
  pkg_failed=yes
 
17849
fi
 
17850
 else
 
17851
    pkg_failed=untried
 
17852
fi
 
17853
if test -n "$CCRTP_LIBS"; then
 
17854
    pkg_cv_CCRTP_LIBS="$CCRTP_LIBS"
 
17855
 elif test -n "$PKG_CONFIG"; then
 
17856
    if test -n "$PKG_CONFIG" && \
 
17857
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp >= \${LIBCCRTP_MIN_VERSION}\""; } >&5
 
17858
  ($PKG_CONFIG --exists --print-errors "libccrtp >= ${LIBCCRTP_MIN_VERSION}") 2>&5
 
17859
  ac_status=$?
 
17860
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17861
  test $ac_status = 0; }; then
 
17862
  pkg_cv_CCRTP_LIBS=`$PKG_CONFIG --libs "libccrtp >= ${LIBCCRTP_MIN_VERSION}" 2>/dev/null`
 
17863
                      test "x$?" != "x0" && pkg_failed=yes
 
17864
else
 
17865
  pkg_failed=yes
 
17866
fi
 
17867
 else
 
17868
    pkg_failed=untried
 
17869
fi
 
17870
 
 
17871
 
 
17872
 
 
17873
if test $pkg_failed = yes; then
 
17874
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17875
$as_echo "no" >&6; }
 
17876
 
 
17877
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17878
        _pkg_short_errors_supported=yes
 
17879
else
 
17880
        _pkg_short_errors_supported=no
 
17881
fi
 
17882
        if test $_pkg_short_errors_supported = yes; then
 
17883
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libccrtp >= ${LIBCCRTP_MIN_VERSION}" 2>&1`
 
17884
        else
 
17885
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libccrtp >= ${LIBCCRTP_MIN_VERSION}" 2>&1`
 
17886
        fi
 
17887
        # Put the nasty error message in config.log where it belongs
 
17888
        echo "$CCRTP_PKG_ERRORS" >&5
 
17889
 
 
17890
 
 
17891
 
 
17892
pkg_failed=no
 
17893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCRTP" >&5
 
17894
$as_echo_n "checking for CCRTP... " >&6; }
 
17895
 
 
17896
if test -n "$CCRTP_CFLAGS"; then
 
17897
    pkg_cv_CCRTP_CFLAGS="$CCRTP_CFLAGS"
 
17898
 elif test -n "$PKG_CONFIG"; then
 
17899
    if test -n "$PKG_CONFIG" && \
 
17900
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRTP_MIN_VERSION}\""; } >&5
 
17901
  ($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}") 2>&5
 
17902
  ac_status=$?
 
17903
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17904
  test $ac_status = 0; }; then
 
17905
  pkg_cv_CCRTP_CFLAGS=`$PKG_CONFIG --cflags "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>/dev/null`
 
17906
                      test "x$?" != "x0" && pkg_failed=yes
 
17907
else
 
17908
  pkg_failed=yes
 
17909
fi
 
17910
 else
 
17911
    pkg_failed=untried
 
17912
fi
 
17913
if test -n "$CCRTP_LIBS"; then
 
17914
    pkg_cv_CCRTP_LIBS="$CCRTP_LIBS"
 
17915
 elif test -n "$PKG_CONFIG"; then
 
17916
    if test -n "$PKG_CONFIG" && \
 
17917
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRTP_MIN_VERSION}\""; } >&5
 
17918
  ($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}") 2>&5
 
17919
  ac_status=$?
 
17920
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17921
  test $ac_status = 0; }; then
 
17922
  pkg_cv_CCRTP_LIBS=`$PKG_CONFIG --libs "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>/dev/null`
 
17923
                      test "x$?" != "x0" && pkg_failed=yes
 
17924
else
 
17925
  pkg_failed=yes
 
17926
fi
 
17927
 else
 
17928
    pkg_failed=untried
 
17929
fi
 
17930
 
 
17931
 
 
17932
 
 
17933
if test $pkg_failed = yes; then
 
17934
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17935
$as_echo "no" >&6; }
 
17936
 
 
17937
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17938
        _pkg_short_errors_supported=yes
 
17939
else
 
17940
        _pkg_short_errors_supported=no
 
17941
fi
 
17942
        if test $_pkg_short_errors_supported = yes; then
 
17943
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>&1`
 
17944
        else
 
17945
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>&1`
 
17946
        fi
 
17947
        # Put the nasty error message in config.log where it belongs
 
17948
        echo "$CCRTP_PKG_ERRORS" >&5
 
17949
 
 
17950
        as_fn_error $? "Missing ccrtp development package: libccrtp-dev" "$LINENO" 5
 
17951
elif test $pkg_failed = untried; then
 
17952
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17953
$as_echo "no" >&6; }
 
17954
        as_fn_error $? "Missing ccrtp development package: libccrtp-dev" "$LINENO" 5
 
17955
else
 
17956
        CCRTP_CFLAGS=$pkg_cv_CCRTP_CFLAGS
 
17957
        CCRTP_LIBS=$pkg_cv_CCRTP_LIBS
 
17958
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17959
$as_echo "yes" >&6; }
 
17960
 
 
17961
fi
 
17962
 
 
17963
elif test $pkg_failed = untried; then
 
17964
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17965
$as_echo "no" >&6; }
 
17966
 
 
17967
 
 
17968
pkg_failed=no
 
17969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCRTP" >&5
 
17970
$as_echo_n "checking for CCRTP... " >&6; }
 
17971
 
 
17972
if test -n "$CCRTP_CFLAGS"; then
 
17973
    pkg_cv_CCRTP_CFLAGS="$CCRTP_CFLAGS"
 
17974
 elif test -n "$PKG_CONFIG"; then
 
17975
    if test -n "$PKG_CONFIG" && \
 
17976
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRTP_MIN_VERSION}\""; } >&5
 
17977
  ($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}") 2>&5
 
17978
  ac_status=$?
 
17979
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17980
  test $ac_status = 0; }; then
 
17981
  pkg_cv_CCRTP_CFLAGS=`$PKG_CONFIG --cflags "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>/dev/null`
 
17982
                      test "x$?" != "x0" && pkg_failed=yes
 
17983
else
 
17984
  pkg_failed=yes
 
17985
fi
 
17986
 else
 
17987
    pkg_failed=untried
 
17988
fi
 
17989
if test -n "$CCRTP_LIBS"; then
 
17990
    pkg_cv_CCRTP_LIBS="$CCRTP_LIBS"
 
17991
 elif test -n "$PKG_CONFIG"; then
 
17992
    if test -n "$PKG_CONFIG" && \
 
17993
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRTP_MIN_VERSION}\""; } >&5
 
17994
  ($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}") 2>&5
 
17995
  ac_status=$?
 
17996
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17997
  test $ac_status = 0; }; then
 
17998
  pkg_cv_CCRTP_LIBS=`$PKG_CONFIG --libs "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>/dev/null`
 
17999
                      test "x$?" != "x0" && pkg_failed=yes
 
18000
else
 
18001
  pkg_failed=yes
 
18002
fi
 
18003
 else
 
18004
    pkg_failed=untried
 
18005
fi
 
18006
 
 
18007
 
 
18008
 
 
18009
if test $pkg_failed = yes; then
 
18010
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18011
$as_echo "no" >&6; }
 
18012
 
 
18013
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18014
        _pkg_short_errors_supported=yes
 
18015
else
 
18016
        _pkg_short_errors_supported=no
 
18017
fi
 
18018
        if test $_pkg_short_errors_supported = yes; then
 
18019
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>&1`
 
18020
        else
 
18021
                CCRTP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libccrtp1 >= ${LIBCCRTP_MIN_VERSION}" 2>&1`
 
18022
        fi
 
18023
        # Put the nasty error message in config.log where it belongs
 
18024
        echo "$CCRTP_PKG_ERRORS" >&5
 
18025
 
 
18026
        as_fn_error $? "Missing ccrtp development package: libccrtp-dev" "$LINENO" 5
 
18027
elif test $pkg_failed = untried; then
 
18028
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18029
$as_echo "no" >&6; }
 
18030
        as_fn_error $? "Missing ccrtp development package: libccrtp-dev" "$LINENO" 5
 
18031
else
 
18032
        CCRTP_CFLAGS=$pkg_cv_CCRTP_CFLAGS
 
18033
        CCRTP_LIBS=$pkg_cv_CCRTP_LIBS
 
18034
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18035
$as_echo "yes" >&6; }
 
18036
 
 
18037
fi
 
18038
 
 
18039
else
 
18040
        CCRTP_CFLAGS=$pkg_cv_CCRTP_CFLAGS
 
18041
        CCRTP_LIBS=$pkg_cv_CCRTP_LIBS
 
18042
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18043
$as_echo "yes" >&6; }
 
18044
 
 
18045
fi
 
18046
 
 
18047
 
 
18048
pkg_failed=no
 
18049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
 
18050
$as_echo_n "checking for libssl... " >&6; }
 
18051
 
 
18052
if test -n "$libssl_CFLAGS"; then
 
18053
    pkg_cv_libssl_CFLAGS="$libssl_CFLAGS"
 
18054
 elif test -n "$PKG_CONFIG"; then
 
18055
    if test -n "$PKG_CONFIG" && \
 
18056
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
 
18057
  ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
 
18058
  ac_status=$?
 
18059
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18060
  test $ac_status = 0; }; then
 
18061
  pkg_cv_libssl_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null`
 
18062
                      test "x$?" != "x0" && pkg_failed=yes
 
18063
else
 
18064
  pkg_failed=yes
 
18065
fi
 
18066
 else
 
18067
    pkg_failed=untried
 
18068
fi
 
18069
if test -n "$libssl_LIBS"; then
 
18070
    pkg_cv_libssl_LIBS="$libssl_LIBS"
 
18071
 elif test -n "$PKG_CONFIG"; then
 
18072
    if test -n "$PKG_CONFIG" && \
 
18073
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
 
18074
  ($PKG_CONFIG --exists --print-errors "libssl") 2>&5
 
18075
  ac_status=$?
 
18076
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18077
  test $ac_status = 0; }; then
 
18078
  pkg_cv_libssl_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null`
 
18079
                      test "x$?" != "x0" && pkg_failed=yes
 
18080
else
 
18081
  pkg_failed=yes
 
18082
fi
 
18083
 else
 
18084
    pkg_failed=untried
 
18085
fi
 
18086
 
 
18087
 
 
18088
 
 
18089
if test $pkg_failed = yes; then
 
18090
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18091
$as_echo "no" >&6; }
 
18092
 
 
18093
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18094
        _pkg_short_errors_supported=yes
 
18095
else
 
18096
        _pkg_short_errors_supported=no
 
18097
fi
 
18098
        if test $_pkg_short_errors_supported = yes; then
 
18099
                libssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl" 2>&1`
 
18100
        else
 
18101
                libssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl" 2>&1`
 
18102
        fi
 
18103
        # Put the nasty error message in config.log where it belongs
 
18104
        echo "$libssl_PKG_ERRORS" >&5
 
18105
 
 
18106
        as_fn_error $? "Missing ssl development package: libssl-dev" "$LINENO" 5
 
18107
elif test $pkg_failed = untried; then
 
18108
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18109
$as_echo "no" >&6; }
 
18110
        as_fn_error $? "Missing ssl development package: libssl-dev" "$LINENO" 5
 
18111
else
 
18112
        libssl_CFLAGS=$pkg_cv_libssl_CFLAGS
 
18113
        libssl_LIBS=$pkg_cv_libssl_LIBS
 
18114
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18115
$as_echo "yes" >&6; }
 
18116
 
 
18117
fi
 
18118
 
 
18119
LIBZRTPCPP_MIN_VERSION=1.3.0
 
18120
 
 
18121
pkg_failed=no
 
18122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZRTPCPP" >&5
 
18123
$as_echo_n "checking for ZRTPCPP... " >&6; }
 
18124
 
 
18125
if test -n "$ZRTPCPP_CFLAGS"; then
 
18126
    pkg_cv_ZRTPCPP_CFLAGS="$ZRTPCPP_CFLAGS"
 
18127
 elif test -n "$PKG_CONFIG"; then
 
18128
    if test -n "$PKG_CONFIG" && \
 
18129
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzrtpcpp >= \${LIBZRTPCPP_MIN_VERSION}\""; } >&5
 
18130
  ($PKG_CONFIG --exists --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}") 2>&5
 
18131
  ac_status=$?
 
18132
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18133
  test $ac_status = 0; }; then
 
18134
  pkg_cv_ZRTPCPP_CFLAGS=`$PKG_CONFIG --cflags "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>/dev/null`
 
18135
                      test "x$?" != "x0" && pkg_failed=yes
 
18136
else
 
18137
  pkg_failed=yes
 
18138
fi
 
18139
 else
 
18140
    pkg_failed=untried
 
18141
fi
 
18142
if test -n "$ZRTPCPP_LIBS"; then
 
18143
    pkg_cv_ZRTPCPP_LIBS="$ZRTPCPP_LIBS"
 
18144
 elif test -n "$PKG_CONFIG"; then
 
18145
    if test -n "$PKG_CONFIG" && \
 
18146
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzrtpcpp >= \${LIBZRTPCPP_MIN_VERSION}\""; } >&5
 
18147
  ($PKG_CONFIG --exists --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}") 2>&5
 
18148
  ac_status=$?
 
18149
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18150
  test $ac_status = 0; }; then
 
18151
  pkg_cv_ZRTPCPP_LIBS=`$PKG_CONFIG --libs "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>/dev/null`
 
18152
                      test "x$?" != "x0" && pkg_failed=yes
 
18153
else
 
18154
  pkg_failed=yes
 
18155
fi
 
18156
 else
 
18157
    pkg_failed=untried
 
18158
fi
 
18159
 
 
18160
 
 
18161
 
 
18162
if test $pkg_failed = yes; then
 
18163
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18164
$as_echo "no" >&6; }
 
18165
 
 
18166
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18167
        _pkg_short_errors_supported=yes
 
18168
else
 
18169
        _pkg_short_errors_supported=no
 
18170
fi
 
18171
        if test $_pkg_short_errors_supported = yes; then
 
18172
                ZRTPCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>&1`
 
18173
        else
 
18174
                ZRTPCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>&1`
 
18175
        fi
 
18176
        # Put the nasty error message in config.log where it belongs
 
18177
        echo "$ZRTPCPP_PKG_ERRORS" >&5
 
18178
 
 
18179
        as_fn_error $? "Missing zrtp development package: libzrtpcpp-dev" "$LINENO" 5
 
18180
elif test $pkg_failed = untried; then
 
18181
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18182
$as_echo "no" >&6; }
 
18183
        as_fn_error $? "Missing zrtp development package: libzrtpcpp-dev" "$LINENO" 5
 
18184
else
 
18185
        ZRTPCPP_CFLAGS=$pkg_cv_ZRTPCPP_CFLAGS
 
18186
        ZRTPCPP_LIBS=$pkg_cv_ZRTPCPP_LIBS
 
18187
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18188
$as_echo "yes" >&6; }
 
18189
 
 
18190
fi
 
18191
 
 
18192
DBUS_CPP_REQUIRED_VERSION=0.6.0-pre1
 
18193
 
 
18194
pkg_failed=no
 
18195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSCPP" >&5
 
18196
$as_echo_n "checking for DBUSCPP... " >&6; }
 
18197
 
 
18198
if test -n "$DBUSCPP_CFLAGS"; then
 
18199
    pkg_cv_DBUSCPP_CFLAGS="$DBUSCPP_CFLAGS"
 
18200
 elif test -n "$PKG_CONFIG"; then
 
18201
    if test -n "$PKG_CONFIG" && \
 
18202
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-c++-1\""; } >&5
 
18203
  ($PKG_CONFIG --exists --print-errors "dbus-c++-1") 2>&5
 
18204
  ac_status=$?
 
18205
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18206
  test $ac_status = 0; }; then
 
18207
  pkg_cv_DBUSCPP_CFLAGS=`$PKG_CONFIG --cflags "dbus-c++-1" 2>/dev/null`
 
18208
                      test "x$?" != "x0" && pkg_failed=yes
 
18209
else
 
18210
  pkg_failed=yes
 
18211
fi
 
18212
 else
 
18213
    pkg_failed=untried
 
18214
fi
 
18215
if test -n "$DBUSCPP_LIBS"; then
 
18216
    pkg_cv_DBUSCPP_LIBS="$DBUSCPP_LIBS"
 
18217
 elif test -n "$PKG_CONFIG"; then
 
18218
    if test -n "$PKG_CONFIG" && \
 
18219
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-c++-1\""; } >&5
 
18220
  ($PKG_CONFIG --exists --print-errors "dbus-c++-1") 2>&5
 
18221
  ac_status=$?
 
18222
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18223
  test $ac_status = 0; }; then
 
18224
  pkg_cv_DBUSCPP_LIBS=`$PKG_CONFIG --libs "dbus-c++-1" 2>/dev/null`
 
18225
                      test "x$?" != "x0" && pkg_failed=yes
 
18226
else
 
18227
  pkg_failed=yes
 
18228
fi
 
18229
 else
 
18230
    pkg_failed=untried
 
18231
fi
 
18232
 
 
18233
 
 
18234
 
 
18235
if test $pkg_failed = yes; then
 
18236
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18237
$as_echo "no" >&6; }
 
18238
 
 
18239
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18240
        _pkg_short_errors_supported=yes
 
18241
else
 
18242
        _pkg_short_errors_supported=no
 
18243
fi
 
18244
        if test $_pkg_short_errors_supported = yes; then
 
18245
                DBUSCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-c++-1" 2>&1`
 
18246
        else
 
18247
                DBUSCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-c++-1" 2>&1`
 
18248
        fi
 
18249
        # Put the nasty error message in config.log where it belongs
 
18250
        echo "$DBUSCPP_PKG_ERRORS" >&5
 
18251
 
 
18252
        as_fn_error $? "You need the DBus-c++ libraries (version $DBUS_CPP_REQUIRED_VERSION or better)" "$LINENO" 5
 
18253
elif test $pkg_failed = untried; then
 
18254
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18255
$as_echo "no" >&6; }
 
18256
        as_fn_error $? "You need the DBus-c++ libraries (version $DBUS_CPP_REQUIRED_VERSION or better)" "$LINENO" 5
 
18257
else
 
18258
        DBUSCPP_CFLAGS=$pkg_cv_DBUSCPP_CFLAGS
 
18259
        DBUSCPP_LIBS=$pkg_cv_DBUSCPP_LIBS
 
18260
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18261
$as_echo "yes" >&6; }
 
18262
 
 
18263
fi
 
18264
 
 
18265
 
 
18266
 
 
18267
# Check whether --with-expat was given.
 
18268
if test "${with_expat+set}" = set; then :
 
18269
  withval=$with_expat;
 
18270
        if test "$withval" = "yes"; then
 
18271
            if test -f /usr/local/include/expat.h ; then
 
18272
                expat_prefix=/usr/local
 
18273
            elif test -f /usr/include/expat.h ; then
 
18274
                expat_prefix=/usr
 
18275
            else
 
18276
                expat_prefix=""
 
18277
            fi
 
18278
            expat_requested="yes"
 
18279
        elif test -d "$withval"; then
 
18280
            expat_prefix="$withval"
 
18281
            expat_requested="yes"
 
18282
        else
 
18283
            expat_prefix=""
 
18284
            expat_requested="no"
 
18285
        fi
 
18286
 
 
18287
else
 
18288
 
 
18289
                if test -f /usr/local/include/expat.h ; then
 
18290
            expat_prefix=/usr/local
 
18291
        elif test -f /usr/include/expat.h ; then
 
18292
            expat_prefix=/usr
 
18293
        else
 
18294
            expat_prefix=""
 
18295
        fi
 
18296
 
 
18297
 
 
18298
fi
 
18299
 
 
18300
 
 
18301
 
 
18302
# Check whether --with-expat-inc was given.
 
18303
if test "${with_expat_inc+set}" = set; then :
 
18304
  withval=$with_expat_inc; expat_include_dir="$withval"
 
18305
else
 
18306
  expat_include_dir=""
 
18307
 
 
18308
fi
 
18309
 
 
18310
 
 
18311
# Check whether --with-expat-lib was given.
 
18312
if test "${with_expat_lib+set}" = set; then :
 
18313
  withval=$with_expat_lib; expat_lib_flags="$withval"
 
18314
else
 
18315
  expat_lib_flags=""
 
18316
 
 
18317
fi
 
18318
 
 
18319
 
 
18320
    EXPAT_CFLAGS=""
 
18321
    EXPAT_LIBS=""
 
18322
    EXPAT_VERSION=""
 
18323
 
 
18324
                run_expat_test="no"
 
18325
 
 
18326
    if test -n "$expat_prefix"; then
 
18327
        expat_include_dir="$expat_prefix/include"
 
18328
        expat_lib_flags="-L$expat_prefix/lib -lexpat"
 
18329
        run_expat_test="yes"
 
18330
    elif test "$expat_requested" = "yes"; then
 
18331
        if test -n "$expat_include_dir" -a -n "$expat_lib_flags"; then
 
18332
            run_expat_test="yes"
 
18333
        fi
 
18334
    else
 
18335
        run_expat_test="no"
 
18336
    fi
 
18337
 
 
18338
                if test "$run_expat_test" = "yes"; then
 
18339
 
 
18340
        saved_CPPFLAGS="$CPPFLAGS"
 
18341
        CPPFLAGS="$CPPFLAGS -I$expat_include_dir"
 
18342
 
 
18343
        saved_LDFLAGS="$LDFLAGS"
 
18344
        LIBS="$LDFLAGS $expat_lib_flags"
 
18345
 
 
18346
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser headers in $expat_include_dir" >&5
 
18347
$as_echo_n "checking for Expat XML Parser headers in $expat_include_dir... " >&6; }
 
18348
 
 
18349
        ac_ext=cpp
 
18350
ac_cpp='$CXXCPP $CPPFLAGS'
 
18351
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18352
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18353
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18354
 
 
18355
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18356
/* end confdefs.h.  */
 
18357
 
 
18358
 
 
18359
#include <expat.h>
 
18360
 
 
18361
int
 
18362
main ()
 
18363
{
 
18364
 
 
18365
 
 
18366
  ;
 
18367
  return 0;
 
18368
}
 
18369
_ACEOF
 
18370
if ac_fn_cxx_try_compile "$LINENO"; then :
 
18371
 
 
18372
            EXPAT_CFLAGS="-I$expat_include_dir"
 
18373
            expat_header_found="yes"
 
18374
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 
18375
$as_echo "found" >&6; }
 
18376
 
 
18377
else
 
18378
 
 
18379
            expat_header_found="no"
 
18380
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
18381
$as_echo "not found" >&6; }
 
18382
 
 
18383
 
 
18384
fi
 
18385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18386
        ac_ext=cpp
 
18387
ac_cpp='$CXXCPP $CPPFLAGS'
 
18388
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18389
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18390
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18391
 
 
18392
 
 
18393
                                if test "$expat_header_found" = "yes"; then
 
18394
 
 
18395
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser libraries" >&5
 
18396
$as_echo_n "checking for Expat XML Parser libraries... " >&6; }
 
18397
 
 
18398
            ac_ext=cpp
 
18399
ac_cpp='$CXXCPP $CPPFLAGS'
 
18400
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18401
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18402
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18403
 
 
18404
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18405
/* end confdefs.h.  */
 
18406
 
 
18407
 
 
18408
#include <expat.h>
 
18409
 
 
18410
int
 
18411
main ()
 
18412
{
 
18413
 
 
18414
XML_Parser p = XML_ParserCreate(NULL);
 
18415
XML_ParserFree(p);
 
18416
p = NULL;
 
18417
 
 
18418
 
 
18419
  ;
 
18420
  return 0;
 
18421
}
 
18422
_ACEOF
 
18423
if ac_fn_cxx_try_link "$LINENO"; then :
 
18424
 
 
18425
                EXPAT_LIBS="$expat_lib_flags"
 
18426
                expat_lib_found="yes"
 
18427
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 
18428
$as_echo "found" >&6; }
 
18429
 
 
18430
else
 
18431
 
 
18432
                expat_lib_found="no"
 
18433
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
18434
$as_echo "not found" >&6; }
 
18435
 
 
18436
 
 
18437
fi
 
18438
rm -f core conftest.err conftest.$ac_objext \
 
18439
    conftest$ac_exeext conftest.$ac_ext
 
18440
            ac_ext=cpp
 
18441
ac_cpp='$CXXCPP $CPPFLAGS'
 
18442
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18443
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18444
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18445
 
 
18446
        fi
 
18447
 
 
18448
        CPPFLAGS="$saved_CPPFLAGS"
 
18449
        LDFLAGS="$saved_LDFLAGS"
 
18450
    fi
 
18451
 
 
18452
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser" >&5
 
18453
$as_echo_n "checking for Expat XML Parser... " >&6; }
 
18454
 
 
18455
    if test "$run_expat_test" = "yes"; then
 
18456
        if test "$expat_header_found" = "yes" -a "$expat_lib_found" = "yes"; then
 
18457
 
 
18458
 
 
18459
 
 
18460
 
 
18461
            HAVE_EXPAT="yes"
 
18462
        else
 
18463
            HAVE_EXPAT="no"
 
18464
        fi
 
18465
 
 
18466
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EXPAT" >&5
 
18467
$as_echo "$HAVE_EXPAT" >&6; }
 
18468
 
 
18469
                                if test "$HAVE_EXPAT" = "yes"; then
 
18470
 
 
18471
            expat_version_req=
 
18472
 
 
18473
            if test  -n "$expat_version_req"; then
 
18474
 
 
18475
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Expat XML Parser version is >= $expat_version_req" >&5
 
18476
$as_echo_n "checking if Expat XML Parser version is >= $expat_version_req... " >&6; }
 
18477
 
 
18478
                if test -f "$expat_include_dir/expat.h"; then
 
18479
 
 
18480
                    expat_major=`cat $expat_include_dir/expat.h | \
 
18481
                                    grep '^#define.*XML_MAJOR_VERSION.*[0-9]$' | \
 
18482
                                    sed -e 's/#define XML_MAJOR_VERSION.//'`
 
18483
 
 
18484
                    expat_minor=`cat $expat_include_dir/expat.h | \
 
18485
                                    grep '^#define.*XML_MINOR_VERSION.*[0-9]$' | \
 
18486
                                    sed -e 's/#define XML_MINOR_VERSION.//'`
 
18487
 
 
18488
                    expat_revision=`cat $expat_include_dir/expat.h | \
 
18489
                                    grep '^#define.*XML_MICRO_VERSION.*[0-9]$' | \
 
18490
                                    sed -e 's/#define XML_MICRO_VERSION.//'`
 
18491
 
 
18492
                    EXPAT_VERSION="$expat_major.$expat_minor.$expat_revision"
 
18493
 
 
18494
 
 
18495
                                        expat_version_req_major=`expr $expat_version_req : '\([0-9]*\)'`
 
18496
                    expat_version_req_minor=`expr $expat_version_req : '[0-9]*\.\([0-9]*\)'`
 
18497
                    expat_version_req_revision=`expr $expat_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
 
18498
                    if test "x$expat_version_req_revision" = "x"; then
 
18499
                        expat_version_req_revision="0"
 
18500
                    fi
 
18501
 
 
18502
                    expat_version_req_number=`expr $expat_version_req_major \* 10000 \
 
18503
                                               \+ $expat_version_req_minor \* 100 \
 
18504
                                               \+ $expat_version_req_revision`
 
18505
 
 
18506
                                        expat_version_number=`expr $expat_major \* 10000 \
 
18507
                                          \+ $expat_minor \* 100 \
 
18508
                                           \+ $expat_revision`
 
18509
 
 
18510
                    expat_version_check=`expr $expat_version_number \>\= $expat_version_req_number`
 
18511
                    if test "$expat_version_check" = "1"; then
 
18512
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18513
$as_echo "yes" >&6; }
 
18514
                    else
 
18515
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18516
$as_echo "no" >&6; }
 
18517
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Expat XML Parser $EXPAT_VERSION, which is older than required. Possible compilation failure." >&5
 
18518
$as_echo "$as_me: WARNING: Found Expat XML Parser $EXPAT_VERSION, which is older than required. Possible compilation failure." >&2;}
 
18519
                    fi
 
18520
                else
 
18521
                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18522
$as_echo "no" >&6; }
 
18523
                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing expat.h header. Unable to determine Expat version." >&5
 
18524
$as_echo "$as_me: WARNING: Missing expat.h header. Unable to determine Expat version." >&2;}
 
18525
                fi
 
18526
            fi
 
18527
        fi
 
18528
 
 
18529
    else
 
18530
        HAVE_EXPAT="no"
 
18531
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EXPAT" >&5
 
18532
$as_echo "$HAVE_EXPAT" >&6; }
 
18533
 
 
18534
        if test "$expat_requested" = "yes"; then
 
18535
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat XML Parser support requested but headers or library not found. Specify valid prefix of Expat using --with-expat=[DIR] or provide include directory and linker flags using --with-expat-inc and --with-expat-lib" >&5
 
18536
$as_echo "$as_me: WARNING: Expat XML Parser support requested but headers or library not found. Specify valid prefix of Expat using --with-expat=[DIR] or provide include directory and linker flags using --with-expat-inc and --with-expat-lib" >&2;}
 
18537
        fi
 
18538
    fi
 
18539
 
 
18540
 
 
18541
 
 
18542
 
 
18543
ac_ext=c
 
18544
ac_cpp='$CPP $CPPFLAGS'
 
18545
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18546
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18547
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18548
 
 
18549
ax_pthread_ok=no
 
18550
 
 
18551
# We used to check for pthread.h first, but this fails if pthread.h
 
18552
# requires special compiler flags (e.g. on True64 or Sequent).
 
18553
# It gets checked for in the link test anyway.
 
18554
 
 
18555
# First of all, check if the user has set any of the PTHREAD_LIBS,
 
18556
# etcetera environment variables, and if threads linking works using
 
18557
# them:
 
18558
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
 
18559
        save_CFLAGS="$CFLAGS"
 
18560
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
18561
        save_LIBS="$LIBS"
 
18562
        LIBS="$PTHREAD_LIBS $LIBS"
 
18563
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
 
18564
$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
 
18565
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18566
/* end confdefs.h.  */
 
18567
 
 
18568
/* Override any GCC internal prototype to avoid an error.
 
18569
   Use char because int might match the return type of a GCC
 
18570
   builtin and then its argument prototype would still apply.  */
 
18571
#ifdef __cplusplus
 
18572
extern "C"
 
18573
#endif
 
18574
char pthread_join ();
 
18575
int
 
18576
main ()
 
18577
{
 
18578
return pthread_join ();
 
18579
  ;
 
18580
  return 0;
 
18581
}
 
18582
_ACEOF
 
18583
if ac_fn_c_try_link "$LINENO"; then :
 
18584
  ax_pthread_ok=yes
 
18585
fi
 
18586
rm -f core conftest.err conftest.$ac_objext \
 
18587
    conftest$ac_exeext conftest.$ac_ext
 
18588
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
 
18589
$as_echo "$ax_pthread_ok" >&6; }
 
18590
        if test x"$ax_pthread_ok" = xno; then
 
18591
                PTHREAD_LIBS=""
 
18592
                PTHREAD_CFLAGS=""
 
18593
        fi
 
18594
        LIBS="$save_LIBS"
 
18595
        CFLAGS="$save_CFLAGS"
 
18596
fi
 
18597
 
 
18598
# We must check for the threads library under a number of different
 
18599
# names; the ordering is very important because some systems
 
18600
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
 
18601
# libraries is broken (non-POSIX).
 
18602
 
 
18603
# Create a list of thread flags to try.  Items starting with a "-" are
 
18604
# C compiler flags, and other items are library names, except for "none"
 
18605
# which indicates that we try without any flags at all, and "pthread-config"
 
18606
# which is a program returning the flags for the Pth emulation library.
 
18607
 
 
18608
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
 
18609
 
 
18610
# The ordering *is* (sometimes) important.  Some notes on the
 
18611
# individual items follow:
 
18612
 
 
18613
# pthreads: AIX (must check this before -lpthread)
 
18614
# none: in case threads are in libc; should be tried before -Kthread and
 
18615
#       other compiler flags to prevent continual compiler warnings
 
18616
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
 
18617
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
 
18618
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
 
18619
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
 
18620
# -pthreads: Solaris/gcc
 
18621
# -mthreads: Mingw32/gcc, Lynx/gcc
 
18622
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
 
18623
#      doesn't hurt to check since this sometimes defines pthreads too;
 
18624
#      also defines -D_REENTRANT)
 
18625
#      ... -mt is also the pthreads flag for HP/aCC
 
18626
# pthread: Linux, etcetera
 
18627
# --thread-safe: KAI C++
 
18628
# pthread-config: use pthread-config program (for GNU Pth library)
 
18629
 
 
18630
case "${host_cpu}-${host_os}" in
 
18631
        *solaris*)
 
18632
 
 
18633
        # On Solaris (at least, for some versions), libc contains stubbed
 
18634
        # (non-functional) versions of the pthreads routines, so link-based
 
18635
        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
 
18636
        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
 
18637
        # a function called by this macro, so we could check for that, but
 
18638
        # who knows whether they'll stub that too in a future libc.)  So,
 
18639
        # we'll just look for -pthreads and -lpthread first:
 
18640
 
 
18641
        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
 
18642
        ;;
 
18643
 
 
18644
        *-darwin*)
 
18645
        ax_pthread_flags="-pthread $ax_pthread_flags"
 
18646
        ;;
 
18647
esac
 
18648
 
 
18649
if test x"$ax_pthread_ok" = xno; then
 
18650
for flag in $ax_pthread_flags; do
 
18651
 
 
18652
        case $flag in
 
18653
                none)
 
18654
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
 
18655
$as_echo_n "checking whether pthreads work without any flags... " >&6; }
 
18656
                ;;
 
18657
 
 
18658
                -*)
 
18659
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
 
18660
$as_echo_n "checking whether pthreads work with $flag... " >&6; }
 
18661
                PTHREAD_CFLAGS="$flag"
 
18662
                ;;
 
18663
 
 
18664
                pthread-config)
 
18665
                # Extract the first word of "pthread-config", so it can be a program name with args.
 
18666
set dummy pthread-config; ac_word=$2
 
18667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18668
$as_echo_n "checking for $ac_word... " >&6; }
 
18669
if ${ac_cv_prog_ax_pthread_config+:} false; then :
 
18670
  $as_echo_n "(cached) " >&6
 
18671
else
 
18672
  if test -n "$ax_pthread_config"; then
 
18673
  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
 
18674
else
 
18675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18676
for as_dir in $PATH
 
18677
do
 
18678
  IFS=$as_save_IFS
 
18679
  test -z "$as_dir" && as_dir=.
 
18680
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18682
    ac_cv_prog_ax_pthread_config="yes"
 
18683
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18684
    break 2
 
18685
  fi
 
18686
done
 
18687
  done
 
18688
IFS=$as_save_IFS
 
18689
 
 
18690
  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
 
18691
fi
 
18692
fi
 
18693
ax_pthread_config=$ac_cv_prog_ax_pthread_config
 
18694
if test -n "$ax_pthread_config"; then
 
18695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
 
18696
$as_echo "$ax_pthread_config" >&6; }
 
18697
else
 
18698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18699
$as_echo "no" >&6; }
 
18700
fi
 
18701
 
 
18702
 
 
18703
                if test x"$ax_pthread_config" = xno; then continue; fi
 
18704
                PTHREAD_CFLAGS="`pthread-config --cflags`"
 
18705
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
 
18706
                ;;
 
18707
 
 
18708
                *)
 
18709
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
 
18710
$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
 
18711
                PTHREAD_LIBS="-l$flag"
 
18712
                ;;
 
18713
        esac
 
18714
 
 
18715
        save_LIBS="$LIBS"
 
18716
        save_CFLAGS="$CFLAGS"
 
18717
        LIBS="$PTHREAD_LIBS $LIBS"
 
18718
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
18719
 
 
18720
        # Check for various functions.  We must include pthread.h,
 
18721
        # since some functions may be macros.  (On the Sequent, we
 
18722
        # need a special flag -Kthread to make this header compile.)
 
18723
        # We check for pthread_join because it is in -lpthread on IRIX
 
18724
        # while pthread_create is in libc.  We check for pthread_attr_init
 
18725
        # due to DEC craziness with -lpthreads.  We check for
 
18726
        # pthread_cleanup_push because it is one of the few pthread
 
18727
        # functions on Solaris that doesn't have a non-functional libc stub.
 
18728
        # We try pthread_create on general principles.
 
18729
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18730
/* end confdefs.h.  */
 
18731
#include <pthread.h>
 
18732
                        static void routine(void *a) { a = 0; }
 
18733
                        static void *start_routine(void *a) { return a; }
 
18734
int
 
18735
main ()
 
18736
{
 
18737
pthread_t th; pthread_attr_t attr;
 
18738
                        pthread_create(&th, 0, start_routine, 0);
 
18739
                        pthread_join(th, 0);
 
18740
                        pthread_attr_init(&attr);
 
18741
                        pthread_cleanup_push(routine, 0);
 
18742
                        pthread_cleanup_pop(0) /* ; */
 
18743
  ;
 
18744
  return 0;
 
18745
}
 
18746
_ACEOF
 
18747
if ac_fn_c_try_link "$LINENO"; then :
 
18748
  ax_pthread_ok=yes
 
18749
fi
 
18750
rm -f core conftest.err conftest.$ac_objext \
 
18751
    conftest$ac_exeext conftest.$ac_ext
 
18752
 
 
18753
        LIBS="$save_LIBS"
 
18754
        CFLAGS="$save_CFLAGS"
 
18755
 
 
18756
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
 
18757
$as_echo "$ax_pthread_ok" >&6; }
 
18758
        if test "x$ax_pthread_ok" = xyes; then
 
18759
                break;
 
18760
        fi
 
18761
 
 
18762
        PTHREAD_LIBS=""
 
18763
        PTHREAD_CFLAGS=""
 
18764
done
 
18765
fi
 
18766
 
 
18767
# Various other checks:
 
18768
if test "x$ax_pthread_ok" = xyes; then
 
18769
        save_LIBS="$LIBS"
 
18770
        LIBS="$PTHREAD_LIBS $LIBS"
 
18771
        save_CFLAGS="$CFLAGS"
 
18772
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
18773
 
 
18774
        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
 
18775
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
 
18776
$as_echo_n "checking for joinable pthread attribute... " >&6; }
 
18777
        attr_name=unknown
 
18778
        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
 
18779
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18780
/* end confdefs.h.  */
 
18781
#include <pthread.h>
 
18782
int
 
18783
main ()
 
18784
{
 
18785
int attr = $attr; return attr /* ; */
 
18786
  ;
 
18787
  return 0;
 
18788
}
 
18789
_ACEOF
 
18790
if ac_fn_c_try_link "$LINENO"; then :
 
18791
  attr_name=$attr; break
 
18792
fi
 
18793
rm -f core conftest.err conftest.$ac_objext \
 
18794
    conftest$ac_exeext conftest.$ac_ext
 
18795
        done
 
18796
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
 
18797
$as_echo "$attr_name" >&6; }
 
18798
        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
 
18799
 
 
18800
cat >>confdefs.h <<_ACEOF
 
18801
#define PTHREAD_CREATE_JOINABLE $attr_name
 
18802
_ACEOF
 
18803
 
 
18804
        fi
 
18805
 
 
18806
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
 
18807
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
 
18808
        flag=no
 
18809
        case "${host_cpu}-${host_os}" in
 
18810
            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
 
18811
            *-osf* | *-hpux*) flag="-D_REENTRANT";;
 
18812
            *solaris*)
 
18813
            if test "$GCC" = "yes"; then
 
18814
                flag="-D_REENTRANT"
 
18815
            else
 
18816
                flag="-mt -D_REENTRANT"
 
18817
            fi
 
18818
            ;;
 
18819
        esac
 
18820
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
 
18821
$as_echo "${flag}" >&6; }
 
18822
        if test "x$flag" != xno; then
 
18823
            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
 
18824
        fi
 
18825
 
 
18826
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
 
18827
$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
 
18828
if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
 
18829
  $as_echo_n "(cached) " >&6
 
18830
else
 
18831
 
 
18832
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18833
/* end confdefs.h.  */
 
18834
 
 
18835
                    #include <pthread.h>
 
18836
int
 
18837
main ()
 
18838
{
 
18839
int i = PTHREAD_PRIO_INHERIT;
 
18840
  ;
 
18841
  return 0;
 
18842
}
 
18843
_ACEOF
 
18844
if ac_fn_c_try_link "$LINENO"; then :
 
18845
  ax_cv_PTHREAD_PRIO_INHERIT=yes
 
18846
else
 
18847
  ax_cv_PTHREAD_PRIO_INHERIT=no
 
18848
fi
 
18849
rm -f core conftest.err conftest.$ac_objext \
 
18850
    conftest$ac_exeext conftest.$ac_ext
 
18851
 
 
18852
fi
 
18853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
 
18854
$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
 
18855
        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
 
18856
 
 
18857
$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
 
18858
 
 
18859
fi
 
18860
 
 
18861
        LIBS="$save_LIBS"
 
18862
        CFLAGS="$save_CFLAGS"
 
18863
 
 
18864
        # More AIX lossage: must compile with xlc_r or cc_r
 
18865
        if test x"$GCC" != xyes; then
 
18866
          for ac_prog in xlc_r cc_r
 
18867
do
 
18868
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
18869
set dummy $ac_prog; ac_word=$2
 
18870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18871
$as_echo_n "checking for $ac_word... " >&6; }
 
18872
if ${ac_cv_prog_PTHREAD_CC+:} false; then :
 
18873
  $as_echo_n "(cached) " >&6
 
18874
else
 
18875
  if test -n "$PTHREAD_CC"; then
 
18876
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
 
18877
else
 
18878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18879
for as_dir in $PATH
 
18880
do
 
18881
  IFS=$as_save_IFS
 
18882
  test -z "$as_dir" && as_dir=.
 
18883
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18884
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18885
    ac_cv_prog_PTHREAD_CC="$ac_prog"
 
18886
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18887
    break 2
 
18888
  fi
 
18889
done
 
18890
  done
 
18891
IFS=$as_save_IFS
 
18892
 
 
18893
fi
 
18894
fi
 
18895
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
 
18896
if test -n "$PTHREAD_CC"; then
 
18897
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
 
18898
$as_echo "$PTHREAD_CC" >&6; }
 
18899
else
 
18900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18901
$as_echo "no" >&6; }
 
18902
fi
 
18903
 
 
18904
 
 
18905
  test -n "$PTHREAD_CC" && break
 
18906
done
 
18907
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
 
18908
 
 
18909
        else
 
18910
          PTHREAD_CC=$CC
 
18911
        fi
 
18912
else
 
18913
        PTHREAD_CC="$CC"
 
18914
fi
 
18915
 
 
18916
 
 
18917
 
 
18918
 
 
18919
 
 
18920
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
 
18921
if test x"$ax_pthread_ok" = xyes; then
 
18922
 
 
18923
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
 
18924
 
 
18925
        :
 
18926
else
 
18927
        ax_pthread_ok=no
 
18928
 
 
18929
fi
 
18930
ac_ext=cpp
 
18931
ac_cpp='$CXXCPP $CPPFLAGS'
 
18932
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18933
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18934
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18935
 
 
18936
 
 
18937
 
 
18938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
 
18939
$as_echo_n "checking lib pcre... " >&6; }
 
18940
 
 
18941
# Check whether --with-pcre was given.
 
18942
if test "${with_pcre+set}" = set; then :
 
18943
  withval=$with_pcre;
 
18944
else
 
18945
  with_pcre="yes"
 
18946
fi
 
18947
 
 
18948
if test ".$with_pcre" = ".no" ; then
 
18949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
18950
$as_echo "disabled" >&6; }
 
18951
 
 
18952
else
 
18953
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (testing)" >&5
 
18954
$as_echo "(testing)" >&6; }
 
18955
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
 
18956
$as_echo_n "checking for pcre_study in -lpcre... " >&6; }
 
18957
if ${ac_cv_lib_pcre_pcre_study+:} false; then :
 
18958
  $as_echo_n "(cached) " >&6
 
18959
else
 
18960
  ac_check_lib_save_LIBS=$LIBS
 
18961
LIBS="-lpcre  $LIBS"
 
18962
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18963
/* end confdefs.h.  */
 
18964
 
 
18965
/* Override any GCC internal prototype to avoid an error.
 
18966
   Use char because int might match the return type of a GCC
 
18967
   builtin and then its argument prototype would still apply.  */
 
18968
#ifdef __cplusplus
 
18969
extern "C"
 
18970
#endif
 
18971
char pcre_study ();
 
18972
int
 
18973
main ()
 
18974
{
 
18975
return pcre_study ();
 
18976
  ;
 
18977
  return 0;
 
18978
}
 
18979
_ACEOF
 
18980
if ac_fn_cxx_try_link "$LINENO"; then :
 
18981
  ac_cv_lib_pcre_pcre_study=yes
 
18982
else
 
18983
  ac_cv_lib_pcre_pcre_study=no
 
18984
fi
 
18985
rm -f core conftest.err conftest.$ac_objext \
 
18986
    conftest$ac_exeext conftest.$ac_ext
 
18987
LIBS=$ac_check_lib_save_LIBS
 
18988
fi
 
18989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
 
18990
$as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
 
18991
if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
 
18992
  cat >>confdefs.h <<_ACEOF
 
18993
#define HAVE_LIBPCRE 1
 
18994
_ACEOF
 
18995
 
 
18996
  LIBS="-lpcre $LIBS"
 
18997
 
 
18998
fi
 
18999
 
 
19000
  if test "$ac_cv_lib_pcre_pcre_study" = "yes" ; then
 
19001
     PCRE_LIBS="-lpcre"
 
19002
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
 
19003
$as_echo_n "checking lib pcre... " >&6; }
 
19004
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5
 
19005
$as_echo "$PCRE_LIBS" >&6; }
 
19006
 
 
19007
  else
 
19008
     OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib"
 
19009
     OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include"
 
19010
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
 
19011
$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
 
19012
if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
 
19013
  $as_echo_n "(cached) " >&6
 
19014
else
 
19015
  ac_check_lib_save_LIBS=$LIBS
 
19016
LIBS="-lpcre  $LIBS"
 
19017
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19018
/* end confdefs.h.  */
 
19019
 
 
19020
/* Override any GCC internal prototype to avoid an error.
 
19021
   Use char because int might match the return type of a GCC
 
19022
   builtin and then its argument prototype would still apply.  */
 
19023
#ifdef __cplusplus
 
19024
extern "C"
 
19025
#endif
 
19026
char pcre_compile ();
 
19027
int
 
19028
main ()
 
19029
{
 
19030
return pcre_compile ();
 
19031
  ;
 
19032
  return 0;
 
19033
}
 
19034
_ACEOF
 
19035
if ac_fn_cxx_try_link "$LINENO"; then :
 
19036
  ac_cv_lib_pcre_pcre_compile=yes
 
19037
else
 
19038
  ac_cv_lib_pcre_pcre_compile=no
 
19039
fi
 
19040
rm -f core conftest.err conftest.$ac_objext \
 
19041
    conftest$ac_exeext conftest.$ac_ext
 
19042
LIBS=$ac_check_lib_save_LIBS
 
19043
fi
 
19044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
 
19045
$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
 
19046
if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
 
19047
  cat >>confdefs.h <<_ACEOF
 
19048
#define HAVE_LIBPCRE 1
 
19049
_ACEOF
 
19050
 
 
19051
  LIBS="-lpcre $LIBS"
 
19052
 
 
19053
fi
 
19054
 
 
19055
     CPPFLAGS="$OLDCPPFLAGS"
 
19056
     LDFLAGS="$OLDLDFLAGS"
 
19057
     if test "$ac_cv_lib_pcre_pcre_compile" = "yes" ; then
 
19058
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: .setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&5
 
19059
$as_echo ".setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&6; }
 
19060
        PCRE_LIBS="-L$with_pcre/lib -lpcre"
 
19061
        test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include"
 
19062
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
 
19063
$as_echo_n "checking lib pcre... " >&6; }
 
19064
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5
 
19065
$as_echo "$PCRE_LIBS" >&6; }
 
19066
 
 
19067
     else
 
19068
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5
 
19069
$as_echo_n "checking lib pcre... " >&6; }
 
19070
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, (WARNING)" >&5
 
19071
$as_echo "no, (WARNING)" >&6; }
 
19072
 
 
19073
     fi
 
19074
  fi
 
19075
fi
 
19076
 
 
19077
 
 
19078
 
 
19079
 
 
19080
CPPUNIT_MIN_VERSION=1.12
 
19081
 
 
19082
pkg_failed=no
 
19083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
 
19084
$as_echo_n "checking for CPPUNIT... " >&6; }
 
19085
 
 
19086
if test -n "$CPPUNIT_CFLAGS"; then
 
19087
    pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
 
19088
 elif test -n "$PKG_CONFIG"; then
 
19089
    if test -n "$PKG_CONFIG" && \
 
19090
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= \${CPPUNIT_MIN_VERSION}\""; } >&5
 
19091
  ($PKG_CONFIG --exists --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}") 2>&5
 
19092
  ac_status=$?
 
19093
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19094
  test $ac_status = 0; }; then
 
19095
  pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>/dev/null`
 
19096
                      test "x$?" != "x0" && pkg_failed=yes
 
19097
else
 
19098
  pkg_failed=yes
 
19099
fi
 
19100
 else
 
19101
    pkg_failed=untried
 
19102
fi
 
19103
if test -n "$CPPUNIT_LIBS"; then
 
19104
    pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
 
19105
 elif test -n "$PKG_CONFIG"; then
 
19106
    if test -n "$PKG_CONFIG" && \
 
19107
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= \${CPPUNIT_MIN_VERSION}\""; } >&5
 
19108
  ($PKG_CONFIG --exists --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}") 2>&5
 
19109
  ac_status=$?
 
19110
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19111
  test $ac_status = 0; }; then
 
19112
  pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>/dev/null`
 
19113
                      test "x$?" != "x0" && pkg_failed=yes
 
19114
else
 
19115
  pkg_failed=yes
 
19116
fi
 
19117
 else
 
19118
    pkg_failed=untried
 
19119
fi
 
19120
 
 
19121
 
 
19122
 
 
19123
if test $pkg_failed = yes; then
 
19124
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19125
$as_echo "no" >&6; }
 
19126
 
 
19127
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19128
        _pkg_short_errors_supported=yes
 
19129
else
 
19130
        _pkg_short_errors_supported=no
 
19131
fi
 
19132
        if test $_pkg_short_errors_supported = yes; then
 
19133
                CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>&1`
 
19134
        else
 
19135
                CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>&1`
 
19136
        fi
 
19137
        # Put the nasty error message in config.log where it belongs
 
19138
        echo "$CPPUNIT_PKG_ERRORS" >&5
 
19139
 
 
19140
         if test 0 = 1 ; then
 
19141
  BUILD_TEST_TRUE=
 
19142
  BUILD_TEST_FALSE='#'
 
19143
else
 
19144
  BUILD_TEST_TRUE='#'
 
19145
  BUILD_TEST_FALSE=
 
19146
fi
 
19147
 
 
19148
elif test $pkg_failed = untried; then
 
19149
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19150
$as_echo "no" >&6; }
 
19151
         if test 0 = 1 ; then
 
19152
  BUILD_TEST_TRUE=
 
19153
  BUILD_TEST_FALSE='#'
 
19154
else
 
19155
  BUILD_TEST_TRUE='#'
 
19156
  BUILD_TEST_FALSE=
 
19157
fi
 
19158
 
 
19159
else
 
19160
        CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
 
19161
        CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
 
19162
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19163
$as_echo "yes" >&6; }
 
19164
         if test 1 = 1 ; then
 
19165
  BUILD_TEST_TRUE=
 
19166
  BUILD_TEST_FALSE='#'
 
19167
else
 
19168
  BUILD_TEST_TRUE='#'
 
19169
  BUILD_TEST_FALSE=
 
19170
fi
 
19171
 
 
19172
fi
 
19173
 
 
19174
 
 
19175
# Check whether --with-gsm was given.
 
19176
if test "${with_gsm+set}" = set; then :
 
19177
  withval=$with_gsm;
 
19178
else
 
19179
  with_gsm=yes
 
19180
fi
 
19181
 
 
19182
 
 
19183
LIBGSM=
 
19184
if test "x$with_gsm" != xno; then :
 
19185
  ac_fn_cxx_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
 
19186
if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
 
19187
 
 
19188
else
 
19189
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19190
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19191
as_fn_error $? "Unable to find the libgsm1 headers (you may need to install the dev package).  You may use --without-gsm to compile without gsm codec support.
 
19192
See \`config.log' for more details" "$LINENO" 5; }
 
19193
fi
 
19194
 
 
19195
 
 
19196
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_decode in -lgsm" >&5
 
19197
$as_echo_n "checking for gsm_decode in -lgsm... " >&6; }
 
19198
if ${ac_cv_lib_gsm_gsm_decode+:} false; then :
 
19199
  $as_echo_n "(cached) " >&6
 
19200
else
 
19201
  ac_check_lib_save_LIBS=$LIBS
 
19202
LIBS="-lgsm  $LIBS"
 
19203
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19204
/* end confdefs.h.  */
 
19205
 
 
19206
/* Override any GCC internal prototype to avoid an error.
 
19207
   Use char because int might match the return type of a GCC
 
19208
   builtin and then its argument prototype would still apply.  */
 
19209
#ifdef __cplusplus
 
19210
extern "C"
 
19211
#endif
 
19212
char gsm_decode ();
 
19213
int
 
19214
main ()
 
19215
{
 
19216
return gsm_decode ();
 
19217
  ;
 
19218
  return 0;
 
19219
}
 
19220
_ACEOF
 
19221
if ac_fn_cxx_try_link "$LINENO"; then :
 
19222
  ac_cv_lib_gsm_gsm_decode=yes
 
19223
else
 
19224
  ac_cv_lib_gsm_gsm_decode=no
 
19225
fi
 
19226
rm -f core conftest.err conftest.$ac_objext \
 
19227
    conftest$ac_exeext conftest.$ac_ext
 
19228
LIBS=$ac_check_lib_save_LIBS
 
19229
fi
 
19230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_decode" >&5
 
19231
$as_echo "$ac_cv_lib_gsm_gsm_decode" >&6; }
 
19232
if test "x$ac_cv_lib_gsm_gsm_decode" = xyes; then :
 
19233
  cat >>confdefs.h <<_ACEOF
 
19234
#define HAVE_LIBGSM 1
 
19235
_ACEOF
 
19236
 
 
19237
  LIBS="-lgsm $LIBS"
 
19238
 
 
19239
else
 
19240
 
 
19241
            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19242
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19243
as_fn_error $? "libgsm link test failed. You may use --without-gsm to compile without gsm codec support.
 
19244
See \`config.log' for more details" "$LINENO" 5; }
 
19245
 
 
19246
fi
 
19247
 
 
19248
 
 
19249
fi
 
19250
 
 
19251
 
 
19252
cat >>confdefs.h <<_ACEOF
 
19253
#define HAVE_GSM `if test "x$with_gsm" = "xyes"; then echo 1; else echo 0; fi`
 
19254
_ACEOF
 
19255
 
 
19256
 if test "x$with_gsm" = "xyes" ; then
 
19257
  BUILD_GSM_TRUE=
 
19258
  BUILD_GSM_FALSE='#'
 
19259
else
 
19260
  BUILD_GSM_TRUE='#'
 
19261
  BUILD_GSM_FALSE=
 
19262
fi
 
19263
 
 
19264
 
 
19265
 
 
19266
# Check whether --with-speex was given.
 
19267
if test "${with_speex+set}" = set; then :
 
19268
  withval=$with_speex;
 
19269
else
 
19270
  with_speex=yes
 
19271
fi
 
19272
 
 
19273
 
 
19274
if test "x$with_speex" != xno; then :
 
19275
  ac_fn_cxx_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
 
19276
if test "x$ac_cv_header_speex_speex_h" = xyes; then :
 
19277
 
 
19278
else
 
19279
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19280
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19281
as_fn_error $? "Unable to find the libspeex headers (you may need to install the dev package).  You may use --without-speex to compile without speex codec support.
 
19282
See \`config.log' for more details" "$LINENO" 5; }
 
19283
fi
 
19284
 
 
19285
 
 
19286
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_decode_int in -lspeex" >&5
 
19287
$as_echo_n "checking for speex_decode_int in -lspeex... " >&6; }
 
19288
if ${ac_cv_lib_speex_speex_decode_int+:} false; then :
 
19289
  $as_echo_n "(cached) " >&6
 
19290
else
 
19291
  ac_check_lib_save_LIBS=$LIBS
 
19292
LIBS="-lspeex  $LIBS"
 
19293
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19294
/* end confdefs.h.  */
 
19295
 
 
19296
/* Override any GCC internal prototype to avoid an error.
 
19297
   Use char because int might match the return type of a GCC
 
19298
   builtin and then its argument prototype would still apply.  */
 
19299
#ifdef __cplusplus
 
19300
extern "C"
 
19301
#endif
 
19302
char speex_decode_int ();
 
19303
int
 
19304
main ()
 
19305
{
 
19306
return speex_decode_int ();
 
19307
  ;
 
19308
  return 0;
 
19309
}
 
19310
_ACEOF
 
19311
if ac_fn_cxx_try_link "$LINENO"; then :
 
19312
  ac_cv_lib_speex_speex_decode_int=yes
 
19313
else
 
19314
  ac_cv_lib_speex_speex_decode_int=no
 
19315
fi
 
19316
rm -f core conftest.err conftest.$ac_objext \
 
19317
    conftest$ac_exeext conftest.$ac_ext
 
19318
LIBS=$ac_check_lib_save_LIBS
 
19319
fi
 
19320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_decode_int" >&5
 
19321
$as_echo "$ac_cv_lib_speex_speex_decode_int" >&6; }
 
19322
if test "x$ac_cv_lib_speex_speex_decode_int" = xyes; then :
 
19323
  cat >>confdefs.h <<_ACEOF
 
19324
#define HAVE_LIBSPEEX 1
 
19325
_ACEOF
 
19326
 
 
19327
  LIBS="-lspeex $LIBS"
 
19328
 
 
19329
else
 
19330
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19331
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19332
as_fn_error $? "libspeex link test failed.   You may use --without-speex to compile without speex codec support.
 
19333
See \`config.log' for more details" "$LINENO" 5; }
 
19334
fi
 
19335
 
 
19336
 
 
19337
fi
 
19338
 
 
19339
 
 
19340
cat >>confdefs.h <<_ACEOF
 
19341
#define HAVE_SPEEX `if test "x$with_speex" = "xyes"; then echo 1; else echo 0; fi`
 
19342
_ACEOF
 
19343
 
 
19344
 if test "x$with_speex" = "xyes" ; then
 
19345
  BUILD_SPEEX_TRUE=
 
19346
  BUILD_SPEEX_FALSE='#'
 
19347
else
 
19348
  BUILD_SPEEX_TRUE='#'
 
19349
  BUILD_SPEEX_FALSE=
 
19350
fi
 
19351
 
 
19352
 
 
19353
ac_fn_cxx_check_header_mongrel "$LINENO" "speex/speex_preprocess.h" "ac_cv_header_speex_speex_preprocess_h" "$ac_includes_default"
 
19354
if test "x$ac_cv_header_speex_speex_preprocess_h" = xyes; then :
 
19355
 
 
19356
else
 
19357
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
19358
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
19359
as_fn_error $? "Unable to find the libspeexdsp headers (you may need to install the libspeexdsp-dev package) used for Noise Suppression and Automatic Gain Control.
 
19360
See \`config.log' for more details" "$LINENO" 5; }
 
19361
fi
 
19362
 
 
19363
 
 
19364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing speex_preprocess_run" >&5
 
19365
$as_echo_n "checking for library containing speex_preprocess_run... " >&6; }
 
19366
if ${ac_cv_search_speex_preprocess_run+:} false; then :
 
19367
  $as_echo_n "(cached) " >&6
 
19368
else
 
19369
  ac_func_search_save_LIBS=$LIBS
 
19370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19371
/* end confdefs.h.  */
 
19372
 
 
19373
/* Override any GCC internal prototype to avoid an error.
 
19374
   Use char because int might match the return type of a GCC
 
19375
   builtin and then its argument prototype would still apply.  */
 
19376
#ifdef __cplusplus
 
19377
extern "C"
 
19378
#endif
 
19379
char speex_preprocess_run ();
 
19380
int
 
19381
main ()
 
19382
{
 
19383
return speex_preprocess_run ();
 
19384
  ;
 
19385
  return 0;
 
19386
}
 
19387
_ACEOF
 
19388
for ac_lib in '' speexdsp; do
 
19389
  if test -z "$ac_lib"; then
 
19390
    ac_res="none required"
 
19391
  else
 
19392
    ac_res=-l$ac_lib
 
19393
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19394
  fi
 
19395
  if ac_fn_cxx_try_link "$LINENO"; then :
 
19396
  ac_cv_search_speex_preprocess_run=$ac_res
 
19397
fi
 
19398
rm -f core conftest.err conftest.$ac_objext \
 
19399
    conftest$ac_exeext
 
19400
  if ${ac_cv_search_speex_preprocess_run+:} false; then :
 
19401
  break
 
19402
fi
 
19403
done
 
19404
if ${ac_cv_search_speex_preprocess_run+:} false; then :
 
19405
 
 
19406
else
 
19407
  ac_cv_search_speex_preprocess_run=no
 
19408
fi
 
19409
rm conftest.$ac_ext
 
19410
LIBS=$ac_func_search_save_LIBS
 
19411
fi
 
19412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_speex_preprocess_run" >&5
 
19413
$as_echo "$ac_cv_search_speex_preprocess_run" >&6; }
 
19414
ac_res=$ac_cv_search_speex_preprocess_run
 
19415
if test "$ac_res" != no; then :
 
19416
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
19417
 
 
19418
else
 
19419
 
 
19420
       as_fn_error $? "Unable to find speexdsp development files" "$LINENO" 5
 
19421
 
 
19422
fi
 
19423
 
 
19424
 
 
19425
 
 
19426
# Check whether --with-iax2 was given.
 
19427
if test "${with_iax2+set}" = set; then :
 
19428
  withval=$with_iax2;
 
19429
else
 
19430
  with_iax2=yes
 
19431
fi
 
19432
 
 
19433
 
 
19434
 
 
19435
cat >>confdefs.h <<_ACEOF
 
19436
#define HAVE_IAX `if test "x$with_iax2" = "xyes"; then echo 1; else echo 0;fi`
 
19437
_ACEOF
 
19438
 
 
19439
 if test "x$with_iax2" = "xyes" ; then
 
19440
  USE_IAX_TRUE=
 
19441
  USE_IAX_FALSE='#'
 
19442
else
 
19443
  USE_IAX_TRUE='#'
 
19444
  USE_IAX_FALSE=
 
19445
fi
 
19446
 
 
19447
 
 
19448
 
 
19449
# Check whether --with-networkmanager was given.
 
19450
if test "${with_networkmanager+set}" = set; then :
 
19451
  withval=$with_networkmanager;
 
19452
else
 
19453
  with_networkmanager=yes
 
19454
fi
 
19455
 
 
19456
 
 
19457
 if test "x$with_networkmanager" = "xyes" ; then
 
19458
  USE_NETWORKMANAGER_TRUE=
 
19459
  USE_NETWORKMANAGER_FALSE='#'
 
19460
else
 
19461
  USE_NETWORKMANAGER_TRUE='#'
 
19462
  USE_NETWORKMANAGER_FALSE=
 
19463
fi
 
19464
 
 
19465
 
 
19466
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
 
19467
# ----------------------------------------------------------------------------
 
19468
 
 
19469
# Acutally perform the doxygen check
 
19470
 
 
19471
    # Check whether --enable-doxygen was given.
 
19472
if test "${enable_doxygen+set}" = set; then :
 
19473
  enableval=$enable_doxygen;
 
19474
fi
 
19475
 
 
19476
    # Check whether --enable-dot was given.
 
19477
if test "${enable_dot+set}" = set; then :
 
19478
  enableval=$enable_dot;
 
19479
fi
 
19480
 
 
19481
    if test "x$enable_doxygen" = xyes; then
 
19482
        # Extract the first word of "doxygen", so it can be a program name with args.
 
19483
set dummy doxygen; ac_word=$2
 
19484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19485
$as_echo_n "checking for $ac_word... " >&6; }
 
19486
if ${ac_cv_path_DOXYGEN+:} false; then :
 
19487
  $as_echo_n "(cached) " >&6
 
19488
else
 
19489
  case $DOXYGEN in
 
19490
  [\\/]* | ?:[\\/]*)
 
19491
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
 
19492
  ;;
 
19493
  *)
 
19494
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19495
for as_dir in $PATH
 
19496
do
 
19497
  IFS=$as_save_IFS
 
19498
  test -z "$as_dir" && as_dir=.
 
19499
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19500
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19501
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
 
19502
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19503
    break 2
 
19504
  fi
 
19505
done
 
19506
  done
 
19507
IFS=$as_save_IFS
 
19508
 
 
19509
  ;;
 
19510
esac
 
19511
fi
 
19512
DOXYGEN=$ac_cv_path_DOXYGEN
 
19513
if test -n "$DOXYGEN"; then
 
19514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
 
19515
$as_echo "$DOXYGEN" >&6; }
 
19516
else
 
19517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19518
$as_echo "no" >&6; }
 
19519
fi
 
19520
 
 
19521
 
 
19522
        test x$DOXYGEN = x && as_fn_error $? "could not find doxygen" "$LINENO" 5
 
19523
        # Extract the first word of "dot", so it can be a program name with args.
 
19524
set dummy dot; ac_word=$2
 
19525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19526
$as_echo_n "checking for $ac_word... " >&6; }
 
19527
if ${ac_cv_path_DOT+:} false; then :
 
19528
  $as_echo_n "(cached) " >&6
 
19529
else
 
19530
  case $DOT in
 
19531
  [\\/]* | ?:[\\/]*)
 
19532
  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
 
19533
  ;;
 
19534
  *)
 
19535
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19536
for as_dir in $PATH
 
19537
do
 
19538
  IFS=$as_save_IFS
 
19539
  test -z "$as_dir" && as_dir=.
 
19540
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19541
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19542
    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
 
19543
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19544
    break 2
 
19545
  fi
 
19546
done
 
19547
  done
 
19548
IFS=$as_save_IFS
 
19549
 
 
19550
  ;;
 
19551
esac
 
19552
fi
 
19553
DOT=$ac_cv_path_DOT
 
19554
if test -n "$DOT"; then
 
19555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
 
19556
$as_echo "$DOT" >&6; }
 
19557
else
 
19558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19559
$as_echo "no" >&6; }
 
19560
fi
 
19561
 
 
19562
 
 
19563
        test x$DOT = x -a "x$enable_dot" = xyes && as_fn_error $? "could not find dot" "$LINENO" 5
 
19564
    fi
 
19565
     if test x$DOXYGEN = xyes; then
 
19566
  ENABLE_DOXYGEN_TRUE=
 
19567
  ENABLE_DOXYGEN_FALSE='#'
 
19568
else
 
19569
  ENABLE_DOXYGEN_TRUE='#'
 
19570
  ENABLE_DOXYGEN_FALSE=
 
19571
fi
 
19572
 
 
19573
 
 
19574
 
 
19575
CXXFLAGS="${CXXFLAGS} -g -Wno-return-type -Wall -Wextra -Wnon-virtual-dtor -Weffc++ -Wfatal-errors"
 
19576
 
 
19577
ac_config_files="$ac_config_files Makefile"
 
19578
 
 
19579
ac_config_files="$ac_config_files libs/Makefile libs/iax2/Makefile"
 
19580
 
 
19581
 
 
19582
ac_config_files="$ac_config_files src/Makefile src/sip/Makefile src/im/Makefile src/iax/Makefile src/audio/Makefile src/audio/audiortp/Makefile src/audio/pulseaudio/Makefile src/audio/alsa/Makefile src/audio/sound/Makefile src/audio/codecs/Makefile src/config/Makefile src/dbus/Makefile src/hooks/Makefile src/history/Makefile"
 
19583
 
 
19584
 
 
19585
 
 
19586
# Go!
 
19587
cat >confcache <<\_ACEOF
 
19588
# This file is a shell script that caches the results of configure
 
19589
# tests run on this system so they can be shared between configure
 
19590
# scripts and configure runs, see configure's option --config-cache.
 
19591
# It is not useful on other systems.  If it contains results you don't
 
19592
# want to keep, you may remove or edit it.
 
19593
#
 
19594
# config.status only pays attention to the cache file if you give it
 
19595
# the --recheck option to rerun configure.
 
19596
#
 
19597
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19598
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19599
# following values.
 
19600
 
 
19601
_ACEOF
 
19602
 
 
19603
# The following way of writing the cache mishandles newlines in values,
 
19604
# but we know of no workaround that is simple, portable, and efficient.
 
19605
# So, we kill variables containing newlines.
 
19606
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19607
# and sets the high bit in the cache file unless we assign to the vars.
 
19608
(
 
19609
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
19610
    eval ac_val=\$$ac_var
 
19611
    case $ac_val in #(
 
19612
    *${as_nl}*)
 
19613
      case $ac_var in #(
 
19614
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
19615
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
19616
      esac
 
19617
      case $ac_var in #(
 
19618
      _ | IFS | as_nl) ;; #(
 
19619
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
19620
      *) { eval $ac_var=; unset $ac_var;} ;;
 
19621
      esac ;;
 
19622
    esac
 
19623
  done
 
19624
 
 
19625
  (set) 2>&1 |
 
19626
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
19627
    *${as_nl}ac_space=\ *)
 
19628
      # `set' does not quote correctly, so add quotes: double-quote
 
19629
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
19630
      sed -n \
 
19631
        "s/'/'\\\\''/g;
 
19632
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
19633
      ;; #(
 
19634
    *)
 
19635
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
19636
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
19637
      ;;
 
19638
    esac |
 
19639
    sort
 
19640
) |
 
19641
  sed '
 
19642
     /^ac_cv_env_/b end
 
19643
     t clear
 
19644
     :clear
 
19645
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
19646
     t end
 
19647
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
19648
     :end' >>confcache
 
19649
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
19650
  if test -w "$cache_file"; then
 
19651
    if test "x$cache_file" != "x/dev/null"; then
 
19652
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
19653
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
19654
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
19655
        cat confcache >"$cache_file"
 
19656
      else
 
19657
        case $cache_file in #(
 
19658
        */* | ?:*)
 
19659
          mv -f confcache "$cache_file"$$ &&
 
19660
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
19661
        *)
 
19662
          mv -f confcache "$cache_file" ;;
 
19663
        esac
 
19664
      fi
 
19665
    fi
 
19666
  else
 
19667
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
19668
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
19669
  fi
 
19670
fi
 
19671
rm -f confcache
 
19672
 
 
19673
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
19674
# Let make expand exec_prefix.
 
19675
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
19676
 
 
19677
DEFS=-DHAVE_CONFIG_H
 
19678
 
 
19679
ac_libobjs=
 
19680
ac_ltlibobjs=
 
19681
U=
 
19682
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
19683
  # 1. Remove the extension, and $U if already installed.
 
19684
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
19685
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
19686
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
19687
  #    will be set to the directory where LIBOBJS objects are built.
 
19688
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
19689
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
19690
done
 
19691
LIBOBJS=$ac_libobjs
 
19692
 
 
19693
LTLIBOBJS=$ac_ltlibobjs
 
19694
 
 
19695
 
 
19696
 if test -n "$EXEEXT"; then
 
19697
  am__EXEEXT_TRUE=
 
19698
  am__EXEEXT_FALSE='#'
 
19699
else
 
19700
  am__EXEEXT_TRUE='#'
 
19701
  am__EXEEXT_FALSE=
 
19702
fi
 
19703
 
 
19704
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
19705
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
19706
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19707
fi
 
19708
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
19709
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
19710
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19711
fi
 
19712
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
19713
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
19714
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19715
fi
 
19716
if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
 
19717
  as_fn_error $? "conditional \"BUILD_TEST\" was never defined.
 
19718
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19719
fi
 
19720
if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
 
19721
  as_fn_error $? "conditional \"BUILD_TEST\" was never defined.
 
19722
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19723
fi
 
19724
if test -z "${BUILD_GSM_TRUE}" && test -z "${BUILD_GSM_FALSE}"; then
 
19725
  as_fn_error $? "conditional \"BUILD_GSM\" was never defined.
 
19726
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19727
fi
 
19728
if test -z "${BUILD_SPEEX_TRUE}" && test -z "${BUILD_SPEEX_FALSE}"; then
 
19729
  as_fn_error $? "conditional \"BUILD_SPEEX\" was never defined.
 
19730
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19731
fi
 
19732
if test -z "${USE_IAX_TRUE}" && test -z "${USE_IAX_FALSE}"; then
 
19733
  as_fn_error $? "conditional \"USE_IAX\" was never defined.
 
19734
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19735
fi
 
19736
if test -z "${USE_NETWORKMANAGER_TRUE}" && test -z "${USE_NETWORKMANAGER_FALSE}"; then
 
19737
  as_fn_error $? "conditional \"USE_NETWORKMANAGER\" was never defined.
 
19738
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19739
fi
 
19740
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
 
19741
  as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
 
19742
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
19743
fi
 
19744
 
 
19745
: "${CONFIG_STATUS=./config.status}"
 
19746
ac_write_fail=0
 
19747
ac_clean_files_save=$ac_clean_files
 
19748
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
19749
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
19750
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
19751
as_write_fail=0
 
19752
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
19753
#! $SHELL
 
19754
# Generated by $as_me.
 
19755
# Run this file to recreate the current configuration.
 
19756
# Compiler output produced by configure, useful for debugging
 
19757
# configure, is in config.log if it exists.
 
19758
 
 
19759
debug=false
 
19760
ac_cs_recheck=false
 
19761
ac_cs_silent=false
 
19762
 
 
19763
SHELL=\${CONFIG_SHELL-$SHELL}
 
19764
export SHELL
 
19765
_ASEOF
 
19766
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
19767
## -------------------- ##
 
19768
## M4sh Initialization. ##
 
19769
## -------------------- ##
 
19770
 
 
19771
# Be more Bourne compatible
 
19772
DUALCASE=1; export DUALCASE # for MKS sh
 
19773
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
19774
  emulate sh
 
19775
  NULLCMD=:
 
19776
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19777
  # is contrary to our usage.  Disable this feature.
 
19778
  alias -g '${1+"$@"}'='"$@"'
 
19779
  setopt NO_GLOB_SUBST
 
19780
else
 
19781
  case `(set -o) 2>/dev/null` in #(
 
19782
  *posix*) :
 
19783
    set -o posix ;; #(
 
19784
  *) :
 
19785
     ;;
 
19786
esac
 
19787
fi
 
19788
 
 
19789
 
 
19790
as_nl='
 
19791
'
 
19792
export as_nl
 
19793
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
19794
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
19795
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
19796
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
19797
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
19798
# but without wasting forks for bash or zsh.
 
19799
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
19800
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
19801
  as_echo='print -r --'
 
19802
  as_echo_n='print -rn --'
 
19803
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
19804
  as_echo='printf %s\n'
 
19805
  as_echo_n='printf %s'
 
19806
else
 
19807
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
19808
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
19809
    as_echo_n='/usr/ucb/echo -n'
 
19810
  else
 
19811
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
19812
    as_echo_n_body='eval
 
19813
      arg=$1;
 
19814
      case $arg in #(
 
19815
      *"$as_nl"*)
 
19816
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
19817
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
19818
      esac;
 
19819
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
19820
    '
 
19821
    export as_echo_n_body
 
19822
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
19823
  fi
 
19824
  export as_echo_body
 
19825
  as_echo='sh -c $as_echo_body as_echo'
 
19826
fi
 
19827
 
 
19828
# The user is always right.
 
19829
if test "${PATH_SEPARATOR+set}" != set; then
 
19830
  PATH_SEPARATOR=:
 
19831
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
19832
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
19833
      PATH_SEPARATOR=';'
 
19834
  }
 
19835
fi
 
19836
 
 
19837
 
 
19838
# IFS
 
19839
# We need space, tab and new line, in precisely that order.  Quoting is
 
19840
# there to prevent editors from complaining about space-tab.
 
19841
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
19842
# splitting by setting IFS to empty value.)
 
19843
IFS=" ""        $as_nl"
 
19844
 
 
19845
# Find who we are.  Look in the path if we contain no directory separator.
 
19846
as_myself=
 
19847
case $0 in #((
 
19848
  *[\\/]* ) as_myself=$0 ;;
 
19849
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19850
for as_dir in $PATH
 
19851
do
 
19852
  IFS=$as_save_IFS
 
19853
  test -z "$as_dir" && as_dir=.
 
19854
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
19855
  done
 
19856
IFS=$as_save_IFS
 
19857
 
 
19858
     ;;
 
19859
esac
 
19860
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
19861
# in which case we are not to be found in the path.
 
19862
if test "x$as_myself" = x; then
 
19863
  as_myself=$0
 
19864
fi
 
19865
if test ! -f "$as_myself"; then
 
19866
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
19867
  exit 1
 
19868
fi
 
19869
 
 
19870
# Unset variables that we do not need and which cause bugs (e.g. in
 
19871
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
19872
# suppresses any "Segmentation fault" message there.  '((' could
 
19873
# trigger a bug in pdksh 5.2.14.
 
19874
for as_var in BASH_ENV ENV MAIL MAILPATH
 
19875
do eval test x\${$as_var+set} = xset \
 
19876
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
19877
done
 
19878
PS1='$ '
 
19879
PS2='> '
 
19880
PS4='+ '
 
19881
 
 
19882
# NLS nuisances.
 
19883
LC_ALL=C
 
19884
export LC_ALL
 
19885
LANGUAGE=C
 
19886
export LANGUAGE
 
19887
 
 
19888
# CDPATH.
 
19889
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
19890
 
 
19891
 
 
19892
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
19893
# ----------------------------------------
 
19894
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
19895
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
19896
# script with STATUS, using 1 if that was 0.
 
19897
as_fn_error ()
 
19898
{
 
19899
  as_status=$1; test $as_status -eq 0 && as_status=1
 
19900
  if test "$4"; then
 
19901
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
19902
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
19903
  fi
 
19904
  $as_echo "$as_me: error: $2" >&2
 
19905
  as_fn_exit $as_status
 
19906
} # as_fn_error
 
19907
 
 
19908
 
 
19909
# as_fn_set_status STATUS
 
19910
# -----------------------
 
19911
# Set $? to STATUS, without forking.
 
19912
as_fn_set_status ()
 
19913
{
 
19914
  return $1
 
19915
} # as_fn_set_status
 
19916
 
 
19917
# as_fn_exit STATUS
 
19918
# -----------------
 
19919
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
19920
as_fn_exit ()
 
19921
{
 
19922
  set +e
 
19923
  as_fn_set_status $1
 
19924
  exit $1
 
19925
} # as_fn_exit
 
19926
 
 
19927
# as_fn_unset VAR
 
19928
# ---------------
 
19929
# Portably unset VAR.
 
19930
as_fn_unset ()
 
19931
{
 
19932
  { eval $1=; unset $1;}
 
19933
}
 
19934
as_unset=as_fn_unset
 
19935
# as_fn_append VAR VALUE
 
19936
# ----------------------
 
19937
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
19938
# advantage of any shell optimizations that allow amortized linear growth over
 
19939
# repeated appends, instead of the typical quadratic growth present in naive
 
19940
# implementations.
 
19941
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
19942
  eval 'as_fn_append ()
 
19943
  {
 
19944
    eval $1+=\$2
 
19945
  }'
 
19946
else
 
19947
  as_fn_append ()
 
19948
  {
 
19949
    eval $1=\$$1\$2
 
19950
  }
 
19951
fi # as_fn_append
 
19952
 
 
19953
# as_fn_arith ARG...
 
19954
# ------------------
 
19955
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
19956
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
19957
# must be portable across $(()) and expr.
 
19958
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
19959
  eval 'as_fn_arith ()
 
19960
  {
 
19961
    as_val=$(( $* ))
 
19962
  }'
 
19963
else
 
19964
  as_fn_arith ()
 
19965
  {
 
19966
    as_val=`expr "$@" || test $? -eq 1`
 
19967
  }
 
19968
fi # as_fn_arith
 
19969
 
 
19970
 
 
19971
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
19972
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
19973
  as_expr=expr
 
19974
else
 
19975
  as_expr=false
 
19976
fi
 
19977
 
 
19978
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
19979
  as_basename=basename
 
19980
else
 
19981
  as_basename=false
 
19982
fi
 
19983
 
 
19984
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
19985
  as_dirname=dirname
 
19986
else
 
19987
  as_dirname=false
 
19988
fi
 
19989
 
 
19990
as_me=`$as_basename -- "$0" ||
 
19991
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19992
         X"$0" : 'X\(//\)$' \| \
 
19993
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
19994
$as_echo X/"$0" |
 
19995
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
19996
            s//\1/
 
19997
            q
 
19998
          }
 
19999
          /^X\/\(\/\/\)$/{
 
20000
            s//\1/
 
20001
            q
 
20002
          }
 
20003
          /^X\/\(\/\).*/{
 
20004
            s//\1/
 
20005
            q
 
20006
          }
 
20007
          s/.*/./; q'`
 
20008
 
 
20009
# Avoid depending upon Character Ranges.
 
20010
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20011
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20012
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20013
as_cr_digits='0123456789'
 
20014
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20015
 
 
20016
ECHO_C= ECHO_N= ECHO_T=
 
20017
case `echo -n x` in #(((((
 
20018
-n*)
 
20019
  case `echo 'xy\c'` in
 
20020
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
20021
  xy)  ECHO_C='\c';;
 
20022
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
20023
       ECHO_T=' ';;
 
20024
  esac;;
 
20025
*)
 
20026
  ECHO_N='-n';;
 
20027
esac
 
20028
 
 
20029
rm -f conf$$ conf$$.exe conf$$.file
 
20030
if test -d conf$$.dir; then
 
20031
  rm -f conf$$.dir/conf$$.file
 
20032
else
 
20033
  rm -f conf$$.dir
 
20034
  mkdir conf$$.dir 2>/dev/null
 
20035
fi
 
20036
if (echo >conf$$.file) 2>/dev/null; then
 
20037
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20038
    as_ln_s='ln -s'
 
20039
    # ... but there are two gotchas:
 
20040
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
20041
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
20042
    # In both cases, we have to default to `cp -p'.
 
20043
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
20044
      as_ln_s='cp -p'
 
20045
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
20046
    as_ln_s=ln
 
20047
  else
 
20048
    as_ln_s='cp -p'
 
20049
  fi
 
20050
else
 
20051
  as_ln_s='cp -p'
 
20052
fi
 
20053
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
20054
rmdir conf$$.dir 2>/dev/null
 
20055
 
 
20056
 
 
20057
# as_fn_mkdir_p
 
20058
# -------------
 
20059
# Create "$as_dir" as a directory, including parents if necessary.
 
20060
as_fn_mkdir_p ()
 
20061
{
 
20062
 
 
20063
  case $as_dir in #(
 
20064
  -*) as_dir=./$as_dir;;
 
20065
  esac
 
20066
  test -d "$as_dir" || eval $as_mkdir_p || {
 
20067
    as_dirs=
 
20068
    while :; do
 
20069
      case $as_dir in #(
 
20070
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
20071
      *) as_qdir=$as_dir;;
 
20072
      esac
 
20073
      as_dirs="'$as_qdir' $as_dirs"
 
20074
      as_dir=`$as_dirname -- "$as_dir" ||
 
20075
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20076
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20077
         X"$as_dir" : 'X\(//\)$' \| \
 
20078
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
20079
$as_echo X"$as_dir" |
 
20080
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20081
            s//\1/
 
20082
            q
 
20083
          }
 
20084
          /^X\(\/\/\)[^/].*/{
 
20085
            s//\1/
 
20086
            q
 
20087
          }
 
20088
          /^X\(\/\/\)$/{
 
20089
            s//\1/
 
20090
            q
 
20091
          }
 
20092
          /^X\(\/\).*/{
 
20093
            s//\1/
 
20094
            q
 
20095
          }
 
20096
          s/.*/./; q'`
 
20097
      test -d "$as_dir" && break
 
20098
    done
 
20099
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
20100
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
20101
 
 
20102
 
 
20103
} # as_fn_mkdir_p
 
20104
if mkdir -p . 2>/dev/null; then
 
20105
  as_mkdir_p='mkdir -p "$as_dir"'
 
20106
else
 
20107
  test -d ./-p && rmdir ./-p
 
20108
  as_mkdir_p=false
 
20109
fi
 
20110
 
 
20111
if test -x / >/dev/null 2>&1; then
 
20112
  as_test_x='test -x'
 
20113
else
 
20114
  if ls -dL / >/dev/null 2>&1; then
 
20115
    as_ls_L_option=L
 
20116
  else
 
20117
    as_ls_L_option=
 
20118
  fi
 
20119
  as_test_x='
 
20120
    eval sh -c '\''
 
20121
      if test -d "$1"; then
 
20122
        test -d "$1/.";
 
20123
      else
 
20124
        case $1 in #(
 
20125
        -*)set "./$1";;
 
20126
        esac;
 
20127
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
20128
        ???[sx]*):;;*)false;;esac;fi
 
20129
    '\'' sh
 
20130
  '
 
20131
fi
 
20132
as_executable_p=$as_test_x
 
20133
 
 
20134
# Sed expression to map a string onto a valid CPP name.
 
20135
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20136
 
 
20137
# Sed expression to map a string onto a valid variable name.
 
20138
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20139
 
 
20140
 
 
20141
exec 6>&1
 
20142
## ----------------------------------- ##
 
20143
## Main body of $CONFIG_STATUS script. ##
 
20144
## ----------------------------------- ##
 
20145
_ASEOF
 
20146
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
20147
 
 
20148
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20149
# Save the log message, to keep $0 and so on meaningful, and to
 
20150
# report actual input values of CONFIG_FILES etc. instead of their
 
20151
# values after options handling.
 
20152
ac_log="
 
20153
This file was extended by sflphone $as_me 1.1.0, which was
 
20154
generated by GNU Autoconf 2.68.  Invocation command line was
 
20155
 
 
20156
  CONFIG_FILES    = $CONFIG_FILES
 
20157
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20158
  CONFIG_LINKS    = $CONFIG_LINKS
 
20159
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20160
  $ $0 $@
 
20161
 
 
20162
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
20163
"
 
20164
 
 
20165
_ACEOF
 
20166
 
 
20167
case $ac_config_files in *"
 
20168
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
20169
esac
 
20170
 
 
20171
case $ac_config_headers in *"
 
20172
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
20173
esac
 
20174
 
 
20175
 
 
20176
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20177
# Files that config.status was made for.
 
20178
config_files="$ac_config_files"
 
20179
config_headers="$ac_config_headers"
 
20180
config_commands="$ac_config_commands"
 
20181
 
 
20182
_ACEOF
 
20183
 
 
20184
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20185
ac_cs_usage="\
 
20186
\`$as_me' instantiates files and other configuration actions
 
20187
from templates according to the current configuration.  Unless the files
 
20188
and actions are specified as TAGs, all are instantiated by default.
 
20189
 
 
20190
Usage: $0 [OPTION]... [TAG]...
 
20191
 
 
20192
  -h, --help       print this help, then exit
 
20193
  -V, --version    print version number and configuration settings, then exit
 
20194
      --config     print configuration, then exit
 
20195
  -q, --quiet, --silent
 
20196
                   do not print progress messages
 
20197
  -d, --debug      don't remove temporary files
 
20198
      --recheck    update $as_me by reconfiguring in the same conditions
 
20199
      --file=FILE[:TEMPLATE]
 
20200
                   instantiate the configuration file FILE
 
20201
      --header=FILE[:TEMPLATE]
 
20202
                   instantiate the configuration header FILE
 
20203
 
 
20204
Configuration files:
 
20205
$config_files
 
20206
 
 
20207
Configuration headers:
 
20208
$config_headers
 
20209
 
 
20210
Configuration commands:
 
20211
$config_commands
 
20212
 
 
20213
Report bugs to <sflphoneteam@savoirfairelinux.com>."
 
20214
 
 
20215
_ACEOF
 
20216
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20217
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
20218
ac_cs_version="\\
 
20219
sflphone config.status 1.1.0
 
20220
configured by $0, generated by GNU Autoconf 2.68,
 
20221
  with options \\"\$ac_cs_config\\"
 
20222
 
 
20223
Copyright (C) 2010 Free Software Foundation, Inc.
 
20224
This config.status script is free software; the Free Software Foundation
 
20225
gives unlimited permission to copy, distribute and modify it."
 
20226
 
 
20227
ac_pwd='$ac_pwd'
 
20228
srcdir='$srcdir'
 
20229
INSTALL='$INSTALL'
 
20230
MKDIR_P='$MKDIR_P'
 
20231
AWK='$AWK'
 
20232
test -n "\$AWK" || AWK=awk
 
20233
_ACEOF
 
20234
 
 
20235
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20236
# The default lists apply if the user does not specify any file.
 
20237
ac_need_defaults=:
 
20238
while test $# != 0
 
20239
do
 
20240
  case $1 in
 
20241
  --*=?*)
 
20242
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
20243
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
20244
    ac_shift=:
 
20245
    ;;
 
20246
  --*=)
 
20247
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
20248
    ac_optarg=
 
20249
    ac_shift=:
 
20250
    ;;
 
20251
  *)
 
20252
    ac_option=$1
 
20253
    ac_optarg=$2
 
20254
    ac_shift=shift
 
20255
    ;;
 
20256
  esac
 
20257
 
 
20258
  case $ac_option in
 
20259
  # Handling of the options.
 
20260
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20261
    ac_cs_recheck=: ;;
 
20262
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
20263
    $as_echo "$ac_cs_version"; exit ;;
 
20264
  --config | --confi | --conf | --con | --co | --c )
 
20265
    $as_echo "$ac_cs_config"; exit ;;
 
20266
  --debug | --debu | --deb | --de | --d | -d )
 
20267
    debug=: ;;
 
20268
  --file | --fil | --fi | --f )
 
20269
    $ac_shift
 
20270
    case $ac_optarg in
 
20271
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
20272
    '') as_fn_error $? "missing file argument" ;;
 
20273
    esac
 
20274
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
20275
    ac_need_defaults=false;;
 
20276
  --header | --heade | --head | --hea )
 
20277
    $ac_shift
 
20278
    case $ac_optarg in
 
20279
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
20280
    esac
 
20281
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
20282
    ac_need_defaults=false;;
 
20283
  --he | --h)
 
20284
    # Conflict between --help and --header
 
20285
    as_fn_error $? "ambiguous option: \`$1'
 
20286
Try \`$0 --help' for more information.";;
 
20287
  --help | --hel | -h )
 
20288
    $as_echo "$ac_cs_usage"; exit ;;
 
20289
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20290
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20291
    ac_cs_silent=: ;;
 
20292
 
 
20293
  # This is an error.
 
20294
  -*) as_fn_error $? "unrecognized option: \`$1'
 
20295
Try \`$0 --help' for more information." ;;
 
20296
 
 
20297
  *) as_fn_append ac_config_targets " $1"
 
20298
     ac_need_defaults=false ;;
 
20299
 
 
20300
  esac
 
20301
  shift
 
20302
done
 
20303
 
 
20304
ac_configure_extra_args=
 
20305
 
 
20306
if $ac_cs_silent; then
 
20307
  exec 6>/dev/null
 
20308
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20309
fi
 
20310
 
 
20311
_ACEOF
 
20312
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20313
if \$ac_cs_recheck; then
 
20314
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
20315
  shift
 
20316
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
20317
  CONFIG_SHELL='$SHELL'
 
20318
  export CONFIG_SHELL
 
20319
  exec "\$@"
 
20320
fi
 
20321
 
 
20322
_ACEOF
 
20323
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20324
exec 5>>config.log
 
20325
{
 
20326
  echo
 
20327
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20328
## Running $as_me. ##
 
20329
_ASBOX
 
20330
  $as_echo "$ac_log"
 
20331
} >&5
 
20332
 
 
20333
_ACEOF
 
20334
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20335
#
 
20336
# INIT-COMMANDS
 
20337
#
 
20338
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
20339
 
 
20340
 
 
20341
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
20342
# if CDPATH is set.
 
20343
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
20344
 
 
20345
sed_quote_subst='$sed_quote_subst'
 
20346
double_quote_subst='$double_quote_subst'
 
20347
delay_variable_subst='$delay_variable_subst'
 
20348
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
20349
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
20350
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
20351
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
20352
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
20353
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
20354
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
20355
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
20356
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
20357
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
20358
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
20359
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
20360
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
20361
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
20362
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
20363
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
20364
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
20365
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
20366
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
20367
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
20368
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
20369
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
20370
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
20371
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
20372
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
20373
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
20374
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
20375
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
20376
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
20377
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
20378
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
20379
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
20380
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
20381
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
20382
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
20383
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
20384
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
20385
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
20386
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
20387
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
20388
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
20389
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
20390
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
20391
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
20392
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
20393
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20394
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20395
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
20396
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
20397
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
20398
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
20399
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
20400
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
20401
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
20402
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
20403
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
20404
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
20405
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
20406
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
20407
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
20408
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
20409
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
20410
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
20411
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
20412
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
20413
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
20414
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
20415
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
20416
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
20417
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
20418
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
20419
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
20420
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
20421
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
20422
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
20423
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
20424
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
20425
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
20426
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
20427
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
20428
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
20429
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
20430
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
20431
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
20432
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
20433
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
20434
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
20435
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
20436
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
20437
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
20438
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
20439
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
20440
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
20441
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
20442
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
20443
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
20444
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
20445
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
20446
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
20447
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
20448
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
20449
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
20450
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
20451
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
20452
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
20453
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
20454
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
20455
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
20456
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
20457
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
20458
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
20459
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
20460
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
20461
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
20462
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
20463
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
20464
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
20465
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20466
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
20467
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
20468
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
20469
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
20470
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
20471
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
20472
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
20473
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
20474
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
20475
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
20476
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
20477
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
20478
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
20479
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
20480
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
20481
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
20482
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
20483
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
20484
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
20485
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20486
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20487
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20488
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
20489
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
20490
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20491
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
20492
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
20493
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
20494
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
20495
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
20496
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
20497
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20498
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20499
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
20500
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20501
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20502
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20503
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20504
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20505
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20506
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
20507
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20508
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
20509
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20510
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
20511
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
20512
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
20513
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
20514
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
20515
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
20516
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
20517
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
20518
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
20519
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20520
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
20521
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
20522
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20523
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
20524
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
20525
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
20526
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
20527
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
20528
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
20529
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
20530
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
20531
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
20532
 
 
20533
LTCC='$LTCC'
 
20534
LTCFLAGS='$LTCFLAGS'
 
20535
compiler='$compiler_DEFAULT'
 
20536
 
 
20537
# A function that is used when there is no print builtin or printf.
 
20538
func_fallback_echo ()
 
20539
{
 
20540
  eval 'cat <<_LTECHO_EOF
 
20541
\$1
 
20542
_LTECHO_EOF'
 
20543
}
 
20544
 
 
20545
# Quote evaled strings.
 
20546
for var in SHELL \
 
20547
ECHO \
 
20548
PATH_SEPARATOR \
 
20549
SED \
 
20550
GREP \
 
20551
EGREP \
 
20552
FGREP \
 
20553
LD \
 
20554
NM \
 
20555
LN_S \
 
20556
lt_SP2NL \
 
20557
lt_NL2SP \
 
20558
reload_flag \
 
20559
OBJDUMP \
 
20560
deplibs_check_method \
 
20561
file_magic_cmd \
 
20562
file_magic_glob \
 
20563
want_nocaseglob \
 
20564
DLLTOOL \
 
20565
sharedlib_from_linklib_cmd \
 
20566
AR \
 
20567
AR_FLAGS \
 
20568
archiver_list_spec \
 
20569
STRIP \
 
20570
RANLIB \
 
20571
CC \
 
20572
CFLAGS \
 
20573
compiler \
 
20574
lt_cv_sys_global_symbol_pipe \
 
20575
lt_cv_sys_global_symbol_to_cdecl \
 
20576
lt_cv_sys_global_symbol_to_c_name_address \
 
20577
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
20578
nm_file_list_spec \
 
20579
lt_prog_compiler_no_builtin_flag \
 
20580
lt_prog_compiler_pic \
 
20581
lt_prog_compiler_wl \
 
20582
lt_prog_compiler_static \
 
20583
lt_cv_prog_compiler_c_o \
 
20584
need_locks \
 
20585
MANIFEST_TOOL \
 
20586
DSYMUTIL \
 
20587
NMEDIT \
 
20588
LIPO \
 
20589
OTOOL \
 
20590
OTOOL64 \
 
20591
shrext_cmds \
 
20592
export_dynamic_flag_spec \
 
20593
whole_archive_flag_spec \
 
20594
compiler_needs_object \
 
20595
with_gnu_ld \
 
20596
allow_undefined_flag \
 
20597
no_undefined_flag \
 
20598
hardcode_libdir_flag_spec \
 
20599
hardcode_libdir_separator \
 
20600
exclude_expsyms \
 
20601
include_expsyms \
 
20602
file_list_spec \
 
20603
variables_saved_for_relink \
 
20604
libname_spec \
 
20605
library_names_spec \
 
20606
soname_spec \
 
20607
install_override_mode \
 
20608
finish_eval \
 
20609
old_striplib \
 
20610
striplib \
 
20611
compiler_lib_search_dirs \
 
20612
predep_objects \
 
20613
postdep_objects \
 
20614
predeps \
 
20615
postdeps \
 
20616
compiler_lib_search_path \
 
20617
LD_CXX \
 
20618
reload_flag_CXX \
 
20619
compiler_CXX \
 
20620
lt_prog_compiler_no_builtin_flag_CXX \
 
20621
lt_prog_compiler_pic_CXX \
 
20622
lt_prog_compiler_wl_CXX \
 
20623
lt_prog_compiler_static_CXX \
 
20624
lt_cv_prog_compiler_c_o_CXX \
 
20625
export_dynamic_flag_spec_CXX \
 
20626
whole_archive_flag_spec_CXX \
 
20627
compiler_needs_object_CXX \
 
20628
with_gnu_ld_CXX \
 
20629
allow_undefined_flag_CXX \
 
20630
no_undefined_flag_CXX \
 
20631
hardcode_libdir_flag_spec_CXX \
 
20632
hardcode_libdir_separator_CXX \
 
20633
exclude_expsyms_CXX \
 
20634
include_expsyms_CXX \
 
20635
file_list_spec_CXX \
 
20636
compiler_lib_search_dirs_CXX \
 
20637
predep_objects_CXX \
 
20638
postdep_objects_CXX \
 
20639
predeps_CXX \
 
20640
postdeps_CXX \
 
20641
compiler_lib_search_path_CXX; do
 
20642
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
20643
    *[\\\\\\\`\\"\\\$]*)
 
20644
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
20645
      ;;
 
20646
    *)
 
20647
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
20648
      ;;
 
20649
    esac
 
20650
done
 
20651
 
 
20652
# Double-quote double-evaled strings.
 
20653
for var in reload_cmds \
 
20654
old_postinstall_cmds \
 
20655
old_postuninstall_cmds \
 
20656
old_archive_cmds \
 
20657
extract_expsyms_cmds \
 
20658
old_archive_from_new_cmds \
 
20659
old_archive_from_expsyms_cmds \
 
20660
archive_cmds \
 
20661
archive_expsym_cmds \
 
20662
module_cmds \
 
20663
module_expsym_cmds \
 
20664
export_symbols_cmds \
 
20665
prelink_cmds \
 
20666
postlink_cmds \
 
20667
postinstall_cmds \
 
20668
postuninstall_cmds \
 
20669
finish_cmds \
 
20670
sys_lib_search_path_spec \
 
20671
sys_lib_dlsearch_path_spec \
 
20672
reload_cmds_CXX \
 
20673
old_archive_cmds_CXX \
 
20674
old_archive_from_new_cmds_CXX \
 
20675
old_archive_from_expsyms_cmds_CXX \
 
20676
archive_cmds_CXX \
 
20677
archive_expsym_cmds_CXX \
 
20678
module_cmds_CXX \
 
20679
module_expsym_cmds_CXX \
 
20680
export_symbols_cmds_CXX \
 
20681
prelink_cmds_CXX \
 
20682
postlink_cmds_CXX; do
 
20683
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
20684
    *[\\\\\\\`\\"\\\$]*)
 
20685
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
20686
      ;;
 
20687
    *)
 
20688
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
20689
      ;;
 
20690
    esac
 
20691
done
 
20692
 
 
20693
ac_aux_dir='$ac_aux_dir'
 
20694
xsi_shell='$xsi_shell'
 
20695
lt_shell_append='$lt_shell_append'
 
20696
 
 
20697
# See if we are running on zsh, and set the options which allow our
 
20698
# commands through without removal of \ escapes INIT.
 
20699
if test -n "\${ZSH_VERSION+set}" ; then
 
20700
   setopt NO_GLOB_SUBST
 
20701
fi
 
20702
 
 
20703
 
 
20704
    PACKAGE='$PACKAGE'
 
20705
    VERSION='$VERSION'
 
20706
    TIMESTAMP='$TIMESTAMP'
 
20707
    RM='$RM'
 
20708
    ofile='$ofile'
 
20709
 
 
20710
 
 
20711
 
 
20712
 
 
20713
 
 
20714
 
 
20715
_ACEOF
 
20716
 
 
20717
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20718
 
 
20719
# Handling of arguments.
 
20720
for ac_config_target in $ac_config_targets
 
20721
do
 
20722
  case $ac_config_target in
 
20723
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
20724
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
20725
    "ringtones/Makefile") CONFIG_FILES="$CONFIG_FILES ringtones/Makefile" ;;
 
20726
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
20727
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
20728
    "doc/dbus-api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dbus-api/Makefile" ;;
 
20729
    "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
 
20730
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
20731
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
20732
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20733
    "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
 
20734
    "libs/iax2/Makefile") CONFIG_FILES="$CONFIG_FILES libs/iax2/Makefile" ;;
 
20735
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
20736
    "src/sip/Makefile") CONFIG_FILES="$CONFIG_FILES src/sip/Makefile" ;;
 
20737
    "src/im/Makefile") CONFIG_FILES="$CONFIG_FILES src/im/Makefile" ;;
 
20738
    "src/iax/Makefile") CONFIG_FILES="$CONFIG_FILES src/iax/Makefile" ;;
 
20739
    "src/audio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;;
 
20740
    "src/audio/audiortp/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/audiortp/Makefile" ;;
 
20741
    "src/audio/pulseaudio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/pulseaudio/Makefile" ;;
 
20742
    "src/audio/alsa/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/alsa/Makefile" ;;
 
20743
    "src/audio/sound/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/sound/Makefile" ;;
 
20744
    "src/audio/codecs/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/codecs/Makefile" ;;
 
20745
    "src/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
 
20746
    "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
 
20747
    "src/hooks/Makefile") CONFIG_FILES="$CONFIG_FILES src/hooks/Makefile" ;;
 
20748
    "src/history/Makefile") CONFIG_FILES="$CONFIG_FILES src/history/Makefile" ;;
 
20749
 
 
20750
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
20751
  esac
 
20752
done
 
20753
 
 
20754
 
 
20755
# If the user did not use the arguments to specify the items to instantiate,
 
20756
# then the envvar interface is used.  Set only those that are not.
 
20757
# We use the long form for the default assignment because of an extremely
 
20758
# bizarre bug on SunOS 4.1.3.
 
20759
if $ac_need_defaults; then
 
20760
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20761
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20762
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
20763
fi
 
20764
 
 
20765
# Have a temporary directory for convenience.  Make it in the build tree
 
20766
# simply because there is no reason against having it here, and in addition,
 
20767
# creating and moving files from /tmp can sometimes cause problems.
 
20768
# Hook for its removal unless debugging.
 
20769
# Note that there is a small window in which the directory will not be cleaned:
 
20770
# after its creation but before its name has been assigned to `$tmp'.
 
20771
$debug ||
 
20772
{
 
20773
  tmp= ac_tmp=
 
20774
  trap 'exit_status=$?
 
20775
  : "${ac_tmp:=$tmp}"
 
20776
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
20777
' 0
 
20778
  trap 'as_fn_exit 1' 1 2 13 15
 
20779
}
 
20780
# Create a (secure) tmp directory for tmp files.
 
20781
 
 
20782
{
 
20783
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
20784
  test -d "$tmp"
 
20785
}  ||
 
20786
{
 
20787
  tmp=./conf$$-$RANDOM
 
20788
  (umask 077 && mkdir "$tmp")
 
20789
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
20790
ac_tmp=$tmp
 
20791
 
 
20792
# Set up the scripts for CONFIG_FILES section.
 
20793
# No need to generate them if there are no CONFIG_FILES.
 
20794
# This happens for instance with `./config.status config.h'.
 
20795
if test -n "$CONFIG_FILES"; then
 
20796
 
 
20797
 
 
20798
ac_cr=`echo X | tr X '\015'`
 
20799
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
20800
# But we know of no other shell where ac_cr would be empty at this
 
20801
# point, so we can use a bashism as a fallback.
 
20802
if test "x$ac_cr" = x; then
 
20803
  eval ac_cr=\$\'\\r\'
 
20804
fi
 
20805
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
20806
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
20807
  ac_cs_awk_cr='\\r'
 
20808
else
 
20809
  ac_cs_awk_cr=$ac_cr
 
20810
fi
 
20811
 
 
20812
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
20813
_ACEOF
 
20814
 
 
20815
 
 
20816
{
 
20817
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
20818
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
20819
  echo "_ACEOF"
 
20820
} >conf$$subs.sh ||
 
20821
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20822
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
20823
ac_delim='%!_!# '
 
20824
for ac_last_try in false false false false false :; do
 
20825
  . ./conf$$subs.sh ||
 
20826
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20827
 
 
20828
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
20829
  if test $ac_delim_n = $ac_delim_num; then
 
20830
    break
 
20831
  elif $ac_last_try; then
 
20832
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20833
  else
 
20834
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20835
  fi
 
20836
done
 
20837
rm -f conf$$subs.sh
 
20838
 
 
20839
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20840
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
20841
_ACEOF
 
20842
sed -n '
 
20843
h
 
20844
s/^/S["/; s/!.*/"]=/
 
20845
p
 
20846
g
 
20847
s/^[^!]*!//
 
20848
:repl
 
20849
t repl
 
20850
s/'"$ac_delim"'$//
 
20851
t delim
 
20852
:nl
 
20853
h
 
20854
s/\(.\{148\}\)..*/\1/
 
20855
t more1
 
20856
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
20857
p
 
20858
n
 
20859
b repl
 
20860
:more1
 
20861
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20862
p
 
20863
g
 
20864
s/.\{148\}//
 
20865
t nl
 
20866
:delim
 
20867
h
 
20868
s/\(.\{148\}\)..*/\1/
 
20869
t more2
 
20870
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
20871
p
 
20872
b
 
20873
:more2
 
20874
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20875
p
 
20876
g
 
20877
s/.\{148\}//
 
20878
t delim
 
20879
' <conf$$subs.awk | sed '
 
20880
/^[^""]/{
 
20881
  N
 
20882
  s/\n//
 
20883
}
 
20884
' >>$CONFIG_STATUS || ac_write_fail=1
 
20885
rm -f conf$$subs.awk
 
20886
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20887
_ACAWK
 
20888
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
20889
  for (key in S) S_is_set[key] = 1
 
20890
  FS = ""
 
20891
 
 
20892
}
 
20893
{
 
20894
  line = $ 0
 
20895
  nfields = split(line, field, "@")
 
20896
  substed = 0
 
20897
  len = length(field[1])
 
20898
  for (i = 2; i < nfields; i++) {
 
20899
    key = field[i]
 
20900
    keylen = length(key)
 
20901
    if (S_is_set[key]) {
 
20902
      value = S[key]
 
20903
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
20904
      len += length(value) + length(field[++i])
 
20905
      substed = 1
 
20906
    } else
 
20907
      len += 1 + keylen
 
20908
  }
 
20909
 
 
20910
  print line
 
20911
}
 
20912
 
 
20913
_ACAWK
 
20914
_ACEOF
 
20915
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20916
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
20917
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
20918
else
 
20919
  cat
 
20920
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
20921
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
20922
_ACEOF
 
20923
 
 
20924
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
20925
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
20926
# trailing colons and then remove the whole line if VPATH becomes empty
 
20927
# (actually we leave an empty line to preserve line numbers).
 
20928
if test "x$srcdir" = x.; then
 
20929
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
20930
h
 
20931
s///
 
20932
s/^/:/
 
20933
s/[      ]*$/:/
 
20934
s/:\$(srcdir):/:/g
 
20935
s/:\${srcdir}:/:/g
 
20936
s/:@srcdir@:/:/g
 
20937
s/^:*//
 
20938
s/:*$//
 
20939
x
 
20940
s/\(=[   ]*\).*/\1/
 
20941
G
 
20942
s/\n//
 
20943
s/^[^=]*=[       ]*$//
 
20944
}'
 
20945
fi
 
20946
 
 
20947
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20948
fi # test -n "$CONFIG_FILES"
 
20949
 
 
20950
# Set up the scripts for CONFIG_HEADERS section.
 
20951
# No need to generate them if there are no CONFIG_HEADERS.
 
20952
# This happens for instance with `./config.status Makefile'.
 
20953
if test -n "$CONFIG_HEADERS"; then
 
20954
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
20955
BEGIN {
 
20956
_ACEOF
 
20957
 
 
20958
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
20959
# here-document in config.status, that substitutes the proper values into
 
20960
# config.h.in to produce config.h.
 
20961
 
 
20962
# Create a delimiter string that does not exist in confdefs.h, to ease
 
20963
# handling of long lines.
 
20964
ac_delim='%!_!# '
 
20965
for ac_last_try in false false :; do
 
20966
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
20967
  if test -z "$ac_tt"; then
 
20968
    break
 
20969
  elif $ac_last_try; then
 
20970
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
20971
  else
 
20972
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20973
  fi
 
20974
done
 
20975
 
 
20976
# For the awk script, D is an array of macro values keyed by name,
 
20977
# likewise P contains macro parameters if any.  Preserve backslash
 
20978
# newline sequences.
 
20979
 
 
20980
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
20981
sed -n '
 
20982
s/.\{148\}/&'"$ac_delim"'/g
 
20983
t rset
 
20984
:rset
 
20985
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
20986
t def
 
20987
d
 
20988
:def
 
20989
s/\\$//
 
20990
t bsnl
 
20991
s/["\\]/\\&/g
 
20992
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20993
D["\1"]=" \3"/p
 
20994
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
20995
d
 
20996
:bsnl
 
20997
s/["\\]/\\&/g
 
20998
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20999
D["\1"]=" \3\\\\\\n"\\/p
 
21000
t cont
 
21001
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
21002
t cont
 
21003
d
 
21004
:cont
 
21005
n
 
21006
s/.\{148\}/&'"$ac_delim"'/g
 
21007
t clear
 
21008
:clear
 
21009
s/\\$//
 
21010
t bsnlc
 
21011
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
21012
d
 
21013
:bsnlc
 
21014
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
21015
b cont
 
21016
' <confdefs.h | sed '
 
21017
s/'"$ac_delim"'/"\\\
 
21018
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
21019
 
 
21020
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
21021
  for (key in D) D_is_set[key] = 1
 
21022
  FS = ""
 
21023
}
 
21024
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
21025
  line = \$ 0
 
21026
  split(line, arg, " ")
 
21027
  if (arg[1] == "#") {
 
21028
    defundef = arg[2]
 
21029
    mac1 = arg[3]
 
21030
  } else {
 
21031
    defundef = substr(arg[1], 2)
 
21032
    mac1 = arg[2]
 
21033
  }
 
21034
  split(mac1, mac2, "(") #)
 
21035
  macro = mac2[1]
 
21036
  prefix = substr(line, 1, index(line, defundef) - 1)
 
21037
  if (D_is_set[macro]) {
 
21038
    # Preserve the white space surrounding the "#".
 
21039
    print prefix "define", macro P[macro] D[macro]
 
21040
    next
 
21041
  } else {
 
21042
    # Replace #undef with comments.  This is necessary, for example,
 
21043
    # in the case of _POSIX_SOURCE, which is predefined and required
 
21044
    # on some systems where configure will not decide to define it.
 
21045
    if (defundef == "undef") {
 
21046
      print "/*", prefix defundef, macro, "*/"
 
21047
      next
 
21048
    }
 
21049
  }
 
21050
}
 
21051
{ print }
 
21052
_ACAWK
 
21053
_ACEOF
 
21054
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
21055
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
21056
fi # test -n "$CONFIG_HEADERS"
 
21057
 
 
21058
 
 
21059
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
21060
shift
 
21061
for ac_tag
 
21062
do
 
21063
  case $ac_tag in
 
21064
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
21065
  esac
 
21066
  case $ac_mode$ac_tag in
 
21067
  :[FHL]*:*);;
 
21068
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
21069
  :[FH]-) ac_tag=-:-;;
 
21070
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
21071
  esac
 
21072
  ac_save_IFS=$IFS
 
21073
  IFS=:
 
21074
  set x $ac_tag
 
21075
  IFS=$ac_save_IFS
 
21076
  shift
 
21077
  ac_file=$1
 
21078
  shift
 
21079
 
 
21080
  case $ac_mode in
 
21081
  :L) ac_source=$1;;
 
21082
  :[FH])
 
21083
    ac_file_inputs=
 
21084
    for ac_f
 
21085
    do
 
21086
      case $ac_f in
 
21087
      -) ac_f="$ac_tmp/stdin";;
 
21088
      *) # Look for the file first in the build tree, then in the source tree
 
21089
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
21090
         # because $ac_f cannot contain `:'.
 
21091
         test -f "$ac_f" ||
 
21092
           case $ac_f in
 
21093
           [\\/$]*) false;;
 
21094
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
21095
           esac ||
 
21096
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
21097
      esac
 
21098
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
21099
      as_fn_append ac_file_inputs " '$ac_f'"
 
21100
    done
 
21101
 
 
21102
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21103
    # use $as_me), people would be surprised to read:
 
21104
    #    /* config.h.  Generated by config.status.  */
 
21105
    configure_input='Generated from '`
 
21106
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
21107
        `' by configure.'
 
21108
    if test x"$ac_file" != x-; then
 
21109
      configure_input="$ac_file.  $configure_input"
 
21110
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
21111
$as_echo "$as_me: creating $ac_file" >&6;}
 
21112
    fi
 
21113
    # Neutralize special characters interpreted by sed in replacement strings.
 
21114
    case $configure_input in #(
 
21115
    *\&* | *\|* | *\\* )
 
21116
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
21117
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
21118
    *) ac_sed_conf_input=$configure_input;;
 
21119
    esac
 
21120
 
 
21121
    case $ac_tag in
 
21122
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
21123
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
21124
    esac
 
21125
    ;;
 
21126
  esac
 
21127
 
 
21128
  ac_dir=`$as_dirname -- "$ac_file" ||
 
21129
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21130
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21131
         X"$ac_file" : 'X\(//\)$' \| \
 
21132
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
21133
$as_echo X"$ac_file" |
 
21134
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21135
            s//\1/
 
21136
            q
 
21137
          }
 
21138
          /^X\(\/\/\)[^/].*/{
 
21139
            s//\1/
 
21140
            q
 
21141
          }
 
21142
          /^X\(\/\/\)$/{
 
21143
            s//\1/
 
21144
            q
 
21145
          }
 
21146
          /^X\(\/\).*/{
 
21147
            s//\1/
 
21148
            q
 
21149
          }
 
21150
          s/.*/./; q'`
 
21151
  as_dir="$ac_dir"; as_fn_mkdir_p
 
21152
  ac_builddir=.
 
21153
 
 
21154
case "$ac_dir" in
 
21155
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21156
*)
 
21157
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
21158
  # A ".." for each directory in $ac_dir_suffix.
 
21159
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
21160
  case $ac_top_builddir_sub in
 
21161
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21162
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
21163
  esac ;;
 
21164
esac
 
21165
ac_abs_top_builddir=$ac_pwd
 
21166
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
21167
# for backward compatibility:
 
21168
ac_top_builddir=$ac_top_build_prefix
 
21169
 
 
21170
case $srcdir in
 
21171
  .)  # We are building in place.
 
21172
    ac_srcdir=.
 
21173
    ac_top_srcdir=$ac_top_builddir_sub
 
21174
    ac_abs_top_srcdir=$ac_pwd ;;
 
21175
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
21176
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21177
    ac_top_srcdir=$srcdir
 
21178
    ac_abs_top_srcdir=$srcdir ;;
 
21179
  *) # Relative name.
 
21180
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
21181
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
21182
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
21183
esac
 
21184
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
21185
 
 
21186
 
 
21187
  case $ac_mode in
 
21188
  :F)
 
21189
  #
 
21190
  # CONFIG_FILE
 
21191
  #
 
21192
 
 
21193
  case $INSTALL in
 
21194
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21195
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
21196
  esac
 
21197
  ac_MKDIR_P=$MKDIR_P
 
21198
  case $MKDIR_P in
 
21199
  [\\/$]* | ?:[\\/]* ) ;;
 
21200
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
21201
  esac
 
21202
_ACEOF
 
21203
 
 
21204
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
21205
# If the template does not know about datarootdir, expand it.
 
21206
# FIXME: This hack should be removed a few years after 2.60.
 
21207
ac_datarootdir_hack=; ac_datarootdir_seen=
 
21208
ac_sed_dataroot='
 
21209
/datarootdir/ {
 
21210
  p
 
21211
  q
 
21212
}
 
21213
/@datadir@/p
 
21214
/@docdir@/p
 
21215
/@infodir@/p
 
21216
/@localedir@/p
 
21217
/@mandir@/p'
 
21218
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
21219
*datarootdir*) ac_datarootdir_seen=yes;;
 
21220
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
21221
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
21222
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
21223
_ACEOF
 
21224
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
21225
  ac_datarootdir_hack='
 
21226
  s&@datadir@&$datadir&g
 
21227
  s&@docdir@&$docdir&g
 
21228
  s&@infodir@&$infodir&g
 
21229
  s&@localedir@&$localedir&g
 
21230
  s&@mandir@&$mandir&g
 
21231
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
21232
esac
 
21233
_ACEOF
 
21234
 
 
21235
# Neutralize VPATH when `$srcdir' = `.'.
 
21236
# Shell code in configure.ac might set extrasub.
 
21237
# FIXME: do we really want to maintain this feature?
 
21238
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
21239
ac_sed_extra="$ac_vpsub
 
21240
$extrasub
 
21241
_ACEOF
 
21242
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
21243
:t
 
21244
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21245
s|@configure_input@|$ac_sed_conf_input|;t t
 
21246
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
21247
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
21248
s&@srcdir@&$ac_srcdir&;t t
 
21249
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
21250
s&@top_srcdir@&$ac_top_srcdir&;t t
 
21251
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
21252
s&@builddir@&$ac_builddir&;t t
 
21253
s&@abs_builddir@&$ac_abs_builddir&;t t
 
21254
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
21255
s&@INSTALL@&$ac_INSTALL&;t t
 
21256
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
21257
$ac_datarootdir_hack
 
21258
"
 
21259
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
21260
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
21261
 
 
21262
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
21263
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
21264
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
21265
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
21266
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21267
which seems to be undefined.  Please make sure it is defined" >&5
 
21268
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21269
which seems to be undefined.  Please make sure it is defined" >&2;}
 
21270
 
 
21271
  rm -f "$ac_tmp/stdin"
 
21272
  case $ac_file in
 
21273
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
21274
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
21275
  esac \
 
21276
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
21277
 ;;
 
21278
  :H)
 
21279
  #
 
21280
  # CONFIG_HEADER
 
21281
  #
 
21282
  if test x"$ac_file" != x-; then
 
21283
    {
 
21284
      $as_echo "/* $configure_input  */" \
 
21285
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
21286
    } >"$ac_tmp/config.h" \
 
21287
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
21288
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
21289
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
21290
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
21291
    else
 
21292
      rm -f "$ac_file"
 
21293
      mv "$ac_tmp/config.h" "$ac_file" \
 
21294
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
21295
    fi
 
21296
  else
 
21297
    $as_echo "/* $configure_input  */" \
 
21298
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
21299
      || as_fn_error $? "could not create -" "$LINENO" 5
 
21300
  fi
 
21301
# Compute "$ac_file"'s index in $config_headers.
 
21302
_am_arg="$ac_file"
 
21303
_am_stamp_count=1
 
21304
for _am_header in $config_headers :; do
 
21305
  case $_am_header in
 
21306
    $_am_arg | $_am_arg:* )
 
21307
      break ;;
 
21308
    * )
 
21309
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21310
  esac
 
21311
done
 
21312
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
21313
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21314
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
21315
         X"$_am_arg" : 'X\(//\)$' \| \
 
21316
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
21317
$as_echo X"$_am_arg" |
 
21318
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21319
            s//\1/
 
21320
            q
 
21321
          }
 
21322
          /^X\(\/\/\)[^/].*/{
 
21323
            s//\1/
 
21324
            q
 
21325
          }
 
21326
          /^X\(\/\/\)$/{
 
21327
            s//\1/
 
21328
            q
 
21329
          }
 
21330
          /^X\(\/\).*/{
 
21331
            s//\1/
 
21332
            q
 
21333
          }
 
21334
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21335
 ;;
 
21336
 
 
21337
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
21338
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
21339
 ;;
 
21340
  esac
 
21341
 
 
21342
 
 
21343
  case $ac_file$ac_mode in
 
21344
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
21345
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
21346
  # are listed without --file.  Let's play safe and only enable the eval
 
21347
  # if we detect the quoting.
 
21348
  case $CONFIG_FILES in
 
21349
  *\'*) eval set x "$CONFIG_FILES" ;;
 
21350
  *)   set x $CONFIG_FILES ;;
 
21351
  esac
 
21352
  shift
 
21353
  for mf
 
21354
  do
 
21355
    # Strip MF so we end up with the name of the file.
 
21356
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21357
    # Check whether this is an Automake generated Makefile or not.
 
21358
    # We used to match only the files named `Makefile.in', but
 
21359
    # some people rename them; so instead we look at the file content.
 
21360
    # Grep'ing the first line is not enough: some people post-process
 
21361
    # each Makefile.in and add a new line on top of each file to say so.
 
21362
    # Grep'ing the whole file is not good either: AIX grep has a line
 
21363
    # limit of 2048, but all sed's we know have understand at least 4000.
 
21364
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
21365
      dirpart=`$as_dirname -- "$mf" ||
 
21366
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21367
         X"$mf" : 'X\(//\)[^/]' \| \
 
21368
         X"$mf" : 'X\(//\)$' \| \
 
21369
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
21370
$as_echo X"$mf" |
 
21371
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21372
            s//\1/
 
21373
            q
 
21374
          }
 
21375
          /^X\(\/\/\)[^/].*/{
 
21376
            s//\1/
 
21377
            q
 
21378
          }
 
21379
          /^X\(\/\/\)$/{
 
21380
            s//\1/
 
21381
            q
 
21382
          }
 
21383
          /^X\(\/\).*/{
 
21384
            s//\1/
 
21385
            q
 
21386
          }
 
21387
          s/.*/./; q'`
 
21388
    else
 
21389
      continue
 
21390
    fi
 
21391
    # Extract the definition of DEPDIR, am__include, and am__quote
 
21392
    # from the Makefile without running `make'.
 
21393
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21394
    test -z "$DEPDIR" && continue
 
21395
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21396
    test -z "am__include" && continue
 
21397
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21398
    # When using ansi2knr, U may be empty or an underscore; expand it
 
21399
    U=`sed -n 's/^U = //p' < "$mf"`
 
21400
    # Find all dependency output files, they are included files with
 
21401
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21402
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
21403
    # expansion.
 
21404
    for file in `sed -n "
 
21405
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21406
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21407
      # Make sure the directory exists.
 
21408
      test -f "$dirpart/$file" && continue
 
21409
      fdir=`$as_dirname -- "$file" ||
 
21410
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21411
         X"$file" : 'X\(//\)[^/]' \| \
 
21412
         X"$file" : 'X\(//\)$' \| \
 
21413
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
21414
$as_echo X"$file" |
 
21415
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21416
            s//\1/
 
21417
            q
 
21418
          }
 
21419
          /^X\(\/\/\)[^/].*/{
 
21420
            s//\1/
 
21421
            q
 
21422
          }
 
21423
          /^X\(\/\/\)$/{
 
21424
            s//\1/
 
21425
            q
 
21426
          }
 
21427
          /^X\(\/\).*/{
 
21428
            s//\1/
 
21429
            q
 
21430
          }
 
21431
          s/.*/./; q'`
 
21432
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
21433
      # echo "creating $dirpart/$file"
 
21434
      echo '# dummy' > "$dirpart/$file"
 
21435
    done
 
21436
  done
 
21437
}
 
21438
 ;;
 
21439
    "libtool":C)
 
21440
 
 
21441
    # See if we are running on zsh, and set the options which allow our
 
21442
    # commands through without removal of \ escapes.
 
21443
    if test -n "${ZSH_VERSION+set}" ; then
 
21444
      setopt NO_GLOB_SUBST
 
21445
    fi
 
21446
 
 
21447
    cfgfile="${ofile}T"
 
21448
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
21449
    $RM "$cfgfile"
 
21450
 
 
21451
    cat <<_LT_EOF >> "$cfgfile"
 
21452
#! $SHELL
 
21453
 
 
21454
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
21455
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
21456
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21457
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
21458
#
 
21459
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
21460
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
21461
#                 Foundation, Inc.
 
21462
#   Written by Gordon Matzigkeit, 1996
 
21463
#
 
21464
#   This file is part of GNU Libtool.
 
21465
#
 
21466
# GNU Libtool is free software; you can redistribute it and/or
 
21467
# modify it under the terms of the GNU General Public License as
 
21468
# published by the Free Software Foundation; either version 2 of
 
21469
# the License, or (at your option) any later version.
 
21470
#
 
21471
# As a special exception to the GNU General Public License,
 
21472
# if you distribute this file as part of a program or library that
 
21473
# is built using GNU Libtool, you may include this file under the
 
21474
# same distribution terms that you use for the rest of that program.
 
21475
#
 
21476
# GNU Libtool is distributed in the hope that it will be useful,
 
21477
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21478
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21479
# GNU General Public License for more details.
 
21480
#
 
21481
# You should have received a copy of the GNU General Public License
 
21482
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
21483
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
21484
# obtained by writing to the Free Software Foundation, Inc.,
 
21485
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
21486
 
 
21487
 
 
21488
# The names of the tagged configurations supported by this script.
 
21489
available_tags="CXX "
 
21490
 
 
21491
# ### BEGIN LIBTOOL CONFIG
 
21492
 
 
21493
# Which release of libtool.m4 was used?
 
21494
macro_version=$macro_version
 
21495
macro_revision=$macro_revision
 
21496
 
 
21497
# Whether or not to build shared libraries.
 
21498
build_libtool_libs=$enable_shared
 
21499
 
 
21500
# Whether or not to build static libraries.
 
21501
build_old_libs=$enable_static
 
21502
 
 
21503
# What type of objects to build.
 
21504
pic_mode=$pic_mode
 
21505
 
 
21506
# Whether or not to optimize for fast installation.
 
21507
fast_install=$enable_fast_install
 
21508
 
 
21509
# Shell to use when invoking shell scripts.
 
21510
SHELL=$lt_SHELL
 
21511
 
 
21512
# An echo program that protects backslashes.
 
21513
ECHO=$lt_ECHO
 
21514
 
 
21515
# The PATH separator for the build system.
 
21516
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
21517
 
 
21518
# The host system.
 
21519
host_alias=$host_alias
 
21520
host=$host
 
21521
host_os=$host_os
 
21522
 
 
21523
# The build system.
 
21524
build_alias=$build_alias
 
21525
build=$build
 
21526
build_os=$build_os
 
21527
 
 
21528
# A sed program that does not truncate output.
 
21529
SED=$lt_SED
 
21530
 
 
21531
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
21532
Xsed="\$SED -e 1s/^X//"
 
21533
 
 
21534
# A grep program that handles long lines.
 
21535
GREP=$lt_GREP
 
21536
 
 
21537
# An ERE matcher.
 
21538
EGREP=$lt_EGREP
 
21539
 
 
21540
# A literal string matcher.
 
21541
FGREP=$lt_FGREP
 
21542
 
 
21543
# A BSD- or MS-compatible name lister.
 
21544
NM=$lt_NM
 
21545
 
 
21546
# Whether we need soft or hard links.
 
21547
LN_S=$lt_LN_S
 
21548
 
 
21549
# What is the maximum length of a command?
 
21550
max_cmd_len=$max_cmd_len
 
21551
 
 
21552
# Object file suffix (normally "o").
 
21553
objext=$ac_objext
 
21554
 
 
21555
# Executable file suffix (normally "").
 
21556
exeext=$exeext
 
21557
 
 
21558
# whether the shell understands "unset".
 
21559
lt_unset=$lt_unset
 
21560
 
 
21561
# turn spaces into newlines.
 
21562
SP2NL=$lt_lt_SP2NL
 
21563
 
 
21564
# turn newlines into spaces.
 
21565
NL2SP=$lt_lt_NL2SP
 
21566
 
 
21567
# convert \$build file names to \$host format.
 
21568
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
21569
 
 
21570
# convert \$build files to toolchain format.
 
21571
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
21572
 
 
21573
# An object symbol dumper.
 
21574
OBJDUMP=$lt_OBJDUMP
 
21575
 
 
21576
# Method to check whether dependent libraries are shared objects.
 
21577
deplibs_check_method=$lt_deplibs_check_method
 
21578
 
 
21579
# Command to use when deplibs_check_method = "file_magic".
 
21580
file_magic_cmd=$lt_file_magic_cmd
 
21581
 
 
21582
# How to find potential files when deplibs_check_method = "file_magic".
 
21583
file_magic_glob=$lt_file_magic_glob
 
21584
 
 
21585
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
21586
want_nocaseglob=$lt_want_nocaseglob
 
21587
 
 
21588
# DLL creation program.
 
21589
DLLTOOL=$lt_DLLTOOL
 
21590
 
 
21591
# Command to associate shared and link libraries.
 
21592
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
21593
 
 
21594
# The archiver.
 
21595
AR=$lt_AR
 
21596
 
 
21597
# Flags to create an archive.
 
21598
AR_FLAGS=$lt_AR_FLAGS
 
21599
 
 
21600
# How to feed a file listing to the archiver.
 
21601
archiver_list_spec=$lt_archiver_list_spec
 
21602
 
 
21603
# A symbol stripping program.
 
21604
STRIP=$lt_STRIP
 
21605
 
 
21606
# Commands used to install an old-style archive.
 
21607
RANLIB=$lt_RANLIB
 
21608
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21609
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21610
 
 
21611
# Whether to use a lock for old archive extraction.
 
21612
lock_old_archive_extraction=$lock_old_archive_extraction
 
21613
 
 
21614
# A C compiler.
 
21615
LTCC=$lt_CC
 
21616
 
 
21617
# LTCC compiler flags.
 
21618
LTCFLAGS=$lt_CFLAGS
 
21619
 
 
21620
# Take the output of nm and produce a listing of raw symbols and C names.
 
21621
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21622
 
 
21623
# Transform the output of nm in a proper C declaration.
 
21624
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21625
 
 
21626
# Transform the output of nm in a C name address pair.
 
21627
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21628
 
 
21629
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
21630
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
21631
 
 
21632
# Specify filename containing input files for \$NM.
 
21633
nm_file_list_spec=$lt_nm_file_list_spec
 
21634
 
 
21635
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
21636
lt_sysroot=$lt_sysroot
 
21637
 
 
21638
# The name of the directory that contains temporary libtool files.
 
21639
objdir=$objdir
 
21640
 
 
21641
# Used to examine libraries when file_magic_cmd begins with "file".
 
21642
MAGIC_CMD=$MAGIC_CMD
 
21643
 
 
21644
# Must we lock files when doing compilation?
 
21645
need_locks=$lt_need_locks
 
21646
 
 
21647
# Manifest tool.
 
21648
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
21649
 
 
21650
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
21651
DSYMUTIL=$lt_DSYMUTIL
 
21652
 
 
21653
# Tool to change global to local symbols on Mac OS X.
 
21654
NMEDIT=$lt_NMEDIT
 
21655
 
 
21656
# Tool to manipulate fat objects and archives on Mac OS X.
 
21657
LIPO=$lt_LIPO
 
21658
 
 
21659
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
21660
OTOOL=$lt_OTOOL
 
21661
 
 
21662
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
21663
OTOOL64=$lt_OTOOL64
 
21664
 
 
21665
# Old archive suffix (normally "a").
 
21666
libext=$libext
 
21667
 
 
21668
# Shared library suffix (normally ".so").
 
21669
shrext_cmds=$lt_shrext_cmds
 
21670
 
 
21671
# The commands to extract the exported symbol list from a shared archive.
 
21672
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21673
 
 
21674
# Variables whose values should be saved in libtool wrapper scripts and
 
21675
# restored at link time.
 
21676
variables_saved_for_relink=$lt_variables_saved_for_relink
 
21677
 
 
21678
# Do we need the "lib" prefix for modules?
 
21679
need_lib_prefix=$need_lib_prefix
 
21680
 
 
21681
# Do we need a version for libraries?
 
21682
need_version=$need_version
 
21683
 
 
21684
# Library versioning type.
 
21685
version_type=$version_type
 
21686
 
 
21687
# Shared library runtime path variable.
 
21688
runpath_var=$runpath_var
 
21689
 
 
21690
# Shared library path variable.
 
21691
shlibpath_var=$shlibpath_var
 
21692
 
 
21693
# Is shlibpath searched before the hard-coded library search path?
 
21694
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21695
 
 
21696
# Format of library name prefix.
 
21697
libname_spec=$lt_libname_spec
 
21698
 
 
21699
# List of archive names.  First name is the real one, the rest are links.
 
21700
# The last name is the one that the linker finds with -lNAME
 
21701
library_names_spec=$lt_library_names_spec
 
21702
 
 
21703
# The coded name of the library, if different from the real name.
 
21704
soname_spec=$lt_soname_spec
 
21705
 
 
21706
# Permission mode override for installation of shared libraries.
 
21707
install_override_mode=$lt_install_override_mode
 
21708
 
 
21709
# Command to use after installation of a shared archive.
 
21710
postinstall_cmds=$lt_postinstall_cmds
 
21711
 
 
21712
# Command to use after uninstallation of a shared archive.
 
21713
postuninstall_cmds=$lt_postuninstall_cmds
 
21714
 
 
21715
# Commands used to finish a libtool library installation in a directory.
 
21716
finish_cmds=$lt_finish_cmds
 
21717
 
 
21718
# As "finish_cmds", except a single script fragment to be evaled but
 
21719
# not shown.
 
21720
finish_eval=$lt_finish_eval
 
21721
 
 
21722
# Whether we should hardcode library paths into libraries.
 
21723
hardcode_into_libs=$hardcode_into_libs
 
21724
 
 
21725
# Compile-time system search path for libraries.
 
21726
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21727
 
 
21728
# Run-time system search path for libraries.
 
21729
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21730
 
 
21731
# Whether dlopen is supported.
 
21732
dlopen_support=$enable_dlopen
 
21733
 
 
21734
# Whether dlopen of programs is supported.
 
21735
dlopen_self=$enable_dlopen_self
 
21736
 
 
21737
# Whether dlopen of statically linked programs is supported.
 
21738
dlopen_self_static=$enable_dlopen_self_static
 
21739
 
 
21740
# Commands to strip libraries.
 
21741
old_striplib=$lt_old_striplib
 
21742
striplib=$lt_striplib
 
21743
 
 
21744
 
 
21745
# The linker used to build libraries.
 
21746
LD=$lt_LD
 
21747
 
 
21748
# How to create reloadable object files.
 
21749
reload_flag=$lt_reload_flag
 
21750
reload_cmds=$lt_reload_cmds
 
21751
 
 
21752
# Commands used to build an old-style archive.
 
21753
old_archive_cmds=$lt_old_archive_cmds
 
21754
 
 
21755
# A language specific compiler.
 
21756
CC=$lt_compiler
 
21757
 
 
21758
# Is the compiler the GNU compiler?
 
21759
with_gcc=$GCC
 
21760
 
 
21761
# Compiler flag to turn off builtin functions.
 
21762
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
21763
 
 
21764
# Additional compiler flags for building library objects.
 
21765
pic_flag=$lt_lt_prog_compiler_pic
 
21766
 
 
21767
# How to pass a linker flag through the compiler.
 
21768
wl=$lt_lt_prog_compiler_wl
 
21769
 
 
21770
# Compiler flag to prevent dynamic linking.
 
21771
link_static_flag=$lt_lt_prog_compiler_static
 
21772
 
 
21773
# Does compiler simultaneously support -c and -o options?
 
21774
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
21775
 
 
21776
# Whether or not to add -lc for building shared libraries.
 
21777
build_libtool_need_lc=$archive_cmds_need_lc
 
21778
 
 
21779
# Whether or not to disallow shared libs when runtime libs are static.
 
21780
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
21781
 
 
21782
# Compiler flag to allow reflexive dlopens.
 
21783
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
21784
 
 
21785
# Compiler flag to generate shared objects directly from archives.
 
21786
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
21787
 
 
21788
# Whether the compiler copes with passing no objects directly.
 
21789
compiler_needs_object=$lt_compiler_needs_object
 
21790
 
 
21791
# Create an old-style archive from a shared archive.
 
21792
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
21793
 
 
21794
# Create a temporary old-style archive to link instead of a shared archive.
 
21795
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
21796
 
 
21797
# Commands used to build a shared archive.
 
21798
archive_cmds=$lt_archive_cmds
 
21799
archive_expsym_cmds=$lt_archive_expsym_cmds
 
21800
 
 
21801
# Commands used to build a loadable module if different from building
 
21802
# a shared archive.
 
21803
module_cmds=$lt_module_cmds
 
21804
module_expsym_cmds=$lt_module_expsym_cmds
 
21805
 
 
21806
# Whether we are building with GNU ld or not.
 
21807
with_gnu_ld=$lt_with_gnu_ld
 
21808
 
 
21809
# Flag that allows shared libraries with undefined symbols to be built.
 
21810
allow_undefined_flag=$lt_allow_undefined_flag
 
21811
 
 
21812
# Flag that enforces no undefined symbols.
 
21813
no_undefined_flag=$lt_no_undefined_flag
 
21814
 
 
21815
# Flag to hardcode \$libdir into a binary during linking.
 
21816
# This must work even if \$libdir does not exist
 
21817
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
21818
 
 
21819
# Whether we need a single "-rpath" flag with a separated argument.
 
21820
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
21821
 
 
21822
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21823
# DIR into the resulting binary.
 
21824
hardcode_direct=$hardcode_direct
 
21825
 
 
21826
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21827
# DIR into the resulting binary and the resulting library dependency is
 
21828
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
21829
# library is relocated.
 
21830
hardcode_direct_absolute=$hardcode_direct_absolute
 
21831
 
 
21832
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21833
# into the resulting binary.
 
21834
hardcode_minus_L=$hardcode_minus_L
 
21835
 
 
21836
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21837
# into the resulting binary.
 
21838
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
21839
 
 
21840
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21841
# into the library and all subsequent libraries and executables linked
 
21842
# against it.
 
21843
hardcode_automatic=$hardcode_automatic
 
21844
 
 
21845
# Set to yes if linker adds runtime paths of dependent libraries
 
21846
# to runtime path list.
 
21847
inherit_rpath=$inherit_rpath
 
21848
 
 
21849
# Whether libtool must link a program against all its dependency libraries.
 
21850
link_all_deplibs=$link_all_deplibs
 
21851
 
 
21852
# Set to "yes" if exported symbols are required.
 
21853
always_export_symbols=$always_export_symbols
 
21854
 
 
21855
# The commands to list exported symbols.
 
21856
export_symbols_cmds=$lt_export_symbols_cmds
 
21857
 
 
21858
# Symbols that should not be listed in the preloaded symbols.
 
21859
exclude_expsyms=$lt_exclude_expsyms
 
21860
 
 
21861
# Symbols that must always be exported.
 
21862
include_expsyms=$lt_include_expsyms
 
21863
 
 
21864
# Commands necessary for linking programs (against libraries) with templates.
 
21865
prelink_cmds=$lt_prelink_cmds
 
21866
 
 
21867
# Commands necessary for finishing linking programs.
 
21868
postlink_cmds=$lt_postlink_cmds
 
21869
 
 
21870
# Specify filename containing input files.
 
21871
file_list_spec=$lt_file_list_spec
 
21872
 
 
21873
# How to hardcode a shared library path into an executable.
 
21874
hardcode_action=$hardcode_action
 
21875
 
 
21876
# The directories searched by this compiler when creating a shared library.
 
21877
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
21878
 
 
21879
# Dependencies to place before and after the objects being linked to
 
21880
# create a shared library.
 
21881
predep_objects=$lt_predep_objects
 
21882
postdep_objects=$lt_postdep_objects
 
21883
predeps=$lt_predeps
 
21884
postdeps=$lt_postdeps
 
21885
 
 
21886
# The library search path used internally by the compiler when linking
 
21887
# a shared library.
 
21888
compiler_lib_search_path=$lt_compiler_lib_search_path
 
21889
 
 
21890
# ### END LIBTOOL CONFIG
 
21891
 
 
21892
_LT_EOF
 
21893
 
 
21894
  case $host_os in
 
21895
  aix3*)
 
21896
    cat <<\_LT_EOF >> "$cfgfile"
 
21897
# AIX sometimes has problems with the GCC collect2 program.  For some
 
21898
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
21899
# vanish in a puff of smoke.
 
21900
if test "X${COLLECT_NAMES+set}" != Xset; then
 
21901
  COLLECT_NAMES=
 
21902
  export COLLECT_NAMES
 
21903
fi
 
21904
_LT_EOF
 
21905
    ;;
 
21906
  esac
 
21907
 
 
21908
 
 
21909
ltmain="$ac_aux_dir/ltmain.sh"
 
21910
 
 
21911
 
 
21912
  # We use sed instead of cat because bash on DJGPP gets confused if
 
21913
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
21914
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
21915
  # is reportedly fixed, but why not run on old versions too?
 
21916
  sed '$q' "$ltmain" >> "$cfgfile" \
 
21917
     || (rm -f "$cfgfile"; exit 1)
 
21918
 
 
21919
  if test x"$xsi_shell" = xyes; then
 
21920
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
21921
func_dirname ()\
 
21922
{\
 
21923
\    case ${1} in\
 
21924
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
21925
\      *  ) func_dirname_result="${3}" ;;\
 
21926
\    esac\
 
21927
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
21928
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21929
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21930
test 0 -eq $? || _lt_function_replace_fail=:
 
21931
 
 
21932
 
 
21933
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
21934
func_basename ()\
 
21935
{\
 
21936
\    func_basename_result="${1##*/}"\
 
21937
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
21938
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21939
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21940
test 0 -eq $? || _lt_function_replace_fail=:
 
21941
 
 
21942
 
 
21943
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
21944
func_dirname_and_basename ()\
 
21945
{\
 
21946
\    case ${1} in\
 
21947
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
21948
\      *  ) func_dirname_result="${3}" ;;\
 
21949
\    esac\
 
21950
\    func_basename_result="${1##*/}"\
 
21951
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
21952
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21953
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21954
test 0 -eq $? || _lt_function_replace_fail=:
 
21955
 
 
21956
 
 
21957
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
21958
func_stripname ()\
 
21959
{\
 
21960
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
21961
\    # positional parameters, so assign one to ordinary parameter first.\
 
21962
\    func_stripname_result=${3}\
 
21963
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
21964
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
21965
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
21966
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21967
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21968
test 0 -eq $? || _lt_function_replace_fail=:
 
21969
 
 
21970
 
 
21971
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
21972
func_split_long_opt ()\
 
21973
{\
 
21974
\    func_split_long_opt_name=${1%%=*}\
 
21975
\    func_split_long_opt_arg=${1#*=}\
 
21976
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
21977
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21978
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21979
test 0 -eq $? || _lt_function_replace_fail=:
 
21980
 
 
21981
 
 
21982
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
21983
func_split_short_opt ()\
 
21984
{\
 
21985
\    func_split_short_opt_arg=${1#??}\
 
21986
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
21987
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
21988
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21989
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21990
test 0 -eq $? || _lt_function_replace_fail=:
 
21991
 
 
21992
 
 
21993
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
21994
func_lo2o ()\
 
21995
{\
 
21996
\    case ${1} in\
 
21997
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
21998
\      *)    func_lo2o_result=${1} ;;\
 
21999
\    esac\
 
22000
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
22001
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22002
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22003
test 0 -eq $? || _lt_function_replace_fail=:
 
22004
 
 
22005
 
 
22006
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
22007
func_xform ()\
 
22008
{\
 
22009
    func_xform_result=${1%.*}.lo\
 
22010
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
22011
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22012
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22013
test 0 -eq $? || _lt_function_replace_fail=:
 
22014
 
 
22015
 
 
22016
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
22017
func_arith ()\
 
22018
{\
 
22019
    func_arith_result=$(( $* ))\
 
22020
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
22021
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22022
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22023
test 0 -eq $? || _lt_function_replace_fail=:
 
22024
 
 
22025
 
 
22026
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
22027
func_len ()\
 
22028
{\
 
22029
    func_len_result=${#1}\
 
22030
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
22031
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22032
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22033
test 0 -eq $? || _lt_function_replace_fail=:
 
22034
 
 
22035
fi
 
22036
 
 
22037
if test x"$lt_shell_append" = xyes; then
 
22038
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
22039
func_append ()\
 
22040
{\
 
22041
    eval "${1}+=\\${2}"\
 
22042
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
22043
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22044
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22045
test 0 -eq $? || _lt_function_replace_fail=:
 
22046
 
 
22047
 
 
22048
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
22049
func_append_quoted ()\
 
22050
{\
 
22051
\    func_quote_for_eval "${2}"\
 
22052
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
22053
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
22054
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22055
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22056
test 0 -eq $? || _lt_function_replace_fail=:
 
22057
 
 
22058
 
 
22059
  # Save a `func_append' function call where possible by direct use of '+='
 
22060
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
22061
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22062
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22063
  test 0 -eq $? || _lt_function_replace_fail=:
 
22064
else
 
22065
  # Save a `func_append' function call even when '+=' is not available
 
22066
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
22067
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
22068
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
22069
  test 0 -eq $? || _lt_function_replace_fail=:
 
22070
fi
 
22071
 
 
22072
if test x"$_lt_function_replace_fail" = x":"; then
 
22073
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
22074
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
22075
fi
 
22076
 
 
22077
 
 
22078
   mv -f "$cfgfile" "$ofile" ||
 
22079
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
22080
  chmod +x "$ofile"
 
22081
 
 
22082
 
 
22083
    cat <<_LT_EOF >> "$ofile"
 
22084
 
 
22085
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
22086
 
 
22087
# The linker used to build libraries.
 
22088
LD=$lt_LD_CXX
 
22089
 
 
22090
# How to create reloadable object files.
 
22091
reload_flag=$lt_reload_flag_CXX
 
22092
reload_cmds=$lt_reload_cmds_CXX
 
22093
 
 
22094
# Commands used to build an old-style archive.
 
22095
old_archive_cmds=$lt_old_archive_cmds_CXX
 
22096
 
 
22097
# A language specific compiler.
 
22098
CC=$lt_compiler_CXX
 
22099
 
 
22100
# Is the compiler the GNU compiler?
 
22101
with_gcc=$GCC_CXX
 
22102
 
 
22103
# Compiler flag to turn off builtin functions.
 
22104
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
22105
 
 
22106
# Additional compiler flags for building library objects.
 
22107
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
22108
 
 
22109
# How to pass a linker flag through the compiler.
 
22110
wl=$lt_lt_prog_compiler_wl_CXX
 
22111
 
 
22112
# Compiler flag to prevent dynamic linking.
 
22113
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
22114
 
 
22115
# Does compiler simultaneously support -c and -o options?
 
22116
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
22117
 
 
22118
# Whether or not to add -lc for building shared libraries.
 
22119
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
22120
 
 
22121
# Whether or not to disallow shared libs when runtime libs are static.
 
22122
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
22123
 
 
22124
# Compiler flag to allow reflexive dlopens.
 
22125
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
22126
 
 
22127
# Compiler flag to generate shared objects directly from archives.
 
22128
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
22129
 
 
22130
# Whether the compiler copes with passing no objects directly.
 
22131
compiler_needs_object=$lt_compiler_needs_object_CXX
 
22132
 
 
22133
# Create an old-style archive from a shared archive.
 
22134
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
22135
 
 
22136
# Create a temporary old-style archive to link instead of a shared archive.
 
22137
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
22138
 
 
22139
# Commands used to build a shared archive.
 
22140
archive_cmds=$lt_archive_cmds_CXX
 
22141
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
22142
 
 
22143
# Commands used to build a loadable module if different from building
 
22144
# a shared archive.
 
22145
module_cmds=$lt_module_cmds_CXX
 
22146
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
22147
 
 
22148
# Whether we are building with GNU ld or not.
 
22149
with_gnu_ld=$lt_with_gnu_ld_CXX
 
22150
 
 
22151
# Flag that allows shared libraries with undefined symbols to be built.
 
22152
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
22153
 
 
22154
# Flag that enforces no undefined symbols.
 
22155
no_undefined_flag=$lt_no_undefined_flag_CXX
 
22156
 
 
22157
# Flag to hardcode \$libdir into a binary during linking.
 
22158
# This must work even if \$libdir does not exist
 
22159
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
22160
 
 
22161
# Whether we need a single "-rpath" flag with a separated argument.
 
22162
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
22163
 
 
22164
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
22165
# DIR into the resulting binary.
 
22166
hardcode_direct=$hardcode_direct_CXX
 
22167
 
 
22168
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
22169
# DIR into the resulting binary and the resulting library dependency is
 
22170
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
22171
# library is relocated.
 
22172
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
22173
 
 
22174
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
22175
# into the resulting binary.
 
22176
hardcode_minus_L=$hardcode_minus_L_CXX
 
22177
 
 
22178
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
22179
# into the resulting binary.
 
22180
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
22181
 
 
22182
# Set to "yes" if building a shared library automatically hardcodes DIR
 
22183
# into the library and all subsequent libraries and executables linked
 
22184
# against it.
 
22185
hardcode_automatic=$hardcode_automatic_CXX
 
22186
 
 
22187
# Set to yes if linker adds runtime paths of dependent libraries
 
22188
# to runtime path list.
 
22189
inherit_rpath=$inherit_rpath_CXX
 
22190
 
 
22191
# Whether libtool must link a program against all its dependency libraries.
 
22192
link_all_deplibs=$link_all_deplibs_CXX
 
22193
 
 
22194
# Set to "yes" if exported symbols are required.
 
22195
always_export_symbols=$always_export_symbols_CXX
 
22196
 
 
22197
# The commands to list exported symbols.
 
22198
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
22199
 
 
22200
# Symbols that should not be listed in the preloaded symbols.
 
22201
exclude_expsyms=$lt_exclude_expsyms_CXX
 
22202
 
 
22203
# Symbols that must always be exported.
 
22204
include_expsyms=$lt_include_expsyms_CXX
 
22205
 
 
22206
# Commands necessary for linking programs (against libraries) with templates.
 
22207
prelink_cmds=$lt_prelink_cmds_CXX
 
22208
 
 
22209
# Commands necessary for finishing linking programs.
 
22210
postlink_cmds=$lt_postlink_cmds_CXX
 
22211
 
 
22212
# Specify filename containing input files.
 
22213
file_list_spec=$lt_file_list_spec_CXX
 
22214
 
 
22215
# How to hardcode a shared library path into an executable.
 
22216
hardcode_action=$hardcode_action_CXX
 
22217
 
 
22218
# The directories searched by this compiler when creating a shared library.
 
22219
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
22220
 
 
22221
# Dependencies to place before and after the objects being linked to
 
22222
# create a shared library.
 
22223
predep_objects=$lt_predep_objects_CXX
 
22224
postdep_objects=$lt_postdep_objects_CXX
 
22225
predeps=$lt_predeps_CXX
 
22226
postdeps=$lt_postdeps_CXX
 
22227
 
 
22228
# The library search path used internally by the compiler when linking
 
22229
# a shared library.
 
22230
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
22231
 
 
22232
# ### END LIBTOOL TAG CONFIG: CXX
 
22233
_LT_EOF
 
22234
 
 
22235
 ;;
 
22236
 
 
22237
  esac
 
22238
done # for ac_tag
 
22239
 
 
22240
 
 
22241
as_fn_exit 0
 
22242
_ACEOF
 
22243
ac_clean_files=$ac_clean_files_save
 
22244
 
 
22245
test $ac_write_fail = 0 ||
 
22246
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
22247
 
 
22248
 
 
22249
# configure is writing to config.log, and then calls config.status.
 
22250
# config.status does its own redirection, appending to config.log.
 
22251
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22252
# by configure, so config.status won't be able to write to it; its
 
22253
# output is simply discarded.  So we exec the FD to /dev/null,
 
22254
# effectively closing config.log, so it can be properly (re)opened and
 
22255
# appended to by config.status.  When coming back to configure, we
 
22256
# need to make the FD available again.
 
22257
if test "$no_create" != yes; then
 
22258
  ac_cs_success=:
 
22259
  ac_config_status_args=
 
22260
  test "$silent" = yes &&
 
22261
    ac_config_status_args="$ac_config_status_args --quiet"
 
22262
  exec 5>/dev/null
 
22263
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22264
  exec 5>>config.log
 
22265
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22266
  # would make configure fail if this is the last instruction.
 
22267
  $ac_cs_success || as_fn_exit 1
 
22268
fi
 
22269
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
22270
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
22271
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
22272
fi
 
22273
 
 
22274
 
 
22275
 
 
22276
 
 
22277
subdirs="$subdirs libs/pjproject"
 
22278
 
 
22279
{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuration done! Please make sure that pjsip library (libs/pjproject) has already been compiled. Run \`make' to build the software." >&5
 
22280
$as_echo "$as_me: Configuration done! Please make sure that pjsip library (libs/pjproject) has already been compiled. Run \`make' to build the software." >&6;}