~ubuntu-branches/ubuntu/saucy/sssd/saucy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Stéphane Graber
  • Date: 2011-06-15 16:23:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: stgraber@ubuntu.com-20110615162314-rbhoppnpaxfqo5q7
Merge 1.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.63 for sssd 1.0.2.
 
3
# Generated by GNU Autoconf 2.68 for sssd 1.5.8.
4
4
#
5
5
# Report bugs to <sssd-devel@lists.fedorahosted.org>.
6
6
#
 
7
#
7
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
 
11
#
 
12
#
9
13
# This configure script is free software; the Free Software Foundation
10
14
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
14
18
 
15
19
# Be more Bourne compatible
16
20
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
22
  emulate sh
19
23
  NULLCMD=:
20
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22
26
  alias -g '${1+"$@"}'='"$@"'
23
27
  setopt NO_GLOB_SUBST
24
28
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
27
34
esac
28
 
 
29
35
fi
30
36
 
31
37
 
32
 
 
33
 
 
34
 
# PATH needs CR
35
 
# Avoid depending upon Character Ranges.
36
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
 
as_cr_digits='0123456789'
40
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
 
 
42
38
as_nl='
43
39
'
44
40
export as_nl
46
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
52
  as_echo='printf %s\n'
51
53
  as_echo_n='printf %s'
52
54
else
57
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
60
    as_echo_n_body='eval
59
61
      arg=$1;
60
 
      case $arg in
 
62
      case $arg in #(
61
63
      *"$as_nl"*)
62
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
63
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
80
82
  }
81
83
fi
82
84
 
83
 
# Support unset when possible.
84
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85
 
  as_unset=unset
86
 
else
87
 
  as_unset=false
88
 
fi
89
 
 
90
85
 
91
86
# IFS
92
87
# We need space, tab and new line, in precisely that order.  Quoting is
96
91
IFS=" ""        $as_nl"
97
92
 
98
93
# Find who we are.  Look in the path if we contain no directory separator.
99
 
case $0 in
 
94
as_myself=
 
95
case $0 in #((
100
96
  *[\\/]* ) as_myself=$0 ;;
101
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102
98
for as_dir in $PATH
103
99
do
104
100
  IFS=$as_save_IFS
105
101
  test -z "$as_dir" && as_dir=.
106
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
 
done
 
102
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
103
  done
108
104
IFS=$as_save_IFS
109
105
 
110
106
     ;;
116
112
fi
117
113
if test ! -f "$as_myself"; then
118
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119
 
  { (exit 1); exit 1; }
 
115
  exit 1
120
116
fi
121
117
 
122
 
# Work around bugs in pre-3.0 UWIN ksh.
123
 
for as_var in ENV MAIL MAILPATH
124
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
118
# Unset variables that we do not need and which cause bugs (e.g. in
 
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
120
# suppresses any "Segmentation fault" message there.  '((' could
 
121
# trigger a bug in pdksh 5.2.14.
 
122
for as_var in BASH_ENV ENV MAIL MAILPATH
 
123
do eval test x\${$as_var+set} = xset \
 
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125
125
done
126
126
PS1='$ '
127
127
PS2='> '
133
133
LANGUAGE=C
134
134
export LANGUAGE
135
135
 
136
 
# Required to use basename.
137
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139
 
  as_expr=expr
140
 
else
141
 
  as_expr=false
142
 
fi
143
 
 
144
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145
 
  as_basename=basename
146
 
else
147
 
  as_basename=false
148
 
fi
149
 
 
150
 
 
151
 
# Name of the executable.
152
 
as_me=`$as_basename -- "$0" ||
153
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
 
         X"$0" : 'X\(//\)$' \| \
155
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156
 
$as_echo X/"$0" |
157
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
158
 
            s//\1/
159
 
            q
160
 
          }
161
 
          /^X\/\(\/\/\)$/{
162
 
            s//\1/
163
 
            q
164
 
          }
165
 
          /^X\/\(\/\).*/{
166
 
            s//\1/
167
 
            q
168
 
          }
169
 
          s/.*/./; q'`
170
 
 
171
136
# CDPATH.
172
 
$as_unset CDPATH
173
 
 
 
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
174
138
 
175
139
if test "x$CONFIG_SHELL" = x; then
176
 
  if (eval ":") 2>/dev/null; then
 
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
141
  emulate sh
 
142
  NULLCMD=:
 
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
144
  # is contrary to our usage.  Disable this feature.
 
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
146
  setopt NO_GLOB_SUBST
 
147
else
 
148
  case \`(set -o) 2>/dev/null\` in #(
 
149
  *posix*) :
 
150
    set -o posix ;; #(
 
151
  *) :
 
152
     ;;
 
153
esac
 
154
fi
 
155
"
 
156
  as_required="as_fn_return () { (exit \$1); }
 
157
as_fn_success () { as_fn_return 0; }
 
158
as_fn_failure () { as_fn_return 1; }
 
159
as_fn_ret_success () { return 0; }
 
160
as_fn_ret_failure () { return 1; }
 
161
 
 
162
exitcode=0
 
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
168
 
 
169
else
 
170
  exitcode=1; echo positional parameters were not saved.
 
171
fi
 
172
test x\$exitcode = x0 || exit 1"
 
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
177
 
 
178
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
179
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
180
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
182
    PATH=/empty FPATH=/empty; export PATH FPATH
 
183
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
184
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
185
test \$(( 1 + 1 )) = 2 || exit 1"
 
186
  if (eval "$as_required") 2>/dev/null; then :
177
187
  as_have_required=yes
178
188
else
179
189
  as_have_required=no
180
190
fi
181
 
 
182
 
  if test $as_have_required = yes &&     (eval ":
183
 
(as_func_return () {
184
 
  (exit \$1)
185
 
}
186
 
as_func_success () {
187
 
  as_func_return 0
188
 
}
189
 
as_func_failure () {
190
 
  as_func_return 1
191
 
}
192
 
as_func_ret_success () {
193
 
  return 0
194
 
}
195
 
as_func_ret_failure () {
196
 
  return 1
197
 
}
198
 
 
199
 
exitcode=0
200
 
if as_func_success; then
201
 
  :
202
 
else
203
 
  exitcode=1
204
 
  echo as_func_success failed.
205
 
fi
206
 
 
207
 
if as_func_failure; then
208
 
  exitcode=1
209
 
  echo as_func_failure succeeded.
210
 
fi
211
 
 
212
 
if as_func_ret_success; then
213
 
  :
214
 
else
215
 
  exitcode=1
216
 
  echo as_func_ret_success failed.
217
 
fi
218
 
 
219
 
if as_func_ret_failure; then
220
 
  exitcode=1
221
 
  echo as_func_ret_failure succeeded.
222
 
fi
223
 
 
224
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225
 
  :
226
 
else
227
 
  exitcode=1
228
 
  echo positional parameters were not saved.
229
 
fi
230
 
 
231
 
test \$exitcode = 0) || { (exit 1); exit 1; }
232
 
 
233
 
(
234
 
  as_lineno_1=\$LINENO
235
 
  as_lineno_2=\$LINENO
236
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
 
") 2> /dev/null; then
239
 
  :
240
 
else
241
 
  as_candidate_shells=
242
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
191
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
192
 
 
193
else
 
194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
195
as_found=false
243
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
197
do
245
198
  IFS=$as_save_IFS
246
199
  test -z "$as_dir" && as_dir=.
247
 
  case $as_dir in
 
200
  as_found=:
 
201
  case $as_dir in #(
248
202
         /*)
249
203
           for as_base in sh bash ksh sh5; do
250
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
204
             # Try only shells that exist, to save several forks.
 
205
             as_shell=$as_dir/$as_base
 
206
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
207
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$as_shell as_have_required=yes
 
209
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
210
  break 2
 
211
fi
 
212
fi
251
213
           done;;
252
214
       esac
 
215
  as_found=false
253
216
done
 
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
218
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
219
  CONFIG_SHELL=$SHELL as_have_required=yes
 
220
fi; }
254
221
IFS=$as_save_IFS
255
222
 
256
223
 
257
 
      for as_shell in $as_candidate_shells $SHELL; do
258
 
         # Try only shells that exist, to save several forks.
259
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
261
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
 
  emulate sh
263
 
  NULLCMD=:
264
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
 
  # is contrary to our usage.  Disable this feature.
266
 
  alias -g '${1+"$@"}'='"$@"'
267
 
  setopt NO_GLOB_SUBST
268
 
else
269
 
  case `(set -o) 2>/dev/null` in
270
 
  *posix*) set -o posix ;;
271
 
esac
272
 
 
273
 
fi
274
 
 
275
 
 
276
 
:
277
 
_ASEOF
278
 
}; then
279
 
  CONFIG_SHELL=$as_shell
280
 
               as_have_required=yes
281
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
282
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
 
  emulate sh
284
 
  NULLCMD=:
285
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
 
  # is contrary to our usage.  Disable this feature.
287
 
  alias -g '${1+"$@"}'='"$@"'
288
 
  setopt NO_GLOB_SUBST
289
 
else
290
 
  case `(set -o) 2>/dev/null` in
291
 
  *posix*) set -o posix ;;
292
 
esac
293
 
 
294
 
fi
295
 
 
296
 
 
297
 
:
298
 
(as_func_return () {
299
 
  (exit $1)
300
 
}
301
 
as_func_success () {
302
 
  as_func_return 0
303
 
}
304
 
as_func_failure () {
305
 
  as_func_return 1
306
 
}
307
 
as_func_ret_success () {
308
 
  return 0
309
 
}
310
 
as_func_ret_failure () {
311
 
  return 1
312
 
}
313
 
 
314
 
exitcode=0
315
 
if as_func_success; then
316
 
  :
317
 
else
318
 
  exitcode=1
319
 
  echo as_func_success failed.
320
 
fi
321
 
 
322
 
if as_func_failure; then
323
 
  exitcode=1
324
 
  echo as_func_failure succeeded.
325
 
fi
326
 
 
327
 
if as_func_ret_success; then
328
 
  :
329
 
else
330
 
  exitcode=1
331
 
  echo as_func_ret_success failed.
332
 
fi
333
 
 
334
 
if as_func_ret_failure; then
335
 
  exitcode=1
336
 
  echo as_func_ret_failure succeeded.
337
 
fi
338
 
 
339
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
340
 
  :
341
 
else
342
 
  exitcode=1
343
 
  echo positional parameters were not saved.
344
 
fi
345
 
 
346
 
test $exitcode = 0) || { (exit 1); exit 1; }
347
 
 
348
 
(
349
 
  as_lineno_1=$LINENO
350
 
  as_lineno_2=$LINENO
351
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
352
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
 
 
354
 
_ASEOF
355
 
}; then
356
 
  break
357
 
fi
358
 
 
359
 
fi
360
 
 
361
 
      done
362
 
 
363
 
      if test "x$CONFIG_SHELL" != x; then
364
 
  for as_var in BASH_ENV ENV
365
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
 
        done
 
224
      if test "x$CONFIG_SHELL" != x; then :
 
225
  # We cannot yet assume a decent shell, so we have to provide a
 
226
        # neutralization value for shells without unset; and this also
 
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
 
229
        BASH_ENV=/dev/null
 
230
        ENV=/dev/null
 
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367
232
        export CONFIG_SHELL
368
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369
 
fi
370
 
 
371
 
 
372
 
    if test $as_have_required = no; then
373
 
  echo This script requires a shell more modern than all the
374
 
      echo shells that I found on your system.  Please install a
375
 
      echo modern shell, or manually run the script under such a
376
 
      echo shell if you do have one.
377
 
      { (exit 1); exit 1; }
378
 
fi
379
 
 
380
 
 
381
 
fi
382
 
 
383
 
fi
384
 
 
385
 
 
386
 
 
387
 
(eval "as_func_return () {
388
 
  (exit \$1)
389
 
}
390
 
as_func_success () {
391
 
  as_func_return 0
392
 
}
393
 
as_func_failure () {
394
 
  as_func_return 1
395
 
}
396
 
as_func_ret_success () {
397
 
  return 0
398
 
}
399
 
as_func_ret_failure () {
400
 
  return 1
401
 
}
402
 
 
403
 
exitcode=0
404
 
if as_func_success; then
405
 
  :
406
 
else
407
 
  exitcode=1
408
 
  echo as_func_success failed.
409
 
fi
410
 
 
411
 
if as_func_failure; then
412
 
  exitcode=1
413
 
  echo as_func_failure succeeded.
414
 
fi
415
 
 
416
 
if as_func_ret_success; then
417
 
  :
418
 
else
419
 
  exitcode=1
420
 
  echo as_func_ret_success failed.
421
 
fi
422
 
 
423
 
if as_func_ret_failure; then
424
 
  exitcode=1
425
 
  echo as_func_ret_failure succeeded.
426
 
fi
427
 
 
428
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429
 
  :
430
 
else
431
 
  exitcode=1
432
 
  echo positional parameters were not saved.
433
 
fi
434
 
 
435
 
test \$exitcode = 0") || {
436
 
  echo No shell found that supports shell functions.
437
 
  echo Please tell bug-autoconf@gnu.org about your system,
438
 
  echo including any error possibly output before this message.
439
 
  echo This can help us improve future autoconf versions.
440
 
  echo Configuration will now proceed without shell functions.
441
 
}
442
 
 
443
 
 
444
 
 
445
 
  as_lineno_1=$LINENO
446
 
  as_lineno_2=$LINENO
447
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
448
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
 
 
450
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
452
 
  # line-number line after each line using $LINENO; the second 'sed'
453
 
  # does the real work.  The second script uses 'N' to pair each
454
 
  # line-number line with the line containing $LINENO, and appends
455
 
  # trailing '-' during substitution so that $LINENO is not a special
456
 
  # case at line end.
457
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
233
        case $- in # ((((
 
234
          *v*x* | *x*v* ) as_opts=-vx ;;
 
235
          *v* ) as_opts=-v ;;
 
236
          *x* ) as_opts=-x ;;
 
237
          * ) as_opts= ;;
 
238
        esac
 
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
240
fi
 
241
 
 
242
    if test x$as_have_required = xno; then :
 
243
  $as_echo "$0: This script requires a shell more modern than all"
 
244
  $as_echo "$0: the shells that I found on your system."
 
245
  if test x${ZSH_VERSION+set} = xset ; then
 
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
248
  else
 
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
250
$0: sssd-devel@lists.fedorahosted.org about your system,
 
251
$0: including any error possibly output before this
 
252
$0: message. Then install a modern shell, or manually run
 
253
$0: the script under such a shell if you do have one."
 
254
  fi
 
255
  exit 1
 
256
fi
 
257
fi
 
258
fi
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
export SHELL
 
261
# Unset more variables known to interfere with behavior of common tools.
 
262
CLICOLOR_FORCE= GREP_OPTIONS=
 
263
unset CLICOLOR_FORCE GREP_OPTIONS
 
264
 
 
265
## --------------------- ##
 
266
## M4sh Shell Functions. ##
 
267
## --------------------- ##
 
268
# as_fn_unset VAR
 
269
# ---------------
 
270
# Portably unset VAR.
 
271
as_fn_unset ()
 
272
{
 
273
  { eval $1=; unset $1;}
 
274
}
 
275
as_unset=as_fn_unset
 
276
 
 
277
# as_fn_set_status STATUS
 
278
# -----------------------
 
279
# Set $? to STATUS, without forking.
 
280
as_fn_set_status ()
 
281
{
 
282
  return $1
 
283
} # as_fn_set_status
 
284
 
 
285
# as_fn_exit STATUS
 
286
# -----------------
 
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
288
as_fn_exit ()
 
289
{
 
290
  set +e
 
291
  as_fn_set_status $1
 
292
  exit $1
 
293
} # as_fn_exit
 
294
 
 
295
# as_fn_mkdir_p
 
296
# -------------
 
297
# Create "$as_dir" as a directory, including parents if necessary.
 
298
as_fn_mkdir_p ()
 
299
{
 
300
 
 
301
  case $as_dir in #(
 
302
  -*) as_dir=./$as_dir;;
 
303
  esac
 
304
  test -d "$as_dir" || eval $as_mkdir_p || {
 
305
    as_dirs=
 
306
    while :; do
 
307
      case $as_dir in #(
 
308
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
309
      *) as_qdir=$as_dir;;
 
310
      esac
 
311
      as_dirs="'$as_qdir' $as_dirs"
 
312
      as_dir=`$as_dirname -- "$as_dir" ||
 
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
314
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
315
         X"$as_dir" : 'X\(//\)$' \| \
 
316
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
317
$as_echo X"$as_dir" |
 
318
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
319
            s//\1/
 
320
            q
 
321
          }
 
322
          /^X\(\/\/\)[^/].*/{
 
323
            s//\1/
 
324
            q
 
325
          }
 
326
          /^X\(\/\/\)$/{
 
327
            s//\1/
 
328
            q
 
329
          }
 
330
          /^X\(\/\).*/{
 
331
            s//\1/
 
332
            q
 
333
          }
 
334
          s/.*/./; q'`
 
335
      test -d "$as_dir" && break
 
336
    done
 
337
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
338
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
339
 
 
340
 
 
341
} # as_fn_mkdir_p
 
342
# as_fn_append VAR VALUE
 
343
# ----------------------
 
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
345
# advantage of any shell optimizations that allow amortized linear growth over
 
346
# repeated appends, instead of the typical quadratic growth present in naive
 
347
# implementations.
 
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
349
  eval 'as_fn_append ()
 
350
  {
 
351
    eval $1+=\$2
 
352
  }'
 
353
else
 
354
  as_fn_append ()
 
355
  {
 
356
    eval $1=\$$1\$2
 
357
  }
 
358
fi # as_fn_append
 
359
 
 
360
# as_fn_arith ARG...
 
361
# ------------------
 
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
364
# must be portable across $(()) and expr.
 
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
366
  eval 'as_fn_arith ()
 
367
  {
 
368
    as_val=$(( $* ))
 
369
  }'
 
370
else
 
371
  as_fn_arith ()
 
372
  {
 
373
    as_val=`expr "$@" || test $? -eq 1`
 
374
  }
 
375
fi # as_fn_arith
 
376
 
 
377
 
 
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
379
# ----------------------------------------
 
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
382
# script with STATUS, using 1 if that was 0.
 
383
as_fn_error ()
 
384
{
 
385
  as_status=$1; test $as_status -eq 0 && as_status=1
 
386
  if test "$4"; then
 
387
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
388
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
389
  fi
 
390
  $as_echo "$as_me: error: $2" >&2
 
391
  as_fn_exit $as_status
 
392
} # as_fn_error
 
393
 
 
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
395
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
396
  as_expr=expr
 
397
else
 
398
  as_expr=false
 
399
fi
 
400
 
 
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
402
  as_basename=basename
 
403
else
 
404
  as_basename=false
 
405
fi
 
406
 
 
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
408
  as_dirname=dirname
 
409
else
 
410
  as_dirname=false
 
411
fi
 
412
 
 
413
as_me=`$as_basename -- "$0" ||
 
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
415
         X"$0" : 'X\(//\)$' \| \
 
416
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
417
$as_echo X/"$0" |
 
418
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
419
            s//\1/
 
420
            q
 
421
          }
 
422
          /^X\/\(\/\/\)$/{
 
423
            s//\1/
 
424
            q
 
425
          }
 
426
          /^X\/\(\/\).*/{
 
427
            s//\1/
 
428
            q
 
429
          }
 
430
          s/.*/./; q'`
 
431
 
 
432
# Avoid depending upon Character Ranges.
 
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
436
as_cr_digits='0123456789'
 
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
438
 
 
439
 
 
440
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
441
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
442
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
443
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
444
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
460
445
  sed -n '
461
446
    p
462
447
    /[$]LINENO/=
473
458
      s/-\n.*//
474
459
    ' >$as_me.lineno &&
475
460
  chmod +x "$as_me.lineno" ||
476
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477
 
   { (exit 1); exit 1; }; }
 
461
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
478
462
 
479
463
  # Don't try to exec as it changes $[0], causing all sort of problems
480
464
  # (the dirname of $[0] is not the place where we might find the
484
468
  exit
485
469
}
486
470
 
487
 
 
488
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489
 
  as_dirname=dirname
490
 
else
491
 
  as_dirname=false
492
 
fi
493
 
 
494
471
ECHO_C= ECHO_N= ECHO_T=
495
 
case `echo -n x` in
 
472
case `echo -n x` in #(((((
496
473
-n*)
497
 
  case `echo 'x\c'` in
 
474
  case `echo 'xy\c'` in
498
475
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499
 
  *)   ECHO_C='\c';;
 
476
  xy)  ECHO_C='\c';;
 
477
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
478
       ECHO_T=' ';;
500
479
  esac;;
501
480
*)
502
481
  ECHO_N='-n';;
503
482
esac
504
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
505
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506
 
  as_expr=expr
507
 
else
508
 
  as_expr=false
509
 
fi
510
483
 
511
484
rm -f conf$$ conf$$.exe conf$$.file
512
485
if test -d conf$$.dir; then
536
509
rmdir conf$$.dir 2>/dev/null
537
510
 
538
511
if mkdir -p . 2>/dev/null; then
539
 
  as_mkdir_p=:
 
512
  as_mkdir_p='mkdir -p "$as_dir"'
540
513
else
541
514
  test -d ./-p && rmdir ./-p
542
515
  as_mkdir_p=false
555
528
      if test -d "$1"; then
556
529
        test -d "$1/.";
557
530
      else
558
 
        case $1 in
 
531
        case $1 in #(
559
532
        -*)set "./$1";;
560
533
        esac;
561
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
534
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
562
535
        ???[sx]*):;;*)false;;esac;fi
563
536
    '\'' sh
564
537
  '
571
544
# Sed expression to map a string onto a valid variable name.
572
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
546
 
574
 
 
575
 
 
576
 
exec 7<&0 </dev/null 6>&1
 
547
SHELL=${CONFIG_SHELL-/bin/sh}
 
548
 
 
549
 
 
550
test -n "$DJDIR" || exec 7<&0 </dev/null
 
551
exec 6>&1
577
552
 
578
553
# Name of the host.
579
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
580
555
# so uname gets run too.
581
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
557
 
591
566
subdirs=
592
567
MFLAGS=
593
568
MAKEFLAGS=
594
 
SHELL=${CONFIG_SHELL-/bin/sh}
595
569
 
596
570
# Identity of this package.
597
571
PACKAGE_NAME='sssd'
598
572
PACKAGE_TARNAME='sssd'
599
 
PACKAGE_VERSION='1.0.2'
600
 
PACKAGE_STRING='sssd 1.0.2'
 
573
PACKAGE_VERSION='1.5.8'
 
574
PACKAGE_STRING='sssd 1.5.8'
601
575
PACKAGE_BUGREPORT='sssd-devel@lists.fedorahosted.org'
 
576
PACKAGE_URL=''
602
577
 
603
578
ac_unique_file="BUILD.txt"
604
 
enable_option_checking=no
605
 
ac_subst_vars='LTLIBOBJS
 
579
# Factoring default headers for most tests.
 
580
ac_includes_default="\
 
581
#include <stdio.h>
 
582
#ifdef HAVE_SYS_TYPES_H
 
583
# include <sys/types.h>
 
584
#endif
 
585
#ifdef HAVE_SYS_STAT_H
 
586
# include <sys/stat.h>
 
587
#endif
 
588
#ifdef STDC_HEADERS
 
589
# include <stdlib.h>
 
590
# include <stddef.h>
 
591
#else
 
592
# ifdef HAVE_STDLIB_H
 
593
#  include <stdlib.h>
 
594
# endif
 
595
#endif
 
596
#ifdef HAVE_STRING_H
 
597
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
598
#  include <memory.h>
 
599
# endif
 
600
# include <string.h>
 
601
#endif
 
602
#ifdef HAVE_STRINGS_H
 
603
# include <strings.h>
 
604
#endif
 
605
#ifdef HAVE_INTTYPES_H
 
606
# include <inttypes.h>
 
607
#endif
 
608
#ifdef HAVE_STDINT_H
 
609
# include <stdint.h>
 
610
#endif
 
611
#ifdef HAVE_UNISTD_H
 
612
# include <unistd.h>
 
613
#endif"
 
614
 
 
615
ac_subst_vars='am__EXEEXT_FALSE
 
616
am__EXEEXT_TRUE
 
617
LTLIBOBJS
606
618
LIBOBJS
 
619
abs_builddir
 
620
HAVE_CHECK_FALSE
 
621
HAVE_CHECK_TRUE
 
622
HAVE_DOXYGEN_FALSE
 
623
HAVE_DOXYGEN_TRUE
 
624
DOXYGEN
 
625
CHECK_LIBS
 
626
CHECK_CFLAGS
 
627
LIBNL_LIBS
 
628
LIBNL_CFLAGS
 
629
HAVE_LIBNL
 
630
libnl_LIBS
 
631
libnl_CFLAGS
 
632
SEMANAGE_LIBS
 
633
SELINUX_LIBS
 
634
PYTHON_LIBS
 
635
PYTHON_CFLAGS
 
636
PYTHON_INCLUDES
 
637
pkgpyexecdir
 
638
pyexecdir
 
639
pkgpythondir
 
640
pythondir
 
641
PYTHON_PLATFORM
 
642
PYTHON_EXEC_PREFIX
 
643
PYTHON_PREFIX
 
644
PYTHON_VERSION
 
645
PYTHON
 
646
HAVE_PO4A_FALSE
 
647
HAVE_PO4A_TRUE
 
648
PO4A
 
649
XMLCATALOG
 
650
XMLLINT
 
651
XSLTPROC
 
652
DBUS_LIBS
 
653
DBUS_CFLAGS
 
654
KEYUTILS_LIBS
 
655
NSUPDATE
 
656
NSCD
 
657
HAVE_CRYPTO_FALSE
 
658
HAVE_CRYPTO_TRUE
 
659
HAVE_NSS_FALSE
 
660
HAVE_NSS_TRUE
 
661
CRYPTO_LIBS
 
662
CRYPTO_CFLAGS
 
663
NSS_LIBS
 
664
NSS_CFLAGS
 
665
BUILD_ARES_DATA_FALSE
 
666
BUILD_ARES_DATA_TRUE
 
667
CARES_CFLAGS
 
668
CARES_LIBS
 
669
CARES_OBJ
 
670
BUILD_KRB5_LOCATOR_PLUGIN_FALSE
 
671
BUILD_KRB5_LOCATOR_PLUGIN_TRUE
 
672
KRB5_CONFIG
 
673
KRB5_LIBS
 
674
KRB5_CFLAGS
 
675
PCRE_CFLAGS
 
676
PCRE_LIBS
 
677
PCRE_OBJ
 
678
OPENLDAP_LIBS
 
679
PAM_LIBS
 
680
INI_CONFIG_LIBS
 
681
INI_CONFIG_CFLAGS
 
682
INI_CONFIG_OBJ
 
683
COLLECTION_LIBS
 
684
COLLECTION_CFLAGS
 
685
COLLECTION_OBJ
 
686
DHASH_LIBS
 
687
DHASH_CFLAGS
 
688
DHASH_OBJ
 
689
ldblibdir
 
690
LDB_LIBS
 
691
LDB_CFLAGS
 
692
LDB_OBJ
 
693
TEVENT_LIBS
 
694
TEVENT_CFLAGS
 
695
TEVENT_OBJ
 
696
TDB_LIBS
 
697
TDB_CFLAGS
 
698
TDB_OBJ
 
699
PKG_CONFIG
 
700
TALLOC_LIBS
 
701
TALLOC_CFLAGS
 
702
TALLOC_OBJ
 
703
POPT_CFLAGS
 
704
POPT_LIBS
 
705
POPT_OBJ
 
706
BUILD_LIBNL
 
707
BUILD_SEMANAGE_FALSE
 
708
BUILD_SEMANAGE_TRUE
 
709
HAVE_SEMANAGE
 
710
BUILD_SELINUX_FALSE
 
711
BUILD_SELINUX_TRUE
 
712
HAVE_SELINUX
 
713
BUILD_PYTHON_BINDINGS_FALSE
 
714
BUILD_PYTHON_BINDINGS_TRUE
 
715
HAVE_PYTHON_BINDINGS
 
716
krb5pluginpath
 
717
SGML_CATALOG_FILES
 
718
HAVE_MANPAGES
 
719
TEST_DIR
 
720
initdir
 
721
pipepath
 
722
pubconfpath
 
723
logpath
 
724
pidpath
 
725
pluginpath
 
726
dbpath
 
727
BUILD_MANPAGES_FALSE
 
728
BUILD_MANPAGES_TRUE
 
729
HAVE_GENTOO_FALSE
 
730
HAVE_GENTOO_TRUE
 
731
HAVE_DEBIAN_FALSE
 
732
HAVE_DEBIAN_TRUE
 
733
HAVE_SUSE_FALSE
 
734
HAVE_SUSE_TRUE
 
735
HAVE_REDHAT_FALSE
 
736
HAVE_REDHAT_TRUE
 
737
HAVE_FEDORA_FALSE
 
738
HAVE_FEDORA_TRUE
 
739
pammoddir
 
740
nsslibdir
 
741
sharedbuilddir
 
742
WANT_AUX_INFO_FALSE
 
743
WANT_AUX_INFO_TRUE
 
744
HAVE_GCC_FALSE
 
745
HAVE_GCC_TRUE
 
746
AM_BACKSLASH
 
747
AM_DEFAULT_VERBOSITY
 
748
GIT_CHECKOUT_FALSE
 
749
GIT_CHECKOUT_TRUE
607
750
PRERELEASE_VERSION
608
 
subdirs
 
751
POSUB
 
752
LTLIBINTL
 
753
LIBINTL
 
754
INTLLIBS
 
755
LTLIBICONV
 
756
LIBICONV
 
757
MSGMERGE
 
758
XGETTEXT
 
759
GMSGFMT
 
760
MSGFMT
 
761
USE_NLS
 
762
MKINSTALLDIRS
 
763
CPP
 
764
OTOOL64
 
765
OTOOL
 
766
LIPO
 
767
NMEDIT
 
768
DSYMUTIL
 
769
MANIFEST_TOOL
 
770
RANLIB
 
771
ac_ct_AR
 
772
AR
 
773
DLLTOOL
 
774
OBJDUMP
 
775
LN_S
 
776
NM
 
777
ac_ct_DUMPBIN
 
778
DUMPBIN
 
779
LD
 
780
FGREP
 
781
EGREP
 
782
GREP
 
783
SED
 
784
host_os
 
785
host_vendor
 
786
host_cpu
 
787
host
 
788
build_os
 
789
build_vendor
 
790
build_cpu
 
791
build
 
792
LIBTOOL
 
793
am__fastdepCC_FALSE
 
794
am__fastdepCC_TRUE
 
795
CCDEPMODE
 
796
AMDEPBACKSLASH
 
797
AMDEP_FALSE
 
798
AMDEP_TRUE
 
799
am__quote
 
800
am__include
 
801
DEPDIR
 
802
OBJEXT
 
803
EXEEXT
 
804
ac_ct_CC
 
805
CPPFLAGS
 
806
LDFLAGS
 
807
CFLAGS
 
808
CC
609
809
am__untar
610
810
am__tar
611
811
AMTAR
659
859
program_transform_name
660
860
prefix
661
861
exec_prefix
 
862
PACKAGE_URL
662
863
PACKAGE_BUGREPORT
663
864
PACKAGE_STRING
664
865
PACKAGE_VERSION
669
870
ac_subst_files=''
670
871
ac_user_opts='
671
872
enable_option_checking
 
873
enable_dependency_tracking
 
874
enable_static
 
875
enable_shared
 
876
with_pic
 
877
enable_fast_install
 
878
with_gnu_ld
 
879
with_sysroot
 
880
enable_libtool_lock
 
881
enable_nls
 
882
enable_rpath
 
883
with_libiconv_prefix
 
884
with_libintl_prefix
 
885
enable_silent_rules
 
886
with_shared_build_dir
 
887
enable_nsslibdir
 
888
enable_pammoddir
 
889
with_os
 
890
with_db_path
 
891
with_plugin_path
 
892
with_pid_path
 
893
with_log_path
 
894
with_pubconf_path
 
895
with_pipe_path
 
896
with_init_dir
 
897
with_test_dir
 
898
with_manpages
 
899
with_xml_catalog_path
 
900
with_krb5_plugin_path
 
901
with_python_bindings
 
902
with_selinux
 
903
with_nscd
 
904
with_semanage
 
905
with_libnl
 
906
with_ldb_lib_dir
 
907
enable_krb5_locator_plugin
 
908
enable_crypto
672
909
'
673
910
      ac_precious_vars='build_alias
674
911
host_alias
675
 
target_alias'
676
 
ac_subdirs_all='replace common server sss_client'
 
912
target_alias
 
913
CC
 
914
CFLAGS
 
915
LDFLAGS
 
916
LIBS
 
917
CPPFLAGS
 
918
CPP
 
919
PKG_CONFIG
 
920
TALLOC_CFLAGS
 
921
TALLOC_LIBS
 
922
TDB_CFLAGS
 
923
TDB_LIBS
 
924
TEVENT_CFLAGS
 
925
TEVENT_LIBS
 
926
LDB_CFLAGS
 
927
LDB_LIBS
 
928
DHASH_CFLAGS
 
929
DHASH_LIBS
 
930
COLLECTION_CFLAGS
 
931
COLLECTION_LIBS
 
932
INI_CONFIG_CFLAGS
 
933
INI_CONFIG_LIBS
 
934
PCRE_CFLAGS
 
935
PCRE_LIBS
 
936
KRB5_CFLAGS
 
937
KRB5_LIBS
 
938
NSS_CFLAGS
 
939
NSS_LIBS
 
940
CRYPTO_CFLAGS
 
941
CRYPTO_LIBS
 
942
DBUS_CFLAGS
 
943
DBUS_LIBS
 
944
libnl_CFLAGS
 
945
libnl_LIBS
 
946
CHECK_CFLAGS
 
947
CHECK_LIBS'
 
948
 
677
949
 
678
950
# Initialize some variables set by options.
679
951
ac_init_help=
735
1007
  fi
736
1008
 
737
1009
  case $ac_option in
738
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739
 
  *)    ac_optarg=yes ;;
 
1010
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1011
  *=)   ac_optarg= ;;
 
1012
  *)    ac_optarg=yes ;;
740
1013
  esac
741
1014
 
742
1015
  # Accept the important Cygnus configure options, so we can diagnose typos.
781
1054
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782
1055
    # Reject names that are not valid shell variable names.
783
1056
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
784
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
785
 
   { (exit 1); exit 1; }; }
 
1057
      as_fn_error $? "invalid feature name: $ac_useropt"
786
1058
    ac_useropt_orig=$ac_useropt
787
1059
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
788
1060
    case $ac_user_opts in
808
1080
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
809
1081
    # Reject names that are not valid shell variable names.
810
1082
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
812
 
   { (exit 1); exit 1; }; }
 
1083
      as_fn_error $? "invalid feature name: $ac_useropt"
813
1084
    ac_useropt_orig=$ac_useropt
814
1085
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
815
1086
    case $ac_user_opts in
1013
1284
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014
1285
    # Reject names that are not valid shell variable names.
1015
1286
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1017
 
   { (exit 1); exit 1; }; }
 
1287
      as_fn_error $? "invalid package name: $ac_useropt"
1018
1288
    ac_useropt_orig=$ac_useropt
1019
1289
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020
1290
    case $ac_user_opts in
1030
1300
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1031
1301
    # Reject names that are not valid shell variable names.
1032
1302
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1034
 
   { (exit 1); exit 1; }; }
 
1303
      as_fn_error $? "invalid package name: $ac_useropt"
1035
1304
    ac_useropt_orig=$ac_useropt
1036
1305
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037
1306
    case $ac_user_opts in
1061
1330
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062
1331
    x_libraries=$ac_optarg ;;
1063
1332
 
1064
 
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1065
 
Try \`$0 --help' for more information." >&2
1066
 
   { (exit 1); exit 1; }; }
 
1333
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1334
Try \`$0 --help' for more information"
1067
1335
    ;;
1068
1336
 
1069
1337
  *=*)
1070
1338
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071
1339
    # Reject names that are not valid shell variable names.
1072
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1073
 
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1074
 
   { (exit 1); exit 1; }; }
 
1340
    case $ac_envvar in #(
 
1341
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1342
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1343
    esac
1075
1344
    eval $ac_envvar=\$ac_optarg
1076
1345
    export $ac_envvar ;;
1077
1346
 
1080
1349
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081
1350
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082
1351
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1352
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1084
1353
    ;;
1085
1354
 
1086
1355
  esac
1088
1357
 
1089
1358
if test -n "$ac_prev"; then
1090
1359
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091
 
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1092
 
   { (exit 1); exit 1; }; }
 
1360
  as_fn_error $? "missing argument to $ac_option"
1093
1361
fi
1094
1362
 
1095
1363
if test -n "$ac_unrecognized_opts"; then
1096
1364
  case $enable_option_checking in
1097
1365
    no) ;;
1098
 
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1099
 
   { (exit 1); exit 1; }; } ;;
 
1366
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1100
1367
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1101
1368
  esac
1102
1369
fi
1119
1386
    [\\/$]* | ?:[\\/]* )  continue;;
1120
1387
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1121
1388
  esac
1122
 
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1123
 
   { (exit 1); exit 1; }; }
 
1389
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1124
1390
done
1125
1391
 
1126
1392
# There might be people who depend on the old broken behavior: `$host'
1134
1400
if test "x$host_alias" != x; then
1135
1401
  if test "x$build_alias" = x; then
1136
1402
    cross_compiling=maybe
1137
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1138
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1403
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1404
    If a cross compiler is detected then cross compile mode will be used" >&2
1139
1405
  elif test "x$build_alias" != "x$host_alias"; then
1140
1406
    cross_compiling=yes
1141
1407
  fi
1150
1416
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1151
1417
ac_ls_di=`ls -di .` &&
1152
1418
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1153
 
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1154
 
   { (exit 1); exit 1; }; }
 
1419
  as_fn_error $? "working directory cannot be determined"
1155
1420
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156
 
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1157
 
   { (exit 1); exit 1; }; }
 
1421
  as_fn_error $? "pwd does not report name of working directory"
1158
1422
 
1159
1423
 
1160
1424
# Find the source files, if location was not specified.
1193
1457
fi
1194
1458
if test ! -r "$srcdir/$ac_unique_file"; then
1195
1459
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1196
 
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1197
 
   { (exit 1); exit 1; }; }
 
1460
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1198
1461
fi
1199
1462
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200
1463
ac_abs_confdir=`(
1201
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1202
 
   { (exit 1); exit 1; }; }
 
1464
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1203
1465
        pwd)`
1204
1466
# When building in place, set srcdir=.
1205
1467
if test "$ac_abs_confdir" = "$ac_pwd"; then
1225
1487
  # Omit some internal or obsolete options to make the list less imposing.
1226
1488
  # This message is too long to be a string in the A/UX 3.1 sh.
1227
1489
  cat <<_ACEOF
1228
 
\`configure' configures sssd 1.0.2 to adapt to many kinds of systems.
 
1490
\`configure' configures sssd 1.5.8 to adapt to many kinds of systems.
1229
1491
 
1230
1492
Usage: $0 [OPTION]... [VAR=VALUE]...
1231
1493
 
1239
1501
      --help=short        display options specific to this package
1240
1502
      --help=recursive    display the short help of all the included packages
1241
1503
  -V, --version           display version information and exit
1242
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1504
  -q, --quiet, --silent   do not print \`checking ...' messages
1243
1505
      --cache-file=FILE   cache test results in FILE [disabled]
1244
1506
  -C, --config-cache      alias for \`--cache-file=config.cache'
1245
1507
  -n, --no-create         do not create output files
1286
1548
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1287
1549
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1288
1550
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1551
 
 
1552
System types:
 
1553
  --build=BUILD     configure for building on BUILD [guessed]
 
1554
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1289
1555
_ACEOF
1290
1556
fi
1291
1557
 
1292
1558
if test -n "$ac_init_help"; then
1293
1559
  case $ac_init_help in
1294
 
     short | recursive ) echo "Configuration of sssd 1.0.2:";;
 
1560
     short | recursive ) echo "Configuration of sssd 1.5.8:";;
1295
1561
   esac
1296
1562
  cat <<\_ACEOF
1297
1563
 
 
1564
Optional Features:
 
1565
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1566
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1567
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1568
  --disable-dependency-tracking  speeds up one-time build
 
1569
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1570
  --enable-static[=PKGS]  build static libraries [default=no]
 
1571
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1572
  --enable-fast-install[=PKGS]
 
1573
                          optimize for fast installation [default=yes]
 
1574
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1575
  --disable-nls           do not use Native Language Support
 
1576
  --disable-rpath         do not hardcode runtime library paths
 
1577
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1578
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1579
  --enable-nsslibdir      Where to install nss libraries ($libdir)
 
1580
  --enable-pammoddir      Where to install pam modules ($libdir/security)
 
1581
  --disable-krb5-locator-plugin
 
1582
                          do not build Kerberos locator plugin
 
1583
  --enable-crypto         Use OpenSSL crypto instead of NSS
 
1584
 
 
1585
Optional Packages:
 
1586
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1587
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1588
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1589
                          both]
 
1590
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1591
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1592
                        (or the compiler's sysroot if not specified).
 
1593
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1594
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1595
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1596
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1597
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1598
  --with-shared-build-dir=DIR
 
1599
                          temporary build directory where libraries are
 
1600
                          installed [$srcdir/sharedbuild]
 
1601
  --with-os=OS_TYPE       Type of your operation system
 
1602
                          (fedora|redhat|suse|gentoo)
 
1603
 
 
1604
  --with-db-path=PATH     Path to the SSSD databases [/var/lib/sss/db]
 
1605
 
 
1606
 
 
1607
  --with-plugin-path=PATH Path to the SSSD data provider plugins
 
1608
                          [/usr/lib/sssd]
 
1609
 
 
1610
 
 
1611
  --with-pid-path=PATH    Where to store pid files for the SSSD [/var/run]
 
1612
 
 
1613
 
 
1614
  --with-log-path=PATH    Where to store log files for the SSSD
 
1615
                          [/var/log/sssd]
 
1616
 
 
1617
 
 
1618
  --with-pubconf-path=PATH
 
1619
                          Where to store pubconf files for the SSSD
 
1620
                          [/var/lib/sss/pubconf]
 
1621
 
 
1622
 
 
1623
  --with-pipe-path=PATH   Where to store pipe files for the SSSD interconnects
 
1624
                          [/var/lib/sss/pipes]
 
1625
 
 
1626
 
 
1627
  --with-init-dir=DIR     Where to store init script for sssd
 
1628
                          [/etc/rc.d/init.d]
 
1629
 
 
1630
 
 
1631
  --with-test-dir=PATH    Directory used for make check temporary files
 
1632
                          [$builddir]
 
1633
 
 
1634
 
 
1635
  --with-manpages         Whether to regenerate man pages from DocBook sources
 
1636
                          [yes]
 
1637
 
 
1638
  --with-xml-catalog-path=PATH
 
1639
                          Where to look for XML catalog [/etc/xml/catalog]
 
1640
 
 
1641
 
 
1642
  --with-krb5-plugin-path=PATH
 
1643
                          Path to kerberos plugin store
 
1644
                          [/usr/lib/krb5/plugins/libkrb5]
 
1645
 
 
1646
 
 
1647
  --with-python-bindings  Whether to build python bindings [yes]
 
1648
 
 
1649
  --with-selinux          Whether to build with SELinux support [yes]
 
1650
 
 
1651
  --with-nscd             Whether to attempt to flush nscd cache after local
 
1652
                          domain operations [yes]
 
1653
 
 
1654
  --with-semanage         Whether to build with SELinux user management
 
1655
                          support [yes]
 
1656
 
 
1657
  --with-libnl            Whether to build with libnetlink support [AUTO]
 
1658
 
 
1659
  --with-ldb-lib-dir=PATH Path to store ldb modules [${libdir}/ldb]
 
1660
 
 
1661
 
 
1662
 
 
1663
Some influential environment variables:
 
1664
  CC          C compiler command
 
1665
  CFLAGS      C compiler flags
 
1666
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1667
              nonstandard directory <lib dir>
 
1668
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1669
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1670
              you have headers in a nonstandard directory <include dir>
 
1671
  CPP         C preprocessor
 
1672
  PKG_CONFIG  path to pkg-config utility
 
1673
  TALLOC_CFLAGS
 
1674
              C compiler flags for TALLOC, overriding pkg-config
 
1675
  TALLOC_LIBS linker flags for TALLOC, overriding pkg-config
 
1676
  TDB_CFLAGS  C compiler flags for TDB, overriding pkg-config
 
1677
  TDB_LIBS    linker flags for TDB, overriding pkg-config
 
1678
  TEVENT_CFLAGS
 
1679
              C compiler flags for TEVENT, overriding pkg-config
 
1680
  TEVENT_LIBS linker flags for TEVENT, overriding pkg-config
 
1681
  LDB_CFLAGS  C compiler flags for LDB, overriding pkg-config
 
1682
  LDB_LIBS    linker flags for LDB, overriding pkg-config
 
1683
  DHASH_CFLAGS
 
1684
              C compiler flags for DHASH, overriding pkg-config
 
1685
  DHASH_LIBS  linker flags for DHASH, overriding pkg-config
 
1686
  COLLECTION_CFLAGS
 
1687
              C compiler flags for COLLECTION, overriding pkg-config
 
1688
  COLLECTION_LIBS
 
1689
              linker flags for COLLECTION, overriding pkg-config
 
1690
  INI_CONFIG_CFLAGS
 
1691
              C compiler flags for INI_CONFIG, overriding pkg-config
 
1692
  INI_CONFIG_LIBS
 
1693
              linker flags for INI_CONFIG, overriding pkg-config
 
1694
  PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
 
1695
  PCRE_LIBS   linker flags for PCRE, overriding pkg-config
 
1696
  KRB5_CFLAGS C compiler flags for kerberos, overriding krb5-config
 
1697
  KRB5_LIBS   linker flags for kerberos, overriding krb5-config
 
1698
  NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
 
1699
  NSS_LIBS    linker flags for NSS, overriding pkg-config
 
1700
  CRYPTO_CFLAGS
 
1701
              C compiler flags for CRYPTO, overriding pkg-config
 
1702
  CRYPTO_LIBS linker flags for CRYPTO, overriding pkg-config
 
1703
  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
 
1704
  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
 
1705
  libnl_CFLAGS
 
1706
              C compiler flags for libnl, overriding pkg-config
 
1707
  libnl_LIBS  linker flags for libnl, overriding pkg-config
 
1708
  CHECK_CFLAGS
 
1709
              C compiler flags for CHECK, overriding pkg-config
 
1710
  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
 
1711
 
 
1712
Use these variables to override the choices made by `configure' or to help
 
1713
it to find libraries and programs with nonstandard names/locations.
 
1714
 
1298
1715
Report bugs to <sssd-devel@lists.fedorahosted.org>.
1299
1716
_ACEOF
1300
1717
ac_status=$?
1358
1775
test -n "$ac_init_help" && exit $ac_status
1359
1776
if $ac_init_version; then
1360
1777
  cat <<\_ACEOF
1361
 
sssd configure 1.0.2
1362
 
generated by GNU Autoconf 2.63
 
1778
sssd configure 1.5.8
 
1779
generated by GNU Autoconf 2.68
1363
1780
 
1364
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1365
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1781
Copyright (C) 2010 Free Software Foundation, Inc.
1366
1782
This configure script is free software; the Free Software Foundation
1367
1783
gives unlimited permission to copy, distribute and modify it.
1368
1784
_ACEOF
1369
1785
  exit
1370
1786
fi
 
1787
 
 
1788
## ------------------------ ##
 
1789
## Autoconf initialization. ##
 
1790
## ------------------------ ##
 
1791
 
 
1792
# ac_fn_c_try_compile LINENO
 
1793
# --------------------------
 
1794
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1795
ac_fn_c_try_compile ()
 
1796
{
 
1797
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1798
  rm -f conftest.$ac_objext
 
1799
  if { { ac_try="$ac_compile"
 
1800
case "(($ac_try" in
 
1801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1802
  *) ac_try_echo=$ac_try;;
 
1803
esac
 
1804
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1805
$as_echo "$ac_try_echo"; } >&5
 
1806
  (eval "$ac_compile") 2>conftest.err
 
1807
  ac_status=$?
 
1808
  if test -s conftest.err; then
 
1809
    grep -v '^ *+' conftest.err >conftest.er1
 
1810
    cat conftest.er1 >&5
 
1811
    mv -f conftest.er1 conftest.err
 
1812
  fi
 
1813
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1814
  test $ac_status = 0; } && {
 
1815
         test -z "$ac_c_werror_flag" ||
 
1816
         test ! -s conftest.err
 
1817
       } && test -s conftest.$ac_objext; then :
 
1818
  ac_retval=0
 
1819
else
 
1820
  $as_echo "$as_me: failed program was:" >&5
 
1821
sed 's/^/| /' conftest.$ac_ext >&5
 
1822
 
 
1823
        ac_retval=1
 
1824
fi
 
1825
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1826
  as_fn_set_status $ac_retval
 
1827
 
 
1828
} # ac_fn_c_try_compile
 
1829
 
 
1830
# ac_fn_c_try_link LINENO
 
1831
# -----------------------
 
1832
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1833
ac_fn_c_try_link ()
 
1834
{
 
1835
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1836
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1837
  if { { ac_try="$ac_link"
 
1838
case "(($ac_try" in
 
1839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1840
  *) ac_try_echo=$ac_try;;
 
1841
esac
 
1842
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1843
$as_echo "$ac_try_echo"; } >&5
 
1844
  (eval "$ac_link") 2>conftest.err
 
1845
  ac_status=$?
 
1846
  if test -s conftest.err; then
 
1847
    grep -v '^ *+' conftest.err >conftest.er1
 
1848
    cat conftest.er1 >&5
 
1849
    mv -f conftest.er1 conftest.err
 
1850
  fi
 
1851
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1852
  test $ac_status = 0; } && {
 
1853
         test -z "$ac_c_werror_flag" ||
 
1854
         test ! -s conftest.err
 
1855
       } && test -s conftest$ac_exeext && {
 
1856
         test "$cross_compiling" = yes ||
 
1857
         $as_test_x conftest$ac_exeext
 
1858
       }; then :
 
1859
  ac_retval=0
 
1860
else
 
1861
  $as_echo "$as_me: failed program was:" >&5
 
1862
sed 's/^/| /' conftest.$ac_ext >&5
 
1863
 
 
1864
        ac_retval=1
 
1865
fi
 
1866
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1867
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1868
  # interfere with the next link command; also delete a directory that is
 
1869
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1870
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1871
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1872
  as_fn_set_status $ac_retval
 
1873
 
 
1874
} # ac_fn_c_try_link
 
1875
 
 
1876
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1877
# -------------------------------------------------------
 
1878
# Tests whether HEADER exists and can be compiled using the include files in
 
1879
# INCLUDES, setting the cache variable VAR accordingly.
 
1880
ac_fn_c_check_header_compile ()
 
1881
{
 
1882
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1883
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1884
$as_echo_n "checking for $2... " >&6; }
 
1885
if eval \${$3+:} false; then :
 
1886
  $as_echo_n "(cached) " >&6
 
1887
else
 
1888
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1889
/* end confdefs.h.  */
 
1890
$4
 
1891
#include <$2>
 
1892
_ACEOF
 
1893
if ac_fn_c_try_compile "$LINENO"; then :
 
1894
  eval "$3=yes"
 
1895
else
 
1896
  eval "$3=no"
 
1897
fi
 
1898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1899
fi
 
1900
eval ac_res=\$$3
 
1901
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1902
$as_echo "$ac_res" >&6; }
 
1903
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1904
 
 
1905
} # ac_fn_c_check_header_compile
 
1906
 
 
1907
# ac_fn_c_try_cpp LINENO
 
1908
# ----------------------
 
1909
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1910
ac_fn_c_try_cpp ()
 
1911
{
 
1912
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1913
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1914
case "(($ac_try" in
 
1915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1916
  *) ac_try_echo=$ac_try;;
 
1917
esac
 
1918
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1919
$as_echo "$ac_try_echo"; } >&5
 
1920
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1921
  ac_status=$?
 
1922
  if test -s conftest.err; then
 
1923
    grep -v '^ *+' conftest.err >conftest.er1
 
1924
    cat conftest.er1 >&5
 
1925
    mv -f conftest.er1 conftest.err
 
1926
  fi
 
1927
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1928
  test $ac_status = 0; } > conftest.i && {
 
1929
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1930
         test ! -s conftest.err
 
1931
       }; then :
 
1932
  ac_retval=0
 
1933
else
 
1934
  $as_echo "$as_me: failed program was:" >&5
 
1935
sed 's/^/| /' conftest.$ac_ext >&5
 
1936
 
 
1937
    ac_retval=1
 
1938
fi
 
1939
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1940
  as_fn_set_status $ac_retval
 
1941
 
 
1942
} # ac_fn_c_try_cpp
 
1943
 
 
1944
# ac_fn_c_try_run LINENO
 
1945
# ----------------------
 
1946
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1947
# that executables *can* be run.
 
1948
ac_fn_c_try_run ()
 
1949
{
 
1950
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1951
  if { { ac_try="$ac_link"
 
1952
case "(($ac_try" in
 
1953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1954
  *) ac_try_echo=$ac_try;;
 
1955
esac
 
1956
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1957
$as_echo "$ac_try_echo"; } >&5
 
1958
  (eval "$ac_link") 2>&5
 
1959
  ac_status=$?
 
1960
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1961
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1962
  { { case "(($ac_try" in
 
1963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1964
  *) ac_try_echo=$ac_try;;
 
1965
esac
 
1966
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1967
$as_echo "$ac_try_echo"; } >&5
 
1968
  (eval "$ac_try") 2>&5
 
1969
  ac_status=$?
 
1970
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1971
  test $ac_status = 0; }; }; then :
 
1972
  ac_retval=0
 
1973
else
 
1974
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1975
       $as_echo "$as_me: failed program was:" >&5
 
1976
sed 's/^/| /' conftest.$ac_ext >&5
 
1977
 
 
1978
       ac_retval=$ac_status
 
1979
fi
 
1980
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1981
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1982
  as_fn_set_status $ac_retval
 
1983
 
 
1984
} # ac_fn_c_try_run
 
1985
 
 
1986
# ac_fn_c_check_func LINENO FUNC VAR
 
1987
# ----------------------------------
 
1988
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1989
ac_fn_c_check_func ()
 
1990
{
 
1991
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1993
$as_echo_n "checking for $2... " >&6; }
 
1994
if eval \${$3+:} false; then :
 
1995
  $as_echo_n "(cached) " >&6
 
1996
else
 
1997
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1998
/* end confdefs.h.  */
 
1999
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2000
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2001
#define $2 innocuous_$2
 
2002
 
 
2003
/* System header to define __stub macros and hopefully few prototypes,
 
2004
    which can conflict with char $2 (); below.
 
2005
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2006
    <limits.h> exists even on freestanding compilers.  */
 
2007
 
 
2008
#ifdef __STDC__
 
2009
# include <limits.h>
 
2010
#else
 
2011
# include <assert.h>
 
2012
#endif
 
2013
 
 
2014
#undef $2
 
2015
 
 
2016
/* Override any GCC internal prototype to avoid an error.
 
2017
   Use char because int might match the return type of a GCC
 
2018
   builtin and then its argument prototype would still apply.  */
 
2019
#ifdef __cplusplus
 
2020
extern "C"
 
2021
#endif
 
2022
char $2 ();
 
2023
/* The GNU C library defines this for functions which it implements
 
2024
    to always fail with ENOSYS.  Some functions are actually named
 
2025
    something starting with __ and the normal name is an alias.  */
 
2026
#if defined __stub_$2 || defined __stub___$2
 
2027
choke me
 
2028
#endif
 
2029
 
 
2030
int
 
2031
main ()
 
2032
{
 
2033
return $2 ();
 
2034
  ;
 
2035
  return 0;
 
2036
}
 
2037
_ACEOF
 
2038
if ac_fn_c_try_link "$LINENO"; then :
 
2039
  eval "$3=yes"
 
2040
else
 
2041
  eval "$3=no"
 
2042
fi
 
2043
rm -f core conftest.err conftest.$ac_objext \
 
2044
    conftest$ac_exeext conftest.$ac_ext
 
2045
fi
 
2046
eval ac_res=\$$3
 
2047
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2048
$as_echo "$ac_res" >&6; }
 
2049
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2050
 
 
2051
} # ac_fn_c_check_func
 
2052
 
 
2053
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
2054
# -------------------------------------------------------
 
2055
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
2056
# the include files in INCLUDES and setting the cache variable VAR
 
2057
# accordingly.
 
2058
ac_fn_c_check_header_mongrel ()
 
2059
{
 
2060
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2061
  if eval \${$3+:} false; then :
 
2062
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2063
$as_echo_n "checking for $2... " >&6; }
 
2064
if eval \${$3+:} false; then :
 
2065
  $as_echo_n "(cached) " >&6
 
2066
fi
 
2067
eval ac_res=\$$3
 
2068
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2069
$as_echo "$ac_res" >&6; }
 
2070
else
 
2071
  # Is the header compilable?
 
2072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2073
$as_echo_n "checking $2 usability... " >&6; }
 
2074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2075
/* end confdefs.h.  */
 
2076
$4
 
2077
#include <$2>
 
2078
_ACEOF
 
2079
if ac_fn_c_try_compile "$LINENO"; then :
 
2080
  ac_header_compiler=yes
 
2081
else
 
2082
  ac_header_compiler=no
 
2083
fi
 
2084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2086
$as_echo "$ac_header_compiler" >&6; }
 
2087
 
 
2088
# Is the header present?
 
2089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2090
$as_echo_n "checking $2 presence... " >&6; }
 
2091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2092
/* end confdefs.h.  */
 
2093
#include <$2>
 
2094
_ACEOF
 
2095
if ac_fn_c_try_cpp "$LINENO"; then :
 
2096
  ac_header_preproc=yes
 
2097
else
 
2098
  ac_header_preproc=no
 
2099
fi
 
2100
rm -f conftest.err conftest.i conftest.$ac_ext
 
2101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2102
$as_echo "$ac_header_preproc" >&6; }
 
2103
 
 
2104
# So?  What about this header?
 
2105
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2106
  yes:no: )
 
2107
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2108
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2109
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2110
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2111
    ;;
 
2112
  no:yes:* )
 
2113
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2114
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2115
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2116
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2117
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2118
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2119
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2120
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2121
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2122
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2123
( $as_echo "## ------------------------------------------------ ##
 
2124
## Report this to sssd-devel@lists.fedorahosted.org ##
 
2125
## ------------------------------------------------ ##"
 
2126
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2127
    ;;
 
2128
esac
 
2129
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2130
$as_echo_n "checking for $2... " >&6; }
 
2131
if eval \${$3+:} false; then :
 
2132
  $as_echo_n "(cached) " >&6
 
2133
else
 
2134
  eval "$3=\$ac_header_compiler"
 
2135
fi
 
2136
eval ac_res=\$$3
 
2137
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2138
$as_echo "$ac_res" >&6; }
 
2139
fi
 
2140
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2141
 
 
2142
} # ac_fn_c_check_header_mongrel
 
2143
 
 
2144
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2145
# -------------------------------------------
 
2146
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2147
# variable VAR accordingly.
 
2148
ac_fn_c_check_type ()
 
2149
{
 
2150
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2151
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2152
$as_echo_n "checking for $2... " >&6; }
 
2153
if eval \${$3+:} false; then :
 
2154
  $as_echo_n "(cached) " >&6
 
2155
else
 
2156
  eval "$3=no"
 
2157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2158
/* end confdefs.h.  */
 
2159
$4
 
2160
int
 
2161
main ()
 
2162
{
 
2163
if (sizeof ($2))
 
2164
         return 0;
 
2165
  ;
 
2166
  return 0;
 
2167
}
 
2168
_ACEOF
 
2169
if ac_fn_c_try_compile "$LINENO"; then :
 
2170
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2171
/* end confdefs.h.  */
 
2172
$4
 
2173
int
 
2174
main ()
 
2175
{
 
2176
if (sizeof (($2)))
 
2177
            return 0;
 
2178
  ;
 
2179
  return 0;
 
2180
}
 
2181
_ACEOF
 
2182
if ac_fn_c_try_compile "$LINENO"; then :
 
2183
 
 
2184
else
 
2185
  eval "$3=yes"
 
2186
fi
 
2187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2188
fi
 
2189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2190
fi
 
2191
eval ac_res=\$$3
 
2192
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2193
$as_echo "$ac_res" >&6; }
 
2194
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2195
 
 
2196
} # ac_fn_c_check_type
 
2197
 
 
2198
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2199
# ----------------------------------------------------
 
2200
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2201
# INCLUDES, setting cache variable VAR accordingly.
 
2202
ac_fn_c_check_member ()
 
2203
{
 
2204
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2205
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2206
$as_echo_n "checking for $2.$3... " >&6; }
 
2207
if eval \${$4+:} false; then :
 
2208
  $as_echo_n "(cached) " >&6
 
2209
else
 
2210
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2211
/* end confdefs.h.  */
 
2212
$5
 
2213
int
 
2214
main ()
 
2215
{
 
2216
static $2 ac_aggr;
 
2217
if (ac_aggr.$3)
 
2218
return 0;
 
2219
  ;
 
2220
  return 0;
 
2221
}
 
2222
_ACEOF
 
2223
if ac_fn_c_try_compile "$LINENO"; then :
 
2224
  eval "$4=yes"
 
2225
else
 
2226
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2227
/* end confdefs.h.  */
 
2228
$5
 
2229
int
 
2230
main ()
 
2231
{
 
2232
static $2 ac_aggr;
 
2233
if (sizeof ac_aggr.$3)
 
2234
return 0;
 
2235
  ;
 
2236
  return 0;
 
2237
}
 
2238
_ACEOF
 
2239
if ac_fn_c_try_compile "$LINENO"; then :
 
2240
  eval "$4=yes"
 
2241
else
 
2242
  eval "$4=no"
 
2243
fi
 
2244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2245
fi
 
2246
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2247
fi
 
2248
eval ac_res=\$$4
 
2249
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2250
$as_echo "$ac_res" >&6; }
 
2251
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2252
 
 
2253
} # ac_fn_c_check_member
 
2254
 
 
2255
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2256
# --------------------------------------------
 
2257
# Tries to find the compile-time value of EXPR in a program that includes
 
2258
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2259
# computed
 
2260
ac_fn_c_compute_int ()
 
2261
{
 
2262
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2263
  if test "$cross_compiling" = yes; then
 
2264
    # Depending upon the size, compute the lo and hi bounds.
 
2265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2266
/* end confdefs.h.  */
 
2267
$4
 
2268
int
 
2269
main ()
 
2270
{
 
2271
static int test_array [1 - 2 * !(($2) >= 0)];
 
2272
test_array [0] = 0
 
2273
 
 
2274
  ;
 
2275
  return 0;
 
2276
}
 
2277
_ACEOF
 
2278
if ac_fn_c_try_compile "$LINENO"; then :
 
2279
  ac_lo=0 ac_mid=0
 
2280
  while :; do
 
2281
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2282
/* end confdefs.h.  */
 
2283
$4
 
2284
int
 
2285
main ()
 
2286
{
 
2287
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2288
test_array [0] = 0
 
2289
 
 
2290
  ;
 
2291
  return 0;
 
2292
}
 
2293
_ACEOF
 
2294
if ac_fn_c_try_compile "$LINENO"; then :
 
2295
  ac_hi=$ac_mid; break
 
2296
else
 
2297
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2298
                        if test $ac_lo -le $ac_mid; then
 
2299
                          ac_lo= ac_hi=
 
2300
                          break
 
2301
                        fi
 
2302
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2303
fi
 
2304
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2305
  done
 
2306
else
 
2307
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2308
/* end confdefs.h.  */
 
2309
$4
 
2310
int
 
2311
main ()
 
2312
{
 
2313
static int test_array [1 - 2 * !(($2) < 0)];
 
2314
test_array [0] = 0
 
2315
 
 
2316
  ;
 
2317
  return 0;
 
2318
}
 
2319
_ACEOF
 
2320
if ac_fn_c_try_compile "$LINENO"; then :
 
2321
  ac_hi=-1 ac_mid=-1
 
2322
  while :; do
 
2323
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2324
/* end confdefs.h.  */
 
2325
$4
 
2326
int
 
2327
main ()
 
2328
{
 
2329
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2330
test_array [0] = 0
 
2331
 
 
2332
  ;
 
2333
  return 0;
 
2334
}
 
2335
_ACEOF
 
2336
if ac_fn_c_try_compile "$LINENO"; then :
 
2337
  ac_lo=$ac_mid; break
 
2338
else
 
2339
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2340
                        if test $ac_mid -le $ac_hi; then
 
2341
                          ac_lo= ac_hi=
 
2342
                          break
 
2343
                        fi
 
2344
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2345
fi
 
2346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2347
  done
 
2348
else
 
2349
  ac_lo= ac_hi=
 
2350
fi
 
2351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2352
fi
 
2353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2354
# Binary search between lo and hi bounds.
 
2355
while test "x$ac_lo" != "x$ac_hi"; do
 
2356
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2357
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2358
/* end confdefs.h.  */
 
2359
$4
 
2360
int
 
2361
main ()
 
2362
{
 
2363
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2364
test_array [0] = 0
 
2365
 
 
2366
  ;
 
2367
  return 0;
 
2368
}
 
2369
_ACEOF
 
2370
if ac_fn_c_try_compile "$LINENO"; then :
 
2371
  ac_hi=$ac_mid
 
2372
else
 
2373
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2374
fi
 
2375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2376
done
 
2377
case $ac_lo in #((
 
2378
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2379
'') ac_retval=1 ;;
 
2380
esac
 
2381
  else
 
2382
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2383
/* end confdefs.h.  */
 
2384
$4
 
2385
static long int longval () { return $2; }
 
2386
static unsigned long int ulongval () { return $2; }
 
2387
#include <stdio.h>
 
2388
#include <stdlib.h>
 
2389
int
 
2390
main ()
 
2391
{
 
2392
 
 
2393
  FILE *f = fopen ("conftest.val", "w");
 
2394
  if (! f)
 
2395
    return 1;
 
2396
  if (($2) < 0)
 
2397
    {
 
2398
      long int i = longval ();
 
2399
      if (i != ($2))
 
2400
        return 1;
 
2401
      fprintf (f, "%ld", i);
 
2402
    }
 
2403
  else
 
2404
    {
 
2405
      unsigned long int i = ulongval ();
 
2406
      if (i != ($2))
 
2407
        return 1;
 
2408
      fprintf (f, "%lu", i);
 
2409
    }
 
2410
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2411
     on some platforms.  */
 
2412
  return ferror (f) || fclose (f) != 0;
 
2413
 
 
2414
  ;
 
2415
  return 0;
 
2416
}
 
2417
_ACEOF
 
2418
if ac_fn_c_try_run "$LINENO"; then :
 
2419
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2420
else
 
2421
  ac_retval=1
 
2422
fi
 
2423
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2424
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2425
rm -f conftest.val
 
2426
 
 
2427
  fi
 
2428
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2429
  as_fn_set_status $ac_retval
 
2430
 
 
2431
} # ac_fn_c_compute_int
1371
2432
cat >config.log <<_ACEOF
1372
2433
This file contains any messages produced by compilers while
1373
2434
running configure, to aid debugging if configure makes a mistake.
1374
2435
 
1375
 
It was created by sssd $as_me 1.0.2, which was
1376
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
2436
It was created by sssd $as_me 1.5.8, which was
 
2437
generated by GNU Autoconf 2.68.  Invocation command line was
1377
2438
 
1378
2439
  $ $0 $@
1379
2440
 
1409
2470
do
1410
2471
  IFS=$as_save_IFS
1411
2472
  test -z "$as_dir" && as_dir=.
1412
 
  $as_echo "PATH: $as_dir"
1413
 
done
 
2473
    $as_echo "PATH: $as_dir"
 
2474
  done
1414
2475
IFS=$as_save_IFS
1415
2476
 
1416
2477
} >&5
1447
2508
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1448
2509
    esac
1449
2510
    case $ac_pass in
1450
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2511
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1451
2512
    2)
1452
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2513
      as_fn_append ac_configure_args1 " '$ac_arg'"
1453
2514
      if test $ac_must_keep_next = true; then
1454
2515
        ac_must_keep_next=false # Got value, back to normal.
1455
2516
      else
1465
2526
          -* ) ac_must_keep_next=true ;;
1466
2527
        esac
1467
2528
      fi
1468
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2529
      as_fn_append ac_configure_args " '$ac_arg'"
1469
2530
      ;;
1470
2531
    esac
1471
2532
  done
1472
2533
done
1473
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1474
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2534
{ ac_configure_args0=; unset ac_configure_args0;}
 
2535
{ ac_configure_args1=; unset ac_configure_args1;}
1475
2536
 
1476
2537
# When interrupted or exit'd, cleanup temporary files, and complete
1477
2538
# config.log.  We remove comments because anyway the quotes in there
1483
2544
  {
1484
2545
    echo
1485
2546
 
1486
 
    cat <<\_ASBOX
1487
 
## ---------------- ##
 
2547
    $as_echo "## ---------------- ##
1488
2548
## Cache variables. ##
1489
 
## ---------------- ##
1490
 
_ASBOX
 
2549
## ---------------- ##"
1491
2550
    echo
1492
2551
    # The following way of writing the cache mishandles newlines in values,
1493
2552
(
1496
2555
    case $ac_val in #(
1497
2556
    *${as_nl}*)
1498
2557
      case $ac_var in #(
1499
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
2558
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1500
2559
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1501
2560
      esac
1502
2561
      case $ac_var in #(
1503
2562
      _ | IFS | as_nl) ;; #(
1504
2563
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1505
 
      *) $as_unset $ac_var ;;
 
2564
      *) { eval $ac_var=; unset $ac_var;} ;;
1506
2565
      esac ;;
1507
2566
    esac
1508
2567
  done
1521
2580
)
1522
2581
    echo
1523
2582
 
1524
 
    cat <<\_ASBOX
1525
 
## ----------------- ##
 
2583
    $as_echo "## ----------------- ##
1526
2584
## Output variables. ##
1527
 
## ----------------- ##
1528
 
_ASBOX
 
2585
## ----------------- ##"
1529
2586
    echo
1530
2587
    for ac_var in $ac_subst_vars
1531
2588
    do
1538
2595
    echo
1539
2596
 
1540
2597
    if test -n "$ac_subst_files"; then
1541
 
      cat <<\_ASBOX
1542
 
## ------------------- ##
 
2598
      $as_echo "## ------------------- ##
1543
2599
## File substitutions. ##
1544
 
## ------------------- ##
1545
 
_ASBOX
 
2600
## ------------------- ##"
1546
2601
      echo
1547
2602
      for ac_var in $ac_subst_files
1548
2603
      do
1556
2611
    fi
1557
2612
 
1558
2613
    if test -s confdefs.h; then
1559
 
      cat <<\_ASBOX
1560
 
## ----------- ##
 
2614
      $as_echo "## ----------- ##
1561
2615
## confdefs.h. ##
1562
 
## ----------- ##
1563
 
_ASBOX
 
2616
## ----------- ##"
1564
2617
      echo
1565
2618
      cat confdefs.h
1566
2619
      echo
1574
2627
    exit $exit_status
1575
2628
' 0
1576
2629
for ac_signal in 1 2 13 15; do
1577
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2630
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1578
2631
done
1579
2632
ac_signal=0
1580
2633
 
1581
2634
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1582
2635
rm -f -r conftest* confdefs.h
1583
2636
 
 
2637
$as_echo "/* confdefs.h */" > confdefs.h
 
2638
 
1584
2639
# Predefined preprocessor variables.
1585
2640
 
1586
2641
cat >>confdefs.h <<_ACEOF
1587
2642
#define PACKAGE_NAME "$PACKAGE_NAME"
1588
2643
_ACEOF
1589
2644
 
1590
 
 
1591
2645
cat >>confdefs.h <<_ACEOF
1592
2646
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1593
2647
_ACEOF
1594
2648
 
1595
 
 
1596
2649
cat >>confdefs.h <<_ACEOF
1597
2650
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1598
2651
_ACEOF
1599
2652
 
1600
 
 
1601
2653
cat >>confdefs.h <<_ACEOF
1602
2654
#define PACKAGE_STRING "$PACKAGE_STRING"
1603
2655
_ACEOF
1604
2656
 
1605
 
 
1606
2657
cat >>confdefs.h <<_ACEOF
1607
2658
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1608
2659
_ACEOF
1609
2660
 
 
2661
cat >>confdefs.h <<_ACEOF
 
2662
#define PACKAGE_URL "$PACKAGE_URL"
 
2663
_ACEOF
 
2664
 
1610
2665
 
1611
2666
# Let the site file select an alternate cache file if it wants to.
1612
2667
# Prefer an explicitly selected file to automatically selected ones.
1613
2668
ac_site_file1=NONE
1614
2669
ac_site_file2=NONE
1615
2670
if test -n "$CONFIG_SITE"; then
1616
 
  ac_site_file1=$CONFIG_SITE
 
2671
  # We do not want a PATH search for config.site.
 
2672
  case $CONFIG_SITE in #((
 
2673
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2674
    */*) ac_site_file1=$CONFIG_SITE;;
 
2675
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2676
  esac
1617
2677
elif test "x$prefix" != xNONE; then
1618
2678
  ac_site_file1=$prefix/share/config.site
1619
2679
  ac_site_file2=$prefix/etc/config.site
1624
2684
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1625
2685
do
1626
2686
  test "x$ac_site_file" = xNONE && continue
1627
 
  if test -r "$ac_site_file"; then
1628
 
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2687
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2688
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1629
2689
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1630
2690
    sed 's/^/| /' "$ac_site_file" >&5
1631
 
    . "$ac_site_file"
 
2691
    . "$ac_site_file" \
 
2692
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2693
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2694
as_fn_error $? "failed to load site script $ac_site_file
 
2695
See \`config.log' for more details" "$LINENO" 5; }
1632
2696
  fi
1633
2697
done
1634
2698
 
1635
2699
if test -r "$cache_file"; then
1636
 
  # Some versions of bash will fail to source /dev/null (special
1637
 
  # files actually), so we avoid doing that.
1638
 
  if test -f "$cache_file"; then
1639
 
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2700
  # Some versions of bash will fail to source /dev/null (special files
 
2701
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2702
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2703
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1640
2704
$as_echo "$as_me: loading cache $cache_file" >&6;}
1641
2705
    case $cache_file in
1642
2706
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1644
2708
    esac
1645
2709
  fi
1646
2710
else
1647
 
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2711
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1648
2712
$as_echo "$as_me: creating cache $cache_file" >&6;}
1649
2713
  >$cache_file
1650
2714
fi
1659
2723
  eval ac_new_val=\$ac_env_${ac_var}_value
1660
2724
  case $ac_old_set,$ac_new_set in
1661
2725
    set,)
1662
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2726
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1663
2727
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1664
2728
      ac_cache_corrupted=: ;;
1665
2729
    ,set)
1666
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2730
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1667
2731
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1668
2732
      ac_cache_corrupted=: ;;
1669
2733
    ,);;
1673
2737
        ac_old_val_w=`echo x $ac_old_val`
1674
2738
        ac_new_val_w=`echo x $ac_new_val`
1675
2739
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1676
 
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2740
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1677
2741
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1678
2742
          ac_cache_corrupted=:
1679
2743
        else
1680
 
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2744
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1681
2745
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1682
2746
          eval $ac_var=\$ac_old_val
1683
2747
        fi
1684
 
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2748
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1685
2749
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1686
 
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2750
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1687
2751
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1688
2752
      fi;;
1689
2753
  esac
1695
2759
    esac
1696
2760
    case " $ac_configure_args " in
1697
2761
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1698
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2762
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1699
2763
    esac
1700
2764
  fi
1701
2765
done
1702
2766
if $ac_cache_corrupted; then
1703
 
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2767
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1704
2768
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705
 
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2769
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1706
2770
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1707
 
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1708
 
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1709
 
   { (exit 1); exit 1; }; }
 
2771
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1710
2772
fi
1711
 
 
1712
 
 
1713
 
 
1714
 
 
1715
 
 
1716
 
 
1717
 
 
1718
 
 
1719
 
 
1720
 
 
1721
 
 
1722
 
 
1723
 
 
1724
 
 
1725
 
 
1726
 
 
1727
 
 
1728
 
 
1729
 
 
1730
 
 
1731
 
 
1732
 
 
1733
 
 
1734
 
 
 
2773
## -------------------- ##
 
2774
## Main body of script. ##
 
2775
## -------------------- ##
1735
2776
 
1736
2777
ac_ext=c
1737
2778
ac_cpp='$CPP $CPPFLAGS'
1741
2782
 
1742
2783
 
1743
2784
 
 
2785
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
 
2786
 
 
2787
 
1744
2788
ac_aux_dir=
1745
2789
for ac_dir in build "$srcdir"/build; do
1746
2790
  if test -f "$ac_dir/install-sh"; then
1758
2802
  fi
1759
2803
done
1760
2804
if test -z "$ac_aux_dir"; then
1761
 
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
1762
 
$as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
1763
 
   { (exit 1); exit 1; }; }
 
2805
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
1764
2806
fi
1765
2807
 
1766
2808
# These three variables are undocumented and unsupported,
1772
2814
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1773
2815
 
1774
2816
 
 
2817
 
1775
2818
am__api_version='1.11'
1776
2819
 
1777
2820
# Find a good install program.  We prefer a C program (faster),
1788
2831
# OS/2's system install, which has a completely different semantic
1789
2832
# ./install, which can be erroneously created by make from ./install.sh.
1790
2833
# Reject install programs that cannot install multiple files.
1791
 
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1792
2835
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1793
2836
if test -z "$INSTALL"; then
1794
 
if test "${ac_cv_path_install+set}" = set; then
 
2837
if ${ac_cv_path_install+:} false; then :
1795
2838
  $as_echo_n "(cached) " >&6
1796
2839
else
1797
2840
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799
2842
do
1800
2843
  IFS=$as_save_IFS
1801
2844
  test -z "$as_dir" && as_dir=.
1802
 
  # Account for people who put trailing slashes in PATH elements.
1803
 
case $as_dir/ in
1804
 
  ./ | .// | /cC/* | \
 
2845
    # Account for people who put trailing slashes in PATH elements.
 
2846
case $as_dir/ in #((
 
2847
  ./ | .// | /[cC]/* | \
1805
2848
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1806
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2849
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1807
2850
  /usr/ucb/* ) ;;
1808
2851
  *)
1809
2852
    # OSF1 and SCO ODT 3.0 have their own names for install.
1840
2883
    ;;
1841
2884
esac
1842
2885
 
1843
 
done
 
2886
  done
1844
2887
IFS=$as_save_IFS
1845
2888
 
1846
2889
rm -rf conftest.one conftest.two conftest.dir
1856
2899
    INSTALL=$ac_install_sh
1857
2900
  fi
1858
2901
fi
1859
 
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1860
2903
$as_echo "$INSTALL" >&6; }
1861
2904
 
1862
2905
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1867
2910
 
1868
2911
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1869
2912
 
1870
 
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1871
2914
$as_echo_n "checking whether build environment is sane... " >&6; }
1872
2915
# Just in case
1873
2916
sleep 1
1878
2921
'
1879
2922
case `pwd` in
1880
2923
  *[\\\"\#\$\&\'\`$am_lf]*)
1881
 
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
1882
 
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
1883
 
   { (exit 1); exit 1; }; };;
 
2924
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1884
2925
esac
1885
2926
case $srcdir in
1886
2927
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
1887
 
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
1888
 
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
1889
 
   { (exit 1); exit 1; }; };;
 
2928
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1890
2929
esac
1891
2930
 
1892
2931
# Do `set' in a subshell so we don't clobber the current shell's
1908
2947
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1909
2948
      # broken ls alias from the environment.  This has actually
1910
2949
      # happened.  Such a system could not be considered "sane".
1911
 
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1912
 
alias in your environment" >&5
1913
 
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1914
 
alias in your environment" >&2;}
1915
 
   { (exit 1); exit 1; }; }
 
2950
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2951
alias in your environment" "$LINENO" 5
1916
2952
   fi
1917
2953
 
1918
2954
   test "$2" = conftest.file
1921
2957
   # Ok.
1922
2958
   :
1923
2959
else
1924
 
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1925
 
Check your system clock" >&5
1926
 
$as_echo "$as_me: error: newly created file is older than distributed files!
1927
 
Check your system clock" >&2;}
1928
 
   { (exit 1); exit 1; }; }
 
2960
   as_fn_error $? "newly created file is older than distributed files!
 
2961
Check your system clock" "$LINENO" 5
1929
2962
fi
1930
 
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1931
2964
$as_echo "yes" >&6; }
1932
2965
test "$program_prefix" != NONE &&
1933
2966
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1955
2988
  am_missing_run="$MISSING --run "
1956
2989
else
1957
2990
  am_missing_run=
1958
 
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2991
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
1959
2992
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1960
2993
fi
1961
2994
 
1976
3009
  if test -n "$ac_tool_prefix"; then
1977
3010
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1978
3011
set dummy ${ac_tool_prefix}strip; ac_word=$2
1979
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1980
3013
$as_echo_n "checking for $ac_word... " >&6; }
1981
 
if test "${ac_cv_prog_STRIP+set}" = set; then
 
3014
if ${ac_cv_prog_STRIP+:} false; then :
1982
3015
  $as_echo_n "(cached) " >&6
1983
3016
else
1984
3017
  if test -n "$STRIP"; then
1989
3022
do
1990
3023
  IFS=$as_save_IFS
1991
3024
  test -z "$as_dir" && as_dir=.
1992
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3025
    for ac_exec_ext in '' $ac_executable_extensions; do
1993
3026
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1994
3027
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1995
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3028
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1996
3029
    break 2
1997
3030
  fi
1998
3031
done
1999
 
done
 
3032
  done
2000
3033
IFS=$as_save_IFS
2001
3034
 
2002
3035
fi
2003
3036
fi
2004
3037
STRIP=$ac_cv_prog_STRIP
2005
3038
if test -n "$STRIP"; then
2006
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
3039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2007
3040
$as_echo "$STRIP" >&6; }
2008
3041
else
2009
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2010
3043
$as_echo "no" >&6; }
2011
3044
fi
2012
3045
 
2016
3049
  ac_ct_STRIP=$STRIP
2017
3050
  # Extract the first word of "strip", so it can be a program name with args.
2018
3051
set dummy strip; ac_word=$2
2019
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2020
3053
$as_echo_n "checking for $ac_word... " >&6; }
2021
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
3054
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2022
3055
  $as_echo_n "(cached) " >&6
2023
3056
else
2024
3057
  if test -n "$ac_ct_STRIP"; then
2029
3062
do
2030
3063
  IFS=$as_save_IFS
2031
3064
  test -z "$as_dir" && as_dir=.
2032
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3065
    for ac_exec_ext in '' $ac_executable_extensions; do
2033
3066
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034
3067
    ac_cv_prog_ac_ct_STRIP="strip"
2035
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3068
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2036
3069
    break 2
2037
3070
  fi
2038
3071
done
2039
 
done
 
3072
  done
2040
3073
IFS=$as_save_IFS
2041
3074
 
2042
3075
fi
2043
3076
fi
2044
3077
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2045
3078
if test -n "$ac_ct_STRIP"; then
2046
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
3079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2047
3080
$as_echo "$ac_ct_STRIP" >&6; }
2048
3081
else
2049
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2050
3083
$as_echo "no" >&6; }
2051
3084
fi
2052
3085
 
2055
3088
  else
2056
3089
    case $cross_compiling:$ac_tool_warned in
2057
3090
yes:)
2058
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3091
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2059
3092
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2060
3093
ac_tool_warned=yes ;;
2061
3094
esac
2068
3101
fi
2069
3102
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2070
3103
 
2071
 
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
3104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2072
3105
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2073
3106
if test -z "$MKDIR_P"; then
2074
 
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3107
  if ${ac_cv_path_mkdir+:} false; then :
2075
3108
  $as_echo_n "(cached) " >&6
2076
3109
else
2077
3110
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079
3112
do
2080
3113
  IFS=$as_save_IFS
2081
3114
  test -z "$as_dir" && as_dir=.
2082
 
  for ac_prog in mkdir gmkdir; do
 
3115
    for ac_prog in mkdir gmkdir; do
2083
3116
         for ac_exec_ext in '' $ac_executable_extensions; do
2084
3117
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2085
3118
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2091
3124
           esac
2092
3125
         done
2093
3126
       done
2094
 
done
 
3127
  done
2095
3128
IFS=$as_save_IFS
2096
3129
 
2097
3130
fi
2098
3131
 
 
3132
  test -d ./--version && rmdir ./--version
2099
3133
  if test "${ac_cv_path_mkdir+set}" = set; then
2100
3134
    MKDIR_P="$ac_cv_path_mkdir -p"
2101
3135
  else
2103
3137
    # value for MKDIR_P within a source directory, because that will
2104
3138
    # break other packages using the cache if that directory is
2105
3139
    # removed, or if the value is a relative name.
2106
 
    test -d ./--version && rmdir ./--version
2107
3140
    MKDIR_P="$ac_install_sh -d"
2108
3141
  fi
2109
3142
fi
2110
 
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
3143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2111
3144
$as_echo "$MKDIR_P" >&6; }
2112
3145
 
2113
3146
mkdir_p="$MKDIR_P"
2120
3153
do
2121
3154
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2122
3155
set dummy $ac_prog; ac_word=$2
2123
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2124
3157
$as_echo_n "checking for $ac_word... " >&6; }
2125
 
if test "${ac_cv_prog_AWK+set}" = set; then
 
3158
if ${ac_cv_prog_AWK+:} false; then :
2126
3159
  $as_echo_n "(cached) " >&6
2127
3160
else
2128
3161
  if test -n "$AWK"; then
2133
3166
do
2134
3167
  IFS=$as_save_IFS
2135
3168
  test -z "$as_dir" && as_dir=.
2136
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3169
    for ac_exec_ext in '' $ac_executable_extensions; do
2137
3170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138
3171
    ac_cv_prog_AWK="$ac_prog"
2139
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3172
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2140
3173
    break 2
2141
3174
  fi
2142
3175
done
2143
 
done
 
3176
  done
2144
3177
IFS=$as_save_IFS
2145
3178
 
2146
3179
fi
2147
3180
fi
2148
3181
AWK=$ac_cv_prog_AWK
2149
3182
if test -n "$AWK"; then
2150
 
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
3183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2151
3184
$as_echo "$AWK" >&6; }
2152
3185
else
2153
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2154
3187
$as_echo "no" >&6; }
2155
3188
fi
2156
3189
 
2158
3191
  test -n "$AWK" && break
2159
3192
done
2160
3193
 
2161
 
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2162
3195
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2163
3196
set x ${MAKE-make}
2164
3197
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2165
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3198
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2166
3199
  $as_echo_n "(cached) " >&6
2167
3200
else
2168
3201
  cat >conftest.make <<\_ACEOF
2170
3203
all:
2171
3204
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2172
3205
_ACEOF
2173
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3206
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2174
3207
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2175
3208
  *@@@%%%=?*=@@@%%%*)
2176
3209
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2180
3213
rm -f conftest.make
2181
3214
fi
2182
3215
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2183
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
3216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2184
3217
$as_echo "yes" >&6; }
2185
3218
  SET_MAKE=
2186
3219
else
2187
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2188
3221
$as_echo "no" >&6; }
2189
3222
  SET_MAKE="MAKE=${MAKE-make}"
2190
3223
fi
2204
3237
  am__isrc=' -I$(srcdir)'
2205
3238
  # test to see if srcdir already configured
2206
3239
  if test -f $srcdir/config.status; then
2207
 
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2208
 
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2209
 
   { (exit 1); exit 1; }; }
 
3240
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2210
3241
  fi
2211
3242
fi
2212
3243
 
2222
3253
 
2223
3254
# Define the identity of the package.
2224
3255
 PACKAGE='sssd'
2225
 
 VERSION='1.0.2'
 
3256
 VERSION='1.5.8'
2226
3257
 
2227
3258
 
2228
3259
cat >>confdefs.h <<_ACEOF
2262
3293
 
2263
3294
 
2264
3295
 
2265
 
 
2266
 
# Find a good install program.  We prefer a C program (faster),
2267
 
# so one script is as good as another.  But avoid the broken or
2268
 
# incompatible versions:
2269
 
# SysV /etc/install, /usr/sbin/install
2270
 
# SunOS /usr/etc/install
2271
 
# IRIX /sbin/install
2272
 
# AIX /bin/install
2273
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2274
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277
 
# OS/2's system install, which has a completely different semantic
2278
 
# ./install, which can be erroneously created by make from ./install.sh.
2279
 
# Reject install programs that cannot install multiple files.
2280
 
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2281
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2282
 
if test -z "$INSTALL"; then
2283
 
if test "${ac_cv_path_install+set}" = set; then
2284
 
  $as_echo_n "(cached) " >&6
2285
 
else
2286
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287
 
for as_dir in $PATH
2288
 
do
2289
 
  IFS=$as_save_IFS
2290
 
  test -z "$as_dir" && as_dir=.
2291
 
  # Account for people who put trailing slashes in PATH elements.
2292
 
case $as_dir/ in
2293
 
  ./ | .// | /cC/* | \
2294
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2295
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2296
 
  /usr/ucb/* ) ;;
2297
 
  *)
2298
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2299
 
    # Don't use installbsd from OSF since it installs stuff as root
2300
 
    # by default.
2301
 
    for ac_prog in ginstall scoinst install; do
2302
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2303
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2304
 
          if test $ac_prog = install &&
2305
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306
 
            # AIX install.  It has an incompatible calling convention.
2307
 
            :
2308
 
          elif test $ac_prog = install &&
2309
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310
 
            # program-specific install script used by HP pwplus--don't use.
2311
 
            :
2312
 
          else
2313
 
            rm -rf conftest.one conftest.two conftest.dir
2314
 
            echo one > conftest.one
2315
 
            echo two > conftest.two
2316
 
            mkdir conftest.dir
2317
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2318
 
              test -s conftest.one && test -s conftest.two &&
2319
 
              test -s conftest.dir/conftest.one &&
2320
 
              test -s conftest.dir/conftest.two
2321
 
            then
2322
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2323
 
              break 3
2324
 
            fi
2325
 
          fi
2326
 
        fi
2327
 
      done
2328
 
    done
2329
 
    ;;
2330
 
esac
2331
 
 
2332
 
done
2333
 
IFS=$as_save_IFS
2334
 
 
2335
 
rm -rf conftest.one conftest.two conftest.dir
2336
 
 
2337
 
fi
2338
 
  if test "${ac_cv_path_install+set}" = set; then
2339
 
    INSTALL=$ac_cv_path_install
2340
 
  else
2341
 
    # As a last resort, use the slow shell script.  Don't cache a
2342
 
    # value for INSTALL within a source directory, because that will
2343
 
    # break other packages using the cache if that directory is
2344
 
    # removed, or if the value is a relative name.
2345
 
    INSTALL=$ac_install_sh
2346
 
  fi
2347
 
fi
2348
 
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2349
 
$as_echo "$INSTALL" >&6; }
2350
 
 
2351
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352
 
# It thinks the first close brace ends the variable substitution.
2353
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2354
 
 
2355
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2356
 
 
2357
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2358
 
 
2359
 
 
2360
 
 
2361
 
 
2362
 
subdirs="$subdirs replace common server sss_client"
2363
 
 
2364
 
 
2365
 
# If the VERSION file has a second line, we'll append it
2366
 
# to the release tag when creating an RPM or SRPM
2367
 
# This is intended for build systems to create snapshot
2368
 
# RPMs. The format should be something like:
2369
 
# .20090915gitf1bcde7
2370
 
# and would result in an SRPM looking like:
2371
 
# sssd-0.5.0-0.20090915gitf1bcde7.fc11.src.rpm
2372
 
 
2373
 
 
2374
 
ac_config_files="$ac_config_files Makefile contrib/sssd.spec"
 
3296
DEPDIR="${am__leading_dot}deps"
 
3297
 
 
3298
ac_config_commands="$ac_config_commands depfiles"
 
3299
 
 
3300
 
 
3301
am_make=${MAKE-make}
 
3302
cat > confinc << 'END'
 
3303
am__doit:
 
3304
        @echo this is the am__doit target
 
3305
.PHONY: am__doit
 
3306
END
 
3307
# If we don't find an include directive, just comment out the code.
 
3308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3309
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3310
am__include="#"
 
3311
am__quote=
 
3312
_am_result=none
 
3313
# First try GNU make style include.
 
3314
echo "include confinc" > confmf
 
3315
# Ignore all kinds of additional output from `make'.
 
3316
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3317
*the\ am__doit\ target*)
 
3318
  am__include=include
 
3319
  am__quote=
 
3320
  _am_result=GNU
 
3321
  ;;
 
3322
esac
 
3323
# Now try BSD make style include.
 
3324
if test "$am__include" = "#"; then
 
3325
   echo '.include "confinc"' > confmf
 
3326
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3327
   *the\ am__doit\ target*)
 
3328
     am__include=.include
 
3329
     am__quote="\""
 
3330
     _am_result=BSD
 
3331
     ;;
 
3332
   esac
 
3333
fi
 
3334
 
 
3335
 
 
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3337
$as_echo "$_am_result" >&6; }
 
3338
rm -f confinc confmf
 
3339
 
 
3340
# Check whether --enable-dependency-tracking was given.
 
3341
if test "${enable_dependency_tracking+set}" = set; then :
 
3342
  enableval=$enable_dependency_tracking;
 
3343
fi
 
3344
 
 
3345
if test "x$enable_dependency_tracking" != xno; then
 
3346
  am_depcomp="$ac_aux_dir/depcomp"
 
3347
  AMDEPBACKSLASH='\'
 
3348
fi
 
3349
 if test "x$enable_dependency_tracking" != xno; then
 
3350
  AMDEP_TRUE=
 
3351
  AMDEP_FALSE='#'
 
3352
else
 
3353
  AMDEP_TRUE='#'
 
3354
  AMDEP_FALSE=
 
3355
fi
 
3356
 
 
3357
 
 
3358
ac_ext=c
 
3359
ac_cpp='$CPP $CPPFLAGS'
 
3360
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3361
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3362
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3363
if test -n "$ac_tool_prefix"; then
 
3364
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3365
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3367
$as_echo_n "checking for $ac_word... " >&6; }
 
3368
if ${ac_cv_prog_CC+:} false; then :
 
3369
  $as_echo_n "(cached) " >&6
 
3370
else
 
3371
  if test -n "$CC"; then
 
3372
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3373
else
 
3374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3375
for as_dir in $PATH
 
3376
do
 
3377
  IFS=$as_save_IFS
 
3378
  test -z "$as_dir" && as_dir=.
 
3379
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3380
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3381
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3382
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3383
    break 2
 
3384
  fi
 
3385
done
 
3386
  done
 
3387
IFS=$as_save_IFS
 
3388
 
 
3389
fi
 
3390
fi
 
3391
CC=$ac_cv_prog_CC
 
3392
if test -n "$CC"; then
 
3393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3394
$as_echo "$CC" >&6; }
 
3395
else
 
3396
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3397
$as_echo "no" >&6; }
 
3398
fi
 
3399
 
 
3400
 
 
3401
fi
 
3402
if test -z "$ac_cv_prog_CC"; then
 
3403
  ac_ct_CC=$CC
 
3404
  # Extract the first word of "gcc", so it can be a program name with args.
 
3405
set dummy gcc; ac_word=$2
 
3406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3407
$as_echo_n "checking for $ac_word... " >&6; }
 
3408
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3409
  $as_echo_n "(cached) " >&6
 
3410
else
 
3411
  if test -n "$ac_ct_CC"; then
 
3412
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3413
else
 
3414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3415
for as_dir in $PATH
 
3416
do
 
3417
  IFS=$as_save_IFS
 
3418
  test -z "$as_dir" && as_dir=.
 
3419
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3421
    ac_cv_prog_ac_ct_CC="gcc"
 
3422
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3423
    break 2
 
3424
  fi
 
3425
done
 
3426
  done
 
3427
IFS=$as_save_IFS
 
3428
 
 
3429
fi
 
3430
fi
 
3431
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3432
if test -n "$ac_ct_CC"; then
 
3433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3434
$as_echo "$ac_ct_CC" >&6; }
 
3435
else
 
3436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3437
$as_echo "no" >&6; }
 
3438
fi
 
3439
 
 
3440
  if test "x$ac_ct_CC" = x; then
 
3441
    CC=""
 
3442
  else
 
3443
    case $cross_compiling:$ac_tool_warned in
 
3444
yes:)
 
3445
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3446
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3447
ac_tool_warned=yes ;;
 
3448
esac
 
3449
    CC=$ac_ct_CC
 
3450
  fi
 
3451
else
 
3452
  CC="$ac_cv_prog_CC"
 
3453
fi
 
3454
 
 
3455
if test -z "$CC"; then
 
3456
          if test -n "$ac_tool_prefix"; then
 
3457
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3458
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3460
$as_echo_n "checking for $ac_word... " >&6; }
 
3461
if ${ac_cv_prog_CC+:} false; then :
 
3462
  $as_echo_n "(cached) " >&6
 
3463
else
 
3464
  if test -n "$CC"; then
 
3465
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3466
else
 
3467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3468
for as_dir in $PATH
 
3469
do
 
3470
  IFS=$as_save_IFS
 
3471
  test -z "$as_dir" && as_dir=.
 
3472
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3473
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3474
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3475
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3476
    break 2
 
3477
  fi
 
3478
done
 
3479
  done
 
3480
IFS=$as_save_IFS
 
3481
 
 
3482
fi
 
3483
fi
 
3484
CC=$ac_cv_prog_CC
 
3485
if test -n "$CC"; then
 
3486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3487
$as_echo "$CC" >&6; }
 
3488
else
 
3489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3490
$as_echo "no" >&6; }
 
3491
fi
 
3492
 
 
3493
 
 
3494
  fi
 
3495
fi
 
3496
if test -z "$CC"; then
 
3497
  # Extract the first word of "cc", so it can be a program name with args.
 
3498
set dummy cc; ac_word=$2
 
3499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3500
$as_echo_n "checking for $ac_word... " >&6; }
 
3501
if ${ac_cv_prog_CC+:} false; then :
 
3502
  $as_echo_n "(cached) " >&6
 
3503
else
 
3504
  if test -n "$CC"; then
 
3505
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3506
else
 
3507
  ac_prog_rejected=no
 
3508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3509
for as_dir in $PATH
 
3510
do
 
3511
  IFS=$as_save_IFS
 
3512
  test -z "$as_dir" && as_dir=.
 
3513
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3515
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3516
       ac_prog_rejected=yes
 
3517
       continue
 
3518
     fi
 
3519
    ac_cv_prog_CC="cc"
 
3520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3521
    break 2
 
3522
  fi
 
3523
done
 
3524
  done
 
3525
IFS=$as_save_IFS
 
3526
 
 
3527
if test $ac_prog_rejected = yes; then
 
3528
  # We found a bogon in the path, so make sure we never use it.
 
3529
  set dummy $ac_cv_prog_CC
 
3530
  shift
 
3531
  if test $# != 0; then
 
3532
    # We chose a different compiler from the bogus one.
 
3533
    # However, it has the same basename, so the bogon will be chosen
 
3534
    # first if we set CC to just the basename; use the full file name.
 
3535
    shift
 
3536
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3537
  fi
 
3538
fi
 
3539
fi
 
3540
fi
 
3541
CC=$ac_cv_prog_CC
 
3542
if test -n "$CC"; then
 
3543
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3544
$as_echo "$CC" >&6; }
 
3545
else
 
3546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3547
$as_echo "no" >&6; }
 
3548
fi
 
3549
 
 
3550
 
 
3551
fi
 
3552
if test -z "$CC"; then
 
3553
  if test -n "$ac_tool_prefix"; then
 
3554
  for ac_prog in cl.exe
 
3555
  do
 
3556
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3557
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3559
$as_echo_n "checking for $ac_word... " >&6; }
 
3560
if ${ac_cv_prog_CC+:} false; then :
 
3561
  $as_echo_n "(cached) " >&6
 
3562
else
 
3563
  if test -n "$CC"; then
 
3564
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3565
else
 
3566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3567
for as_dir in $PATH
 
3568
do
 
3569
  IFS=$as_save_IFS
 
3570
  test -z "$as_dir" && as_dir=.
 
3571
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3572
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3573
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3574
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3575
    break 2
 
3576
  fi
 
3577
done
 
3578
  done
 
3579
IFS=$as_save_IFS
 
3580
 
 
3581
fi
 
3582
fi
 
3583
CC=$ac_cv_prog_CC
 
3584
if test -n "$CC"; then
 
3585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3586
$as_echo "$CC" >&6; }
 
3587
else
 
3588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3589
$as_echo "no" >&6; }
 
3590
fi
 
3591
 
 
3592
 
 
3593
    test -n "$CC" && break
 
3594
  done
 
3595
fi
 
3596
if test -z "$CC"; then
 
3597
  ac_ct_CC=$CC
 
3598
  for ac_prog in cl.exe
 
3599
do
 
3600
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3601
set dummy $ac_prog; ac_word=$2
 
3602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3603
$as_echo_n "checking for $ac_word... " >&6; }
 
3604
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3605
  $as_echo_n "(cached) " >&6
 
3606
else
 
3607
  if test -n "$ac_ct_CC"; then
 
3608
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3609
else
 
3610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3611
for as_dir in $PATH
 
3612
do
 
3613
  IFS=$as_save_IFS
 
3614
  test -z "$as_dir" && as_dir=.
 
3615
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3616
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3617
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3618
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3619
    break 2
 
3620
  fi
 
3621
done
 
3622
  done
 
3623
IFS=$as_save_IFS
 
3624
 
 
3625
fi
 
3626
fi
 
3627
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3628
if test -n "$ac_ct_CC"; then
 
3629
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3630
$as_echo "$ac_ct_CC" >&6; }
 
3631
else
 
3632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3633
$as_echo "no" >&6; }
 
3634
fi
 
3635
 
 
3636
 
 
3637
  test -n "$ac_ct_CC" && break
 
3638
done
 
3639
 
 
3640
  if test "x$ac_ct_CC" = x; then
 
3641
    CC=""
 
3642
  else
 
3643
    case $cross_compiling:$ac_tool_warned in
 
3644
yes:)
 
3645
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3646
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3647
ac_tool_warned=yes ;;
 
3648
esac
 
3649
    CC=$ac_ct_CC
 
3650
  fi
 
3651
fi
 
3652
 
 
3653
fi
 
3654
 
 
3655
 
 
3656
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3657
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3658
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3659
See \`config.log' for more details" "$LINENO" 5; }
 
3660
 
 
3661
# Provide some information about the compiler.
 
3662
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3663
set X $ac_compile
 
3664
ac_compiler=$2
 
3665
for ac_option in --version -v -V -qversion; do
 
3666
  { { ac_try="$ac_compiler $ac_option >&5"
 
3667
case "(($ac_try" in
 
3668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3669
  *) ac_try_echo=$ac_try;;
 
3670
esac
 
3671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3672
$as_echo "$ac_try_echo"; } >&5
 
3673
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3674
  ac_status=$?
 
3675
  if test -s conftest.err; then
 
3676
    sed '10a\
 
3677
... rest of stderr output deleted ...
 
3678
         10q' conftest.err >conftest.er1
 
3679
    cat conftest.er1 >&5
 
3680
  fi
 
3681
  rm -f conftest.er1 conftest.err
 
3682
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3683
  test $ac_status = 0; }
 
3684
done
 
3685
 
 
3686
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3687
/* end confdefs.h.  */
 
3688
 
 
3689
int
 
3690
main ()
 
3691
{
 
3692
 
 
3693
  ;
 
3694
  return 0;
 
3695
}
 
3696
_ACEOF
 
3697
ac_clean_files_save=$ac_clean_files
 
3698
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3699
# Try to create an executable without -o first, disregard a.out.
 
3700
# It will help us diagnose broken compilers, and finding out an intuition
 
3701
# of exeext.
 
3702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3703
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3704
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3705
 
 
3706
# The possible output files:
 
3707
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3708
 
 
3709
ac_rmfiles=
 
3710
for ac_file in $ac_files
 
3711
do
 
3712
  case $ac_file in
 
3713
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3714
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3715
  esac
 
3716
done
 
3717
rm -f $ac_rmfiles
 
3718
 
 
3719
if { { ac_try="$ac_link_default"
 
3720
case "(($ac_try" in
 
3721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3722
  *) ac_try_echo=$ac_try;;
 
3723
esac
 
3724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3725
$as_echo "$ac_try_echo"; } >&5
 
3726
  (eval "$ac_link_default") 2>&5
 
3727
  ac_status=$?
 
3728
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3729
  test $ac_status = 0; }; then :
 
3730
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3731
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3732
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3733
# so that the user can short-circuit this test for compilers unknown to
 
3734
# Autoconf.
 
3735
for ac_file in $ac_files ''
 
3736
do
 
3737
  test -f "$ac_file" || continue
 
3738
  case $ac_file in
 
3739
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3740
        ;;
 
3741
    [ab].out )
 
3742
        # We found the default executable, but exeext='' is most
 
3743
        # certainly right.
 
3744
        break;;
 
3745
    *.* )
 
3746
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3747
        then :; else
 
3748
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3749
        fi
 
3750
        # We set ac_cv_exeext here because the later test for it is not
 
3751
        # safe: cross compilers may not add the suffix if given an `-o'
 
3752
        # argument, so we may need to know it at that point already.
 
3753
        # Even if this section looks crufty: it has the advantage of
 
3754
        # actually working.
 
3755
        break;;
 
3756
    * )
 
3757
        break;;
 
3758
  esac
 
3759
done
 
3760
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3761
 
 
3762
else
 
3763
  ac_file=''
 
3764
fi
 
3765
if test -z "$ac_file"; then :
 
3766
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3767
$as_echo "no" >&6; }
 
3768
$as_echo "$as_me: failed program was:" >&5
 
3769
sed 's/^/| /' conftest.$ac_ext >&5
 
3770
 
 
3771
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3772
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3773
as_fn_error 77 "C compiler cannot create executables
 
3774
See \`config.log' for more details" "$LINENO" 5; }
 
3775
else
 
3776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3777
$as_echo "yes" >&6; }
 
3778
fi
 
3779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3780
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3782
$as_echo "$ac_file" >&6; }
 
3783
ac_exeext=$ac_cv_exeext
 
3784
 
 
3785
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3786
ac_clean_files=$ac_clean_files_save
 
3787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3788
$as_echo_n "checking for suffix of executables... " >&6; }
 
3789
if { { ac_try="$ac_link"
 
3790
case "(($ac_try" in
 
3791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3792
  *) ac_try_echo=$ac_try;;
 
3793
esac
 
3794
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3795
$as_echo "$ac_try_echo"; } >&5
 
3796
  (eval "$ac_link") 2>&5
 
3797
  ac_status=$?
 
3798
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3799
  test $ac_status = 0; }; then :
 
3800
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3801
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3802
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3803
# `rm'.
 
3804
for ac_file in conftest.exe conftest conftest.*; do
 
3805
  test -f "$ac_file" || continue
 
3806
  case $ac_file in
 
3807
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3808
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3809
          break;;
 
3810
    * ) break;;
 
3811
  esac
 
3812
done
 
3813
else
 
3814
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3815
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3816
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3817
See \`config.log' for more details" "$LINENO" 5; }
 
3818
fi
 
3819
rm -f conftest conftest$ac_cv_exeext
 
3820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3821
$as_echo "$ac_cv_exeext" >&6; }
 
3822
 
 
3823
rm -f conftest.$ac_ext
 
3824
EXEEXT=$ac_cv_exeext
 
3825
ac_exeext=$EXEEXT
 
3826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3827
/* end confdefs.h.  */
 
3828
#include <stdio.h>
 
3829
int
 
3830
main ()
 
3831
{
 
3832
FILE *f = fopen ("conftest.out", "w");
 
3833
 return ferror (f) || fclose (f) != 0;
 
3834
 
 
3835
  ;
 
3836
  return 0;
 
3837
}
 
3838
_ACEOF
 
3839
ac_clean_files="$ac_clean_files conftest.out"
 
3840
# Check that the compiler produces executables we can run.  If not, either
 
3841
# the compiler is broken, or we cross compile.
 
3842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3843
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3844
if test "$cross_compiling" != yes; then
 
3845
  { { ac_try="$ac_link"
 
3846
case "(($ac_try" in
 
3847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3848
  *) ac_try_echo=$ac_try;;
 
3849
esac
 
3850
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3851
$as_echo "$ac_try_echo"; } >&5
 
3852
  (eval "$ac_link") 2>&5
 
3853
  ac_status=$?
 
3854
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3855
  test $ac_status = 0; }
 
3856
  if { ac_try='./conftest$ac_cv_exeext'
 
3857
  { { case "(($ac_try" in
 
3858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3859
  *) ac_try_echo=$ac_try;;
 
3860
esac
 
3861
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3862
$as_echo "$ac_try_echo"; } >&5
 
3863
  (eval "$ac_try") 2>&5
 
3864
  ac_status=$?
 
3865
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3866
  test $ac_status = 0; }; }; then
 
3867
    cross_compiling=no
 
3868
  else
 
3869
    if test "$cross_compiling" = maybe; then
 
3870
        cross_compiling=yes
 
3871
    else
 
3872
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3873
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3874
as_fn_error $? "cannot run C compiled programs.
 
3875
If you meant to cross compile, use \`--host'.
 
3876
See \`config.log' for more details" "$LINENO" 5; }
 
3877
    fi
 
3878
  fi
 
3879
fi
 
3880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3881
$as_echo "$cross_compiling" >&6; }
 
3882
 
 
3883
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3884
ac_clean_files=$ac_clean_files_save
 
3885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3886
$as_echo_n "checking for suffix of object files... " >&6; }
 
3887
if ${ac_cv_objext+:} false; then :
 
3888
  $as_echo_n "(cached) " >&6
 
3889
else
 
3890
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3891
/* end confdefs.h.  */
 
3892
 
 
3893
int
 
3894
main ()
 
3895
{
 
3896
 
 
3897
  ;
 
3898
  return 0;
 
3899
}
 
3900
_ACEOF
 
3901
rm -f conftest.o conftest.obj
 
3902
if { { ac_try="$ac_compile"
 
3903
case "(($ac_try" in
 
3904
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3905
  *) ac_try_echo=$ac_try;;
 
3906
esac
 
3907
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3908
$as_echo "$ac_try_echo"; } >&5
 
3909
  (eval "$ac_compile") 2>&5
 
3910
  ac_status=$?
 
3911
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3912
  test $ac_status = 0; }; then :
 
3913
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3914
  test -f "$ac_file" || continue;
 
3915
  case $ac_file in
 
3916
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3917
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3918
       break;;
 
3919
  esac
 
3920
done
 
3921
else
 
3922
  $as_echo "$as_me: failed program was:" >&5
 
3923
sed 's/^/| /' conftest.$ac_ext >&5
 
3924
 
 
3925
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3926
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3927
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3928
See \`config.log' for more details" "$LINENO" 5; }
 
3929
fi
 
3930
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3931
fi
 
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3933
$as_echo "$ac_cv_objext" >&6; }
 
3934
OBJEXT=$ac_cv_objext
 
3935
ac_objext=$OBJEXT
 
3936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3937
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3938
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3939
  $as_echo_n "(cached) " >&6
 
3940
else
 
3941
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3942
/* end confdefs.h.  */
 
3943
 
 
3944
int
 
3945
main ()
 
3946
{
 
3947
#ifndef __GNUC__
 
3948
       choke me
 
3949
#endif
 
3950
 
 
3951
  ;
 
3952
  return 0;
 
3953
}
 
3954
_ACEOF
 
3955
if ac_fn_c_try_compile "$LINENO"; then :
 
3956
  ac_compiler_gnu=yes
 
3957
else
 
3958
  ac_compiler_gnu=no
 
3959
fi
 
3960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3961
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3962
 
 
3963
fi
 
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3965
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3966
if test $ac_compiler_gnu = yes; then
 
3967
  GCC=yes
 
3968
else
 
3969
  GCC=
 
3970
fi
 
3971
ac_test_CFLAGS=${CFLAGS+set}
 
3972
ac_save_CFLAGS=$CFLAGS
 
3973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3974
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3975
if ${ac_cv_prog_cc_g+:} false; then :
 
3976
  $as_echo_n "(cached) " >&6
 
3977
else
 
3978
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3979
   ac_c_werror_flag=yes
 
3980
   ac_cv_prog_cc_g=no
 
3981
   CFLAGS="-g"
 
3982
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3983
/* end confdefs.h.  */
 
3984
 
 
3985
int
 
3986
main ()
 
3987
{
 
3988
 
 
3989
  ;
 
3990
  return 0;
 
3991
}
 
3992
_ACEOF
 
3993
if ac_fn_c_try_compile "$LINENO"; then :
 
3994
  ac_cv_prog_cc_g=yes
 
3995
else
 
3996
  CFLAGS=""
 
3997
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3998
/* end confdefs.h.  */
 
3999
 
 
4000
int
 
4001
main ()
 
4002
{
 
4003
 
 
4004
  ;
 
4005
  return 0;
 
4006
}
 
4007
_ACEOF
 
4008
if ac_fn_c_try_compile "$LINENO"; then :
 
4009
 
 
4010
else
 
4011
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4012
         CFLAGS="-g"
 
4013
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4014
/* end confdefs.h.  */
 
4015
 
 
4016
int
 
4017
main ()
 
4018
{
 
4019
 
 
4020
  ;
 
4021
  return 0;
 
4022
}
 
4023
_ACEOF
 
4024
if ac_fn_c_try_compile "$LINENO"; then :
 
4025
  ac_cv_prog_cc_g=yes
 
4026
fi
 
4027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4028
fi
 
4029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4030
fi
 
4031
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4032
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4033
fi
 
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4035
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4036
if test "$ac_test_CFLAGS" = set; then
 
4037
  CFLAGS=$ac_save_CFLAGS
 
4038
elif test $ac_cv_prog_cc_g = yes; then
 
4039
  if test "$GCC" = yes; then
 
4040
    CFLAGS="-g -O2"
 
4041
  else
 
4042
    CFLAGS="-g"
 
4043
  fi
 
4044
else
 
4045
  if test "$GCC" = yes; then
 
4046
    CFLAGS="-O2"
 
4047
  else
 
4048
    CFLAGS=
 
4049
  fi
 
4050
fi
 
4051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4052
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4053
if ${ac_cv_prog_cc_c89+:} false; then :
 
4054
  $as_echo_n "(cached) " >&6
 
4055
else
 
4056
  ac_cv_prog_cc_c89=no
 
4057
ac_save_CC=$CC
 
4058
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4059
/* end confdefs.h.  */
 
4060
#include <stdarg.h>
 
4061
#include <stdio.h>
 
4062
#include <sys/types.h>
 
4063
#include <sys/stat.h>
 
4064
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4065
struct buf { int x; };
 
4066
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4067
static char *e (p, i)
 
4068
     char **p;
 
4069
     int i;
 
4070
{
 
4071
  return p[i];
 
4072
}
 
4073
static char *f (char * (*g) (char **, int), char **p, ...)
 
4074
{
 
4075
  char *s;
 
4076
  va_list v;
 
4077
  va_start (v,p);
 
4078
  s = g (p, va_arg (v,int));
 
4079
  va_end (v);
 
4080
  return s;
 
4081
}
 
4082
 
 
4083
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4084
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4085
   These don't provoke an error unfortunately, instead are silently treated
 
4086
   as 'x'.  The following induces an error, until -std is added to get
 
4087
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4088
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4089
   that's true only with -std.  */
 
4090
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4091
 
 
4092
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4093
   inside strings and character constants.  */
 
4094
#define FOO(x) 'x'
 
4095
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4096
 
 
4097
int test (int i, double x);
 
4098
struct s1 {int (*f) (int a);};
 
4099
struct s2 {int (*f) (double a);};
 
4100
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4101
int argc;
 
4102
char **argv;
 
4103
int
 
4104
main ()
 
4105
{
 
4106
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4107
  ;
 
4108
  return 0;
 
4109
}
 
4110
_ACEOF
 
4111
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4112
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4113
do
 
4114
  CC="$ac_save_CC $ac_arg"
 
4115
  if ac_fn_c_try_compile "$LINENO"; then :
 
4116
  ac_cv_prog_cc_c89=$ac_arg
 
4117
fi
 
4118
rm -f core conftest.err conftest.$ac_objext
 
4119
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4120
done
 
4121
rm -f conftest.$ac_ext
 
4122
CC=$ac_save_CC
 
4123
 
 
4124
fi
 
4125
# AC_CACHE_VAL
 
4126
case "x$ac_cv_prog_cc_c89" in
 
4127
  x)
 
4128
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4129
$as_echo "none needed" >&6; } ;;
 
4130
  xno)
 
4131
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4132
$as_echo "unsupported" >&6; } ;;
 
4133
  *)
 
4134
    CC="$CC $ac_cv_prog_cc_c89"
 
4135
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4136
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4137
esac
 
4138
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4139
 
 
4140
fi
 
4141
 
 
4142
ac_ext=c
 
4143
ac_cpp='$CPP $CPPFLAGS'
 
4144
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4145
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4146
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4147
 
 
4148
depcc="$CC"   am_compiler_list=
 
4149
 
 
4150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4151
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4152
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4153
  $as_echo_n "(cached) " >&6
 
4154
else
 
4155
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4156
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4157
  # making bogus files that we don't know about and never remove.  For
 
4158
  # instance it was reported that on HP-UX the gcc test will end up
 
4159
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4160
  # in D'.
 
4161
  mkdir conftest.dir
 
4162
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4163
  # using a relative directory.
 
4164
  cp "$am_depcomp" conftest.dir
 
4165
  cd conftest.dir
 
4166
  # We will build objects and dependencies in a subdirectory because
 
4167
  # it helps to detect inapplicable dependency modes.  For instance
 
4168
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4169
  # side effect of compilation, but ICC will put the dependencies in
 
4170
  # the current directory while Tru64 will put them in the object
 
4171
  # directory.
 
4172
  mkdir sub
 
4173
 
 
4174
  am_cv_CC_dependencies_compiler_type=none
 
4175
  if test "$am_compiler_list" = ""; then
 
4176
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4177
  fi
 
4178
  am__universal=false
 
4179
  case " $depcc " in #(
 
4180
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4181
     esac
 
4182
 
 
4183
  for depmode in $am_compiler_list; do
 
4184
    # Setup a source with many dependencies, because some compilers
 
4185
    # like to wrap large dependency lists on column 80 (with \), and
 
4186
    # we should not choose a depcomp mode which is confused by this.
 
4187
    #
 
4188
    # We need to recreate these files for each test, as the compiler may
 
4189
    # overwrite some of them when testing with obscure command lines.
 
4190
    # This happens at least with the AIX C compiler.
 
4191
    : > sub/conftest.c
 
4192
    for i in 1 2 3 4 5 6; do
 
4193
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4194
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4195
      # Solaris 8's {/usr,}/bin/sh.
 
4196
      touch sub/conftst$i.h
 
4197
    done
 
4198
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4199
 
 
4200
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4201
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4202
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4203
    # versions had trouble with output in subdirs
 
4204
    am__obj=sub/conftest.${OBJEXT-o}
 
4205
    am__minus_obj="-o $am__obj"
 
4206
    case $depmode in
 
4207
    gcc)
 
4208
      # This depmode causes a compiler race in universal mode.
 
4209
      test "$am__universal" = false || continue
 
4210
      ;;
 
4211
    nosideeffect)
 
4212
      # after this tag, mechanisms are not by side-effect, so they'll
 
4213
      # only be used when explicitly requested
 
4214
      if test "x$enable_dependency_tracking" = xyes; then
 
4215
        continue
 
4216
      else
 
4217
        break
 
4218
      fi
 
4219
      ;;
 
4220
    msvisualcpp | msvcmsys)
 
4221
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4222
      # not run yet.  These depmodes are late enough in the game, and
 
4223
      # so weak that their functioning should not be impacted.
 
4224
      am__obj=conftest.${OBJEXT-o}
 
4225
      am__minus_obj=
 
4226
      ;;
 
4227
    none) break ;;
 
4228
    esac
 
4229
    if depmode=$depmode \
 
4230
       source=sub/conftest.c object=$am__obj \
 
4231
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4232
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4233
         >/dev/null 2>conftest.err &&
 
4234
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4235
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4236
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4237
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4238
      # icc doesn't choke on unknown options, it will just issue warnings
 
4239
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4240
      # that says an option was ignored or not supported.
 
4241
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4242
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4243
      # The diagnosis changed in icc 8.0:
 
4244
      #   icc: Command line remark: option '-MP' not supported
 
4245
      if (grep 'ignoring option' conftest.err ||
 
4246
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4247
        am_cv_CC_dependencies_compiler_type=$depmode
 
4248
        break
 
4249
      fi
 
4250
    fi
 
4251
  done
 
4252
 
 
4253
  cd ..
 
4254
  rm -rf conftest.dir
 
4255
else
 
4256
  am_cv_CC_dependencies_compiler_type=none
 
4257
fi
 
4258
 
 
4259
fi
 
4260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4261
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4262
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4263
 
 
4264
 if
 
4265
  test "x$enable_dependency_tracking" != xno \
 
4266
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4267
  am__fastdepCC_TRUE=
 
4268
  am__fastdepCC_FALSE='#'
 
4269
else
 
4270
  am__fastdepCC_TRUE='#'
 
4271
  am__fastdepCC_FALSE=
 
4272
fi
 
4273
 
 
4274
 
 
4275
if test "x$CC" != xcc; then
 
4276
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
4277
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
4278
else
 
4279
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
4280
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
4281
fi
 
4282
set dummy $CC; ac_cc=`$as_echo "$2" |
 
4283
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4284
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 
4285
  $as_echo_n "(cached) " >&6
 
4286
else
 
4287
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4288
/* end confdefs.h.  */
 
4289
 
 
4290
int
 
4291
main ()
 
4292
{
 
4293
 
 
4294
  ;
 
4295
  return 0;
 
4296
}
 
4297
_ACEOF
 
4298
# Make sure it works both with $CC and with simple cc.
 
4299
# We do the test twice because some compilers refuse to overwrite an
 
4300
# existing .o file with -o, though they will create one.
 
4301
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4302
rm -f conftest2.*
 
4303
if { { case "(($ac_try" in
 
4304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4305
  *) ac_try_echo=$ac_try;;
 
4306
esac
 
4307
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4308
$as_echo "$ac_try_echo"; } >&5
 
4309
  (eval "$ac_try") 2>&5
 
4310
  ac_status=$?
 
4311
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4312
  test $ac_status = 0; } &&
 
4313
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4315
  *) ac_try_echo=$ac_try;;
 
4316
esac
 
4317
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4318
$as_echo "$ac_try_echo"; } >&5
 
4319
  (eval "$ac_try") 2>&5
 
4320
  ac_status=$?
 
4321
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4322
  test $ac_status = 0; };
 
4323
then
 
4324
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4325
  if test "x$CC" != xcc; then
 
4326
    # Test first that cc exists at all.
 
4327
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4328
  { { case "(($ac_try" in
 
4329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4330
  *) ac_try_echo=$ac_try;;
 
4331
esac
 
4332
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4333
$as_echo "$ac_try_echo"; } >&5
 
4334
  (eval "$ac_try") 2>&5
 
4335
  ac_status=$?
 
4336
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4337
  test $ac_status = 0; }; }; then
 
4338
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4339
      rm -f conftest2.*
 
4340
      if { { case "(($ac_try" in
 
4341
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4342
  *) ac_try_echo=$ac_try;;
 
4343
esac
 
4344
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4345
$as_echo "$ac_try_echo"; } >&5
 
4346
  (eval "$ac_try") 2>&5
 
4347
  ac_status=$?
 
4348
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4349
  test $ac_status = 0; } &&
 
4350
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4352
  *) ac_try_echo=$ac_try;;
 
4353
esac
 
4354
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4355
$as_echo "$ac_try_echo"; } >&5
 
4356
  (eval "$ac_try") 2>&5
 
4357
  ac_status=$?
 
4358
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4359
  test $ac_status = 0; };
 
4360
      then
 
4361
        # cc works too.
 
4362
        :
 
4363
      else
 
4364
        # cc exists but doesn't like -o.
 
4365
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4366
      fi
 
4367
    fi
 
4368
  fi
 
4369
else
 
4370
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4371
fi
 
4372
rm -f core conftest*
 
4373
 
 
4374
fi
 
4375
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4377
$as_echo "yes" >&6; }
 
4378
else
 
4379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4380
$as_echo "no" >&6; }
 
4381
 
 
4382
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
4383
 
 
4384
fi
 
4385
 
 
4386
# FIXME: we rely on the cache variable name because
 
4387
# there is no other way.
 
4388
set dummy $CC
 
4389
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4390
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
4391
if test "$am_t" != yes; then
 
4392
   # Losing compiler, so override with the script.
 
4393
   # FIXME: It is wrong to rewrite CC.
 
4394
   # But if we don't then we get into trouble of one sort or another.
 
4395
   # A longer-term fix would be to have automake use am__CC in this case,
 
4396
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4397
   CC="$am_aux_dir/compile $CC"
 
4398
fi
 
4399
 
 
4400
 
 
4401
# Check whether --enable-static was given.
 
4402
if test "${enable_static+set}" = set; then :
 
4403
  enableval=$enable_static; p=${PACKAGE-default}
 
4404
    case $enableval in
 
4405
    yes) enable_static=yes ;;
 
4406
    no) enable_static=no ;;
 
4407
    *)
 
4408
     enable_static=no
 
4409
      # Look at the argument we got.  We use all the common list separators.
 
4410
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4411
      for pkg in $enableval; do
 
4412
        IFS="$lt_save_ifs"
 
4413
        if test "X$pkg" = "X$p"; then
 
4414
          enable_static=yes
 
4415
        fi
 
4416
      done
 
4417
      IFS="$lt_save_ifs"
 
4418
      ;;
 
4419
    esac
 
4420
else
 
4421
  enable_static=no
 
4422
fi
 
4423
 
 
4424
 
 
4425
 
 
4426
 
 
4427
 
 
4428
 
 
4429
 
 
4430
 
 
4431
 
 
4432
 
 
4433
case `pwd` in
 
4434
  *\ * | *\     *)
 
4435
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4436
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4437
esac
 
4438
 
 
4439
 
 
4440
 
 
4441
macro_version='2.4'
 
4442
macro_revision='1.3293'
 
4443
 
 
4444
 
 
4445
 
 
4446
 
 
4447
 
 
4448
 
 
4449
 
 
4450
 
 
4451
 
 
4452
 
 
4453
 
 
4454
 
 
4455
 
 
4456
ltmain="$ac_aux_dir/ltmain.sh"
 
4457
 
 
4458
# Make sure we can run config.sub.
 
4459
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4460
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4461
 
 
4462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4463
$as_echo_n "checking build system type... " >&6; }
 
4464
if ${ac_cv_build+:} false; then :
 
4465
  $as_echo_n "(cached) " >&6
 
4466
else
 
4467
  ac_build_alias=$build_alias
 
4468
test "x$ac_build_alias" = x &&
 
4469
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4470
test "x$ac_build_alias" = x &&
 
4471
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4472
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4473
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4474
 
 
4475
fi
 
4476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4477
$as_echo "$ac_cv_build" >&6; }
 
4478
case $ac_cv_build in
 
4479
*-*-*) ;;
 
4480
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4481
esac
 
4482
build=$ac_cv_build
 
4483
ac_save_IFS=$IFS; IFS='-'
 
4484
set x $ac_cv_build
 
4485
shift
 
4486
build_cpu=$1
 
4487
build_vendor=$2
 
4488
shift; shift
 
4489
# Remember, the first character of IFS is used to create $*,
 
4490
# except with old shells:
 
4491
build_os=$*
 
4492
IFS=$ac_save_IFS
 
4493
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4494
 
 
4495
 
 
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4497
$as_echo_n "checking host system type... " >&6; }
 
4498
if ${ac_cv_host+:} false; then :
 
4499
  $as_echo_n "(cached) " >&6
 
4500
else
 
4501
  if test "x$host_alias" = x; then
 
4502
  ac_cv_host=$ac_cv_build
 
4503
else
 
4504
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4505
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4506
fi
 
4507
 
 
4508
fi
 
4509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4510
$as_echo "$ac_cv_host" >&6; }
 
4511
case $ac_cv_host in
 
4512
*-*-*) ;;
 
4513
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4514
esac
 
4515
host=$ac_cv_host
 
4516
ac_save_IFS=$IFS; IFS='-'
 
4517
set x $ac_cv_host
 
4518
shift
 
4519
host_cpu=$1
 
4520
host_vendor=$2
 
4521
shift; shift
 
4522
# Remember, the first character of IFS is used to create $*,
 
4523
# except with old shells:
 
4524
host_os=$*
 
4525
IFS=$ac_save_IFS
 
4526
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4527
 
 
4528
 
 
4529
# Backslashify metacharacters that are still active within
 
4530
# double-quoted strings.
 
4531
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4532
 
 
4533
# Same as above, but do not quote variable references.
 
4534
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4535
 
 
4536
# Sed substitution to delay expansion of an escaped shell variable in a
 
4537
# double_quote_subst'ed string.
 
4538
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4539
 
 
4540
# Sed substitution to delay expansion of an escaped single quote.
 
4541
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4542
 
 
4543
# Sed substitution to avoid accidental globbing in evaled expressions
 
4544
no_glob_subst='s/\*/\\\*/g'
 
4545
 
 
4546
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4547
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4548
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4549
 
 
4550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4551
$as_echo_n "checking how to print strings... " >&6; }
 
4552
# Test print first, because it will be a builtin if present.
 
4553
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4554
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4555
  ECHO='print -r --'
 
4556
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4557
  ECHO='printf %s\n'
 
4558
else
 
4559
  # Use this function as a fallback that always works.
 
4560
  func_fallback_echo ()
 
4561
  {
 
4562
    eval 'cat <<_LTECHO_EOF
 
4563
$1
 
4564
_LTECHO_EOF'
 
4565
  }
 
4566
  ECHO='func_fallback_echo'
 
4567
fi
 
4568
 
 
4569
# func_echo_all arg...
 
4570
# Invoke $ECHO with all args, space-separated.
 
4571
func_echo_all ()
 
4572
{
 
4573
    $ECHO ""
 
4574
}
 
4575
 
 
4576
case "$ECHO" in
 
4577
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4578
$as_echo "printf" >&6; } ;;
 
4579
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4580
$as_echo "print -r" >&6; } ;;
 
4581
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4582
$as_echo "cat" >&6; } ;;
 
4583
esac
 
4584
 
 
4585
 
 
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
 
 
4592
 
 
4593
 
 
4594
 
 
4595
 
 
4596
 
 
4597
 
 
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4599
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4600
if ${ac_cv_path_SED+:} false; then :
 
4601
  $as_echo_n "(cached) " >&6
 
4602
else
 
4603
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4604
     for ac_i in 1 2 3 4 5 6 7; do
 
4605
       ac_script="$ac_script$as_nl$ac_script"
 
4606
     done
 
4607
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4608
     { ac_script=; unset ac_script;}
 
4609
     if test -z "$SED"; then
 
4610
  ac_path_SED_found=false
 
4611
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4612
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4613
for as_dir in $PATH
 
4614
do
 
4615
  IFS=$as_save_IFS
 
4616
  test -z "$as_dir" && as_dir=.
 
4617
    for ac_prog in sed gsed; do
 
4618
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4619
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4620
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4621
# Check for GNU ac_path_SED and select it if it is found.
 
4622
  # Check for GNU $ac_path_SED
 
4623
case `"$ac_path_SED" --version 2>&1` in
 
4624
*GNU*)
 
4625
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4626
*)
 
4627
  ac_count=0
 
4628
  $as_echo_n 0123456789 >"conftest.in"
 
4629
  while :
 
4630
  do
 
4631
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4632
    mv "conftest.tmp" "conftest.in"
 
4633
    cp "conftest.in" "conftest.nl"
 
4634
    $as_echo '' >> "conftest.nl"
 
4635
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4636
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4637
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4638
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4639
      # Best one so far, save it but keep looking for a better one
 
4640
      ac_cv_path_SED="$ac_path_SED"
 
4641
      ac_path_SED_max=$ac_count
 
4642
    fi
 
4643
    # 10*(2^10) chars as input seems more than enough
 
4644
    test $ac_count -gt 10 && break
 
4645
  done
 
4646
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4647
esac
 
4648
 
 
4649
      $ac_path_SED_found && break 3
 
4650
    done
 
4651
  done
 
4652
  done
 
4653
IFS=$as_save_IFS
 
4654
  if test -z "$ac_cv_path_SED"; then
 
4655
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4656
  fi
 
4657
else
 
4658
  ac_cv_path_SED=$SED
 
4659
fi
 
4660
 
 
4661
fi
 
4662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4663
$as_echo "$ac_cv_path_SED" >&6; }
 
4664
 SED="$ac_cv_path_SED"
 
4665
  rm -f conftest.sed
 
4666
 
 
4667
test -z "$SED" && SED=sed
 
4668
Xsed="$SED -e 1s/^X//"
 
4669
 
 
4670
 
 
4671
 
 
4672
 
 
4673
 
 
4674
 
 
4675
 
 
4676
 
 
4677
 
 
4678
 
 
4679
 
 
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4681
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4682
if ${ac_cv_path_GREP+:} false; then :
 
4683
  $as_echo_n "(cached) " >&6
 
4684
else
 
4685
  if test -z "$GREP"; then
 
4686
  ac_path_GREP_found=false
 
4687
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4688
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4689
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4690
do
 
4691
  IFS=$as_save_IFS
 
4692
  test -z "$as_dir" && as_dir=.
 
4693
    for ac_prog in grep ggrep; do
 
4694
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4695
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4696
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4697
# Check for GNU ac_path_GREP and select it if it is found.
 
4698
  # Check for GNU $ac_path_GREP
 
4699
case `"$ac_path_GREP" --version 2>&1` in
 
4700
*GNU*)
 
4701
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4702
*)
 
4703
  ac_count=0
 
4704
  $as_echo_n 0123456789 >"conftest.in"
 
4705
  while :
 
4706
  do
 
4707
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4708
    mv "conftest.tmp" "conftest.in"
 
4709
    cp "conftest.in" "conftest.nl"
 
4710
    $as_echo 'GREP' >> "conftest.nl"
 
4711
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4712
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4713
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4714
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4715
      # Best one so far, save it but keep looking for a better one
 
4716
      ac_cv_path_GREP="$ac_path_GREP"
 
4717
      ac_path_GREP_max=$ac_count
 
4718
    fi
 
4719
    # 10*(2^10) chars as input seems more than enough
 
4720
    test $ac_count -gt 10 && break
 
4721
  done
 
4722
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4723
esac
 
4724
 
 
4725
      $ac_path_GREP_found && break 3
 
4726
    done
 
4727
  done
 
4728
  done
 
4729
IFS=$as_save_IFS
 
4730
  if test -z "$ac_cv_path_GREP"; then
 
4731
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4732
  fi
 
4733
else
 
4734
  ac_cv_path_GREP=$GREP
 
4735
fi
 
4736
 
 
4737
fi
 
4738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4739
$as_echo "$ac_cv_path_GREP" >&6; }
 
4740
 GREP="$ac_cv_path_GREP"
 
4741
 
 
4742
 
 
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4744
$as_echo_n "checking for egrep... " >&6; }
 
4745
if ${ac_cv_path_EGREP+:} false; then :
 
4746
  $as_echo_n "(cached) " >&6
 
4747
else
 
4748
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4749
   then ac_cv_path_EGREP="$GREP -E"
 
4750
   else
 
4751
     if test -z "$EGREP"; then
 
4752
  ac_path_EGREP_found=false
 
4753
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4754
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4755
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4756
do
 
4757
  IFS=$as_save_IFS
 
4758
  test -z "$as_dir" && as_dir=.
 
4759
    for ac_prog in egrep; do
 
4760
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4761
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4762
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4763
# Check for GNU ac_path_EGREP and select it if it is found.
 
4764
  # Check for GNU $ac_path_EGREP
 
4765
case `"$ac_path_EGREP" --version 2>&1` in
 
4766
*GNU*)
 
4767
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4768
*)
 
4769
  ac_count=0
 
4770
  $as_echo_n 0123456789 >"conftest.in"
 
4771
  while :
 
4772
  do
 
4773
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4774
    mv "conftest.tmp" "conftest.in"
 
4775
    cp "conftest.in" "conftest.nl"
 
4776
    $as_echo 'EGREP' >> "conftest.nl"
 
4777
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4778
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4779
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4780
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4781
      # Best one so far, save it but keep looking for a better one
 
4782
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4783
      ac_path_EGREP_max=$ac_count
 
4784
    fi
 
4785
    # 10*(2^10) chars as input seems more than enough
 
4786
    test $ac_count -gt 10 && break
 
4787
  done
 
4788
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4789
esac
 
4790
 
 
4791
      $ac_path_EGREP_found && break 3
 
4792
    done
 
4793
  done
 
4794
  done
 
4795
IFS=$as_save_IFS
 
4796
  if test -z "$ac_cv_path_EGREP"; then
 
4797
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4798
  fi
 
4799
else
 
4800
  ac_cv_path_EGREP=$EGREP
 
4801
fi
 
4802
 
 
4803
   fi
 
4804
fi
 
4805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4806
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4807
 EGREP="$ac_cv_path_EGREP"
 
4808
 
 
4809
 
 
4810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4811
$as_echo_n "checking for fgrep... " >&6; }
 
4812
if ${ac_cv_path_FGREP+:} false; then :
 
4813
  $as_echo_n "(cached) " >&6
 
4814
else
 
4815
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4816
   then ac_cv_path_FGREP="$GREP -F"
 
4817
   else
 
4818
     if test -z "$FGREP"; then
 
4819
  ac_path_FGREP_found=false
 
4820
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4821
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4822
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4823
do
 
4824
  IFS=$as_save_IFS
 
4825
  test -z "$as_dir" && as_dir=.
 
4826
    for ac_prog in fgrep; do
 
4827
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4828
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4829
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4830
# Check for GNU ac_path_FGREP and select it if it is found.
 
4831
  # Check for GNU $ac_path_FGREP
 
4832
case `"$ac_path_FGREP" --version 2>&1` in
 
4833
*GNU*)
 
4834
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4835
*)
 
4836
  ac_count=0
 
4837
  $as_echo_n 0123456789 >"conftest.in"
 
4838
  while :
 
4839
  do
 
4840
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4841
    mv "conftest.tmp" "conftest.in"
 
4842
    cp "conftest.in" "conftest.nl"
 
4843
    $as_echo 'FGREP' >> "conftest.nl"
 
4844
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4845
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4846
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4847
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4848
      # Best one so far, save it but keep looking for a better one
 
4849
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4850
      ac_path_FGREP_max=$ac_count
 
4851
    fi
 
4852
    # 10*(2^10) chars as input seems more than enough
 
4853
    test $ac_count -gt 10 && break
 
4854
  done
 
4855
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4856
esac
 
4857
 
 
4858
      $ac_path_FGREP_found && break 3
 
4859
    done
 
4860
  done
 
4861
  done
 
4862
IFS=$as_save_IFS
 
4863
  if test -z "$ac_cv_path_FGREP"; then
 
4864
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4865
  fi
 
4866
else
 
4867
  ac_cv_path_FGREP=$FGREP
 
4868
fi
 
4869
 
 
4870
   fi
 
4871
fi
 
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4873
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4874
 FGREP="$ac_cv_path_FGREP"
 
4875
 
 
4876
 
 
4877
test -z "$GREP" && GREP=grep
 
4878
 
 
4879
 
 
4880
 
 
4881
 
 
4882
 
 
4883
 
 
4884
 
 
4885
 
 
4886
 
 
4887
 
 
4888
 
 
4889
 
 
4890
 
 
4891
 
 
4892
 
 
4893
 
 
4894
 
 
4895
 
 
4896
 
 
4897
# Check whether --with-gnu-ld was given.
 
4898
if test "${with_gnu_ld+set}" = set; then :
 
4899
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4900
else
 
4901
  with_gnu_ld=no
 
4902
fi
 
4903
 
 
4904
ac_prog=ld
 
4905
if test "$GCC" = yes; then
 
4906
  # Check if gcc -print-prog-name=ld gives a path.
 
4907
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4908
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4909
  case $host in
 
4910
  *-*-mingw*)
 
4911
    # gcc leaves a trailing carriage return which upsets mingw
 
4912
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4913
  *)
 
4914
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4915
  esac
 
4916
  case $ac_prog in
 
4917
    # Accept absolute paths.
 
4918
    [\\/]* | ?:[\\/]*)
 
4919
      re_direlt='/[^/][^/]*/\.\./'
 
4920
      # Canonicalize the pathname of ld
 
4921
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4922
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4923
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4924
      done
 
4925
      test -z "$LD" && LD="$ac_prog"
 
4926
      ;;
 
4927
  "")
 
4928
    # If it fails, then pretend we aren't using GCC.
 
4929
    ac_prog=ld
 
4930
    ;;
 
4931
  *)
 
4932
    # If it is relative, then search for the first ld in PATH.
 
4933
    with_gnu_ld=unknown
 
4934
    ;;
 
4935
  esac
 
4936
elif test "$with_gnu_ld" = yes; then
 
4937
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4938
$as_echo_n "checking for GNU ld... " >&6; }
 
4939
else
 
4940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4941
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4942
fi
 
4943
if ${lt_cv_path_LD+:} false; then :
 
4944
  $as_echo_n "(cached) " >&6
 
4945
else
 
4946
  if test -z "$LD"; then
 
4947
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4948
  for ac_dir in $PATH; do
 
4949
    IFS="$lt_save_ifs"
 
4950
    test -z "$ac_dir" && ac_dir=.
 
4951
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4952
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4953
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4954
      # but apparently some variants of GNU ld only accept -v.
 
4955
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4956
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4957
      *GNU* | *'with BFD'*)
 
4958
        test "$with_gnu_ld" != no && break
 
4959
        ;;
 
4960
      *)
 
4961
        test "$with_gnu_ld" != yes && break
 
4962
        ;;
 
4963
      esac
 
4964
    fi
 
4965
  done
 
4966
  IFS="$lt_save_ifs"
 
4967
else
 
4968
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4969
fi
 
4970
fi
 
4971
 
 
4972
LD="$lt_cv_path_LD"
 
4973
if test -n "$LD"; then
 
4974
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4975
$as_echo "$LD" >&6; }
 
4976
else
 
4977
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4978
$as_echo "no" >&6; }
 
4979
fi
 
4980
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4982
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4983
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4984
  $as_echo_n "(cached) " >&6
 
4985
else
 
4986
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4987
case `$LD -v 2>&1 </dev/null` in
 
4988
*GNU* | *'with BFD'*)
 
4989
  lt_cv_prog_gnu_ld=yes
 
4990
  ;;
 
4991
*)
 
4992
  lt_cv_prog_gnu_ld=no
 
4993
  ;;
 
4994
esac
 
4995
fi
 
4996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4997
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4998
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4999
 
 
5000
 
 
5001
 
 
5002
 
 
5003
 
 
5004
 
 
5005
 
 
5006
 
 
5007
 
 
5008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5009
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5010
if ${lt_cv_path_NM+:} false; then :
 
5011
  $as_echo_n "(cached) " >&6
 
5012
else
 
5013
  if test -n "$NM"; then
 
5014
  # Let the user override the test.
 
5015
  lt_cv_path_NM="$NM"
 
5016
else
 
5017
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5018
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5019
    lt_nm_to_check="$lt_nm_to_check nm"
 
5020
  fi
 
5021
  for lt_tmp_nm in $lt_nm_to_check; do
 
5022
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5023
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5024
      IFS="$lt_save_ifs"
 
5025
      test -z "$ac_dir" && ac_dir=.
 
5026
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5027
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5028
        # Check to see if the nm accepts a BSD-compat flag.
 
5029
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5030
        #   nm: unknown option "B" ignored
 
5031
        # Tru64's nm complains that /dev/null is an invalid object file
 
5032
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5033
        */dev/null* | *'Invalid file or object type'*)
 
5034
          lt_cv_path_NM="$tmp_nm -B"
 
5035
          break
 
5036
          ;;
 
5037
        *)
 
5038
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5039
          */dev/null*)
 
5040
            lt_cv_path_NM="$tmp_nm -p"
 
5041
            break
 
5042
            ;;
 
5043
          *)
 
5044
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5045
            continue # so that we can try to find one that supports BSD flags
 
5046
            ;;
 
5047
          esac
 
5048
          ;;
 
5049
        esac
 
5050
      fi
 
5051
    done
 
5052
    IFS="$lt_save_ifs"
 
5053
  done
 
5054
  : ${lt_cv_path_NM=no}
 
5055
fi
 
5056
fi
 
5057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5058
$as_echo "$lt_cv_path_NM" >&6; }
 
5059
if test "$lt_cv_path_NM" != "no"; then
 
5060
  NM="$lt_cv_path_NM"
 
5061
else
 
5062
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5063
  if test -n "$DUMPBIN"; then :
 
5064
    # Let the user override the test.
 
5065
  else
 
5066
    if test -n "$ac_tool_prefix"; then
 
5067
  for ac_prog in dumpbin "link -dump"
 
5068
  do
 
5069
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5070
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5072
$as_echo_n "checking for $ac_word... " >&6; }
 
5073
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5074
  $as_echo_n "(cached) " >&6
 
5075
else
 
5076
  if test -n "$DUMPBIN"; then
 
5077
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5078
else
 
5079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5080
for as_dir in $PATH
 
5081
do
 
5082
  IFS=$as_save_IFS
 
5083
  test -z "$as_dir" && as_dir=.
 
5084
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5085
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5086
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5087
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5088
    break 2
 
5089
  fi
 
5090
done
 
5091
  done
 
5092
IFS=$as_save_IFS
 
5093
 
 
5094
fi
 
5095
fi
 
5096
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5097
if test -n "$DUMPBIN"; then
 
5098
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5099
$as_echo "$DUMPBIN" >&6; }
 
5100
else
 
5101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5102
$as_echo "no" >&6; }
 
5103
fi
 
5104
 
 
5105
 
 
5106
    test -n "$DUMPBIN" && break
 
5107
  done
 
5108
fi
 
5109
if test -z "$DUMPBIN"; then
 
5110
  ac_ct_DUMPBIN=$DUMPBIN
 
5111
  for ac_prog in dumpbin "link -dump"
 
5112
do
 
5113
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5114
set dummy $ac_prog; ac_word=$2
 
5115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5116
$as_echo_n "checking for $ac_word... " >&6; }
 
5117
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5118
  $as_echo_n "(cached) " >&6
 
5119
else
 
5120
  if test -n "$ac_ct_DUMPBIN"; then
 
5121
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5122
else
 
5123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5124
for as_dir in $PATH
 
5125
do
 
5126
  IFS=$as_save_IFS
 
5127
  test -z "$as_dir" && as_dir=.
 
5128
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5129
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5130
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5131
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5132
    break 2
 
5133
  fi
 
5134
done
 
5135
  done
 
5136
IFS=$as_save_IFS
 
5137
 
 
5138
fi
 
5139
fi
 
5140
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5141
if test -n "$ac_ct_DUMPBIN"; then
 
5142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5143
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5144
else
 
5145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5146
$as_echo "no" >&6; }
 
5147
fi
 
5148
 
 
5149
 
 
5150
  test -n "$ac_ct_DUMPBIN" && break
 
5151
done
 
5152
 
 
5153
  if test "x$ac_ct_DUMPBIN" = x; then
 
5154
    DUMPBIN=":"
 
5155
  else
 
5156
    case $cross_compiling:$ac_tool_warned in
 
5157
yes:)
 
5158
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5159
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5160
ac_tool_warned=yes ;;
 
5161
esac
 
5162
    DUMPBIN=$ac_ct_DUMPBIN
 
5163
  fi
 
5164
fi
 
5165
 
 
5166
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5167
    *COFF*)
 
5168
      DUMPBIN="$DUMPBIN -symbols"
 
5169
      ;;
 
5170
    *)
 
5171
      DUMPBIN=:
 
5172
      ;;
 
5173
    esac
 
5174
  fi
 
5175
 
 
5176
  if test "$DUMPBIN" != ":"; then
 
5177
    NM="$DUMPBIN"
 
5178
  fi
 
5179
fi
 
5180
test -z "$NM" && NM=nm
 
5181
 
 
5182
 
 
5183
 
 
5184
 
 
5185
 
 
5186
 
 
5187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5188
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5189
if ${lt_cv_nm_interface+:} false; then :
 
5190
  $as_echo_n "(cached) " >&6
 
5191
else
 
5192
  lt_cv_nm_interface="BSD nm"
 
5193
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5194
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5195
  (eval "$ac_compile" 2>conftest.err)
 
5196
  cat conftest.err >&5
 
5197
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5198
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5199
  cat conftest.err >&5
 
5200
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5201
  cat conftest.out >&5
 
5202
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5203
    lt_cv_nm_interface="MS dumpbin"
 
5204
  fi
 
5205
  rm -f conftest*
 
5206
fi
 
5207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5208
$as_echo "$lt_cv_nm_interface" >&6; }
 
5209
 
 
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5211
$as_echo_n "checking whether ln -s works... " >&6; }
 
5212
LN_S=$as_ln_s
 
5213
if test "$LN_S" = "ln -s"; then
 
5214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5215
$as_echo "yes" >&6; }
 
5216
else
 
5217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5218
$as_echo "no, using $LN_S" >&6; }
 
5219
fi
 
5220
 
 
5221
# find the maximum length of command line arguments
 
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5223
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5224
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5225
  $as_echo_n "(cached) " >&6
 
5226
else
 
5227
    i=0
 
5228
  teststring="ABCD"
 
5229
 
 
5230
  case $build_os in
 
5231
  msdosdjgpp*)
 
5232
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5233
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5234
    # during glob expansion).  Even if it were fixed, the result of this
 
5235
    # check would be larger than it should be.
 
5236
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5237
    ;;
 
5238
 
 
5239
  gnu*)
 
5240
    # Under GNU Hurd, this test is not required because there is
 
5241
    # no limit to the length of command line arguments.
 
5242
    # Libtool will interpret -1 as no limit whatsoever
 
5243
    lt_cv_sys_max_cmd_len=-1;
 
5244
    ;;
 
5245
 
 
5246
  cygwin* | mingw* | cegcc*)
 
5247
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5248
    # about 5 minutes as the teststring grows exponentially.
 
5249
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5250
    # you end up with a "frozen" computer, even though with patience
 
5251
    # the test eventually succeeds (with a max line length of 256k).
 
5252
    # Instead, let's just punt: use the minimum linelength reported by
 
5253
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5254
    lt_cv_sys_max_cmd_len=8192;
 
5255
    ;;
 
5256
 
 
5257
  mint*)
 
5258
    # On MiNT this can take a long time and run out of memory.
 
5259
    lt_cv_sys_max_cmd_len=8192;
 
5260
    ;;
 
5261
 
 
5262
  amigaos*)
 
5263
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5264
    # So we just punt and use a minimum line length of 8192.
 
5265
    lt_cv_sys_max_cmd_len=8192;
 
5266
    ;;
 
5267
 
 
5268
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5269
    # This has been around since 386BSD, at least.  Likely further.
 
5270
    if test -x /sbin/sysctl; then
 
5271
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5272
    elif test -x /usr/sbin/sysctl; then
 
5273
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5274
    else
 
5275
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5276
    fi
 
5277
    # And add a safety zone
 
5278
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5279
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5280
    ;;
 
5281
 
 
5282
  interix*)
 
5283
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5284
    lt_cv_sys_max_cmd_len=196608
 
5285
    ;;
 
5286
 
 
5287
  osf*)
 
5288
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5289
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5290
    # nice to cause kernel panics so lets avoid the loop below.
 
5291
    # First set a reasonable default.
 
5292
    lt_cv_sys_max_cmd_len=16384
 
5293
    #
 
5294
    if test -x /sbin/sysconfig; then
 
5295
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5296
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5297
      esac
 
5298
    fi
 
5299
    ;;
 
5300
  sco3.2v5*)
 
5301
    lt_cv_sys_max_cmd_len=102400
 
5302
    ;;
 
5303
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5304
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5305
    if test -n "$kargmax"; then
 
5306
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5307
    else
 
5308
      lt_cv_sys_max_cmd_len=32768
 
5309
    fi
 
5310
    ;;
 
5311
  *)
 
5312
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5313
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5314
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5315
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5316
    else
 
5317
      # Make teststring a little bigger before we do anything with it.
 
5318
      # a 1K string should be a reasonable start.
 
5319
      for i in 1 2 3 4 5 6 7 8 ; do
 
5320
        teststring=$teststring$teststring
 
5321
      done
 
5322
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5323
      # If test is not a shell built-in, we'll probably end up computing a
 
5324
      # maximum length that is only half of the actual maximum length, but
 
5325
      # we can't tell.
 
5326
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
5327
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5328
              test $i != 17 # 1/2 MB should be enough
 
5329
      do
 
5330
        i=`expr $i + 1`
 
5331
        teststring=$teststring$teststring
 
5332
      done
 
5333
      # Only check the string length outside the loop.
 
5334
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5335
      teststring=
 
5336
      # Add a significant safety factor because C++ compilers can tack on
 
5337
      # massive amounts of additional arguments before passing them to the
 
5338
      # linker.  It appears as though 1/2 is a usable value.
 
5339
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5340
    fi
 
5341
    ;;
 
5342
  esac
 
5343
 
 
5344
fi
 
5345
 
 
5346
if test -n $lt_cv_sys_max_cmd_len ; then
 
5347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5348
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5349
else
 
5350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5351
$as_echo "none" >&6; }
 
5352
fi
 
5353
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
: ${CP="cp -f"}
 
5361
: ${MV="mv -f"}
 
5362
: ${RM="rm -f"}
 
5363
 
 
5364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5365
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5366
# Try some XSI features
 
5367
xsi_shell=no
 
5368
( _lt_dummy="a/b/c"
 
5369
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5370
      = c,a/b,b/c, \
 
5371
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5372
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5373
  && xsi_shell=yes
 
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5375
$as_echo "$xsi_shell" >&6; }
 
5376
 
 
5377
 
 
5378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5379
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5380
lt_shell_append=no
 
5381
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5382
    >/dev/null 2>&1 \
 
5383
  && lt_shell_append=yes
 
5384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5385
$as_echo "$lt_shell_append" >&6; }
 
5386
 
 
5387
 
 
5388
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5389
  lt_unset=unset
 
5390
else
 
5391
  lt_unset=false
 
5392
fi
 
5393
 
 
5394
 
 
5395
 
 
5396
 
 
5397
 
 
5398
# test EBCDIC or ASCII
 
5399
case `echo X|tr X '\101'` in
 
5400
 A) # ASCII based system
 
5401
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5402
  lt_SP2NL='tr \040 \012'
 
5403
  lt_NL2SP='tr \015\012 \040\040'
 
5404
  ;;
 
5405
 *) # EBCDIC based system
 
5406
  lt_SP2NL='tr \100 \n'
 
5407
  lt_NL2SP='tr \r\n \100\100'
 
5408
  ;;
 
5409
esac
 
5410
 
 
5411
 
 
5412
 
 
5413
 
 
5414
 
 
5415
 
 
5416
 
 
5417
 
 
5418
 
 
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5420
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5421
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5422
  $as_echo_n "(cached) " >&6
 
5423
else
 
5424
  case $host in
 
5425
  *-*-mingw* )
 
5426
    case $build in
 
5427
      *-*-mingw* ) # actually msys
 
5428
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5429
        ;;
 
5430
      *-*-cygwin* )
 
5431
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5432
        ;;
 
5433
      * ) # otherwise, assume *nix
 
5434
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5435
        ;;
 
5436
    esac
 
5437
    ;;
 
5438
  *-*-cygwin* )
 
5439
    case $build in
 
5440
      *-*-mingw* ) # actually msys
 
5441
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5442
        ;;
 
5443
      *-*-cygwin* )
 
5444
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5445
        ;;
 
5446
      * ) # otherwise, assume *nix
 
5447
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5448
        ;;
 
5449
    esac
 
5450
    ;;
 
5451
  * ) # unhandled hosts (and "normal" native builds)
 
5452
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5453
    ;;
 
5454
esac
 
5455
 
 
5456
fi
 
5457
 
 
5458
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5460
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5461
 
 
5462
 
 
5463
 
 
5464
 
 
5465
 
 
5466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5467
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5468
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5469
  $as_echo_n "(cached) " >&6
 
5470
else
 
5471
  #assume ordinary cross tools, or native build.
 
5472
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5473
case $host in
 
5474
  *-*-mingw* )
 
5475
    case $build in
 
5476
      *-*-mingw* ) # actually msys
 
5477
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5478
        ;;
 
5479
    esac
 
5480
    ;;
 
5481
esac
 
5482
 
 
5483
fi
 
5484
 
 
5485
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5487
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5488
 
 
5489
 
 
5490
 
 
5491
 
 
5492
 
 
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5494
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5495
if ${lt_cv_ld_reload_flag+:} false; then :
 
5496
  $as_echo_n "(cached) " >&6
 
5497
else
 
5498
  lt_cv_ld_reload_flag='-r'
 
5499
fi
 
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5501
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5502
reload_flag=$lt_cv_ld_reload_flag
 
5503
case $reload_flag in
 
5504
"" | " "*) ;;
 
5505
*) reload_flag=" $reload_flag" ;;
 
5506
esac
 
5507
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5508
case $host_os in
 
5509
  cygwin* | mingw* | pw32* | cegcc*)
 
5510
    if test "$GCC" != yes; then
 
5511
      reload_cmds=false
 
5512
    fi
 
5513
    ;;
 
5514
  darwin*)
 
5515
    if test "$GCC" = yes; then
 
5516
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5517
    else
 
5518
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5519
    fi
 
5520
    ;;
 
5521
esac
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
5527
 
 
5528
 
 
5529
 
 
5530
 
 
5531
if test -n "$ac_tool_prefix"; then
 
5532
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5533
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5535
$as_echo_n "checking for $ac_word... " >&6; }
 
5536
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5537
  $as_echo_n "(cached) " >&6
 
5538
else
 
5539
  if test -n "$OBJDUMP"; then
 
5540
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5541
else
 
5542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5543
for as_dir in $PATH
 
5544
do
 
5545
  IFS=$as_save_IFS
 
5546
  test -z "$as_dir" && as_dir=.
 
5547
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5548
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5549
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5550
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5551
    break 2
 
5552
  fi
 
5553
done
 
5554
  done
 
5555
IFS=$as_save_IFS
 
5556
 
 
5557
fi
 
5558
fi
 
5559
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5560
if test -n "$OBJDUMP"; then
 
5561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5562
$as_echo "$OBJDUMP" >&6; }
 
5563
else
 
5564
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5565
$as_echo "no" >&6; }
 
5566
fi
 
5567
 
 
5568
 
 
5569
fi
 
5570
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5571
  ac_ct_OBJDUMP=$OBJDUMP
 
5572
  # Extract the first word of "objdump", so it can be a program name with args.
 
5573
set dummy objdump; ac_word=$2
 
5574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5575
$as_echo_n "checking for $ac_word... " >&6; }
 
5576
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5577
  $as_echo_n "(cached) " >&6
 
5578
else
 
5579
  if test -n "$ac_ct_OBJDUMP"; then
 
5580
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5581
else
 
5582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5583
for as_dir in $PATH
 
5584
do
 
5585
  IFS=$as_save_IFS
 
5586
  test -z "$as_dir" && as_dir=.
 
5587
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5588
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5589
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5590
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5591
    break 2
 
5592
  fi
 
5593
done
 
5594
  done
 
5595
IFS=$as_save_IFS
 
5596
 
 
5597
fi
 
5598
fi
 
5599
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5600
if test -n "$ac_ct_OBJDUMP"; then
 
5601
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5602
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5603
else
 
5604
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5605
$as_echo "no" >&6; }
 
5606
fi
 
5607
 
 
5608
  if test "x$ac_ct_OBJDUMP" = x; then
 
5609
    OBJDUMP="false"
 
5610
  else
 
5611
    case $cross_compiling:$ac_tool_warned in
 
5612
yes:)
 
5613
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5614
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5615
ac_tool_warned=yes ;;
 
5616
esac
 
5617
    OBJDUMP=$ac_ct_OBJDUMP
 
5618
  fi
 
5619
else
 
5620
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5621
fi
 
5622
 
 
5623
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5624
 
 
5625
 
 
5626
 
 
5627
 
 
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5634
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5635
if ${lt_cv_deplibs_check_method+:} false; then :
 
5636
  $as_echo_n "(cached) " >&6
 
5637
else
 
5638
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5639
lt_cv_file_magic_test_file=
 
5640
lt_cv_deplibs_check_method='unknown'
 
5641
# Need to set the preceding variable on all platforms that support
 
5642
# interlibrary dependencies.
 
5643
# 'none' -- dependencies not supported.
 
5644
# `unknown' -- same as none, but documents that we really don't know.
 
5645
# 'pass_all' -- all dependencies passed with no checks.
 
5646
# 'test_compile' -- check by making test program.
 
5647
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5648
# which responds to the $file_magic_cmd with a given extended regex.
 
5649
# If you have `file' or equivalent on your system and you're not sure
 
5650
# whether `pass_all' will *always* work, you probably want this one.
 
5651
 
 
5652
case $host_os in
 
5653
aix[4-9]*)
 
5654
  lt_cv_deplibs_check_method=pass_all
 
5655
  ;;
 
5656
 
 
5657
beos*)
 
5658
  lt_cv_deplibs_check_method=pass_all
 
5659
  ;;
 
5660
 
 
5661
bsdi[45]*)
 
5662
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5663
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5664
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5665
  ;;
 
5666
 
 
5667
cygwin*)
 
5668
  # func_win32_libid is a shell function defined in ltmain.sh
 
5669
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5670
  lt_cv_file_magic_cmd='func_win32_libid'
 
5671
  ;;
 
5672
 
 
5673
mingw* | pw32*)
 
5674
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5675
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5676
  # unless we find 'file', for example because we are cross-compiling.
 
5677
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5678
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5679
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5680
    lt_cv_file_magic_cmd='func_win32_libid'
 
5681
  else
 
5682
    # Keep this pattern in sync with the one in func_win32_libid.
 
5683
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5684
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5685
  fi
 
5686
  ;;
 
5687
 
 
5688
cegcc*)
 
5689
  # use the weaker test based on 'objdump'. See mingw*.
 
5690
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5691
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5692
  ;;
 
5693
 
 
5694
darwin* | rhapsody*)
 
5695
  lt_cv_deplibs_check_method=pass_all
 
5696
  ;;
 
5697
 
 
5698
freebsd* | dragonfly*)
 
5699
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5700
    case $host_cpu in
 
5701
    i*86 )
 
5702
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5703
      # Let's accept both of them until this is cleared up.
 
5704
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5705
      lt_cv_file_magic_cmd=/usr/bin/file
 
5706
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5707
      ;;
 
5708
    esac
 
5709
  else
 
5710
    lt_cv_deplibs_check_method=pass_all
 
5711
  fi
 
5712
  ;;
 
5713
 
 
5714
gnu*)
 
5715
  lt_cv_deplibs_check_method=pass_all
 
5716
  ;;
 
5717
 
 
5718
haiku*)
 
5719
  lt_cv_deplibs_check_method=pass_all
 
5720
  ;;
 
5721
 
 
5722
hpux10.20* | hpux11*)
 
5723
  lt_cv_file_magic_cmd=/usr/bin/file
 
5724
  case $host_cpu in
 
5725
  ia64*)
 
5726
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5727
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5728
    ;;
 
5729
  hppa*64*)
 
5730
    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]'
 
5731
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5732
    ;;
 
5733
  *)
 
5734
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5735
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5736
    ;;
 
5737
  esac
 
5738
  ;;
 
5739
 
 
5740
interix[3-9]*)
 
5741
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5742
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5743
  ;;
 
5744
 
 
5745
irix5* | irix6* | nonstopux*)
 
5746
  case $LD in
 
5747
  *-32|*"-32 ") libmagic=32-bit;;
 
5748
  *-n32|*"-n32 ") libmagic=N32;;
 
5749
  *-64|*"-64 ") libmagic=64-bit;;
 
5750
  *) libmagic=never-match;;
 
5751
  esac
 
5752
  lt_cv_deplibs_check_method=pass_all
 
5753
  ;;
 
5754
 
 
5755
# This must be Linux ELF.
 
5756
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5757
  lt_cv_deplibs_check_method=pass_all
 
5758
  ;;
 
5759
 
 
5760
netbsd*)
 
5761
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5762
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5763
  else
 
5764
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5765
  fi
 
5766
  ;;
 
5767
 
 
5768
newos6*)
 
5769
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5770
  lt_cv_file_magic_cmd=/usr/bin/file
 
5771
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5772
  ;;
 
5773
 
 
5774
*nto* | *qnx*)
 
5775
  lt_cv_deplibs_check_method=pass_all
 
5776
  ;;
 
5777
 
 
5778
openbsd*)
 
5779
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5780
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5781
  else
 
5782
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5783
  fi
 
5784
  ;;
 
5785
 
 
5786
osf3* | osf4* | osf5*)
 
5787
  lt_cv_deplibs_check_method=pass_all
 
5788
  ;;
 
5789
 
 
5790
rdos*)
 
5791
  lt_cv_deplibs_check_method=pass_all
 
5792
  ;;
 
5793
 
 
5794
solaris*)
 
5795
  lt_cv_deplibs_check_method=pass_all
 
5796
  ;;
 
5797
 
 
5798
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5799
  lt_cv_deplibs_check_method=pass_all
 
5800
  ;;
 
5801
 
 
5802
sysv4 | sysv4.3*)
 
5803
  case $host_vendor in
 
5804
  motorola)
 
5805
    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]'
 
5806
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5807
    ;;
 
5808
  ncr)
 
5809
    lt_cv_deplibs_check_method=pass_all
 
5810
    ;;
 
5811
  sequent)
 
5812
    lt_cv_file_magic_cmd='/bin/file'
 
5813
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5814
    ;;
 
5815
  sni)
 
5816
    lt_cv_file_magic_cmd='/bin/file'
 
5817
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5818
    lt_cv_file_magic_test_file=/lib/libc.so
 
5819
    ;;
 
5820
  siemens)
 
5821
    lt_cv_deplibs_check_method=pass_all
 
5822
    ;;
 
5823
  pc)
 
5824
    lt_cv_deplibs_check_method=pass_all
 
5825
    ;;
 
5826
  esac
 
5827
  ;;
 
5828
 
 
5829
tpf*)
 
5830
  lt_cv_deplibs_check_method=pass_all
 
5831
  ;;
 
5832
esac
 
5833
 
 
5834
fi
 
5835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5836
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5837
 
 
5838
file_magic_glob=
 
5839
want_nocaseglob=no
 
5840
if test "$build" = "$host"; then
 
5841
  case $host_os in
 
5842
  mingw* | pw32*)
 
5843
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5844
      want_nocaseglob=yes
 
5845
    else
 
5846
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5847
    fi
 
5848
    ;;
 
5849
  esac
 
5850
fi
 
5851
 
 
5852
file_magic_cmd=$lt_cv_file_magic_cmd
 
5853
deplibs_check_method=$lt_cv_deplibs_check_method
 
5854
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
 
 
5865
 
 
5866
 
 
5867
 
 
5868
 
 
5869
 
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
if test -n "$ac_tool_prefix"; then
 
5878
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5879
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5881
$as_echo_n "checking for $ac_word... " >&6; }
 
5882
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5883
  $as_echo_n "(cached) " >&6
 
5884
else
 
5885
  if test -n "$DLLTOOL"; then
 
5886
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5887
else
 
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5889
for as_dir in $PATH
 
5890
do
 
5891
  IFS=$as_save_IFS
 
5892
  test -z "$as_dir" && as_dir=.
 
5893
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5895
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5897
    break 2
 
5898
  fi
 
5899
done
 
5900
  done
 
5901
IFS=$as_save_IFS
 
5902
 
 
5903
fi
 
5904
fi
 
5905
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5906
if test -n "$DLLTOOL"; then
 
5907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5908
$as_echo "$DLLTOOL" >&6; }
 
5909
else
 
5910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5911
$as_echo "no" >&6; }
 
5912
fi
 
5913
 
 
5914
 
 
5915
fi
 
5916
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5917
  ac_ct_DLLTOOL=$DLLTOOL
 
5918
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5919
set dummy dlltool; ac_word=$2
 
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5921
$as_echo_n "checking for $ac_word... " >&6; }
 
5922
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5923
  $as_echo_n "(cached) " >&6
 
5924
else
 
5925
  if test -n "$ac_ct_DLLTOOL"; then
 
5926
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5927
else
 
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5929
for as_dir in $PATH
 
5930
do
 
5931
  IFS=$as_save_IFS
 
5932
  test -z "$as_dir" && as_dir=.
 
5933
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5934
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5935
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5936
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5937
    break 2
 
5938
  fi
 
5939
done
 
5940
  done
 
5941
IFS=$as_save_IFS
 
5942
 
 
5943
fi
 
5944
fi
 
5945
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5946
if test -n "$ac_ct_DLLTOOL"; then
 
5947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5948
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5949
else
 
5950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5951
$as_echo "no" >&6; }
 
5952
fi
 
5953
 
 
5954
  if test "x$ac_ct_DLLTOOL" = x; then
 
5955
    DLLTOOL="false"
 
5956
  else
 
5957
    case $cross_compiling:$ac_tool_warned in
 
5958
yes:)
 
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5961
ac_tool_warned=yes ;;
 
5962
esac
 
5963
    DLLTOOL=$ac_ct_DLLTOOL
 
5964
  fi
 
5965
else
 
5966
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5967
fi
 
5968
 
 
5969
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5970
 
 
5971
 
 
5972
 
 
5973
 
 
5974
 
 
5975
 
 
5976
 
 
5977
 
 
5978
 
 
5979
 
 
5980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5981
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5982
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5983
  $as_echo_n "(cached) " >&6
 
5984
else
 
5985
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5986
 
 
5987
case $host_os in
 
5988
cygwin* | mingw* | pw32* | cegcc*)
 
5989
  # two different shell functions defined in ltmain.sh
 
5990
  # decide which to use based on capabilities of $DLLTOOL
 
5991
  case `$DLLTOOL --help 2>&1` in
 
5992
  *--identify-strict*)
 
5993
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5994
    ;;
 
5995
  *)
 
5996
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5997
    ;;
 
5998
  esac
 
5999
  ;;
 
6000
*)
 
6001
  # fallback: assume linklib IS sharedlib
 
6002
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6003
  ;;
 
6004
esac
 
6005
 
 
6006
fi
 
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6008
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6009
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6010
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
 
 
6016
 
 
6017
 
 
6018
 
 
6019
if test -n "$ac_tool_prefix"; then
 
6020
  for ac_prog in ar
 
6021
  do
 
6022
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6023
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6025
$as_echo_n "checking for $ac_word... " >&6; }
 
6026
if ${ac_cv_prog_AR+:} false; then :
 
6027
  $as_echo_n "(cached) " >&6
 
6028
else
 
6029
  if test -n "$AR"; then
 
6030
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6031
else
 
6032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6033
for as_dir in $PATH
 
6034
do
 
6035
  IFS=$as_save_IFS
 
6036
  test -z "$as_dir" && as_dir=.
 
6037
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6038
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6039
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6040
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6041
    break 2
 
6042
  fi
 
6043
done
 
6044
  done
 
6045
IFS=$as_save_IFS
 
6046
 
 
6047
fi
 
6048
fi
 
6049
AR=$ac_cv_prog_AR
 
6050
if test -n "$AR"; then
 
6051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6052
$as_echo "$AR" >&6; }
 
6053
else
 
6054
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6055
$as_echo "no" >&6; }
 
6056
fi
 
6057
 
 
6058
 
 
6059
    test -n "$AR" && break
 
6060
  done
 
6061
fi
 
6062
if test -z "$AR"; then
 
6063
  ac_ct_AR=$AR
 
6064
  for ac_prog in ar
 
6065
do
 
6066
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6067
set dummy $ac_prog; ac_word=$2
 
6068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6069
$as_echo_n "checking for $ac_word... " >&6; }
 
6070
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6071
  $as_echo_n "(cached) " >&6
 
6072
else
 
6073
  if test -n "$ac_ct_AR"; then
 
6074
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6075
else
 
6076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6077
for as_dir in $PATH
 
6078
do
 
6079
  IFS=$as_save_IFS
 
6080
  test -z "$as_dir" && as_dir=.
 
6081
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6082
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6083
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6084
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6085
    break 2
 
6086
  fi
 
6087
done
 
6088
  done
 
6089
IFS=$as_save_IFS
 
6090
 
 
6091
fi
 
6092
fi
 
6093
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6094
if test -n "$ac_ct_AR"; then
 
6095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6096
$as_echo "$ac_ct_AR" >&6; }
 
6097
else
 
6098
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6099
$as_echo "no" >&6; }
 
6100
fi
 
6101
 
 
6102
 
 
6103
  test -n "$ac_ct_AR" && break
 
6104
done
 
6105
 
 
6106
  if test "x$ac_ct_AR" = x; then
 
6107
    AR="false"
 
6108
  else
 
6109
    case $cross_compiling:$ac_tool_warned in
 
6110
yes:)
 
6111
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6112
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6113
ac_tool_warned=yes ;;
 
6114
esac
 
6115
    AR=$ac_ct_AR
 
6116
  fi
 
6117
fi
 
6118
 
 
6119
: ${AR=ar}
 
6120
: ${AR_FLAGS=cru}
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
 
 
6126
 
 
6127
 
 
6128
 
 
6129
 
 
6130
 
 
6131
 
 
6132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6133
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6134
if ${lt_cv_ar_at_file+:} false; then :
 
6135
  $as_echo_n "(cached) " >&6
 
6136
else
 
6137
  lt_cv_ar_at_file=no
 
6138
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6139
/* end confdefs.h.  */
 
6140
 
 
6141
int
 
6142
main ()
 
6143
{
 
6144
 
 
6145
  ;
 
6146
  return 0;
 
6147
}
 
6148
_ACEOF
 
6149
if ac_fn_c_try_compile "$LINENO"; then :
 
6150
  echo conftest.$ac_objext > conftest.lst
 
6151
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6152
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6153
  (eval $lt_ar_try) 2>&5
 
6154
  ac_status=$?
 
6155
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6156
  test $ac_status = 0; }
 
6157
      if test "$ac_status" -eq 0; then
 
6158
        # Ensure the archiver fails upon bogus file names.
 
6159
        rm -f conftest.$ac_objext libconftest.a
 
6160
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6161
  (eval $lt_ar_try) 2>&5
 
6162
  ac_status=$?
 
6163
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6164
  test $ac_status = 0; }
 
6165
        if test "$ac_status" -ne 0; then
 
6166
          lt_cv_ar_at_file=@
 
6167
        fi
 
6168
      fi
 
6169
      rm -f conftest.* libconftest.a
 
6170
 
 
6171
fi
 
6172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6173
 
 
6174
fi
 
6175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6176
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6177
 
 
6178
if test "x$lt_cv_ar_at_file" = xno; then
 
6179
  archiver_list_spec=
 
6180
else
 
6181
  archiver_list_spec=$lt_cv_ar_at_file
 
6182
fi
 
6183
 
 
6184
 
 
6185
 
 
6186
 
 
6187
 
 
6188
 
 
6189
 
 
6190
if test -n "$ac_tool_prefix"; then
 
6191
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6192
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6194
$as_echo_n "checking for $ac_word... " >&6; }
 
6195
if ${ac_cv_prog_STRIP+:} false; then :
 
6196
  $as_echo_n "(cached) " >&6
 
6197
else
 
6198
  if test -n "$STRIP"; then
 
6199
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6200
else
 
6201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6202
for as_dir in $PATH
 
6203
do
 
6204
  IFS=$as_save_IFS
 
6205
  test -z "$as_dir" && as_dir=.
 
6206
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6208
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6209
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6210
    break 2
 
6211
  fi
 
6212
done
 
6213
  done
 
6214
IFS=$as_save_IFS
 
6215
 
 
6216
fi
 
6217
fi
 
6218
STRIP=$ac_cv_prog_STRIP
 
6219
if test -n "$STRIP"; then
 
6220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6221
$as_echo "$STRIP" >&6; }
 
6222
else
 
6223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6224
$as_echo "no" >&6; }
 
6225
fi
 
6226
 
 
6227
 
 
6228
fi
 
6229
if test -z "$ac_cv_prog_STRIP"; then
 
6230
  ac_ct_STRIP=$STRIP
 
6231
  # Extract the first word of "strip", so it can be a program name with args.
 
6232
set dummy strip; ac_word=$2
 
6233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6234
$as_echo_n "checking for $ac_word... " >&6; }
 
6235
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6236
  $as_echo_n "(cached) " >&6
 
6237
else
 
6238
  if test -n "$ac_ct_STRIP"; then
 
6239
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6240
else
 
6241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6242
for as_dir in $PATH
 
6243
do
 
6244
  IFS=$as_save_IFS
 
6245
  test -z "$as_dir" && as_dir=.
 
6246
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6247
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6248
    ac_cv_prog_ac_ct_STRIP="strip"
 
6249
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6250
    break 2
 
6251
  fi
 
6252
done
 
6253
  done
 
6254
IFS=$as_save_IFS
 
6255
 
 
6256
fi
 
6257
fi
 
6258
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6259
if test -n "$ac_ct_STRIP"; then
 
6260
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6261
$as_echo "$ac_ct_STRIP" >&6; }
 
6262
else
 
6263
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6264
$as_echo "no" >&6; }
 
6265
fi
 
6266
 
 
6267
  if test "x$ac_ct_STRIP" = x; then
 
6268
    STRIP=":"
 
6269
  else
 
6270
    case $cross_compiling:$ac_tool_warned in
 
6271
yes:)
 
6272
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6273
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6274
ac_tool_warned=yes ;;
 
6275
esac
 
6276
    STRIP=$ac_ct_STRIP
 
6277
  fi
 
6278
else
 
6279
  STRIP="$ac_cv_prog_STRIP"
 
6280
fi
 
6281
 
 
6282
test -z "$STRIP" && STRIP=:
 
6283
 
 
6284
 
 
6285
 
 
6286
 
 
6287
 
 
6288
 
 
6289
if test -n "$ac_tool_prefix"; then
 
6290
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6291
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6293
$as_echo_n "checking for $ac_word... " >&6; }
 
6294
if ${ac_cv_prog_RANLIB+:} false; then :
 
6295
  $as_echo_n "(cached) " >&6
 
6296
else
 
6297
  if test -n "$RANLIB"; then
 
6298
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6299
else
 
6300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6301
for as_dir in $PATH
 
6302
do
 
6303
  IFS=$as_save_IFS
 
6304
  test -z "$as_dir" && as_dir=.
 
6305
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6306
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6307
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6308
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6309
    break 2
 
6310
  fi
 
6311
done
 
6312
  done
 
6313
IFS=$as_save_IFS
 
6314
 
 
6315
fi
 
6316
fi
 
6317
RANLIB=$ac_cv_prog_RANLIB
 
6318
if test -n "$RANLIB"; then
 
6319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6320
$as_echo "$RANLIB" >&6; }
 
6321
else
 
6322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6323
$as_echo "no" >&6; }
 
6324
fi
 
6325
 
 
6326
 
 
6327
fi
 
6328
if test -z "$ac_cv_prog_RANLIB"; then
 
6329
  ac_ct_RANLIB=$RANLIB
 
6330
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6331
set dummy ranlib; ac_word=$2
 
6332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6333
$as_echo_n "checking for $ac_word... " >&6; }
 
6334
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6335
  $as_echo_n "(cached) " >&6
 
6336
else
 
6337
  if test -n "$ac_ct_RANLIB"; then
 
6338
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6339
else
 
6340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6341
for as_dir in $PATH
 
6342
do
 
6343
  IFS=$as_save_IFS
 
6344
  test -z "$as_dir" && as_dir=.
 
6345
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6346
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6347
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6348
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6349
    break 2
 
6350
  fi
 
6351
done
 
6352
  done
 
6353
IFS=$as_save_IFS
 
6354
 
 
6355
fi
 
6356
fi
 
6357
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6358
if test -n "$ac_ct_RANLIB"; then
 
6359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6360
$as_echo "$ac_ct_RANLIB" >&6; }
 
6361
else
 
6362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6363
$as_echo "no" >&6; }
 
6364
fi
 
6365
 
 
6366
  if test "x$ac_ct_RANLIB" = x; then
 
6367
    RANLIB=":"
 
6368
  else
 
6369
    case $cross_compiling:$ac_tool_warned in
 
6370
yes:)
 
6371
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6372
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6373
ac_tool_warned=yes ;;
 
6374
esac
 
6375
    RANLIB=$ac_ct_RANLIB
 
6376
  fi
 
6377
else
 
6378
  RANLIB="$ac_cv_prog_RANLIB"
 
6379
fi
 
6380
 
 
6381
test -z "$RANLIB" && RANLIB=:
 
6382
 
 
6383
 
 
6384
 
 
6385
 
 
6386
 
 
6387
 
 
6388
# Determine commands to create old-style static archives.
 
6389
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6390
old_postinstall_cmds='chmod 644 $oldlib'
 
6391
old_postuninstall_cmds=
 
6392
 
 
6393
if test -n "$RANLIB"; then
 
6394
  case $host_os in
 
6395
  openbsd*)
 
6396
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6397
    ;;
 
6398
  *)
 
6399
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6400
    ;;
 
6401
  esac
 
6402
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6403
fi
 
6404
 
 
6405
case $host_os in
 
6406
  darwin*)
 
6407
    lock_old_archive_extraction=yes ;;
 
6408
  *)
 
6409
    lock_old_archive_extraction=no ;;
 
6410
esac
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
 
 
6424
 
 
6425
 
 
6426
 
 
6427
 
 
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
 
 
6435
 
 
6436
 
 
6437
 
 
6438
 
 
6439
 
 
6440
 
 
6441
 
 
6442
 
 
6443
 
 
6444
 
 
6445
 
 
6446
 
 
6447
 
 
6448
 
 
6449
 
 
6450
# If no C compiler was specified, use CC.
 
6451
LTCC=${LTCC-"$CC"}
 
6452
 
 
6453
# If no C compiler flags were specified, use CFLAGS.
 
6454
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6455
 
 
6456
# Allow CC to be a program name with arguments.
 
6457
compiler=$CC
 
6458
 
 
6459
 
 
6460
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6462
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6463
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6464
  $as_echo_n "(cached) " >&6
 
6465
else
 
6466
 
 
6467
# These are sane defaults that work on at least a few old systems.
 
6468
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6469
 
 
6470
# Character class describing NM global symbol codes.
 
6471
symcode='[BCDEGRST]'
 
6472
 
 
6473
# Regexp to match symbols that can be accessed directly from C.
 
6474
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6475
 
 
6476
# Define system-specific variables.
 
6477
case $host_os in
 
6478
aix*)
 
6479
  symcode='[BCDT]'
 
6480
  ;;
 
6481
cygwin* | mingw* | pw32* | cegcc*)
 
6482
  symcode='[ABCDGISTW]'
 
6483
  ;;
 
6484
hpux*)
 
6485
  if test "$host_cpu" = ia64; then
 
6486
    symcode='[ABCDEGRST]'
 
6487
  fi
 
6488
  ;;
 
6489
irix* | nonstopux*)
 
6490
  symcode='[BCDEGRST]'
 
6491
  ;;
 
6492
osf*)
 
6493
  symcode='[BCDEGQRST]'
 
6494
  ;;
 
6495
solaris*)
 
6496
  symcode='[BDRT]'
 
6497
  ;;
 
6498
sco3.2v5*)
 
6499
  symcode='[DT]'
 
6500
  ;;
 
6501
sysv4.2uw2*)
 
6502
  symcode='[DT]'
 
6503
  ;;
 
6504
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6505
  symcode='[ABDT]'
 
6506
  ;;
 
6507
sysv4)
 
6508
  symcode='[DFNSTU]'
 
6509
  ;;
 
6510
esac
 
6511
 
 
6512
# If we're using GNU nm, then use its standard symbol codes.
 
6513
case `$NM -V 2>&1` in
 
6514
*GNU* | *'with BFD'*)
 
6515
  symcode='[ABCDGIRSTW]' ;;
 
6516
esac
 
6517
 
 
6518
# Transform an extracted symbol line into a proper C declaration.
 
6519
# Some systems (esp. on ia64) link data and code symbols differently,
 
6520
# so use this general approach.
 
6521
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6522
 
 
6523
# Transform an extracted symbol line into symbol name and symbol address
 
6524
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6525
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'"
 
6526
 
 
6527
# Handle CRLF in mingw tool chain
 
6528
opt_cr=
 
6529
case $build_os in
 
6530
mingw*)
 
6531
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6532
  ;;
 
6533
esac
 
6534
 
 
6535
# Try without a prefix underscore, then with it.
 
6536
for ac_symprfx in "" "_"; do
 
6537
 
 
6538
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6539
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6540
 
 
6541
  # Write the raw and C identifiers.
 
6542
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6543
    # Fake it for dumpbin and say T for any non-static function
 
6544
    # and D for any global variable.
 
6545
    # Also find C++ and __fastcall symbols from MSVC++,
 
6546
    # which start with @ or ?.
 
6547
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6548
"     {last_section=section; section=\$ 3};"\
 
6549
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6550
"     \$ 0!~/External *\|/{next};"\
 
6551
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6552
"     {if(hide[section]) next};"\
 
6553
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6554
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6555
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6556
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6557
"     ' prfx=^$ac_symprfx"
 
6558
  else
 
6559
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6560
  fi
 
6561
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6562
 
 
6563
  # Check to see that the pipe works correctly.
 
6564
  pipe_works=no
 
6565
 
 
6566
  rm -f conftest*
 
6567
  cat > conftest.$ac_ext <<_LT_EOF
 
6568
#ifdef __cplusplus
 
6569
extern "C" {
 
6570
#endif
 
6571
char nm_test_var;
 
6572
void nm_test_func(void);
 
6573
void nm_test_func(void){}
 
6574
#ifdef __cplusplus
 
6575
}
 
6576
#endif
 
6577
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6578
_LT_EOF
 
6579
 
 
6580
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6581
  (eval $ac_compile) 2>&5
 
6582
  ac_status=$?
 
6583
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6584
  test $ac_status = 0; }; then
 
6585
    # Now try to grab the symbols.
 
6586
    nlist=conftest.nm
 
6587
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6588
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6589
  ac_status=$?
 
6590
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6591
  test $ac_status = 0; } && test -s "$nlist"; then
 
6592
      # Try sorting and uniquifying the output.
 
6593
      if sort "$nlist" | uniq > "$nlist"T; then
 
6594
        mv -f "$nlist"T "$nlist"
 
6595
      else
 
6596
        rm -f "$nlist"T
 
6597
      fi
 
6598
 
 
6599
      # Make sure that we snagged all the symbols we need.
 
6600
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6601
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6602
          cat <<_LT_EOF > conftest.$ac_ext
 
6603
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6604
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6605
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6606
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6607
# define LT_DLSYM_CONST
 
6608
#elif defined(__osf__)
 
6609
/* This system does not cope well with relocations in const data.  */
 
6610
# define LT_DLSYM_CONST
 
6611
#else
 
6612
# define LT_DLSYM_CONST const
 
6613
#endif
 
6614
 
 
6615
#ifdef __cplusplus
 
6616
extern "C" {
 
6617
#endif
 
6618
 
 
6619
_LT_EOF
 
6620
          # Now generate the symbol file.
 
6621
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6622
 
 
6623
          cat <<_LT_EOF >> conftest.$ac_ext
 
6624
 
 
6625
/* The mapping between symbol names and symbols.  */
 
6626
LT_DLSYM_CONST struct {
 
6627
  const char *name;
 
6628
  void       *address;
 
6629
}
 
6630
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6631
{
 
6632
  { "@PROGRAM@", (void *) 0 },
 
6633
_LT_EOF
 
6634
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6635
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6636
  {0, (void *) 0}
 
6637
};
 
6638
 
 
6639
/* This works around a problem in FreeBSD linker */
 
6640
#ifdef FREEBSD_WORKAROUND
 
6641
static const void *lt_preloaded_setup() {
 
6642
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6643
}
 
6644
#endif
 
6645
 
 
6646
#ifdef __cplusplus
 
6647
}
 
6648
#endif
 
6649
_LT_EOF
 
6650
          # Now try linking the two files.
 
6651
          mv conftest.$ac_objext conftstm.$ac_objext
 
6652
          lt_globsym_save_LIBS=$LIBS
 
6653
          lt_globsym_save_CFLAGS=$CFLAGS
 
6654
          LIBS="conftstm.$ac_objext"
 
6655
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6656
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6657
  (eval $ac_link) 2>&5
 
6658
  ac_status=$?
 
6659
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6660
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6661
            pipe_works=yes
 
6662
          fi
 
6663
          LIBS=$lt_globsym_save_LIBS
 
6664
          CFLAGS=$lt_globsym_save_CFLAGS
 
6665
        else
 
6666
          echo "cannot find nm_test_func in $nlist" >&5
 
6667
        fi
 
6668
      else
 
6669
        echo "cannot find nm_test_var in $nlist" >&5
 
6670
      fi
 
6671
    else
 
6672
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6673
    fi
 
6674
  else
 
6675
    echo "$progname: failed program was:" >&5
 
6676
    cat conftest.$ac_ext >&5
 
6677
  fi
 
6678
  rm -rf conftest* conftst*
 
6679
 
 
6680
  # Do not use the global_symbol_pipe unless it works.
 
6681
  if test "$pipe_works" = yes; then
 
6682
    break
 
6683
  else
 
6684
    lt_cv_sys_global_symbol_pipe=
 
6685
  fi
 
6686
done
 
6687
 
 
6688
fi
 
6689
 
 
6690
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6691
  lt_cv_sys_global_symbol_to_cdecl=
 
6692
fi
 
6693
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6695
$as_echo "failed" >&6; }
 
6696
else
 
6697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6698
$as_echo "ok" >&6; }
 
6699
fi
 
6700
 
 
6701
# Response file support.
 
6702
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6703
  nm_file_list_spec='@'
 
6704
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6705
  nm_file_list_spec='@'
 
6706
fi
 
6707
 
 
6708
 
 
6709
 
 
6710
 
 
6711
 
 
6712
 
 
6713
 
 
6714
 
 
6715
 
 
6716
 
 
6717
 
 
6718
 
 
6719
 
 
6720
 
 
6721
 
 
6722
 
 
6723
 
 
6724
 
 
6725
 
 
6726
 
 
6727
 
 
6728
 
 
6729
 
 
6730
 
 
6731
 
 
6732
 
 
6733
 
 
6734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6735
$as_echo_n "checking for sysroot... " >&6; }
 
6736
 
 
6737
# Check whether --with-sysroot was given.
 
6738
if test "${with_sysroot+set}" = set; then :
 
6739
  withval=$with_sysroot;
 
6740
else
 
6741
  with_sysroot=no
 
6742
fi
 
6743
 
 
6744
 
 
6745
lt_sysroot=
 
6746
case ${with_sysroot} in #(
 
6747
 yes)
 
6748
   if test "$GCC" = yes; then
 
6749
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6750
   fi
 
6751
   ;; #(
 
6752
 /*)
 
6753
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6754
   ;; #(
 
6755
 no|'')
 
6756
   ;; #(
 
6757
 *)
 
6758
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6759
$as_echo "${with_sysroot}" >&6; }
 
6760
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6761
   ;;
 
6762
esac
 
6763
 
 
6764
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6765
$as_echo "${lt_sysroot:-no}" >&6; }
 
6766
 
 
6767
 
 
6768
 
 
6769
 
 
6770
 
 
6771
# Check whether --enable-libtool-lock was given.
 
6772
if test "${enable_libtool_lock+set}" = set; then :
 
6773
  enableval=$enable_libtool_lock;
 
6774
fi
 
6775
 
 
6776
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6777
 
 
6778
# Some flags need to be propagated to the compiler or linker for good
 
6779
# libtool support.
 
6780
case $host in
 
6781
ia64-*-hpux*)
 
6782
  # Find out which ABI we are using.
 
6783
  echo 'int i;' > conftest.$ac_ext
 
6784
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6785
  (eval $ac_compile) 2>&5
 
6786
  ac_status=$?
 
6787
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6788
  test $ac_status = 0; }; then
 
6789
    case `/usr/bin/file conftest.$ac_objext` in
 
6790
      *ELF-32*)
 
6791
        HPUX_IA64_MODE="32"
 
6792
        ;;
 
6793
      *ELF-64*)
 
6794
        HPUX_IA64_MODE="64"
 
6795
        ;;
 
6796
    esac
 
6797
  fi
 
6798
  rm -rf conftest*
 
6799
  ;;
 
6800
*-*-irix6*)
 
6801
  # Find out which ABI we are using.
 
6802
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6803
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6804
  (eval $ac_compile) 2>&5
 
6805
  ac_status=$?
 
6806
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6807
  test $ac_status = 0; }; then
 
6808
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6809
      case `/usr/bin/file conftest.$ac_objext` in
 
6810
        *32-bit*)
 
6811
          LD="${LD-ld} -melf32bsmip"
 
6812
          ;;
 
6813
        *N32*)
 
6814
          LD="${LD-ld} -melf32bmipn32"
 
6815
          ;;
 
6816
        *64-bit*)
 
6817
          LD="${LD-ld} -melf64bmip"
 
6818
        ;;
 
6819
      esac
 
6820
    else
 
6821
      case `/usr/bin/file conftest.$ac_objext` in
 
6822
        *32-bit*)
 
6823
          LD="${LD-ld} -32"
 
6824
          ;;
 
6825
        *N32*)
 
6826
          LD="${LD-ld} -n32"
 
6827
          ;;
 
6828
        *64-bit*)
 
6829
          LD="${LD-ld} -64"
 
6830
          ;;
 
6831
      esac
 
6832
    fi
 
6833
  fi
 
6834
  rm -rf conftest*
 
6835
  ;;
 
6836
 
 
6837
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6838
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6839
  # Find out which ABI we are using.
 
6840
  echo 'int i;' > conftest.$ac_ext
 
6841
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6842
  (eval $ac_compile) 2>&5
 
6843
  ac_status=$?
 
6844
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6845
  test $ac_status = 0; }; then
 
6846
    case `/usr/bin/file conftest.o` in
 
6847
      *32-bit*)
 
6848
        case $host in
 
6849
          x86_64-*kfreebsd*-gnu)
 
6850
            LD="${LD-ld} -m elf_i386_fbsd"
 
6851
            ;;
 
6852
          x86_64-*linux*)
 
6853
            LD="${LD-ld} -m elf_i386"
 
6854
            ;;
 
6855
          ppc64-*linux*|powerpc64-*linux*)
 
6856
            LD="${LD-ld} -m elf32ppclinux"
 
6857
            ;;
 
6858
          s390x-*linux*)
 
6859
            LD="${LD-ld} -m elf_s390"
 
6860
            ;;
 
6861
          sparc64-*linux*)
 
6862
            LD="${LD-ld} -m elf32_sparc"
 
6863
            ;;
 
6864
        esac
 
6865
        ;;
 
6866
      *64-bit*)
 
6867
        case $host in
 
6868
          x86_64-*kfreebsd*-gnu)
 
6869
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6870
            ;;
 
6871
          x86_64-*linux*)
 
6872
            LD="${LD-ld} -m elf_x86_64"
 
6873
            ;;
 
6874
          ppc*-*linux*|powerpc*-*linux*)
 
6875
            LD="${LD-ld} -m elf64ppc"
 
6876
            ;;
 
6877
          s390*-*linux*|s390*-*tpf*)
 
6878
            LD="${LD-ld} -m elf64_s390"
 
6879
            ;;
 
6880
          sparc*-*linux*)
 
6881
            LD="${LD-ld} -m elf64_sparc"
 
6882
            ;;
 
6883
        esac
 
6884
        ;;
 
6885
    esac
 
6886
  fi
 
6887
  rm -rf conftest*
 
6888
  ;;
 
6889
 
 
6890
*-*-sco3.2v5*)
 
6891
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6892
  SAVE_CFLAGS="$CFLAGS"
 
6893
  CFLAGS="$CFLAGS -belf"
 
6894
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6895
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6896
if ${lt_cv_cc_needs_belf+:} false; then :
 
6897
  $as_echo_n "(cached) " >&6
 
6898
else
 
6899
  ac_ext=c
 
6900
ac_cpp='$CPP $CPPFLAGS'
 
6901
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6902
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6903
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6904
 
 
6905
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6906
/* end confdefs.h.  */
 
6907
 
 
6908
int
 
6909
main ()
 
6910
{
 
6911
 
 
6912
  ;
 
6913
  return 0;
 
6914
}
 
6915
_ACEOF
 
6916
if ac_fn_c_try_link "$LINENO"; then :
 
6917
  lt_cv_cc_needs_belf=yes
 
6918
else
 
6919
  lt_cv_cc_needs_belf=no
 
6920
fi
 
6921
rm -f core conftest.err conftest.$ac_objext \
 
6922
    conftest$ac_exeext conftest.$ac_ext
 
6923
     ac_ext=c
 
6924
ac_cpp='$CPP $CPPFLAGS'
 
6925
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6926
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6927
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6928
 
 
6929
fi
 
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6931
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6932
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6933
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6934
    CFLAGS="$SAVE_CFLAGS"
 
6935
  fi
 
6936
  ;;
 
6937
sparc*-*solaris*)
 
6938
  # Find out which ABI we are using.
 
6939
  echo 'int i;' > conftest.$ac_ext
 
6940
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6941
  (eval $ac_compile) 2>&5
 
6942
  ac_status=$?
 
6943
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6944
  test $ac_status = 0; }; then
 
6945
    case `/usr/bin/file conftest.o` in
 
6946
    *64-bit*)
 
6947
      case $lt_cv_prog_gnu_ld in
 
6948
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6949
      *)
 
6950
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6951
          LD="${LD-ld} -64"
 
6952
        fi
 
6953
        ;;
 
6954
      esac
 
6955
      ;;
 
6956
    esac
 
6957
  fi
 
6958
  rm -rf conftest*
 
6959
  ;;
 
6960
esac
 
6961
 
 
6962
need_locks="$enable_libtool_lock"
 
6963
 
 
6964
if test -n "$ac_tool_prefix"; then
 
6965
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6966
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6968
$as_echo_n "checking for $ac_word... " >&6; }
 
6969
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6970
  $as_echo_n "(cached) " >&6
 
6971
else
 
6972
  if test -n "$MANIFEST_TOOL"; then
 
6973
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6974
else
 
6975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6976
for as_dir in $PATH
 
6977
do
 
6978
  IFS=$as_save_IFS
 
6979
  test -z "$as_dir" && as_dir=.
 
6980
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6981
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6982
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6983
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6984
    break 2
 
6985
  fi
 
6986
done
 
6987
  done
 
6988
IFS=$as_save_IFS
 
6989
 
 
6990
fi
 
6991
fi
 
6992
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6993
if test -n "$MANIFEST_TOOL"; then
 
6994
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6995
$as_echo "$MANIFEST_TOOL" >&6; }
 
6996
else
 
6997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6998
$as_echo "no" >&6; }
 
6999
fi
 
7000
 
 
7001
 
 
7002
fi
 
7003
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7004
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7005
  # Extract the first word of "mt", so it can be a program name with args.
 
7006
set dummy mt; ac_word=$2
 
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7008
$as_echo_n "checking for $ac_word... " >&6; }
 
7009
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7010
  $as_echo_n "(cached) " >&6
 
7011
else
 
7012
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7013
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7014
else
 
7015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7016
for as_dir in $PATH
 
7017
do
 
7018
  IFS=$as_save_IFS
 
7019
  test -z "$as_dir" && as_dir=.
 
7020
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7021
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7022
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7023
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7024
    break 2
 
7025
  fi
 
7026
done
 
7027
  done
 
7028
IFS=$as_save_IFS
 
7029
 
 
7030
fi
 
7031
fi
 
7032
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7033
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7035
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7036
else
 
7037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7038
$as_echo "no" >&6; }
 
7039
fi
 
7040
 
 
7041
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7042
    MANIFEST_TOOL=":"
 
7043
  else
 
7044
    case $cross_compiling:$ac_tool_warned in
 
7045
yes:)
 
7046
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7047
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7048
ac_tool_warned=yes ;;
 
7049
esac
 
7050
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7051
  fi
 
7052
else
 
7053
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7054
fi
 
7055
 
 
7056
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7058
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7059
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7060
  $as_echo_n "(cached) " >&6
 
7061
else
 
7062
  lt_cv_path_mainfest_tool=no
 
7063
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7064
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7065
  cat conftest.err >&5
 
7066
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7067
    lt_cv_path_mainfest_tool=yes
 
7068
  fi
 
7069
  rm -f conftest*
 
7070
fi
 
7071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7072
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7073
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7074
  MANIFEST_TOOL=:
 
7075
fi
 
7076
 
 
7077
 
 
7078
 
 
7079
 
 
7080
 
 
7081
 
 
7082
  case $host_os in
 
7083
    rhapsody* | darwin*)
 
7084
    if test -n "$ac_tool_prefix"; then
 
7085
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7086
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7088
$as_echo_n "checking for $ac_word... " >&6; }
 
7089
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7090
  $as_echo_n "(cached) " >&6
 
7091
else
 
7092
  if test -n "$DSYMUTIL"; then
 
7093
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7094
else
 
7095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7096
for as_dir in $PATH
 
7097
do
 
7098
  IFS=$as_save_IFS
 
7099
  test -z "$as_dir" && as_dir=.
 
7100
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7102
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7103
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7104
    break 2
 
7105
  fi
 
7106
done
 
7107
  done
 
7108
IFS=$as_save_IFS
 
7109
 
 
7110
fi
 
7111
fi
 
7112
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7113
if test -n "$DSYMUTIL"; then
 
7114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7115
$as_echo "$DSYMUTIL" >&6; }
 
7116
else
 
7117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7118
$as_echo "no" >&6; }
 
7119
fi
 
7120
 
 
7121
 
 
7122
fi
 
7123
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7124
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7125
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7126
set dummy dsymutil; ac_word=$2
 
7127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7128
$as_echo_n "checking for $ac_word... " >&6; }
 
7129
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7130
  $as_echo_n "(cached) " >&6
 
7131
else
 
7132
  if test -n "$ac_ct_DSYMUTIL"; then
 
7133
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7134
else
 
7135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7136
for as_dir in $PATH
 
7137
do
 
7138
  IFS=$as_save_IFS
 
7139
  test -z "$as_dir" && as_dir=.
 
7140
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7141
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7142
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7143
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7144
    break 2
 
7145
  fi
 
7146
done
 
7147
  done
 
7148
IFS=$as_save_IFS
 
7149
 
 
7150
fi
 
7151
fi
 
7152
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7153
if test -n "$ac_ct_DSYMUTIL"; then
 
7154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7155
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7156
else
 
7157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7158
$as_echo "no" >&6; }
 
7159
fi
 
7160
 
 
7161
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7162
    DSYMUTIL=":"
 
7163
  else
 
7164
    case $cross_compiling:$ac_tool_warned in
 
7165
yes:)
 
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7167
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7168
ac_tool_warned=yes ;;
 
7169
esac
 
7170
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7171
  fi
 
7172
else
 
7173
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7174
fi
 
7175
 
 
7176
    if test -n "$ac_tool_prefix"; then
 
7177
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7178
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7180
$as_echo_n "checking for $ac_word... " >&6; }
 
7181
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7182
  $as_echo_n "(cached) " >&6
 
7183
else
 
7184
  if test -n "$NMEDIT"; then
 
7185
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7186
else
 
7187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7188
for as_dir in $PATH
 
7189
do
 
7190
  IFS=$as_save_IFS
 
7191
  test -z "$as_dir" && as_dir=.
 
7192
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7193
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7194
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7195
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7196
    break 2
 
7197
  fi
 
7198
done
 
7199
  done
 
7200
IFS=$as_save_IFS
 
7201
 
 
7202
fi
 
7203
fi
 
7204
NMEDIT=$ac_cv_prog_NMEDIT
 
7205
if test -n "$NMEDIT"; then
 
7206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7207
$as_echo "$NMEDIT" >&6; }
 
7208
else
 
7209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7210
$as_echo "no" >&6; }
 
7211
fi
 
7212
 
 
7213
 
 
7214
fi
 
7215
if test -z "$ac_cv_prog_NMEDIT"; then
 
7216
  ac_ct_NMEDIT=$NMEDIT
 
7217
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7218
set dummy nmedit; ac_word=$2
 
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7220
$as_echo_n "checking for $ac_word... " >&6; }
 
7221
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7222
  $as_echo_n "(cached) " >&6
 
7223
else
 
7224
  if test -n "$ac_ct_NMEDIT"; then
 
7225
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7226
else
 
7227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7228
for as_dir in $PATH
 
7229
do
 
7230
  IFS=$as_save_IFS
 
7231
  test -z "$as_dir" && as_dir=.
 
7232
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7233
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7234
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7235
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7236
    break 2
 
7237
  fi
 
7238
done
 
7239
  done
 
7240
IFS=$as_save_IFS
 
7241
 
 
7242
fi
 
7243
fi
 
7244
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7245
if test -n "$ac_ct_NMEDIT"; then
 
7246
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7247
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7248
else
 
7249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7250
$as_echo "no" >&6; }
 
7251
fi
 
7252
 
 
7253
  if test "x$ac_ct_NMEDIT" = x; then
 
7254
    NMEDIT=":"
 
7255
  else
 
7256
    case $cross_compiling:$ac_tool_warned in
 
7257
yes:)
 
7258
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7259
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7260
ac_tool_warned=yes ;;
 
7261
esac
 
7262
    NMEDIT=$ac_ct_NMEDIT
 
7263
  fi
 
7264
else
 
7265
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7266
fi
 
7267
 
 
7268
    if test -n "$ac_tool_prefix"; then
 
7269
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7270
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7272
$as_echo_n "checking for $ac_word... " >&6; }
 
7273
if ${ac_cv_prog_LIPO+:} false; then :
 
7274
  $as_echo_n "(cached) " >&6
 
7275
else
 
7276
  if test -n "$LIPO"; then
 
7277
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7278
else
 
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7280
for as_dir in $PATH
 
7281
do
 
7282
  IFS=$as_save_IFS
 
7283
  test -z "$as_dir" && as_dir=.
 
7284
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7286
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7287
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7288
    break 2
 
7289
  fi
 
7290
done
 
7291
  done
 
7292
IFS=$as_save_IFS
 
7293
 
 
7294
fi
 
7295
fi
 
7296
LIPO=$ac_cv_prog_LIPO
 
7297
if test -n "$LIPO"; then
 
7298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7299
$as_echo "$LIPO" >&6; }
 
7300
else
 
7301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7302
$as_echo "no" >&6; }
 
7303
fi
 
7304
 
 
7305
 
 
7306
fi
 
7307
if test -z "$ac_cv_prog_LIPO"; then
 
7308
  ac_ct_LIPO=$LIPO
 
7309
  # Extract the first word of "lipo", so it can be a program name with args.
 
7310
set dummy lipo; ac_word=$2
 
7311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7312
$as_echo_n "checking for $ac_word... " >&6; }
 
7313
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7314
  $as_echo_n "(cached) " >&6
 
7315
else
 
7316
  if test -n "$ac_ct_LIPO"; then
 
7317
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7318
else
 
7319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7320
for as_dir in $PATH
 
7321
do
 
7322
  IFS=$as_save_IFS
 
7323
  test -z "$as_dir" && as_dir=.
 
7324
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7326
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7327
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7328
    break 2
 
7329
  fi
 
7330
done
 
7331
  done
 
7332
IFS=$as_save_IFS
 
7333
 
 
7334
fi
 
7335
fi
 
7336
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7337
if test -n "$ac_ct_LIPO"; then
 
7338
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7339
$as_echo "$ac_ct_LIPO" >&6; }
 
7340
else
 
7341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7342
$as_echo "no" >&6; }
 
7343
fi
 
7344
 
 
7345
  if test "x$ac_ct_LIPO" = x; then
 
7346
    LIPO=":"
 
7347
  else
 
7348
    case $cross_compiling:$ac_tool_warned in
 
7349
yes:)
 
7350
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7351
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7352
ac_tool_warned=yes ;;
 
7353
esac
 
7354
    LIPO=$ac_ct_LIPO
 
7355
  fi
 
7356
else
 
7357
  LIPO="$ac_cv_prog_LIPO"
 
7358
fi
 
7359
 
 
7360
    if test -n "$ac_tool_prefix"; then
 
7361
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7362
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7364
$as_echo_n "checking for $ac_word... " >&6; }
 
7365
if ${ac_cv_prog_OTOOL+:} false; then :
 
7366
  $as_echo_n "(cached) " >&6
 
7367
else
 
7368
  if test -n "$OTOOL"; then
 
7369
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7370
else
 
7371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7372
for as_dir in $PATH
 
7373
do
 
7374
  IFS=$as_save_IFS
 
7375
  test -z "$as_dir" && as_dir=.
 
7376
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7378
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7379
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7380
    break 2
 
7381
  fi
 
7382
done
 
7383
  done
 
7384
IFS=$as_save_IFS
 
7385
 
 
7386
fi
 
7387
fi
 
7388
OTOOL=$ac_cv_prog_OTOOL
 
7389
if test -n "$OTOOL"; then
 
7390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7391
$as_echo "$OTOOL" >&6; }
 
7392
else
 
7393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7394
$as_echo "no" >&6; }
 
7395
fi
 
7396
 
 
7397
 
 
7398
fi
 
7399
if test -z "$ac_cv_prog_OTOOL"; then
 
7400
  ac_ct_OTOOL=$OTOOL
 
7401
  # Extract the first word of "otool", so it can be a program name with args.
 
7402
set dummy otool; ac_word=$2
 
7403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7404
$as_echo_n "checking for $ac_word... " >&6; }
 
7405
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7406
  $as_echo_n "(cached) " >&6
 
7407
else
 
7408
  if test -n "$ac_ct_OTOOL"; then
 
7409
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7410
else
 
7411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7412
for as_dir in $PATH
 
7413
do
 
7414
  IFS=$as_save_IFS
 
7415
  test -z "$as_dir" && as_dir=.
 
7416
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7417
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7418
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7419
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7420
    break 2
 
7421
  fi
 
7422
done
 
7423
  done
 
7424
IFS=$as_save_IFS
 
7425
 
 
7426
fi
 
7427
fi
 
7428
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7429
if test -n "$ac_ct_OTOOL"; then
 
7430
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7431
$as_echo "$ac_ct_OTOOL" >&6; }
 
7432
else
 
7433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7434
$as_echo "no" >&6; }
 
7435
fi
 
7436
 
 
7437
  if test "x$ac_ct_OTOOL" = x; then
 
7438
    OTOOL=":"
 
7439
  else
 
7440
    case $cross_compiling:$ac_tool_warned in
 
7441
yes:)
 
7442
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7443
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7444
ac_tool_warned=yes ;;
 
7445
esac
 
7446
    OTOOL=$ac_ct_OTOOL
 
7447
  fi
 
7448
else
 
7449
  OTOOL="$ac_cv_prog_OTOOL"
 
7450
fi
 
7451
 
 
7452
    if test -n "$ac_tool_prefix"; then
 
7453
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7454
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7456
$as_echo_n "checking for $ac_word... " >&6; }
 
7457
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7458
  $as_echo_n "(cached) " >&6
 
7459
else
 
7460
  if test -n "$OTOOL64"; then
 
7461
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7462
else
 
7463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7464
for as_dir in $PATH
 
7465
do
 
7466
  IFS=$as_save_IFS
 
7467
  test -z "$as_dir" && as_dir=.
 
7468
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7469
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7470
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7471
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7472
    break 2
 
7473
  fi
 
7474
done
 
7475
  done
 
7476
IFS=$as_save_IFS
 
7477
 
 
7478
fi
 
7479
fi
 
7480
OTOOL64=$ac_cv_prog_OTOOL64
 
7481
if test -n "$OTOOL64"; then
 
7482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7483
$as_echo "$OTOOL64" >&6; }
 
7484
else
 
7485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7486
$as_echo "no" >&6; }
 
7487
fi
 
7488
 
 
7489
 
 
7490
fi
 
7491
if test -z "$ac_cv_prog_OTOOL64"; then
 
7492
  ac_ct_OTOOL64=$OTOOL64
 
7493
  # Extract the first word of "otool64", so it can be a program name with args.
 
7494
set dummy otool64; ac_word=$2
 
7495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7496
$as_echo_n "checking for $ac_word... " >&6; }
 
7497
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7498
  $as_echo_n "(cached) " >&6
 
7499
else
 
7500
  if test -n "$ac_ct_OTOOL64"; then
 
7501
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7502
else
 
7503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7504
for as_dir in $PATH
 
7505
do
 
7506
  IFS=$as_save_IFS
 
7507
  test -z "$as_dir" && as_dir=.
 
7508
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7509
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7510
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7511
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7512
    break 2
 
7513
  fi
 
7514
done
 
7515
  done
 
7516
IFS=$as_save_IFS
 
7517
 
 
7518
fi
 
7519
fi
 
7520
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7521
if test -n "$ac_ct_OTOOL64"; then
 
7522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7523
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7524
else
 
7525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7526
$as_echo "no" >&6; }
 
7527
fi
 
7528
 
 
7529
  if test "x$ac_ct_OTOOL64" = x; then
 
7530
    OTOOL64=":"
 
7531
  else
 
7532
    case $cross_compiling:$ac_tool_warned in
 
7533
yes:)
 
7534
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7535
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7536
ac_tool_warned=yes ;;
 
7537
esac
 
7538
    OTOOL64=$ac_ct_OTOOL64
 
7539
  fi
 
7540
else
 
7541
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7542
fi
 
7543
 
 
7544
 
 
7545
 
 
7546
 
 
7547
 
 
7548
 
 
7549
 
 
7550
 
 
7551
 
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
 
 
7567
 
 
7568
 
 
7569
 
 
7570
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7571
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7572
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7573
  $as_echo_n "(cached) " >&6
 
7574
else
 
7575
  lt_cv_apple_cc_single_mod=no
 
7576
      if test -z "${LT_MULTI_MODULE}"; then
 
7577
        # By default we will add the -single_module flag. You can override
 
7578
        # by either setting the environment variable LT_MULTI_MODULE
 
7579
        # non-empty at configure time, or by adding -multi_module to the
 
7580
        # link flags.
 
7581
        rm -rf libconftest.dylib*
 
7582
        echo "int foo(void){return 1;}" > conftest.c
 
7583
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7584
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7585
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7586
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7587
        _lt_result=$?
 
7588
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7589
          lt_cv_apple_cc_single_mod=yes
 
7590
        else
 
7591
          cat conftest.err >&5
 
7592
        fi
 
7593
        rm -rf libconftest.dylib*
 
7594
        rm -f conftest.*
 
7595
      fi
 
7596
fi
 
7597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7598
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7599
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7600
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7601
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7602
  $as_echo_n "(cached) " >&6
 
7603
else
 
7604
  lt_cv_ld_exported_symbols_list=no
 
7605
      save_LDFLAGS=$LDFLAGS
 
7606
      echo "_main" > conftest.sym
 
7607
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7608
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7609
/* end confdefs.h.  */
 
7610
 
 
7611
int
 
7612
main ()
 
7613
{
 
7614
 
 
7615
  ;
 
7616
  return 0;
 
7617
}
 
7618
_ACEOF
 
7619
if ac_fn_c_try_link "$LINENO"; then :
 
7620
  lt_cv_ld_exported_symbols_list=yes
 
7621
else
 
7622
  lt_cv_ld_exported_symbols_list=no
 
7623
fi
 
7624
rm -f core conftest.err conftest.$ac_objext \
 
7625
    conftest$ac_exeext conftest.$ac_ext
 
7626
        LDFLAGS="$save_LDFLAGS"
 
7627
 
 
7628
fi
 
7629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7630
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7631
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7632
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7633
if ${lt_cv_ld_force_load+:} false; then :
 
7634
  $as_echo_n "(cached) " >&6
 
7635
else
 
7636
  lt_cv_ld_force_load=no
 
7637
      cat > conftest.c << _LT_EOF
 
7638
int forced_loaded() { return 2;}
 
7639
_LT_EOF
 
7640
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7641
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7642
      echo "$AR cru libconftest.a conftest.o" >&5
 
7643
      $AR cru libconftest.a conftest.o 2>&5
 
7644
      echo "$RANLIB libconftest.a" >&5
 
7645
      $RANLIB libconftest.a 2>&5
 
7646
      cat > conftest.c << _LT_EOF
 
7647
int main() { return 0;}
 
7648
_LT_EOF
 
7649
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7650
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7651
      _lt_result=$?
 
7652
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
7653
        lt_cv_ld_force_load=yes
 
7654
      else
 
7655
        cat conftest.err >&5
 
7656
      fi
 
7657
        rm -f conftest.err libconftest.a conftest conftest.c
 
7658
        rm -rf conftest.dSYM
 
7659
 
 
7660
fi
 
7661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7662
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7663
    case $host_os in
 
7664
    rhapsody* | darwin1.[012])
 
7665
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7666
    darwin1.*)
 
7667
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7668
    darwin*) # darwin 5.x on
 
7669
      # if running on 10.5 or later, the deployment target defaults
 
7670
      # to the OS version, if on x86, and 10.4, the deployment
 
7671
      # target defaults to 10.4. Don't you love it?
 
7672
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7673
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7674
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7675
        10.[012]*)
 
7676
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7677
        10.*)
 
7678
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7679
      esac
 
7680
    ;;
 
7681
  esac
 
7682
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7683
      _lt_dar_single_mod='$single_module'
 
7684
    fi
 
7685
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7686
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7687
    else
 
7688
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7689
    fi
 
7690
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7691
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7692
    else
 
7693
      _lt_dsymutil=
 
7694
    fi
 
7695
    ;;
 
7696
  esac
 
7697
 
 
7698
ac_ext=c
 
7699
ac_cpp='$CPP $CPPFLAGS'
 
7700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7704
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7705
# On Suns, sometimes $CPP names a directory.
 
7706
if test -n "$CPP" && test -d "$CPP"; then
 
7707
  CPP=
 
7708
fi
 
7709
if test -z "$CPP"; then
 
7710
  if ${ac_cv_prog_CPP+:} false; then :
 
7711
  $as_echo_n "(cached) " >&6
 
7712
else
 
7713
      # Double quotes because CPP needs to be expanded
 
7714
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7715
    do
 
7716
      ac_preproc_ok=false
 
7717
for ac_c_preproc_warn_flag in '' yes
 
7718
do
 
7719
  # Use a header file that comes with gcc, so configuring glibc
 
7720
  # with a fresh cross-compiler works.
 
7721
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7722
  # <limits.h> exists even on freestanding compilers.
 
7723
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7724
  # not just through cpp. "Syntax error" is here to catch this case.
 
7725
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7726
/* end confdefs.h.  */
 
7727
#ifdef __STDC__
 
7728
# include <limits.h>
 
7729
#else
 
7730
# include <assert.h>
 
7731
#endif
 
7732
                     Syntax error
 
7733
_ACEOF
 
7734
if ac_fn_c_try_cpp "$LINENO"; then :
 
7735
 
 
7736
else
 
7737
  # Broken: fails on valid input.
 
7738
continue
 
7739
fi
 
7740
rm -f conftest.err conftest.i conftest.$ac_ext
 
7741
 
 
7742
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7743
  # can be detected and how.
 
7744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7745
/* end confdefs.h.  */
 
7746
#include <ac_nonexistent.h>
 
7747
_ACEOF
 
7748
if ac_fn_c_try_cpp "$LINENO"; then :
 
7749
  # Broken: success on invalid input.
 
7750
continue
 
7751
else
 
7752
  # Passes both tests.
 
7753
ac_preproc_ok=:
 
7754
break
 
7755
fi
 
7756
rm -f conftest.err conftest.i conftest.$ac_ext
 
7757
 
 
7758
done
 
7759
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7760
rm -f conftest.i conftest.err conftest.$ac_ext
 
7761
if $ac_preproc_ok; then :
 
7762
  break
 
7763
fi
 
7764
 
 
7765
    done
 
7766
    ac_cv_prog_CPP=$CPP
 
7767
 
 
7768
fi
 
7769
  CPP=$ac_cv_prog_CPP
 
7770
else
 
7771
  ac_cv_prog_CPP=$CPP
 
7772
fi
 
7773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7774
$as_echo "$CPP" >&6; }
 
7775
ac_preproc_ok=false
 
7776
for ac_c_preproc_warn_flag in '' yes
 
7777
do
 
7778
  # Use a header file that comes with gcc, so configuring glibc
 
7779
  # with a fresh cross-compiler works.
 
7780
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7781
  # <limits.h> exists even on freestanding compilers.
 
7782
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7783
  # not just through cpp. "Syntax error" is here to catch this case.
 
7784
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7785
/* end confdefs.h.  */
 
7786
#ifdef __STDC__
 
7787
# include <limits.h>
 
7788
#else
 
7789
# include <assert.h>
 
7790
#endif
 
7791
                     Syntax error
 
7792
_ACEOF
 
7793
if ac_fn_c_try_cpp "$LINENO"; then :
 
7794
 
 
7795
else
 
7796
  # Broken: fails on valid input.
 
7797
continue
 
7798
fi
 
7799
rm -f conftest.err conftest.i conftest.$ac_ext
 
7800
 
 
7801
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7802
  # can be detected and how.
 
7803
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7804
/* end confdefs.h.  */
 
7805
#include <ac_nonexistent.h>
 
7806
_ACEOF
 
7807
if ac_fn_c_try_cpp "$LINENO"; then :
 
7808
  # Broken: success on invalid input.
 
7809
continue
 
7810
else
 
7811
  # Passes both tests.
 
7812
ac_preproc_ok=:
 
7813
break
 
7814
fi
 
7815
rm -f conftest.err conftest.i conftest.$ac_ext
 
7816
 
 
7817
done
 
7818
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7819
rm -f conftest.i conftest.err conftest.$ac_ext
 
7820
if $ac_preproc_ok; then :
 
7821
 
 
7822
else
 
7823
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7824
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7825
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7826
See \`config.log' for more details" "$LINENO" 5; }
 
7827
fi
 
7828
 
 
7829
ac_ext=c
 
7830
ac_cpp='$CPP $CPPFLAGS'
 
7831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7834
 
 
7835
 
 
7836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7837
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7838
if ${ac_cv_header_stdc+:} false; then :
 
7839
  $as_echo_n "(cached) " >&6
 
7840
else
 
7841
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7842
/* end confdefs.h.  */
 
7843
#include <stdlib.h>
 
7844
#include <stdarg.h>
 
7845
#include <string.h>
 
7846
#include <float.h>
 
7847
 
 
7848
int
 
7849
main ()
 
7850
{
 
7851
 
 
7852
  ;
 
7853
  return 0;
 
7854
}
 
7855
_ACEOF
 
7856
if ac_fn_c_try_compile "$LINENO"; then :
 
7857
  ac_cv_header_stdc=yes
 
7858
else
 
7859
  ac_cv_header_stdc=no
 
7860
fi
 
7861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7862
 
 
7863
if test $ac_cv_header_stdc = yes; then
 
7864
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7865
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7866
/* end confdefs.h.  */
 
7867
#include <string.h>
 
7868
 
 
7869
_ACEOF
 
7870
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7871
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7872
 
 
7873
else
 
7874
  ac_cv_header_stdc=no
 
7875
fi
 
7876
rm -f conftest*
 
7877
 
 
7878
fi
 
7879
 
 
7880
if test $ac_cv_header_stdc = yes; then
 
7881
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7883
/* end confdefs.h.  */
 
7884
#include <stdlib.h>
 
7885
 
 
7886
_ACEOF
 
7887
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7888
  $EGREP "free" >/dev/null 2>&1; then :
 
7889
 
 
7890
else
 
7891
  ac_cv_header_stdc=no
 
7892
fi
 
7893
rm -f conftest*
 
7894
 
 
7895
fi
 
7896
 
 
7897
if test $ac_cv_header_stdc = yes; then
 
7898
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7899
  if test "$cross_compiling" = yes; then :
 
7900
  :
 
7901
else
 
7902
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7903
/* end confdefs.h.  */
 
7904
#include <ctype.h>
 
7905
#include <stdlib.h>
 
7906
#if ((' ' & 0x0FF) == 0x020)
 
7907
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7908
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7909
#else
 
7910
# define ISLOWER(c) \
 
7911
                   (('a' <= (c) && (c) <= 'i') \
 
7912
                     || ('j' <= (c) && (c) <= 'r') \
 
7913
                     || ('s' <= (c) && (c) <= 'z'))
 
7914
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7915
#endif
 
7916
 
 
7917
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7918
int
 
7919
main ()
 
7920
{
 
7921
  int i;
 
7922
  for (i = 0; i < 256; i++)
 
7923
    if (XOR (islower (i), ISLOWER (i))
 
7924
        || toupper (i) != TOUPPER (i))
 
7925
      return 2;
 
7926
  return 0;
 
7927
}
 
7928
_ACEOF
 
7929
if ac_fn_c_try_run "$LINENO"; then :
 
7930
 
 
7931
else
 
7932
  ac_cv_header_stdc=no
 
7933
fi
 
7934
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7935
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7936
fi
 
7937
 
 
7938
fi
 
7939
fi
 
7940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7941
$as_echo "$ac_cv_header_stdc" >&6; }
 
7942
if test $ac_cv_header_stdc = yes; then
 
7943
 
 
7944
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7945
 
 
7946
fi
 
7947
 
 
7948
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7949
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7950
                  inttypes.h stdint.h unistd.h
 
7951
do :
 
7952
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7953
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7954
"
 
7955
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7956
  cat >>confdefs.h <<_ACEOF
 
7957
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7958
_ACEOF
 
7959
 
 
7960
fi
 
7961
 
 
7962
done
 
7963
 
 
7964
 
 
7965
for ac_header in dlfcn.h
 
7966
do :
 
7967
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7968
"
 
7969
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7970
  cat >>confdefs.h <<_ACEOF
 
7971
#define HAVE_DLFCN_H 1
 
7972
_ACEOF
 
7973
 
 
7974
fi
 
7975
 
 
7976
done
 
7977
 
 
7978
 
 
7979
 
 
7980
 
 
7981
 
 
7982
# Set options
 
7983
 
 
7984
 
 
7985
 
 
7986
        enable_dlopen=no
 
7987
 
 
7988
 
 
7989
  enable_win32_dll=no
 
7990
 
 
7991
 
 
7992
            # Check whether --enable-shared was given.
 
7993
if test "${enable_shared+set}" = set; then :
 
7994
  enableval=$enable_shared; p=${PACKAGE-default}
 
7995
    case $enableval in
 
7996
    yes) enable_shared=yes ;;
 
7997
    no) enable_shared=no ;;
 
7998
    *)
 
7999
      enable_shared=no
 
8000
      # Look at the argument we got.  We use all the common list separators.
 
8001
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8002
      for pkg in $enableval; do
 
8003
        IFS="$lt_save_ifs"
 
8004
        if test "X$pkg" = "X$p"; then
 
8005
          enable_shared=yes
 
8006
        fi
 
8007
      done
 
8008
      IFS="$lt_save_ifs"
 
8009
      ;;
 
8010
    esac
 
8011
else
 
8012
  enable_shared=yes
 
8013
fi
 
8014
 
 
8015
 
 
8016
 
 
8017
 
 
8018
 
 
8019
 
 
8020
 
 
8021
 
 
8022
 
 
8023
 
 
8024
 
 
8025
# Check whether --with-pic was given.
 
8026
if test "${with_pic+set}" = set; then :
 
8027
  withval=$with_pic; pic_mode="$withval"
 
8028
else
 
8029
  pic_mode=default
 
8030
fi
 
8031
 
 
8032
 
 
8033
test -z "$pic_mode" && pic_mode=default
 
8034
 
 
8035
 
 
8036
 
 
8037
 
 
8038
 
 
8039
 
 
8040
 
 
8041
  # Check whether --enable-fast-install was given.
 
8042
if test "${enable_fast_install+set}" = set; then :
 
8043
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8044
    case $enableval in
 
8045
    yes) enable_fast_install=yes ;;
 
8046
    no) enable_fast_install=no ;;
 
8047
    *)
 
8048
      enable_fast_install=no
 
8049
      # Look at the argument we got.  We use all the common list separators.
 
8050
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8051
      for pkg in $enableval; do
 
8052
        IFS="$lt_save_ifs"
 
8053
        if test "X$pkg" = "X$p"; then
 
8054
          enable_fast_install=yes
 
8055
        fi
 
8056
      done
 
8057
      IFS="$lt_save_ifs"
 
8058
      ;;
 
8059
    esac
 
8060
else
 
8061
  enable_fast_install=yes
 
8062
fi
 
8063
 
 
8064
 
 
8065
 
 
8066
 
 
8067
 
 
8068
 
 
8069
 
 
8070
 
 
8071
 
 
8072
 
 
8073
 
 
8074
# This can be used to rebuild libtool when needed
 
8075
LIBTOOL_DEPS="$ltmain"
 
8076
 
 
8077
# Always use our own libtool.
 
8078
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8079
 
 
8080
 
 
8081
 
 
8082
 
 
8083
 
 
8084
 
 
8085
 
 
8086
 
 
8087
 
 
8088
 
 
8089
 
 
8090
 
 
8091
 
 
8092
 
 
8093
 
 
8094
 
 
8095
 
 
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
 
 
8101
 
 
8102
 
 
8103
 
 
8104
 
 
8105
test -z "$LN_S" && LN_S="ln -s"
 
8106
 
 
8107
 
 
8108
 
 
8109
 
 
8110
 
 
8111
 
 
8112
 
 
8113
 
 
8114
 
 
8115
 
 
8116
 
 
8117
 
 
8118
 
 
8119
 
 
8120
if test -n "${ZSH_VERSION+set}" ; then
 
8121
   setopt NO_GLOB_SUBST
 
8122
fi
 
8123
 
 
8124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8125
$as_echo_n "checking for objdir... " >&6; }
 
8126
if ${lt_cv_objdir+:} false; then :
 
8127
  $as_echo_n "(cached) " >&6
 
8128
else
 
8129
  rm -f .libs 2>/dev/null
 
8130
mkdir .libs 2>/dev/null
 
8131
if test -d .libs; then
 
8132
  lt_cv_objdir=.libs
 
8133
else
 
8134
  # MS-DOS does not allow filenames that begin with a dot.
 
8135
  lt_cv_objdir=_libs
 
8136
fi
 
8137
rmdir .libs 2>/dev/null
 
8138
fi
 
8139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8140
$as_echo "$lt_cv_objdir" >&6; }
 
8141
objdir=$lt_cv_objdir
 
8142
 
 
8143
 
 
8144
 
 
8145
 
 
8146
 
 
8147
cat >>confdefs.h <<_ACEOF
 
8148
#define LT_OBJDIR "$lt_cv_objdir/"
 
8149
_ACEOF
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
case $host_os in
 
8155
aix3*)
 
8156
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8157
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8158
  # vanish in a puff of smoke.
 
8159
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8160
    COLLECT_NAMES=
 
8161
    export COLLECT_NAMES
 
8162
  fi
 
8163
  ;;
 
8164
esac
 
8165
 
 
8166
# Global variables:
 
8167
ofile=libtool
 
8168
can_build_shared=yes
 
8169
 
 
8170
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8171
# which needs '.lib').
 
8172
libext=a
 
8173
 
 
8174
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8175
 
 
8176
old_CC="$CC"
 
8177
old_CFLAGS="$CFLAGS"
 
8178
 
 
8179
# Set sane defaults for various variables
 
8180
test -z "$CC" && CC=cc
 
8181
test -z "$LTCC" && LTCC=$CC
 
8182
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8183
test -z "$LD" && LD=ld
 
8184
test -z "$ac_objext" && ac_objext=o
 
8185
 
 
8186
for cc_temp in $compiler""; do
 
8187
  case $cc_temp in
 
8188
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8189
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8190
    \-*) ;;
 
8191
    *) break;;
 
8192
  esac
 
8193
done
 
8194
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8195
 
 
8196
 
 
8197
# Only perform the check for file, if the check method requires it
 
8198
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8199
case $deplibs_check_method in
 
8200
file_magic*)
 
8201
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8202
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8203
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8204
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8205
  $as_echo_n "(cached) " >&6
 
8206
else
 
8207
  case $MAGIC_CMD in
 
8208
[\\/*] |  ?:[\\/]*)
 
8209
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8210
  ;;
 
8211
*)
 
8212
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8213
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8214
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8215
  for ac_dir in $ac_dummy; do
 
8216
    IFS="$lt_save_ifs"
 
8217
    test -z "$ac_dir" && ac_dir=.
 
8218
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8219
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8220
      if test -n "$file_magic_test_file"; then
 
8221
        case $deplibs_check_method in
 
8222
        "file_magic "*)
 
8223
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8224
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8225
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8226
            $EGREP "$file_magic_regex" > /dev/null; then
 
8227
            :
 
8228
          else
 
8229
            cat <<_LT_EOF 1>&2
 
8230
 
 
8231
*** Warning: the command libtool uses to detect shared libraries,
 
8232
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8233
*** The result is that libtool may fail to recognize shared libraries
 
8234
*** as such.  This will affect the creation of libtool libraries that
 
8235
*** depend on shared libraries, but programs linked with such libtool
 
8236
*** libraries will work regardless of this problem.  Nevertheless, you
 
8237
*** may want to report the problem to your system manager and/or to
 
8238
*** bug-libtool@gnu.org
 
8239
 
 
8240
_LT_EOF
 
8241
          fi ;;
 
8242
        esac
 
8243
      fi
 
8244
      break
 
8245
    fi
 
8246
  done
 
8247
  IFS="$lt_save_ifs"
 
8248
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8249
  ;;
 
8250
esac
 
8251
fi
 
8252
 
 
8253
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8254
if test -n "$MAGIC_CMD"; then
 
8255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8256
$as_echo "$MAGIC_CMD" >&6; }
 
8257
else
 
8258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8259
$as_echo "no" >&6; }
 
8260
fi
 
8261
 
 
8262
 
 
8263
 
 
8264
 
 
8265
 
 
8266
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8267
  if test -n "$ac_tool_prefix"; then
 
8268
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8269
$as_echo_n "checking for file... " >&6; }
 
8270
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8271
  $as_echo_n "(cached) " >&6
 
8272
else
 
8273
  case $MAGIC_CMD in
 
8274
[\\/*] |  ?:[\\/]*)
 
8275
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8276
  ;;
 
8277
*)
 
8278
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8279
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8280
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8281
  for ac_dir in $ac_dummy; do
 
8282
    IFS="$lt_save_ifs"
 
8283
    test -z "$ac_dir" && ac_dir=.
 
8284
    if test -f $ac_dir/file; then
 
8285
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8286
      if test -n "$file_magic_test_file"; then
 
8287
        case $deplibs_check_method in
 
8288
        "file_magic "*)
 
8289
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8290
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8291
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8292
            $EGREP "$file_magic_regex" > /dev/null; then
 
8293
            :
 
8294
          else
 
8295
            cat <<_LT_EOF 1>&2
 
8296
 
 
8297
*** Warning: the command libtool uses to detect shared libraries,
 
8298
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8299
*** The result is that libtool may fail to recognize shared libraries
 
8300
*** as such.  This will affect the creation of libtool libraries that
 
8301
*** depend on shared libraries, but programs linked with such libtool
 
8302
*** libraries will work regardless of this problem.  Nevertheless, you
 
8303
*** may want to report the problem to your system manager and/or to
 
8304
*** bug-libtool@gnu.org
 
8305
 
 
8306
_LT_EOF
 
8307
          fi ;;
 
8308
        esac
 
8309
      fi
 
8310
      break
 
8311
    fi
 
8312
  done
 
8313
  IFS="$lt_save_ifs"
 
8314
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8315
  ;;
 
8316
esac
 
8317
fi
 
8318
 
 
8319
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8320
if test -n "$MAGIC_CMD"; then
 
8321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8322
$as_echo "$MAGIC_CMD" >&6; }
 
8323
else
 
8324
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8325
$as_echo "no" >&6; }
 
8326
fi
 
8327
 
 
8328
 
 
8329
  else
 
8330
    MAGIC_CMD=:
 
8331
  fi
 
8332
fi
 
8333
 
 
8334
  fi
 
8335
  ;;
 
8336
esac
 
8337
 
 
8338
# Use C for the default configuration in the libtool script
 
8339
 
 
8340
lt_save_CC="$CC"
 
8341
ac_ext=c
 
8342
ac_cpp='$CPP $CPPFLAGS'
 
8343
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8344
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8345
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8346
 
 
8347
 
 
8348
# Source file extension for C test sources.
 
8349
ac_ext=c
 
8350
 
 
8351
# Object file extension for compiled C test sources.
 
8352
objext=o
 
8353
objext=$objext
 
8354
 
 
8355
# Code to be used in simple compile tests
 
8356
lt_simple_compile_test_code="int some_variable = 0;"
 
8357
 
 
8358
# Code to be used in simple link tests
 
8359
lt_simple_link_test_code='int main(){return(0);}'
 
8360
 
 
8361
 
 
8362
 
 
8363
 
 
8364
 
 
8365
 
 
8366
 
 
8367
# If no C compiler was specified, use CC.
 
8368
LTCC=${LTCC-"$CC"}
 
8369
 
 
8370
# If no C compiler flags were specified, use CFLAGS.
 
8371
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8372
 
 
8373
# Allow CC to be a program name with arguments.
 
8374
compiler=$CC
 
8375
 
 
8376
# Save the default compiler, since it gets overwritten when the other
 
8377
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8378
compiler_DEFAULT=$CC
 
8379
 
 
8380
# save warnings/boilerplate of simple test code
 
8381
ac_outfile=conftest.$ac_objext
 
8382
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8383
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8384
_lt_compiler_boilerplate=`cat conftest.err`
 
8385
$RM conftest*
 
8386
 
 
8387
ac_outfile=conftest.$ac_objext
 
8388
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8389
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8390
_lt_linker_boilerplate=`cat conftest.err`
 
8391
$RM -r conftest*
 
8392
 
 
8393
 
 
8394
## CAVEAT EMPTOR:
 
8395
## There is no encapsulation within the following macros, do not change
 
8396
## the running order or otherwise move them around unless you know exactly
 
8397
## what you are doing...
 
8398
if test -n "$compiler"; then
 
8399
 
 
8400
lt_prog_compiler_no_builtin_flag=
 
8401
 
 
8402
if test "$GCC" = yes; then
 
8403
  case $cc_basename in
 
8404
  nvcc*)
 
8405
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8406
  *)
 
8407
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8408
  esac
 
8409
 
 
8410
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8411
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8412
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8413
  $as_echo_n "(cached) " >&6
 
8414
else
 
8415
  lt_cv_prog_compiler_rtti_exceptions=no
 
8416
   ac_outfile=conftest.$ac_objext
 
8417
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8418
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8419
   # Insert the option either (1) after the last *FLAGS variable, or
 
8420
   # (2) before a word containing "conftest.", or (3) at the end.
 
8421
   # Note that $ac_compile itself does not contain backslashes and begins
 
8422
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8423
   # The option is referenced via a variable to avoid confusing sed.
 
8424
   lt_compile=`echo "$ac_compile" | $SED \
 
8425
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8426
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8427
   -e 's:$: $lt_compiler_flag:'`
 
8428
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8429
   (eval "$lt_compile" 2>conftest.err)
 
8430
   ac_status=$?
 
8431
   cat conftest.err >&5
 
8432
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8433
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8434
     # The compiler can only warn and ignore the option if not recognized
 
8435
     # So say no if there are warnings other than the usual output.
 
8436
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8437
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8438
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8439
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8440
     fi
 
8441
   fi
 
8442
   $RM conftest*
 
8443
 
 
8444
fi
 
8445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8446
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8447
 
 
8448
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8449
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8450
else
 
8451
    :
 
8452
fi
 
8453
 
 
8454
fi
 
8455
 
 
8456
 
 
8457
 
 
8458
 
 
8459
 
 
8460
 
 
8461
  lt_prog_compiler_wl=
 
8462
lt_prog_compiler_pic=
 
8463
lt_prog_compiler_static=
 
8464
 
 
8465
 
 
8466
  if test "$GCC" = yes; then
 
8467
    lt_prog_compiler_wl='-Wl,'
 
8468
    lt_prog_compiler_static='-static'
 
8469
 
 
8470
    case $host_os in
 
8471
      aix*)
 
8472
      # All AIX code is PIC.
 
8473
      if test "$host_cpu" = ia64; then
 
8474
        # AIX 5 now supports IA64 processor
 
8475
        lt_prog_compiler_static='-Bstatic'
 
8476
      fi
 
8477
      ;;
 
8478
 
 
8479
    amigaos*)
 
8480
      case $host_cpu in
 
8481
      powerpc)
 
8482
            # see comment about AmigaOS4 .so support
 
8483
            lt_prog_compiler_pic='-fPIC'
 
8484
        ;;
 
8485
      m68k)
 
8486
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8487
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8488
            # like `-m68040'.
 
8489
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8490
        ;;
 
8491
      esac
 
8492
      ;;
 
8493
 
 
8494
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8495
      # PIC is the default for these OSes.
 
8496
      ;;
 
8497
 
 
8498
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8499
      # This hack is so that the source file can tell whether it is being
 
8500
      # built for inclusion in a dll (and should export symbols for example).
 
8501
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8502
      # (--disable-auto-import) libraries
 
8503
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8504
      ;;
 
8505
 
 
8506
    darwin* | rhapsody*)
 
8507
      # PIC is the default on this platform
 
8508
      # Common symbols not allowed in MH_DYLIB files
 
8509
      lt_prog_compiler_pic='-fno-common'
 
8510
      ;;
 
8511
 
 
8512
    haiku*)
 
8513
      # PIC is the default for Haiku.
 
8514
      # The "-static" flag exists, but is broken.
 
8515
      lt_prog_compiler_static=
 
8516
      ;;
 
8517
 
 
8518
    hpux*)
 
8519
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8520
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8521
      # sets the default TLS model and affects inlining.
 
8522
      case $host_cpu in
 
8523
      hppa*64*)
 
8524
        # +Z the default
 
8525
        ;;
 
8526
      *)
 
8527
        lt_prog_compiler_pic='-fPIC'
 
8528
        ;;
 
8529
      esac
 
8530
      ;;
 
8531
 
 
8532
    interix[3-9]*)
 
8533
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8534
      # Instead, we relocate shared libraries at runtime.
 
8535
      ;;
 
8536
 
 
8537
    msdosdjgpp*)
 
8538
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8539
      # on systems that don't support them.
 
8540
      lt_prog_compiler_can_build_shared=no
 
8541
      enable_shared=no
 
8542
      ;;
 
8543
 
 
8544
    *nto* | *qnx*)
 
8545
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8546
      # it will coredump.
 
8547
      lt_prog_compiler_pic='-fPIC -shared'
 
8548
      ;;
 
8549
 
 
8550
    sysv4*MP*)
 
8551
      if test -d /usr/nec; then
 
8552
        lt_prog_compiler_pic=-Kconform_pic
 
8553
      fi
 
8554
      ;;
 
8555
 
 
8556
    *)
 
8557
      lt_prog_compiler_pic='-fPIC'
 
8558
      ;;
 
8559
    esac
 
8560
 
 
8561
    case $cc_basename in
 
8562
    nvcc*) # Cuda Compiler Driver 2.2
 
8563
      lt_prog_compiler_wl='-Xlinker '
 
8564
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
8565
      ;;
 
8566
    esac
 
8567
  else
 
8568
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8569
    case $host_os in
 
8570
    aix*)
 
8571
      lt_prog_compiler_wl='-Wl,'
 
8572
      if test "$host_cpu" = ia64; then
 
8573
        # AIX 5 now supports IA64 processor
 
8574
        lt_prog_compiler_static='-Bstatic'
 
8575
      else
 
8576
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8577
      fi
 
8578
      ;;
 
8579
 
 
8580
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8581
      # This hack is so that the source file can tell whether it is being
 
8582
      # built for inclusion in a dll (and should export symbols for example).
 
8583
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8584
      ;;
 
8585
 
 
8586
    hpux9* | hpux10* | hpux11*)
 
8587
      lt_prog_compiler_wl='-Wl,'
 
8588
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8589
      # not for PA HP-UX.
 
8590
      case $host_cpu in
 
8591
      hppa*64*|ia64*)
 
8592
        # +Z the default
 
8593
        ;;
 
8594
      *)
 
8595
        lt_prog_compiler_pic='+Z'
 
8596
        ;;
 
8597
      esac
 
8598
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8599
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8600
      ;;
 
8601
 
 
8602
    irix5* | irix6* | nonstopux*)
 
8603
      lt_prog_compiler_wl='-Wl,'
 
8604
      # PIC (with -KPIC) is the default.
 
8605
      lt_prog_compiler_static='-non_shared'
 
8606
      ;;
 
8607
 
 
8608
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8609
      case $cc_basename in
 
8610
      # old Intel for x86_64 which still supported -KPIC.
 
8611
      ecc*)
 
8612
        lt_prog_compiler_wl='-Wl,'
 
8613
        lt_prog_compiler_pic='-KPIC'
 
8614
        lt_prog_compiler_static='-static'
 
8615
        ;;
 
8616
      # icc used to be incompatible with GCC.
 
8617
      # ICC 10 doesn't accept -KPIC any more.
 
8618
      icc* | ifort*)
 
8619
        lt_prog_compiler_wl='-Wl,'
 
8620
        lt_prog_compiler_pic='-fPIC'
 
8621
        lt_prog_compiler_static='-static'
 
8622
        ;;
 
8623
      # Lahey Fortran 8.1.
 
8624
      lf95*)
 
8625
        lt_prog_compiler_wl='-Wl,'
 
8626
        lt_prog_compiler_pic='--shared'
 
8627
        lt_prog_compiler_static='--static'
 
8628
        ;;
 
8629
      nagfor*)
 
8630
        # NAG Fortran compiler
 
8631
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8632
        lt_prog_compiler_pic='-PIC'
 
8633
        lt_prog_compiler_static='-Bstatic'
 
8634
        ;;
 
8635
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8636
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8637
        # which looks to be a dead project)
 
8638
        lt_prog_compiler_wl='-Wl,'
 
8639
        lt_prog_compiler_pic='-fpic'
 
8640
        lt_prog_compiler_static='-Bstatic'
 
8641
        ;;
 
8642
      ccc*)
 
8643
        lt_prog_compiler_wl='-Wl,'
 
8644
        # All Alpha code is PIC.
 
8645
        lt_prog_compiler_static='-non_shared'
 
8646
        ;;
 
8647
      xl* | bgxl* | bgf* | mpixl*)
 
8648
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8649
        lt_prog_compiler_wl='-Wl,'
 
8650
        lt_prog_compiler_pic='-qpic'
 
8651
        lt_prog_compiler_static='-qstaticlink'
 
8652
        ;;
 
8653
      *)
 
8654
        case `$CC -V 2>&1 | sed 5q` in
 
8655
        *Sun\ F* | *Sun*Fortran*)
 
8656
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8657
          lt_prog_compiler_pic='-KPIC'
 
8658
          lt_prog_compiler_static='-Bstatic'
 
8659
          lt_prog_compiler_wl=''
 
8660
          ;;
 
8661
        *Sun\ C*)
 
8662
          # Sun C 5.9
 
8663
          lt_prog_compiler_pic='-KPIC'
 
8664
          lt_prog_compiler_static='-Bstatic'
 
8665
          lt_prog_compiler_wl='-Wl,'
 
8666
          ;;
 
8667
        esac
 
8668
        ;;
 
8669
      esac
 
8670
      ;;
 
8671
 
 
8672
    newsos6)
 
8673
      lt_prog_compiler_pic='-KPIC'
 
8674
      lt_prog_compiler_static='-Bstatic'
 
8675
      ;;
 
8676
 
 
8677
    *nto* | *qnx*)
 
8678
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8679
      # it will coredump.
 
8680
      lt_prog_compiler_pic='-fPIC -shared'
 
8681
      ;;
 
8682
 
 
8683
    osf3* | osf4* | osf5*)
 
8684
      lt_prog_compiler_wl='-Wl,'
 
8685
      # All OSF/1 code is PIC.
 
8686
      lt_prog_compiler_static='-non_shared'
 
8687
      ;;
 
8688
 
 
8689
    rdos*)
 
8690
      lt_prog_compiler_static='-non_shared'
 
8691
      ;;
 
8692
 
 
8693
    solaris*)
 
8694
      lt_prog_compiler_pic='-KPIC'
 
8695
      lt_prog_compiler_static='-Bstatic'
 
8696
      case $cc_basename in
 
8697
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8698
        lt_prog_compiler_wl='-Qoption ld ';;
 
8699
      *)
 
8700
        lt_prog_compiler_wl='-Wl,';;
 
8701
      esac
 
8702
      ;;
 
8703
 
 
8704
    sunos4*)
 
8705
      lt_prog_compiler_wl='-Qoption ld '
 
8706
      lt_prog_compiler_pic='-PIC'
 
8707
      lt_prog_compiler_static='-Bstatic'
 
8708
      ;;
 
8709
 
 
8710
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8711
      lt_prog_compiler_wl='-Wl,'
 
8712
      lt_prog_compiler_pic='-KPIC'
 
8713
      lt_prog_compiler_static='-Bstatic'
 
8714
      ;;
 
8715
 
 
8716
    sysv4*MP*)
 
8717
      if test -d /usr/nec ;then
 
8718
        lt_prog_compiler_pic='-Kconform_pic'
 
8719
        lt_prog_compiler_static='-Bstatic'
 
8720
      fi
 
8721
      ;;
 
8722
 
 
8723
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8724
      lt_prog_compiler_wl='-Wl,'
 
8725
      lt_prog_compiler_pic='-KPIC'
 
8726
      lt_prog_compiler_static='-Bstatic'
 
8727
      ;;
 
8728
 
 
8729
    unicos*)
 
8730
      lt_prog_compiler_wl='-Wl,'
 
8731
      lt_prog_compiler_can_build_shared=no
 
8732
      ;;
 
8733
 
 
8734
    uts4*)
 
8735
      lt_prog_compiler_pic='-pic'
 
8736
      lt_prog_compiler_static='-Bstatic'
 
8737
      ;;
 
8738
 
 
8739
    *)
 
8740
      lt_prog_compiler_can_build_shared=no
 
8741
      ;;
 
8742
    esac
 
8743
  fi
 
8744
 
 
8745
case $host_os in
 
8746
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8747
  *djgpp*)
 
8748
    lt_prog_compiler_pic=
 
8749
    ;;
 
8750
  *)
 
8751
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8752
    ;;
 
8753
esac
 
8754
 
 
8755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8756
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8757
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8758
  $as_echo_n "(cached) " >&6
 
8759
else
 
8760
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8761
fi
 
8762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8763
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8764
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8765
 
 
8766
#
 
8767
# Check to make sure the PIC flag actually works.
 
8768
#
 
8769
if test -n "$lt_prog_compiler_pic"; then
 
8770
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8771
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8772
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8773
  $as_echo_n "(cached) " >&6
 
8774
else
 
8775
  lt_cv_prog_compiler_pic_works=no
 
8776
   ac_outfile=conftest.$ac_objext
 
8777
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8778
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8779
   # Insert the option either (1) after the last *FLAGS variable, or
 
8780
   # (2) before a word containing "conftest.", or (3) at the end.
 
8781
   # Note that $ac_compile itself does not contain backslashes and begins
 
8782
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8783
   # The option is referenced via a variable to avoid confusing sed.
 
8784
   lt_compile=`echo "$ac_compile" | $SED \
 
8785
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8786
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8787
   -e 's:$: $lt_compiler_flag:'`
 
8788
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8789
   (eval "$lt_compile" 2>conftest.err)
 
8790
   ac_status=$?
 
8791
   cat conftest.err >&5
 
8792
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8793
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8794
     # The compiler can only warn and ignore the option if not recognized
 
8795
     # So say no if there are warnings other than the usual output.
 
8796
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8797
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8798
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8799
       lt_cv_prog_compiler_pic_works=yes
 
8800
     fi
 
8801
   fi
 
8802
   $RM conftest*
 
8803
 
 
8804
fi
 
8805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8806
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8807
 
 
8808
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8809
    case $lt_prog_compiler_pic in
 
8810
     "" | " "*) ;;
 
8811
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8812
     esac
 
8813
else
 
8814
    lt_prog_compiler_pic=
 
8815
     lt_prog_compiler_can_build_shared=no
 
8816
fi
 
8817
 
 
8818
fi
 
8819
 
 
8820
 
 
8821
 
 
8822
 
 
8823
 
 
8824
 
 
8825
 
 
8826
 
 
8827
 
 
8828
 
 
8829
 
 
8830
#
 
8831
# Check to make sure the static flag actually works.
 
8832
#
 
8833
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8835
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8836
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8837
  $as_echo_n "(cached) " >&6
 
8838
else
 
8839
  lt_cv_prog_compiler_static_works=no
 
8840
   save_LDFLAGS="$LDFLAGS"
 
8841
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8842
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8843
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8844
     # The linker can only warn and ignore the option if not recognized
 
8845
     # So say no if there are warnings
 
8846
     if test -s conftest.err; then
 
8847
       # Append any errors to the config.log.
 
8848
       cat conftest.err 1>&5
 
8849
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8850
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8851
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8852
         lt_cv_prog_compiler_static_works=yes
 
8853
       fi
 
8854
     else
 
8855
       lt_cv_prog_compiler_static_works=yes
 
8856
     fi
 
8857
   fi
 
8858
   $RM -r conftest*
 
8859
   LDFLAGS="$save_LDFLAGS"
 
8860
 
 
8861
fi
 
8862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8863
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8864
 
 
8865
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8866
    :
 
8867
else
 
8868
    lt_prog_compiler_static=
 
8869
fi
 
8870
 
 
8871
 
 
8872
 
 
8873
 
 
8874
 
 
8875
 
 
8876
 
 
8877
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8878
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8879
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8880
  $as_echo_n "(cached) " >&6
 
8881
else
 
8882
  lt_cv_prog_compiler_c_o=no
 
8883
   $RM -r conftest 2>/dev/null
 
8884
   mkdir conftest
 
8885
   cd conftest
 
8886
   mkdir out
 
8887
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8888
 
 
8889
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8890
   # Insert the option either (1) after the last *FLAGS variable, or
 
8891
   # (2) before a word containing "conftest.", or (3) at the end.
 
8892
   # Note that $ac_compile itself does not contain backslashes and begins
 
8893
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8894
   lt_compile=`echo "$ac_compile" | $SED \
 
8895
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8896
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8897
   -e 's:$: $lt_compiler_flag:'`
 
8898
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8899
   (eval "$lt_compile" 2>out/conftest.err)
 
8900
   ac_status=$?
 
8901
   cat out/conftest.err >&5
 
8902
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8903
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8904
   then
 
8905
     # The compiler can only warn and ignore the option if not recognized
 
8906
     # So say no if there are warnings
 
8907
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8908
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8909
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8910
       lt_cv_prog_compiler_c_o=yes
 
8911
     fi
 
8912
   fi
 
8913
   chmod u+w . 2>&5
 
8914
   $RM conftest*
 
8915
   # SGI C++ compiler will create directory out/ii_files/ for
 
8916
   # template instantiation
 
8917
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8918
   $RM out/* && rmdir out
 
8919
   cd ..
 
8920
   $RM -r conftest
 
8921
   $RM conftest*
 
8922
 
 
8923
fi
 
8924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8925
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8926
 
 
8927
 
 
8928
 
 
8929
 
 
8930
 
 
8931
 
 
8932
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8933
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8934
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8935
  $as_echo_n "(cached) " >&6
 
8936
else
 
8937
  lt_cv_prog_compiler_c_o=no
 
8938
   $RM -r conftest 2>/dev/null
 
8939
   mkdir conftest
 
8940
   cd conftest
 
8941
   mkdir out
 
8942
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8943
 
 
8944
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8945
   # Insert the option either (1) after the last *FLAGS variable, or
 
8946
   # (2) before a word containing "conftest.", or (3) at the end.
 
8947
   # Note that $ac_compile itself does not contain backslashes and begins
 
8948
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8949
   lt_compile=`echo "$ac_compile" | $SED \
 
8950
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8951
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8952
   -e 's:$: $lt_compiler_flag:'`
 
8953
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8954
   (eval "$lt_compile" 2>out/conftest.err)
 
8955
   ac_status=$?
 
8956
   cat out/conftest.err >&5
 
8957
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8958
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8959
   then
 
8960
     # The compiler can only warn and ignore the option if not recognized
 
8961
     # So say no if there are warnings
 
8962
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8963
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8964
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8965
       lt_cv_prog_compiler_c_o=yes
 
8966
     fi
 
8967
   fi
 
8968
   chmod u+w . 2>&5
 
8969
   $RM conftest*
 
8970
   # SGI C++ compiler will create directory out/ii_files/ for
 
8971
   # template instantiation
 
8972
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8973
   $RM out/* && rmdir out
 
8974
   cd ..
 
8975
   $RM -r conftest
 
8976
   $RM conftest*
 
8977
 
 
8978
fi
 
8979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8980
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8981
 
 
8982
 
 
8983
 
 
8984
 
 
8985
hard_links="nottested"
 
8986
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8987
  # do not overwrite the value of need_locks provided by the user
 
8988
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8989
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8990
  hard_links=yes
 
8991
  $RM conftest*
 
8992
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8993
  touch conftest.a
 
8994
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8995
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8996
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8997
$as_echo "$hard_links" >&6; }
 
8998
  if test "$hard_links" = no; then
 
8999
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9000
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9001
    need_locks=warn
 
9002
  fi
 
9003
else
 
9004
  need_locks=no
 
9005
fi
 
9006
 
 
9007
 
 
9008
 
 
9009
 
 
9010
 
 
9011
 
 
9012
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9013
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9014
 
 
9015
  runpath_var=
 
9016
  allow_undefined_flag=
 
9017
  always_export_symbols=no
 
9018
  archive_cmds=
 
9019
  archive_expsym_cmds=
 
9020
  compiler_needs_object=no
 
9021
  enable_shared_with_static_runtimes=no
 
9022
  export_dynamic_flag_spec=
 
9023
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9024
  hardcode_automatic=no
 
9025
  hardcode_direct=no
 
9026
  hardcode_direct_absolute=no
 
9027
  hardcode_libdir_flag_spec=
 
9028
  hardcode_libdir_flag_spec_ld=
 
9029
  hardcode_libdir_separator=
 
9030
  hardcode_minus_L=no
 
9031
  hardcode_shlibpath_var=unsupported
 
9032
  inherit_rpath=no
 
9033
  link_all_deplibs=unknown
 
9034
  module_cmds=
 
9035
  module_expsym_cmds=
 
9036
  old_archive_from_new_cmds=
 
9037
  old_archive_from_expsyms_cmds=
 
9038
  thread_safe_flag_spec=
 
9039
  whole_archive_flag_spec=
 
9040
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9041
  # included in the symbol list
 
9042
  include_expsyms=
 
9043
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9044
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9045
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9046
  # as well as any symbol that contains `d'.
 
9047
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9048
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9049
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9050
  # the symbol is explicitly referenced.  Since portable code cannot
 
9051
  # rely on this symbol name, it's probably fine to never include it in
 
9052
  # preloaded symbol tables.
 
9053
  # Exclude shared library initialization/finalization symbols.
 
9054
  extract_expsyms_cmds=
 
9055
 
 
9056
  case $host_os in
 
9057
  cygwin* | mingw* | pw32* | cegcc*)
 
9058
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9059
    # When not using gcc, we currently assume that we are using
 
9060
    # Microsoft Visual C++.
 
9061
    if test "$GCC" != yes; then
 
9062
      with_gnu_ld=no
 
9063
    fi
 
9064
    ;;
 
9065
  interix*)
 
9066
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9067
    with_gnu_ld=yes
 
9068
    ;;
 
9069
  openbsd*)
 
9070
    with_gnu_ld=no
 
9071
    ;;
 
9072
  esac
 
9073
 
 
9074
  ld_shlibs=yes
 
9075
 
 
9076
  # On some targets, GNU ld is compatible enough with the native linker
 
9077
  # that we're better off using the native interface for both.
 
9078
  lt_use_gnu_ld_interface=no
 
9079
  if test "$with_gnu_ld" = yes; then
 
9080
    case $host_os in
 
9081
      aix*)
 
9082
        # The AIX port of GNU ld has always aspired to compatibility
 
9083
        # with the native linker.  However, as the warning in the GNU ld
 
9084
        # block says, versions before 2.19.5* couldn't really create working
 
9085
        # shared libraries, regardless of the interface used.
 
9086
        case `$LD -v 2>&1` in
 
9087
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9088
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9089
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9090
          *)
 
9091
            lt_use_gnu_ld_interface=yes
 
9092
            ;;
 
9093
        esac
 
9094
        ;;
 
9095
      *)
 
9096
        lt_use_gnu_ld_interface=yes
 
9097
        ;;
 
9098
    esac
 
9099
  fi
 
9100
 
 
9101
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9102
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9103
    wlarc='${wl}'
 
9104
 
 
9105
    # Set some defaults for GNU ld with shared library support. These
 
9106
    # are reset later if shared libraries are not supported. Putting them
 
9107
    # here allows them to be overridden if necessary.
 
9108
    runpath_var=LD_RUN_PATH
 
9109
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9110
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9111
    # ancient GNU ld didn't support --whole-archive et. al.
 
9112
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9113
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9114
    else
 
9115
      whole_archive_flag_spec=
 
9116
    fi
 
9117
    supports_anon_versioning=no
 
9118
    case `$LD -v 2>&1` in
 
9119
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9120
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9121
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9122
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9123
      *\ 2.11.*) ;; # other 2.11 versions
 
9124
      *) supports_anon_versioning=yes ;;
 
9125
    esac
 
9126
 
 
9127
    # See if GNU ld supports shared libraries.
 
9128
    case $host_os in
 
9129
    aix[3-9]*)
 
9130
      # On AIX/PPC, the GNU linker is very broken
 
9131
      if test "$host_cpu" != ia64; then
 
9132
        ld_shlibs=no
 
9133
        cat <<_LT_EOF 1>&2
 
9134
 
 
9135
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9136
*** to be unable to reliably create shared libraries on AIX.
 
9137
*** Therefore, libtool is disabling shared libraries support.  If you
 
9138
*** really care for shared libraries, you may want to install binutils
 
9139
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9140
*** You will then need to restart the configuration process.
 
9141
 
 
9142
_LT_EOF
 
9143
      fi
 
9144
      ;;
 
9145
 
 
9146
    amigaos*)
 
9147
      case $host_cpu in
 
9148
      powerpc)
 
9149
            # see comment about AmigaOS4 .so support
 
9150
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9151
            archive_expsym_cmds=''
 
9152
        ;;
 
9153
      m68k)
 
9154
            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)'
 
9155
            hardcode_libdir_flag_spec='-L$libdir'
 
9156
            hardcode_minus_L=yes
 
9157
        ;;
 
9158
      esac
 
9159
      ;;
 
9160
 
 
9161
    beos*)
 
9162
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9163
        allow_undefined_flag=unsupported
 
9164
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9165
        # support --undefined.  This deserves some investigation.  FIXME
 
9166
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9167
      else
 
9168
        ld_shlibs=no
 
9169
      fi
 
9170
      ;;
 
9171
 
 
9172
    cygwin* | mingw* | pw32* | cegcc*)
 
9173
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9174
      # as there is no search path for DLLs.
 
9175
      hardcode_libdir_flag_spec='-L$libdir'
 
9176
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9177
      allow_undefined_flag=unsupported
 
9178
      always_export_symbols=no
 
9179
      enable_shared_with_static_runtimes=yes
 
9180
      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'
 
9181
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9182
 
 
9183
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9184
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9185
        # If the export-symbols file already is a .def file (1st line
 
9186
        # is EXPORTS), use it as is; otherwise, prepend...
 
9187
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9188
          cp $export_symbols $output_objdir/$soname.def;
 
9189
        else
 
9190
          echo EXPORTS > $output_objdir/$soname.def;
 
9191
          cat $export_symbols >> $output_objdir/$soname.def;
 
9192
        fi~
 
9193
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9194
      else
 
9195
        ld_shlibs=no
 
9196
      fi
 
9197
      ;;
 
9198
 
 
9199
    haiku*)
 
9200
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9201
      link_all_deplibs=yes
 
9202
      ;;
 
9203
 
 
9204
    interix[3-9]*)
 
9205
      hardcode_direct=no
 
9206
      hardcode_shlibpath_var=no
 
9207
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9208
      export_dynamic_flag_spec='${wl}-E'
 
9209
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9210
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9211
      # default) and relocated if they conflict, which is a slow very memory
 
9212
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9213
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9214
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9215
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9216
      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'
 
9217
      ;;
 
9218
 
 
9219
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9220
      tmp_diet=no
 
9221
      if test "$host_os" = linux-dietlibc; then
 
9222
        case $cc_basename in
 
9223
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9224
        esac
 
9225
      fi
 
9226
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9227
         && test "$tmp_diet" = no
 
9228
      then
 
9229
        tmp_addflag=' $pic_flag'
 
9230
        tmp_sharedflag='-shared'
 
9231
        case $cc_basename,$host_cpu in
 
9232
        pgcc*)                          # Portland Group C compiler
 
9233
          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'
 
9234
          tmp_addflag=' $pic_flag'
 
9235
          ;;
 
9236
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9237
                                        # Portland Group f77 and f90 compilers
 
9238
          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'
 
9239
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9240
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9241
          tmp_addflag=' -i_dynamic' ;;
 
9242
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9243
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9244
        ifc* | ifort*)                  # Intel Fortran compiler
 
9245
          tmp_addflag=' -nofor_main' ;;
 
9246
        lf95*)                          # Lahey Fortran 8.1
 
9247
          whole_archive_flag_spec=
 
9248
          tmp_sharedflag='--shared' ;;
 
9249
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9250
          tmp_sharedflag='-qmkshrobj'
 
9251
          tmp_addflag= ;;
 
9252
        nvcc*)  # Cuda Compiler Driver 2.2
 
9253
          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'
 
9254
          compiler_needs_object=yes
 
9255
          ;;
 
9256
        esac
 
9257
        case `$CC -V 2>&1 | sed 5q` in
 
9258
        *Sun\ C*)                       # Sun C 5.9
 
9259
          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'
 
9260
          compiler_needs_object=yes
 
9261
          tmp_sharedflag='-G' ;;
 
9262
        *Sun\ F*)                       # Sun Fortran 8.3
 
9263
          tmp_sharedflag='-G' ;;
 
9264
        esac
 
9265
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9266
 
 
9267
        if test "x$supports_anon_versioning" = xyes; then
 
9268
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9269
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9270
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9271
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9272
        fi
 
9273
 
 
9274
        case $cc_basename in
 
9275
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9276
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9277
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9278
          hardcode_libdir_flag_spec=
 
9279
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9280
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9281
          if test "x$supports_anon_versioning" = xyes; then
 
9282
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9283
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9284
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9285
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9286
          fi
 
9287
          ;;
 
9288
        esac
 
9289
      else
 
9290
        ld_shlibs=no
 
9291
      fi
 
9292
      ;;
 
9293
 
 
9294
    netbsd*)
 
9295
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9296
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9297
        wlarc=
 
9298
      else
 
9299
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9300
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9301
      fi
 
9302
      ;;
 
9303
 
 
9304
    solaris*)
 
9305
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9306
        ld_shlibs=no
 
9307
        cat <<_LT_EOF 1>&2
 
9308
 
 
9309
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9310
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9311
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9312
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9313
*** your PATH or compiler configuration so that the native linker is
 
9314
*** used, and then restart.
 
9315
 
 
9316
_LT_EOF
 
9317
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9318
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9319
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9320
      else
 
9321
        ld_shlibs=no
 
9322
      fi
 
9323
      ;;
 
9324
 
 
9325
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9326
      case `$LD -v 2>&1` in
 
9327
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9328
        ld_shlibs=no
 
9329
        cat <<_LT_EOF 1>&2
 
9330
 
 
9331
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9332
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9333
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9334
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9335
*** your PATH or compiler configuration so that the native linker is
 
9336
*** used, and then restart.
 
9337
 
 
9338
_LT_EOF
 
9339
        ;;
 
9340
        *)
 
9341
          # For security reasons, it is highly recommended that you always
 
9342
          # use absolute paths for naming shared libraries, and exclude the
 
9343
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9344
          # requires that you compile everything twice, which is a pain.
 
9345
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9346
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9347
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9348
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9349
          else
 
9350
            ld_shlibs=no
 
9351
          fi
 
9352
        ;;
 
9353
      esac
 
9354
      ;;
 
9355
 
 
9356
    sunos4*)
 
9357
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9358
      wlarc=
 
9359
      hardcode_direct=yes
 
9360
      hardcode_shlibpath_var=no
 
9361
      ;;
 
9362
 
 
9363
    *)
 
9364
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9365
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9366
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9367
      else
 
9368
        ld_shlibs=no
 
9369
      fi
 
9370
      ;;
 
9371
    esac
 
9372
 
 
9373
    if test "$ld_shlibs" = no; then
 
9374
      runpath_var=
 
9375
      hardcode_libdir_flag_spec=
 
9376
      export_dynamic_flag_spec=
 
9377
      whole_archive_flag_spec=
 
9378
    fi
 
9379
  else
 
9380
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9381
    case $host_os in
 
9382
    aix3*)
 
9383
      allow_undefined_flag=unsupported
 
9384
      always_export_symbols=yes
 
9385
      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'
 
9386
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9387
      # are no directories specified by -L.
 
9388
      hardcode_minus_L=yes
 
9389
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9390
        # Neither direct hardcoding nor static linking is supported with a
 
9391
        # broken collect2.
 
9392
        hardcode_direct=unsupported
 
9393
      fi
 
9394
      ;;
 
9395
 
 
9396
    aix[4-9]*)
 
9397
      if test "$host_cpu" = ia64; then
 
9398
        # On IA64, the linker does run time linking by default, so we don't
 
9399
        # have to do anything special.
 
9400
        aix_use_runtimelinking=no
 
9401
        exp_sym_flag='-Bexport'
 
9402
        no_entry_flag=""
 
9403
      else
 
9404
        # If we're using GNU nm, then we don't want the "-C" option.
 
9405
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9406
        # Also, AIX nm treats weak defined symbols like other global
 
9407
        # defined symbols, whereas GNU nm marks them as "W".
 
9408
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9409
          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'
 
9410
        else
 
9411
          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'
 
9412
        fi
 
9413
        aix_use_runtimelinking=no
 
9414
 
 
9415
        # Test if we are trying to use run time linking or normal
 
9416
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9417
        # need to do runtime linking.
 
9418
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9419
          for ld_flag in $LDFLAGS; do
 
9420
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9421
            aix_use_runtimelinking=yes
 
9422
            break
 
9423
          fi
 
9424
          done
 
9425
          ;;
 
9426
        esac
 
9427
 
 
9428
        exp_sym_flag='-bexport'
 
9429
        no_entry_flag='-bnoentry'
 
9430
      fi
 
9431
 
 
9432
      # When large executables or shared objects are built, AIX ld can
 
9433
      # have problems creating the table of contents.  If linking a library
 
9434
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9435
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9436
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9437
 
 
9438
      archive_cmds=''
 
9439
      hardcode_direct=yes
 
9440
      hardcode_direct_absolute=yes
 
9441
      hardcode_libdir_separator=':'
 
9442
      link_all_deplibs=yes
 
9443
      file_list_spec='${wl}-f,'
 
9444
 
 
9445
      if test "$GCC" = yes; then
 
9446
        case $host_os in aix4.[012]|aix4.[012].*)
 
9447
        # We only want to do this on AIX 4.2 and lower, the check
 
9448
        # below for broken collect2 doesn't work under 4.3+
 
9449
          collect2name=`${CC} -print-prog-name=collect2`
 
9450
          if test -f "$collect2name" &&
 
9451
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9452
          then
 
9453
          # We have reworked collect2
 
9454
          :
 
9455
          else
 
9456
          # We have old collect2
 
9457
          hardcode_direct=unsupported
 
9458
          # It fails to find uninstalled libraries when the uninstalled
 
9459
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9460
          # to unsupported forces relinking
 
9461
          hardcode_minus_L=yes
 
9462
          hardcode_libdir_flag_spec='-L$libdir'
 
9463
          hardcode_libdir_separator=
 
9464
          fi
 
9465
          ;;
 
9466
        esac
 
9467
        shared_flag='-shared'
 
9468
        if test "$aix_use_runtimelinking" = yes; then
 
9469
          shared_flag="$shared_flag "'${wl}-G'
 
9470
        fi
 
9471
      else
 
9472
        # not using gcc
 
9473
        if test "$host_cpu" = ia64; then
 
9474
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9475
        # chokes on -Wl,-G. The following line is correct:
 
9476
          shared_flag='-G'
 
9477
        else
 
9478
          if test "$aix_use_runtimelinking" = yes; then
 
9479
            shared_flag='${wl}-G'
 
9480
          else
 
9481
            shared_flag='${wl}-bM:SRE'
 
9482
          fi
 
9483
        fi
 
9484
      fi
 
9485
 
 
9486
      export_dynamic_flag_spec='${wl}-bexpall'
 
9487
      # It seems that -bexpall does not export symbols beginning with
 
9488
      # underscore (_), so it is better to generate a list of symbols to export.
 
9489
      always_export_symbols=yes
 
9490
      if test "$aix_use_runtimelinking" = yes; then
 
9491
        # Warning - without using the other runtime loading flags (-brtl),
 
9492
        # -berok will link without error, but may produce a broken library.
 
9493
        allow_undefined_flag='-berok'
 
9494
        # Determine the default libpath from the value encoded in an
 
9495
        # empty executable.
 
9496
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9497
  aix_libpath=$lt_cv_aix_libpath
 
9498
else
 
9499
  if ${lt_cv_aix_libpath_+:} false; then :
 
9500
  $as_echo_n "(cached) " >&6
 
9501
else
 
9502
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9503
/* end confdefs.h.  */
 
9504
 
 
9505
int
 
9506
main ()
 
9507
{
 
9508
 
 
9509
  ;
 
9510
  return 0;
 
9511
}
 
9512
_ACEOF
 
9513
if ac_fn_c_try_link "$LINENO"; then :
 
9514
 
 
9515
  lt_aix_libpath_sed='
 
9516
      /Import File Strings/,/^$/ {
 
9517
          /^0/ {
 
9518
              s/^0  *\([^ ]*\) *$/\1/
 
9519
              p
 
9520
          }
 
9521
      }'
 
9522
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9523
  # Check for a 64-bit object if we didn't find anything.
 
9524
  if test -z "$lt_cv_aix_libpath_"; then
 
9525
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9526
  fi
 
9527
fi
 
9528
rm -f core conftest.err conftest.$ac_objext \
 
9529
    conftest$ac_exeext conftest.$ac_ext
 
9530
  if test -z "$lt_cv_aix_libpath_"; then
 
9531
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9532
  fi
 
9533
 
 
9534
fi
 
9535
 
 
9536
  aix_libpath=$lt_cv_aix_libpath_
 
9537
fi
 
9538
 
 
9539
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9540
        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"
 
9541
      else
 
9542
        if test "$host_cpu" = ia64; then
 
9543
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9544
          allow_undefined_flag="-z nodefs"
 
9545
          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"
 
9546
        else
 
9547
         # Determine the default libpath from the value encoded in an
 
9548
         # empty executable.
 
9549
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9550
  aix_libpath=$lt_cv_aix_libpath
 
9551
else
 
9552
  if ${lt_cv_aix_libpath_+:} false; then :
 
9553
  $as_echo_n "(cached) " >&6
 
9554
else
 
9555
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9556
/* end confdefs.h.  */
 
9557
 
 
9558
int
 
9559
main ()
 
9560
{
 
9561
 
 
9562
  ;
 
9563
  return 0;
 
9564
}
 
9565
_ACEOF
 
9566
if ac_fn_c_try_link "$LINENO"; then :
 
9567
 
 
9568
  lt_aix_libpath_sed='
 
9569
      /Import File Strings/,/^$/ {
 
9570
          /^0/ {
 
9571
              s/^0  *\([^ ]*\) *$/\1/
 
9572
              p
 
9573
          }
 
9574
      }'
 
9575
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9576
  # Check for a 64-bit object if we didn't find anything.
 
9577
  if test -z "$lt_cv_aix_libpath_"; then
 
9578
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9579
  fi
 
9580
fi
 
9581
rm -f core conftest.err conftest.$ac_objext \
 
9582
    conftest$ac_exeext conftest.$ac_ext
 
9583
  if test -z "$lt_cv_aix_libpath_"; then
 
9584
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9585
  fi
 
9586
 
 
9587
fi
 
9588
 
 
9589
  aix_libpath=$lt_cv_aix_libpath_
 
9590
fi
 
9591
 
 
9592
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9593
          # Warning - without using the other run time loading flags,
 
9594
          # -berok will link without error, but may produce a broken library.
 
9595
          no_undefined_flag=' ${wl}-bernotok'
 
9596
          allow_undefined_flag=' ${wl}-berok'
 
9597
          if test "$with_gnu_ld" = yes; then
 
9598
            # We only use this code for GNU lds that support --whole-archive.
 
9599
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9600
          else
 
9601
            # Exported symbols can be pulled into shared objects from archives
 
9602
            whole_archive_flag_spec='$convenience'
 
9603
          fi
 
9604
          archive_cmds_need_lc=yes
 
9605
          # This is similar to how AIX traditionally builds its shared libraries.
 
9606
          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'
 
9607
        fi
 
9608
      fi
 
9609
      ;;
 
9610
 
 
9611
    amigaos*)
 
9612
      case $host_cpu in
 
9613
      powerpc)
 
9614
            # see comment about AmigaOS4 .so support
 
9615
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9616
            archive_expsym_cmds=''
 
9617
        ;;
 
9618
      m68k)
 
9619
            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)'
 
9620
            hardcode_libdir_flag_spec='-L$libdir'
 
9621
            hardcode_minus_L=yes
 
9622
        ;;
 
9623
      esac
 
9624
      ;;
 
9625
 
 
9626
    bsdi[45]*)
 
9627
      export_dynamic_flag_spec=-rdynamic
 
9628
      ;;
 
9629
 
 
9630
    cygwin* | mingw* | pw32* | cegcc*)
 
9631
      # When not using gcc, we currently assume that we are using
 
9632
      # Microsoft Visual C++.
 
9633
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9634
      # no search path for DLLs.
 
9635
      case $cc_basename in
 
9636
      cl*)
 
9637
        # Native MSVC
 
9638
        hardcode_libdir_flag_spec=' '
 
9639
        allow_undefined_flag=unsupported
 
9640
        always_export_symbols=yes
 
9641
        file_list_spec='@'
 
9642
        # Tell ltmain to make .lib files, not .a files.
 
9643
        libext=lib
 
9644
        # Tell ltmain to make .dll files, not .so files.
 
9645
        shrext_cmds=".dll"
 
9646
        # FIXME: Setting linknames here is a bad hack.
 
9647
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9648
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9649
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9650
          else
 
9651
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9652
          fi~
 
9653
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9654
          linknames='
 
9655
        # The linker will not automatically build a static lib if we build a DLL.
 
9656
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9657
        enable_shared_with_static_runtimes=yes
 
9658
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9659
        # Don't use ranlib
 
9660
        old_postinstall_cmds='chmod 644 $oldlib'
 
9661
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9662
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9663
          case $lt_outputfile in
 
9664
            *.exe|*.EXE) ;;
 
9665
            *)
 
9666
              lt_outputfile="$lt_outputfile.exe"
 
9667
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9668
              ;;
 
9669
          esac~
 
9670
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9671
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9672
            $RM "$lt_outputfile.manifest";
 
9673
          fi'
 
9674
        ;;
 
9675
      *)
 
9676
        # Assume MSVC wrapper
 
9677
        hardcode_libdir_flag_spec=' '
 
9678
        allow_undefined_flag=unsupported
 
9679
        # Tell ltmain to make .lib files, not .a files.
 
9680
        libext=lib
 
9681
        # Tell ltmain to make .dll files, not .so files.
 
9682
        shrext_cmds=".dll"
 
9683
        # FIXME: Setting linknames here is a bad hack.
 
9684
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9685
        # The linker will automatically build a .lib file if we build a DLL.
 
9686
        old_archive_from_new_cmds='true'
 
9687
        # FIXME: Should let the user specify the lib program.
 
9688
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9689
        enable_shared_with_static_runtimes=yes
 
9690
        ;;
 
9691
      esac
 
9692
      ;;
 
9693
 
 
9694
    darwin* | rhapsody*)
 
9695
 
 
9696
 
 
9697
  archive_cmds_need_lc=no
 
9698
  hardcode_direct=no
 
9699
  hardcode_automatic=yes
 
9700
  hardcode_shlibpath_var=unsupported
 
9701
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9702
    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\"`'
 
9703
  else
 
9704
    whole_archive_flag_spec=''
 
9705
  fi
 
9706
  link_all_deplibs=yes
 
9707
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9708
  case $cc_basename in
 
9709
     ifort*) _lt_dar_can_shared=yes ;;
 
9710
     *) _lt_dar_can_shared=$GCC ;;
 
9711
  esac
 
9712
  if test "$_lt_dar_can_shared" = "yes"; then
 
9713
    output_verbose_link_cmd=func_echo_all
 
9714
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9715
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9716
    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}"
 
9717
    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}"
 
9718
 
 
9719
  else
 
9720
  ld_shlibs=no
 
9721
  fi
 
9722
 
 
9723
      ;;
 
9724
 
 
9725
    dgux*)
 
9726
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9727
      hardcode_libdir_flag_spec='-L$libdir'
 
9728
      hardcode_shlibpath_var=no
 
9729
      ;;
 
9730
 
 
9731
    freebsd1*)
 
9732
      ld_shlibs=no
 
9733
      ;;
 
9734
 
 
9735
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9736
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9737
    # does not break anything, and helps significantly (at the cost of a little
 
9738
    # extra space).
 
9739
    freebsd2.2*)
 
9740
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9741
      hardcode_libdir_flag_spec='-R$libdir'
 
9742
      hardcode_direct=yes
 
9743
      hardcode_shlibpath_var=no
 
9744
      ;;
 
9745
 
 
9746
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9747
    freebsd2*)
 
9748
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9749
      hardcode_direct=yes
 
9750
      hardcode_minus_L=yes
 
9751
      hardcode_shlibpath_var=no
 
9752
      ;;
 
9753
 
 
9754
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9755
    freebsd* | dragonfly*)
 
9756
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9757
      hardcode_libdir_flag_spec='-R$libdir'
 
9758
      hardcode_direct=yes
 
9759
      hardcode_shlibpath_var=no
 
9760
      ;;
 
9761
 
 
9762
    hpux9*)
 
9763
      if test "$GCC" = yes; then
 
9764
        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'
 
9765
      else
 
9766
        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'
 
9767
      fi
 
9768
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9769
      hardcode_libdir_separator=:
 
9770
      hardcode_direct=yes
 
9771
 
 
9772
      # hardcode_minus_L: Not really in the search PATH,
 
9773
      # but as the default location of the library.
 
9774
      hardcode_minus_L=yes
 
9775
      export_dynamic_flag_spec='${wl}-E'
 
9776
      ;;
 
9777
 
 
9778
    hpux10*)
 
9779
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9780
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9781
      else
 
9782
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9783
      fi
 
9784
      if test "$with_gnu_ld" = no; then
 
9785
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9786
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9787
        hardcode_libdir_separator=:
 
9788
        hardcode_direct=yes
 
9789
        hardcode_direct_absolute=yes
 
9790
        export_dynamic_flag_spec='${wl}-E'
 
9791
        # hardcode_minus_L: Not really in the search PATH,
 
9792
        # but as the default location of the library.
 
9793
        hardcode_minus_L=yes
 
9794
      fi
 
9795
      ;;
 
9796
 
 
9797
    hpux11*)
 
9798
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9799
        case $host_cpu in
 
9800
        hppa*64*)
 
9801
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9802
          ;;
 
9803
        ia64*)
 
9804
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9805
          ;;
 
9806
        *)
 
9807
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9808
          ;;
 
9809
        esac
 
9810
      else
 
9811
        case $host_cpu in
 
9812
        hppa*64*)
 
9813
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9814
          ;;
 
9815
        ia64*)
 
9816
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9817
          ;;
 
9818
        *)
 
9819
 
 
9820
          # Older versions of the 11.00 compiler do not understand -b yet
 
9821
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9822
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9823
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9824
if ${lt_cv_prog_compiler__b+:} false; then :
 
9825
  $as_echo_n "(cached) " >&6
 
9826
else
 
9827
  lt_cv_prog_compiler__b=no
 
9828
   save_LDFLAGS="$LDFLAGS"
 
9829
   LDFLAGS="$LDFLAGS -b"
 
9830
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9831
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9832
     # The linker can only warn and ignore the option if not recognized
 
9833
     # So say no if there are warnings
 
9834
     if test -s conftest.err; then
 
9835
       # Append any errors to the config.log.
 
9836
       cat conftest.err 1>&5
 
9837
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9838
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9839
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9840
         lt_cv_prog_compiler__b=yes
 
9841
       fi
 
9842
     else
 
9843
       lt_cv_prog_compiler__b=yes
 
9844
     fi
 
9845
   fi
 
9846
   $RM -r conftest*
 
9847
   LDFLAGS="$save_LDFLAGS"
 
9848
 
 
9849
fi
 
9850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9851
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9852
 
 
9853
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9854
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9855
else
 
9856
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9857
fi
 
9858
 
 
9859
          ;;
 
9860
        esac
 
9861
      fi
 
9862
      if test "$with_gnu_ld" = no; then
 
9863
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9864
        hardcode_libdir_separator=:
 
9865
 
 
9866
        case $host_cpu in
 
9867
        hppa*64*|ia64*)
 
9868
          hardcode_direct=no
 
9869
          hardcode_shlibpath_var=no
 
9870
          ;;
 
9871
        *)
 
9872
          hardcode_direct=yes
 
9873
          hardcode_direct_absolute=yes
 
9874
          export_dynamic_flag_spec='${wl}-E'
 
9875
 
 
9876
          # hardcode_minus_L: Not really in the search PATH,
 
9877
          # but as the default location of the library.
 
9878
          hardcode_minus_L=yes
 
9879
          ;;
 
9880
        esac
 
9881
      fi
 
9882
      ;;
 
9883
 
 
9884
    irix5* | irix6* | nonstopux*)
 
9885
      if test "$GCC" = yes; then
 
9886
        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'
 
9887
        # Try to use the -exported_symbol ld option, if it does not
 
9888
        # work, assume that -exports_file does not work either and
 
9889
        # implicitly export all symbols.
 
9890
        # This should be the same for all languages, so no per-tag cache variable.
 
9891
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9892
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9893
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9894
  $as_echo_n "(cached) " >&6
 
9895
else
 
9896
  save_LDFLAGS="$LDFLAGS"
 
9897
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9898
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9899
/* end confdefs.h.  */
 
9900
int foo (void) { return 0; }
 
9901
_ACEOF
 
9902
if ac_fn_c_try_link "$LINENO"; then :
 
9903
  lt_cv_irix_exported_symbol=yes
 
9904
else
 
9905
  lt_cv_irix_exported_symbol=no
 
9906
fi
 
9907
rm -f core conftest.err conftest.$ac_objext \
 
9908
    conftest$ac_exeext conftest.$ac_ext
 
9909
           LDFLAGS="$save_LDFLAGS"
 
9910
fi
 
9911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9912
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9913
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9914
          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'
 
9915
        fi
 
9916
      else
 
9917
        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'
 
9918
        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'
 
9919
      fi
 
9920
      archive_cmds_need_lc='no'
 
9921
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9922
      hardcode_libdir_separator=:
 
9923
      inherit_rpath=yes
 
9924
      link_all_deplibs=yes
 
9925
      ;;
 
9926
 
 
9927
    netbsd*)
 
9928
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9929
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9930
      else
 
9931
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9932
      fi
 
9933
      hardcode_libdir_flag_spec='-R$libdir'
 
9934
      hardcode_direct=yes
 
9935
      hardcode_shlibpath_var=no
 
9936
      ;;
 
9937
 
 
9938
    newsos6)
 
9939
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9940
      hardcode_direct=yes
 
9941
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9942
      hardcode_libdir_separator=:
 
9943
      hardcode_shlibpath_var=no
 
9944
      ;;
 
9945
 
 
9946
    *nto* | *qnx*)
 
9947
      ;;
 
9948
 
 
9949
    openbsd*)
 
9950
      if test -f /usr/libexec/ld.so; then
 
9951
        hardcode_direct=yes
 
9952
        hardcode_shlibpath_var=no
 
9953
        hardcode_direct_absolute=yes
 
9954
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9955
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9956
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9957
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9958
          export_dynamic_flag_spec='${wl}-E'
 
9959
        else
 
9960
          case $host_os in
 
9961
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9962
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9963
             hardcode_libdir_flag_spec='-R$libdir'
 
9964
             ;;
 
9965
           *)
 
9966
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9967
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9968
             ;;
 
9969
          esac
 
9970
        fi
 
9971
      else
 
9972
        ld_shlibs=no
 
9973
      fi
 
9974
      ;;
 
9975
 
 
9976
    os2*)
 
9977
      hardcode_libdir_flag_spec='-L$libdir'
 
9978
      hardcode_minus_L=yes
 
9979
      allow_undefined_flag=unsupported
 
9980
      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'
 
9981
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9982
      ;;
 
9983
 
 
9984
    osf3*)
 
9985
      if test "$GCC" = yes; then
 
9986
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9987
        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'
 
9988
      else
 
9989
        allow_undefined_flag=' -expect_unresolved \*'
 
9990
        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'
 
9991
      fi
 
9992
      archive_cmds_need_lc='no'
 
9993
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9994
      hardcode_libdir_separator=:
 
9995
      ;;
 
9996
 
 
9997
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9998
      if test "$GCC" = yes; then
 
9999
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10000
        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'
 
10001
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10002
      else
 
10003
        allow_undefined_flag=' -expect_unresolved \*'
 
10004
        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'
 
10005
        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~
 
10006
        $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'
 
10007
 
 
10008
        # Both c and cxx compiler support -rpath directly
 
10009
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10010
      fi
 
10011
      archive_cmds_need_lc='no'
 
10012
      hardcode_libdir_separator=:
 
10013
      ;;
 
10014
 
 
10015
    solaris*)
 
10016
      no_undefined_flag=' -z defs'
 
10017
      if test "$GCC" = yes; then
 
10018
        wlarc='${wl}'
 
10019
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10020
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10021
          $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'
 
10022
      else
 
10023
        case `$CC -V 2>&1` in
 
10024
        *"Compilers 5.0"*)
 
10025
          wlarc=''
 
10026
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10027
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10028
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10029
          ;;
 
10030
        *)
 
10031
          wlarc='${wl}'
 
10032
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10033
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10034
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10035
          ;;
 
10036
        esac
 
10037
      fi
 
10038
      hardcode_libdir_flag_spec='-R$libdir'
 
10039
      hardcode_shlibpath_var=no
 
10040
      case $host_os in
 
10041
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10042
      *)
 
10043
        # The compiler driver will combine and reorder linker options,
 
10044
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10045
        # but is careful enough not to reorder.
 
10046
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10047
        if test "$GCC" = yes; then
 
10048
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10049
        else
 
10050
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10051
        fi
 
10052
        ;;
 
10053
      esac
 
10054
      link_all_deplibs=yes
 
10055
      ;;
 
10056
 
 
10057
    sunos4*)
 
10058
      if test "x$host_vendor" = xsequent; then
 
10059
        # Use $CC to link under sequent, because it throws in some extra .o
 
10060
        # files that make .init and .fini sections work.
 
10061
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10062
      else
 
10063
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10064
      fi
 
10065
      hardcode_libdir_flag_spec='-L$libdir'
 
10066
      hardcode_direct=yes
 
10067
      hardcode_minus_L=yes
 
10068
      hardcode_shlibpath_var=no
 
10069
      ;;
 
10070
 
 
10071
    sysv4)
 
10072
      case $host_vendor in
 
10073
        sni)
 
10074
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10075
          hardcode_direct=yes # is this really true???
 
10076
        ;;
 
10077
        siemens)
 
10078
          ## LD is ld it makes a PLAMLIB
 
10079
          ## CC just makes a GrossModule.
 
10080
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10081
          reload_cmds='$CC -r -o $output$reload_objs'
 
10082
          hardcode_direct=no
 
10083
        ;;
 
10084
        motorola)
 
10085
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10086
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10087
        ;;
 
10088
      esac
 
10089
      runpath_var='LD_RUN_PATH'
 
10090
      hardcode_shlibpath_var=no
 
10091
      ;;
 
10092
 
 
10093
    sysv4.3*)
 
10094
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10095
      hardcode_shlibpath_var=no
 
10096
      export_dynamic_flag_spec='-Bexport'
 
10097
      ;;
 
10098
 
 
10099
    sysv4*MP*)
 
10100
      if test -d /usr/nec; then
 
10101
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10102
        hardcode_shlibpath_var=no
 
10103
        runpath_var=LD_RUN_PATH
 
10104
        hardcode_runpath_var=yes
 
10105
        ld_shlibs=yes
 
10106
      fi
 
10107
      ;;
 
10108
 
 
10109
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10110
      no_undefined_flag='${wl}-z,text'
 
10111
      archive_cmds_need_lc=no
 
10112
      hardcode_shlibpath_var=no
 
10113
      runpath_var='LD_RUN_PATH'
 
10114
 
 
10115
      if test "$GCC" = yes; then
 
10116
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10117
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10118
      else
 
10119
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10120
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10121
      fi
 
10122
      ;;
 
10123
 
 
10124
    sysv5* | sco3.2v5* | sco5v6*)
 
10125
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10126
      # link with -lc, and that would cause any symbols used from libc to
 
10127
      # always be unresolved, which means just about no library would
 
10128
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10129
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10130
      # as -z defs.
 
10131
      no_undefined_flag='${wl}-z,text'
 
10132
      allow_undefined_flag='${wl}-z,nodefs'
 
10133
      archive_cmds_need_lc=no
 
10134
      hardcode_shlibpath_var=no
 
10135
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10136
      hardcode_libdir_separator=':'
 
10137
      link_all_deplibs=yes
 
10138
      export_dynamic_flag_spec='${wl}-Bexport'
 
10139
      runpath_var='LD_RUN_PATH'
 
10140
 
 
10141
      if test "$GCC" = yes; then
 
10142
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10143
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10144
      else
 
10145
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10146
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10147
      fi
 
10148
      ;;
 
10149
 
 
10150
    uts4*)
 
10151
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10152
      hardcode_libdir_flag_spec='-L$libdir'
 
10153
      hardcode_shlibpath_var=no
 
10154
      ;;
 
10155
 
 
10156
    *)
 
10157
      ld_shlibs=no
 
10158
      ;;
 
10159
    esac
 
10160
 
 
10161
    if test x$host_vendor = xsni; then
 
10162
      case $host in
 
10163
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10164
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10165
        ;;
 
10166
      esac
 
10167
    fi
 
10168
  fi
 
10169
 
 
10170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10171
$as_echo "$ld_shlibs" >&6; }
 
10172
test "$ld_shlibs" = no && can_build_shared=no
 
10173
 
 
10174
with_gnu_ld=$with_gnu_ld
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
 
 
10185
 
 
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
#
 
10191
# Do we need to explicitly link libc?
 
10192
#
 
10193
case "x$archive_cmds_need_lc" in
 
10194
x|xyes)
 
10195
  # Assume -lc should be added
 
10196
  archive_cmds_need_lc=yes
 
10197
 
 
10198
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10199
    case $archive_cmds in
 
10200
    *'~'*)
 
10201
      # FIXME: we may have to deal with multi-command sequences.
 
10202
      ;;
 
10203
    '$CC '*)
 
10204
      # Test whether the compiler implicitly links with -lc since on some
 
10205
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10206
      # to ld, don't add -lc before -lgcc.
 
10207
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10208
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10209
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10210
  $as_echo_n "(cached) " >&6
 
10211
else
 
10212
  $RM conftest*
 
10213
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10214
 
 
10215
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10216
  (eval $ac_compile) 2>&5
 
10217
  ac_status=$?
 
10218
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10219
  test $ac_status = 0; } 2>conftest.err; then
 
10220
          soname=conftest
 
10221
          lib=conftest
 
10222
          libobjs=conftest.$ac_objext
 
10223
          deplibs=
 
10224
          wl=$lt_prog_compiler_wl
 
10225
          pic_flag=$lt_prog_compiler_pic
 
10226
          compiler_flags=-v
 
10227
          linker_flags=-v
 
10228
          verstring=
 
10229
          output_objdir=.
 
10230
          libname=conftest
 
10231
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10232
          allow_undefined_flag=
 
10233
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10234
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10235
  ac_status=$?
 
10236
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10237
  test $ac_status = 0; }
 
10238
          then
 
10239
            lt_cv_archive_cmds_need_lc=no
 
10240
          else
 
10241
            lt_cv_archive_cmds_need_lc=yes
 
10242
          fi
 
10243
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10244
        else
 
10245
          cat conftest.err 1>&5
 
10246
        fi
 
10247
        $RM conftest*
 
10248
 
 
10249
fi
 
10250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10251
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10252
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10253
      ;;
 
10254
    esac
 
10255
  fi
 
10256
  ;;
 
10257
esac
 
10258
 
 
10259
 
 
10260
 
 
10261
 
 
10262
 
 
10263
 
 
10264
 
 
10265
 
 
10266
 
 
10267
 
 
10268
 
 
10269
 
 
10270
 
 
10271
 
 
10272
 
 
10273
 
 
10274
 
 
10275
 
 
10276
 
 
10277
 
 
10278
 
 
10279
 
 
10280
 
 
10281
 
 
10282
 
 
10283
 
 
10284
 
 
10285
 
 
10286
 
 
10287
 
 
10288
 
 
10289
 
 
10290
 
 
10291
 
 
10292
 
 
10293
 
 
10294
 
 
10295
 
 
10296
 
 
10297
 
 
10298
 
 
10299
 
 
10300
 
 
10301
 
 
10302
 
 
10303
 
 
10304
 
 
10305
 
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
 
10330
 
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10416
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10417
 
 
10418
if test "$GCC" = yes; then
 
10419
  case $host_os in
 
10420
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10421
    *) lt_awk_arg="/^libraries:/" ;;
 
10422
  esac
 
10423
  case $host_os in
 
10424
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10425
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10426
  esac
 
10427
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10428
  case $lt_search_path_spec in
 
10429
  *\;*)
 
10430
    # if the path contains ";" then we assume it to be the separator
 
10431
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10432
    # assumed that no part of a normal pathname contains ";" but that should
 
10433
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10434
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10435
    ;;
 
10436
  *)
 
10437
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10438
    ;;
 
10439
  esac
 
10440
  # Ok, now we have the path, separated by spaces, we can step through it
 
10441
  # and add multilib dir if necessary.
 
10442
  lt_tmp_lt_search_path_spec=
 
10443
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10444
  for lt_sys_path in $lt_search_path_spec; do
 
10445
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10446
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10447
    else
 
10448
      test -d "$lt_sys_path" && \
 
10449
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10450
    fi
 
10451
  done
 
10452
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10453
BEGIN {RS=" "; FS="/|\n";} {
 
10454
  lt_foo="";
 
10455
  lt_count=0;
 
10456
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10457
    if ($lt_i != "" && $lt_i != ".") {
 
10458
      if ($lt_i == "..") {
 
10459
        lt_count++;
 
10460
      } else {
 
10461
        if (lt_count == 0) {
 
10462
          lt_foo="/" $lt_i lt_foo;
 
10463
        } else {
 
10464
          lt_count--;
 
10465
        }
 
10466
      }
 
10467
    }
 
10468
  }
 
10469
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10470
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10471
}'`
 
10472
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10473
  # for these hosts.
 
10474
  case $host_os in
 
10475
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10476
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10477
  esac
 
10478
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10479
else
 
10480
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10481
fi
 
10482
library_names_spec=
 
10483
libname_spec='lib$name'
 
10484
soname_spec=
 
10485
shrext_cmds=".so"
 
10486
postinstall_cmds=
 
10487
postuninstall_cmds=
 
10488
finish_cmds=
 
10489
finish_eval=
 
10490
shlibpath_var=
 
10491
shlibpath_overrides_runpath=unknown
 
10492
version_type=none
 
10493
dynamic_linker="$host_os ld.so"
 
10494
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10495
need_lib_prefix=unknown
 
10496
hardcode_into_libs=no
 
10497
 
 
10498
# when you set need_version to no, make sure it does not cause -set_version
 
10499
# flags to be left without arguments
 
10500
need_version=unknown
 
10501
 
 
10502
case $host_os in
 
10503
aix3*)
 
10504
  version_type=linux
 
10505
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10506
  shlibpath_var=LIBPATH
 
10507
 
 
10508
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10509
  soname_spec='${libname}${release}${shared_ext}$major'
 
10510
  ;;
 
10511
 
 
10512
aix[4-9]*)
 
10513
  version_type=linux
 
10514
  need_lib_prefix=no
 
10515
  need_version=no
 
10516
  hardcode_into_libs=yes
 
10517
  if test "$host_cpu" = ia64; then
 
10518
    # AIX 5 supports IA64
 
10519
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10520
    shlibpath_var=LD_LIBRARY_PATH
 
10521
  else
 
10522
    # With GCC up to 2.95.x, collect2 would create an import file
 
10523
    # for dependence libraries.  The import file would start with
 
10524
    # the line `#! .'.  This would cause the generated library to
 
10525
    # depend on `.', always an invalid library.  This was fixed in
 
10526
    # development snapshots of GCC prior to 3.0.
 
10527
    case $host_os in
 
10528
      aix4 | aix4.[01] | aix4.[01].*)
 
10529
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10530
           echo ' yes '
 
10531
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10532
        :
 
10533
      else
 
10534
        can_build_shared=no
 
10535
      fi
 
10536
      ;;
 
10537
    esac
 
10538
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10539
    # soname into executable. Probably we can add versioning support to
 
10540
    # collect2, so additional links can be useful in future.
 
10541
    if test "$aix_use_runtimelinking" = yes; then
 
10542
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10543
      # instead of lib<name>.a to let people know that these are not
 
10544
      # typical AIX shared libraries.
 
10545
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10546
    else
 
10547
      # We preserve .a as extension for shared libraries through AIX4.2
 
10548
      # and later when we are not doing run time linking.
 
10549
      library_names_spec='${libname}${release}.a $libname.a'
 
10550
      soname_spec='${libname}${release}${shared_ext}$major'
 
10551
    fi
 
10552
    shlibpath_var=LIBPATH
 
10553
  fi
 
10554
  ;;
 
10555
 
 
10556
amigaos*)
 
10557
  case $host_cpu in
 
10558
  powerpc)
 
10559
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10560
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10561
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10562
    ;;
 
10563
  m68k)
 
10564
    library_names_spec='$libname.ixlibrary $libname.a'
 
10565
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10566
    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'
 
10567
    ;;
 
10568
  esac
 
10569
  ;;
 
10570
 
 
10571
beos*)
 
10572
  library_names_spec='${libname}${shared_ext}'
 
10573
  dynamic_linker="$host_os ld.so"
 
10574
  shlibpath_var=LIBRARY_PATH
 
10575
  ;;
 
10576
 
 
10577
bsdi[45]*)
 
10578
  version_type=linux
 
10579
  need_version=no
 
10580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10581
  soname_spec='${libname}${release}${shared_ext}$major'
 
10582
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10583
  shlibpath_var=LD_LIBRARY_PATH
 
10584
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10585
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10586
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10587
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10588
  # libtool to hard-code these into programs
 
10589
  ;;
 
10590
 
 
10591
cygwin* | mingw* | pw32* | cegcc*)
 
10592
  version_type=windows
 
10593
  shrext_cmds=".dll"
 
10594
  need_version=no
 
10595
  need_lib_prefix=no
 
10596
 
 
10597
  case $GCC,$cc_basename in
 
10598
  yes,*)
 
10599
    # gcc
 
10600
    library_names_spec='$libname.dll.a'
 
10601
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10602
    postinstall_cmds='base_file=`basename \${file}`~
 
10603
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10604
      dldir=$destdir/`dirname \$dlpath`~
 
10605
      test -d \$dldir || mkdir -p \$dldir~
 
10606
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10607
      chmod a+x \$dldir/$dlname~
 
10608
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10609
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10610
      fi'
 
10611
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10612
      dlpath=$dir/\$dldll~
 
10613
       $RM \$dlpath'
 
10614
    shlibpath_overrides_runpath=yes
 
10615
 
 
10616
    case $host_os in
 
10617
    cygwin*)
 
10618
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10619
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10620
 
 
10621
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10622
      ;;
 
10623
    mingw* | cegcc*)
 
10624
      # MinGW DLLs use traditional 'lib' prefix
 
10625
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10626
      ;;
 
10627
    pw32*)
 
10628
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10629
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10630
      ;;
 
10631
    esac
 
10632
    dynamic_linker='Win32 ld.exe'
 
10633
    ;;
 
10634
 
 
10635
  *,cl*)
 
10636
    # Native MSVC
 
10637
    libname_spec='$name'
 
10638
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10639
    library_names_spec='${libname}.dll.lib'
 
10640
 
 
10641
    case $build_os in
 
10642
    mingw*)
 
10643
      sys_lib_search_path_spec=
 
10644
      lt_save_ifs=$IFS
 
10645
      IFS=';'
 
10646
      for lt_path in $LIB
 
10647
      do
 
10648
        IFS=$lt_save_ifs
 
10649
        # Let DOS variable expansion print the short 8.3 style file name.
 
10650
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10651
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10652
      done
 
10653
      IFS=$lt_save_ifs
 
10654
      # Convert to MSYS style.
 
10655
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10656
      ;;
 
10657
    cygwin*)
 
10658
      # Convert to unix form, then to dos form, then back to unix form
 
10659
      # but this time dos style (no spaces!) so that the unix form looks
 
10660
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10661
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10662
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10663
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10664
      ;;
 
10665
    *)
 
10666
      sys_lib_search_path_spec="$LIB"
 
10667
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10668
        # It is most probably a Windows format PATH.
 
10669
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10670
      else
 
10671
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10672
      fi
 
10673
      # FIXME: find the short name or the path components, as spaces are
 
10674
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10675
      ;;
 
10676
    esac
 
10677
 
 
10678
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10679
    postinstall_cmds='base_file=`basename \${file}`~
 
10680
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10681
      dldir=$destdir/`dirname \$dlpath`~
 
10682
      test -d \$dldir || mkdir -p \$dldir~
 
10683
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10684
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10685
      dlpath=$dir/\$dldll~
 
10686
       $RM \$dlpath'
 
10687
    shlibpath_overrides_runpath=yes
 
10688
    dynamic_linker='Win32 link.exe'
 
10689
    ;;
 
10690
 
 
10691
  *)
 
10692
    # Assume MSVC wrapper
 
10693
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10694
    dynamic_linker='Win32 ld.exe'
 
10695
    ;;
 
10696
  esac
 
10697
  # FIXME: first we should search . and the directory the executable is in
 
10698
  shlibpath_var=PATH
 
10699
  ;;
 
10700
 
 
10701
darwin* | rhapsody*)
 
10702
  dynamic_linker="$host_os dyld"
 
10703
  version_type=darwin
 
10704
  need_lib_prefix=no
 
10705
  need_version=no
 
10706
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10707
  soname_spec='${libname}${release}${major}$shared_ext'
 
10708
  shlibpath_overrides_runpath=yes
 
10709
  shlibpath_var=DYLD_LIBRARY_PATH
 
10710
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10711
 
 
10712
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10713
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10714
  ;;
 
10715
 
 
10716
dgux*)
 
10717
  version_type=linux
 
10718
  need_lib_prefix=no
 
10719
  need_version=no
 
10720
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10721
  soname_spec='${libname}${release}${shared_ext}$major'
 
10722
  shlibpath_var=LD_LIBRARY_PATH
 
10723
  ;;
 
10724
 
 
10725
freebsd1*)
 
10726
  dynamic_linker=no
 
10727
  ;;
 
10728
 
 
10729
freebsd* | dragonfly*)
 
10730
  # DragonFly does not have aout.  When/if they implement a new
 
10731
  # versioning mechanism, adjust this.
 
10732
  if test -x /usr/bin/objformat; then
 
10733
    objformat=`/usr/bin/objformat`
 
10734
  else
 
10735
    case $host_os in
 
10736
    freebsd[123]*) objformat=aout ;;
 
10737
    *) objformat=elf ;;
 
10738
    esac
 
10739
  fi
 
10740
  version_type=freebsd-$objformat
 
10741
  case $version_type in
 
10742
    freebsd-elf*)
 
10743
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10744
      need_version=no
 
10745
      need_lib_prefix=no
 
10746
      ;;
 
10747
    freebsd-*)
 
10748
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10749
      need_version=yes
 
10750
      ;;
 
10751
  esac
 
10752
  shlibpath_var=LD_LIBRARY_PATH
 
10753
  case $host_os in
 
10754
  freebsd2*)
 
10755
    shlibpath_overrides_runpath=yes
 
10756
    ;;
 
10757
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10758
    shlibpath_overrides_runpath=yes
 
10759
    hardcode_into_libs=yes
 
10760
    ;;
 
10761
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10762
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10763
    shlibpath_overrides_runpath=no
 
10764
    hardcode_into_libs=yes
 
10765
    ;;
 
10766
  *) # from 4.6 on, and DragonFly
 
10767
    shlibpath_overrides_runpath=yes
 
10768
    hardcode_into_libs=yes
 
10769
    ;;
 
10770
  esac
 
10771
  ;;
 
10772
 
 
10773
gnu*)
 
10774
  version_type=linux
 
10775
  need_lib_prefix=no
 
10776
  need_version=no
 
10777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10778
  soname_spec='${libname}${release}${shared_ext}$major'
 
10779
  shlibpath_var=LD_LIBRARY_PATH
 
10780
  hardcode_into_libs=yes
 
10781
  ;;
 
10782
 
 
10783
haiku*)
 
10784
  version_type=linux
 
10785
  need_lib_prefix=no
 
10786
  need_version=no
 
10787
  dynamic_linker="$host_os runtime_loader"
 
10788
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10789
  soname_spec='${libname}${release}${shared_ext}$major'
 
10790
  shlibpath_var=LIBRARY_PATH
 
10791
  shlibpath_overrides_runpath=yes
 
10792
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10793
  hardcode_into_libs=yes
 
10794
  ;;
 
10795
 
 
10796
hpux9* | hpux10* | hpux11*)
 
10797
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10798
  # link against other versions.
 
10799
  version_type=sunos
 
10800
  need_lib_prefix=no
 
10801
  need_version=no
 
10802
  case $host_cpu in
 
10803
  ia64*)
 
10804
    shrext_cmds='.so'
 
10805
    hardcode_into_libs=yes
 
10806
    dynamic_linker="$host_os dld.so"
 
10807
    shlibpath_var=LD_LIBRARY_PATH
 
10808
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10809
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10810
    soname_spec='${libname}${release}${shared_ext}$major'
 
10811
    if test "X$HPUX_IA64_MODE" = X32; then
 
10812
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10813
    else
 
10814
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10815
    fi
 
10816
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10817
    ;;
 
10818
  hppa*64*)
 
10819
    shrext_cmds='.sl'
 
10820
    hardcode_into_libs=yes
 
10821
    dynamic_linker="$host_os dld.sl"
 
10822
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10823
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10824
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10825
    soname_spec='${libname}${release}${shared_ext}$major'
 
10826
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10827
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10828
    ;;
 
10829
  *)
 
10830
    shrext_cmds='.sl'
 
10831
    dynamic_linker="$host_os dld.sl"
 
10832
    shlibpath_var=SHLIB_PATH
 
10833
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10834
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10835
    soname_spec='${libname}${release}${shared_ext}$major'
 
10836
    ;;
 
10837
  esac
 
10838
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10839
  postinstall_cmds='chmod 555 $lib'
 
10840
  # or fails outright, so override atomically:
 
10841
  install_override_mode=555
 
10842
  ;;
 
10843
 
 
10844
interix[3-9]*)
 
10845
  version_type=linux
 
10846
  need_lib_prefix=no
 
10847
  need_version=no
 
10848
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10849
  soname_spec='${libname}${release}${shared_ext}$major'
 
10850
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10851
  shlibpath_var=LD_LIBRARY_PATH
 
10852
  shlibpath_overrides_runpath=no
 
10853
  hardcode_into_libs=yes
 
10854
  ;;
 
10855
 
 
10856
irix5* | irix6* | nonstopux*)
 
10857
  case $host_os in
 
10858
    nonstopux*) version_type=nonstopux ;;
 
10859
    *)
 
10860
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10861
                version_type=linux
 
10862
        else
 
10863
                version_type=irix
 
10864
        fi ;;
 
10865
  esac
 
10866
  need_lib_prefix=no
 
10867
  need_version=no
 
10868
  soname_spec='${libname}${release}${shared_ext}$major'
 
10869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10870
  case $host_os in
 
10871
  irix5* | nonstopux*)
 
10872
    libsuff= shlibsuff=
 
10873
    ;;
 
10874
  *)
 
10875
    case $LD in # libtool.m4 will add one of these switches to LD
 
10876
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10877
      libsuff= shlibsuff= libmagic=32-bit;;
 
10878
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10879
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10880
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10881
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10882
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10883
    esac
 
10884
    ;;
 
10885
  esac
 
10886
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10887
  shlibpath_overrides_runpath=no
 
10888
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10889
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10890
  hardcode_into_libs=yes
 
10891
  ;;
 
10892
 
 
10893
# No shared lib support for Linux oldld, aout, or coff.
 
10894
linux*oldld* | linux*aout* | linux*coff*)
 
10895
  dynamic_linker=no
 
10896
  ;;
 
10897
 
 
10898
# This must be Linux ELF.
 
10899
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10900
  version_type=linux
 
10901
  need_lib_prefix=no
 
10902
  need_version=no
 
10903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10904
  soname_spec='${libname}${release}${shared_ext}$major'
 
10905
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10906
  shlibpath_var=LD_LIBRARY_PATH
 
10907
  shlibpath_overrides_runpath=no
 
10908
 
 
10909
  # Some binutils ld are patched to set DT_RUNPATH
 
10910
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10911
  $as_echo_n "(cached) " >&6
 
10912
else
 
10913
  lt_cv_shlibpath_overrides_runpath=no
 
10914
    save_LDFLAGS=$LDFLAGS
 
10915
    save_libdir=$libdir
 
10916
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10917
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10918
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10919
/* end confdefs.h.  */
 
10920
 
 
10921
int
 
10922
main ()
 
10923
{
 
10924
 
 
10925
  ;
 
10926
  return 0;
 
10927
}
 
10928
_ACEOF
 
10929
if ac_fn_c_try_link "$LINENO"; then :
 
10930
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10931
  lt_cv_shlibpath_overrides_runpath=yes
 
10932
fi
 
10933
fi
 
10934
rm -f core conftest.err conftest.$ac_objext \
 
10935
    conftest$ac_exeext conftest.$ac_ext
 
10936
    LDFLAGS=$save_LDFLAGS
 
10937
    libdir=$save_libdir
 
10938
 
 
10939
fi
 
10940
 
 
10941
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10942
 
 
10943
  # This implies no fast_install, which is unacceptable.
 
10944
  # Some rework will be needed to allow for fast_install
 
10945
  # before this can be enabled.
 
10946
  hardcode_into_libs=yes
 
10947
 
 
10948
  # Add ABI-specific directories to the system library path.
 
10949
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
10950
 
 
10951
  # Append ld.so.conf contents to the search path
 
10952
  if test -f /etc/ld.so.conf; then
 
10953
    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' ' '`
 
10954
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
10955
 
 
10956
  fi
 
10957
 
 
10958
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10959
  # powerpc, because MkLinux only supported shared libraries with the
 
10960
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10961
  # most powerpc-linux boxes support dynamic linking these days and
 
10962
  # people can always --disable-shared, the test was removed, and we
 
10963
  # assume the GNU/Linux dynamic linker is in use.
 
10964
  dynamic_linker='GNU/Linux ld.so'
 
10965
  ;;
 
10966
 
 
10967
netbsd*)
 
10968
  version_type=sunos
 
10969
  need_lib_prefix=no
 
10970
  need_version=no
 
10971
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10972
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10973
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10974
    dynamic_linker='NetBSD (a.out) ld.so'
 
10975
  else
 
10976
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10977
    soname_spec='${libname}${release}${shared_ext}$major'
 
10978
    dynamic_linker='NetBSD ld.elf_so'
 
10979
  fi
 
10980
  shlibpath_var=LD_LIBRARY_PATH
 
10981
  shlibpath_overrides_runpath=yes
 
10982
  hardcode_into_libs=yes
 
10983
  ;;
 
10984
 
 
10985
newsos6)
 
10986
  version_type=linux
 
10987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10988
  shlibpath_var=LD_LIBRARY_PATH
 
10989
  shlibpath_overrides_runpath=yes
 
10990
  ;;
 
10991
 
 
10992
*nto* | *qnx*)
 
10993
  version_type=qnx
 
10994
  need_lib_prefix=no
 
10995
  need_version=no
 
10996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10997
  soname_spec='${libname}${release}${shared_ext}$major'
 
10998
  shlibpath_var=LD_LIBRARY_PATH
 
10999
  shlibpath_overrides_runpath=no
 
11000
  hardcode_into_libs=yes
 
11001
  dynamic_linker='ldqnx.so'
 
11002
  ;;
 
11003
 
 
11004
openbsd*)
 
11005
  version_type=sunos
 
11006
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11007
  need_lib_prefix=no
 
11008
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11009
  case $host_os in
 
11010
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11011
    *)                          need_version=no  ;;
 
11012
  esac
 
11013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11014
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11015
  shlibpath_var=LD_LIBRARY_PATH
 
11016
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11017
    case $host_os in
 
11018
      openbsd2.[89] | openbsd2.[89].*)
 
11019
        shlibpath_overrides_runpath=no
 
11020
        ;;
 
11021
      *)
 
11022
        shlibpath_overrides_runpath=yes
 
11023
        ;;
 
11024
      esac
 
11025
  else
 
11026
    shlibpath_overrides_runpath=yes
 
11027
  fi
 
11028
  ;;
 
11029
 
 
11030
os2*)
 
11031
  libname_spec='$name'
 
11032
  shrext_cmds=".dll"
 
11033
  need_lib_prefix=no
 
11034
  library_names_spec='$libname${shared_ext} $libname.a'
 
11035
  dynamic_linker='OS/2 ld.exe'
 
11036
  shlibpath_var=LIBPATH
 
11037
  ;;
 
11038
 
 
11039
osf3* | osf4* | osf5*)
 
11040
  version_type=osf
 
11041
  need_lib_prefix=no
 
11042
  need_version=no
 
11043
  soname_spec='${libname}${release}${shared_ext}$major'
 
11044
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11045
  shlibpath_var=LD_LIBRARY_PATH
 
11046
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11047
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11048
  ;;
 
11049
 
 
11050
rdos*)
 
11051
  dynamic_linker=no
 
11052
  ;;
 
11053
 
 
11054
solaris*)
 
11055
  version_type=linux
 
11056
  need_lib_prefix=no
 
11057
  need_version=no
 
11058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11059
  soname_spec='${libname}${release}${shared_ext}$major'
 
11060
  shlibpath_var=LD_LIBRARY_PATH
 
11061
  shlibpath_overrides_runpath=yes
 
11062
  hardcode_into_libs=yes
 
11063
  # ldd complains unless libraries are executable
 
11064
  postinstall_cmds='chmod +x $lib'
 
11065
  ;;
 
11066
 
 
11067
sunos4*)
 
11068
  version_type=sunos
 
11069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11070
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11071
  shlibpath_var=LD_LIBRARY_PATH
 
11072
  shlibpath_overrides_runpath=yes
 
11073
  if test "$with_gnu_ld" = yes; then
 
11074
    need_lib_prefix=no
 
11075
  fi
 
11076
  need_version=yes
 
11077
  ;;
 
11078
 
 
11079
sysv4 | sysv4.3*)
 
11080
  version_type=linux
 
11081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11082
  soname_spec='${libname}${release}${shared_ext}$major'
 
11083
  shlibpath_var=LD_LIBRARY_PATH
 
11084
  case $host_vendor in
 
11085
    sni)
 
11086
      shlibpath_overrides_runpath=no
 
11087
      need_lib_prefix=no
 
11088
      runpath_var=LD_RUN_PATH
 
11089
      ;;
 
11090
    siemens)
 
11091
      need_lib_prefix=no
 
11092
      ;;
 
11093
    motorola)
 
11094
      need_lib_prefix=no
 
11095
      need_version=no
 
11096
      shlibpath_overrides_runpath=no
 
11097
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11098
      ;;
 
11099
  esac
 
11100
  ;;
 
11101
 
 
11102
sysv4*MP*)
 
11103
  if test -d /usr/nec ;then
 
11104
    version_type=linux
 
11105
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11106
    soname_spec='$libname${shared_ext}.$major'
 
11107
    shlibpath_var=LD_LIBRARY_PATH
 
11108
  fi
 
11109
  ;;
 
11110
 
 
11111
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11112
  version_type=freebsd-elf
 
11113
  need_lib_prefix=no
 
11114
  need_version=no
 
11115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11116
  soname_spec='${libname}${release}${shared_ext}$major'
 
11117
  shlibpath_var=LD_LIBRARY_PATH
 
11118
  shlibpath_overrides_runpath=yes
 
11119
  hardcode_into_libs=yes
 
11120
  if test "$with_gnu_ld" = yes; then
 
11121
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11122
  else
 
11123
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11124
    case $host_os in
 
11125
      sco3.2v5*)
 
11126
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11127
        ;;
 
11128
    esac
 
11129
  fi
 
11130
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11131
  ;;
 
11132
 
 
11133
tpf*)
 
11134
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11135
  version_type=linux
 
11136
  need_lib_prefix=no
 
11137
  need_version=no
 
11138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11139
  shlibpath_var=LD_LIBRARY_PATH
 
11140
  shlibpath_overrides_runpath=no
 
11141
  hardcode_into_libs=yes
 
11142
  ;;
 
11143
 
 
11144
uts4*)
 
11145
  version_type=linux
 
11146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11147
  soname_spec='${libname}${release}${shared_ext}$major'
 
11148
  shlibpath_var=LD_LIBRARY_PATH
 
11149
  ;;
 
11150
 
 
11151
*)
 
11152
  dynamic_linker=no
 
11153
  ;;
 
11154
esac
 
11155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11156
$as_echo "$dynamic_linker" >&6; }
 
11157
test "$dynamic_linker" = no && can_build_shared=no
 
11158
 
 
11159
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11160
if test "$GCC" = yes; then
 
11161
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11162
fi
 
11163
 
 
11164
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11165
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11166
fi
 
11167
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11168
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11169
fi
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
 
 
11216
 
 
11217
 
 
11218
 
 
11219
 
 
11220
 
 
11221
 
 
11222
 
 
11223
 
 
11224
 
 
11225
 
 
11226
 
 
11227
 
 
11228
 
 
11229
 
 
11230
 
 
11231
 
 
11232
 
 
11233
 
 
11234
 
 
11235
 
 
11236
 
 
11237
 
 
11238
 
 
11239
 
 
11240
 
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
 
11250
 
 
11251
 
 
11252
 
 
11253
 
 
11254
 
 
11255
 
 
11256
 
 
11257
 
 
11258
 
 
11259
 
 
11260
 
 
11261
 
 
11262
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11263
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11264
hardcode_action=
 
11265
if test -n "$hardcode_libdir_flag_spec" ||
 
11266
   test -n "$runpath_var" ||
 
11267
   test "X$hardcode_automatic" = "Xyes" ; then
 
11268
 
 
11269
  # We can hardcode non-existent directories.
 
11270
  if test "$hardcode_direct" != no &&
 
11271
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11272
     # have to relink, otherwise we might link with an installed library
 
11273
     # when we should be linking with a yet-to-be-installed one
 
11274
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11275
     test "$hardcode_minus_L" != no; then
 
11276
    # Linking always hardcodes the temporary library directory.
 
11277
    hardcode_action=relink
 
11278
  else
 
11279
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11280
    hardcode_action=immediate
 
11281
  fi
 
11282
else
 
11283
  # We cannot hardcode anything, or else we can only hardcode existing
 
11284
  # directories.
 
11285
  hardcode_action=unsupported
 
11286
fi
 
11287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11288
$as_echo "$hardcode_action" >&6; }
 
11289
 
 
11290
if test "$hardcode_action" = relink ||
 
11291
   test "$inherit_rpath" = yes; then
 
11292
  # Fast installation is not supported
 
11293
  enable_fast_install=no
 
11294
elif test "$shlibpath_overrides_runpath" = yes ||
 
11295
     test "$enable_shared" = no; then
 
11296
  # Fast installation is not necessary
 
11297
  enable_fast_install=needless
 
11298
fi
 
11299
 
 
11300
 
 
11301
 
 
11302
 
 
11303
 
 
11304
 
 
11305
  if test "x$enable_dlopen" != xyes; then
 
11306
  enable_dlopen=unknown
 
11307
  enable_dlopen_self=unknown
 
11308
  enable_dlopen_self_static=unknown
 
11309
else
 
11310
  lt_cv_dlopen=no
 
11311
  lt_cv_dlopen_libs=
 
11312
 
 
11313
  case $host_os in
 
11314
  beos*)
 
11315
    lt_cv_dlopen="load_add_on"
 
11316
    lt_cv_dlopen_libs=
 
11317
    lt_cv_dlopen_self=yes
 
11318
    ;;
 
11319
 
 
11320
  mingw* | pw32* | cegcc*)
 
11321
    lt_cv_dlopen="LoadLibrary"
 
11322
    lt_cv_dlopen_libs=
 
11323
    ;;
 
11324
 
 
11325
  cygwin*)
 
11326
    lt_cv_dlopen="dlopen"
 
11327
    lt_cv_dlopen_libs=
 
11328
    ;;
 
11329
 
 
11330
  darwin*)
 
11331
  # if libdl is installed we need to link against it
 
11332
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11333
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11334
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11335
  $as_echo_n "(cached) " >&6
 
11336
else
 
11337
  ac_check_lib_save_LIBS=$LIBS
 
11338
LIBS="-ldl  $LIBS"
 
11339
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11340
/* end confdefs.h.  */
 
11341
 
 
11342
/* Override any GCC internal prototype to avoid an error.
 
11343
   Use char because int might match the return type of a GCC
 
11344
   builtin and then its argument prototype would still apply.  */
 
11345
#ifdef __cplusplus
 
11346
extern "C"
 
11347
#endif
 
11348
char dlopen ();
 
11349
int
 
11350
main ()
 
11351
{
 
11352
return dlopen ();
 
11353
  ;
 
11354
  return 0;
 
11355
}
 
11356
_ACEOF
 
11357
if ac_fn_c_try_link "$LINENO"; then :
 
11358
  ac_cv_lib_dl_dlopen=yes
 
11359
else
 
11360
  ac_cv_lib_dl_dlopen=no
 
11361
fi
 
11362
rm -f core conftest.err conftest.$ac_objext \
 
11363
    conftest$ac_exeext conftest.$ac_ext
 
11364
LIBS=$ac_check_lib_save_LIBS
 
11365
fi
 
11366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11367
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11368
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11369
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11370
else
 
11371
 
 
11372
    lt_cv_dlopen="dyld"
 
11373
    lt_cv_dlopen_libs=
 
11374
    lt_cv_dlopen_self=yes
 
11375
 
 
11376
fi
 
11377
 
 
11378
    ;;
 
11379
 
 
11380
  *)
 
11381
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11382
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11383
  lt_cv_dlopen="shl_load"
 
11384
else
 
11385
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11386
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11387
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11388
  $as_echo_n "(cached) " >&6
 
11389
else
 
11390
  ac_check_lib_save_LIBS=$LIBS
 
11391
LIBS="-ldld  $LIBS"
 
11392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11393
/* end confdefs.h.  */
 
11394
 
 
11395
/* Override any GCC internal prototype to avoid an error.
 
11396
   Use char because int might match the return type of a GCC
 
11397
   builtin and then its argument prototype would still apply.  */
 
11398
#ifdef __cplusplus
 
11399
extern "C"
 
11400
#endif
 
11401
char shl_load ();
 
11402
int
 
11403
main ()
 
11404
{
 
11405
return shl_load ();
 
11406
  ;
 
11407
  return 0;
 
11408
}
 
11409
_ACEOF
 
11410
if ac_fn_c_try_link "$LINENO"; then :
 
11411
  ac_cv_lib_dld_shl_load=yes
 
11412
else
 
11413
  ac_cv_lib_dld_shl_load=no
 
11414
fi
 
11415
rm -f core conftest.err conftest.$ac_objext \
 
11416
    conftest$ac_exeext conftest.$ac_ext
 
11417
LIBS=$ac_check_lib_save_LIBS
 
11418
fi
 
11419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11420
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11421
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11422
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11423
else
 
11424
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11425
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11426
  lt_cv_dlopen="dlopen"
 
11427
else
 
11428
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11429
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11430
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11431
  $as_echo_n "(cached) " >&6
 
11432
else
 
11433
  ac_check_lib_save_LIBS=$LIBS
 
11434
LIBS="-ldl  $LIBS"
 
11435
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11436
/* end confdefs.h.  */
 
11437
 
 
11438
/* Override any GCC internal prototype to avoid an error.
 
11439
   Use char because int might match the return type of a GCC
 
11440
   builtin and then its argument prototype would still apply.  */
 
11441
#ifdef __cplusplus
 
11442
extern "C"
 
11443
#endif
 
11444
char dlopen ();
 
11445
int
 
11446
main ()
 
11447
{
 
11448
return dlopen ();
 
11449
  ;
 
11450
  return 0;
 
11451
}
 
11452
_ACEOF
 
11453
if ac_fn_c_try_link "$LINENO"; then :
 
11454
  ac_cv_lib_dl_dlopen=yes
 
11455
else
 
11456
  ac_cv_lib_dl_dlopen=no
 
11457
fi
 
11458
rm -f core conftest.err conftest.$ac_objext \
 
11459
    conftest$ac_exeext conftest.$ac_ext
 
11460
LIBS=$ac_check_lib_save_LIBS
 
11461
fi
 
11462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11463
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11464
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11465
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11466
else
 
11467
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11468
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11469
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11470
  $as_echo_n "(cached) " >&6
 
11471
else
 
11472
  ac_check_lib_save_LIBS=$LIBS
 
11473
LIBS="-lsvld  $LIBS"
 
11474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11475
/* end confdefs.h.  */
 
11476
 
 
11477
/* Override any GCC internal prototype to avoid an error.
 
11478
   Use char because int might match the return type of a GCC
 
11479
   builtin and then its argument prototype would still apply.  */
 
11480
#ifdef __cplusplus
 
11481
extern "C"
 
11482
#endif
 
11483
char dlopen ();
 
11484
int
 
11485
main ()
 
11486
{
 
11487
return dlopen ();
 
11488
  ;
 
11489
  return 0;
 
11490
}
 
11491
_ACEOF
 
11492
if ac_fn_c_try_link "$LINENO"; then :
 
11493
  ac_cv_lib_svld_dlopen=yes
 
11494
else
 
11495
  ac_cv_lib_svld_dlopen=no
 
11496
fi
 
11497
rm -f core conftest.err conftest.$ac_objext \
 
11498
    conftest$ac_exeext conftest.$ac_ext
 
11499
LIBS=$ac_check_lib_save_LIBS
 
11500
fi
 
11501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11502
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11503
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11504
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11505
else
 
11506
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11507
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11508
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11509
  $as_echo_n "(cached) " >&6
 
11510
else
 
11511
  ac_check_lib_save_LIBS=$LIBS
 
11512
LIBS="-ldld  $LIBS"
 
11513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11514
/* end confdefs.h.  */
 
11515
 
 
11516
/* Override any GCC internal prototype to avoid an error.
 
11517
   Use char because int might match the return type of a GCC
 
11518
   builtin and then its argument prototype would still apply.  */
 
11519
#ifdef __cplusplus
 
11520
extern "C"
 
11521
#endif
 
11522
char dld_link ();
 
11523
int
 
11524
main ()
 
11525
{
 
11526
return dld_link ();
 
11527
  ;
 
11528
  return 0;
 
11529
}
 
11530
_ACEOF
 
11531
if ac_fn_c_try_link "$LINENO"; then :
 
11532
  ac_cv_lib_dld_dld_link=yes
 
11533
else
 
11534
  ac_cv_lib_dld_dld_link=no
 
11535
fi
 
11536
rm -f core conftest.err conftest.$ac_objext \
 
11537
    conftest$ac_exeext conftest.$ac_ext
 
11538
LIBS=$ac_check_lib_save_LIBS
 
11539
fi
 
11540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11541
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11542
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11543
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11544
fi
 
11545
 
 
11546
 
 
11547
fi
 
11548
 
 
11549
 
 
11550
fi
 
11551
 
 
11552
 
 
11553
fi
 
11554
 
 
11555
 
 
11556
fi
 
11557
 
 
11558
 
 
11559
fi
 
11560
 
 
11561
    ;;
 
11562
  esac
 
11563
 
 
11564
  if test "x$lt_cv_dlopen" != xno; then
 
11565
    enable_dlopen=yes
 
11566
  else
 
11567
    enable_dlopen=no
 
11568
  fi
 
11569
 
 
11570
  case $lt_cv_dlopen in
 
11571
  dlopen)
 
11572
    save_CPPFLAGS="$CPPFLAGS"
 
11573
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11574
 
 
11575
    save_LDFLAGS="$LDFLAGS"
 
11576
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11577
 
 
11578
    save_LIBS="$LIBS"
 
11579
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11580
 
 
11581
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11582
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11583
if ${lt_cv_dlopen_self+:} false; then :
 
11584
  $as_echo_n "(cached) " >&6
 
11585
else
 
11586
          if test "$cross_compiling" = yes; then :
 
11587
  lt_cv_dlopen_self=cross
 
11588
else
 
11589
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11590
  lt_status=$lt_dlunknown
 
11591
  cat > conftest.$ac_ext <<_LT_EOF
 
11592
#line $LINENO "configure"
 
11593
#include "confdefs.h"
 
11594
 
 
11595
#if HAVE_DLFCN_H
 
11596
#include <dlfcn.h>
 
11597
#endif
 
11598
 
 
11599
#include <stdio.h>
 
11600
 
 
11601
#ifdef RTLD_GLOBAL
 
11602
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11603
#else
 
11604
#  ifdef DL_GLOBAL
 
11605
#    define LT_DLGLOBAL         DL_GLOBAL
 
11606
#  else
 
11607
#    define LT_DLGLOBAL         0
 
11608
#  endif
 
11609
#endif
 
11610
 
 
11611
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11612
   find out it does not work in some platform. */
 
11613
#ifndef LT_DLLAZY_OR_NOW
 
11614
#  ifdef RTLD_LAZY
 
11615
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11616
#  else
 
11617
#    ifdef DL_LAZY
 
11618
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11619
#    else
 
11620
#      ifdef RTLD_NOW
 
11621
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11622
#      else
 
11623
#        ifdef DL_NOW
 
11624
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11625
#        else
 
11626
#          define LT_DLLAZY_OR_NOW      0
 
11627
#        endif
 
11628
#      endif
 
11629
#    endif
 
11630
#  endif
 
11631
#endif
 
11632
 
 
11633
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11634
   correspondingly for the symbols needed.  */
 
11635
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11636
int fnord () __attribute__((visibility("default")));
 
11637
#endif
 
11638
 
 
11639
int fnord () { return 42; }
 
11640
int main ()
 
11641
{
 
11642
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11643
  int status = $lt_dlunknown;
 
11644
 
 
11645
  if (self)
 
11646
    {
 
11647
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11648
      else
 
11649
        {
 
11650
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11651
          else puts (dlerror ());
 
11652
        }
 
11653
      /* dlclose (self); */
 
11654
    }
 
11655
  else
 
11656
    puts (dlerror ());
 
11657
 
 
11658
  return status;
 
11659
}
 
11660
_LT_EOF
 
11661
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11662
  (eval $ac_link) 2>&5
 
11663
  ac_status=$?
 
11664
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11665
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11666
    (./conftest; exit; ) >&5 2>/dev/null
 
11667
    lt_status=$?
 
11668
    case x$lt_status in
 
11669
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11670
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11671
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11672
    esac
 
11673
  else :
 
11674
    # compilation failed
 
11675
    lt_cv_dlopen_self=no
 
11676
  fi
 
11677
fi
 
11678
rm -fr conftest*
 
11679
 
 
11680
 
 
11681
fi
 
11682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11683
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11684
 
 
11685
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11686
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11687
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11688
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11689
if ${lt_cv_dlopen_self_static+:} false; then :
 
11690
  $as_echo_n "(cached) " >&6
 
11691
else
 
11692
          if test "$cross_compiling" = yes; then :
 
11693
  lt_cv_dlopen_self_static=cross
 
11694
else
 
11695
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11696
  lt_status=$lt_dlunknown
 
11697
  cat > conftest.$ac_ext <<_LT_EOF
 
11698
#line $LINENO "configure"
 
11699
#include "confdefs.h"
 
11700
 
 
11701
#if HAVE_DLFCN_H
 
11702
#include <dlfcn.h>
 
11703
#endif
 
11704
 
 
11705
#include <stdio.h>
 
11706
 
 
11707
#ifdef RTLD_GLOBAL
 
11708
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11709
#else
 
11710
#  ifdef DL_GLOBAL
 
11711
#    define LT_DLGLOBAL         DL_GLOBAL
 
11712
#  else
 
11713
#    define LT_DLGLOBAL         0
 
11714
#  endif
 
11715
#endif
 
11716
 
 
11717
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11718
   find out it does not work in some platform. */
 
11719
#ifndef LT_DLLAZY_OR_NOW
 
11720
#  ifdef RTLD_LAZY
 
11721
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11722
#  else
 
11723
#    ifdef DL_LAZY
 
11724
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11725
#    else
 
11726
#      ifdef RTLD_NOW
 
11727
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11728
#      else
 
11729
#        ifdef DL_NOW
 
11730
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11731
#        else
 
11732
#          define LT_DLLAZY_OR_NOW      0
 
11733
#        endif
 
11734
#      endif
 
11735
#    endif
 
11736
#  endif
 
11737
#endif
 
11738
 
 
11739
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11740
   correspondingly for the symbols needed.  */
 
11741
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11742
int fnord () __attribute__((visibility("default")));
 
11743
#endif
 
11744
 
 
11745
int fnord () { return 42; }
 
11746
int main ()
 
11747
{
 
11748
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11749
  int status = $lt_dlunknown;
 
11750
 
 
11751
  if (self)
 
11752
    {
 
11753
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11754
      else
 
11755
        {
 
11756
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11757
          else puts (dlerror ());
 
11758
        }
 
11759
      /* dlclose (self); */
 
11760
    }
 
11761
  else
 
11762
    puts (dlerror ());
 
11763
 
 
11764
  return status;
 
11765
}
 
11766
_LT_EOF
 
11767
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11768
  (eval $ac_link) 2>&5
 
11769
  ac_status=$?
 
11770
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11771
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11772
    (./conftest; exit; ) >&5 2>/dev/null
 
11773
    lt_status=$?
 
11774
    case x$lt_status in
 
11775
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11776
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11777
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11778
    esac
 
11779
  else :
 
11780
    # compilation failed
 
11781
    lt_cv_dlopen_self_static=no
 
11782
  fi
 
11783
fi
 
11784
rm -fr conftest*
 
11785
 
 
11786
 
 
11787
fi
 
11788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11789
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11790
    fi
 
11791
 
 
11792
    CPPFLAGS="$save_CPPFLAGS"
 
11793
    LDFLAGS="$save_LDFLAGS"
 
11794
    LIBS="$save_LIBS"
 
11795
    ;;
 
11796
  esac
 
11797
 
 
11798
  case $lt_cv_dlopen_self in
 
11799
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11800
  *) enable_dlopen_self=unknown ;;
 
11801
  esac
 
11802
 
 
11803
  case $lt_cv_dlopen_self_static in
 
11804
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11805
  *) enable_dlopen_self_static=unknown ;;
 
11806
  esac
 
11807
fi
 
11808
 
 
11809
 
 
11810
 
 
11811
 
 
11812
 
 
11813
 
 
11814
 
 
11815
 
 
11816
 
 
11817
 
 
11818
 
 
11819
 
 
11820
 
 
11821
 
 
11822
 
 
11823
 
 
11824
 
 
11825
striplib=
 
11826
old_striplib=
 
11827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11828
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11829
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11830
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11831
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11833
$as_echo "yes" >&6; }
 
11834
else
 
11835
# FIXME - insert some real tests, host_os isn't really good enough
 
11836
  case $host_os in
 
11837
  darwin*)
 
11838
    if test -n "$STRIP" ; then
 
11839
      striplib="$STRIP -x"
 
11840
      old_striplib="$STRIP -S"
 
11841
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11842
$as_echo "yes" >&6; }
 
11843
    else
 
11844
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11845
$as_echo "no" >&6; }
 
11846
    fi
 
11847
    ;;
 
11848
  *)
 
11849
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11850
$as_echo "no" >&6; }
 
11851
    ;;
 
11852
  esac
 
11853
fi
 
11854
 
 
11855
 
 
11856
 
 
11857
 
 
11858
 
 
11859
 
 
11860
 
 
11861
 
 
11862
 
 
11863
 
 
11864
 
 
11865
 
 
11866
  # Report which library types will actually be built
 
11867
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11868
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11870
$as_echo "$can_build_shared" >&6; }
 
11871
 
 
11872
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11873
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11874
  test "$can_build_shared" = "no" && enable_shared=no
 
11875
 
 
11876
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11877
  # are all built from PIC.
 
11878
  case $host_os in
 
11879
  aix3*)
 
11880
    test "$enable_shared" = yes && enable_static=no
 
11881
    if test -n "$RANLIB"; then
 
11882
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11883
      postinstall_cmds='$RANLIB $lib'
 
11884
    fi
 
11885
    ;;
 
11886
 
 
11887
  aix[4-9]*)
 
11888
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11889
      test "$enable_shared" = yes && enable_static=no
 
11890
    fi
 
11891
    ;;
 
11892
  esac
 
11893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11894
$as_echo "$enable_shared" >&6; }
 
11895
 
 
11896
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11897
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11898
  # Make sure either enable_shared or enable_static is yes.
 
11899
  test "$enable_shared" = yes || enable_static=yes
 
11900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11901
$as_echo "$enable_static" >&6; }
 
11902
 
 
11903
 
 
11904
 
 
11905
 
 
11906
fi
 
11907
ac_ext=c
 
11908
ac_cpp='$CPP $CPPFLAGS'
 
11909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11912
 
 
11913
CC="$lt_save_CC"
 
11914
 
 
11915
 
 
11916
 
 
11917
 
 
11918
 
 
11919
 
 
11920
 
 
11921
 
 
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
        ac_config_commands="$ac_config_commands libtool"
 
11928
 
 
11929
 
 
11930
 
 
11931
 
 
11932
# Only expand once:
 
11933
 
 
11934
 
 
11935
 
 
11936
 
 
11937
        MKINSTALLDIRS=
 
11938
  if test -n "$ac_aux_dir"; then
 
11939
    case "$ac_aux_dir" in
 
11940
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
11941
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
11942
    esac
 
11943
  fi
 
11944
  if test -z "$MKINSTALLDIRS"; then
 
11945
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
11946
  fi
 
11947
 
 
11948
 
 
11949
 
 
11950
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
11951
$as_echo_n "checking whether NLS is requested... " >&6; }
 
11952
    # Check whether --enable-nls was given.
 
11953
if test "${enable_nls+set}" = set; then :
 
11954
  enableval=$enable_nls; USE_NLS=$enableval
 
11955
else
 
11956
  USE_NLS=yes
 
11957
fi
 
11958
 
 
11959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
11960
$as_echo "$USE_NLS" >&6; }
 
11961
 
 
11962
 
 
11963
 
 
11964
 
 
11965
 
 
11966
 
 
11967
# Prepare PATH_SEPARATOR.
 
11968
# The user is always right.
 
11969
if test "${PATH_SEPARATOR+set}" != set; then
 
11970
  echo "#! /bin/sh" >conf$$.sh
 
11971
  echo  "exit 0"   >>conf$$.sh
 
11972
  chmod +x conf$$.sh
 
11973
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
11974
    PATH_SEPARATOR=';'
 
11975
  else
 
11976
    PATH_SEPARATOR=:
 
11977
  fi
 
11978
  rm -f conf$$.sh
 
11979
fi
 
11980
 
 
11981
# Find out how to test for executable files. Don't use a zero-byte file,
 
11982
# as systems may use methods other than mode bits to determine executability.
 
11983
cat >conf$$.file <<_ASEOF
 
11984
#! /bin/sh
 
11985
exit 0
 
11986
_ASEOF
 
11987
chmod +x conf$$.file
 
11988
if test -x conf$$.file >/dev/null 2>&1; then
 
11989
  ac_executable_p="test -x"
 
11990
else
 
11991
  ac_executable_p="test -f"
 
11992
fi
 
11993
rm -f conf$$.file
 
11994
 
 
11995
# Extract the first word of "msgfmt", so it can be a program name with args.
 
11996
set dummy msgfmt; ac_word=$2
 
11997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11998
$as_echo_n "checking for $ac_word... " >&6; }
 
11999
if ${ac_cv_path_MSGFMT+:} false; then :
 
12000
  $as_echo_n "(cached) " >&6
 
12001
else
 
12002
  case "$MSGFMT" in
 
12003
  [\\/]* | ?:[\\/]*)
 
12004
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
12005
    ;;
 
12006
  *)
 
12007
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12008
    for ac_dir in $PATH; do
 
12009
      IFS="$ac_save_IFS"
 
12010
      test -z "$ac_dir" && ac_dir=.
 
12011
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12012
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12013
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
12014
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
12015
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
12016
            break 2
 
12017
          fi
 
12018
        fi
 
12019
      done
 
12020
    done
 
12021
    IFS="$ac_save_IFS"
 
12022
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
12023
    ;;
 
12024
esac
 
12025
fi
 
12026
MSGFMT="$ac_cv_path_MSGFMT"
 
12027
if test "$MSGFMT" != ":"; then
 
12028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
12029
$as_echo "$MSGFMT" >&6; }
 
12030
else
 
12031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12032
$as_echo "no" >&6; }
 
12033
fi
 
12034
 
 
12035
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
12036
set dummy gmsgfmt; ac_word=$2
 
12037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12038
$as_echo_n "checking for $ac_word... " >&6; }
 
12039
if ${ac_cv_path_GMSGFMT+:} false; then :
 
12040
  $as_echo_n "(cached) " >&6
 
12041
else
 
12042
  case $GMSGFMT in
 
12043
  [\\/]* | ?:[\\/]*)
 
12044
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
12045
  ;;
 
12046
  *)
 
12047
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12048
for as_dir in $PATH
 
12049
do
 
12050
  IFS=$as_save_IFS
 
12051
  test -z "$as_dir" && as_dir=.
 
12052
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12053
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12054
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12055
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12056
    break 2
 
12057
  fi
 
12058
done
 
12059
  done
 
12060
IFS=$as_save_IFS
 
12061
 
 
12062
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
12063
  ;;
 
12064
esac
 
12065
fi
 
12066
GMSGFMT=$ac_cv_path_GMSGFMT
 
12067
if test -n "$GMSGFMT"; then
 
12068
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
12069
$as_echo "$GMSGFMT" >&6; }
 
12070
else
 
12071
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12072
$as_echo "no" >&6; }
 
12073
fi
 
12074
 
 
12075
 
 
12076
 
 
12077
 
 
12078
# Prepare PATH_SEPARATOR.
 
12079
# The user is always right.
 
12080
if test "${PATH_SEPARATOR+set}" != set; then
 
12081
  echo "#! /bin/sh" >conf$$.sh
 
12082
  echo  "exit 0"   >>conf$$.sh
 
12083
  chmod +x conf$$.sh
 
12084
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12085
    PATH_SEPARATOR=';'
 
12086
  else
 
12087
    PATH_SEPARATOR=:
 
12088
  fi
 
12089
  rm -f conf$$.sh
 
12090
fi
 
12091
 
 
12092
# Find out how to test for executable files. Don't use a zero-byte file,
 
12093
# as systems may use methods other than mode bits to determine executability.
 
12094
cat >conf$$.file <<_ASEOF
 
12095
#! /bin/sh
 
12096
exit 0
 
12097
_ASEOF
 
12098
chmod +x conf$$.file
 
12099
if test -x conf$$.file >/dev/null 2>&1; then
 
12100
  ac_executable_p="test -x"
 
12101
else
 
12102
  ac_executable_p="test -f"
 
12103
fi
 
12104
rm -f conf$$.file
 
12105
 
 
12106
# Extract the first word of "xgettext", so it can be a program name with args.
 
12107
set dummy xgettext; ac_word=$2
 
12108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12109
$as_echo_n "checking for $ac_word... " >&6; }
 
12110
if ${ac_cv_path_XGETTEXT+:} false; then :
 
12111
  $as_echo_n "(cached) " >&6
 
12112
else
 
12113
  case "$XGETTEXT" in
 
12114
  [\\/]* | ?:[\\/]*)
 
12115
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
12116
    ;;
 
12117
  *)
 
12118
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12119
    for ac_dir in $PATH; do
 
12120
      IFS="$ac_save_IFS"
 
12121
      test -z "$ac_dir" && ac_dir=.
 
12122
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12123
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12124
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
12125
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
12126
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
12127
            break 2
 
12128
          fi
 
12129
        fi
 
12130
      done
 
12131
    done
 
12132
    IFS="$ac_save_IFS"
 
12133
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
12134
    ;;
 
12135
esac
 
12136
fi
 
12137
XGETTEXT="$ac_cv_path_XGETTEXT"
 
12138
if test "$XGETTEXT" != ":"; then
 
12139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
12140
$as_echo "$XGETTEXT" >&6; }
 
12141
else
 
12142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12143
$as_echo "no" >&6; }
 
12144
fi
 
12145
 
 
12146
    rm -f messages.po
 
12147
 
 
12148
 
 
12149
# Prepare PATH_SEPARATOR.
 
12150
# The user is always right.
 
12151
if test "${PATH_SEPARATOR+set}" != set; then
 
12152
  echo "#! /bin/sh" >conf$$.sh
 
12153
  echo  "exit 0"   >>conf$$.sh
 
12154
  chmod +x conf$$.sh
 
12155
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12156
    PATH_SEPARATOR=';'
 
12157
  else
 
12158
    PATH_SEPARATOR=:
 
12159
  fi
 
12160
  rm -f conf$$.sh
 
12161
fi
 
12162
 
 
12163
# Find out how to test for executable files. Don't use a zero-byte file,
 
12164
# as systems may use methods other than mode bits to determine executability.
 
12165
cat >conf$$.file <<_ASEOF
 
12166
#! /bin/sh
 
12167
exit 0
 
12168
_ASEOF
 
12169
chmod +x conf$$.file
 
12170
if test -x conf$$.file >/dev/null 2>&1; then
 
12171
  ac_executable_p="test -x"
 
12172
else
 
12173
  ac_executable_p="test -f"
 
12174
fi
 
12175
rm -f conf$$.file
 
12176
 
 
12177
# Extract the first word of "msgmerge", so it can be a program name with args.
 
12178
set dummy msgmerge; ac_word=$2
 
12179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12180
$as_echo_n "checking for $ac_word... " >&6; }
 
12181
if ${ac_cv_path_MSGMERGE+:} false; then :
 
12182
  $as_echo_n "(cached) " >&6
 
12183
else
 
12184
  case "$MSGMERGE" in
 
12185
  [\\/]* | ?:[\\/]*)
 
12186
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
12187
    ;;
 
12188
  *)
 
12189
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12190
    for ac_dir in $PATH; do
 
12191
      IFS="$ac_save_IFS"
 
12192
      test -z "$ac_dir" && ac_dir=.
 
12193
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12194
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12195
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
12196
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
12197
            break 2
 
12198
          fi
 
12199
        fi
 
12200
      done
 
12201
    done
 
12202
    IFS="$ac_save_IFS"
 
12203
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
12204
    ;;
 
12205
esac
 
12206
fi
 
12207
MSGMERGE="$ac_cv_path_MSGMERGE"
 
12208
if test "$MSGMERGE" != ":"; then
 
12209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
12210
$as_echo "$MSGMERGE" >&6; }
 
12211
else
 
12212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12213
$as_echo "no" >&6; }
 
12214
fi
 
12215
 
 
12216
 
 
12217
      if test "$GMSGFMT" != ":"; then
 
12218
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
12219
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
12220
      : ;
 
12221
    else
 
12222
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
12223
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
12224
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
 
12225
      GMSGFMT=":"
 
12226
    fi
 
12227
  fi
 
12228
 
 
12229
      if test "$XGETTEXT" != ":"; then
 
12230
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
12231
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
12232
      : ;
 
12233
    else
 
12234
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
12235
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 
12236
      XGETTEXT=":"
 
12237
    fi
 
12238
        rm -f messages.po
 
12239
  fi
 
12240
 
 
12241
  ac_config_commands="$ac_config_commands default-1"
 
12242
 
 
12243
 
 
12244
 
 
12245
      if test "X$prefix" = "XNONE"; then
 
12246
    acl_final_prefix="$ac_default_prefix"
 
12247
  else
 
12248
    acl_final_prefix="$prefix"
 
12249
  fi
 
12250
  if test "X$exec_prefix" = "XNONE"; then
 
12251
    acl_final_exec_prefix='${prefix}'
 
12252
  else
 
12253
    acl_final_exec_prefix="$exec_prefix"
 
12254
  fi
 
12255
  acl_save_prefix="$prefix"
 
12256
  prefix="$acl_final_prefix"
 
12257
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
12258
  prefix="$acl_save_prefix"
 
12259
 
 
12260
 
 
12261
# Check whether --with-gnu-ld was given.
 
12262
if test "${with_gnu_ld+set}" = set; then :
 
12263
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12264
else
 
12265
  with_gnu_ld=no
 
12266
fi
 
12267
 
 
12268
# Prepare PATH_SEPARATOR.
 
12269
# The user is always right.
 
12270
if test "${PATH_SEPARATOR+set}" != set; then
 
12271
  echo "#! /bin/sh" >conf$$.sh
 
12272
  echo  "exit 0"   >>conf$$.sh
 
12273
  chmod +x conf$$.sh
 
12274
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12275
    PATH_SEPARATOR=';'
 
12276
  else
 
12277
    PATH_SEPARATOR=:
 
12278
  fi
 
12279
  rm -f conf$$.sh
 
12280
fi
 
12281
ac_prog=ld
 
12282
if test "$GCC" = yes; then
 
12283
  # Check if gcc -print-prog-name=ld gives a path.
 
12284
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
12285
$as_echo_n "checking for ld used by GCC... " >&6; }
 
12286
  case $host in
 
12287
  *-*-mingw*)
 
12288
    # gcc leaves a trailing carriage return which upsets mingw
 
12289
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12290
  *)
 
12291
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12292
  esac
 
12293
  case $ac_prog in
 
12294
    # Accept absolute paths.
 
12295
    [\\/]* | [A-Za-z]:[\\/]*)
 
12296
      re_direlt='/[^/][^/]*/\.\./'
 
12297
      # Canonicalize the path of ld
 
12298
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
12299
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12300
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
12301
      done
 
12302
      test -z "$LD" && LD="$ac_prog"
 
12303
      ;;
 
12304
  "")
 
12305
    # If it fails, then pretend we aren't using GCC.
 
12306
    ac_prog=ld
 
12307
    ;;
 
12308
  *)
 
12309
    # If it is relative, then search for the first ld in PATH.
 
12310
    with_gnu_ld=unknown
 
12311
    ;;
 
12312
  esac
 
12313
elif test "$with_gnu_ld" = yes; then
 
12314
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12315
$as_echo_n "checking for GNU ld... " >&6; }
 
12316
else
 
12317
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12318
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12319
fi
 
12320
if ${acl_cv_path_LD+:} false; then :
 
12321
  $as_echo_n "(cached) " >&6
 
12322
else
 
12323
  if test -z "$LD"; then
 
12324
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
12325
  for ac_dir in $PATH; do
 
12326
    test -z "$ac_dir" && ac_dir=.
 
12327
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12328
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
12329
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12330
      # but apparently some GNU ld's only accept -v.
 
12331
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12332
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
12333
      *GNU* | *'with BFD'*)
 
12334
        test "$with_gnu_ld" != no && break ;;
 
12335
      *)
 
12336
        test "$with_gnu_ld" != yes && break ;;
 
12337
      esac
 
12338
    fi
 
12339
  done
 
12340
  IFS="$ac_save_ifs"
 
12341
else
 
12342
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
12343
fi
 
12344
fi
 
12345
 
 
12346
LD="$acl_cv_path_LD"
 
12347
if test -n "$LD"; then
 
12348
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12349
$as_echo "$LD" >&6; }
 
12350
else
 
12351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12352
$as_echo "no" >&6; }
 
12353
fi
 
12354
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12356
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12357
if ${acl_cv_prog_gnu_ld+:} false; then :
 
12358
  $as_echo_n "(cached) " >&6
 
12359
else
 
12360
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12361
case `$LD -v 2>&1 </dev/null` in
 
12362
*GNU* | *'with BFD'*)
 
12363
  acl_cv_prog_gnu_ld=yes ;;
 
12364
*)
 
12365
  acl_cv_prog_gnu_ld=no ;;
 
12366
esac
 
12367
fi
 
12368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
12369
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
12370
with_gnu_ld=$acl_cv_prog_gnu_ld
 
12371
 
 
12372
 
 
12373
 
 
12374
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
12375
$as_echo_n "checking for shared library run path origin... " >&6; }
 
12376
if ${acl_cv_rpath+:} false; then :
 
12377
  $as_echo_n "(cached) " >&6
 
12378
else
 
12379
 
 
12380
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
12381
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
12382
    . ./conftest.sh
 
12383
    rm -f ./conftest.sh
 
12384
    acl_cv_rpath=done
 
12385
 
 
12386
fi
 
12387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
12388
$as_echo "$acl_cv_rpath" >&6; }
 
12389
  wl="$acl_cv_wl"
 
12390
  libext="$acl_cv_libext"
 
12391
  shlibext="$acl_cv_shlibext"
 
12392
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
12393
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
12394
  hardcode_direct="$acl_cv_hardcode_direct"
 
12395
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
12396
    # Check whether --enable-rpath was given.
 
12397
if test "${enable_rpath+set}" = set; then :
 
12398
  enableval=$enable_rpath; :
 
12399
else
 
12400
  enable_rpath=yes
 
12401
fi
 
12402
 
 
12403
 
 
12404
 
 
12405
 
 
12406
 
 
12407
 
 
12408
 
 
12409
 
 
12410
    use_additional=yes
 
12411
 
 
12412
  acl_save_prefix="$prefix"
 
12413
  prefix="$acl_final_prefix"
 
12414
  acl_save_exec_prefix="$exec_prefix"
 
12415
  exec_prefix="$acl_final_exec_prefix"
 
12416
 
 
12417
    eval additional_includedir=\"$includedir\"
 
12418
    eval additional_libdir=\"$libdir\"
 
12419
 
 
12420
  exec_prefix="$acl_save_exec_prefix"
 
12421
  prefix="$acl_save_prefix"
 
12422
 
 
12423
 
 
12424
# Check whether --with-libiconv-prefix was given.
 
12425
if test "${with_libiconv_prefix+set}" = set; then :
 
12426
  withval=$with_libiconv_prefix;
 
12427
    if test "X$withval" = "Xno"; then
 
12428
      use_additional=no
 
12429
    else
 
12430
      if test "X$withval" = "X"; then
 
12431
 
 
12432
  acl_save_prefix="$prefix"
 
12433
  prefix="$acl_final_prefix"
 
12434
  acl_save_exec_prefix="$exec_prefix"
 
12435
  exec_prefix="$acl_final_exec_prefix"
 
12436
 
 
12437
          eval additional_includedir=\"$includedir\"
 
12438
          eval additional_libdir=\"$libdir\"
 
12439
 
 
12440
  exec_prefix="$acl_save_exec_prefix"
 
12441
  prefix="$acl_save_prefix"
 
12442
 
 
12443
      else
 
12444
        additional_includedir="$withval/include"
 
12445
        additional_libdir="$withval/lib"
 
12446
      fi
 
12447
    fi
 
12448
 
 
12449
fi
 
12450
 
 
12451
      LIBICONV=
 
12452
  LTLIBICONV=
 
12453
  INCICONV=
 
12454
  rpathdirs=
 
12455
  ltrpathdirs=
 
12456
  names_already_handled=
 
12457
  names_next_round='iconv '
 
12458
  while test -n "$names_next_round"; do
 
12459
    names_this_round="$names_next_round"
 
12460
    names_next_round=
 
12461
    for name in $names_this_round; do
 
12462
      already_handled=
 
12463
      for n in $names_already_handled; do
 
12464
        if test "$n" = "$name"; then
 
12465
          already_handled=yes
 
12466
          break
 
12467
        fi
 
12468
      done
 
12469
      if test -z "$already_handled"; then
 
12470
        names_already_handled="$names_already_handled $name"
 
12471
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
12472
        eval value=\"\$HAVE_LIB$uppername\"
 
12473
        if test -n "$value"; then
 
12474
          if test "$value" = yes; then
 
12475
            eval value=\"\$LIB$uppername\"
 
12476
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
12477
            eval value=\"\$LTLIB$uppername\"
 
12478
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
12479
          else
 
12480
                                    :
 
12481
          fi
 
12482
        else
 
12483
                              found_dir=
 
12484
          found_la=
 
12485
          found_so=
 
12486
          found_a=
 
12487
          if test $use_additional = yes; then
 
12488
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
12489
              found_dir="$additional_libdir"
 
12490
              found_so="$additional_libdir/lib$name.$shlibext"
 
12491
              if test -f "$additional_libdir/lib$name.la"; then
 
12492
                found_la="$additional_libdir/lib$name.la"
 
12493
              fi
 
12494
            else
 
12495
              if test -f "$additional_libdir/lib$name.$libext"; then
 
12496
                found_dir="$additional_libdir"
 
12497
                found_a="$additional_libdir/lib$name.$libext"
 
12498
                if test -f "$additional_libdir/lib$name.la"; then
 
12499
                  found_la="$additional_libdir/lib$name.la"
 
12500
                fi
 
12501
              fi
 
12502
            fi
 
12503
          fi
 
12504
          if test "X$found_dir" = "X"; then
 
12505
            for x in $LDFLAGS $LTLIBICONV; do
 
12506
 
 
12507
  acl_save_prefix="$prefix"
 
12508
  prefix="$acl_final_prefix"
 
12509
  acl_save_exec_prefix="$exec_prefix"
 
12510
  exec_prefix="$acl_final_exec_prefix"
 
12511
  eval x=\"$x\"
 
12512
  exec_prefix="$acl_save_exec_prefix"
 
12513
  prefix="$acl_save_prefix"
 
12514
 
 
12515
              case "$x" in
 
12516
                -L*)
 
12517
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
12518
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
12519
                    found_dir="$dir"
 
12520
                    found_so="$dir/lib$name.$shlibext"
 
12521
                    if test -f "$dir/lib$name.la"; then
 
12522
                      found_la="$dir/lib$name.la"
 
12523
                    fi
 
12524
                  else
 
12525
                    if test -f "$dir/lib$name.$libext"; then
 
12526
                      found_dir="$dir"
 
12527
                      found_a="$dir/lib$name.$libext"
 
12528
                      if test -f "$dir/lib$name.la"; then
 
12529
                        found_la="$dir/lib$name.la"
 
12530
                      fi
 
12531
                    fi
 
12532
                  fi
 
12533
                  ;;
 
12534
              esac
 
12535
              if test "X$found_dir" != "X"; then
 
12536
                break
 
12537
              fi
 
12538
            done
 
12539
          fi
 
12540
          if test "X$found_dir" != "X"; then
 
12541
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
12542
            if test "X$found_so" != "X"; then
 
12543
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
12544
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
12545
              else
 
12546
                                                                                haveit=
 
12547
                for x in $ltrpathdirs; do
 
12548
                  if test "X$x" = "X$found_dir"; then
 
12549
                    haveit=yes
 
12550
                    break
 
12551
                  fi
 
12552
                done
 
12553
                if test -z "$haveit"; then
 
12554
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
12555
                fi
 
12556
                                if test "$hardcode_direct" = yes; then
 
12557
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
12558
                else
 
12559
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
12560
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
12561
                                                            haveit=
 
12562
                    for x in $rpathdirs; do
 
12563
                      if test "X$x" = "X$found_dir"; then
 
12564
                        haveit=yes
 
12565
                        break
 
12566
                      fi
 
12567
                    done
 
12568
                    if test -z "$haveit"; then
 
12569
                      rpathdirs="$rpathdirs $found_dir"
 
12570
                    fi
 
12571
                  else
 
12572
                                                                                haveit=
 
12573
                    for x in $LDFLAGS $LIBICONV; do
 
12574
 
 
12575
  acl_save_prefix="$prefix"
 
12576
  prefix="$acl_final_prefix"
 
12577
  acl_save_exec_prefix="$exec_prefix"
 
12578
  exec_prefix="$acl_final_exec_prefix"
 
12579
  eval x=\"$x\"
 
12580
  exec_prefix="$acl_save_exec_prefix"
 
12581
  prefix="$acl_save_prefix"
 
12582
 
 
12583
                      if test "X$x" = "X-L$found_dir"; then
 
12584
                        haveit=yes
 
12585
                        break
 
12586
                      fi
 
12587
                    done
 
12588
                    if test -z "$haveit"; then
 
12589
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
12590
                    fi
 
12591
                    if test "$hardcode_minus_L" != no; then
 
12592
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
12593
                    else
 
12594
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
12595
                    fi
 
12596
                  fi
 
12597
                fi
 
12598
              fi
 
12599
            else
 
12600
              if test "X$found_a" != "X"; then
 
12601
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
12602
              else
 
12603
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
12604
              fi
 
12605
            fi
 
12606
                        additional_includedir=
 
12607
            case "$found_dir" in
 
12608
              */lib | */lib/)
 
12609
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
12610
                additional_includedir="$basedir/include"
 
12611
                ;;
 
12612
            esac
 
12613
            if test "X$additional_includedir" != "X"; then
 
12614
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
12615
                haveit=
 
12616
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
12617
                  if test -n "$GCC"; then
 
12618
                    case $host_os in
 
12619
                      linux*) haveit=yes;;
 
12620
                    esac
 
12621
                  fi
 
12622
                fi
 
12623
                if test -z "$haveit"; then
 
12624
                  for x in $CPPFLAGS $INCICONV; do
 
12625
 
 
12626
  acl_save_prefix="$prefix"
 
12627
  prefix="$acl_final_prefix"
 
12628
  acl_save_exec_prefix="$exec_prefix"
 
12629
  exec_prefix="$acl_final_exec_prefix"
 
12630
  eval x=\"$x\"
 
12631
  exec_prefix="$acl_save_exec_prefix"
 
12632
  prefix="$acl_save_prefix"
 
12633
 
 
12634
                    if test "X$x" = "X-I$additional_includedir"; then
 
12635
                      haveit=yes
 
12636
                      break
 
12637
                    fi
 
12638
                  done
 
12639
                  if test -z "$haveit"; then
 
12640
                    if test -d "$additional_includedir"; then
 
12641
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
12642
                    fi
 
12643
                  fi
 
12644
                fi
 
12645
              fi
 
12646
            fi
 
12647
                        if test -n "$found_la"; then
 
12648
                                                        save_libdir="$libdir"
 
12649
              case "$found_la" in
 
12650
                */* | *\\*) . "$found_la" ;;
 
12651
                *) . "./$found_la" ;;
 
12652
              esac
 
12653
              libdir="$save_libdir"
 
12654
                            for dep in $dependency_libs; do
 
12655
                case "$dep" in
 
12656
                  -L*)
 
12657
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
12658
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
12659
                      haveit=
 
12660
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
12661
                        if test -n "$GCC"; then
 
12662
                          case $host_os in
 
12663
                            linux*) haveit=yes;;
 
12664
                          esac
 
12665
                        fi
 
12666
                      fi
 
12667
                      if test -z "$haveit"; then
 
12668
                        haveit=
 
12669
                        for x in $LDFLAGS $LIBICONV; do
 
12670
 
 
12671
  acl_save_prefix="$prefix"
 
12672
  prefix="$acl_final_prefix"
 
12673
  acl_save_exec_prefix="$exec_prefix"
 
12674
  exec_prefix="$acl_final_exec_prefix"
 
12675
  eval x=\"$x\"
 
12676
  exec_prefix="$acl_save_exec_prefix"
 
12677
  prefix="$acl_save_prefix"
 
12678
 
 
12679
                          if test "X$x" = "X-L$additional_libdir"; then
 
12680
                            haveit=yes
 
12681
                            break
 
12682
                          fi
 
12683
                        done
 
12684
                        if test -z "$haveit"; then
 
12685
                          if test -d "$additional_libdir"; then
 
12686
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
12687
                          fi
 
12688
                        fi
 
12689
                        haveit=
 
12690
                        for x in $LDFLAGS $LTLIBICONV; do
 
12691
 
 
12692
  acl_save_prefix="$prefix"
 
12693
  prefix="$acl_final_prefix"
 
12694
  acl_save_exec_prefix="$exec_prefix"
 
12695
  exec_prefix="$acl_final_exec_prefix"
 
12696
  eval x=\"$x\"
 
12697
  exec_prefix="$acl_save_exec_prefix"
 
12698
  prefix="$acl_save_prefix"
 
12699
 
 
12700
                          if test "X$x" = "X-L$additional_libdir"; then
 
12701
                            haveit=yes
 
12702
                            break
 
12703
                          fi
 
12704
                        done
 
12705
                        if test -z "$haveit"; then
 
12706
                          if test -d "$additional_libdir"; then
 
12707
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
12708
                          fi
 
12709
                        fi
 
12710
                      fi
 
12711
                    fi
 
12712
                    ;;
 
12713
                  -R*)
 
12714
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
12715
                    if test "$enable_rpath" != no; then
 
12716
                                                                  haveit=
 
12717
                      for x in $rpathdirs; do
 
12718
                        if test "X$x" = "X$dir"; then
 
12719
                          haveit=yes
 
12720
                          break
 
12721
                        fi
 
12722
                      done
 
12723
                      if test -z "$haveit"; then
 
12724
                        rpathdirs="$rpathdirs $dir"
 
12725
                      fi
 
12726
                                                                  haveit=
 
12727
                      for x in $ltrpathdirs; do
 
12728
                        if test "X$x" = "X$dir"; then
 
12729
                          haveit=yes
 
12730
                          break
 
12731
                        fi
 
12732
                      done
 
12733
                      if test -z "$haveit"; then
 
12734
                        ltrpathdirs="$ltrpathdirs $dir"
 
12735
                      fi
 
12736
                    fi
 
12737
                    ;;
 
12738
                  -l*)
 
12739
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
12740
                    ;;
 
12741
                  *.la)
 
12742
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
12743
                    ;;
 
12744
                  *)
 
12745
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
12746
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
12747
                    ;;
 
12748
                esac
 
12749
              done
 
12750
            fi
 
12751
          else
 
12752
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
12753
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
12754
          fi
 
12755
        fi
 
12756
      fi
 
12757
    done
 
12758
  done
 
12759
  if test "X$rpathdirs" != "X"; then
 
12760
    if test -n "$hardcode_libdir_separator"; then
 
12761
                        alldirs=
 
12762
      for found_dir in $rpathdirs; do
 
12763
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
12764
      done
 
12765
            acl_save_libdir="$libdir"
 
12766
      libdir="$alldirs"
 
12767
      eval flag=\"$hardcode_libdir_flag_spec\"
 
12768
      libdir="$acl_save_libdir"
 
12769
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
12770
    else
 
12771
            for found_dir in $rpathdirs; do
 
12772
        acl_save_libdir="$libdir"
 
12773
        libdir="$found_dir"
 
12774
        eval flag=\"$hardcode_libdir_flag_spec\"
 
12775
        libdir="$acl_save_libdir"
 
12776
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
12777
      done
 
12778
    fi
 
12779
  fi
 
12780
  if test "X$ltrpathdirs" != "X"; then
 
12781
            for found_dir in $ltrpathdirs; do
 
12782
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
12783
    done
 
12784
  fi
 
12785
 
 
12786
 
 
12787
 
 
12788
 
 
12789
 
 
12790
 
 
12791
 
 
12792
 
 
12793
 
 
12794
 
 
12795
 
 
12796
 
 
12797
 
 
12798
 
 
12799
 
 
12800
 
 
12801
 
 
12802
 
 
12803
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
12804
$as_echo_n "checking whether NLS is requested... " >&6; }
 
12805
    # Check whether --enable-nls was given.
 
12806
if test "${enable_nls+set}" = set; then :
 
12807
  enableval=$enable_nls; USE_NLS=$enableval
 
12808
else
 
12809
  USE_NLS=yes
 
12810
fi
 
12811
 
 
12812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
12813
$as_echo "$USE_NLS" >&6; }
 
12814
 
 
12815
 
 
12816
 
 
12817
 
 
12818
  LIBINTL=
 
12819
  LTLIBINTL=
 
12820
  POSUB=
 
12821
 
 
12822
    if test "$USE_NLS" = "yes"; then
 
12823
    gt_use_preinstalled_gnugettext=no
 
12824
 
 
12825
 
 
12826
 
 
12827
 
 
12828
 
 
12829
 
 
12830
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
12831
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
12832
if ${gt_cv_func_gnugettext1_libc+:} false; then :
 
12833
  $as_echo_n "(cached) " >&6
 
12834
else
 
12835
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12836
/* end confdefs.h.  */
 
12837
#include <libintl.h>
 
12838
extern int _nl_msg_cat_cntr;
 
12839
extern int *_nl_domain_bindings;
 
12840
int
 
12841
main ()
 
12842
{
 
12843
bindtextdomain ("", "");
 
12844
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
12845
  ;
 
12846
  return 0;
 
12847
}
 
12848
_ACEOF
 
12849
if ac_fn_c_try_link "$LINENO"; then :
 
12850
  gt_cv_func_gnugettext1_libc=yes
 
12851
else
 
12852
  gt_cv_func_gnugettext1_libc=no
 
12853
fi
 
12854
rm -f core conftest.err conftest.$ac_objext \
 
12855
    conftest$ac_exeext conftest.$ac_ext
 
12856
fi
 
12857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
 
12858
$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
 
12859
 
 
12860
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
12861
 
 
12862
 
 
12863
 
 
12864
 
 
12865
 
 
12866
          am_save_CPPFLAGS="$CPPFLAGS"
 
12867
 
 
12868
  for element in $INCICONV; do
 
12869
    haveit=
 
12870
    for x in $CPPFLAGS; do
 
12871
 
 
12872
  acl_save_prefix="$prefix"
 
12873
  prefix="$acl_final_prefix"
 
12874
  acl_save_exec_prefix="$exec_prefix"
 
12875
  exec_prefix="$acl_final_exec_prefix"
 
12876
  eval x=\"$x\"
 
12877
  exec_prefix="$acl_save_exec_prefix"
 
12878
  prefix="$acl_save_prefix"
 
12879
 
 
12880
      if test "X$x" = "X$element"; then
 
12881
        haveit=yes
 
12882
        break
 
12883
      fi
 
12884
    done
 
12885
    if test -z "$haveit"; then
 
12886
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
12887
    fi
 
12888
  done
 
12889
 
 
12890
 
 
12891
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
12892
$as_echo_n "checking for iconv... " >&6; }
 
12893
if ${am_cv_func_iconv+:} false; then :
 
12894
  $as_echo_n "(cached) " >&6
 
12895
else
 
12896
 
 
12897
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
12898
    am_cv_lib_iconv=no
 
12899
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12900
/* end confdefs.h.  */
 
12901
#include <stdlib.h>
 
12902
#include <iconv.h>
 
12903
int
 
12904
main ()
 
12905
{
 
12906
iconv_t cd = iconv_open("","");
 
12907
       iconv(cd,NULL,NULL,NULL,NULL);
 
12908
       iconv_close(cd);
 
12909
  ;
 
12910
  return 0;
 
12911
}
 
12912
_ACEOF
 
12913
if ac_fn_c_try_link "$LINENO"; then :
 
12914
  am_cv_func_iconv=yes
 
12915
fi
 
12916
rm -f core conftest.err conftest.$ac_objext \
 
12917
    conftest$ac_exeext conftest.$ac_ext
 
12918
    if test "$am_cv_func_iconv" != yes; then
 
12919
      am_save_LIBS="$LIBS"
 
12920
      LIBS="$LIBS $LIBICONV"
 
12921
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12922
/* end confdefs.h.  */
 
12923
#include <stdlib.h>
 
12924
#include <iconv.h>
 
12925
int
 
12926
main ()
 
12927
{
 
12928
iconv_t cd = iconv_open("","");
 
12929
         iconv(cd,NULL,NULL,NULL,NULL);
 
12930
         iconv_close(cd);
 
12931
  ;
 
12932
  return 0;
 
12933
}
 
12934
_ACEOF
 
12935
if ac_fn_c_try_link "$LINENO"; then :
 
12936
  am_cv_lib_iconv=yes
 
12937
        am_cv_func_iconv=yes
 
12938
fi
 
12939
rm -f core conftest.err conftest.$ac_objext \
 
12940
    conftest$ac_exeext conftest.$ac_ext
 
12941
      LIBS="$am_save_LIBS"
 
12942
    fi
 
12943
 
 
12944
fi
 
12945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
12946
$as_echo "$am_cv_func_iconv" >&6; }
 
12947
  if test "$am_cv_func_iconv" = yes; then
 
12948
 
 
12949
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
 
12950
 
 
12951
  fi
 
12952
  if test "$am_cv_lib_iconv" = yes; then
 
12953
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
12954
$as_echo_n "checking how to link with libiconv... " >&6; }
 
12955
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
12956
$as_echo "$LIBICONV" >&6; }
 
12957
  else
 
12958
            CPPFLAGS="$am_save_CPPFLAGS"
 
12959
    LIBICONV=
 
12960
    LTLIBICONV=
 
12961
  fi
 
12962
 
 
12963
 
 
12964
 
 
12965
 
 
12966
 
 
12967
 
 
12968
    use_additional=yes
 
12969
 
 
12970
  acl_save_prefix="$prefix"
 
12971
  prefix="$acl_final_prefix"
 
12972
  acl_save_exec_prefix="$exec_prefix"
 
12973
  exec_prefix="$acl_final_exec_prefix"
 
12974
 
 
12975
    eval additional_includedir=\"$includedir\"
 
12976
    eval additional_libdir=\"$libdir\"
 
12977
 
 
12978
  exec_prefix="$acl_save_exec_prefix"
 
12979
  prefix="$acl_save_prefix"
 
12980
 
 
12981
 
 
12982
# Check whether --with-libintl-prefix was given.
 
12983
if test "${with_libintl_prefix+set}" = set; then :
 
12984
  withval=$with_libintl_prefix;
 
12985
    if test "X$withval" = "Xno"; then
 
12986
      use_additional=no
 
12987
    else
 
12988
      if test "X$withval" = "X"; then
 
12989
 
 
12990
  acl_save_prefix="$prefix"
 
12991
  prefix="$acl_final_prefix"
 
12992
  acl_save_exec_prefix="$exec_prefix"
 
12993
  exec_prefix="$acl_final_exec_prefix"
 
12994
 
 
12995
          eval additional_includedir=\"$includedir\"
 
12996
          eval additional_libdir=\"$libdir\"
 
12997
 
 
12998
  exec_prefix="$acl_save_exec_prefix"
 
12999
  prefix="$acl_save_prefix"
 
13000
 
 
13001
      else
 
13002
        additional_includedir="$withval/include"
 
13003
        additional_libdir="$withval/lib"
 
13004
      fi
 
13005
    fi
 
13006
 
 
13007
fi
 
13008
 
 
13009
      LIBINTL=
 
13010
  LTLIBINTL=
 
13011
  INCINTL=
 
13012
  rpathdirs=
 
13013
  ltrpathdirs=
 
13014
  names_already_handled=
 
13015
  names_next_round='intl '
 
13016
  while test -n "$names_next_round"; do
 
13017
    names_this_round="$names_next_round"
 
13018
    names_next_round=
 
13019
    for name in $names_this_round; do
 
13020
      already_handled=
 
13021
      for n in $names_already_handled; do
 
13022
        if test "$n" = "$name"; then
 
13023
          already_handled=yes
 
13024
          break
 
13025
        fi
 
13026
      done
 
13027
      if test -z "$already_handled"; then
 
13028
        names_already_handled="$names_already_handled $name"
 
13029
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
13030
        eval value=\"\$HAVE_LIB$uppername\"
 
13031
        if test -n "$value"; then
 
13032
          if test "$value" = yes; then
 
13033
            eval value=\"\$LIB$uppername\"
 
13034
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
13035
            eval value=\"\$LTLIB$uppername\"
 
13036
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
13037
          else
 
13038
                                    :
 
13039
          fi
 
13040
        else
 
13041
                              found_dir=
 
13042
          found_la=
 
13043
          found_so=
 
13044
          found_a=
 
13045
          if test $use_additional = yes; then
 
13046
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
13047
              found_dir="$additional_libdir"
 
13048
              found_so="$additional_libdir/lib$name.$shlibext"
 
13049
              if test -f "$additional_libdir/lib$name.la"; then
 
13050
                found_la="$additional_libdir/lib$name.la"
 
13051
              fi
 
13052
            else
 
13053
              if test -f "$additional_libdir/lib$name.$libext"; then
 
13054
                found_dir="$additional_libdir"
 
13055
                found_a="$additional_libdir/lib$name.$libext"
 
13056
                if test -f "$additional_libdir/lib$name.la"; then
 
13057
                  found_la="$additional_libdir/lib$name.la"
 
13058
                fi
 
13059
              fi
 
13060
            fi
 
13061
          fi
 
13062
          if test "X$found_dir" = "X"; then
 
13063
            for x in $LDFLAGS $LTLIBINTL; do
 
13064
 
 
13065
  acl_save_prefix="$prefix"
 
13066
  prefix="$acl_final_prefix"
 
13067
  acl_save_exec_prefix="$exec_prefix"
 
13068
  exec_prefix="$acl_final_exec_prefix"
 
13069
  eval x=\"$x\"
 
13070
  exec_prefix="$acl_save_exec_prefix"
 
13071
  prefix="$acl_save_prefix"
 
13072
 
 
13073
              case "$x" in
 
13074
                -L*)
 
13075
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
13076
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
13077
                    found_dir="$dir"
 
13078
                    found_so="$dir/lib$name.$shlibext"
 
13079
                    if test -f "$dir/lib$name.la"; then
 
13080
                      found_la="$dir/lib$name.la"
 
13081
                    fi
 
13082
                  else
 
13083
                    if test -f "$dir/lib$name.$libext"; then
 
13084
                      found_dir="$dir"
 
13085
                      found_a="$dir/lib$name.$libext"
 
13086
                      if test -f "$dir/lib$name.la"; then
 
13087
                        found_la="$dir/lib$name.la"
 
13088
                      fi
 
13089
                    fi
 
13090
                  fi
 
13091
                  ;;
 
13092
              esac
 
13093
              if test "X$found_dir" != "X"; then
 
13094
                break
 
13095
              fi
 
13096
            done
 
13097
          fi
 
13098
          if test "X$found_dir" != "X"; then
 
13099
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
13100
            if test "X$found_so" != "X"; then
 
13101
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
13102
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13103
              else
 
13104
                                                                                haveit=
 
13105
                for x in $ltrpathdirs; do
 
13106
                  if test "X$x" = "X$found_dir"; then
 
13107
                    haveit=yes
 
13108
                    break
 
13109
                  fi
 
13110
                done
 
13111
                if test -z "$haveit"; then
 
13112
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
13113
                fi
 
13114
                                if test "$hardcode_direct" = yes; then
 
13115
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13116
                else
 
13117
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
13118
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13119
                                                            haveit=
 
13120
                    for x in $rpathdirs; do
 
13121
                      if test "X$x" = "X$found_dir"; then
 
13122
                        haveit=yes
 
13123
                        break
 
13124
                      fi
 
13125
                    done
 
13126
                    if test -z "$haveit"; then
 
13127
                      rpathdirs="$rpathdirs $found_dir"
 
13128
                    fi
 
13129
                  else
 
13130
                                                                                haveit=
 
13131
                    for x in $LDFLAGS $LIBINTL; do
 
13132
 
 
13133
  acl_save_prefix="$prefix"
 
13134
  prefix="$acl_final_prefix"
 
13135
  acl_save_exec_prefix="$exec_prefix"
 
13136
  exec_prefix="$acl_final_exec_prefix"
 
13137
  eval x=\"$x\"
 
13138
  exec_prefix="$acl_save_exec_prefix"
 
13139
  prefix="$acl_save_prefix"
 
13140
 
 
13141
                      if test "X$x" = "X-L$found_dir"; then
 
13142
                        haveit=yes
 
13143
                        break
 
13144
                      fi
 
13145
                    done
 
13146
                    if test -z "$haveit"; then
 
13147
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
13148
                    fi
 
13149
                    if test "$hardcode_minus_L" != no; then
 
13150
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13151
                    else
 
13152
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13153
                    fi
 
13154
                  fi
 
13155
                fi
 
13156
              fi
 
13157
            else
 
13158
              if test "X$found_a" != "X"; then
 
13159
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
13160
              else
 
13161
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
13162
              fi
 
13163
            fi
 
13164
                        additional_includedir=
 
13165
            case "$found_dir" in
 
13166
              */lib | */lib/)
 
13167
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
13168
                additional_includedir="$basedir/include"
 
13169
                ;;
 
13170
            esac
 
13171
            if test "X$additional_includedir" != "X"; then
 
13172
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
13173
                haveit=
 
13174
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
13175
                  if test -n "$GCC"; then
 
13176
                    case $host_os in
 
13177
                      linux*) haveit=yes;;
 
13178
                    esac
 
13179
                  fi
 
13180
                fi
 
13181
                if test -z "$haveit"; then
 
13182
                  for x in $CPPFLAGS $INCINTL; do
 
13183
 
 
13184
  acl_save_prefix="$prefix"
 
13185
  prefix="$acl_final_prefix"
 
13186
  acl_save_exec_prefix="$exec_prefix"
 
13187
  exec_prefix="$acl_final_exec_prefix"
 
13188
  eval x=\"$x\"
 
13189
  exec_prefix="$acl_save_exec_prefix"
 
13190
  prefix="$acl_save_prefix"
 
13191
 
 
13192
                    if test "X$x" = "X-I$additional_includedir"; then
 
13193
                      haveit=yes
 
13194
                      break
 
13195
                    fi
 
13196
                  done
 
13197
                  if test -z "$haveit"; then
 
13198
                    if test -d "$additional_includedir"; then
 
13199
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
13200
                    fi
 
13201
                  fi
 
13202
                fi
 
13203
              fi
 
13204
            fi
 
13205
                        if test -n "$found_la"; then
 
13206
                                                        save_libdir="$libdir"
 
13207
              case "$found_la" in
 
13208
                */* | *\\*) . "$found_la" ;;
 
13209
                *) . "./$found_la" ;;
 
13210
              esac
 
13211
              libdir="$save_libdir"
 
13212
                            for dep in $dependency_libs; do
 
13213
                case "$dep" in
 
13214
                  -L*)
 
13215
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
13216
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
13217
                      haveit=
 
13218
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
13219
                        if test -n "$GCC"; then
 
13220
                          case $host_os in
 
13221
                            linux*) haveit=yes;;
 
13222
                          esac
 
13223
                        fi
 
13224
                      fi
 
13225
                      if test -z "$haveit"; then
 
13226
                        haveit=
 
13227
                        for x in $LDFLAGS $LIBINTL; do
 
13228
 
 
13229
  acl_save_prefix="$prefix"
 
13230
  prefix="$acl_final_prefix"
 
13231
  acl_save_exec_prefix="$exec_prefix"
 
13232
  exec_prefix="$acl_final_exec_prefix"
 
13233
  eval x=\"$x\"
 
13234
  exec_prefix="$acl_save_exec_prefix"
 
13235
  prefix="$acl_save_prefix"
 
13236
 
 
13237
                          if test "X$x" = "X-L$additional_libdir"; then
 
13238
                            haveit=yes
 
13239
                            break
 
13240
                          fi
 
13241
                        done
 
13242
                        if test -z "$haveit"; then
 
13243
                          if test -d "$additional_libdir"; then
 
13244
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
13245
                          fi
 
13246
                        fi
 
13247
                        haveit=
 
13248
                        for x in $LDFLAGS $LTLIBINTL; do
 
13249
 
 
13250
  acl_save_prefix="$prefix"
 
13251
  prefix="$acl_final_prefix"
 
13252
  acl_save_exec_prefix="$exec_prefix"
 
13253
  exec_prefix="$acl_final_exec_prefix"
 
13254
  eval x=\"$x\"
 
13255
  exec_prefix="$acl_save_exec_prefix"
 
13256
  prefix="$acl_save_prefix"
 
13257
 
 
13258
                          if test "X$x" = "X-L$additional_libdir"; then
 
13259
                            haveit=yes
 
13260
                            break
 
13261
                          fi
 
13262
                        done
 
13263
                        if test -z "$haveit"; then
 
13264
                          if test -d "$additional_libdir"; then
 
13265
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
13266
                          fi
 
13267
                        fi
 
13268
                      fi
 
13269
                    fi
 
13270
                    ;;
 
13271
                  -R*)
 
13272
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
13273
                    if test "$enable_rpath" != no; then
 
13274
                                                                  haveit=
 
13275
                      for x in $rpathdirs; do
 
13276
                        if test "X$x" = "X$dir"; then
 
13277
                          haveit=yes
 
13278
                          break
 
13279
                        fi
 
13280
                      done
 
13281
                      if test -z "$haveit"; then
 
13282
                        rpathdirs="$rpathdirs $dir"
 
13283
                      fi
 
13284
                                                                  haveit=
 
13285
                      for x in $ltrpathdirs; do
 
13286
                        if test "X$x" = "X$dir"; then
 
13287
                          haveit=yes
 
13288
                          break
 
13289
                        fi
 
13290
                      done
 
13291
                      if test -z "$haveit"; then
 
13292
                        ltrpathdirs="$ltrpathdirs $dir"
 
13293
                      fi
 
13294
                    fi
 
13295
                    ;;
 
13296
                  -l*)
 
13297
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
13298
                    ;;
 
13299
                  *.la)
 
13300
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
13301
                    ;;
 
13302
                  *)
 
13303
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
13304
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
13305
                    ;;
 
13306
                esac
 
13307
              done
 
13308
            fi
 
13309
          else
 
13310
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13311
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
13312
          fi
 
13313
        fi
 
13314
      fi
 
13315
    done
 
13316
  done
 
13317
  if test "X$rpathdirs" != "X"; then
 
13318
    if test -n "$hardcode_libdir_separator"; then
 
13319
                        alldirs=
 
13320
      for found_dir in $rpathdirs; do
 
13321
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
13322
      done
 
13323
            acl_save_libdir="$libdir"
 
13324
      libdir="$alldirs"
 
13325
      eval flag=\"$hardcode_libdir_flag_spec\"
 
13326
      libdir="$acl_save_libdir"
 
13327
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
13328
    else
 
13329
            for found_dir in $rpathdirs; do
 
13330
        acl_save_libdir="$libdir"
 
13331
        libdir="$found_dir"
 
13332
        eval flag=\"$hardcode_libdir_flag_spec\"
 
13333
        libdir="$acl_save_libdir"
 
13334
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
13335
      done
 
13336
    fi
 
13337
  fi
 
13338
  if test "X$ltrpathdirs" != "X"; then
 
13339
            for found_dir in $ltrpathdirs; do
 
13340
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
13341
    done
 
13342
  fi
 
13343
 
 
13344
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
13345
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
13346
if ${gt_cv_func_gnugettext1_libintl+:} false; then :
 
13347
  $as_echo_n "(cached) " >&6
 
13348
else
 
13349
  gt_save_CPPFLAGS="$CPPFLAGS"
 
13350
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
13351
            gt_save_LIBS="$LIBS"
 
13352
            LIBS="$LIBS $LIBINTL"
 
13353
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13354
/* end confdefs.h.  */
 
13355
#include <libintl.h>
 
13356
extern int _nl_msg_cat_cntr;
 
13357
extern
 
13358
#ifdef __cplusplus
 
13359
"C"
 
13360
#endif
 
13361
const char *_nl_expand_alias ();
 
13362
int
 
13363
main ()
 
13364
{
 
13365
bindtextdomain ("", "");
 
13366
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
13367
  ;
 
13368
  return 0;
 
13369
}
 
13370
_ACEOF
 
13371
if ac_fn_c_try_link "$LINENO"; then :
 
13372
  gt_cv_func_gnugettext1_libintl=yes
 
13373
else
 
13374
  gt_cv_func_gnugettext1_libintl=no
 
13375
fi
 
13376
rm -f core conftest.err conftest.$ac_objext \
 
13377
    conftest$ac_exeext conftest.$ac_ext
 
13378
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
13379
              LIBS="$LIBS $LIBICONV"
 
13380
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13381
/* end confdefs.h.  */
 
13382
#include <libintl.h>
 
13383
extern int _nl_msg_cat_cntr;
 
13384
extern
 
13385
#ifdef __cplusplus
 
13386
"C"
 
13387
#endif
 
13388
const char *_nl_expand_alias ();
 
13389
int
 
13390
main ()
 
13391
{
 
13392
bindtextdomain ("", "");
 
13393
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
13394
  ;
 
13395
  return 0;
 
13396
}
 
13397
_ACEOF
 
13398
if ac_fn_c_try_link "$LINENO"; then :
 
13399
  LIBINTL="$LIBINTL $LIBICONV"
 
13400
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
13401
                gt_cv_func_gnugettext1_libintl=yes
 
13402
 
 
13403
fi
 
13404
rm -f core conftest.err conftest.$ac_objext \
 
13405
    conftest$ac_exeext conftest.$ac_ext
 
13406
            fi
 
13407
            CPPFLAGS="$gt_save_CPPFLAGS"
 
13408
            LIBS="$gt_save_LIBS"
 
13409
fi
 
13410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
 
13411
$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
 
13412
        fi
 
13413
 
 
13414
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
13415
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
13416
                && test "$PACKAGE" != gettext-runtime \
 
13417
                && test "$PACKAGE" != gettext-tools; }; then
 
13418
          gt_use_preinstalled_gnugettext=yes
 
13419
        else
 
13420
                    LIBINTL=
 
13421
          LTLIBINTL=
 
13422
          INCINTL=
 
13423
        fi
 
13424
 
 
13425
 
 
13426
 
 
13427
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
13428
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
13429
 
 
13430
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
13431
 
 
13432
    else
 
13433
      USE_NLS=no
 
13434
    fi
 
13435
  fi
 
13436
 
 
13437
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
13438
$as_echo_n "checking whether to use NLS... " >&6; }
 
13439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
13440
$as_echo "$USE_NLS" >&6; }
 
13441
  if test "$USE_NLS" = "yes"; then
 
13442
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
13443
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
13444
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
13445
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
13446
        gt_source="external libintl"
 
13447
      else
 
13448
        gt_source="libc"
 
13449
      fi
 
13450
    else
 
13451
      gt_source="included intl directory"
 
13452
    fi
 
13453
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
13454
$as_echo "$gt_source" >&6; }
 
13455
  fi
 
13456
 
 
13457
  if test "$USE_NLS" = "yes"; then
 
13458
 
 
13459
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
13460
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
13461
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
13462
$as_echo_n "checking how to link with libintl... " >&6; }
 
13463
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
13464
$as_echo "$LIBINTL" >&6; }
 
13465
 
 
13466
  for element in $INCINTL; do
 
13467
    haveit=
 
13468
    for x in $CPPFLAGS; do
 
13469
 
 
13470
  acl_save_prefix="$prefix"
 
13471
  prefix="$acl_final_prefix"
 
13472
  acl_save_exec_prefix="$exec_prefix"
 
13473
  exec_prefix="$acl_final_exec_prefix"
 
13474
  eval x=\"$x\"
 
13475
  exec_prefix="$acl_save_exec_prefix"
 
13476
  prefix="$acl_save_prefix"
 
13477
 
 
13478
      if test "X$x" = "X$element"; then
 
13479
        haveit=yes
 
13480
        break
 
13481
      fi
 
13482
    done
 
13483
    if test -z "$haveit"; then
 
13484
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
13485
    fi
 
13486
  done
 
13487
 
 
13488
      fi
 
13489
 
 
13490
 
 
13491
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
13492
 
 
13493
 
 
13494
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
 
13495
 
 
13496
    fi
 
13497
 
 
13498
        POSUB=po
 
13499
  fi
 
13500
 
 
13501
 
 
13502
 
 
13503
    INTLLIBS="$LIBINTL"
 
13504
 
 
13505
 
 
13506
 
 
13507
 
 
13508
 
 
13509
 
 
13510
 
 
13511
 
 
13512
 
 
13513
 
 
13514
 if git log -1 &>/dev/null; then
 
13515
  GIT_CHECKOUT_TRUE=
 
13516
  GIT_CHECKOUT_FALSE='#'
 
13517
else
 
13518
  GIT_CHECKOUT_TRUE='#'
 
13519
  GIT_CHECKOUT_FALSE=
 
13520
fi
 
13521
 
 
13522
 
 
13523
 
 
13524
# Check whether --enable-silent-rules was given.
 
13525
if test "${enable_silent_rules+set}" = set; then :
 
13526
  enableval=$enable_silent_rules;
 
13527
fi
 
13528
 
 
13529
case $enable_silent_rules in
 
13530
yes) AM_DEFAULT_VERBOSITY=0;;
 
13531
no)  AM_DEFAULT_VERBOSITY=1;;
 
13532
*)   AM_DEFAULT_VERBOSITY=1;;
 
13533
esac
 
13534
AM_BACKSLASH='\'
 
13535
 
 
13536
 
 
13537
 if test "$ac_cv_c_compiler_gnu" = yes; then
 
13538
  HAVE_GCC_TRUE=
 
13539
  HAVE_GCC_FALSE='#'
 
13540
else
 
13541
  HAVE_GCC_TRUE='#'
 
13542
  HAVE_GCC_FALSE=
 
13543
fi
 
13544
 
 
13545
 
 
13546
for ac_header in stdint.h dlfcn.h
 
13547
do :
 
13548
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13549
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
13550
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
13551
  cat >>confdefs.h <<_ACEOF
 
13552
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13553
_ACEOF
 
13554
 
 
13555
fi
 
13556
 
 
13557
done
 
13558
 
 
13559
ac_config_headers="$ac_config_headers config.h"
 
13560
 
 
13561
 
 
13562
ac_fn_c_check_type "$LINENO" "errno_t" "ac_cv_type_errno_t" "#include <errno.h>
 
13563
"
 
13564
if test "x$ac_cv_type_errno_t" = xyes; then :
 
13565
 
 
13566
cat >>confdefs.h <<_ACEOF
 
13567
#define HAVE_ERRNO_T 1
 
13568
_ACEOF
 
13569
 
 
13570
 
 
13571
fi
 
13572
 
 
13573
 
 
13574
 
 
13575
 
 
13576
 
 
13577
 if test x$with_aux_info = xyes; then
 
13578
  WANT_AUX_INFO_TRUE=
 
13579
  WANT_AUX_INFO_FALSE='#'
 
13580
else
 
13581
  WANT_AUX_INFO_TRUE='#'
 
13582
  WANT_AUX_INFO_FALSE=
 
13583
fi
 
13584
 
 
13585
 
 
13586
 
 
13587
# Check whether --with-shared-build-dir was given.
 
13588
if test "${with_shared_build_dir+set}" = set; then :
 
13589
  withval=$with_shared_build_dir;
 
13590
fi
 
13591
 
 
13592
 
 
13593
    sharedbuilddir="$srcdir/sharedbuild"
 
13594
    if test x"$with_shared_build_dir" != x; then
 
13595
        sharedbuilddir=$with_shared_build_dir
 
13596
        CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
 
13597
        CPPFLAGS="$CPPFLAGS -I$with_shared_build_dir/include"
 
13598
        LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
 
13599
    fi
 
13600
 
 
13601
 
 
13602
 
 
13603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13604
/* end confdefs.h.  */
 
13605
#include <pthread.h>
 
13606
int
 
13607
main ()
 
13608
{
 
13609
pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
 
13610
  ;
 
13611
  return 0;
 
13612
}
 
13613
_ACEOF
 
13614
if ac_fn_c_try_compile "$LINENO"; then :
 
13615
 
 
13616
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
 
13617
 
 
13618
else
 
13619
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pthread library not found! Clients will not be thread safe..." >&5
 
13620
$as_echo "$as_me: WARNING: Pthread library not found! Clients will not be thread safe..." >&2;}
 
13621
fi
 
13622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13623
 
 
13624
#Check for PAM headers
 
13625
for ac_header in security/pam_appl.h security/pam_misc.h security/pam_modules.h
 
13626
do :
 
13627
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13628
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
13629
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
13630
  cat >>confdefs.h <<_ACEOF
 
13631
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13632
_ACEOF
 
13633
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_item in -lpam" >&5
 
13634
$as_echo_n "checking for pam_get_item in -lpam... " >&6; }
 
13635
if ${ac_cv_lib_pam_pam_get_item+:} false; then :
 
13636
  $as_echo_n "(cached) " >&6
 
13637
else
 
13638
  ac_check_lib_save_LIBS=$LIBS
 
13639
LIBS="-lpam  $LIBS"
 
13640
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13641
/* end confdefs.h.  */
 
13642
 
 
13643
/* Override any GCC internal prototype to avoid an error.
 
13644
   Use char because int might match the return type of a GCC
 
13645
   builtin and then its argument prototype would still apply.  */
 
13646
#ifdef __cplusplus
 
13647
extern "C"
 
13648
#endif
 
13649
char pam_get_item ();
 
13650
int
 
13651
main ()
 
13652
{
 
13653
return pam_get_item ();
 
13654
  ;
 
13655
  return 0;
 
13656
}
 
13657
_ACEOF
 
13658
if ac_fn_c_try_link "$LINENO"; then :
 
13659
  ac_cv_lib_pam_pam_get_item=yes
 
13660
else
 
13661
  ac_cv_lib_pam_pam_get_item=no
 
13662
fi
 
13663
rm -f core conftest.err conftest.$ac_objext \
 
13664
    conftest$ac_exeext conftest.$ac_ext
 
13665
LIBS=$ac_check_lib_save_LIBS
 
13666
fi
 
13667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_item" >&5
 
13668
$as_echo "$ac_cv_lib_pam_pam_get_item" >&6; }
 
13669
if test "x$ac_cv_lib_pam_pam_get_item" = xyes; then :
 
13670
   PAM_LIBS="-lpam"
 
13671
else
 
13672
  as_fn_error $? "PAM must support pam_get_item" "$LINENO" 5
 
13673
fi
 
13674
 
 
13675
else
 
13676
  as_fn_error $? "PAM development libraries not installed" "$LINENO" 5
 
13677
 
 
13678
fi
 
13679
 
 
13680
done
 
13681
 
 
13682
 
 
13683
#Set the NSS library install path
 
13684
# Check whether --enable-nsslibdir was given.
 
13685
if test "${enable_nsslibdir+set}" = set; then :
 
13686
  enableval=$enable_nsslibdir; nsslibdir=$enableval
 
13687
else
 
13688
  nsslibdir=$libdir
 
13689
fi
 
13690
 
 
13691
 
 
13692
 
 
13693
#Set the PAM module install path
 
13694
# Check whether --enable-pammoddir was given.
 
13695
if test "${enable_pammoddir+set}" = set; then :
 
13696
  enableval=$enable_pammoddir; pammoddir=$enableval
 
13697
else
 
13698
  pammoddir=$libdir/security
 
13699
fi
 
13700
 
 
13701
 
 
13702
 
 
13703
#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
 
13704
 
 
13705
# Check whether --with-os was given.
 
13706
if test "${with_os+set}" = set; then :
 
13707
  withval=$with_os;
 
13708
fi
 
13709
 
 
13710
osname=""
 
13711
if test x"$with_os" != x ; then
 
13712
    if test x"$with_os" = xfedora || \
 
13713
       test x"$with_os" = xredhat || \
 
13714
       test x"$with_os" = xsuse || \
 
13715
       test x"$with_os" = xgentoo || \
 
13716
       test x"$with_os" = xdebian ; then
 
13717
        osname=$with_os
 
13718
    else
 
13719
        as_fn_error $? "Illegal value -$with_os- for option --with-os" "$LINENO" 5
 
13720
    fi
 
13721
fi
 
13722
 
 
13723
if test x"$osname" = x ; then
 
13724
    if test -f /etc/fedora-release ; then
 
13725
        osname="fedora"
 
13726
    elif test -f /etc/redhat-release ; then
 
13727
        osname="redhat"
 
13728
    elif test -f /etc/SuSE-release ; then
 
13729
        osname="suse"
 
13730
    elif test -f /etc/debian_version ; then
 
13731
        osname="debian"
 
13732
    elif test -f /etc/gentoo-release ; then
 
13733
        osname="gentoo"
 
13734
    fi
 
13735
 
 
13736
    { $as_echo "$as_me:${as_lineno-$LINENO}: Detected operating system type: $osname" >&5
 
13737
$as_echo "$as_me: Detected operating system type: $osname" >&6;}
 
13738
fi
 
13739
 
 
13740
 if test x"$osname" = xfedora; then
 
13741
  HAVE_FEDORA_TRUE=
 
13742
  HAVE_FEDORA_FALSE='#'
 
13743
else
 
13744
  HAVE_FEDORA_TRUE='#'
 
13745
  HAVE_FEDORA_FALSE=
 
13746
fi
 
13747
 
 
13748
 if test x"$osname" = xredhat; then
 
13749
  HAVE_REDHAT_TRUE=
 
13750
  HAVE_REDHAT_FALSE='#'
 
13751
else
 
13752
  HAVE_REDHAT_TRUE='#'
 
13753
  HAVE_REDHAT_FALSE=
 
13754
fi
 
13755
 
 
13756
 if test x"$osname" = xsuse; then
 
13757
  HAVE_SUSE_TRUE=
 
13758
  HAVE_SUSE_FALSE='#'
 
13759
else
 
13760
  HAVE_SUSE_TRUE='#'
 
13761
  HAVE_SUSE_FALSE=
 
13762
fi
 
13763
 
 
13764
 if test x"$osname" = xdebian; then
 
13765
  HAVE_DEBIAN_TRUE=
 
13766
  HAVE_DEBIAN_FALSE='#'
 
13767
else
 
13768
  HAVE_DEBIAN_TRUE='#'
 
13769
  HAVE_DEBIAN_FALSE=
 
13770
fi
 
13771
 
 
13772
 if test x"$osname" = xgentoo; then
 
13773
  HAVE_GENTOO_TRUE=
 
13774
  HAVE_GENTOO_FALSE='#'
 
13775
else
 
13776
  HAVE_GENTOO_TRUE='#'
 
13777
  HAVE_GENTOO_FALSE=
 
13778
fi
 
13779
 
 
13780
 
 
13781
ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#define _GNU_SOURCE
 
13782
                   #include <sys/socket.h>
 
13783
"
 
13784
if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
 
13785
 
 
13786
cat >>confdefs.h <<_ACEOF
 
13787
#define HAVE_STRUCT_UCRED_PID 1
 
13788
_ACEOF
 
13789
 
 
13790
 
 
13791
fi
 
13792
ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#define _GNU_SOURCE
 
13793
                   #include <sys/socket.h>
 
13794
"
 
13795
if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
 
13796
 
 
13797
cat >>confdefs.h <<_ACEOF
 
13798
#define HAVE_STRUCT_UCRED_UID 1
 
13799
_ACEOF
 
13800
 
 
13801
 
 
13802
fi
 
13803
ac_fn_c_check_member "$LINENO" "struct ucred" "gid" "ac_cv_member_struct_ucred_gid" "#define _GNU_SOURCE
 
13804
                   #include <sys/socket.h>
 
13805
"
 
13806
if test "x$ac_cv_member_struct_ucred_gid" = xyes; then :
 
13807
 
 
13808
cat >>confdefs.h <<_ACEOF
 
13809
#define HAVE_STRUCT_UCRED_GID 1
 
13810
_ACEOF
 
13811
 
 
13812
 
 
13813
fi
 
13814
 
 
13815
 
 
13816
if test x"$ac_cv_member_struct_ucred_pid" = xyes -a \
 
13817
        x"$ac_cv_member_struct_ucred_uid" = xyes -a \
 
13818
        x"$ac_cv_member_struct_ucred_gid" = xyes ; then
 
13819
 
 
13820
$as_echo "#define HAVE_UCRED 1" >>confdefs.h
 
13821
 
 
13822
else
 
13823
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: struct ucred is not available" >&5
 
13824
$as_echo "$as_me: WARNING: struct ucred is not available" >&2;}
 
13825
fi
 
13826
 
 
13827
 
 
13828
 
 
13829
 
 
13830
 
 
13831
 
 
13832
 
 
13833
 
 
13834
 
 
13835
 
 
13836
 
 
13837
 
 
13838
 
 
13839
 
 
13840
 
 
13841
 
 
13842
 
 
13843
 if test x$with_manpages = xyes; then
 
13844
  BUILD_MANPAGES_TRUE=
 
13845
  BUILD_MANPAGES_FALSE='#'
 
13846
else
 
13847
  BUILD_MANPAGES_TRUE='#'
 
13848
  BUILD_MANPAGES_FALSE=
 
13849
fi
 
13850
 
 
13851
 
 
13852
 
 
13853
 
 
13854
 
 
13855
 
 
13856
 
 
13857
 
 
13858
 
 
13859
 
 
13860
 
 
13861
 
 
13862
 
 
13863
 
 
13864
 
 
13865
 
 
13866
 
 
13867
 
 
13868
 
 
13869
# Check whether --with-db-path was given.
 
13870
if test "${with_db_path+set}" = set; then :
 
13871
  withval=$with_db_path;
 
13872
fi
 
13873
 
 
13874
    config_dbpath="\"VARDIR\"/lib/sss/db"
 
13875
    dbpath="${localstatedir}/lib/sss/db"
 
13876
    if test x"$with_db_path" != x; then
 
13877
        config_dbpath=$with_db_path
 
13878
        dbpath=$with_db_path
 
13879
    fi
 
13880
 
 
13881
 
 
13882
cat >>confdefs.h <<_ACEOF
 
13883
#define DB_PATH "$config_dbpath"
 
13884
_ACEOF
 
13885
 
 
13886
 
 
13887
 
 
13888
# Check whether --with-plugin-path was given.
 
13889
if test "${with_plugin_path+set}" = set; then :
 
13890
  withval=$with_plugin_path;
 
13891
fi
 
13892
 
 
13893
    pluginpath="${libdir}/sssd"
 
13894
    config_pluginpath="\"LIBDIR\"/sssd"
 
13895
    if test x"$with_plugin_path" != x; then
 
13896
        pluginpath=$with_plugin_path
 
13897
        config_pluginpath=$with_plugin_path
 
13898
    fi
 
13899
 
 
13900
 
 
13901
cat >>confdefs.h <<_ACEOF
 
13902
#define DATA_PROVIDER_PLUGINS_PATH "$config_pluginpath"
 
13903
_ACEOF
 
13904
 
 
13905
 
 
13906
 
 
13907
# Check whether --with-pid-path was given.
 
13908
if test "${with_pid_path+set}" = set; then :
 
13909
  withval=$with_pid_path;
 
13910
fi
 
13911
 
 
13912
    config_pidpath="\"VARDIR\"/run"
 
13913
    pidpath="${localstatedir}/run"
 
13914
    if test x"$with_pid_path" != x; then
 
13915
        config_pidpath=$with_pid_path
 
13916
        pidpath=$with_pid_path
 
13917
    fi
 
13918
 
 
13919
 
 
13920
cat >>confdefs.h <<_ACEOF
 
13921
#define PID_PATH "$config_pidpath"
 
13922
_ACEOF
 
13923
 
 
13924
 
 
13925
 
 
13926
# Check whether --with-log-path was given.
 
13927
if test "${with_log_path+set}" = set; then :
 
13928
  withval=$with_log_path;
 
13929
fi
 
13930
 
 
13931
    config_logpath="\"VARDIR\"/log/sssd"
 
13932
    logpath="${localstatedir}/log/sssd"
 
13933
    if test x"$with_log_path" != x; then
 
13934
        config_logpath=$with_log_path
 
13935
        logpath=$with_log_path
 
13936
    fi
 
13937
 
 
13938
 
 
13939
cat >>confdefs.h <<_ACEOF
 
13940
#define LOG_PATH "$config_logpath"
 
13941
_ACEOF
 
13942
 
 
13943
 
 
13944
 
 
13945
# Check whether --with-pubconf-path was given.
 
13946
if test "${with_pubconf_path+set}" = set; then :
 
13947
  withval=$with_pubconf_path;
 
13948
fi
 
13949
 
 
13950
    config_pubconfpath="\"VARDIR\"/lib/sss/pubconf"
 
13951
    pubconfpath="${localstatedir}/lib/sss/pubconf"
 
13952
    if test x"$with_pubconf_path" != x; then
 
13953
        config_pubconfpath=$with_pubconf_path
 
13954
        pubconfpath=$with_pubconf_path
 
13955
    fi
 
13956
 
 
13957
 
 
13958
cat >>confdefs.h <<_ACEOF
 
13959
#define PUBCONF_PATH "$config_pubconfpath"
 
13960
_ACEOF
 
13961
 
 
13962
 
 
13963
 
 
13964
# Check whether --with-pipe-path was given.
 
13965
if test "${with_pipe_path+set}" = set; then :
 
13966
  withval=$with_pipe_path;
 
13967
fi
 
13968
 
 
13969
    config_pipepath="\"VARDIR\"/lib/sss/pipes"
 
13970
    pipepath="${localstatedir}/lib/sss/pipes"
 
13971
    if test x"$with_pipe_path" != x; then
 
13972
        config_pipepath=$with_pipe_path
 
13973
        pipepath=$with_pipe_path
 
13974
    fi
 
13975
 
 
13976
 
 
13977
cat >>confdefs.h <<_ACEOF
 
13978
#define PIPE_PATH "$config_pipepath"
 
13979
_ACEOF
 
13980
 
 
13981
 
 
13982
 
 
13983
# Check whether --with-init-dir was given.
 
13984
if test "${with_init_dir+set}" = set; then :
 
13985
  withval=$with_init_dir;
 
13986
fi
 
13987
 
 
13988
    initdir="${sysconfdir}/rc.d/init.d"
 
13989
    if test x$osname == xgentoo; then
 
13990
        initdir="${sysconfdir}/init.d"
 
13991
    fi
 
13992
    if test x"$with_init_dir" != x; then
 
13993
        initdir=$with_init_dir
 
13994
    fi
 
13995
 
 
13996
 
 
13997
 
 
13998
# Check whether --with-test-dir was given.
 
13999
if test "${with_test_dir+set}" = set; then :
 
14000
  withval=$with_test_dir;
 
14001
fi
 
14002
 
 
14003
    TEST_DIR=$with_test_dir
 
14004
 
 
14005
 
 
14006
cat >>confdefs.h <<_ACEOF
 
14007
#define TEST_DIR "$with_test_dir"
 
14008
_ACEOF
 
14009
 
 
14010
 
 
14011
 
 
14012
# Check whether --with-manpages was given.
 
14013
if test "${with_manpages+set}" = set; then :
 
14014
  withval=$with_manpages;
 
14015
else
 
14016
  with_manpages=yes
 
14017
 
 
14018
fi
 
14019
 
 
14020
    if test x"$with_manpages" = xyes; then
 
14021
        HAVE_MANPAGES=1
 
14022
 
 
14023
    fi
 
14024
 
 
14025
 
 
14026
# Check whether --with-xml-catalog-path was given.
 
14027
if test "${with_xml_catalog_path+set}" = set; then :
 
14028
  withval=$with_xml_catalog_path;
 
14029
fi
 
14030
 
 
14031
    SGML_CATALOG_FILES="/etc/xml/catalog"
 
14032
    if test x"$with_xml_catalog_path" != x; then
 
14033
        SGML_CATALOG_FILES="$with_xml_catalog_path"
 
14034
    fi
 
14035
 
 
14036
 
 
14037
 
 
14038
# Check whether --with-krb5-plugin-path was given.
 
14039
if test "${with_krb5_plugin_path+set}" = set; then :
 
14040
  withval=$with_krb5_plugin_path;
 
14041
fi
 
14042
 
 
14043
    krb5pluginpath="${libdir}/krb5/plugins/libkrb5"
 
14044
    if test x"$with_krb5_plugin_path" != x; then
 
14045
        krb5pluginpath=$with_krb5_plugin_path
 
14046
    fi
 
14047
 
 
14048
 
 
14049
 
 
14050
# Check whether --with-python-bindings was given.
 
14051
if test "${with_python_bindings+set}" = set; then :
 
14052
  withval=$with_python_bindings;
 
14053
else
 
14054
  with_python_bindings=yes
 
14055
 
 
14056
fi
 
14057
 
 
14058
    if test x"$with_python_bindings" = xyes; then
 
14059
        HAVE_PYTHON_BINDINGS=1
 
14060
 
 
14061
    fi
 
14062
     if test x"$with_python_bindings" = xyes; then
 
14063
  BUILD_PYTHON_BINDINGS_TRUE=
 
14064
  BUILD_PYTHON_BINDINGS_FALSE='#'
 
14065
else
 
14066
  BUILD_PYTHON_BINDINGS_TRUE='#'
 
14067
  BUILD_PYTHON_BINDINGS_FALSE=
 
14068
fi
 
14069
 
 
14070
 
 
14071
 
 
14072
# Check whether --with-selinux was given.
 
14073
if test "${with_selinux+set}" = set; then :
 
14074
  withval=$with_selinux;
 
14075
else
 
14076
  with_selinux=yes
 
14077
 
 
14078
fi
 
14079
 
 
14080
    if test x"$with_selinux" = xyes; then
 
14081
        HAVE_SELINUX=1
 
14082
 
 
14083
 
 
14084
cat >>confdefs.h <<_ACEOF
 
14085
#define HAVE_SELINUX 1
 
14086
_ACEOF
 
14087
 
 
14088
    fi
 
14089
     if test x"$with_selinux" = xyes; then
 
14090
  BUILD_SELINUX_TRUE=
 
14091
  BUILD_SELINUX_FALSE='#'
 
14092
else
 
14093
  BUILD_SELINUX_TRUE='#'
 
14094
  BUILD_SELINUX_FALSE=
 
14095
fi
 
14096
 
 
14097
 
 
14098
 
 
14099
# Check whether --with-nscd was given.
 
14100
if test "${with_nscd+set}" = set; then :
 
14101
  withval=$with_nscd;
 
14102
else
 
14103
  with_nscd=yes
 
14104
 
 
14105
fi
 
14106
 
 
14107
    if test x"$with_nscd" = xyes; then
 
14108
 
 
14109
cat >>confdefs.h <<_ACEOF
 
14110
#define HAVE_NSCD 1
 
14111
_ACEOF
 
14112
 
 
14113
    fi
 
14114
 
 
14115
 
 
14116
# Check whether --with-semanage was given.
 
14117
if test "${with_semanage+set}" = set; then :
 
14118
  withval=$with_semanage;
 
14119
else
 
14120
  with_semanage=yes
 
14121
 
 
14122
fi
 
14123
 
 
14124
    if test x"$with_semanage" = xyes; then
 
14125
        HAVE_SEMANAGE=1
 
14126
 
 
14127
 
 
14128
cat >>confdefs.h <<_ACEOF
 
14129
#define HAVE_SEMANAGE 1
 
14130
_ACEOF
 
14131
 
 
14132
    fi
 
14133
     if test x"$with_semanage" = xyes; then
 
14134
  BUILD_SEMANAGE_TRUE=
 
14135
  BUILD_SEMANAGE_FALSE='#'
 
14136
else
 
14137
  BUILD_SEMANAGE_TRUE='#'
 
14138
  BUILD_SEMANAGE_FALSE=
 
14139
fi
 
14140
 
 
14141
 
 
14142
 
 
14143
# Check whether --with-libnl was given.
 
14144
if test "${with_libnl+set}" = set; then :
 
14145
  withval=$with_libnl;
 
14146
else
 
14147
  with_libnl=yes
 
14148
 
 
14149
fi
 
14150
 
 
14151
    if test x"$with_libnl" = xyes; then
 
14152
        BUILD_LIBNL=1
 
14153
 
 
14154
    fi
 
14155
 
 
14156
 
 
14157
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
14158
#
 
14159
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
14160
#
 
14161
# This program is free software; you can redistribute it and/or modify
 
14162
# it under the terms of the GNU General Public License as published by
 
14163
# the Free Software Foundation; either version 3 of the License, or
 
14164
# (at your option) any later version.
 
14165
#
 
14166
# This program is distributed in the hope that it will be useful, but
 
14167
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
14168
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14169
# General Public License for more details.
 
14170
#
 
14171
# You should have received a copy of the GNU General Public License
 
14172
# along with this program; if not, see <http://www.gnu.org/licenses/>.
 
14173
#
 
14174
# As a special exception to the GNU General Public License, if you
 
14175
# distribute this file as part of a program that contains a
 
14176
# configuration script generated by Autoconf, you may include it under
 
14177
# the same distribution terms that you use for the rest of that program.
 
14178
 
 
14179
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
14180
# ----------------------------------
 
14181
# PKG_PROG_PKG_CONFIG
 
14182
 
 
14183
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
14184
#
 
14185
# Check to see whether a particular set of modules exists.  Similar
 
14186
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
14187
#
 
14188
#
 
14189
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
14190
# this or PKG_CHECK_MODULES is called, or make sure to call
 
14191
# PKG_CHECK_EXISTS manually
 
14192
# --------------------------------------------------------------
 
14193
 
 
14194
 
 
14195
 
 
14196
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
14197
# ---------------------------------------------
 
14198
# _PKG_CONFIG
 
14199
 
 
14200
# _PKG_SHORT_ERRORS_SUPPORTED
 
14201
# -----------------------------
 
14202
# _PKG_SHORT_ERRORS_SUPPORTED
 
14203
 
 
14204
 
 
14205
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
14206
# [ACTION-IF-NOT-FOUND])
 
14207
#
 
14208
#
 
14209
# Note that if there is a possibility the first call to
 
14210
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
14211
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
14212
#
 
14213
#
 
14214
# --------------------------------------------------------------
 
14215
# PKG_CHECK_MODULES
 
14216
 
 
14217
POPT_OBJ=""
 
14218
 
 
14219
 
 
14220
 
 
14221
 
 
14222
for ac_header in popt.h
 
14223
do :
 
14224
  ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
 
14225
if test "x$ac_cv_header_popt_h" = xyes; then :
 
14226
  cat >>confdefs.h <<_ACEOF
 
14227
#define HAVE_POPT_H 1
 
14228
_ACEOF
 
14229
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
 
14230
$as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
 
14231
if ${ac_cv_lib_popt_poptGetContext+:} false; then :
 
14232
  $as_echo_n "(cached) " >&6
 
14233
else
 
14234
  ac_check_lib_save_LIBS=$LIBS
 
14235
LIBS="-lpopt  $LIBS"
 
14236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14237
/* end confdefs.h.  */
 
14238
 
 
14239
/* Override any GCC internal prototype to avoid an error.
 
14240
   Use char because int might match the return type of a GCC
 
14241
   builtin and then its argument prototype would still apply.  */
 
14242
#ifdef __cplusplus
 
14243
extern "C"
 
14244
#endif
 
14245
char poptGetContext ();
 
14246
int
 
14247
main ()
 
14248
{
 
14249
return poptGetContext ();
 
14250
  ;
 
14251
  return 0;
 
14252
}
 
14253
_ACEOF
 
14254
if ac_fn_c_try_link "$LINENO"; then :
 
14255
  ac_cv_lib_popt_poptGetContext=yes
 
14256
else
 
14257
  ac_cv_lib_popt_poptGetContext=no
 
14258
fi
 
14259
rm -f core conftest.err conftest.$ac_objext \
 
14260
    conftest$ac_exeext conftest.$ac_ext
 
14261
LIBS=$ac_check_lib_save_LIBS
 
14262
fi
 
14263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
 
14264
$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
 
14265
if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
 
14266
   POPT_LIBS="-lpopt"
 
14267
else
 
14268
  as_fn_error $? "POPT must support poptGetContext" "$LINENO" 5
 
14269
fi
 
14270
 
 
14271
else
 
14272
  as_fn_error $? "POPT development libraries not installed" "$LINENO" 5
 
14273
 
 
14274
fi
 
14275
 
 
14276
done
 
14277
 
 
14278
 
 
14279
 
 
14280
 
 
14281
 
 
14282
 
 
14283
 
 
14284
 
 
14285
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
14286
        if test -n "$ac_tool_prefix"; then
 
14287
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
14288
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
14289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14290
$as_echo_n "checking for $ac_word... " >&6; }
 
14291
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
14292
  $as_echo_n "(cached) " >&6
 
14293
else
 
14294
  case $PKG_CONFIG in
 
14295
  [\\/]* | ?:[\\/]*)
 
14296
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14297
  ;;
 
14298
  *)
 
14299
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14300
for as_dir in $PATH
 
14301
do
 
14302
  IFS=$as_save_IFS
 
14303
  test -z "$as_dir" && as_dir=.
 
14304
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14305
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14306
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14307
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14308
    break 2
 
14309
  fi
 
14310
done
 
14311
  done
 
14312
IFS=$as_save_IFS
 
14313
 
 
14314
  ;;
 
14315
esac
 
14316
fi
 
14317
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14318
if test -n "$PKG_CONFIG"; then
 
14319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
14320
$as_echo "$PKG_CONFIG" >&6; }
 
14321
else
 
14322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14323
$as_echo "no" >&6; }
 
14324
fi
 
14325
 
 
14326
 
 
14327
fi
 
14328
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
14329
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
14330
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
14331
set dummy pkg-config; ac_word=$2
 
14332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14333
$as_echo_n "checking for $ac_word... " >&6; }
 
14334
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
14335
  $as_echo_n "(cached) " >&6
 
14336
else
 
14337
  case $ac_pt_PKG_CONFIG in
 
14338
  [\\/]* | ?:[\\/]*)
 
14339
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
14340
  ;;
 
14341
  *)
 
14342
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14343
for as_dir in $PATH
 
14344
do
 
14345
  IFS=$as_save_IFS
 
14346
  test -z "$as_dir" && as_dir=.
 
14347
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14348
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14349
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14350
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14351
    break 2
 
14352
  fi
 
14353
done
 
14354
  done
 
14355
IFS=$as_save_IFS
 
14356
 
 
14357
  ;;
 
14358
esac
 
14359
fi
 
14360
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
14361
if test -n "$ac_pt_PKG_CONFIG"; then
 
14362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
14363
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
14364
else
 
14365
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14366
$as_echo "no" >&6; }
 
14367
fi
 
14368
 
 
14369
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
14370
    PKG_CONFIG=""
 
14371
  else
 
14372
    case $cross_compiling:$ac_tool_warned in
 
14373
yes:)
 
14374
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
14375
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
14376
ac_tool_warned=yes ;;
 
14377
esac
 
14378
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
14379
  fi
 
14380
else
 
14381
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
14382
fi
 
14383
 
 
14384
fi
 
14385
if test -n "$PKG_CONFIG"; then
 
14386
        _pkg_min_version=0.9.0
 
14387
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
14388
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
14389
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
14390
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14391
$as_echo "yes" >&6; }
 
14392
        else
 
14393
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14394
$as_echo "no" >&6; }
 
14395
                PKG_CONFIG=""
 
14396
        fi
 
14397
 
 
14398
fi
 
14399
ac_fn_c_check_header_mongrel "$LINENO" "talloc.h" "ac_cv_header_talloc_h" "$ac_includes_default"
 
14400
if test "x$ac_cv_header_talloc_h" = xyes; then :
 
14401
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_init in -ltalloc" >&5
 
14402
$as_echo_n "checking for talloc_init in -ltalloc... " >&6; }
 
14403
if ${ac_cv_lib_talloc_talloc_init+:} false; then :
 
14404
  $as_echo_n "(cached) " >&6
 
14405
else
 
14406
  ac_check_lib_save_LIBS=$LIBS
 
14407
LIBS="-ltalloc  $LIBS"
 
14408
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14409
/* end confdefs.h.  */
 
14410
 
 
14411
/* Override any GCC internal prototype to avoid an error.
 
14412
   Use char because int might match the return type of a GCC
 
14413
   builtin and then its argument prototype would still apply.  */
 
14414
#ifdef __cplusplus
 
14415
extern "C"
 
14416
#endif
 
14417
char talloc_init ();
 
14418
int
 
14419
main ()
 
14420
{
 
14421
return talloc_init ();
 
14422
  ;
 
14423
  return 0;
 
14424
}
 
14425
_ACEOF
 
14426
if ac_fn_c_try_link "$LINENO"; then :
 
14427
  ac_cv_lib_talloc_talloc_init=yes
 
14428
else
 
14429
  ac_cv_lib_talloc_talloc_init=no
 
14430
fi
 
14431
rm -f core conftest.err conftest.$ac_objext \
 
14432
    conftest$ac_exeext conftest.$ac_ext
 
14433
LIBS=$ac_check_lib_save_LIBS
 
14434
fi
 
14435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_init" >&5
 
14436
$as_echo "$ac_cv_lib_talloc_talloc_init" >&6; }
 
14437
if test "x$ac_cv_lib_talloc_talloc_init" = xyes; then :
 
14438
  TALLOC_LIBS="-ltalloc"
 
14439
fi
 
14440
 
 
14441
else
 
14442
 
 
14443
pkg_failed=no
 
14444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TALLOC" >&5
 
14445
$as_echo_n "checking for TALLOC... " >&6; }
 
14446
 
 
14447
if test -n "$PKG_CONFIG"; then
 
14448
    if test -n "$TALLOC_CFLAGS"; then
 
14449
        pkg_cv_TALLOC_CFLAGS="$TALLOC_CFLAGS"
 
14450
    else
 
14451
        if test -n "$PKG_CONFIG" && \
 
14452
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"talloc\""; } >&5
 
14453
  ($PKG_CONFIG --exists --print-errors "talloc") 2>&5
 
14454
  ac_status=$?
 
14455
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14456
  test $ac_status = 0; }; then
 
14457
  pkg_cv_TALLOC_CFLAGS=`$PKG_CONFIG --cflags "talloc" 2>/dev/null`
 
14458
else
 
14459
  pkg_failed=yes
 
14460
fi
 
14461
    fi
 
14462
else
 
14463
        pkg_failed=untried
 
14464
fi
 
14465
if test -n "$PKG_CONFIG"; then
 
14466
    if test -n "$TALLOC_LIBS"; then
 
14467
        pkg_cv_TALLOC_LIBS="$TALLOC_LIBS"
 
14468
    else
 
14469
        if test -n "$PKG_CONFIG" && \
 
14470
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"talloc\""; } >&5
 
14471
  ($PKG_CONFIG --exists --print-errors "talloc") 2>&5
 
14472
  ac_status=$?
 
14473
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14474
  test $ac_status = 0; }; then
 
14475
  pkg_cv_TALLOC_LIBS=`$PKG_CONFIG --libs "talloc" 2>/dev/null`
 
14476
else
 
14477
  pkg_failed=yes
 
14478
fi
 
14479
    fi
 
14480
else
 
14481
        pkg_failed=untried
 
14482
fi
 
14483
 
 
14484
 
 
14485
 
 
14486
if test $pkg_failed = yes; then
 
14487
 
 
14488
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14489
        _pkg_short_errors_supported=yes
 
14490
else
 
14491
        _pkg_short_errors_supported=no
 
14492
fi
 
14493
        if test $_pkg_short_errors_supported = yes; then
 
14494
                TALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "talloc"`
 
14495
        else
 
14496
                TALLOC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "talloc"`
 
14497
        fi
 
14498
        # Put the nasty error message in config.log where it belongs
 
14499
        echo "$TALLOC_PKG_ERRORS" >&5
 
14500
 
 
14501
        as_fn_error $? "Package requirements (talloc) were not met:
 
14502
 
 
14503
$TALLOC_PKG_ERRORS
 
14504
 
 
14505
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14506
installed software in a non-standard prefix.
 
14507
 
 
14508
Alternatively, you may set the environment variables TALLOC_CFLAGS
 
14509
and TALLOC_LIBS to avoid the need to call pkg-config.
 
14510
See the pkg-config man page for more details.
 
14511
" "$LINENO" 5
 
14512
elif test $pkg_failed = untried; then
 
14513
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14514
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14515
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
14516
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14517
path to pkg-config.
 
14518
 
 
14519
Alternatively, you may set the environment variables TALLOC_CFLAGS
 
14520
and TALLOC_LIBS to avoid the need to call pkg-config.
 
14521
See the pkg-config man page for more details.
 
14522
 
 
14523
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
14524
See \`config.log' for more details" "$LINENO" 5; }
 
14525
else
 
14526
        TALLOC_CFLAGS=$pkg_cv_TALLOC_CFLAGS
 
14527
        TALLOC_LIBS=$pkg_cv_TALLOC_LIBS
 
14528
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14529
$as_echo "yes" >&6; }
 
14530
        :
 
14531
fi
 
14532
fi
 
14533
 
 
14534
 
 
14535
 
 
14536
 
 
14537
 
 
14538
 
 
14539
 
 
14540
for ac_header in tdb.h
 
14541
do :
 
14542
  ac_fn_c_check_header_mongrel "$LINENO" "tdb.h" "ac_cv_header_tdb_h" "$ac_includes_default"
 
14543
if test "x$ac_cv_header_tdb_h" = xyes; then :
 
14544
  cat >>confdefs.h <<_ACEOF
 
14545
#define HAVE_TDB_H 1
 
14546
_ACEOF
 
14547
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdb_repack in -ltdb" >&5
 
14548
$as_echo_n "checking for tdb_repack in -ltdb... " >&6; }
 
14549
if ${ac_cv_lib_tdb_tdb_repack+:} false; then :
 
14550
  $as_echo_n "(cached) " >&6
 
14551
else
 
14552
  ac_check_lib_save_LIBS=$LIBS
 
14553
LIBS="-ltdb  $LIBS"
 
14554
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14555
/* end confdefs.h.  */
 
14556
 
 
14557
/* Override any GCC internal prototype to avoid an error.
 
14558
   Use char because int might match the return type of a GCC
 
14559
   builtin and then its argument prototype would still apply.  */
 
14560
#ifdef __cplusplus
 
14561
extern "C"
 
14562
#endif
 
14563
char tdb_repack ();
 
14564
int
 
14565
main ()
 
14566
{
 
14567
return tdb_repack ();
 
14568
  ;
 
14569
  return 0;
 
14570
}
 
14571
_ACEOF
 
14572
if ac_fn_c_try_link "$LINENO"; then :
 
14573
  ac_cv_lib_tdb_tdb_repack=yes
 
14574
else
 
14575
  ac_cv_lib_tdb_tdb_repack=no
 
14576
fi
 
14577
rm -f core conftest.err conftest.$ac_objext \
 
14578
    conftest$ac_exeext conftest.$ac_ext
 
14579
LIBS=$ac_check_lib_save_LIBS
 
14580
fi
 
14581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tdb_tdb_repack" >&5
 
14582
$as_echo "$ac_cv_lib_tdb_tdb_repack" >&6; }
 
14583
if test "x$ac_cv_lib_tdb_tdb_repack" = xyes; then :
 
14584
  TDB_LIBS="-ltdb"
 
14585
else
 
14586
  as_fn_error $? "TDB must support tdb_repack" "$LINENO" 5
 
14587
fi
 
14588
 
 
14589
else
 
14590
 
 
14591
pkg_failed=no
 
14592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDB" >&5
 
14593
$as_echo_n "checking for TDB... " >&6; }
 
14594
 
 
14595
if test -n "$PKG_CONFIG"; then
 
14596
    if test -n "$TDB_CFLAGS"; then
 
14597
        pkg_cv_TDB_CFLAGS="$TDB_CFLAGS"
 
14598
    else
 
14599
        if test -n "$PKG_CONFIG" && \
 
14600
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tdb >= 1.1.3\""; } >&5
 
14601
  ($PKG_CONFIG --exists --print-errors "tdb >= 1.1.3") 2>&5
 
14602
  ac_status=$?
 
14603
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14604
  test $ac_status = 0; }; then
 
14605
  pkg_cv_TDB_CFLAGS=`$PKG_CONFIG --cflags "tdb >= 1.1.3" 2>/dev/null`
 
14606
else
 
14607
  pkg_failed=yes
 
14608
fi
 
14609
    fi
 
14610
else
 
14611
        pkg_failed=untried
 
14612
fi
 
14613
if test -n "$PKG_CONFIG"; then
 
14614
    if test -n "$TDB_LIBS"; then
 
14615
        pkg_cv_TDB_LIBS="$TDB_LIBS"
 
14616
    else
 
14617
        if test -n "$PKG_CONFIG" && \
 
14618
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tdb >= 1.1.3\""; } >&5
 
14619
  ($PKG_CONFIG --exists --print-errors "tdb >= 1.1.3") 2>&5
 
14620
  ac_status=$?
 
14621
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14622
  test $ac_status = 0; }; then
 
14623
  pkg_cv_TDB_LIBS=`$PKG_CONFIG --libs "tdb >= 1.1.3" 2>/dev/null`
 
14624
else
 
14625
  pkg_failed=yes
 
14626
fi
 
14627
    fi
 
14628
else
 
14629
        pkg_failed=untried
 
14630
fi
 
14631
 
 
14632
 
 
14633
 
 
14634
if test $pkg_failed = yes; then
 
14635
 
 
14636
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14637
        _pkg_short_errors_supported=yes
 
14638
else
 
14639
        _pkg_short_errors_supported=no
 
14640
fi
 
14641
        if test $_pkg_short_errors_supported = yes; then
 
14642
                TDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tdb >= 1.1.3"`
 
14643
        else
 
14644
                TDB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tdb >= 1.1.3"`
 
14645
        fi
 
14646
        # Put the nasty error message in config.log where it belongs
 
14647
        echo "$TDB_PKG_ERRORS" >&5
 
14648
 
 
14649
        as_fn_error $? "Package requirements (tdb >= 1.1.3) were not met:
 
14650
 
 
14651
$TDB_PKG_ERRORS
 
14652
 
 
14653
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14654
installed software in a non-standard prefix.
 
14655
 
 
14656
Alternatively, you may set the environment variables TDB_CFLAGS
 
14657
and TDB_LIBS to avoid the need to call pkg-config.
 
14658
See the pkg-config man page for more details.
 
14659
" "$LINENO" 5
 
14660
elif test $pkg_failed = untried; then
 
14661
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14662
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14663
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
14664
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14665
path to pkg-config.
 
14666
 
 
14667
Alternatively, you may set the environment variables TDB_CFLAGS
 
14668
and TDB_LIBS to avoid the need to call pkg-config.
 
14669
See the pkg-config man page for more details.
 
14670
 
 
14671
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
14672
See \`config.log' for more details" "$LINENO" 5; }
 
14673
else
 
14674
        TDB_CFLAGS=$pkg_cv_TDB_CFLAGS
 
14675
        TDB_LIBS=$pkg_cv_TDB_LIBS
 
14676
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14677
$as_echo "yes" >&6; }
 
14678
        :
 
14679
fi
 
14680
 
 
14681
fi
 
14682
 
 
14683
done
 
14684
 
 
14685
 
 
14686
 
 
14687
 
 
14688
 
 
14689
 
 
14690
ac_fn_c_check_header_mongrel "$LINENO" "tevent.h" "ac_cv_header_tevent_h" "$ac_includes_default"
 
14691
if test "x$ac_cv_header_tevent_h" = xyes; then :
 
14692
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tevent_context_init in -ltevent" >&5
 
14693
$as_echo_n "checking for tevent_context_init in -ltevent... " >&6; }
 
14694
if ${ac_cv_lib_tevent_tevent_context_init+:} false; then :
 
14695
  $as_echo_n "(cached) " >&6
 
14696
else
 
14697
  ac_check_lib_save_LIBS=$LIBS
 
14698
LIBS="-ltevent -ltalloc $LIBS"
 
14699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14700
/* end confdefs.h.  */
 
14701
 
 
14702
/* Override any GCC internal prototype to avoid an error.
 
14703
   Use char because int might match the return type of a GCC
 
14704
   builtin and then its argument prototype would still apply.  */
 
14705
#ifdef __cplusplus
 
14706
extern "C"
 
14707
#endif
 
14708
char tevent_context_init ();
 
14709
int
 
14710
main ()
 
14711
{
 
14712
return tevent_context_init ();
 
14713
  ;
 
14714
  return 0;
 
14715
}
 
14716
_ACEOF
 
14717
if ac_fn_c_try_link "$LINENO"; then :
 
14718
  ac_cv_lib_tevent_tevent_context_init=yes
 
14719
else
 
14720
  ac_cv_lib_tevent_tevent_context_init=no
 
14721
fi
 
14722
rm -f core conftest.err conftest.$ac_objext \
 
14723
    conftest$ac_exeext conftest.$ac_ext
 
14724
LIBS=$ac_check_lib_save_LIBS
 
14725
fi
 
14726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tevent_tevent_context_init" >&5
 
14727
$as_echo "$ac_cv_lib_tevent_tevent_context_init" >&6; }
 
14728
if test "x$ac_cv_lib_tevent_tevent_context_init" = xyes; then :
 
14729
  TEVENT_LIBS="-ltevent -ltalloc"
 
14730
else
 
14731
  as_fn_error $? "libtevent missing tevent_context_init" "$LINENO" 5
 
14732
fi
 
14733
 
 
14734
else
 
14735
 
 
14736
pkg_failed=no
 
14737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEVENT" >&5
 
14738
$as_echo_n "checking for TEVENT... " >&6; }
 
14739
 
 
14740
if test -n "$PKG_CONFIG"; then
 
14741
    if test -n "$TEVENT_CFLAGS"; then
 
14742
        pkg_cv_TEVENT_CFLAGS="$TEVENT_CFLAGS"
 
14743
    else
 
14744
        if test -n "$PKG_CONFIG" && \
 
14745
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tevent\""; } >&5
 
14746
  ($PKG_CONFIG --exists --print-errors "tevent") 2>&5
 
14747
  ac_status=$?
 
14748
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14749
  test $ac_status = 0; }; then
 
14750
  pkg_cv_TEVENT_CFLAGS=`$PKG_CONFIG --cflags "tevent" 2>/dev/null`
 
14751
else
 
14752
  pkg_failed=yes
 
14753
fi
 
14754
    fi
 
14755
else
 
14756
        pkg_failed=untried
 
14757
fi
 
14758
if test -n "$PKG_CONFIG"; then
 
14759
    if test -n "$TEVENT_LIBS"; then
 
14760
        pkg_cv_TEVENT_LIBS="$TEVENT_LIBS"
 
14761
    else
 
14762
        if test -n "$PKG_CONFIG" && \
 
14763
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tevent\""; } >&5
 
14764
  ($PKG_CONFIG --exists --print-errors "tevent") 2>&5
 
14765
  ac_status=$?
 
14766
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14767
  test $ac_status = 0; }; then
 
14768
  pkg_cv_TEVENT_LIBS=`$PKG_CONFIG --libs "tevent" 2>/dev/null`
 
14769
else
 
14770
  pkg_failed=yes
 
14771
fi
 
14772
    fi
 
14773
else
 
14774
        pkg_failed=untried
 
14775
fi
 
14776
 
 
14777
 
 
14778
 
 
14779
if test $pkg_failed = yes; then
 
14780
 
 
14781
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14782
        _pkg_short_errors_supported=yes
 
14783
else
 
14784
        _pkg_short_errors_supported=no
 
14785
fi
 
14786
        if test $_pkg_short_errors_supported = yes; then
 
14787
                TEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tevent"`
 
14788
        else
 
14789
                TEVENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tevent"`
 
14790
        fi
 
14791
        # Put the nasty error message in config.log where it belongs
 
14792
        echo "$TEVENT_PKG_ERRORS" >&5
 
14793
 
 
14794
        as_fn_error $? "Package requirements (tevent) were not met:
 
14795
 
 
14796
$TEVENT_PKG_ERRORS
 
14797
 
 
14798
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14799
installed software in a non-standard prefix.
 
14800
 
 
14801
Alternatively, you may set the environment variables TEVENT_CFLAGS
 
14802
and TEVENT_LIBS to avoid the need to call pkg-config.
 
14803
See the pkg-config man page for more details.
 
14804
" "$LINENO" 5
 
14805
elif test $pkg_failed = untried; then
 
14806
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14807
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14808
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
14809
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14810
path to pkg-config.
 
14811
 
 
14812
Alternatively, you may set the environment variables TEVENT_CFLAGS
 
14813
and TEVENT_LIBS to avoid the need to call pkg-config.
 
14814
See the pkg-config man page for more details.
 
14815
 
 
14816
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
14817
See \`config.log' for more details" "$LINENO" 5; }
 
14818
else
 
14819
        TEVENT_CFLAGS=$pkg_cv_TEVENT_CFLAGS
 
14820
        TEVENT_LIBS=$pkg_cv_TEVENT_LIBS
 
14821
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14822
$as_echo "yes" >&6; }
 
14823
        :
 
14824
fi
 
14825
fi
 
14826
 
 
14827
 
 
14828
 
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
pkg_failed=no
 
14835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDB" >&5
 
14836
$as_echo_n "checking for LDB... " >&6; }
 
14837
 
 
14838
if test -n "$PKG_CONFIG"; then
 
14839
    if test -n "$LDB_CFLAGS"; then
 
14840
        pkg_cv_LDB_CFLAGS="$LDB_CFLAGS"
 
14841
    else
 
14842
        if test -n "$PKG_CONFIG" && \
 
14843
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ldb >= 0.9.2\""; } >&5
 
14844
  ($PKG_CONFIG --exists --print-errors "ldb >= 0.9.2") 2>&5
 
14845
  ac_status=$?
 
14846
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14847
  test $ac_status = 0; }; then
 
14848
  pkg_cv_LDB_CFLAGS=`$PKG_CONFIG --cflags "ldb >= 0.9.2" 2>/dev/null`
 
14849
else
 
14850
  pkg_failed=yes
 
14851
fi
 
14852
    fi
 
14853
else
 
14854
        pkg_failed=untried
 
14855
fi
 
14856
if test -n "$PKG_CONFIG"; then
 
14857
    if test -n "$LDB_LIBS"; then
 
14858
        pkg_cv_LDB_LIBS="$LDB_LIBS"
 
14859
    else
 
14860
        if test -n "$PKG_CONFIG" && \
 
14861
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ldb >= 0.9.2\""; } >&5
 
14862
  ($PKG_CONFIG --exists --print-errors "ldb >= 0.9.2") 2>&5
 
14863
  ac_status=$?
 
14864
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14865
  test $ac_status = 0; }; then
 
14866
  pkg_cv_LDB_LIBS=`$PKG_CONFIG --libs "ldb >= 0.9.2" 2>/dev/null`
 
14867
else
 
14868
  pkg_failed=yes
 
14869
fi
 
14870
    fi
 
14871
else
 
14872
        pkg_failed=untried
 
14873
fi
 
14874
 
 
14875
 
 
14876
 
 
14877
if test $pkg_failed = yes; then
 
14878
 
 
14879
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14880
        _pkg_short_errors_supported=yes
 
14881
else
 
14882
        _pkg_short_errors_supported=no
 
14883
fi
 
14884
        if test $_pkg_short_errors_supported = yes; then
 
14885
                LDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ldb >= 0.9.2"`
 
14886
        else
 
14887
                LDB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ldb >= 0.9.2"`
 
14888
        fi
 
14889
        # Put the nasty error message in config.log where it belongs
 
14890
        echo "$LDB_PKG_ERRORS" >&5
 
14891
 
 
14892
        as_fn_error $? "Package requirements (ldb >= 0.9.2) were not met:
 
14893
 
 
14894
$LDB_PKG_ERRORS
 
14895
 
 
14896
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14897
installed software in a non-standard prefix.
 
14898
 
 
14899
Alternatively, you may set the environment variables LDB_CFLAGS
 
14900
and LDB_LIBS to avoid the need to call pkg-config.
 
14901
See the pkg-config man page for more details.
 
14902
" "$LINENO" 5
 
14903
elif test $pkg_failed = untried; then
 
14904
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14905
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14906
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
14907
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14908
path to pkg-config.
 
14909
 
 
14910
Alternatively, you may set the environment variables LDB_CFLAGS
 
14911
and LDB_LIBS to avoid the need to call pkg-config.
 
14912
See the pkg-config man page for more details.
 
14913
 
 
14914
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
14915
See \`config.log' for more details" "$LINENO" 5; }
 
14916
else
 
14917
        LDB_CFLAGS=$pkg_cv_LDB_CFLAGS
 
14918
        LDB_LIBS=$pkg_cv_LDB_LIBS
 
14919
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14920
$as_echo "yes" >&6; }
 
14921
        :
 
14922
fi
 
14923
 
 
14924
for ac_header in ldb.h ldb_module.h
 
14925
do :
 
14926
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14927
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
14928
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
14929
  cat >>confdefs.h <<_ACEOF
 
14930
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14931
_ACEOF
 
14932
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldb_init in -lldb" >&5
 
14933
$as_echo_n "checking for ldb_init in -lldb... " >&6; }
 
14934
if ${ac_cv_lib_ldb_ldb_init+:} false; then :
 
14935
  $as_echo_n "(cached) " >&6
 
14936
else
 
14937
  ac_check_lib_save_LIBS=$LIBS
 
14938
LIBS="-lldb -ltevent -ltdb -ldl -lldap $LIBS"
 
14939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14940
/* end confdefs.h.  */
 
14941
 
 
14942
/* Override any GCC internal prototype to avoid an error.
 
14943
   Use char because int might match the return type of a GCC
 
14944
   builtin and then its argument prototype would still apply.  */
 
14945
#ifdef __cplusplus
 
14946
extern "C"
 
14947
#endif
 
14948
char ldb_init ();
 
14949
int
 
14950
main ()
 
14951
{
 
14952
return ldb_init ();
 
14953
  ;
 
14954
  return 0;
 
14955
}
 
14956
_ACEOF
 
14957
if ac_fn_c_try_link "$LINENO"; then :
 
14958
  ac_cv_lib_ldb_ldb_init=yes
 
14959
else
 
14960
  ac_cv_lib_ldb_ldb_init=no
 
14961
fi
 
14962
rm -f core conftest.err conftest.$ac_objext \
 
14963
    conftest$ac_exeext conftest.$ac_ext
 
14964
LIBS=$ac_check_lib_save_LIBS
 
14965
fi
 
14966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldb_ldb_init" >&5
 
14967
$as_echo "$ac_cv_lib_ldb_ldb_init" >&6; }
 
14968
if test "x$ac_cv_lib_ldb_ldb_init" = xyes; then :
 
14969
  LDB_LIBS="-lldb"
 
14970
fi
 
14971
 
 
14972
else
 
14973
  as_fn_error $? "LDB header files are not installed" "$LINENO" 5
 
14974
 
 
14975
fi
 
14976
 
 
14977
done
 
14978
 
 
14979
 
 
14980
 
 
14981
# Check whether --with-ldb-lib-dir was given.
 
14982
if test "${with_ldb_lib_dir+set}" = set; then :
 
14983
  withval=$with_ldb_lib_dir;
 
14984
fi
 
14985
 
 
14986
 
 
14987
if test x"$with_ldb_lib_dir" != x; then
 
14988
    ldblibdir=$with_ldb_lib_dir
 
14989
else
 
14990
    ldblibdir="`$PKG_CONFIG --variable=modulesdir ldb`"
 
14991
    if ! test -d $ldblibdir; then
 
14992
        ldblibdir="${libdir}/ldb"
 
14993
    fi
 
14994
fi
 
14995
{ $as_echo "$as_me:${as_lineno-$LINENO}: ldb lib directory: $ldblibdir" >&5
 
14996
$as_echo "$as_me: ldb lib directory: $ldblibdir" >&6;}
 
14997
 
 
14998
 
 
14999
 
 
15000
 
 
15001
 
 
15002
 
 
15003
 
 
15004
pkg_failed=no
 
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DHASH" >&5
 
15006
$as_echo_n "checking for DHASH... " >&6; }
 
15007
 
 
15008
if test -n "$PKG_CONFIG"; then
 
15009
    if test -n "$DHASH_CFLAGS"; then
 
15010
        pkg_cv_DHASH_CFLAGS="$DHASH_CFLAGS"
 
15011
    else
 
15012
        if test -n "$PKG_CONFIG" && \
 
15013
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dhash >= 0.4.2\""; } >&5
 
15014
  ($PKG_CONFIG --exists --print-errors "dhash >= 0.4.2") 2>&5
 
15015
  ac_status=$?
 
15016
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15017
  test $ac_status = 0; }; then
 
15018
  pkg_cv_DHASH_CFLAGS=`$PKG_CONFIG --cflags "dhash >= 0.4.2" 2>/dev/null`
 
15019
else
 
15020
  pkg_failed=yes
 
15021
fi
 
15022
    fi
 
15023
else
 
15024
        pkg_failed=untried
 
15025
fi
 
15026
if test -n "$PKG_CONFIG"; then
 
15027
    if test -n "$DHASH_LIBS"; then
 
15028
        pkg_cv_DHASH_LIBS="$DHASH_LIBS"
 
15029
    else
 
15030
        if test -n "$PKG_CONFIG" && \
 
15031
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dhash >= 0.4.2\""; } >&5
 
15032
  ($PKG_CONFIG --exists --print-errors "dhash >= 0.4.2") 2>&5
 
15033
  ac_status=$?
 
15034
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15035
  test $ac_status = 0; }; then
 
15036
  pkg_cv_DHASH_LIBS=`$PKG_CONFIG --libs "dhash >= 0.4.2" 2>/dev/null`
 
15037
else
 
15038
  pkg_failed=yes
 
15039
fi
 
15040
    fi
 
15041
else
 
15042
        pkg_failed=untried
 
15043
fi
 
15044
 
 
15045
 
 
15046
 
 
15047
if test $pkg_failed = yes; then
 
15048
 
 
15049
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15050
        _pkg_short_errors_supported=yes
 
15051
else
 
15052
        _pkg_short_errors_supported=no
 
15053
fi
 
15054
        if test $_pkg_short_errors_supported = yes; then
 
15055
                DHASH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dhash >= 0.4.2"`
 
15056
        else
 
15057
                DHASH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dhash >= 0.4.2"`
 
15058
        fi
 
15059
        # Put the nasty error message in config.log where it belongs
 
15060
        echo "$DHASH_PKG_ERRORS" >&5
 
15061
 
 
15062
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15063
$as_echo "no" >&6; }
 
15064
                as_fn_error $? "\"Please install libdhash-devel\"" "$LINENO" 5
 
15065
 
 
15066
elif test $pkg_failed = untried; then
 
15067
        as_fn_error $? "\"Please install libdhash-devel\"" "$LINENO" 5
 
15068
 
 
15069
else
 
15070
        DHASH_CFLAGS=$pkg_cv_DHASH_CFLAGS
 
15071
        DHASH_LIBS=$pkg_cv_DHASH_LIBS
 
15072
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15073
$as_echo "yes" >&6; }
 
15074
        :
 
15075
fi
 
15076
 
 
15077
 
 
15078
 
 
15079
 
 
15080
 
 
15081
 
 
15082
 
 
15083
pkg_failed=no
 
15084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COLLECTION" >&5
 
15085
$as_echo_n "checking for COLLECTION... " >&6; }
 
15086
 
 
15087
if test -n "$PKG_CONFIG"; then
 
15088
    if test -n "$COLLECTION_CFLAGS"; then
 
15089
        pkg_cv_COLLECTION_CFLAGS="$COLLECTION_CFLAGS"
 
15090
    else
 
15091
        if test -n "$PKG_CONFIG" && \
 
15092
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"collection >= 0.5.1\""; } >&5
 
15093
  ($PKG_CONFIG --exists --print-errors "collection >= 0.5.1") 2>&5
 
15094
  ac_status=$?
 
15095
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15096
  test $ac_status = 0; }; then
 
15097
  pkg_cv_COLLECTION_CFLAGS=`$PKG_CONFIG --cflags "collection >= 0.5.1" 2>/dev/null`
 
15098
else
 
15099
  pkg_failed=yes
 
15100
fi
 
15101
    fi
 
15102
else
 
15103
        pkg_failed=untried
 
15104
fi
 
15105
if test -n "$PKG_CONFIG"; then
 
15106
    if test -n "$COLLECTION_LIBS"; then
 
15107
        pkg_cv_COLLECTION_LIBS="$COLLECTION_LIBS"
 
15108
    else
 
15109
        if test -n "$PKG_CONFIG" && \
 
15110
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"collection >= 0.5.1\""; } >&5
 
15111
  ($PKG_CONFIG --exists --print-errors "collection >= 0.5.1") 2>&5
 
15112
  ac_status=$?
 
15113
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15114
  test $ac_status = 0; }; then
 
15115
  pkg_cv_COLLECTION_LIBS=`$PKG_CONFIG --libs "collection >= 0.5.1" 2>/dev/null`
 
15116
else
 
15117
  pkg_failed=yes
 
15118
fi
 
15119
    fi
 
15120
else
 
15121
        pkg_failed=untried
 
15122
fi
 
15123
 
 
15124
 
 
15125
 
 
15126
if test $pkg_failed = yes; then
 
15127
 
 
15128
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15129
        _pkg_short_errors_supported=yes
 
15130
else
 
15131
        _pkg_short_errors_supported=no
 
15132
fi
 
15133
        if test $_pkg_short_errors_supported = yes; then
 
15134
                COLLECTION_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "collection >= 0.5.1"`
 
15135
        else
 
15136
                COLLECTION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "collection >= 0.5.1"`
 
15137
        fi
 
15138
        # Put the nasty error message in config.log where it belongs
 
15139
        echo "$COLLECTION_PKG_ERRORS" >&5
 
15140
 
 
15141
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15142
$as_echo "no" >&6; }
 
15143
                as_fn_error $? "\"Please install libcollection-devel\"" "$LINENO" 5
 
15144
 
 
15145
elif test $pkg_failed = untried; then
 
15146
        as_fn_error $? "\"Please install libcollection-devel\"" "$LINENO" 5
 
15147
 
 
15148
else
 
15149
        COLLECTION_CFLAGS=$pkg_cv_COLLECTION_CFLAGS
 
15150
        COLLECTION_LIBS=$pkg_cv_COLLECTION_LIBS
 
15151
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15152
$as_echo "yes" >&6; }
 
15153
        :
 
15154
fi
 
15155
 
 
15156
 
 
15157
 
 
15158
 
 
15159
 
 
15160
 
 
15161
 
 
15162
pkg_failed=no
 
15163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INI_CONFIG" >&5
 
15164
$as_echo_n "checking for INI_CONFIG... " >&6; }
 
15165
 
 
15166
if test -n "$PKG_CONFIG"; then
 
15167
    if test -n "$INI_CONFIG_CFLAGS"; then
 
15168
        pkg_cv_INI_CONFIG_CFLAGS="$INI_CONFIG_CFLAGS"
 
15169
    else
 
15170
        if test -n "$PKG_CONFIG" && \
 
15171
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ini_config >= 0.6.1\""; } >&5
 
15172
  ($PKG_CONFIG --exists --print-errors "ini_config >= 0.6.1") 2>&5
 
15173
  ac_status=$?
 
15174
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15175
  test $ac_status = 0; }; then
 
15176
  pkg_cv_INI_CONFIG_CFLAGS=`$PKG_CONFIG --cflags "ini_config >= 0.6.1" 2>/dev/null`
 
15177
else
 
15178
  pkg_failed=yes
 
15179
fi
 
15180
    fi
 
15181
else
 
15182
        pkg_failed=untried
 
15183
fi
 
15184
if test -n "$PKG_CONFIG"; then
 
15185
    if test -n "$INI_CONFIG_LIBS"; then
 
15186
        pkg_cv_INI_CONFIG_LIBS="$INI_CONFIG_LIBS"
 
15187
    else
 
15188
        if test -n "$PKG_CONFIG" && \
 
15189
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ini_config >= 0.6.1\""; } >&5
 
15190
  ($PKG_CONFIG --exists --print-errors "ini_config >= 0.6.1") 2>&5
 
15191
  ac_status=$?
 
15192
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15193
  test $ac_status = 0; }; then
 
15194
  pkg_cv_INI_CONFIG_LIBS=`$PKG_CONFIG --libs "ini_config >= 0.6.1" 2>/dev/null`
 
15195
else
 
15196
  pkg_failed=yes
 
15197
fi
 
15198
    fi
 
15199
else
 
15200
        pkg_failed=untried
 
15201
fi
 
15202
 
 
15203
 
 
15204
 
 
15205
if test $pkg_failed = yes; then
 
15206
 
 
15207
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15208
        _pkg_short_errors_supported=yes
 
15209
else
 
15210
        _pkg_short_errors_supported=no
 
15211
fi
 
15212
        if test $_pkg_short_errors_supported = yes; then
 
15213
                INI_CONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ini_config >= 0.6.1"`
 
15214
        else
 
15215
                INI_CONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ini_config >= 0.6.1"`
 
15216
        fi
 
15217
        # Put the nasty error message in config.log where it belongs
 
15218
        echo "$INI_CONFIG_PKG_ERRORS" >&5
 
15219
 
 
15220
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15221
$as_echo "no" >&6; }
 
15222
                as_fn_error $? "\"Please install libini_config-devel\"" "$LINENO" 5
 
15223
 
 
15224
elif test $pkg_failed = untried; then
 
15225
        as_fn_error $? "\"Please install libini_config-devel\"" "$LINENO" 5
 
15226
 
 
15227
else
 
15228
        INI_CONFIG_CFLAGS=$pkg_cv_INI_CONFIG_CFLAGS
 
15229
        INI_CONFIG_LIBS=$pkg_cv_INI_CONFIG_LIBS
 
15230
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15231
$as_echo "yes" >&6; }
 
15232
        :
 
15233
fi
 
15234
 
 
15235
 
 
15236
 
 
15237
 
 
15238
for ac_header in security/pam_appl.h security/pam_misc.h security/pam_modules.h
 
15239
do :
 
15240
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15241
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
15242
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
15243
  cat >>confdefs.h <<_ACEOF
 
15244
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15245
_ACEOF
 
15246
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_item in -lpam" >&5
 
15247
$as_echo_n "checking for pam_get_item in -lpam... " >&6; }
 
15248
if ${ac_cv_lib_pam_pam_get_item+:} false; then :
 
15249
  $as_echo_n "(cached) " >&6
 
15250
else
 
15251
  ac_check_lib_save_LIBS=$LIBS
 
15252
LIBS="-lpam  $LIBS"
 
15253
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15254
/* end confdefs.h.  */
 
15255
 
 
15256
/* Override any GCC internal prototype to avoid an error.
 
15257
   Use char because int might match the return type of a GCC
 
15258
   builtin and then its argument prototype would still apply.  */
 
15259
#ifdef __cplusplus
 
15260
extern "C"
 
15261
#endif
 
15262
char pam_get_item ();
 
15263
int
 
15264
main ()
 
15265
{
 
15266
return pam_get_item ();
 
15267
  ;
 
15268
  return 0;
 
15269
}
 
15270
_ACEOF
 
15271
if ac_fn_c_try_link "$LINENO"; then :
 
15272
  ac_cv_lib_pam_pam_get_item=yes
 
15273
else
 
15274
  ac_cv_lib_pam_pam_get_item=no
 
15275
fi
 
15276
rm -f core conftest.err conftest.$ac_objext \
 
15277
    conftest$ac_exeext conftest.$ac_ext
 
15278
LIBS=$ac_check_lib_save_LIBS
 
15279
fi
 
15280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_item" >&5
 
15281
$as_echo "$ac_cv_lib_pam_pam_get_item" >&6; }
 
15282
if test "x$ac_cv_lib_pam_pam_get_item" = xyes; then :
 
15283
   PAM_LIBS="-lpam"
 
15284
else
 
15285
  as_fn_error $? "PAM must support pam_get_item" "$LINENO" 5
 
15286
fi
 
15287
 
 
15288
else
 
15289
  as_fn_error $? "PAM development libraries not installed" "$LINENO" 5
 
15290
 
 
15291
fi
 
15292
 
 
15293
done
 
15294
 
 
15295
 
 
15296
 
 
15297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lldap" >&5
 
15298
$as_echo_n "checking for ldap_search in -lldap... " >&6; }
 
15299
if ${ac_cv_lib_ldap_ldap_search+:} false; then :
 
15300
  $as_echo_n "(cached) " >&6
 
15301
else
 
15302
  ac_check_lib_save_LIBS=$LIBS
 
15303
LIBS="-lldap  $LIBS"
 
15304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15305
/* end confdefs.h.  */
 
15306
 
 
15307
/* Override any GCC internal prototype to avoid an error.
 
15308
   Use char because int might match the return type of a GCC
 
15309
   builtin and then its argument prototype would still apply.  */
 
15310
#ifdef __cplusplus
 
15311
extern "C"
 
15312
#endif
 
15313
char ldap_search ();
 
15314
int
 
15315
main ()
 
15316
{
 
15317
return ldap_search ();
 
15318
  ;
 
15319
  return 0;
 
15320
}
 
15321
_ACEOF
 
15322
if ac_fn_c_try_link "$LINENO"; then :
 
15323
  ac_cv_lib_ldap_ldap_search=yes
 
15324
else
 
15325
  ac_cv_lib_ldap_ldap_search=no
 
15326
fi
 
15327
rm -f core conftest.err conftest.$ac_objext \
 
15328
    conftest$ac_exeext conftest.$ac_ext
 
15329
LIBS=$ac_check_lib_save_LIBS
 
15330
fi
 
15331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_search" >&5
 
15332
$as_echo "$ac_cv_lib_ldap_ldap_search" >&6; }
 
15333
if test "x$ac_cv_lib_ldap_ldap_search" = xyes; then :
 
15334
  with_ldap=yes
 
15335
fi
 
15336
 
 
15337
test "$with_ldap" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
 
15338
$as_echo_n "checking for ldap_open in -lldap... " >&6; }
 
15339
if ${ac_cv_lib_ldap_ldap_open+:} false; then :
 
15340
  $as_echo_n "(cached) " >&6
 
15341
else
 
15342
  ac_check_lib_save_LIBS=$LIBS
 
15343
LIBS="-lldap -llber $LIBS"
 
15344
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15345
/* end confdefs.h.  */
 
15346
 
 
15347
/* Override any GCC internal prototype to avoid an error.
 
15348
   Use char because int might match the return type of a GCC
 
15349
   builtin and then its argument prototype would still apply.  */
 
15350
#ifdef __cplusplus
 
15351
extern "C"
 
15352
#endif
 
15353
char ldap_open ();
 
15354
int
 
15355
main ()
 
15356
{
 
15357
return ldap_open ();
 
15358
  ;
 
15359
  return 0;
 
15360
}
 
15361
_ACEOF
 
15362
if ac_fn_c_try_link "$LINENO"; then :
 
15363
  ac_cv_lib_ldap_ldap_open=yes
 
15364
else
 
15365
  ac_cv_lib_ldap_ldap_open=no
 
15366
fi
 
15367
rm -f core conftest.err conftest.$ac_objext \
 
15368
    conftest$ac_exeext conftest.$ac_ext
 
15369
LIBS=$ac_check_lib_save_LIBS
 
15370
fi
 
15371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
 
15372
$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
 
15373
if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
 
15374
  with_ldap=yes with_ldap_lber=yes
 
15375
fi
 
15376
 }
 
15377
test "$with_ldap" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
 
15378
$as_echo_n "checking for ldap_open in -lldap... " >&6; }
 
15379
if ${ac_cv_lib_ldap_ldap_open+:} false; then :
 
15380
  $as_echo_n "(cached) " >&6
 
15381
else
 
15382
  ac_check_lib_save_LIBS=$LIBS
 
15383
LIBS="-lldap -llber -lkrb $LIBS"
 
15384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15385
/* end confdefs.h.  */
 
15386
 
 
15387
/* Override any GCC internal prototype to avoid an error.
 
15388
   Use char because int might match the return type of a GCC
 
15389
   builtin and then its argument prototype would still apply.  */
 
15390
#ifdef __cplusplus
 
15391
extern "C"
 
15392
#endif
 
15393
char ldap_open ();
 
15394
int
 
15395
main ()
 
15396
{
 
15397
return ldap_open ();
 
15398
  ;
 
15399
  return 0;
 
15400
}
 
15401
_ACEOF
 
15402
if ac_fn_c_try_link "$LINENO"; then :
 
15403
  ac_cv_lib_ldap_ldap_open=yes
 
15404
else
 
15405
  ac_cv_lib_ldap_ldap_open=no
 
15406
fi
 
15407
rm -f core conftest.err conftest.$ac_objext \
 
15408
    conftest$ac_exeext conftest.$ac_ext
 
15409
LIBS=$ac_check_lib_save_LIBS
 
15410
fi
 
15411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
 
15412
$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
 
15413
if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
 
15414
  with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes
 
15415
fi
 
15416
 }
 
15417
test "$with_ldap" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
 
15418
$as_echo_n "checking for ldap_open in -lldap... " >&6; }
 
15419
if ${ac_cv_lib_ldap_ldap_open+:} false; then :
 
15420
  $as_echo_n "(cached) " >&6
 
15421
else
 
15422
  ac_check_lib_save_LIBS=$LIBS
 
15423
LIBS="-lldap -llber -lkrb -ldes $LIBS"
 
15424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15425
/* end confdefs.h.  */
 
15426
 
 
15427
/* Override any GCC internal prototype to avoid an error.
 
15428
   Use char because int might match the return type of a GCC
 
15429
   builtin and then its argument prototype would still apply.  */
 
15430
#ifdef __cplusplus
 
15431
extern "C"
 
15432
#endif
 
15433
char ldap_open ();
 
15434
int
 
15435
main ()
 
15436
{
 
15437
return ldap_open ();
 
15438
  ;
 
15439
  return 0;
 
15440
}
 
15441
_ACEOF
 
15442
if ac_fn_c_try_link "$LINENO"; then :
 
15443
  ac_cv_lib_ldap_ldap_open=yes
 
15444
else
 
15445
  ac_cv_lib_ldap_ldap_open=no
 
15446
fi
 
15447
rm -f core conftest.err conftest.$ac_objext \
 
15448
    conftest$ac_exeext conftest.$ac_ext
 
15449
LIBS=$ac_check_lib_save_LIBS
 
15450
fi
 
15451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
 
15452
$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
 
15453
if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
 
15454
  with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes with_ldap_des=yes
 
15455
fi
 
15456
 }
 
15457
test "$with_ldap_lber" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_pvt_opt_on in -llber" >&5
 
15458
$as_echo_n "checking for ber_pvt_opt_on in -llber... " >&6; }
 
15459
if ${ac_cv_lib_lber_ber_pvt_opt_on+:} false; then :
 
15460
  $as_echo_n "(cached) " >&6
 
15461
else
 
15462
  ac_check_lib_save_LIBS=$LIBS
 
15463
LIBS="-llber  $LIBS"
 
15464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15465
/* end confdefs.h.  */
 
15466
 
 
15467
/* Override any GCC internal prototype to avoid an error.
 
15468
   Use char because int might match the return type of a GCC
 
15469
   builtin and then its argument prototype would still apply.  */
 
15470
#ifdef __cplusplus
 
15471
extern "C"
 
15472
#endif
 
15473
char ber_pvt_opt_on ();
 
15474
int
 
15475
main ()
 
15476
{
 
15477
return ber_pvt_opt_on ();
 
15478
  ;
 
15479
  return 0;
 
15480
}
 
15481
_ACEOF
 
15482
if ac_fn_c_try_link "$LINENO"; then :
 
15483
  ac_cv_lib_lber_ber_pvt_opt_on=yes
 
15484
else
 
15485
  ac_cv_lib_lber_ber_pvt_opt_on=no
 
15486
fi
 
15487
rm -f core conftest.err conftest.$ac_objext \
 
15488
    conftest$ac_exeext conftest.$ac_ext
 
15489
LIBS=$ac_check_lib_save_LIBS
 
15490
fi
 
15491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_pvt_opt_on" >&5
 
15492
$as_echo "$ac_cv_lib_lber_ber_pvt_opt_on" >&6; }
 
15493
if test "x$ac_cv_lib_lber_ber_pvt_opt_on" = xyes; then :
 
15494
  with_ldap_lber=yes
 
15495
fi
 
15496
 }
 
15497
 
 
15498
if test "$with_ldap" = "yes"; then
 
15499
  if test "$with_ldap_des" = "yes" ; then
 
15500
    OPENLDAP_LIBS="${OPENLDAP_LIBS} -ldes"
 
15501
  fi
 
15502
  if test "$with_ldap_krb" = "yes" ; then
 
15503
    OPENLDAP_LIBS="${OPENLDAP_LIBS} -lkrb"
 
15504
  fi
 
15505
  if test "$with_ldap_lber" = "yes" ; then
 
15506
    OPENLDAP_LIBS="${OPENLDAP_LIBS} -llber"
 
15507
  fi
 
15508
  OPENLDAP_LIBS="${OPENLDAP_LIBS} -lldap"
 
15509
else
 
15510
  as_fn_error $? "OpenLDAP not found" "$LINENO" 5
 
15511
fi
 
15512
 
 
15513
 
 
15514
 
 
15515
SAVE_CFLAGS=$CFLAGS
 
15516
SAVE_LIBS=$LIBS
 
15517
CFLAGS="$CFLAGS $OPENLDAP_CFLAGS"
 
15518
LIBS="$LIBS $OPENLDAP_LIBS"
 
15519
for ac_func in ldap_control_create
 
15520
do :
 
15521
  ac_fn_c_check_func "$LINENO" "ldap_control_create" "ac_cv_func_ldap_control_create"
 
15522
if test "x$ac_cv_func_ldap_control_create" = xyes; then :
 
15523
  cat >>confdefs.h <<_ACEOF
 
15524
#define HAVE_LDAP_CONTROL_CREATE 1
 
15525
_ACEOF
 
15526
 
 
15527
fi
 
15528
done
 
15529
 
 
15530
ac_fn_c_check_member "$LINENO" "struct ldap_conncb" "lc_arg" "ac_cv_member_struct_ldap_conncb_lc_arg" "#include <ldap.h>
 
15531
"
 
15532
if test "x$ac_cv_member_struct_ldap_conncb_lc_arg" = xyes; then :
 
15533
 
 
15534
cat >>confdefs.h <<_ACEOF
 
15535
#define HAVE_STRUCT_LDAP_CONNCB_LC_ARG 1
 
15536
_ACEOF
 
15537
 
 
15538
if test "$cross_compiling" = yes; then :
 
15539
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15540
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
15541
as_fn_error $? "cannot run test program while cross compiling
 
15542
See \`config.log' for more details" "$LINENO" 5; }
 
15543
else
 
15544
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15545
/* end confdefs.h.  */
 
15546
 #include <ldap.h>
 
15547
int
 
15548
main ()
 
15549
{
 
15550
 
 
15551
                       struct ldap_conncb cb;
 
15552
                       return ldap_set_option(NULL, LDAP_OPT_CONNECT_CB, &cb);
 
15553
 
 
15554
  ;
 
15555
  return 0;
 
15556
}
 
15557
_ACEOF
 
15558
if ac_fn_c_try_run "$LINENO"; then :
 
15559
 
 
15560
$as_echo "#define HAVE_LDAP_CONNCB 1" >>confdefs.h
 
15561
 
 
15562
else
 
15563
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found broken callback implementation" >&5
 
15564
$as_echo "$as_me: WARNING: Found broken callback implementation" >&2;}
 
15565
fi
 
15566
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15567
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15568
fi
 
15569
 
 
15570
fi
 
15571
 
 
15572
 
 
15573
CFLAGS=$SAVE_CFLAGS
 
15574
LIBS=$SAVE_LIBS
 
15575
 
 
15576
 
 
15577
PCRE_OBJ=""
 
15578
 
 
15579
 
 
15580
 
 
15581
 
 
15582
 
 
15583
pkg_failed=no
 
15584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
 
15585
$as_echo_n "checking for PCRE... " >&6; }
 
15586
 
 
15587
if test -n "$PKG_CONFIG"; then
 
15588
    if test -n "$PCRE_CFLAGS"; then
 
15589
        pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
 
15590
    else
 
15591
        if test -n "$PKG_CONFIG" && \
 
15592
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
 
15593
  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
 
15594
  ac_status=$?
 
15595
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15596
  test $ac_status = 0; }; then
 
15597
  pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
 
15598
else
 
15599
  pkg_failed=yes
 
15600
fi
 
15601
    fi
 
15602
else
 
15603
        pkg_failed=untried
 
15604
fi
 
15605
if test -n "$PKG_CONFIG"; then
 
15606
    if test -n "$PCRE_LIBS"; then
 
15607
        pkg_cv_PCRE_LIBS="$PCRE_LIBS"
 
15608
    else
 
15609
        if test -n "$PKG_CONFIG" && \
 
15610
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
 
15611
  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
 
15612
  ac_status=$?
 
15613
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15614
  test $ac_status = 0; }; then
 
15615
  pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
 
15616
else
 
15617
  pkg_failed=yes
 
15618
fi
 
15619
    fi
 
15620
else
 
15621
        pkg_failed=untried
 
15622
fi
 
15623
 
 
15624
 
 
15625
 
 
15626
if test $pkg_failed = yes; then
 
15627
 
 
15628
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15629
        _pkg_short_errors_supported=yes
 
15630
else
 
15631
        _pkg_short_errors_supported=no
 
15632
fi
 
15633
        if test $_pkg_short_errors_supported = yes; then
 
15634
                PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
 
15635
        else
 
15636
                PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
 
15637
        fi
 
15638
        # Put the nasty error message in config.log where it belongs
 
15639
        echo "$PCRE_PKG_ERRORS" >&5
 
15640
 
 
15641
        as_fn_error $? "Package requirements (libpcre) were not met:
 
15642
 
 
15643
$PCRE_PKG_ERRORS
 
15644
 
 
15645
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
15646
installed software in a non-standard prefix.
 
15647
 
 
15648
Alternatively, you may set the environment variables PCRE_CFLAGS
 
15649
and PCRE_LIBS to avoid the need to call pkg-config.
 
15650
See the pkg-config man page for more details.
 
15651
" "$LINENO" 5
 
15652
elif test $pkg_failed = untried; then
 
15653
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15654
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
15655
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
15656
is in your PATH or set the PKG_CONFIG environment variable to the full
 
15657
path to pkg-config.
 
15658
 
 
15659
Alternatively, you may set the environment variables PCRE_CFLAGS
 
15660
and PCRE_LIBS to avoid the need to call pkg-config.
 
15661
See the pkg-config man page for more details.
 
15662
 
 
15663
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
15664
See \`config.log' for more details" "$LINENO" 5; }
 
15665
else
 
15666
        PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
 
15667
        PCRE_LIBS=$pkg_cv_PCRE_LIBS
 
15668
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15669
$as_echo "yes" >&6; }
 
15670
        :
 
15671
fi
 
15672
if test -n "$PKG_CONFIG" && \
 
15673
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 7\""; } >&5
 
15674
  ($PKG_CONFIG --exists --print-errors "libpcre >= 7") 2>&5
 
15675
  ac_status=$?
 
15676
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15677
  test $ac_status = 0; }; then
 
15678
  { $as_echo "$as_me:${as_lineno-$LINENO}: PCRE version is 7 or higher" >&5
 
15679
$as_echo "$as_me: PCRE version is 7 or higher" >&6;}
 
15680
else
 
15681
  { $as_echo "$as_me:${as_lineno-$LINENO}: PCRE version is below 7" >&5
 
15682
$as_echo "$as_me: PCRE version is below 7" >&6;}
 
15683
 
 
15684
$as_echo "#define HAVE_LIBPCRE_LESSER_THAN_7 1" >>confdefs.h
 
15685
 
 
15686
fi
 
15687
 
 
15688
for ac_header in pcre.h
 
15689
do :
 
15690
  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
 
15691
if test "x$ac_cv_header_pcre_h" = xyes; then :
 
15692
  cat >>confdefs.h <<_ACEOF
 
15693
#define HAVE_PCRE_H 1
 
15694
_ACEOF
 
15695
 
 
15696
fi
 
15697
 
 
15698
done
 
15699
 
 
15700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
 
15701
$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
 
15702
if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
 
15703
  $as_echo_n "(cached) " >&6
 
15704
else
 
15705
  ac_check_lib_save_LIBS=$LIBS
 
15706
LIBS="-lpcre  $LIBS"
 
15707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15708
/* end confdefs.h.  */
 
15709
 
 
15710
/* Override any GCC internal prototype to avoid an error.
 
15711
   Use char because int might match the return type of a GCC
 
15712
   builtin and then its argument prototype would still apply.  */
 
15713
#ifdef __cplusplus
 
15714
extern "C"
 
15715
#endif
 
15716
char pcre_compile ();
 
15717
int
 
15718
main ()
 
15719
{
 
15720
return pcre_compile ();
 
15721
  ;
 
15722
  return 0;
 
15723
}
 
15724
_ACEOF
 
15725
if ac_fn_c_try_link "$LINENO"; then :
 
15726
  ac_cv_lib_pcre_pcre_compile=yes
 
15727
else
 
15728
  ac_cv_lib_pcre_pcre_compile=no
 
15729
fi
 
15730
rm -f core conftest.err conftest.$ac_objext \
 
15731
    conftest$ac_exeext conftest.$ac_ext
 
15732
LIBS=$ac_check_lib_save_LIBS
 
15733
fi
 
15734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
 
15735
$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
 
15736
if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
 
15737
   PCRE_LIBS="-lpcre"
 
15738
else
 
15739
  as_fn_error $? "PCRE is required" "$LINENO" 5
 
15740
fi
 
15741
 
 
15742
 
 
15743
 
 
15744
 
 
15745
 
 
15746
if test x$KRB5_LIBS != x; then
 
15747
    KRB5_PASSED_LIBS=$KRB5_LIBS
 
15748
fi
 
15749
 
 
15750
if test x$KRB5_CFLAGS != x; then
 
15751
    KRB5_PASSED_CFLAGS=$KRB5_CFLAGS
 
15752
fi
 
15753
 
 
15754
# Extract the first word of "krb5-config", so it can be a program name with args.
 
15755
set dummy krb5-config; ac_word=$2
 
15756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15757
$as_echo_n "checking for $ac_word... " >&6; }
 
15758
if ${ac_cv_path_KRB5_CONFIG+:} false; then :
 
15759
  $as_echo_n "(cached) " >&6
 
15760
else
 
15761
  case $KRB5_CONFIG in
 
15762
  [\\/]* | ?:[\\/]*)
 
15763
  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
 
15764
  ;;
 
15765
  *)
 
15766
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15767
for as_dir in $PATH
 
15768
do
 
15769
  IFS=$as_save_IFS
 
15770
  test -z "$as_dir" && as_dir=.
 
15771
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15772
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15773
    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
15774
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15775
    break 2
 
15776
  fi
 
15777
done
 
15778
  done
 
15779
IFS=$as_save_IFS
 
15780
 
 
15781
  ;;
 
15782
esac
 
15783
fi
 
15784
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
 
15785
if test -n "$KRB5_CONFIG"; then
 
15786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
 
15787
$as_echo "$KRB5_CONFIG" >&6; }
 
15788
else
 
15789
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15790
$as_echo "no" >&6; }
 
15791
fi
 
15792
 
 
15793
 
 
15794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working krb5-config" >&5
 
15795
$as_echo_n "checking for working krb5-config... " >&6; }
 
15796
if test -x "$KRB5_CONFIG"; then
 
15797
  KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
 
15798
  KRB5_LIBS="`$KRB5_CONFIG --libs`"
 
15799
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15800
$as_echo "yes" >&6; }
 
15801
else
 
15802
    if test x$KRB5_PASSED_LIBS = x; then
 
15803
        as_fn_error $? "no. Please install MIT kerberos devel package" "$LINENO" 5
 
15804
    fi
 
15805
fi
 
15806
 
 
15807
if test x$KRB5_PASSED_LIBS != x; then
 
15808
    KRB5_LIBS=$KRB5_PASSED_LIBS
 
15809
fi
 
15810
 
 
15811
if test x$KRB5_PASSED_CFLAGS != x; then
 
15812
    KRB5_CFLAGS=$KRB5_PASSED_CFLAGS
 
15813
fi
 
15814
 
 
15815
 
 
15816
SAVE_CFLAGS=$CFLAGS
 
15817
SAVE_LIBS=$LIBS
 
15818
CFLAGS="$CFLAGS $KRB5_CFLAGS"
 
15819
LIBS="$LIBS $KRB5_LIBS"
 
15820
for ac_header in krb5.h krb5/krb5.h
 
15821
do :
 
15822
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15823
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
15824
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
15825
  cat >>confdefs.h <<_ACEOF
 
15826
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15827
_ACEOF
 
15828
 
 
15829
fi
 
15830
 
 
15831
done
 
15832
 
 
15833
for ac_func in krb5_get_init_creds_opt_alloc krb5_get_error_message \
 
15834
                krb5_free_unparsed_name \
 
15835
                krb5_get_init_creds_opt_set_expire_callback \
 
15836
                krb5_get_init_creds_opt_set_fast_ccache_name \
 
15837
                krb5_get_init_creds_opt_set_fast_flags
 
15838
do :
 
15839
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15840
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
15841
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
15842
  cat >>confdefs.h <<_ACEOF
 
15843
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15844
_ACEOF
 
15845
 
 
15846
fi
 
15847
done
 
15848
 
 
15849
CFLAGS=$SAVE_CFLAGS
 
15850
LIBS=$SAVE_LIBS
 
15851
 
 
15852
if test x$ac_cv_header_krb5_h != xyes -a x$ac_cv_header_krb5_krb5_h != xyes
 
15853
then
 
15854
  as_fn_error $? "you must have Kerberos 5 header files to build sssd" "$LINENO" 5
 
15855
fi
 
15856
 
 
15857
# Check whether --enable-krb5-locator-plugin was given.
 
15858
if test "${enable_krb5_locator_plugin+set}" = set; then :
 
15859
  enableval=$enable_krb5_locator_plugin; build_locator=$enableval
 
15860
else
 
15861
  build_locator=yes
 
15862
fi
 
15863
 
 
15864
 
 
15865
ac_fn_c_check_header_mongrel "$LINENO" "krb5/locate_plugin.h" "ac_cv_header_krb5_locate_plugin_h" "$ac_includes_default"
 
15866
if test "x$ac_cv_header_krb5_locate_plugin_h" = xyes; then :
 
15867
  have_locate_plugin=yes
 
15868
else
 
15869
  have_locate_plugin=no
 
15870
                { $as_echo "$as_me:${as_lineno-$LINENO}: Kerberos locator plugin cannot be build" >&5
 
15871
$as_echo "$as_me: Kerberos locator plugin cannot be build" >&6;}
 
15872
fi
 
15873
 
 
15874
 
 
15875
 if test x$have_locate_plugin = xyes -a x$build_locator = xyes; then
 
15876
  BUILD_KRB5_LOCATOR_PLUGIN_TRUE=
 
15877
  BUILD_KRB5_LOCATOR_PLUGIN_FALSE='#'
 
15878
else
 
15879
  BUILD_KRB5_LOCATOR_PLUGIN_TRUE='#'
 
15880
  BUILD_KRB5_LOCATOR_PLUGIN_FALSE=
 
15881
fi
 
15882
 
 
15883
 
 
15884
 
 
15885
 
 
15886
 
 
15887
 
 
15888
 
 
15889
for ac_header in ares.h
 
15890
do :
 
15891
  ac_fn_c_check_header_mongrel "$LINENO" "ares.h" "ac_cv_header_ares_h" "$ac_includes_default"
 
15892
if test "x$ac_cv_header_ares_h" = xyes; then :
 
15893
  cat >>confdefs.h <<_ACEOF
 
15894
#define HAVE_ARES_H 1
 
15895
_ACEOF
 
15896
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
 
15897
$as_echo_n "checking for ares_init in -lcares... " >&6; }
 
15898
if ${ac_cv_lib_cares_ares_init+:} false; then :
 
15899
  $as_echo_n "(cached) " >&6
 
15900
else
 
15901
  ac_check_lib_save_LIBS=$LIBS
 
15902
LIBS="-lcares  $LIBS"
 
15903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15904
/* end confdefs.h.  */
 
15905
 
 
15906
/* Override any GCC internal prototype to avoid an error.
 
15907
   Use char because int might match the return type of a GCC
 
15908
   builtin and then its argument prototype would still apply.  */
 
15909
#ifdef __cplusplus
 
15910
extern "C"
 
15911
#endif
 
15912
char ares_init ();
 
15913
int
 
15914
main ()
 
15915
{
 
15916
return ares_init ();
 
15917
  ;
 
15918
  return 0;
 
15919
}
 
15920
_ACEOF
 
15921
if ac_fn_c_try_link "$LINENO"; then :
 
15922
  ac_cv_lib_cares_ares_init=yes
 
15923
else
 
15924
  ac_cv_lib_cares_ares_init=no
 
15925
fi
 
15926
rm -f core conftest.err conftest.$ac_objext \
 
15927
    conftest$ac_exeext conftest.$ac_ext
 
15928
LIBS=$ac_check_lib_save_LIBS
 
15929
fi
 
15930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
 
15931
$as_echo "$ac_cv_lib_cares_ares_init" >&6; }
 
15932
if test "x$ac_cv_lib_cares_ares_init" = xyes; then :
 
15933
   CARES_LIBS="-lcares"
 
15934
else
 
15935
  as_fn_error $? "No usable c-ares library found" "$LINENO" 5
 
15936
fi
 
15937
 
 
15938
else
 
15939
  as_fn_error $? "c-ares header files are not installed" "$LINENO" 5
 
15940
 
 
15941
fi
 
15942
 
 
15943
done
 
15944
 
 
15945
 
 
15946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_free_data in -lcares" >&5
 
15947
$as_echo_n "checking for ares_free_data in -lcares... " >&6; }
 
15948
if ${ac_cv_lib_cares_ares_free_data+:} false; then :
 
15949
  $as_echo_n "(cached) " >&6
 
15950
else
 
15951
  ac_check_lib_save_LIBS=$LIBS
 
15952
LIBS="-lcares  $LIBS"
 
15953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15954
/* end confdefs.h.  */
 
15955
 
 
15956
/* Override any GCC internal prototype to avoid an error.
 
15957
   Use char because int might match the return type of a GCC
 
15958
   builtin and then its argument prototype would still apply.  */
 
15959
#ifdef __cplusplus
 
15960
extern "C"
 
15961
#endif
 
15962
char ares_free_data ();
 
15963
int
 
15964
main ()
 
15965
{
 
15966
return ares_free_data ();
 
15967
  ;
 
15968
  return 0;
 
15969
}
 
15970
_ACEOF
 
15971
if ac_fn_c_try_link "$LINENO"; then :
 
15972
  ac_cv_lib_cares_ares_free_data=yes
 
15973
else
 
15974
  ac_cv_lib_cares_ares_free_data=no
 
15975
fi
 
15976
rm -f core conftest.err conftest.$ac_objext \
 
15977
    conftest$ac_exeext conftest.$ac_ext
 
15978
LIBS=$ac_check_lib_save_LIBS
 
15979
fi
 
15980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_free_data" >&5
 
15981
$as_echo "$ac_cv_lib_cares_ares_free_data" >&6; }
 
15982
if test "x$ac_cv_lib_cares_ares_free_data" = xyes; then :
 
15983
 
 
15984
$as_echo "#define HAVE_ARES_DATA 1" >>confdefs.h
 
15985
 
 
15986
 
 
15987
else
 
15988
 
 
15989
                ares_data=1
 
15990
 
 
15991
 
 
15992
fi
 
15993
 
 
15994
 
 
15995
 if test x$ares_data = x1; then
 
15996
  BUILD_ARES_DATA_TRUE=
 
15997
  BUILD_ARES_DATA_FALSE='#'
 
15998
else
 
15999
  BUILD_ARES_DATA_TRUE='#'
 
16000
  BUILD_ARES_DATA_FALSE=
 
16001
fi
 
16002
 
 
16003
 
 
16004
 
 
16005
 
 
16006
 
 
16007
 
 
16008
 
 
16009
# Solaris needs HAVE_LONG_LONG defined
 
16010
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
 
16011
if test "x$ac_cv_type_long_long" = xyes; then :
 
16012
 
 
16013
cat >>confdefs.h <<_ACEOF
 
16014
#define HAVE_LONG_LONG 1
 
16015
_ACEOF
 
16016
 
 
16017
 
 
16018
fi
 
16019
 
 
16020
 
 
16021
# The cast to long int works around a bug in the HP C Compiler
 
16022
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16023
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16024
# This bug is HP SR number 8606223364.
 
16025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
 
16026
$as_echo_n "checking size of int... " >&6; }
 
16027
if ${ac_cv_sizeof_int+:} false; then :
 
16028
  $as_echo_n "(cached) " >&6
 
16029
else
 
16030
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
 
16031
 
 
16032
else
 
16033
  if test "$ac_cv_type_int" = yes; then
 
16034
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16035
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16036
as_fn_error 77 "cannot compute sizeof (int)
 
16037
See \`config.log' for more details" "$LINENO" 5; }
 
16038
   else
 
16039
     ac_cv_sizeof_int=0
 
16040
   fi
 
16041
fi
 
16042
 
 
16043
fi
 
16044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
 
16045
$as_echo "$ac_cv_sizeof_int" >&6; }
 
16046
 
 
16047
 
 
16048
 
 
16049
cat >>confdefs.h <<_ACEOF
 
16050
#define SIZEOF_INT $ac_cv_sizeof_int
 
16051
_ACEOF
 
16052
 
 
16053
 
 
16054
# The cast to long int works around a bug in the HP C Compiler
 
16055
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16056
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16057
# This bug is HP SR number 8606223364.
 
16058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
 
16059
$as_echo_n "checking size of char... " >&6; }
 
16060
if ${ac_cv_sizeof_char+:} false; then :
 
16061
  $as_echo_n "(cached) " >&6
 
16062
else
 
16063
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
 
16064
 
 
16065
else
 
16066
  if test "$ac_cv_type_char" = yes; then
 
16067
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16068
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16069
as_fn_error 77 "cannot compute sizeof (char)
 
16070
See \`config.log' for more details" "$LINENO" 5; }
 
16071
   else
 
16072
     ac_cv_sizeof_char=0
 
16073
   fi
 
16074
fi
 
16075
 
 
16076
fi
 
16077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
 
16078
$as_echo "$ac_cv_sizeof_char" >&6; }
 
16079
 
 
16080
 
 
16081
 
 
16082
cat >>confdefs.h <<_ACEOF
 
16083
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
16084
_ACEOF
 
16085
 
 
16086
 
 
16087
# The cast to long int works around a bug in the HP C Compiler
 
16088
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16089
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16090
# This bug is HP SR number 8606223364.
 
16091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
 
16092
$as_echo_n "checking size of short... " >&6; }
 
16093
if ${ac_cv_sizeof_short+:} false; then :
 
16094
  $as_echo_n "(cached) " >&6
 
16095
else
 
16096
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
 
16097
 
 
16098
else
 
16099
  if test "$ac_cv_type_short" = yes; then
 
16100
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16101
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16102
as_fn_error 77 "cannot compute sizeof (short)
 
16103
See \`config.log' for more details" "$LINENO" 5; }
 
16104
   else
 
16105
     ac_cv_sizeof_short=0
 
16106
   fi
 
16107
fi
 
16108
 
 
16109
fi
 
16110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
 
16111
$as_echo "$ac_cv_sizeof_short" >&6; }
 
16112
 
 
16113
 
 
16114
 
 
16115
cat >>confdefs.h <<_ACEOF
 
16116
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
16117
_ACEOF
 
16118
 
 
16119
 
 
16120
# The cast to long int works around a bug in the HP C Compiler
 
16121
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16122
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16123
# This bug is HP SR number 8606223364.
 
16124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
16125
$as_echo_n "checking size of long... " >&6; }
 
16126
if ${ac_cv_sizeof_long+:} false; then :
 
16127
  $as_echo_n "(cached) " >&6
 
16128
else
 
16129
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
16130
 
 
16131
else
 
16132
  if test "$ac_cv_type_long" = yes; then
 
16133
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16134
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16135
as_fn_error 77 "cannot compute sizeof (long)
 
16136
See \`config.log' for more details" "$LINENO" 5; }
 
16137
   else
 
16138
     ac_cv_sizeof_long=0
 
16139
   fi
 
16140
fi
 
16141
 
 
16142
fi
 
16143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
16144
$as_echo "$ac_cv_sizeof_long" >&6; }
 
16145
 
 
16146
 
 
16147
 
 
16148
cat >>confdefs.h <<_ACEOF
 
16149
#define SIZEOF_LONG $ac_cv_sizeof_long
 
16150
_ACEOF
 
16151
 
 
16152
 
 
16153
# The cast to long int works around a bug in the HP C Compiler
 
16154
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16155
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16156
# This bug is HP SR number 8606223364.
 
16157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
 
16158
$as_echo_n "checking size of long long... " >&6; }
 
16159
if ${ac_cv_sizeof_long_long+:} false; then :
 
16160
  $as_echo_n "(cached) " >&6
 
16161
else
 
16162
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
 
16163
 
 
16164
else
 
16165
  if test "$ac_cv_type_long_long" = yes; then
 
16166
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16167
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16168
as_fn_error 77 "cannot compute sizeof (long long)
 
16169
See \`config.log' for more details" "$LINENO" 5; }
 
16170
   else
 
16171
     ac_cv_sizeof_long_long=0
 
16172
   fi
 
16173
fi
 
16174
 
 
16175
fi
 
16176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
 
16177
$as_echo "$ac_cv_sizeof_long_long" >&6; }
 
16178
 
 
16179
 
 
16180
 
 
16181
cat >>confdefs.h <<_ACEOF
 
16182
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
16183
_ACEOF
 
16184
 
 
16185
 
 
16186
 
 
16187
if test $ac_cv_sizeof_long_long -lt 8 ; then
 
16188
as_fn_error $? "SSSD requires long long of 64-bits" "$LINENO" 5
 
16189
fi
 
16190
 
 
16191
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
 
16192
if test "x$ac_cv_type_uint_t" = xyes; then :
 
16193
 
 
16194
else
 
16195
 
 
16196
cat >>confdefs.h <<_ACEOF
 
16197
#define uint_t unsigned int
 
16198
_ACEOF
 
16199
 
 
16200
fi
 
16201
 
 
16202
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
 
16203
if test "x$ac_cv_type_int8_t" = xyes; then :
 
16204
 
 
16205
else
 
16206
 
 
16207
cat >>confdefs.h <<_ACEOF
 
16208
#define int8_t char
 
16209
_ACEOF
 
16210
 
 
16211
fi
 
16212
 
 
16213
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
 
16214
if test "x$ac_cv_type_uint8_t" = xyes; then :
 
16215
 
 
16216
else
 
16217
 
 
16218
cat >>confdefs.h <<_ACEOF
 
16219
#define uint8_t unsigned char
 
16220
_ACEOF
 
16221
 
 
16222
fi
 
16223
 
 
16224
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
 
16225
if test "x$ac_cv_type_int16_t" = xyes; then :
 
16226
 
 
16227
else
 
16228
 
 
16229
cat >>confdefs.h <<_ACEOF
 
16230
#define int16_t short
 
16231
_ACEOF
 
16232
 
 
16233
fi
 
16234
 
 
16235
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
 
16236
if test "x$ac_cv_type_uint16_t" = xyes; then :
 
16237
 
 
16238
else
 
16239
 
 
16240
cat >>confdefs.h <<_ACEOF
 
16241
#define uint16_t unsigned short
 
16242
_ACEOF
 
16243
 
 
16244
fi
 
16245
 
 
16246
 
 
16247
if test $ac_cv_sizeof_int -eq 4 ; then
 
16248
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
 
16249
if test "x$ac_cv_type_int32_t" = xyes; then :
 
16250
 
 
16251
else
 
16252
 
 
16253
cat >>confdefs.h <<_ACEOF
 
16254
#define int32_t int
 
16255
_ACEOF
 
16256
 
 
16257
fi
 
16258
 
 
16259
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
 
16260
if test "x$ac_cv_type_uint32_t" = xyes; then :
 
16261
 
 
16262
else
 
16263
 
 
16264
cat >>confdefs.h <<_ACEOF
 
16265
#define uint32_t unsigned int
 
16266
_ACEOF
 
16267
 
 
16268
fi
 
16269
 
 
16270
elif test $ac_cv_size_long -eq 4 ; then
 
16271
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
 
16272
if test "x$ac_cv_type_int32_t" = xyes; then :
 
16273
 
 
16274
else
 
16275
 
 
16276
cat >>confdefs.h <<_ACEOF
 
16277
#define int32_t long
 
16278
_ACEOF
 
16279
 
 
16280
fi
 
16281
 
 
16282
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
 
16283
if test "x$ac_cv_type_uint32_t" = xyes; then :
 
16284
 
 
16285
else
 
16286
 
 
16287
cat >>confdefs.h <<_ACEOF
 
16288
#define uint32_t unsigned long
 
16289
_ACEOF
 
16290
 
 
16291
fi
 
16292
 
 
16293
else
 
16294
as_fn_error $? "LIBREPLACE no 32-bit type found" "$LINENO" 5
 
16295
fi
 
16296
 
 
16297
ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
 
16298
if test "x$ac_cv_type_int64_t" = xyes; then :
 
16299
 
 
16300
else
 
16301
 
 
16302
cat >>confdefs.h <<_ACEOF
 
16303
#define int64_t long long
 
16304
_ACEOF
 
16305
 
 
16306
fi
 
16307
 
 
16308
ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
 
16309
if test "x$ac_cv_type_uint64_t" = xyes; then :
 
16310
 
 
16311
else
 
16312
 
 
16313
cat >>confdefs.h <<_ACEOF
 
16314
#define uint64_t unsigned long long
 
16315
_ACEOF
 
16316
 
 
16317
fi
 
16318
 
 
16319
 
 
16320
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
16321
if test "x$ac_cv_type_size_t" = xyes; then :
 
16322
 
 
16323
else
 
16324
 
 
16325
cat >>confdefs.h <<_ACEOF
 
16326
#define size_t unsigned int
 
16327
_ACEOF
 
16328
 
 
16329
fi
 
16330
 
 
16331
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
 
16332
if test "x$ac_cv_type_ssize_t" = xyes; then :
 
16333
 
 
16334
else
 
16335
 
 
16336
cat >>confdefs.h <<_ACEOF
 
16337
#define ssize_t int
 
16338
_ACEOF
 
16339
 
 
16340
fi
 
16341
 
 
16342
 
 
16343
# The cast to long int works around a bug in the HP C Compiler
 
16344
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16345
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16346
# This bug is HP SR number 8606223364.
 
16347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
 
16348
$as_echo_n "checking size of off_t... " >&6; }
 
16349
if ${ac_cv_sizeof_off_t+:} false; then :
 
16350
  $as_echo_n "(cached) " >&6
 
16351
else
 
16352
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
 
16353
 
 
16354
else
 
16355
  if test "$ac_cv_type_off_t" = yes; then
 
16356
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16357
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16358
as_fn_error 77 "cannot compute sizeof (off_t)
 
16359
See \`config.log' for more details" "$LINENO" 5; }
 
16360
   else
 
16361
     ac_cv_sizeof_off_t=0
 
16362
   fi
 
16363
fi
 
16364
 
 
16365
fi
 
16366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
 
16367
$as_echo "$ac_cv_sizeof_off_t" >&6; }
 
16368
 
 
16369
 
 
16370
 
 
16371
cat >>confdefs.h <<_ACEOF
 
16372
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
 
16373
_ACEOF
 
16374
 
 
16375
 
 
16376
# The cast to long int works around a bug in the HP C Compiler
 
16377
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16378
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16379
# This bug is HP SR number 8606223364.
 
16380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
 
16381
$as_echo_n "checking size of size_t... " >&6; }
 
16382
if ${ac_cv_sizeof_size_t+:} false; then :
 
16383
  $as_echo_n "(cached) " >&6
 
16384
else
 
16385
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
 
16386
 
 
16387
else
 
16388
  if test "$ac_cv_type_size_t" = yes; then
 
16389
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16390
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16391
as_fn_error 77 "cannot compute sizeof (size_t)
 
16392
See \`config.log' for more details" "$LINENO" 5; }
 
16393
   else
 
16394
     ac_cv_sizeof_size_t=0
 
16395
   fi
 
16396
fi
 
16397
 
 
16398
fi
 
16399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
 
16400
$as_echo "$ac_cv_sizeof_size_t" >&6; }
 
16401
 
 
16402
 
 
16403
 
 
16404
cat >>confdefs.h <<_ACEOF
 
16405
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
16406
_ACEOF
 
16407
 
 
16408
 
 
16409
# The cast to long int works around a bug in the HP C Compiler
 
16410
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16411
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16412
# This bug is HP SR number 8606223364.
 
16413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
 
16414
$as_echo_n "checking size of ssize_t... " >&6; }
 
16415
if ${ac_cv_sizeof_ssize_t+:} false; then :
 
16416
  $as_echo_n "(cached) " >&6
 
16417
else
 
16418
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
 
16419
 
 
16420
else
 
16421
  if test "$ac_cv_type_ssize_t" = yes; then
 
16422
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16423
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16424
as_fn_error 77 "cannot compute sizeof (ssize_t)
 
16425
See \`config.log' for more details" "$LINENO" 5; }
 
16426
   else
 
16427
     ac_cv_sizeof_ssize_t=0
 
16428
   fi
 
16429
fi
 
16430
 
 
16431
fi
 
16432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
 
16433
$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
 
16434
 
 
16435
 
 
16436
 
 
16437
cat >>confdefs.h <<_ACEOF
 
16438
#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
 
16439
_ACEOF
 
16440
 
 
16441
 
 
16442
 
 
16443
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
 
16444
if test "x$ac_cv_type_intptr_t" = xyes; then :
 
16445
 
 
16446
else
 
16447
 
 
16448
cat >>confdefs.h <<_ACEOF
 
16449
#define intptr_t long long
 
16450
_ACEOF
 
16451
 
 
16452
fi
 
16453
 
 
16454
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
 
16455
if test "x$ac_cv_type_uintptr_t" = xyes; then :
 
16456
 
 
16457
else
 
16458
 
 
16459
cat >>confdefs.h <<_ACEOF
 
16460
#define uintptr_t unsigned long long
 
16461
_ACEOF
 
16462
 
 
16463
fi
 
16464
 
 
16465
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
 
16466
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
 
16467
 
 
16468
else
 
16469
 
 
16470
cat >>confdefs.h <<_ACEOF
 
16471
#define ptrdiff_t unsigned long long
 
16472
_ACEOF
 
16473
 
 
16474
fi
 
16475
 
 
16476
 
 
16477
 
 
16478
 
 
16479
 
 
16480
 
 
16481
 
 
16482
 
 
16483
 
 
16484
 
 
16485
 
 
16486
 
 
16487
 
 
16488
 
 
16489
 
 
16490
# Check whether --enable-crypto was given.
 
16491
if test "${enable_crypto+set}" = set; then :
 
16492
  enableval=$enable_crypto; CRYPTO="$enableval"
 
16493
else
 
16494
  CRYPTO="no"
 
16495
 
 
16496
fi
 
16497
 
 
16498
 
 
16499
if test x$CRYPTO != xyes; then
 
16500
 
 
16501
pkg_failed=no
 
16502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
 
16503
$as_echo_n "checking for NSS... " >&6; }
 
16504
 
 
16505
if test -n "$PKG_CONFIG"; then
 
16506
    if test -n "$NSS_CFLAGS"; then
 
16507
        pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
 
16508
    else
 
16509
        if test -n "$PKG_CONFIG" && \
 
16510
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
 
16511
  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
 
16512
  ac_status=$?
 
16513
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16514
  test $ac_status = 0; }; then
 
16515
  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
 
16516
else
 
16517
  pkg_failed=yes
 
16518
fi
 
16519
    fi
 
16520
else
 
16521
        pkg_failed=untried
 
16522
fi
 
16523
if test -n "$PKG_CONFIG"; then
 
16524
    if test -n "$NSS_LIBS"; then
 
16525
        pkg_cv_NSS_LIBS="$NSS_LIBS"
 
16526
    else
 
16527
        if test -n "$PKG_CONFIG" && \
 
16528
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
 
16529
  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
 
16530
  ac_status=$?
 
16531
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16532
  test $ac_status = 0; }; then
 
16533
  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
 
16534
else
 
16535
  pkg_failed=yes
 
16536
fi
 
16537
    fi
 
16538
else
 
16539
        pkg_failed=untried
 
16540
fi
 
16541
 
 
16542
 
 
16543
 
 
16544
if test $pkg_failed = yes; then
 
16545
 
 
16546
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16547
        _pkg_short_errors_supported=yes
 
16548
else
 
16549
        _pkg_short_errors_supported=no
 
16550
fi
 
16551
        if test $_pkg_short_errors_supported = yes; then
 
16552
                NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nss"`
 
16553
        else
 
16554
                NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
 
16555
        fi
 
16556
        # Put the nasty error message in config.log where it belongs
 
16557
        echo "$NSS_PKG_ERRORS" >&5
 
16558
 
 
16559
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16560
$as_echo "no" >&6; }
 
16561
                have_nss=
 
16562
elif test $pkg_failed = untried; then
 
16563
        have_nss=
 
16564
else
 
16565
        NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
 
16566
        NSS_LIBS=$pkg_cv_NSS_LIBS
 
16567
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16568
$as_echo "yes" >&6; }
 
16569
        have_nss=1
 
16570
fi
 
16571
else
 
16572
 
 
16573
pkg_failed=no
 
16574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5
 
16575
$as_echo_n "checking for CRYPTO... " >&6; }
 
16576
 
 
16577
if test -n "$PKG_CONFIG"; then
 
16578
    if test -n "$CRYPTO_CFLAGS"; then
 
16579
        pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS"
 
16580
    else
 
16581
        if test -n "$PKG_CONFIG" && \
 
16582
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
 
16583
  ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
 
16584
  ac_status=$?
 
16585
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16586
  test $ac_status = 0; }; then
 
16587
  pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
 
16588
else
 
16589
  pkg_failed=yes
 
16590
fi
 
16591
    fi
 
16592
else
 
16593
        pkg_failed=untried
 
16594
fi
 
16595
if test -n "$PKG_CONFIG"; then
 
16596
    if test -n "$CRYPTO_LIBS"; then
 
16597
        pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS"
 
16598
    else
 
16599
        if test -n "$PKG_CONFIG" && \
 
16600
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
 
16601
  ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
 
16602
  ac_status=$?
 
16603
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16604
  test $ac_status = 0; }; then
 
16605
  pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
 
16606
else
 
16607
  pkg_failed=yes
 
16608
fi
 
16609
    fi
 
16610
else
 
16611
        pkg_failed=untried
 
16612
fi
 
16613
 
 
16614
 
 
16615
 
 
16616
if test $pkg_failed = yes; then
 
16617
 
 
16618
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16619
        _pkg_short_errors_supported=yes
 
16620
else
 
16621
        _pkg_short_errors_supported=no
 
16622
fi
 
16623
        if test $_pkg_short_errors_supported = yes; then
 
16624
                CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcrypto"`
 
16625
        else
 
16626
                CRYPTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcrypto"`
 
16627
        fi
 
16628
        # Put the nasty error message in config.log where it belongs
 
16629
        echo "$CRYPTO_PKG_ERRORS" >&5
 
16630
 
 
16631
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16632
$as_echo "no" >&6; }
 
16633
                have_crypto=
 
16634
elif test $pkg_failed = untried; then
 
16635
        have_crypto=
 
16636
else
 
16637
        CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS
 
16638
        CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS
 
16639
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16640
$as_echo "yes" >&6; }
 
16641
        have_crypto=1
 
16642
fi
 
16643
fi
 
16644
 if test x$have_nss != x; then
 
16645
  HAVE_NSS_TRUE=
 
16646
  HAVE_NSS_FALSE='#'
 
16647
else
 
16648
  HAVE_NSS_TRUE='#'
 
16649
  HAVE_NSS_FALSE=
 
16650
fi
 
16651
 
 
16652
 if test x$have_crypto != x; then
 
16653
  HAVE_CRYPTO_TRUE=
 
16654
  HAVE_CRYPTO_FALSE='#'
 
16655
else
 
16656
  HAVE_CRYPTO_TRUE='#'
 
16657
  HAVE_CRYPTO_FALSE=
 
16658
fi
 
16659
 
 
16660
 
 
16661
# Extract the first word of "nscd", so it can be a program name with args.
 
16662
set dummy nscd; ac_word=$2
 
16663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16664
$as_echo_n "checking for $ac_word... " >&6; }
 
16665
if ${ac_cv_path_NSCD+:} false; then :
 
16666
  $as_echo_n "(cached) " >&6
 
16667
else
 
16668
  case $NSCD in
 
16669
  [\\/]* | ?:[\\/]*)
 
16670
  ac_cv_path_NSCD="$NSCD" # Let the user override the test with a path.
 
16671
  ;;
 
16672
  *)
 
16673
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16674
for as_dir in $PATH
 
16675
do
 
16676
  IFS=$as_save_IFS
 
16677
  test -z "$as_dir" && as_dir=.
 
16678
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16679
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16680
    ac_cv_path_NSCD="$as_dir/$ac_word$ac_exec_ext"
 
16681
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16682
    break 2
 
16683
  fi
 
16684
done
 
16685
  done
 
16686
IFS=$as_save_IFS
 
16687
 
 
16688
  ;;
 
16689
esac
 
16690
fi
 
16691
NSCD=$ac_cv_path_NSCD
 
16692
if test -n "$NSCD"; then
 
16693
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSCD" >&5
 
16694
$as_echo "$NSCD" >&6; }
 
16695
else
 
16696
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16697
$as_echo "no" >&6; }
 
16698
fi
 
16699
 
 
16700
 
 
16701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nscd" >&5
 
16702
$as_echo_n "checking for nscd... " >&6; }
 
16703
if test -x "$NSCD"; then
 
16704
 
 
16705
cat >>confdefs.h <<_ACEOF
 
16706
#define NSCD_PATH "$NSCD"
 
16707
_ACEOF
 
16708
 
 
16709
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16710
$as_echo "yes" >&6; }
 
16711
else
 
16712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Manipulating nscd cache will not be available." >&5
 
16713
$as_echo "no. Manipulating nscd cache will not be available." >&6; }
 
16714
fi
 
16715
 
 
16716
 
 
16717
# Extract the first word of "nsupdate", so it can be a program name with args.
 
16718
set dummy nsupdate; ac_word=$2
 
16719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16720
$as_echo_n "checking for $ac_word... " >&6; }
 
16721
if ${ac_cv_path_NSUPDATE+:} false; then :
 
16722
  $as_echo_n "(cached) " >&6
 
16723
else
 
16724
  case $NSUPDATE in
 
16725
  [\\/]* | ?:[\\/]*)
 
16726
  ac_cv_path_NSUPDATE="$NSUPDATE" # Let the user override the test with a path.
 
16727
  ;;
 
16728
  *)
 
16729
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16730
for as_dir in $PATH
 
16731
do
 
16732
  IFS=$as_save_IFS
 
16733
  test -z "$as_dir" && as_dir=.
 
16734
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16735
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16736
    ac_cv_path_NSUPDATE="$as_dir/$ac_word$ac_exec_ext"
 
16737
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16738
    break 2
 
16739
  fi
 
16740
done
 
16741
  done
 
16742
IFS=$as_save_IFS
 
16743
 
 
16744
  ;;
 
16745
esac
 
16746
fi
 
16747
NSUPDATE=$ac_cv_path_NSUPDATE
 
16748
if test -n "$NSUPDATE"; then
 
16749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSUPDATE" >&5
 
16750
$as_echo "$NSUPDATE" >&6; }
 
16751
else
 
16752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16753
$as_echo "no" >&6; }
 
16754
fi
 
16755
 
 
16756
 
 
16757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nsupdate" >&5
 
16758
$as_echo_n "checking for nsupdate... " >&6; }
 
16759
if test -x "$NSUPDATE"; then
 
16760
 
 
16761
cat >>confdefs.h <<_ACEOF
 
16762
#define NSUPDATE_PATH "$NSUPDATE"
 
16763
_ACEOF
 
16764
 
 
16765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16766
$as_echo "yes" >&6; }
 
16767
else
 
16768
  as_fn_error $? "no. nsupdate is not available" "$LINENO" 5
 
16769
fi
 
16770
 
 
16771
 
 
16772
 
 
16773
for ac_header in keyutils.h
 
16774
do :
 
16775
  ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
 
16776
if test "x$ac_cv_header_keyutils_h" = xyes; then :
 
16777
  cat >>confdefs.h <<_ACEOF
 
16778
#define HAVE_KEYUTILS_H 1
 
16779
_ACEOF
 
16780
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_key in -lkeyutils" >&5
 
16781
$as_echo_n "checking for add_key in -lkeyutils... " >&6; }
 
16782
if ${ac_cv_lib_keyutils_add_key+:} false; then :
 
16783
  $as_echo_n "(cached) " >&6
 
16784
else
 
16785
  ac_check_lib_save_LIBS=$LIBS
 
16786
LIBS="-lkeyutils  $LIBS"
 
16787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16788
/* end confdefs.h.  */
 
16789
 
 
16790
/* Override any GCC internal prototype to avoid an error.
 
16791
   Use char because int might match the return type of a GCC
 
16792
   builtin and then its argument prototype would still apply.  */
 
16793
#ifdef __cplusplus
 
16794
extern "C"
 
16795
#endif
 
16796
char add_key ();
 
16797
int
 
16798
main ()
 
16799
{
 
16800
return add_key ();
 
16801
  ;
 
16802
  return 0;
 
16803
}
 
16804
_ACEOF
 
16805
if ac_fn_c_try_link "$LINENO"; then :
 
16806
  ac_cv_lib_keyutils_add_key=yes
 
16807
else
 
16808
  ac_cv_lib_keyutils_add_key=no
 
16809
fi
 
16810
rm -f core conftest.err conftest.$ac_objext \
 
16811
    conftest$ac_exeext conftest.$ac_ext
 
16812
LIBS=$ac_check_lib_save_LIBS
 
16813
fi
 
16814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_add_key" >&5
 
16815
$as_echo "$ac_cv_lib_keyutils_add_key" >&6; }
 
16816
if test "x$ac_cv_lib_keyutils_add_key" = xyes; then :
 
16817
 
 
16818
$as_echo "#define USE_KEYRING 1" >>confdefs.h
 
16819
 
 
16820
                                KEYUTILS_LIBS="-lkeyutils"
 
16821
 
 
16822
else
 
16823
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No usable keyutils library found" >&5
 
16824
$as_echo "$as_me: WARNING: No usable keyutils library found" >&2;}
 
16825
 
 
16826
fi
 
16827
 
 
16828
else
 
16829
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: keyutils header files are not available" >&5
 
16830
$as_echo "$as_me: WARNING: keyutils header files are not available" >&2;}
 
16831
 
 
16832
fi
 
16833
 
 
16834
done
 
16835
 
 
16836
 
 
16837
 
 
16838
 
 
16839
 
 
16840
for ac_func in sigprocmask sigblock sigaction getpgrp prctl
 
16841
do :
 
16842
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16843
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
16844
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
16845
  cat >>confdefs.h <<_ACEOF
 
16846
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16847
_ACEOF
 
16848
 
 
16849
fi
 
16850
done
 
16851
 
 
16852
 
 
16853
 
 
16854
 
 
16855
pkg_failed=no
 
16856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
 
16857
$as_echo_n "checking for DBUS... " >&6; }
 
16858
 
 
16859
if test -n "$PKG_CONFIG"; then
 
16860
    if test -n "$DBUS_CFLAGS"; then
 
16861
        pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
 
16862
    else
 
16863
        if test -n "$PKG_CONFIG" && \
 
16864
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
 
16865
  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
 
16866
  ac_status=$?
 
16867
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16868
  test $ac_status = 0; }; then
 
16869
  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
 
16870
else
 
16871
  pkg_failed=yes
 
16872
fi
 
16873
    fi
 
16874
else
 
16875
        pkg_failed=untried
 
16876
fi
 
16877
if test -n "$PKG_CONFIG"; then
 
16878
    if test -n "$DBUS_LIBS"; then
 
16879
        pkg_cv_DBUS_LIBS="$DBUS_LIBS"
 
16880
    else
 
16881
        if test -n "$PKG_CONFIG" && \
 
16882
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
 
16883
  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
 
16884
  ac_status=$?
 
16885
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16886
  test $ac_status = 0; }; then
 
16887
  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
 
16888
else
 
16889
  pkg_failed=yes
 
16890
fi
 
16891
    fi
 
16892
else
 
16893
        pkg_failed=untried
 
16894
fi
 
16895
 
 
16896
 
 
16897
 
 
16898
if test $pkg_failed = yes; then
 
16899
 
 
16900
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16901
        _pkg_short_errors_supported=yes
 
16902
else
 
16903
        _pkg_short_errors_supported=no
 
16904
fi
 
16905
        if test $_pkg_short_errors_supported = yes; then
 
16906
                DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
 
16907
        else
 
16908
                DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
 
16909
        fi
 
16910
        # Put the nasty error message in config.log where it belongs
 
16911
        echo "$DBUS_PKG_ERRORS" >&5
 
16912
 
 
16913
        as_fn_error $? "Package requirements (dbus-1) were not met:
 
16914
 
 
16915
$DBUS_PKG_ERRORS
 
16916
 
 
16917
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16918
installed software in a non-standard prefix.
 
16919
 
 
16920
Alternatively, you may set the environment variables DBUS_CFLAGS
 
16921
and DBUS_LIBS to avoid the need to call pkg-config.
 
16922
See the pkg-config man page for more details.
 
16923
" "$LINENO" 5
 
16924
elif test $pkg_failed = untried; then
 
16925
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16926
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16927
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16928
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16929
path to pkg-config.
 
16930
 
 
16931
Alternatively, you may set the environment variables DBUS_CFLAGS
 
16932
and DBUS_LIBS to avoid the need to call pkg-config.
 
16933
See the pkg-config man page for more details.
 
16934
 
 
16935
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
16936
See \`config.log' for more details" "$LINENO" 5; }
 
16937
else
 
16938
        DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
 
16939
        DBUS_LIBS=$pkg_cv_DBUS_LIBS
 
16940
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16941
$as_echo "yes" >&6; }
 
16942
        :
 
16943
fi
 
16944
if ! $PKG_CONFIG --atleast-version 1.0.0 dbus-1; then
 
16945
    DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
 
16946
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting -DDBUS_API_SUBJECT_TO_CHANGE" >&5
 
16947
$as_echo "setting -DDBUS_API_SUBJECT_TO_CHANGE" >&6; }
 
16948
fi
 
16949
 
 
16950
if test x$has_dbus != xno; then
 
16951
    SAFE_LIBS="$LIBS"
 
16952
    LIBS="$DBUS_LIBS"
 
16953
    ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
 
16954
if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
 
16955
 
 
16956
$as_echo "#define HAVE_DBUS_WATCH_GET_UNIX_FD 1" >>confdefs.h
 
16957
 
 
16958
fi
 
16959
 
 
16960
    LIBS="$SAFE_LIBS"
 
16961
fi
 
16962
 
 
16963
if test x$HAVE_MANPAGES != x; then
 
16964
 
 
16965
  # Extract the first word of "xsltproc", so it can be a program name with args.
 
16966
set dummy xsltproc; ac_word=$2
 
16967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16968
$as_echo_n "checking for $ac_word... " >&6; }
 
16969
if ${ac_cv_path_XSLTPROC+:} false; then :
 
16970
  $as_echo_n "(cached) " >&6
 
16971
else
 
16972
  case $XSLTPROC in
 
16973
  [\\/]* | ?:[\\/]*)
 
16974
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
 
16975
  ;;
 
16976
  *)
 
16977
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16978
for as_dir in $PATH
 
16979
do
 
16980
  IFS=$as_save_IFS
 
16981
  test -z "$as_dir" && as_dir=.
 
16982
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16983
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16984
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
 
16985
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16986
    break 2
 
16987
  fi
 
16988
done
 
16989
  done
 
16990
IFS=$as_save_IFS
 
16991
 
 
16992
  ;;
 
16993
esac
 
16994
fi
 
16995
XSLTPROC=$ac_cv_path_XSLTPROC
 
16996
if test -n "$XSLTPROC"; then
 
16997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
 
16998
$as_echo "$XSLTPROC" >&6; }
 
16999
else
 
17000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17001
$as_echo "no" >&6; }
 
17002
fi
 
17003
 
 
17004
 
 
17005
  if test ! -x "$XSLTPROC"; then
 
17006
    as_fn_error $? "Could not find xsltproc" "$LINENO" 5
 
17007
  fi
 
17008
 
 
17009
  # Extract the first word of "xmllint", so it can be a program name with args.
 
17010
set dummy xmllint; ac_word=$2
 
17011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17012
$as_echo_n "checking for $ac_word... " >&6; }
 
17013
if ${ac_cv_path_XMLLINT+:} false; then :
 
17014
  $as_echo_n "(cached) " >&6
 
17015
else
 
17016
  case $XMLLINT in
 
17017
  [\\/]* | ?:[\\/]*)
 
17018
  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
 
17019
  ;;
 
17020
  *)
 
17021
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17022
for as_dir in $PATH
 
17023
do
 
17024
  IFS=$as_save_IFS
 
17025
  test -z "$as_dir" && as_dir=.
 
17026
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17027
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17028
    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
 
17029
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17030
    break 2
 
17031
  fi
 
17032
done
 
17033
  done
 
17034
IFS=$as_save_IFS
 
17035
 
 
17036
  ;;
 
17037
esac
 
17038
fi
 
17039
XMLLINT=$ac_cv_path_XMLLINT
 
17040
if test -n "$XMLLINT"; then
 
17041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
 
17042
$as_echo "$XMLLINT" >&6; }
 
17043
else
 
17044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17045
$as_echo "no" >&6; }
 
17046
fi
 
17047
 
 
17048
 
 
17049
  if test ! -x "$XMLLINT"; then
 
17050
    as_fn_error $? "Could not find xmllint" "$LINENO" 5
 
17051
  fi
 
17052
 
 
17053
  # Extract the first word of "xmlcatalog", so it can be a program name with args.
 
17054
set dummy xmlcatalog; ac_word=$2
 
17055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17056
$as_echo_n "checking for $ac_word... " >&6; }
 
17057
if ${ac_cv_path_XMLCATALOG+:} false; then :
 
17058
  $as_echo_n "(cached) " >&6
 
17059
else
 
17060
  case $XMLCATALOG in
 
17061
  [\\/]* | ?:[\\/]*)
 
17062
  ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
 
17063
  ;;
 
17064
  *)
 
17065
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17066
for as_dir in $PATH
 
17067
do
 
17068
  IFS=$as_save_IFS
 
17069
  test -z "$as_dir" && as_dir=.
 
17070
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17071
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17072
    ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
 
17073
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17074
    break 2
 
17075
  fi
 
17076
done
 
17077
  done
 
17078
IFS=$as_save_IFS
 
17079
 
 
17080
  ;;
 
17081
esac
 
17082
fi
 
17083
XMLCATALOG=$ac_cv_path_XMLCATALOG
 
17084
if test -n "$XMLCATALOG"; then
 
17085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
 
17086
$as_echo "$XMLCATALOG" >&6; }
 
17087
else
 
17088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17089
$as_echo "no" >&6; }
 
17090
fi
 
17091
 
 
17092
 
 
17093
  if test ! -x "$XMLCATALOG"; then
 
17094
    as_fn_error $? "Could not find xmlcatalog" "$LINENO" 5
 
17095
  fi
 
17096
 
 
17097
 
 
17098
  as_ac_File=`$as_echo "ac_cv_file_$SGML_CATALOG_FILES" | $as_tr_sh`
 
17099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SGML_CATALOG_FILES" >&5
 
17100
$as_echo_n "checking for $SGML_CATALOG_FILES... " >&6; }
 
17101
if eval \${$as_ac_File+:} false; then :
 
17102
  $as_echo_n "(cached) " >&6
 
17103
else
 
17104
  test "$cross_compiling" = yes &&
 
17105
  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
 
17106
if test -r "$SGML_CATALOG_FILES"; then
 
17107
  eval "$as_ac_File=yes"
 
17108
else
 
17109
  eval "$as_ac_File=no"
 
17110
fi
 
17111
fi
 
17112
eval ac_res=\$$as_ac_File
 
17113
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17114
$as_echo "$ac_res" >&6; }
 
17115
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
 
17116
 
 
17117
else
 
17118
  as_fn_error $? "could not find XML catalog" "$LINENO" 5
 
17119
fi
 
17120
 
 
17121
 
 
17122
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSL templates in XML catalog" >&5
 
17123
$as_echo_n "checking for Docbook XSL templates in XML catalog... " >&6; }
 
17124
  if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$SGML_CATALOG_FILES\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
 
17125
  ($XMLCATALOG --noout "$SGML_CATALOG_FILES" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
 
17126
  ac_status=$?
 
17127
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17128
  test $ac_status = 0; }; then
 
17129
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17130
$as_echo "yes" >&6; }
 
17131
  else
 
17132
    as_fn_error $? "could not find Docbook XSL templates in XML catalog" "$LINENO" 5
 
17133
  fi
 
17134
 
 
17135
    # Extract the first word of "po4a", so it can be a program name with args.
 
17136
set dummy po4a; ac_word=$2
 
17137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17138
$as_echo_n "checking for $ac_word... " >&6; }
 
17139
if ${ac_cv_prog_PO4A+:} false; then :
 
17140
  $as_echo_n "(cached) " >&6
 
17141
else
 
17142
  if test -n "$PO4A"; then
 
17143
  ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
 
17144
else
 
17145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17146
for as_dir in $PATH
 
17147
do
 
17148
  IFS=$as_save_IFS
 
17149
  test -z "$as_dir" && as_dir=.
 
17150
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17151
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17152
    ac_cv_prog_PO4A="po4a"
 
17153
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17154
    break 2
 
17155
  fi
 
17156
done
 
17157
  done
 
17158
IFS=$as_save_IFS
 
17159
 
 
17160
  test -z "$ac_cv_prog_PO4A" && ac_cv_prog_PO4A="no"
 
17161
fi
 
17162
fi
 
17163
PO4A=$ac_cv_prog_PO4A
 
17164
if test -n "$PO4A"; then
 
17165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
 
17166
$as_echo "$PO4A" >&6; }
 
17167
else
 
17168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17169
$as_echo "no" >&6; }
 
17170
fi
 
17171
 
 
17172
 
 
17173
     if test "x$PO4A" != "xno"; then
 
17174
  HAVE_PO4A_TRUE=
 
17175
  HAVE_PO4A_FALSE='#'
 
17176
else
 
17177
  HAVE_PO4A_TRUE='#'
 
17178
  HAVE_PO4A_FALSE=
 
17179
fi
 
17180
 
 
17181
fi
 
17182
 
 
17183
if test x$HAVE_PYTHON_BINDINGS != x; then
 
17184
 
 
17185
 
 
17186
 
 
17187
 
 
17188
        if test -n "$PYTHON"; then
 
17189
      # If the user set $PYTHON, use it and don't search something else.
 
17190
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
 
17191
$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
 
17192
      prog="import sys
 
17193
# split strings by '.' and convert to numeric.  Append some zeros
 
17194
# because we need at least 4 digits for the hex conversion.
 
17195
# map returns an iterator in Python 3.0 and a list in 2.x
 
17196
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
 
17197
minverhex = 0
 
17198
# xrange is not present in Python 3.0 and range returns an iterator
 
17199
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
17200
sys.exit(sys.hexversion < minverhex)"
 
17201
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
 
17202
   ($PYTHON -c "$prog") >&5 2>&5
 
17203
   ac_status=$?
 
17204
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17205
   (exit $ac_status); }; then :
 
17206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17207
$as_echo "yes" >&6; }
 
17208
else
 
17209
  as_fn_error $? "too old" "$LINENO" 5
 
17210
fi
 
17211
      am_display_PYTHON=$PYTHON
 
17212
    else
 
17213
      # Otherwise, try each interpreter until we find one that satisfies
 
17214
      # VERSION.
 
17215
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
 
17216
$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
 
17217
if ${am_cv_pathless_PYTHON+:} false; then :
 
17218
  $as_echo_n "(cached) " >&6
 
17219
else
 
17220
 
 
17221
        for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
 
17222
          test "$am_cv_pathless_PYTHON" = none && break
 
17223
          prog="import sys
 
17224
# split strings by '.' and convert to numeric.  Append some zeros
 
17225
# because we need at least 4 digits for the hex conversion.
 
17226
# map returns an iterator in Python 3.0 and a list in 2.x
 
17227
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
 
17228
minverhex = 0
 
17229
# xrange is not present in Python 3.0 and range returns an iterator
 
17230
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
17231
sys.exit(sys.hexversion < minverhex)"
 
17232
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
 
17233
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
 
17234
   ac_status=$?
 
17235
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17236
   (exit $ac_status); }; then :
 
17237
  break
 
17238
fi
 
17239
        done
 
17240
fi
 
17241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
 
17242
$as_echo "$am_cv_pathless_PYTHON" >&6; }
 
17243
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
17244
      if test "$am_cv_pathless_PYTHON" = none; then
 
17245
        PYTHON=:
 
17246
      else
 
17247
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
 
17248
set dummy $am_cv_pathless_PYTHON; ac_word=$2
 
17249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17250
$as_echo_n "checking for $ac_word... " >&6; }
 
17251
if ${ac_cv_path_PYTHON+:} false; then :
 
17252
  $as_echo_n "(cached) " >&6
 
17253
else
 
17254
  case $PYTHON in
 
17255
  [\\/]* | ?:[\\/]*)
 
17256
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
17257
  ;;
 
17258
  *)
 
17259
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17260
for as_dir in $PATH
 
17261
do
 
17262
  IFS=$as_save_IFS
 
17263
  test -z "$as_dir" && as_dir=.
 
17264
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17266
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
17267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17268
    break 2
 
17269
  fi
 
17270
done
 
17271
  done
 
17272
IFS=$as_save_IFS
 
17273
 
 
17274
  ;;
 
17275
esac
 
17276
fi
 
17277
PYTHON=$ac_cv_path_PYTHON
 
17278
if test -n "$PYTHON"; then
 
17279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
17280
$as_echo "$PYTHON" >&6; }
 
17281
else
 
17282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17283
$as_echo "no" >&6; }
 
17284
fi
 
17285
 
 
17286
 
 
17287
      fi
 
17288
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
17289
    fi
 
17290
 
 
17291
 
 
17292
  if test "$PYTHON" = :; then
 
17293
      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
 
17294
  else
 
17295
 
 
17296
 
 
17297
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
 
17298
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
 
17299
if ${am_cv_python_version+:} false; then :
 
17300
  $as_echo_n "(cached) " >&6
 
17301
else
 
17302
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
17303
fi
 
17304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
 
17305
$as_echo "$am_cv_python_version" >&6; }
 
17306
  PYTHON_VERSION=$am_cv_python_version
 
17307
 
 
17308
 
 
17309
 
 
17310
  PYTHON_PREFIX='${prefix}'
 
17311
 
 
17312
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
17313
 
 
17314
 
 
17315
 
 
17316
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
 
17317
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
 
17318
if ${am_cv_python_platform+:} false; then :
 
17319
  $as_echo_n "(cached) " >&6
 
17320
else
 
17321
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
17322
fi
 
17323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
 
17324
$as_echo "$am_cv_python_platform" >&6; }
 
17325
  PYTHON_PLATFORM=$am_cv_python_platform
 
17326
 
 
17327
 
 
17328
 
 
17329
 
 
17330
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
 
17331
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
 
17332
if ${am_cv_python_pythondir+:} false; then :
 
17333
  $as_echo_n "(cached) " >&6
 
17334
else
 
17335
  if test "x$prefix" = xNONE
 
17336
     then
 
17337
       am_py_prefix=$ac_default_prefix
 
17338
     else
 
17339
       am_py_prefix=$prefix
 
17340
     fi
 
17341
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
 
17342
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
17343
     case $am_cv_python_pythondir in
 
17344
     $am_py_prefix*)
 
17345
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
17346
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
17347
       ;;
 
17348
     *)
 
17349
       case $am_py_prefix in
 
17350
         /usr|/System*) ;;
 
17351
         *)
 
17352
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
17353
          ;;
 
17354
       esac
 
17355
       ;;
 
17356
     esac
 
17357
 
 
17358
fi
 
17359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
 
17360
$as_echo "$am_cv_python_pythondir" >&6; }
 
17361
  pythondir=$am_cv_python_pythondir
 
17362
 
 
17363
 
 
17364
 
 
17365
  pkgpythondir=\${pythondir}/$PACKAGE
 
17366
 
 
17367
 
 
17368
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
 
17369
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
 
17370
if ${am_cv_python_pyexecdir+:} false; then :
 
17371
  $as_echo_n "(cached) " >&6
 
17372
else
 
17373
  if test "x$exec_prefix" = xNONE
 
17374
     then
 
17375
       am_py_exec_prefix=$am_py_prefix
 
17376
     else
 
17377
       am_py_exec_prefix=$exec_prefix
 
17378
     fi
 
17379
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
 
17380
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
17381
     case $am_cv_python_pyexecdir in
 
17382
     $am_py_exec_prefix*)
 
17383
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
17384
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
17385
       ;;
 
17386
     *)
 
17387
       case $am_py_exec_prefix in
 
17388
         /usr|/System*) ;;
 
17389
         *)
 
17390
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
17391
           ;;
 
17392
       esac
 
17393
       ;;
 
17394
     esac
 
17395
 
 
17396
fi
 
17397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
 
17398
$as_echo "$am_cv_python_pyexecdir" >&6; }
 
17399
  pyexecdir=$am_cv_python_pyexecdir
 
17400
 
 
17401
 
 
17402
 
 
17403
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
17404
 
 
17405
 
 
17406
 
 
17407
  fi
 
17408
 
 
17409
 
 
17410
 
 
17411
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
 
17412
$as_echo_n "checking for headers required to compile python extensions... " >&6; }
 
17413
 
 
17414
        py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
 
17415
    py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
 
17416
    PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
 
17417
    if test "$py_prefix" != "$py_exec_prefix"; then
 
17418
        PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
 
17419
    fi
 
17420
 
 
17421
 
 
17422
 
 
17423
        save_CPPFLAGS="$CPPFLAGS"
 
17424
    CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
 
17425
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17426
/* end confdefs.h.  */
 
17427
#include <Python.h>
 
17428
_ACEOF
 
17429
if ac_fn_c_try_cpp "$LINENO"; then :
 
17430
                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 
17431
$as_echo "found" >&6; }
 
17432
 
 
17433
else
 
17434
                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
17435
$as_echo "not found" >&6; }
 
17436
               as_fn_error $? "Could not find python headers" "$LINENO" 5
 
17437
fi
 
17438
rm -f conftest.err conftest.i conftest.$ac_ext
 
17439
    CPPFLAGS="$save_CPPFLAGS"
 
17440
 
 
17441
 
 
17442
 
 
17443
 
 
17444
    # Extract the first word of "python", so it can be a program name with args.
 
17445
set dummy python; ac_word=$2
 
17446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17447
$as_echo_n "checking for $ac_word... " >&6; }
 
17448
if ${ac_cv_path_PYTHON+:} false; then :
 
17449
  $as_echo_n "(cached) " >&6
 
17450
else
 
17451
  case $PYTHON in
 
17452
  [\\/]* | ?:[\\/]*)
 
17453
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
17454
  ;;
 
17455
  *)
 
17456
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17457
for as_dir in $PATH
 
17458
do
 
17459
  IFS=$as_save_IFS
 
17460
  test -z "$as_dir" && as_dir=.
 
17461
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17462
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17463
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
17464
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17465
    break 2
 
17466
  fi
 
17467
done
 
17468
  done
 
17469
IFS=$as_save_IFS
 
17470
 
 
17471
  ;;
 
17472
esac
 
17473
fi
 
17474
PYTHON=$ac_cv_path_PYTHON
 
17475
if test -n "$PYTHON"; then
 
17476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
17477
$as_echo "$PYTHON" >&6; }
 
17478
else
 
17479
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17480
$as_echo "no" >&6; }
 
17481
fi
 
17482
 
 
17483
 
 
17484
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working python" >&5
 
17485
$as_echo_n "checking for working python... " >&6; }
 
17486
    if test -x "$PYTHON"; then
 
17487
        PYTHON_CFLAGS="`$PYTHON -c \"from distutils import sysconfig; \
 
17488
            print '-I' + sysconfig.get_python_inc() + \
 
17489
            ' -I' + sysconfig.get_python_inc(plat_specific=True) + ' ' + \
 
17490
            sysconfig.get_config_var('BASECFLAGS')\"`"
 
17491
        PYTHON_LIBS="`$PYTHON -c \"from distutils import sysconfig; \
 
17492
            print \\\" \\\".join(sysconfig.get_config_var('LIBS').split() + \
 
17493
            sysconfig.get_config_var('SYSLIBS').split()) + \
 
17494
            ' -lpython' + sysconfig.get_config_var('VERSION')\"`"
 
17495
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17496
$as_echo "yes" >&6; }
 
17497
    else
 
17498
        as_fn_error $? "no. Please install python devel package" "$LINENO" 5
 
17499
    fi
 
17500
 
 
17501
fi
 
17502
 
 
17503
if test x$HAVE_SELINUX != x; then
 
17504
 
 
17505
    for ac_header in selinux/selinux.h
 
17506
do :
 
17507
  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
 
17508
if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
 
17509
  cat >>confdefs.h <<_ACEOF
 
17510
#define HAVE_SELINUX_SELINUX_H 1
 
17511
_ACEOF
 
17512
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
 
17513
$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
 
17514
if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
 
17515
  $as_echo_n "(cached) " >&6
 
17516
else
 
17517
  ac_check_lib_save_LIBS=$LIBS
 
17518
LIBS="-lselinux  $LIBS"
 
17519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17520
/* end confdefs.h.  */
 
17521
 
 
17522
/* Override any GCC internal prototype to avoid an error.
 
17523
   Use char because int might match the return type of a GCC
 
17524
   builtin and then its argument prototype would still apply.  */
 
17525
#ifdef __cplusplus
 
17526
extern "C"
 
17527
#endif
 
17528
char is_selinux_enabled ();
 
17529
int
 
17530
main ()
 
17531
{
 
17532
return is_selinux_enabled ();
 
17533
  ;
 
17534
  return 0;
 
17535
}
 
17536
_ACEOF
 
17537
if ac_fn_c_try_link "$LINENO"; then :
 
17538
  ac_cv_lib_selinux_is_selinux_enabled=yes
 
17539
else
 
17540
  ac_cv_lib_selinux_is_selinux_enabled=no
 
17541
fi
 
17542
rm -f core conftest.err conftest.$ac_objext \
 
17543
    conftest$ac_exeext conftest.$ac_ext
 
17544
LIBS=$ac_check_lib_save_LIBS
 
17545
fi
 
17546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
 
17547
$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
 
17548
if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
 
17549
  SELINUX_LIBS="-lselinux"
 
17550
else
 
17551
  as_fn_error $? "SELinux library is missing" "$LINENO" 5
 
17552
 
 
17553
fi
 
17554
 
 
17555
 
 
17556
else
 
17557
  as_fn_error $? "SELinux headers are missing" "$LINENO" 5
 
17558
fi
 
17559
 
 
17560
done
 
17561
 
 
17562
 
 
17563
 
 
17564
fi
 
17565
 
 
17566
if test x$HAVE_SEMANAGE != x -a x$HAVE_SELINUX != x; then
 
17567
 
 
17568
    for ac_header in semanage/semanage.h
 
17569
do :
 
17570
  ac_fn_c_check_header_mongrel "$LINENO" "semanage/semanage.h" "ac_cv_header_semanage_semanage_h" "$ac_includes_default"
 
17571
if test "x$ac_cv_header_semanage_semanage_h" = xyes; then :
 
17572
  cat >>confdefs.h <<_ACEOF
 
17573
#define HAVE_SEMANAGE_SEMANAGE_H 1
 
17574
_ACEOF
 
17575
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for semanage_handle_create in -lsemanage" >&5
 
17576
$as_echo_n "checking for semanage_handle_create in -lsemanage... " >&6; }
 
17577
if ${ac_cv_lib_semanage_semanage_handle_create+:} false; then :
 
17578
  $as_echo_n "(cached) " >&6
 
17579
else
 
17580
  ac_check_lib_save_LIBS=$LIBS
 
17581
LIBS="-lsemanage  $LIBS"
 
17582
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17583
/* end confdefs.h.  */
 
17584
 
 
17585
/* Override any GCC internal prototype to avoid an error.
 
17586
   Use char because int might match the return type of a GCC
 
17587
   builtin and then its argument prototype would still apply.  */
 
17588
#ifdef __cplusplus
 
17589
extern "C"
 
17590
#endif
 
17591
char semanage_handle_create ();
 
17592
int
 
17593
main ()
 
17594
{
 
17595
return semanage_handle_create ();
 
17596
  ;
 
17597
  return 0;
 
17598
}
 
17599
_ACEOF
 
17600
if ac_fn_c_try_link "$LINENO"; then :
 
17601
  ac_cv_lib_semanage_semanage_handle_create=yes
 
17602
else
 
17603
  ac_cv_lib_semanage_semanage_handle_create=no
 
17604
fi
 
17605
rm -f core conftest.err conftest.$ac_objext \
 
17606
    conftest$ac_exeext conftest.$ac_ext
 
17607
LIBS=$ac_check_lib_save_LIBS
 
17608
fi
 
17609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_semanage_semanage_handle_create" >&5
 
17610
$as_echo "$ac_cv_lib_semanage_semanage_handle_create" >&6; }
 
17611
if test "x$ac_cv_lib_semanage_semanage_handle_create" = xyes; then :
 
17612
  SEMANAGE_LIBS="-lsemanage"
 
17613
else
 
17614
  as_fn_error $? "libsemanage is missing" "$LINENO" 5
 
17615
 
 
17616
fi
 
17617
 
 
17618
 
 
17619
else
 
17620
  as_fn_error $? "libsemanage is missing" "$LINENO" 5
 
17621
fi
 
17622
 
 
17623
done
 
17624
 
 
17625
 
 
17626
 
 
17627
fi
 
17628
 
 
17629
if test x$BUILD_LIBNL != x; then
 
17630
 
 
17631
 
 
17632
pkg_failed=no
 
17633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl" >&5
 
17634
$as_echo_n "checking for libnl... " >&6; }
 
17635
 
 
17636
if test -n "$PKG_CONFIG"; then
 
17637
    if test -n "$libnl_CFLAGS"; then
 
17638
        pkg_cv_libnl_CFLAGS="$libnl_CFLAGS"
 
17639
    else
 
17640
        if test -n "$PKG_CONFIG" && \
 
17641
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.1\""; } >&5
 
17642
  ($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.1") 2>&5
 
17643
  ac_status=$?
 
17644
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17645
  test $ac_status = 0; }; then
 
17646
  pkg_cv_libnl_CFLAGS=`$PKG_CONFIG --cflags "libnl-1 >= 1.1" 2>/dev/null`
 
17647
else
 
17648
  pkg_failed=yes
 
17649
fi
 
17650
    fi
 
17651
else
 
17652
        pkg_failed=untried
 
17653
fi
 
17654
if test -n "$PKG_CONFIG"; then
 
17655
    if test -n "$libnl_LIBS"; then
 
17656
        pkg_cv_libnl_LIBS="$libnl_LIBS"
 
17657
    else
 
17658
        if test -n "$PKG_CONFIG" && \
 
17659
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.1\""; } >&5
 
17660
  ($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.1") 2>&5
 
17661
  ac_status=$?
 
17662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17663
  test $ac_status = 0; }; then
 
17664
  pkg_cv_libnl_LIBS=`$PKG_CONFIG --libs "libnl-1 >= 1.1" 2>/dev/null`
 
17665
else
 
17666
  pkg_failed=yes
 
17667
fi
 
17668
    fi
 
17669
else
 
17670
        pkg_failed=untried
 
17671
fi
 
17672
 
 
17673
 
 
17674
 
 
17675
if test $pkg_failed = yes; then
 
17676
 
 
17677
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17678
        _pkg_short_errors_supported=yes
 
17679
else
 
17680
        _pkg_short_errors_supported=no
 
17681
fi
 
17682
        if test $_pkg_short_errors_supported = yes; then
 
17683
                libnl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnl-1 >= 1.1"`
 
17684
        else
 
17685
                libnl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnl-1 >= 1.1"`
 
17686
        fi
 
17687
        # Put the nasty error message in config.log where it belongs
 
17688
        echo "$libnl_PKG_ERRORS" >&5
 
17689
 
 
17690
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17691
$as_echo "no" >&6; }
 
17692
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Netlink support unavailable or too old" >&5
 
17693
$as_echo "$as_me: WARNING: Netlink support unavailable or too old" >&2;}
 
17694
elif test $pkg_failed = untried; then
 
17695
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Netlink support unavailable or too old" >&5
 
17696
$as_echo "$as_me: WARNING: Netlink support unavailable or too old" >&2;}
 
17697
else
 
17698
        libnl_CFLAGS=$pkg_cv_libnl_CFLAGS
 
17699
        libnl_LIBS=$pkg_cv_libnl_LIBS
 
17700
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17701
$as_echo "yes" >&6; }
 
17702
 
 
17703
        HAVE_LIBNL=1
 
17704
 
 
17705
 
 
17706
cat >>confdefs.h <<_ACEOF
 
17707
#define HAVE_LIBNL 1
 
17708
_ACEOF
 
17709
 
 
17710
 
 
17711
            for ac_header in netlink.h
 
17712
do :
 
17713
  ac_fn_c_check_header_mongrel "$LINENO" "netlink.h" "ac_cv_header_netlink_h" "$ac_includes_default"
 
17714
if test "x$ac_cv_header_netlink_h" = xyes; then :
 
17715
  cat >>confdefs.h <<_ACEOF
 
17716
#define HAVE_NETLINK_H 1
 
17717
_ACEOF
 
17718
 
 
17719
fi
 
17720
 
 
17721
done
 
17722
 
 
17723
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
 
17724
$as_echo_n "checking for nl_connect in -lnl... " >&6; }
 
17725
if ${ac_cv_lib_nl_nl_connect+:} false; then :
 
17726
  $as_echo_n "(cached) " >&6
 
17727
else
 
17728
  ac_check_lib_save_LIBS=$LIBS
 
17729
LIBS="-lnl  $LIBS"
 
17730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17731
/* end confdefs.h.  */
 
17732
 
 
17733
/* Override any GCC internal prototype to avoid an error.
 
17734
   Use char because int might match the return type of a GCC
 
17735
   builtin and then its argument prototype would still apply.  */
 
17736
#ifdef __cplusplus
 
17737
extern "C"
 
17738
#endif
 
17739
char nl_connect ();
 
17740
int
 
17741
main ()
 
17742
{
 
17743
return nl_connect ();
 
17744
  ;
 
17745
  return 0;
 
17746
}
 
17747
_ACEOF
 
17748
if ac_fn_c_try_link "$LINENO"; then :
 
17749
  ac_cv_lib_nl_nl_connect=yes
 
17750
else
 
17751
  ac_cv_lib_nl_nl_connect=no
 
17752
fi
 
17753
rm -f core conftest.err conftest.$ac_objext \
 
17754
    conftest$ac_exeext conftest.$ac_ext
 
17755
LIBS=$ac_check_lib_save_LIBS
 
17756
fi
 
17757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
 
17758
$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
 
17759
if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
 
17760
   LIBNL_LIBS="-lnl"
 
17761
else
 
17762
  as_fn_error $? "libnl is required" "$LINENO" 5
 
17763
fi
 
17764
 
 
17765
 
 
17766
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_add_membership in -lnl" >&5
 
17767
$as_echo_n "checking for nl_socket_add_membership in -lnl... " >&6; }
 
17768
if ${ac_cv_lib_nl_nl_socket_add_membership+:} false; then :
 
17769
  $as_echo_n "(cached) " >&6
 
17770
else
 
17771
  ac_check_lib_save_LIBS=$LIBS
 
17772
LIBS="-lnl  $LIBS"
 
17773
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17774
/* end confdefs.h.  */
 
17775
 
 
17776
/* Override any GCC internal prototype to avoid an error.
 
17777
   Use char because int might match the return type of a GCC
 
17778
   builtin and then its argument prototype would still apply.  */
 
17779
#ifdef __cplusplus
 
17780
extern "C"
 
17781
#endif
 
17782
char nl_socket_add_membership ();
 
17783
int
 
17784
main ()
 
17785
{
 
17786
return nl_socket_add_membership ();
 
17787
  ;
 
17788
  return 0;
 
17789
}
 
17790
_ACEOF
 
17791
if ac_fn_c_try_link "$LINENO"; then :
 
17792
  ac_cv_lib_nl_nl_socket_add_membership=yes
 
17793
else
 
17794
  ac_cv_lib_nl_nl_socket_add_membership=no
 
17795
fi
 
17796
rm -f core conftest.err conftest.$ac_objext \
 
17797
    conftest$ac_exeext conftest.$ac_ext
 
17798
LIBS=$ac_check_lib_save_LIBS
 
17799
fi
 
17800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_add_membership" >&5
 
17801
$as_echo "$ac_cv_lib_nl_nl_socket_add_membership" >&6; }
 
17802
if test "x$ac_cv_lib_nl_nl_socket_add_membership" = xyes; then :
 
17803
 
 
17804
$as_echo "#define HAVE_NL_SOCKET_ADD_MEMBERSHIP 1" >>confdefs.h
 
17805
 
 
17806
 
 
17807
fi
 
17808
 
 
17809
 
 
17810
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_modify_cb in -lnl" >&5
 
17811
$as_echo_n "checking for nl_socket_modify_cb in -lnl... " >&6; }
 
17812
if ${ac_cv_lib_nl_nl_socket_modify_cb+:} false; then :
 
17813
  $as_echo_n "(cached) " >&6
 
17814
else
 
17815
  ac_check_lib_save_LIBS=$LIBS
 
17816
LIBS="-lnl  $LIBS"
 
17817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17818
/* end confdefs.h.  */
 
17819
 
 
17820
/* Override any GCC internal prototype to avoid an error.
 
17821
   Use char because int might match the return type of a GCC
 
17822
   builtin and then its argument prototype would still apply.  */
 
17823
#ifdef __cplusplus
 
17824
extern "C"
 
17825
#endif
 
17826
char nl_socket_modify_cb ();
 
17827
int
 
17828
main ()
 
17829
{
 
17830
return nl_socket_modify_cb ();
 
17831
  ;
 
17832
  return 0;
 
17833
}
 
17834
_ACEOF
 
17835
if ac_fn_c_try_link "$LINENO"; then :
 
17836
  ac_cv_lib_nl_nl_socket_modify_cb=yes
 
17837
else
 
17838
  ac_cv_lib_nl_nl_socket_modify_cb=no
 
17839
fi
 
17840
rm -f core conftest.err conftest.$ac_objext \
 
17841
    conftest$ac_exeext conftest.$ac_ext
 
17842
LIBS=$ac_check_lib_save_LIBS
 
17843
fi
 
17844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_modify_cb" >&5
 
17845
$as_echo "$ac_cv_lib_nl_nl_socket_modify_cb" >&6; }
 
17846
if test "x$ac_cv_lib_nl_nl_socket_modify_cb" = xyes; then :
 
17847
 
 
17848
$as_echo "#define HAVE_NL_SOCKET_MODIFY_CB 1" >>confdefs.h
 
17849
 
 
17850
 
 
17851
fi
 
17852
 
 
17853
 
 
17854
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_set_passcred in -lnl" >&5
 
17855
$as_echo_n "checking for nl_set_passcred in -lnl... " >&6; }
 
17856
if ${ac_cv_lib_nl_nl_set_passcred+:} false; then :
 
17857
  $as_echo_n "(cached) " >&6
 
17858
else
 
17859
  ac_check_lib_save_LIBS=$LIBS
 
17860
LIBS="-lnl  $LIBS"
 
17861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17862
/* end confdefs.h.  */
 
17863
 
 
17864
/* Override any GCC internal prototype to avoid an error.
 
17865
   Use char because int might match the return type of a GCC
 
17866
   builtin and then its argument prototype would still apply.  */
 
17867
#ifdef __cplusplus
 
17868
extern "C"
 
17869
#endif
 
17870
char nl_set_passcred ();
 
17871
int
 
17872
main ()
 
17873
{
 
17874
return nl_set_passcred ();
 
17875
  ;
 
17876
  return 0;
 
17877
}
 
17878
_ACEOF
 
17879
if ac_fn_c_try_link "$LINENO"; then :
 
17880
  ac_cv_lib_nl_nl_set_passcred=yes
 
17881
else
 
17882
  ac_cv_lib_nl_nl_set_passcred=no
 
17883
fi
 
17884
rm -f core conftest.err conftest.$ac_objext \
 
17885
    conftest$ac_exeext conftest.$ac_ext
 
17886
LIBS=$ac_check_lib_save_LIBS
 
17887
fi
 
17888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_set_passcred" >&5
 
17889
$as_echo "$ac_cv_lib_nl_nl_set_passcred" >&6; }
 
17890
if test "x$ac_cv_lib_nl_nl_set_passcred" = xyes; then :
 
17891
 
 
17892
$as_echo "#define HAVE_NL_SET_PASSCRED 1" >>confdefs.h
 
17893
 
 
17894
 
 
17895
fi
 
17896
 
 
17897
 
 
17898
fi
 
17899
 
 
17900
 
 
17901
 
 
17902
 
 
17903
fi
 
17904
 
 
17905
for ac_header in sys/inotify.h
 
17906
do :
 
17907
  ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
 
17908
if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
 
17909
  cat >>confdefs.h <<_ACEOF
 
17910
#define HAVE_SYS_INOTIFY_H 1
 
17911
_ACEOF
 
17912
 
 
17913
fi
 
17914
 
 
17915
done
 
17916
 
 
17917
 
 
17918
for ac_header in sasl/sasl.h
 
17919
do :
 
17920
  ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
 
17921
if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
 
17922
  cat >>confdefs.h <<_ACEOF
 
17923
#define HAVE_SASL_SASL_H 1
 
17924
_ACEOF
 
17925
 
 
17926
else
 
17927
  as_fn_error $? "Could not find SASL headers" "$LINENO" 5
 
17928
fi
 
17929
 
 
17930
done
 
17931
 
 
17932
 
 
17933
 
 
17934
pkg_failed=no
 
17935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
 
17936
$as_echo_n "checking for CHECK... " >&6; }
 
17937
 
 
17938
if test -n "$PKG_CONFIG"; then
 
17939
    if test -n "$CHECK_CFLAGS"; then
 
17940
        pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
 
17941
    else
 
17942
        if test -n "$PKG_CONFIG" && \
 
17943
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5
 
17944
  ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5
 
17945
  ac_status=$?
 
17946
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17947
  test $ac_status = 0; }; then
 
17948
  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null`
 
17949
else
 
17950
  pkg_failed=yes
 
17951
fi
 
17952
    fi
 
17953
else
 
17954
        pkg_failed=untried
 
17955
fi
 
17956
if test -n "$PKG_CONFIG"; then
 
17957
    if test -n "$CHECK_LIBS"; then
 
17958
        pkg_cv_CHECK_LIBS="$CHECK_LIBS"
 
17959
    else
 
17960
        if test -n "$PKG_CONFIG" && \
 
17961
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5
 
17962
  ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5
 
17963
  ac_status=$?
 
17964
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17965
  test $ac_status = 0; }; then
 
17966
  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null`
 
17967
else
 
17968
  pkg_failed=yes
 
17969
fi
 
17970
    fi
 
17971
else
 
17972
        pkg_failed=untried
 
17973
fi
 
17974
 
 
17975
 
 
17976
 
 
17977
if test $pkg_failed = yes; then
 
17978
 
 
17979
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17980
        _pkg_short_errors_supported=yes
 
17981
else
 
17982
        _pkg_short_errors_supported=no
 
17983
fi
 
17984
        if test $_pkg_short_errors_supported = yes; then
 
17985
                CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check >= 0.9.5"`
 
17986
        else
 
17987
                CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check >= 0.9.5"`
 
17988
        fi
 
17989
        # Put the nasty error message in config.log where it belongs
 
17990
        echo "$CHECK_PKG_ERRORS" >&5
 
17991
 
 
17992
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17993
$as_echo "no" >&6; }
 
17994
                have_check=
 
17995
elif test $pkg_failed = untried; then
 
17996
        have_check=
 
17997
else
 
17998
        CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
 
17999
        CHECK_LIBS=$pkg_cv_CHECK_LIBS
 
18000
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18001
$as_echo "yes" >&6; }
 
18002
        have_check=1
 
18003
fi
 
18004
if test x$have_check = x; then
 
18005
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite" >&5
 
18006
$as_echo "$as_me: WARNING: Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite" >&2;}
 
18007
else
 
18008
    for ac_header in check.h
 
18009
do :
 
18010
  ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default"
 
18011
if test "x$ac_cv_header_check_h" = xyes; then :
 
18012
  cat >>confdefs.h <<_ACEOF
 
18013
#define HAVE_CHECK_H 1
 
18014
_ACEOF
 
18015
 
 
18016
else
 
18017
  as_fn_error $? "Could not find CHECK headers" "$LINENO" 5
 
18018
fi
 
18019
 
 
18020
done
 
18021
 
 
18022
fi
 
18023
 
 
18024
# Extract the first word of "doxygen", so it can be a program name with args.
 
18025
set dummy doxygen; ac_word=$2
 
18026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18027
$as_echo_n "checking for $ac_word... " >&6; }
 
18028
if ${ac_cv_path_DOXYGEN+:} false; then :
 
18029
  $as_echo_n "(cached) " >&6
 
18030
else
 
18031
  case $DOXYGEN in
 
18032
  [\\/]* | ?:[\\/]*)
 
18033
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
 
18034
  ;;
 
18035
  *)
 
18036
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18037
for as_dir in $PATH
 
18038
do
 
18039
  IFS=$as_save_IFS
 
18040
  test -z "$as_dir" && as_dir=.
 
18041
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18042
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18043
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
 
18044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18045
    break 2
 
18046
  fi
 
18047
done
 
18048
  done
 
18049
IFS=$as_save_IFS
 
18050
 
 
18051
  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
 
18052
  ;;
 
18053
esac
 
18054
fi
 
18055
DOXYGEN=$ac_cv_path_DOXYGEN
 
18056
if test -n "$DOXYGEN"; then
 
18057
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
 
18058
$as_echo "$DOXYGEN" >&6; }
 
18059
else
 
18060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18061
$as_echo "no" >&6; }
 
18062
fi
 
18063
 
 
18064
 
 
18065
 if test x$DOXYGEN != xfalse ; then
 
18066
  HAVE_DOXYGEN_TRUE=
 
18067
  HAVE_DOXYGEN_FALSE='#'
 
18068
else
 
18069
  HAVE_DOXYGEN_TRUE='#'
 
18070
  HAVE_DOXYGEN_FALSE=
 
18071
fi
 
18072
 
 
18073
 
 
18074
 if test x$have_check != x; then
 
18075
  HAVE_CHECK_TRUE=
 
18076
  HAVE_CHECK_FALSE='#'
 
18077
else
 
18078
  HAVE_CHECK_TRUE='#'
 
18079
  HAVE_CHECK_FALSE=
 
18080
fi
 
18081
 
 
18082
 
 
18083
abs_build_dir=`pwd`
 
18084
 
 
18085
cat >>confdefs.h <<_ACEOF
 
18086
#define ABS_BUILD_DIR "$abs_build_dir"
 
18087
_ACEOF
 
18088
 
 
18089
abs_builddir=$abs_build_dir
 
18090
 
 
18091
 
 
18092
ac_config_files="$ac_config_files Makefile contrib/sssd.spec src/examples/rwtab src/doxy.config src/sysv/systemd/sssd.service po/Makefile.in src/man/Makefile"
2375
18093
 
2376
18094
cat >confcache <<\_ACEOF
2377
18095
# This file is a shell script that caches the results of configure
2400
18118
    case $ac_val in #(
2401
18119
    *${as_nl}*)
2402
18120
      case $ac_var in #(
2403
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
18121
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2404
18122
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2405
18123
      esac
2406
18124
      case $ac_var in #(
2407
18125
      _ | IFS | as_nl) ;; #(
2408
18126
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2409
 
      *) $as_unset $ac_var ;;
 
18127
      *) { eval $ac_var=; unset $ac_var;} ;;
2410
18128
      esac ;;
2411
18129
    esac
2412
18130
  done
2414
18132
  (set) 2>&1 |
2415
18133
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
2416
18134
    *${as_nl}ac_space=\ *)
2417
 
      # `set' does not quote correctly, so add quotes (double-quote
2418
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
18135
      # `set' does not quote correctly, so add quotes: double-quote
 
18136
      # substitution turns \\\\ into \\, and sed turns \\ into \.
2419
18137
      sed -n \
2420
18138
        "s/'/'\\\\''/g;
2421
18139
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2437
18155
     :end' >>confcache
2438
18156
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2439
18157
  if test -w "$cache_file"; then
2440
 
    test "x$cache_file" != "x/dev/null" &&
2441
 
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
18158
    if test "x$cache_file" != "x/dev/null"; then
 
18159
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2442
18160
$as_echo "$as_me: updating cache $cache_file" >&6;}
2443
 
    cat confcache >$cache_file
 
18161
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
18162
        cat confcache >"$cache_file"
 
18163
      else
 
18164
        case $cache_file in #(
 
18165
        */* | ?:*)
 
18166
          mv -f confcache "$cache_file"$$ &&
 
18167
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
18168
        *)
 
18169
          mv -f confcache "$cache_file" ;;
 
18170
        esac
 
18171
      fi
 
18172
    fi
2444
18173
  else
2445
 
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
18174
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2446
18175
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2447
18176
  fi
2448
18177
fi
2452
18181
# Let make expand exec_prefix.
2453
18182
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2454
18183
 
2455
 
# Transform confdefs.h into DEFS.
2456
 
# Protect against shell expansion while executing Makefile rules.
2457
 
# Protect against Makefile macro expansion.
2458
 
#
2459
 
# If the first sed substitution is executed (which looks for macros that
2460
 
# take arguments), then branch to the quote section.  Otherwise,
2461
 
# look for a macro that doesn't take arguments.
2462
 
ac_script='
2463
 
:mline
2464
 
/\\$/{
2465
 
 N
2466
 
 s,\\\n,,
2467
 
 b mline
2468
 
}
2469
 
t clear
2470
 
:clear
2471
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
2472
 
t quote
2473
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
2474
 
t quote
2475
 
b any
2476
 
:quote
2477
 
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2478
 
s/\[/\\&/g
2479
 
s/\]/\\&/g
2480
 
s/\$/$$/g
2481
 
H
2482
 
:any
2483
 
${
2484
 
        g
2485
 
        s/^\n//
2486
 
        s/\n/ /g
2487
 
        p
2488
 
}
2489
 
'
2490
 
DEFS=`sed -n "$ac_script" confdefs.h`
2491
 
 
 
18184
DEFS=-DHAVE_CONFIG_H
2492
18185
 
2493
18186
ac_libobjs=
2494
18187
ac_ltlibobjs=
 
18188
U=
2495
18189
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2496
18190
  # 1. Remove the extension, and $U if already installed.
2497
18191
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2498
18192
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2499
18193
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2500
18194
  #    will be set to the directory where LIBOBJS objects are built.
2501
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2502
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
18195
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
18196
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2503
18197
done
2504
18198
LIBOBJS=$ac_libobjs
2505
18199
 
2506
18200
LTLIBOBJS=$ac_ltlibobjs
2507
18201
 
2508
18202
 
2509
 
 
2510
 
 
2511
 
: ${CONFIG_STATUS=./config.status}
 
18203
 if test -n "$EXEEXT"; then
 
18204
  am__EXEEXT_TRUE=
 
18205
  am__EXEEXT_FALSE='#'
 
18206
else
 
18207
  am__EXEEXT_TRUE='#'
 
18208
  am__EXEEXT_FALSE=
 
18209
fi
 
18210
 
 
18211
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18212
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
18213
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18214
fi
 
18215
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18216
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
18217
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18218
fi
 
18219
if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
 
18220
  as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined.
 
18221
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18222
fi
 
18223
if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
 
18224
  as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
 
18225
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18226
fi
 
18227
if test -z "${WANT_AUX_INFO_TRUE}" && test -z "${WANT_AUX_INFO_FALSE}"; then
 
18228
  as_fn_error $? "conditional \"WANT_AUX_INFO\" was never defined.
 
18229
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18230
fi
 
18231
if test -z "${HAVE_FEDORA_TRUE}" && test -z "${HAVE_FEDORA_FALSE}"; then
 
18232
  as_fn_error $? "conditional \"HAVE_FEDORA\" was never defined.
 
18233
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18234
fi
 
18235
if test -z "${HAVE_REDHAT_TRUE}" && test -z "${HAVE_REDHAT_FALSE}"; then
 
18236
  as_fn_error $? "conditional \"HAVE_REDHAT\" was never defined.
 
18237
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18238
fi
 
18239
if test -z "${HAVE_SUSE_TRUE}" && test -z "${HAVE_SUSE_FALSE}"; then
 
18240
  as_fn_error $? "conditional \"HAVE_SUSE\" was never defined.
 
18241
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18242
fi
 
18243
if test -z "${HAVE_DEBIAN_TRUE}" && test -z "${HAVE_DEBIAN_FALSE}"; then
 
18244
  as_fn_error $? "conditional \"HAVE_DEBIAN\" was never defined.
 
18245
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18246
fi
 
18247
if test -z "${HAVE_GENTOO_TRUE}" && test -z "${HAVE_GENTOO_FALSE}"; then
 
18248
  as_fn_error $? "conditional \"HAVE_GENTOO\" was never defined.
 
18249
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18250
fi
 
18251
if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
 
18252
  as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined.
 
18253
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18254
fi
 
18255
if test -z "${BUILD_PYTHON_BINDINGS_TRUE}" && test -z "${BUILD_PYTHON_BINDINGS_FALSE}"; then
 
18256
  as_fn_error $? "conditional \"BUILD_PYTHON_BINDINGS\" was never defined.
 
18257
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18258
fi
 
18259
if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
 
18260
  as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
 
18261
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18262
fi
 
18263
if test -z "${BUILD_SEMANAGE_TRUE}" && test -z "${BUILD_SEMANAGE_FALSE}"; then
 
18264
  as_fn_error $? "conditional \"BUILD_SEMANAGE\" was never defined.
 
18265
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18266
fi
 
18267
if test -z "${BUILD_KRB5_LOCATOR_PLUGIN_TRUE}" && test -z "${BUILD_KRB5_LOCATOR_PLUGIN_FALSE}"; then
 
18268
  as_fn_error $? "conditional \"BUILD_KRB5_LOCATOR_PLUGIN\" was never defined.
 
18269
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18270
fi
 
18271
if test -z "${BUILD_ARES_DATA_TRUE}" && test -z "${BUILD_ARES_DATA_FALSE}"; then
 
18272
  as_fn_error $? "conditional \"BUILD_ARES_DATA\" was never defined.
 
18273
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18274
fi
 
18275
if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
 
18276
  as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
 
18277
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18278
fi
 
18279
if test -z "${HAVE_CRYPTO_TRUE}" && test -z "${HAVE_CRYPTO_FALSE}"; then
 
18280
  as_fn_error $? "conditional \"HAVE_CRYPTO\" was never defined.
 
18281
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18282
fi
 
18283
if test -z "${HAVE_PO4A_TRUE}" && test -z "${HAVE_PO4A_FALSE}"; then
 
18284
  as_fn_error $? "conditional \"HAVE_PO4A\" was never defined.
 
18285
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18286
fi
 
18287
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
 
18288
  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
 
18289
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18290
fi
 
18291
if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
 
18292
  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
 
18293
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18294
fi
 
18295
 
 
18296
: "${CONFIG_STATUS=./config.status}"
2512
18297
ac_write_fail=0
2513
18298
ac_clean_files_save=$ac_clean_files
2514
18299
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2515
 
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
18300
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2516
18301
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2517
 
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18302
as_write_fail=0
 
18303
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2518
18304
#! $SHELL
2519
18305
# Generated by $as_me.
2520
18306
# Run this file to recreate the current configuration.
2524
18310
debug=false
2525
18311
ac_cs_recheck=false
2526
18312
ac_cs_silent=false
 
18313
 
2527
18314
SHELL=\${CONFIG_SHELL-$SHELL}
2528
 
_ACEOF
2529
 
 
2530
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2531
 
## --------------------- ##
2532
 
## M4sh Initialization.  ##
2533
 
## --------------------- ##
 
18315
export SHELL
 
18316
_ASEOF
 
18317
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
18318
## -------------------- ##
 
18319
## M4sh Initialization. ##
 
18320
## -------------------- ##
2534
18321
 
2535
18322
# Be more Bourne compatible
2536
18323
DUALCASE=1; export DUALCASE # for MKS sh
2537
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18324
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2538
18325
  emulate sh
2539
18326
  NULLCMD=:
2540
18327
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2542
18329
  alias -g '${1+"$@"}'='"$@"'
2543
18330
  setopt NO_GLOB_SUBST
2544
18331
else
2545
 
  case `(set -o) 2>/dev/null` in
2546
 
  *posix*) set -o posix ;;
 
18332
  case `(set -o) 2>/dev/null` in #(
 
18333
  *posix*) :
 
18334
    set -o posix ;; #(
 
18335
  *) :
 
18336
     ;;
2547
18337
esac
2548
 
 
2549
18338
fi
2550
18339
 
2551
18340
 
2552
 
 
2553
 
 
2554
 
# PATH needs CR
2555
 
# Avoid depending upon Character Ranges.
2556
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2557
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2558
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2559
 
as_cr_digits='0123456789'
2560
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
2561
 
 
2562
18341
as_nl='
2563
18342
'
2564
18343
export as_nl
2566
18345
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2567
18346
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2568
18347
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2569
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
18348
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
18349
# but without wasting forks for bash or zsh.
 
18350
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
18351
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
18352
  as_echo='print -r --'
 
18353
  as_echo_n='print -rn --'
 
18354
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2570
18355
  as_echo='printf %s\n'
2571
18356
  as_echo_n='printf %s'
2572
18357
else
2577
18362
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2578
18363
    as_echo_n_body='eval
2579
18364
      arg=$1;
2580
 
      case $arg in
 
18365
      case $arg in #(
2581
18366
      *"$as_nl"*)
2582
18367
        expr "X$arg" : "X\\(.*\\)$as_nl";
2583
18368
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2600
18385
  }
2601
18386
fi
2602
18387
 
2603
 
# Support unset when possible.
2604
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2605
 
  as_unset=unset
2606
 
else
2607
 
  as_unset=false
2608
 
fi
2609
 
 
2610
18388
 
2611
18389
# IFS
2612
18390
# We need space, tab and new line, in precisely that order.  Quoting is
2616
18394
IFS=" ""        $as_nl"
2617
18395
 
2618
18396
# Find who we are.  Look in the path if we contain no directory separator.
2619
 
case $0 in
 
18397
as_myself=
 
18398
case $0 in #((
2620
18399
  *[\\/]* ) as_myself=$0 ;;
2621
18400
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622
18401
for as_dir in $PATH
2623
18402
do
2624
18403
  IFS=$as_save_IFS
2625
18404
  test -z "$as_dir" && as_dir=.
2626
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2627
 
done
 
18405
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
18406
  done
2628
18407
IFS=$as_save_IFS
2629
18408
 
2630
18409
     ;;
2636
18415
fi
2637
18416
if test ! -f "$as_myself"; then
2638
18417
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2639
 
  { (exit 1); exit 1; }
 
18418
  exit 1
2640
18419
fi
2641
18420
 
2642
 
# Work around bugs in pre-3.0 UWIN ksh.
2643
 
for as_var in ENV MAIL MAILPATH
2644
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
18421
# Unset variables that we do not need and which cause bugs (e.g. in
 
18422
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
18423
# suppresses any "Segmentation fault" message there.  '((' could
 
18424
# trigger a bug in pdksh 5.2.14.
 
18425
for as_var in BASH_ENV ENV MAIL MAILPATH
 
18426
do eval test x\${$as_var+set} = xset \
 
18427
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2645
18428
done
2646
18429
PS1='$ '
2647
18430
PS2='> '
2653
18436
LANGUAGE=C
2654
18437
export LANGUAGE
2655
18438
 
2656
 
# Required to use basename.
 
18439
# CDPATH.
 
18440
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18441
 
 
18442
 
 
18443
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
18444
# ----------------------------------------
 
18445
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
18446
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
18447
# script with STATUS, using 1 if that was 0.
 
18448
as_fn_error ()
 
18449
{
 
18450
  as_status=$1; test $as_status -eq 0 && as_status=1
 
18451
  if test "$4"; then
 
18452
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
18453
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
18454
  fi
 
18455
  $as_echo "$as_me: error: $2" >&2
 
18456
  as_fn_exit $as_status
 
18457
} # as_fn_error
 
18458
 
 
18459
 
 
18460
# as_fn_set_status STATUS
 
18461
# -----------------------
 
18462
# Set $? to STATUS, without forking.
 
18463
as_fn_set_status ()
 
18464
{
 
18465
  return $1
 
18466
} # as_fn_set_status
 
18467
 
 
18468
# as_fn_exit STATUS
 
18469
# -----------------
 
18470
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
18471
as_fn_exit ()
 
18472
{
 
18473
  set +e
 
18474
  as_fn_set_status $1
 
18475
  exit $1
 
18476
} # as_fn_exit
 
18477
 
 
18478
# as_fn_unset VAR
 
18479
# ---------------
 
18480
# Portably unset VAR.
 
18481
as_fn_unset ()
 
18482
{
 
18483
  { eval $1=; unset $1;}
 
18484
}
 
18485
as_unset=as_fn_unset
 
18486
# as_fn_append VAR VALUE
 
18487
# ----------------------
 
18488
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
18489
# advantage of any shell optimizations that allow amortized linear growth over
 
18490
# repeated appends, instead of the typical quadratic growth present in naive
 
18491
# implementations.
 
18492
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
18493
  eval 'as_fn_append ()
 
18494
  {
 
18495
    eval $1+=\$2
 
18496
  }'
 
18497
else
 
18498
  as_fn_append ()
 
18499
  {
 
18500
    eval $1=\$$1\$2
 
18501
  }
 
18502
fi # as_fn_append
 
18503
 
 
18504
# as_fn_arith ARG...
 
18505
# ------------------
 
18506
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
18507
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
18508
# must be portable across $(()) and expr.
 
18509
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
18510
  eval 'as_fn_arith ()
 
18511
  {
 
18512
    as_val=$(( $* ))
 
18513
  }'
 
18514
else
 
18515
  as_fn_arith ()
 
18516
  {
 
18517
    as_val=`expr "$@" || test $? -eq 1`
 
18518
  }
 
18519
fi # as_fn_arith
 
18520
 
 
18521
 
2657
18522
if expr a : '\(a\)' >/dev/null 2>&1 &&
2658
18523
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
2659
18524
  as_expr=expr
2667
18532
  as_basename=false
2668
18533
fi
2669
18534
 
 
18535
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
18536
  as_dirname=dirname
 
18537
else
 
18538
  as_dirname=false
 
18539
fi
2670
18540
 
2671
 
# Name of the executable.
2672
18541
as_me=`$as_basename -- "$0" ||
2673
18542
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2674
18543
         X"$0" : 'X\(//\)$' \| \
2688
18557
          }
2689
18558
          s/.*/./; q'`
2690
18559
 
2691
 
# CDPATH.
2692
 
$as_unset CDPATH
2693
 
 
2694
 
 
2695
 
 
2696
 
  as_lineno_1=$LINENO
2697
 
  as_lineno_2=$LINENO
2698
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
2699
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2700
 
 
2701
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2702
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
2703
 
  # line-number line after each line using $LINENO; the second 'sed'
2704
 
  # does the real work.  The second script uses 'N' to pair each
2705
 
  # line-number line with the line containing $LINENO, and appends
2706
 
  # trailing '-' during substitution so that $LINENO is not a special
2707
 
  # case at line end.
2708
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2709
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
2710
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
2711
 
  sed -n '
2712
 
    p
2713
 
    /[$]LINENO/=
2714
 
  ' <$as_myself |
2715
 
    sed '
2716
 
      s/[$]LINENO.*/&-/
2717
 
      t lineno
2718
 
      b
2719
 
      :lineno
2720
 
      N
2721
 
      :loop
2722
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2723
 
      t loop
2724
 
      s/-\n.*//
2725
 
    ' >$as_me.lineno &&
2726
 
  chmod +x "$as_me.lineno" ||
2727
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2728
 
   { (exit 1); exit 1; }; }
2729
 
 
2730
 
  # Don't try to exec as it changes $[0], causing all sort of problems
2731
 
  # (the dirname of $[0] is not the place where we might find the
2732
 
  # original and so on.  Autoconf is especially sensitive to this).
2733
 
  . "./$as_me.lineno"
2734
 
  # Exit status is that of the last command.
2735
 
  exit
2736
 
}
2737
 
 
2738
 
 
2739
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2740
 
  as_dirname=dirname
2741
 
else
2742
 
  as_dirname=false
2743
 
fi
 
18560
# Avoid depending upon Character Ranges.
 
18561
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
18562
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
18563
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
18564
as_cr_digits='0123456789'
 
18565
as_cr_alnum=$as_cr_Letters$as_cr_digits
2744
18566
 
2745
18567
ECHO_C= ECHO_N= ECHO_T=
2746
 
case `echo -n x` in
 
18568
case `echo -n x` in #(((((
2747
18569
-n*)
2748
 
  case `echo 'x\c'` in
 
18570
  case `echo 'xy\c'` in
2749
18571
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
2750
 
  *)   ECHO_C='\c';;
 
18572
  xy)  ECHO_C='\c';;
 
18573
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
18574
       ECHO_T=' ';;
2751
18575
  esac;;
2752
18576
*)
2753
18577
  ECHO_N='-n';;
2754
18578
esac
2755
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
2756
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
2757
 
  as_expr=expr
2758
 
else
2759
 
  as_expr=false
2760
 
fi
2761
18579
 
2762
18580
rm -f conf$$ conf$$.exe conf$$.file
2763
18581
if test -d conf$$.dir; then
2786
18604
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2787
18605
rmdir conf$$.dir 2>/dev/null
2788
18606
 
 
18607
 
 
18608
# as_fn_mkdir_p
 
18609
# -------------
 
18610
# Create "$as_dir" as a directory, including parents if necessary.
 
18611
as_fn_mkdir_p ()
 
18612
{
 
18613
 
 
18614
  case $as_dir in #(
 
18615
  -*) as_dir=./$as_dir;;
 
18616
  esac
 
18617
  test -d "$as_dir" || eval $as_mkdir_p || {
 
18618
    as_dirs=
 
18619
    while :; do
 
18620
      case $as_dir in #(
 
18621
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
18622
      *) as_qdir=$as_dir;;
 
18623
      esac
 
18624
      as_dirs="'$as_qdir' $as_dirs"
 
18625
      as_dir=`$as_dirname -- "$as_dir" ||
 
18626
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
18627
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
18628
         X"$as_dir" : 'X\(//\)$' \| \
 
18629
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
18630
$as_echo X"$as_dir" |
 
18631
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
18632
            s//\1/
 
18633
            q
 
18634
          }
 
18635
          /^X\(\/\/\)[^/].*/{
 
18636
            s//\1/
 
18637
            q
 
18638
          }
 
18639
          /^X\(\/\/\)$/{
 
18640
            s//\1/
 
18641
            q
 
18642
          }
 
18643
          /^X\(\/\).*/{
 
18644
            s//\1/
 
18645
            q
 
18646
          }
 
18647
          s/.*/./; q'`
 
18648
      test -d "$as_dir" && break
 
18649
    done
 
18650
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
18651
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
18652
 
 
18653
 
 
18654
} # as_fn_mkdir_p
2789
18655
if mkdir -p . 2>/dev/null; then
2790
 
  as_mkdir_p=:
 
18656
  as_mkdir_p='mkdir -p "$as_dir"'
2791
18657
else
2792
18658
  test -d ./-p && rmdir ./-p
2793
18659
  as_mkdir_p=false
2806
18672
      if test -d "$1"; then
2807
18673
        test -d "$1/.";
2808
18674
      else
2809
 
        case $1 in
 
18675
        case $1 in #(
2810
18676
        -*)set "./$1";;
2811
18677
        esac;
2812
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
18678
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
2813
18679
        ???[sx]*):;;*)false;;esac;fi
2814
18680
    '\'' sh
2815
18681
  '
2824
18690
 
2825
18691
 
2826
18692
exec 6>&1
 
18693
## ----------------------------------- ##
 
18694
## Main body of $CONFIG_STATUS script. ##
 
18695
## ----------------------------------- ##
 
18696
_ASEOF
 
18697
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2827
18698
 
2828
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
18699
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
18700
# Save the log message, to keep $0 and so on meaningful, and to
2829
18701
# report actual input values of CONFIG_FILES etc. instead of their
2830
18702
# values after options handling.
2831
18703
ac_log="
2832
 
This file was extended by sssd $as_me 1.0.2, which was
2833
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
18704
This file was extended by sssd $as_me 1.5.8, which was
 
18705
generated by GNU Autoconf 2.68.  Invocation command line was
2834
18706
 
2835
18707
  CONFIG_FILES    = $CONFIG_FILES
2836
18708
  CONFIG_HEADERS  = $CONFIG_HEADERS
2847
18719
"*) set x $ac_config_files; shift; ac_config_files=$*;;
2848
18720
esac
2849
18721
 
 
18722
case $ac_config_headers in *"
 
18723
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
18724
esac
2850
18725
 
2851
18726
 
2852
18727
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2853
18728
# Files that config.status was made for.
2854
18729
config_files="$ac_config_files"
 
18730
config_headers="$ac_config_headers"
 
18731
config_commands="$ac_config_commands"
2855
18732
 
2856
18733
_ACEOF
2857
18734
 
2858
18735
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2859
18736
ac_cs_usage="\
2860
 
\`$as_me' instantiates files from templates according to the
2861
 
current configuration.
 
18737
\`$as_me' instantiates files and other configuration actions
 
18738
from templates according to the current configuration.  Unless the files
 
18739
and actions are specified as TAGs, all are instantiated by default.
2862
18740
 
2863
 
Usage: $0 [OPTION]... [FILE]...
 
18741
Usage: $0 [OPTION]... [TAG]...
2864
18742
 
2865
18743
  -h, --help       print this help, then exit
2866
18744
  -V, --version    print version number and configuration settings, then exit
 
18745
      --config     print configuration, then exit
2867
18746
  -q, --quiet, --silent
2868
18747
                   do not print progress messages
2869
18748
  -d, --debug      don't remove temporary files
2870
18749
      --recheck    update $as_me by reconfiguring in the same conditions
2871
18750
      --file=FILE[:TEMPLATE]
2872
18751
                   instantiate the configuration file FILE
 
18752
      --header=FILE[:TEMPLATE]
 
18753
                   instantiate the configuration header FILE
2873
18754
 
2874
18755
Configuration files:
2875
18756
$config_files
2876
18757
 
2877
 
Report bugs to <bug-autoconf@gnu.org>."
 
18758
Configuration headers:
 
18759
$config_headers
 
18760
 
 
18761
Configuration commands:
 
18762
$config_commands
 
18763
 
 
18764
Report bugs to <sssd-devel@lists.fedorahosted.org>."
2878
18765
 
2879
18766
_ACEOF
2880
18767
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18768
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2881
18769
ac_cs_version="\\
2882
 
sssd config.status 1.0.2
2883
 
configured by $0, generated by GNU Autoconf 2.63,
2884
 
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
18770
sssd config.status 1.5.8
 
18771
configured by $0, generated by GNU Autoconf 2.68,
 
18772
  with options \\"\$ac_cs_config\\"
2885
18773
 
2886
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
18774
Copyright (C) 2010 Free Software Foundation, Inc.
2887
18775
This config.status script is free software; the Free Software Foundation
2888
18776
gives unlimited permission to copy, distribute and modify it."
2889
18777
 
2901
18789
while test $# != 0
2902
18790
do
2903
18791
  case $1 in
2904
 
  --*=*)
 
18792
  --*=?*)
2905
18793
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
2906
18794
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2907
18795
    ac_shift=:
2908
18796
    ;;
 
18797
  --*=)
 
18798
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
18799
    ac_optarg=
 
18800
    ac_shift=:
 
18801
    ;;
2909
18802
  *)
2910
18803
    ac_option=$1
2911
18804
    ac_optarg=$2
2919
18812
    ac_cs_recheck=: ;;
2920
18813
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2921
18814
    $as_echo "$ac_cs_version"; exit ;;
 
18815
  --config | --confi | --conf | --con | --co | --c )
 
18816
    $as_echo "$ac_cs_config"; exit ;;
2922
18817
  --debug | --debu | --deb | --de | --d | -d )
2923
18818
    debug=: ;;
2924
18819
  --file | --fil | --fi | --f )
2925
18820
    $ac_shift
2926
18821
    case $ac_optarg in
2927
18822
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2928
 
    esac
2929
 
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2930
 
    ac_need_defaults=false;;
2931
 
  --he | --h |  --help | --hel | -h )
 
18823
    '') as_fn_error $? "missing file argument" ;;
 
18824
    esac
 
18825
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
18826
    ac_need_defaults=false;;
 
18827
  --header | --heade | --head | --hea )
 
18828
    $ac_shift
 
18829
    case $ac_optarg in
 
18830
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
18831
    esac
 
18832
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
18833
    ac_need_defaults=false;;
 
18834
  --he | --h)
 
18835
    # Conflict between --help and --header
 
18836
    as_fn_error $? "ambiguous option: \`$1'
 
18837
Try \`$0 --help' for more information.";;
 
18838
  --help | --hel | -h )
2932
18839
    $as_echo "$ac_cs_usage"; exit ;;
2933
18840
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2934
18841
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
2935
18842
    ac_cs_silent=: ;;
2936
18843
 
2937
18844
  # This is an error.
2938
 
  -*) { $as_echo "$as_me: error: unrecognized option: $1
2939
 
Try \`$0 --help' for more information." >&2
2940
 
   { (exit 1); exit 1; }; } ;;
 
18845
  -*) as_fn_error $? "unrecognized option: \`$1'
 
18846
Try \`$0 --help' for more information." ;;
2941
18847
 
2942
 
  *) ac_config_targets="$ac_config_targets $1"
 
18848
  *) as_fn_append ac_config_targets " $1"
2943
18849
     ac_need_defaults=false ;;
2944
18850
 
2945
18851
  esac
2977
18883
 
2978
18884
_ACEOF
2979
18885
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
18886
#
 
18887
# INIT-COMMANDS
 
18888
#
 
18889
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
18890
 
 
18891
 
 
18892
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
18893
# if CDPATH is set.
 
18894
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18895
 
 
18896
sed_quote_subst='$sed_quote_subst'
 
18897
double_quote_subst='$double_quote_subst'
 
18898
delay_variable_subst='$delay_variable_subst'
 
18899
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
18900
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
18901
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
18902
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
18903
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
18904
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
18905
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
18906
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
18907
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
18908
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
18909
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
18910
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
18911
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
18912
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
18913
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
18914
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
18915
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
18916
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
18917
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
18918
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
18919
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
18920
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
18921
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
18922
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
18923
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
18924
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
18925
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
18926
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
18927
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
18928
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
18929
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
18930
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
18931
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
18932
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
18933
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
18934
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
18935
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
18936
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
18937
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
18938
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
18939
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
18940
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
18941
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
18942
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
18943
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
18944
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
18945
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
18946
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
18947
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
18948
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
18949
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
18950
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
18951
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
18952
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
18953
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
18954
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"`'
 
18955
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
18956
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
18957
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
18958
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
18959
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
18960
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
18961
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
18962
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
18963
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
18964
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
18965
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
18966
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
18967
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
18968
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
18969
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
18970
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
18971
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
18972
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
18973
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
18974
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
18975
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
18976
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
18977
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
18978
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
18979
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
18980
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
18981
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
18982
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
18983
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
18984
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
18985
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
18986
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
18987
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
18988
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
18989
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
 
18990
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
18991
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
18992
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
18993
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
18994
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
18995
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
18996
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
18997
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
18998
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
18999
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
19000
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
19001
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
19002
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
19003
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
19004
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
19005
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
19006
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
19007
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
19008
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
19009
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
19010
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
19011
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
19012
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
19013
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
19014
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
19015
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
19016
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
19017
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
19018
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
19019
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
19020
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
19021
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
19022
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
19023
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
19024
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
19025
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
19026
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
19027
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
19028
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
19029
 
 
19030
LTCC='$LTCC'
 
19031
LTCFLAGS='$LTCFLAGS'
 
19032
compiler='$compiler_DEFAULT'
 
19033
 
 
19034
# A function that is used when there is no print builtin or printf.
 
19035
func_fallback_echo ()
 
19036
{
 
19037
  eval 'cat <<_LTECHO_EOF
 
19038
\$1
 
19039
_LTECHO_EOF'
 
19040
}
 
19041
 
 
19042
# Quote evaled strings.
 
19043
for var in SHELL \
 
19044
ECHO \
 
19045
SED \
 
19046
GREP \
 
19047
EGREP \
 
19048
FGREP \
 
19049
LD \
 
19050
NM \
 
19051
LN_S \
 
19052
lt_SP2NL \
 
19053
lt_NL2SP \
 
19054
reload_flag \
 
19055
OBJDUMP \
 
19056
deplibs_check_method \
 
19057
file_magic_cmd \
 
19058
file_magic_glob \
 
19059
want_nocaseglob \
 
19060
DLLTOOL \
 
19061
sharedlib_from_linklib_cmd \
 
19062
AR \
 
19063
AR_FLAGS \
 
19064
archiver_list_spec \
 
19065
STRIP \
 
19066
RANLIB \
 
19067
CC \
 
19068
CFLAGS \
 
19069
compiler \
 
19070
lt_cv_sys_global_symbol_pipe \
 
19071
lt_cv_sys_global_symbol_to_cdecl \
 
19072
lt_cv_sys_global_symbol_to_c_name_address \
 
19073
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
19074
nm_file_list_spec \
 
19075
lt_prog_compiler_no_builtin_flag \
 
19076
lt_prog_compiler_pic \
 
19077
lt_prog_compiler_wl \
 
19078
lt_prog_compiler_static \
 
19079
lt_cv_prog_compiler_c_o \
 
19080
need_locks \
 
19081
MANIFEST_TOOL \
 
19082
DSYMUTIL \
 
19083
NMEDIT \
 
19084
LIPO \
 
19085
OTOOL \
 
19086
OTOOL64 \
 
19087
shrext_cmds \
 
19088
export_dynamic_flag_spec \
 
19089
whole_archive_flag_spec \
 
19090
compiler_needs_object \
 
19091
with_gnu_ld \
 
19092
allow_undefined_flag \
 
19093
no_undefined_flag \
 
19094
hardcode_libdir_flag_spec \
 
19095
hardcode_libdir_flag_spec_ld \
 
19096
hardcode_libdir_separator \
 
19097
exclude_expsyms \
 
19098
include_expsyms \
 
19099
file_list_spec \
 
19100
variables_saved_for_relink \
 
19101
libname_spec \
 
19102
library_names_spec \
 
19103
soname_spec \
 
19104
install_override_mode \
 
19105
finish_eval \
 
19106
old_striplib \
 
19107
striplib; do
 
19108
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
19109
    *[\\\\\\\`\\"\\\$]*)
 
19110
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
19111
      ;;
 
19112
    *)
 
19113
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19114
      ;;
 
19115
    esac
 
19116
done
 
19117
 
 
19118
# Double-quote double-evaled strings.
 
19119
for var in reload_cmds \
 
19120
old_postinstall_cmds \
 
19121
old_postuninstall_cmds \
 
19122
old_archive_cmds \
 
19123
extract_expsyms_cmds \
 
19124
old_archive_from_new_cmds \
 
19125
old_archive_from_expsyms_cmds \
 
19126
archive_cmds \
 
19127
archive_expsym_cmds \
 
19128
module_cmds \
 
19129
module_expsym_cmds \
 
19130
export_symbols_cmds \
 
19131
prelink_cmds \
 
19132
postlink_cmds \
 
19133
postinstall_cmds \
 
19134
postuninstall_cmds \
 
19135
finish_cmds \
 
19136
sys_lib_search_path_spec \
 
19137
sys_lib_dlsearch_path_spec; do
 
19138
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
19139
    *[\\\\\\\`\\"\\\$]*)
 
19140
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
19141
      ;;
 
19142
    *)
 
19143
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19144
      ;;
 
19145
    esac
 
19146
done
 
19147
 
 
19148
ac_aux_dir='$ac_aux_dir'
 
19149
xsi_shell='$xsi_shell'
 
19150
lt_shell_append='$lt_shell_append'
 
19151
 
 
19152
# See if we are running on zsh, and set the options which allow our
 
19153
# commands through without removal of \ escapes INIT.
 
19154
if test -n "\${ZSH_VERSION+set}" ; then
 
19155
   setopt NO_GLOB_SUBST
 
19156
fi
 
19157
 
 
19158
 
 
19159
    PACKAGE='$PACKAGE'
 
19160
    VERSION='$VERSION'
 
19161
    TIMESTAMP='$TIMESTAMP'
 
19162
    RM='$RM'
 
19163
    ofile='$ofile'
 
19164
 
 
19165
 
 
19166
 
 
19167
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
19168
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
19169
    # from automake.
 
19170
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
19171
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
19172
    LINGUAS="${LINGUAS-%UNSET%}"
 
19173
 
 
19174
 
2980
19175
_ACEOF
2981
19176
 
2982
19177
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2985
19180
for ac_config_target in $ac_config_targets
2986
19181
do
2987
19182
  case $ac_config_target in
 
19183
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19184
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
19185
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
19186
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
2988
19187
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2989
19188
    "contrib/sssd.spec") CONFIG_FILES="$CONFIG_FILES contrib/sssd.spec" ;;
 
19189
    "src/examples/rwtab") CONFIG_FILES="$CONFIG_FILES src/examples/rwtab" ;;
 
19190
    "src/doxy.config") CONFIG_FILES="$CONFIG_FILES src/doxy.config" ;;
 
19191
    "src/sysv/systemd/sssd.service") CONFIG_FILES="$CONFIG_FILES src/sysv/systemd/sssd.service" ;;
 
19192
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
19193
    "src/man/Makefile") CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
2990
19194
 
2991
 
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2992
 
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2993
 
   { (exit 1); exit 1; }; };;
 
19195
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2994
19196
  esac
2995
19197
done
2996
19198
 
3001
19203
# bizarre bug on SunOS 4.1.3.
3002
19204
if $ac_need_defaults; then
3003
19205
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19206
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19207
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3004
19208
fi
3005
19209
 
3006
19210
# Have a temporary directory for convenience.  Make it in the build tree
3011
19215
# after its creation but before its name has been assigned to `$tmp'.
3012
19216
$debug ||
3013
19217
{
3014
 
  tmp=
 
19218
  tmp= ac_tmp=
3015
19219
  trap 'exit_status=$?
3016
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
19220
  : "${ac_tmp:=$tmp}"
 
19221
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3017
19222
' 0
3018
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
19223
  trap 'as_fn_exit 1' 1 2 13 15
3019
19224
}
3020
19225
# Create a (secure) tmp directory for tmp files.
3021
19226
 
3022
19227
{
3023
19228
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3024
 
  test -n "$tmp" && test -d "$tmp"
 
19229
  test -d "$tmp"
3025
19230
}  ||
3026
19231
{
3027
19232
  tmp=./conf$$-$RANDOM
3028
19233
  (umask 077 && mkdir "$tmp")
3029
 
} ||
3030
 
{
3031
 
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
3032
 
   { (exit 1); exit 1; }
3033
 
}
 
19234
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
19235
ac_tmp=$tmp
3034
19236
 
3035
19237
# Set up the scripts for CONFIG_FILES section.
3036
19238
# No need to generate them if there are no CONFIG_FILES.
3038
19240
if test -n "$CONFIG_FILES"; then
3039
19241
 
3040
19242
 
3041
 
ac_cr='
 
 
b"'"
 
19243
ac_cr=`echo X | tr X '\015'`
 
19244
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
19245
# But we know of no other shell where ac_cr would be empty at this
 
19246
# point, so we can use a bashism as a fallback.
 
19247
if test "x$ac_cr" = x; then
 
19248
  eval ac_cr=\$\'\\r\'
 
19249
fi
3042
19250
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3043
19251
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3044
19252
  ac_cs_awk_cr='\\r'
3046
19254
  ac_cs_awk_cr=$ac_cr
3047
19255
fi
3048
19256
 
3049
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
19257
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3050
19258
_ACEOF
3051
19259
 
3052
19260
 
3055
19263
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3056
19264
  echo "_ACEOF"
3057
19265
} >conf$$subs.sh ||
3058
 
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3059
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3060
 
   { (exit 1); exit 1; }; }
3061
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
19266
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
19267
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3062
19268
ac_delim='%!_!# '
3063
19269
for ac_last_try in false false false false false :; do
3064
19270
  . ./conf$$subs.sh ||
3065
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3066
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3067
 
   { (exit 1); exit 1; }; }
 
19271
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3068
19272
 
3069
19273
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3070
19274
  if test $ac_delim_n = $ac_delim_num; then
3071
19275
    break
3072
19276
  elif $ac_last_try; then
3073
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3074
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3075
 
   { (exit 1); exit 1; }; }
 
19277
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3076
19278
  else
3077
19279
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3078
19280
  fi
3080
19282
rm -f conf$$subs.sh
3081
19283
 
3082
19284
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3083
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
19285
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3084
19286
_ACEOF
3085
19287
sed -n '
3086
19288
h
3094
19296
t delim
3095
19297
:nl
3096
19298
h
3097
 
s/\(.\{148\}\).*/\1/
 
19299
s/\(.\{148\}\)..*/\1/
3098
19300
t more1
3099
19301
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3100
19302
p
3108
19310
t nl
3109
19311
:delim
3110
19312
h
3111
 
s/\(.\{148\}\).*/\1/
 
19313
s/\(.\{148\}\)..*/\1/
3112
19314
t more2
3113
19315
s/["\\]/\\&/g; s/^/"/; s/$/"/
3114
19316
p
3128
19330
rm -f conf$$subs.awk
3129
19331
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3130
19332
_ACAWK
3131
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
19333
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3132
19334
  for (key in S) S_is_set[key] = 1
3133
19335
  FS = ""
3134
19336
 
3160
19362
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3161
19363
else
3162
19364
  cat
3163
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3164
 
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
3165
 
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
3166
 
   { (exit 1); exit 1; }; }
 
19365
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
19366
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3167
19367
_ACEOF
3168
19368
 
3169
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3170
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19369
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
19370
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3171
19371
# trailing colons and then remove the whole line if VPATH becomes empty
3172
19372
# (actually we leave an empty line to preserve line numbers).
3173
19373
if test "x$srcdir" = x.; then
3174
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3175
 
s/:*\$(srcdir):*/:/
3176
 
s/:*\${srcdir}:*/:/
3177
 
s/:*@srcdir@:*/:/
3178
 
s/^\([^=]*=[     ]*\):*/\1/
 
19374
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
19375
h
 
19376
s///
 
19377
s/^/:/
 
19378
s/[      ]*$/:/
 
19379
s/:\$(srcdir):/:/g
 
19380
s/:\${srcdir}:/:/g
 
19381
s/:@srcdir@:/:/g
 
19382
s/^:*//
3179
19383
s/:*$//
 
19384
x
 
19385
s/\(=[   ]*\).*/\1/
 
19386
G
 
19387
s/\n//
3180
19388
s/^[^=]*=[       ]*$//
3181
19389
}'
3182
19390
fi
3184
19392
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3185
19393
fi # test -n "$CONFIG_FILES"
3186
19394
 
3187
 
 
3188
 
eval set X "  :F $CONFIG_FILES      "
 
19395
# Set up the scripts for CONFIG_HEADERS section.
 
19396
# No need to generate them if there are no CONFIG_HEADERS.
 
19397
# This happens for instance with `./config.status Makefile'.
 
19398
if test -n "$CONFIG_HEADERS"; then
 
19399
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
19400
BEGIN {
 
19401
_ACEOF
 
19402
 
 
19403
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
19404
# here-document in config.status, that substitutes the proper values into
 
19405
# config.h.in to produce config.h.
 
19406
 
 
19407
# Create a delimiter string that does not exist in confdefs.h, to ease
 
19408
# handling of long lines.
 
19409
ac_delim='%!_!# '
 
19410
for ac_last_try in false false :; do
 
19411
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
19412
  if test -z "$ac_tt"; then
 
19413
    break
 
19414
  elif $ac_last_try; then
 
19415
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
19416
  else
 
19417
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19418
  fi
 
19419
done
 
19420
 
 
19421
# For the awk script, D is an array of macro values keyed by name,
 
19422
# likewise P contains macro parameters if any.  Preserve backslash
 
19423
# newline sequences.
 
19424
 
 
19425
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
19426
sed -n '
 
19427
s/.\{148\}/&'"$ac_delim"'/g
 
19428
t rset
 
19429
:rset
 
19430
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
19431
t def
 
19432
d
 
19433
:def
 
19434
s/\\$//
 
19435
t bsnl
 
19436
s/["\\]/\\&/g
 
19437
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19438
D["\1"]=" \3"/p
 
19439
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
19440
d
 
19441
:bsnl
 
19442
s/["\\]/\\&/g
 
19443
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19444
D["\1"]=" \3\\\\\\n"\\/p
 
19445
t cont
 
19446
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
19447
t cont
 
19448
d
 
19449
:cont
 
19450
n
 
19451
s/.\{148\}/&'"$ac_delim"'/g
 
19452
t clear
 
19453
:clear
 
19454
s/\\$//
 
19455
t bsnlc
 
19456
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
19457
d
 
19458
:bsnlc
 
19459
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
19460
b cont
 
19461
' <confdefs.h | sed '
 
19462
s/'"$ac_delim"'/"\\\
 
19463
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
19464
 
 
19465
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19466
  for (key in D) D_is_set[key] = 1
 
19467
  FS = ""
 
19468
}
 
19469
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
19470
  line = \$ 0
 
19471
  split(line, arg, " ")
 
19472
  if (arg[1] == "#") {
 
19473
    defundef = arg[2]
 
19474
    mac1 = arg[3]
 
19475
  } else {
 
19476
    defundef = substr(arg[1], 2)
 
19477
    mac1 = arg[2]
 
19478
  }
 
19479
  split(mac1, mac2, "(") #)
 
19480
  macro = mac2[1]
 
19481
  prefix = substr(line, 1, index(line, defundef) - 1)
 
19482
  if (D_is_set[macro]) {
 
19483
    # Preserve the white space surrounding the "#".
 
19484
    print prefix "define", macro P[macro] D[macro]
 
19485
    next
 
19486
  } else {
 
19487
    # Replace #undef with comments.  This is necessary, for example,
 
19488
    # in the case of _POSIX_SOURCE, which is predefined and required
 
19489
    # on some systems where configure will not decide to define it.
 
19490
    if (defundef == "undef") {
 
19491
      print "/*", prefix defundef, macro, "*/"
 
19492
      next
 
19493
    }
 
19494
  }
 
19495
}
 
19496
{ print }
 
19497
_ACAWK
 
19498
_ACEOF
 
19499
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19500
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
19501
fi # test -n "$CONFIG_HEADERS"
 
19502
 
 
19503
 
 
19504
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
3189
19505
shift
3190
19506
for ac_tag
3191
19507
do
3194
19510
  esac
3195
19511
  case $ac_mode$ac_tag in
3196
19512
  :[FHL]*:*);;
3197
 
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
3198
 
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
3199
 
   { (exit 1); exit 1; }; };;
 
19513
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3200
19514
  :[FH]-) ac_tag=-:-;;
3201
19515
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3202
19516
  esac
3215
19529
    for ac_f
3216
19530
    do
3217
19531
      case $ac_f in
3218
 
      -) ac_f="$tmp/stdin";;
 
19532
      -) ac_f="$ac_tmp/stdin";;
3219
19533
      *) # Look for the file first in the build tree, then in the source tree
3220
19534
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
3221
19535
         # because $ac_f cannot contain `:'.
3224
19538
           [\\/$]*) false;;
3225
19539
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3226
19540
           esac ||
3227
 
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3228
 
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3229
 
   { (exit 1); exit 1; }; };;
 
19541
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3230
19542
      esac
3231
19543
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3232
 
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
19544
      as_fn_append ac_file_inputs " '$ac_f'"
3233
19545
    done
3234
19546
 
3235
19547
    # Let's still pretend it is `configure' which instantiates (i.e., don't
3240
19552
        `' by configure.'
3241
19553
    if test x"$ac_file" != x-; then
3242
19554
      configure_input="$ac_file.  $configure_input"
3243
 
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
19555
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3244
19556
$as_echo "$as_me: creating $ac_file" >&6;}
3245
19557
    fi
3246
19558
    # Neutralize special characters interpreted by sed in replacement strings.
3252
19564
    esac
3253
19565
 
3254
19566
    case $ac_tag in
3255
 
    *:-:* | *:-) cat >"$tmp/stdin" \
3256
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
3257
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
3258
 
   { (exit 1); exit 1; }; } ;;
 
19567
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
19568
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3259
19569
    esac
3260
19570
    ;;
3261
19571
  esac
3283
19593
            q
3284
19594
          }
3285
19595
          s/.*/./; q'`
3286
 
  { as_dir="$ac_dir"
3287
 
  case $as_dir in #(
3288
 
  -*) as_dir=./$as_dir;;
3289
 
  esac
3290
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3291
 
    as_dirs=
3292
 
    while :; do
3293
 
      case $as_dir in #(
3294
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3295
 
      *) as_qdir=$as_dir;;
3296
 
      esac
3297
 
      as_dirs="'$as_qdir' $as_dirs"
3298
 
      as_dir=`$as_dirname -- "$as_dir" ||
3299
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3300
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
3301
 
         X"$as_dir" : 'X\(//\)$' \| \
3302
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3303
 
$as_echo X"$as_dir" |
3304
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3305
 
            s//\1/
3306
 
            q
3307
 
          }
3308
 
          /^X\(\/\/\)[^/].*/{
3309
 
            s//\1/
3310
 
            q
3311
 
          }
3312
 
          /^X\(\/\/\)$/{
3313
 
            s//\1/
3314
 
            q
3315
 
          }
3316
 
          /^X\(\/\).*/{
3317
 
            s//\1/
3318
 
            q
3319
 
          }
3320
 
          s/.*/./; q'`
3321
 
      test -d "$as_dir" && break
3322
 
    done
3323
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
3324
 
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
3325
 
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
3326
 
   { (exit 1); exit 1; }; }; }
 
19596
  as_dir="$ac_dir"; as_fn_mkdir_p
3327
19597
  ac_builddir=.
3328
19598
 
3329
19599
case "$ac_dir" in
3380
19650
# If the template does not know about datarootdir, expand it.
3381
19651
# FIXME: This hack should be removed a few years after 2.60.
3382
19652
ac_datarootdir_hack=; ac_datarootdir_seen=
3383
 
 
3384
19653
ac_sed_dataroot='
3385
19654
/datarootdir/ {
3386
19655
  p
3390
19659
/@docdir@/p
3391
19660
/@infodir@/p
3392
19661
/@localedir@/p
3393
 
/@mandir@/p
3394
 
'
 
19662
/@mandir@/p'
3395
19663
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3396
19664
*datarootdir*) ac_datarootdir_seen=yes;;
3397
19665
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3398
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
19666
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3399
19667
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3400
19668
_ACEOF
3401
19669
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3405
19673
  s&@infodir@&$infodir&g
3406
19674
  s&@localedir@&$localedir&g
3407
19675
  s&@mandir@&$mandir&g
3408
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
19676
  s&\\\${datarootdir}&$datarootdir&g' ;;
3409
19677
esac
3410
19678
_ACEOF
3411
19679
 
3433
19701
s&@MKDIR_P@&$ac_MKDIR_P&;t t
3434
19702
$ac_datarootdir_hack
3435
19703
"
3436
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
3437
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
3438
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
3439
 
   { (exit 1); exit 1; }; }
 
19704
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
19705
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3440
19706
 
3441
19707
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3442
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3443
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3444
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3445
 
which seems to be undefined.  Please make sure it is defined." >&5
 
19708
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
19709
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
19710
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
19711
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
19712
which seems to be undefined.  Please make sure it is defined" >&5
3446
19713
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3447
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
19714
which seems to be undefined.  Please make sure it is defined" >&2;}
3448
19715
 
3449
 
  rm -f "$tmp/stdin"
 
19716
  rm -f "$ac_tmp/stdin"
3450
19717
  case $ac_file in
3451
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
3452
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
19718
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
19719
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3453
19720
  esac \
3454
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
3455
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
3456
 
   { (exit 1); exit 1; }; }
3457
 
 ;;
3458
 
 
3459
 
 
3460
 
 
3461
 
  esac
3462
 
 
 
19721
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19722
 ;;
 
19723
  :H)
 
19724
  #
 
19725
  # CONFIG_HEADER
 
19726
  #
 
19727
  if test x"$ac_file" != x-; then
 
19728
    {
 
19729
      $as_echo "/* $configure_input  */" \
 
19730
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
19731
    } >"$ac_tmp/config.h" \
 
19732
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19733
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
19734
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
19735
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
19736
    else
 
19737
      rm -f "$ac_file"
 
19738
      mv "$ac_tmp/config.h" "$ac_file" \
 
19739
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19740
    fi
 
19741
  else
 
19742
    $as_echo "/* $configure_input  */" \
 
19743
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
19744
      || as_fn_error $? "could not create -" "$LINENO" 5
 
19745
  fi
 
19746
# Compute "$ac_file"'s index in $config_headers.
 
19747
_am_arg="$ac_file"
 
19748
_am_stamp_count=1
 
19749
for _am_header in $config_headers :; do
 
19750
  case $_am_header in
 
19751
    $_am_arg | $_am_arg:* )
 
19752
      break ;;
 
19753
    * )
 
19754
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
19755
  esac
 
19756
done
 
19757
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
19758
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19759
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
19760
         X"$_am_arg" : 'X\(//\)$' \| \
 
19761
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
19762
$as_echo X"$_am_arg" |
 
19763
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19764
            s//\1/
 
19765
            q
 
19766
          }
 
19767
          /^X\(\/\/\)[^/].*/{
 
19768
            s//\1/
 
19769
            q
 
19770
          }
 
19771
          /^X\(\/\/\)$/{
 
19772
            s//\1/
 
19773
            q
 
19774
          }
 
19775
          /^X\(\/\).*/{
 
19776
            s//\1/
 
19777
            q
 
19778
          }
 
19779
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
19780
 ;;
 
19781
 
 
19782
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
19783
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
19784
 ;;
 
19785
  esac
 
19786
 
 
19787
 
 
19788
  case $ac_file$ac_mode in
 
19789
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
19790
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
19791
  # are listed without --file.  Let's play safe and only enable the eval
 
19792
  # if we detect the quoting.
 
19793
  case $CONFIG_FILES in
 
19794
  *\'*) eval set x "$CONFIG_FILES" ;;
 
19795
  *)   set x $CONFIG_FILES ;;
 
19796
  esac
 
19797
  shift
 
19798
  for mf
 
19799
  do
 
19800
    # Strip MF so we end up with the name of the file.
 
19801
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
19802
    # Check whether this is an Automake generated Makefile or not.
 
19803
    # We used to match only the files named `Makefile.in', but
 
19804
    # some people rename them; so instead we look at the file content.
 
19805
    # Grep'ing the first line is not enough: some people post-process
 
19806
    # each Makefile.in and add a new line on top of each file to say so.
 
19807
    # Grep'ing the whole file is not good either: AIX grep has a line
 
19808
    # limit of 2048, but all sed's we know have understand at least 4000.
 
19809
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
19810
      dirpart=`$as_dirname -- "$mf" ||
 
19811
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19812
         X"$mf" : 'X\(//\)[^/]' \| \
 
19813
         X"$mf" : 'X\(//\)$' \| \
 
19814
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
19815
$as_echo X"$mf" |
 
19816
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19817
            s//\1/
 
19818
            q
 
19819
          }
 
19820
          /^X\(\/\/\)[^/].*/{
 
19821
            s//\1/
 
19822
            q
 
19823
          }
 
19824
          /^X\(\/\/\)$/{
 
19825
            s//\1/
 
19826
            q
 
19827
          }
 
19828
          /^X\(\/\).*/{
 
19829
            s//\1/
 
19830
            q
 
19831
          }
 
19832
          s/.*/./; q'`
 
19833
    else
 
19834
      continue
 
19835
    fi
 
19836
    # Extract the definition of DEPDIR, am__include, and am__quote
 
19837
    # from the Makefile without running `make'.
 
19838
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
19839
    test -z "$DEPDIR" && continue
 
19840
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
19841
    test -z "am__include" && continue
 
19842
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
19843
    # When using ansi2knr, U may be empty or an underscore; expand it
 
19844
    U=`sed -n 's/^U = //p' < "$mf"`
 
19845
    # Find all dependency output files, they are included files with
 
19846
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
19847
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
19848
    # expansion.
 
19849
    for file in `sed -n "
 
19850
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
19851
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
19852
      # Make sure the directory exists.
 
19853
      test -f "$dirpart/$file" && continue
 
19854
      fdir=`$as_dirname -- "$file" ||
 
19855
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19856
         X"$file" : 'X\(//\)[^/]' \| \
 
19857
         X"$file" : 'X\(//\)$' \| \
 
19858
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
19859
$as_echo X"$file" |
 
19860
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19861
            s//\1/
 
19862
            q
 
19863
          }
 
19864
          /^X\(\/\/\)[^/].*/{
 
19865
            s//\1/
 
19866
            q
 
19867
          }
 
19868
          /^X\(\/\/\)$/{
 
19869
            s//\1/
 
19870
            q
 
19871
          }
 
19872
          /^X\(\/\).*/{
 
19873
            s//\1/
 
19874
            q
 
19875
          }
 
19876
          s/.*/./; q'`
 
19877
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
19878
      # echo "creating $dirpart/$file"
 
19879
      echo '# dummy' > "$dirpart/$file"
 
19880
    done
 
19881
  done
 
19882
}
 
19883
 ;;
 
19884
    "libtool":C)
 
19885
 
 
19886
    # See if we are running on zsh, and set the options which allow our
 
19887
    # commands through without removal of \ escapes.
 
19888
    if test -n "${ZSH_VERSION+set}" ; then
 
19889
      setopt NO_GLOB_SUBST
 
19890
    fi
 
19891
 
 
19892
    cfgfile="${ofile}T"
 
19893
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
19894
    $RM "$cfgfile"
 
19895
 
 
19896
    cat <<_LT_EOF >> "$cfgfile"
 
19897
#! $SHELL
 
19898
 
 
19899
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
19900
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
19901
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19902
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
19903
#
 
19904
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
19905
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
19906
#                 Inc.
 
19907
#   Written by Gordon Matzigkeit, 1996
 
19908
#
 
19909
#   This file is part of GNU Libtool.
 
19910
#
 
19911
# GNU Libtool is free software; you can redistribute it and/or
 
19912
# modify it under the terms of the GNU General Public License as
 
19913
# published by the Free Software Foundation; either version 2 of
 
19914
# the License, or (at your option) any later version.
 
19915
#
 
19916
# As a special exception to the GNU General Public License,
 
19917
# if you distribute this file as part of a program or library that
 
19918
# is built using GNU Libtool, you may include this file under the
 
19919
# same distribution terms that you use for the rest of that program.
 
19920
#
 
19921
# GNU Libtool is distributed in the hope that it will be useful,
 
19922
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19923
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19924
# GNU General Public License for more details.
 
19925
#
 
19926
# You should have received a copy of the GNU General Public License
 
19927
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
19928
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
19929
# obtained by writing to the Free Software Foundation, Inc.,
 
19930
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
19931
 
 
19932
 
 
19933
# The names of the tagged configurations supported by this script.
 
19934
available_tags=""
 
19935
 
 
19936
# ### BEGIN LIBTOOL CONFIG
 
19937
 
 
19938
# Whether or not to build static libraries.
 
19939
build_old_libs=$enable_static
 
19940
 
 
19941
# Which release of libtool.m4 was used?
 
19942
macro_version=$macro_version
 
19943
macro_revision=$macro_revision
 
19944
 
 
19945
# Whether or not to build shared libraries.
 
19946
build_libtool_libs=$enable_shared
 
19947
 
 
19948
# What type of objects to build.
 
19949
pic_mode=$pic_mode
 
19950
 
 
19951
# Whether or not to optimize for fast installation.
 
19952
fast_install=$enable_fast_install
 
19953
 
 
19954
# Shell to use when invoking shell scripts.
 
19955
SHELL=$lt_SHELL
 
19956
 
 
19957
# An echo program that protects backslashes.
 
19958
ECHO=$lt_ECHO
 
19959
 
 
19960
# The host system.
 
19961
host_alias=$host_alias
 
19962
host=$host
 
19963
host_os=$host_os
 
19964
 
 
19965
# The build system.
 
19966
build_alias=$build_alias
 
19967
build=$build
 
19968
build_os=$build_os
 
19969
 
 
19970
# A sed program that does not truncate output.
 
19971
SED=$lt_SED
 
19972
 
 
19973
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
19974
Xsed="\$SED -e 1s/^X//"
 
19975
 
 
19976
# A grep program that handles long lines.
 
19977
GREP=$lt_GREP
 
19978
 
 
19979
# An ERE matcher.
 
19980
EGREP=$lt_EGREP
 
19981
 
 
19982
# A literal string matcher.
 
19983
FGREP=$lt_FGREP
 
19984
 
 
19985
# A BSD- or MS-compatible name lister.
 
19986
NM=$lt_NM
 
19987
 
 
19988
# Whether we need soft or hard links.
 
19989
LN_S=$lt_LN_S
 
19990
 
 
19991
# What is the maximum length of a command?
 
19992
max_cmd_len=$max_cmd_len
 
19993
 
 
19994
# Object file suffix (normally "o").
 
19995
objext=$ac_objext
 
19996
 
 
19997
# Executable file suffix (normally "").
 
19998
exeext=$exeext
 
19999
 
 
20000
# whether the shell understands "unset".
 
20001
lt_unset=$lt_unset
 
20002
 
 
20003
# turn spaces into newlines.
 
20004
SP2NL=$lt_lt_SP2NL
 
20005
 
 
20006
# turn newlines into spaces.
 
20007
NL2SP=$lt_lt_NL2SP
 
20008
 
 
20009
# convert \$build file names to \$host format.
 
20010
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
20011
 
 
20012
# convert \$build files to toolchain format.
 
20013
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
20014
 
 
20015
# An object symbol dumper.
 
20016
OBJDUMP=$lt_OBJDUMP
 
20017
 
 
20018
# Method to check whether dependent libraries are shared objects.
 
20019
deplibs_check_method=$lt_deplibs_check_method
 
20020
 
 
20021
# Command to use when deplibs_check_method = "file_magic".
 
20022
file_magic_cmd=$lt_file_magic_cmd
 
20023
 
 
20024
# How to find potential files when deplibs_check_method = "file_magic".
 
20025
file_magic_glob=$lt_file_magic_glob
 
20026
 
 
20027
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
20028
want_nocaseglob=$lt_want_nocaseglob
 
20029
 
 
20030
# DLL creation program.
 
20031
DLLTOOL=$lt_DLLTOOL
 
20032
 
 
20033
# Command to associate shared and link libraries.
 
20034
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
20035
 
 
20036
# The archiver.
 
20037
AR=$lt_AR
 
20038
 
 
20039
# Flags to create an archive.
 
20040
AR_FLAGS=$lt_AR_FLAGS
 
20041
 
 
20042
# How to feed a file listing to the archiver.
 
20043
archiver_list_spec=$lt_archiver_list_spec
 
20044
 
 
20045
# A symbol stripping program.
 
20046
STRIP=$lt_STRIP
 
20047
 
 
20048
# Commands used to install an old-style archive.
 
20049
RANLIB=$lt_RANLIB
 
20050
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20051
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20052
 
 
20053
# Whether to use a lock for old archive extraction.
 
20054
lock_old_archive_extraction=$lock_old_archive_extraction
 
20055
 
 
20056
# A C compiler.
 
20057
LTCC=$lt_CC
 
20058
 
 
20059
# LTCC compiler flags.
 
20060
LTCFLAGS=$lt_CFLAGS
 
20061
 
 
20062
# Take the output of nm and produce a listing of raw symbols and C names.
 
20063
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20064
 
 
20065
# Transform the output of nm in a proper C declaration.
 
20066
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20067
 
 
20068
# Transform the output of nm in a C name address pair.
 
20069
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20070
 
 
20071
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
20072
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
20073
 
 
20074
# Specify filename containing input files for \$NM.
 
20075
nm_file_list_spec=$lt_nm_file_list_spec
 
20076
 
 
20077
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
20078
lt_sysroot=$lt_sysroot
 
20079
 
 
20080
# The name of the directory that contains temporary libtool files.
 
20081
objdir=$objdir
 
20082
 
 
20083
# Used to examine libraries when file_magic_cmd begins with "file".
 
20084
MAGIC_CMD=$MAGIC_CMD
 
20085
 
 
20086
# Must we lock files when doing compilation?
 
20087
need_locks=$lt_need_locks
 
20088
 
 
20089
# Manifest tool.
 
20090
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
20091
 
 
20092
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
20093
DSYMUTIL=$lt_DSYMUTIL
 
20094
 
 
20095
# Tool to change global to local symbols on Mac OS X.
 
20096
NMEDIT=$lt_NMEDIT
 
20097
 
 
20098
# Tool to manipulate fat objects and archives on Mac OS X.
 
20099
LIPO=$lt_LIPO
 
20100
 
 
20101
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
20102
OTOOL=$lt_OTOOL
 
20103
 
 
20104
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
20105
OTOOL64=$lt_OTOOL64
 
20106
 
 
20107
# Old archive suffix (normally "a").
 
20108
libext=$libext
 
20109
 
 
20110
# Shared library suffix (normally ".so").
 
20111
shrext_cmds=$lt_shrext_cmds
 
20112
 
 
20113
# The commands to extract the exported symbol list from a shared archive.
 
20114
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20115
 
 
20116
# Variables whose values should be saved in libtool wrapper scripts and
 
20117
# restored at link time.
 
20118
variables_saved_for_relink=$lt_variables_saved_for_relink
 
20119
 
 
20120
# Do we need the "lib" prefix for modules?
 
20121
need_lib_prefix=$need_lib_prefix
 
20122
 
 
20123
# Do we need a version for libraries?
 
20124
need_version=$need_version
 
20125
 
 
20126
# Library versioning type.
 
20127
version_type=$version_type
 
20128
 
 
20129
# Shared library runtime path variable.
 
20130
runpath_var=$runpath_var
 
20131
 
 
20132
# Shared library path variable.
 
20133
shlibpath_var=$shlibpath_var
 
20134
 
 
20135
# Is shlibpath searched before the hard-coded library search path?
 
20136
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20137
 
 
20138
# Format of library name prefix.
 
20139
libname_spec=$lt_libname_spec
 
20140
 
 
20141
# List of archive names.  First name is the real one, the rest are links.
 
20142
# The last name is the one that the linker finds with -lNAME
 
20143
library_names_spec=$lt_library_names_spec
 
20144
 
 
20145
# The coded name of the library, if different from the real name.
 
20146
soname_spec=$lt_soname_spec
 
20147
 
 
20148
# Permission mode override for installation of shared libraries.
 
20149
install_override_mode=$lt_install_override_mode
 
20150
 
 
20151
# Command to use after installation of a shared archive.
 
20152
postinstall_cmds=$lt_postinstall_cmds
 
20153
 
 
20154
# Command to use after uninstallation of a shared archive.
 
20155
postuninstall_cmds=$lt_postuninstall_cmds
 
20156
 
 
20157
# Commands used to finish a libtool library installation in a directory.
 
20158
finish_cmds=$lt_finish_cmds
 
20159
 
 
20160
# As "finish_cmds", except a single script fragment to be evaled but
 
20161
# not shown.
 
20162
finish_eval=$lt_finish_eval
 
20163
 
 
20164
# Whether we should hardcode library paths into libraries.
 
20165
hardcode_into_libs=$hardcode_into_libs
 
20166
 
 
20167
# Compile-time system search path for libraries.
 
20168
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20169
 
 
20170
# Run-time system search path for libraries.
 
20171
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20172
 
 
20173
# Whether dlopen is supported.
 
20174
dlopen_support=$enable_dlopen
 
20175
 
 
20176
# Whether dlopen of programs is supported.
 
20177
dlopen_self=$enable_dlopen_self
 
20178
 
 
20179
# Whether dlopen of statically linked programs is supported.
 
20180
dlopen_self_static=$enable_dlopen_self_static
 
20181
 
 
20182
# Commands to strip libraries.
 
20183
old_striplib=$lt_old_striplib
 
20184
striplib=$lt_striplib
 
20185
 
 
20186
 
 
20187
# The linker used to build libraries.
 
20188
LD=$lt_LD
 
20189
 
 
20190
# How to create reloadable object files.
 
20191
reload_flag=$lt_reload_flag
 
20192
reload_cmds=$lt_reload_cmds
 
20193
 
 
20194
# Commands used to build an old-style archive.
 
20195
old_archive_cmds=$lt_old_archive_cmds
 
20196
 
 
20197
# A language specific compiler.
 
20198
CC=$lt_compiler
 
20199
 
 
20200
# Is the compiler the GNU compiler?
 
20201
with_gcc=$GCC
 
20202
 
 
20203
# Compiler flag to turn off builtin functions.
 
20204
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
20205
 
 
20206
# Additional compiler flags for building library objects.
 
20207
pic_flag=$lt_lt_prog_compiler_pic
 
20208
 
 
20209
# How to pass a linker flag through the compiler.
 
20210
wl=$lt_lt_prog_compiler_wl
 
20211
 
 
20212
# Compiler flag to prevent dynamic linking.
 
20213
link_static_flag=$lt_lt_prog_compiler_static
 
20214
 
 
20215
# Does compiler simultaneously support -c and -o options?
 
20216
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
20217
 
 
20218
# Whether or not to add -lc for building shared libraries.
 
20219
build_libtool_need_lc=$archive_cmds_need_lc
 
20220
 
 
20221
# Whether or not to disallow shared libs when runtime libs are static.
 
20222
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
20223
 
 
20224
# Compiler flag to allow reflexive dlopens.
 
20225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
20226
 
 
20227
# Compiler flag to generate shared objects directly from archives.
 
20228
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
20229
 
 
20230
# Whether the compiler copes with passing no objects directly.
 
20231
compiler_needs_object=$lt_compiler_needs_object
 
20232
 
 
20233
# Create an old-style archive from a shared archive.
 
20234
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
20235
 
 
20236
# Create a temporary old-style archive to link instead of a shared archive.
 
20237
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
20238
 
 
20239
# Commands used to build a shared archive.
 
20240
archive_cmds=$lt_archive_cmds
 
20241
archive_expsym_cmds=$lt_archive_expsym_cmds
 
20242
 
 
20243
# Commands used to build a loadable module if different from building
 
20244
# a shared archive.
 
20245
module_cmds=$lt_module_cmds
 
20246
module_expsym_cmds=$lt_module_expsym_cmds
 
20247
 
 
20248
# Whether we are building with GNU ld or not.
 
20249
with_gnu_ld=$lt_with_gnu_ld
 
20250
 
 
20251
# Flag that allows shared libraries with undefined symbols to be built.
 
20252
allow_undefined_flag=$lt_allow_undefined_flag
 
20253
 
 
20254
# Flag that enforces no undefined symbols.
 
20255
no_undefined_flag=$lt_no_undefined_flag
 
20256
 
 
20257
# Flag to hardcode \$libdir into a binary during linking.
 
20258
# This must work even if \$libdir does not exist
 
20259
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
20260
 
 
20261
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
20262
# during linking.  This must work even if \$libdir does not exist.
 
20263
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
20264
 
 
20265
# Whether we need a single "-rpath" flag with a separated argument.
 
20266
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
20267
 
 
20268
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20269
# DIR into the resulting binary.
 
20270
hardcode_direct=$hardcode_direct
 
20271
 
 
20272
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20273
# DIR into the resulting binary and the resulting library dependency is
 
20274
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
20275
# library is relocated.
 
20276
hardcode_direct_absolute=$hardcode_direct_absolute
 
20277
 
 
20278
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
20279
# into the resulting binary.
 
20280
hardcode_minus_L=$hardcode_minus_L
 
20281
 
 
20282
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
20283
# into the resulting binary.
 
20284
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
20285
 
 
20286
# Set to "yes" if building a shared library automatically hardcodes DIR
 
20287
# into the library and all subsequent libraries and executables linked
 
20288
# against it.
 
20289
hardcode_automatic=$hardcode_automatic
 
20290
 
 
20291
# Set to yes if linker adds runtime paths of dependent libraries
 
20292
# to runtime path list.
 
20293
inherit_rpath=$inherit_rpath
 
20294
 
 
20295
# Whether libtool must link a program against all its dependency libraries.
 
20296
link_all_deplibs=$link_all_deplibs
 
20297
 
 
20298
# Set to "yes" if exported symbols are required.
 
20299
always_export_symbols=$always_export_symbols
 
20300
 
 
20301
# The commands to list exported symbols.
 
20302
export_symbols_cmds=$lt_export_symbols_cmds
 
20303
 
 
20304
# Symbols that should not be listed in the preloaded symbols.
 
20305
exclude_expsyms=$lt_exclude_expsyms
 
20306
 
 
20307
# Symbols that must always be exported.
 
20308
include_expsyms=$lt_include_expsyms
 
20309
 
 
20310
# Commands necessary for linking programs (against libraries) with templates.
 
20311
prelink_cmds=$lt_prelink_cmds
 
20312
 
 
20313
# Commands necessary for finishing linking programs.
 
20314
postlink_cmds=$lt_postlink_cmds
 
20315
 
 
20316
# Specify filename containing input files.
 
20317
file_list_spec=$lt_file_list_spec
 
20318
 
 
20319
# How to hardcode a shared library path into an executable.
 
20320
hardcode_action=$hardcode_action
 
20321
 
 
20322
# ### END LIBTOOL CONFIG
 
20323
 
 
20324
_LT_EOF
 
20325
 
 
20326
  case $host_os in
 
20327
  aix3*)
 
20328
    cat <<\_LT_EOF >> "$cfgfile"
 
20329
# AIX sometimes has problems with the GCC collect2 program.  For some
 
20330
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
20331
# vanish in a puff of smoke.
 
20332
if test "X${COLLECT_NAMES+set}" != Xset; then
 
20333
  COLLECT_NAMES=
 
20334
  export COLLECT_NAMES
 
20335
fi
 
20336
_LT_EOF
 
20337
    ;;
 
20338
  esac
 
20339
 
 
20340
 
 
20341
ltmain="$ac_aux_dir/ltmain.sh"
 
20342
 
 
20343
 
 
20344
  # We use sed instead of cat because bash on DJGPP gets confused if
 
20345
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
20346
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
20347
  # is reportedly fixed, but why not run on old versions too?
 
20348
  sed '$q' "$ltmain" >> "$cfgfile" \
 
20349
     || (rm -f "$cfgfile"; exit 1)
 
20350
 
 
20351
  if test x"$xsi_shell" = xyes; then
 
20352
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
20353
func_dirname ()\
 
20354
{\
 
20355
\    case ${1} in\
 
20356
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
20357
\      *  ) func_dirname_result="${3}" ;;\
 
20358
\    esac\
 
20359
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
20360
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20361
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20362
test 0 -eq $? || _lt_function_replace_fail=:
 
20363
 
 
20364
 
 
20365
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
20366
func_basename ()\
 
20367
{\
 
20368
\    func_basename_result="${1##*/}"\
 
20369
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
20370
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20371
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20372
test 0 -eq $? || _lt_function_replace_fail=:
 
20373
 
 
20374
 
 
20375
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
20376
func_dirname_and_basename ()\
 
20377
{\
 
20378
\    case ${1} in\
 
20379
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
20380
\      *  ) func_dirname_result="${3}" ;;\
 
20381
\    esac\
 
20382
\    func_basename_result="${1##*/}"\
 
20383
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
20384
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20385
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20386
test 0 -eq $? || _lt_function_replace_fail=:
 
20387
 
 
20388
 
 
20389
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
20390
func_stripname ()\
 
20391
{\
 
20392
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
20393
\    # positional parameters, so assign one to ordinary parameter first.\
 
20394
\    func_stripname_result=${3}\
 
20395
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
20396
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
20397
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
20398
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20399
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20400
test 0 -eq $? || _lt_function_replace_fail=:
 
20401
 
 
20402
 
 
20403
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
20404
func_split_long_opt ()\
 
20405
{\
 
20406
\    func_split_long_opt_name=${1%%=*}\
 
20407
\    func_split_long_opt_arg=${1#*=}\
 
20408
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
20409
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20410
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20411
test 0 -eq $? || _lt_function_replace_fail=:
 
20412
 
 
20413
 
 
20414
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
20415
func_split_short_opt ()\
 
20416
{\
 
20417
\    func_split_short_opt_arg=${1#??}\
 
20418
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
20419
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
20420
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20421
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20422
test 0 -eq $? || _lt_function_replace_fail=:
 
20423
 
 
20424
 
 
20425
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
20426
func_lo2o ()\
 
20427
{\
 
20428
\    case ${1} in\
 
20429
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
20430
\      *)    func_lo2o_result=${1} ;;\
 
20431
\    esac\
 
20432
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
20433
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20434
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20435
test 0 -eq $? || _lt_function_replace_fail=:
 
20436
 
 
20437
 
 
20438
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
20439
func_xform ()\
 
20440
{\
 
20441
    func_xform_result=${1%.*}.lo\
 
20442
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
20443
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20444
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20445
test 0 -eq $? || _lt_function_replace_fail=:
 
20446
 
 
20447
 
 
20448
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
20449
func_arith ()\
 
20450
{\
 
20451
    func_arith_result=$(( $* ))\
 
20452
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
20453
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20454
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20455
test 0 -eq $? || _lt_function_replace_fail=:
 
20456
 
 
20457
 
 
20458
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
20459
func_len ()\
 
20460
{\
 
20461
    func_len_result=${#1}\
 
20462
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
20463
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20464
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20465
test 0 -eq $? || _lt_function_replace_fail=:
 
20466
 
 
20467
fi
 
20468
 
 
20469
if test x"$lt_shell_append" = xyes; then
 
20470
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
20471
func_append ()\
 
20472
{\
 
20473
    eval "${1}+=\\${2}"\
 
20474
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
20475
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20476
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20477
test 0 -eq $? || _lt_function_replace_fail=:
 
20478
 
 
20479
 
 
20480
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
20481
func_append_quoted ()\
 
20482
{\
 
20483
\    func_quote_for_eval "${2}"\
 
20484
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
20485
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
20486
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20487
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20488
test 0 -eq $? || _lt_function_replace_fail=:
 
20489
 
 
20490
 
 
20491
  # Save a `func_append' function call where possible by direct use of '+='
 
20492
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
20493
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20494
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20495
  test 0 -eq $? || _lt_function_replace_fail=:
 
20496
else
 
20497
  # Save a `func_append' function call even when '+=' is not available
 
20498
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
20499
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
20500
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
20501
  test 0 -eq $? || _lt_function_replace_fail=:
 
20502
fi
 
20503
 
 
20504
if test x"$_lt_function_replace_fail" = x":"; then
 
20505
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
20506
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
20507
fi
 
20508
 
 
20509
 
 
20510
   mv -f "$cfgfile" "$ofile" ||
 
20511
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
20512
  chmod +x "$ofile"
 
20513
 
 
20514
 ;;
 
20515
    "default-1":C)
 
20516
    for ac_file in $CONFIG_FILES; do
 
20517
      # Support "outfile[:infile[:infile...]]"
 
20518
      case "$ac_file" in
 
20519
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
20520
      esac
 
20521
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
20522
      case "$ac_file" in */Makefile.in)
 
20523
        # Adjust a relative srcdir.
 
20524
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
20525
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
20526
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
20527
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
20528
        # In autoconf-2.50 it is called $srcdir.
 
20529
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
20530
        case "$ac_given_srcdir" in
 
20531
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
20532
          /*) top_srcdir="$ac_given_srcdir" ;;
 
20533
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
20534
        esac
 
20535
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
20536
          rm -f "$ac_dir/POTFILES"
 
20537
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
20538
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
20539
          POMAKEFILEDEPS="POTFILES.in"
 
20540
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
20541
          # on $ac_dir but don't depend on user-specified configuration
 
20542
          # parameters.
 
20543
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
20544
            # The LINGUAS file contains the set of available languages.
 
20545
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
20546
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
20547
            fi
 
20548
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
20549
            # Hide the ALL_LINGUAS assigment from automake.
 
20550
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
20551
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
20552
          else
 
20553
            # The set of available languages was given in configure.in.
 
20554
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
20555
          fi
 
20556
          # Compute POFILES
 
20557
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
20558
          # Compute UPDATEPOFILES
 
20559
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
20560
          # Compute DUMMYPOFILES
 
20561
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
20562
          # Compute GMOFILES
 
20563
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
20564
          case "$ac_given_srcdir" in
 
20565
            .) srcdirpre= ;;
 
20566
            *) srcdirpre='$(srcdir)/' ;;
 
20567
          esac
 
20568
          POFILES=
 
20569
          UPDATEPOFILES=
 
20570
          DUMMYPOFILES=
 
20571
          GMOFILES=
 
20572
          for lang in $ALL_LINGUAS; do
 
20573
            POFILES="$POFILES $srcdirpre$lang.po"
 
20574
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
20575
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
20576
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
20577
          done
 
20578
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
20579
          # environment variable.
 
20580
          INST_LINGUAS=
 
20581
          if test -n "$ALL_LINGUAS"; then
 
20582
            for presentlang in $ALL_LINGUAS; do
 
20583
              useit=no
 
20584
              if test "%UNSET%" != "$LINGUAS"; then
 
20585
                desiredlanguages="$LINGUAS"
 
20586
              else
 
20587
                desiredlanguages="$ALL_LINGUAS"
 
20588
              fi
 
20589
              for desiredlang in $desiredlanguages; do
 
20590
                # Use the presentlang catalog if desiredlang is
 
20591
                #   a. equal to presentlang, or
 
20592
                #   b. a variant of presentlang (because in this case,
 
20593
                #      presentlang can be used as a fallback for messages
 
20594
                #      which are not translated in the desiredlang catalog).
 
20595
                case "$desiredlang" in
 
20596
                  "$presentlang"*) useit=yes;;
 
20597
                esac
 
20598
              done
 
20599
              if test $useit = yes; then
 
20600
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
20601
              fi
 
20602
            done
 
20603
          fi
 
20604
          CATALOGS=
 
20605
          if test -n "$INST_LINGUAS"; then
 
20606
            for lang in $INST_LINGUAS; do
 
20607
              CATALOGS="$CATALOGS $lang.gmo"
 
20608
            done
 
20609
          fi
 
20610
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
20611
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
20612
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
20613
            if test -f "$f"; then
 
20614
              case "$f" in
 
20615
                *.orig | *.bak | *~) ;;
 
20616
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
20617
              esac
 
20618
            fi
 
20619
          done
 
20620
        fi
 
20621
        ;;
 
20622
      esac
 
20623
    done ;;
 
20624
 
 
20625
  esac
3463
20626
done # for ac_tag
3464
20627
 
3465
20628
 
3466
 
{ (exit 0); exit 0; }
 
20629
as_fn_exit 0
3467
20630
_ACEOF
3468
 
chmod +x $CONFIG_STATUS
3469
20631
ac_clean_files=$ac_clean_files_save
3470
20632
 
3471
20633
test $ac_write_fail = 0 ||
3472
 
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
3473
 
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
3474
 
   { (exit 1); exit 1; }; }
 
20634
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3475
20635
 
3476
20636
 
3477
20637
# configure is writing to config.log, and then calls config.status.
3492
20652
  exec 5>>config.log
3493
20653
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3494
20654
  # would make configure fail if this is the last instruction.
3495
 
  $ac_cs_success || { (exit 1); exit 1; }
3496
 
fi
3497
 
 
3498
 
#
3499
 
# CONFIG_SUBDIRS section.
3500
 
#
3501
 
if test "$no_recursion" != yes; then
3502
 
 
3503
 
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
3504
 
  # so they do not pile up.
3505
 
  ac_sub_configure_args=
3506
 
  ac_prev=
3507
 
  eval "set x $ac_configure_args"
3508
 
  shift
3509
 
  for ac_arg
3510
 
  do
3511
 
    if test -n "$ac_prev"; then
3512
 
      ac_prev=
3513
 
      continue
3514
 
    fi
3515
 
    case $ac_arg in
3516
 
    -cache-file | --cache-file | --cache-fil | --cache-fi \
3517
 
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3518
 
      ac_prev=cache_file ;;
3519
 
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3520
 
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
3521
 
    | --c=*)
3522
 
      ;;
3523
 
    --config-cache | -C)
3524
 
      ;;
3525
 
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3526
 
      ac_prev=srcdir ;;
3527
 
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3528
 
      ;;
3529
 
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3530
 
      ac_prev=prefix ;;
3531
 
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3532
 
      ;;
3533
 
    --disable-option-checking)
3534
 
      ;;
3535
 
    *)
3536
 
      case $ac_arg in
3537
 
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3538
 
      esac
3539
 
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
3540
 
    esac
3541
 
  done
3542
 
 
3543
 
  # Always prepend --prefix to ensure using the same prefix
3544
 
  # in subdir configurations.
3545
 
  ac_arg="--prefix=$prefix"
3546
 
  case $ac_arg in
3547
 
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3548
 
  esac
3549
 
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
3550
 
 
3551
 
  # Pass --silent
3552
 
  if test "$silent" = yes; then
3553
 
    ac_sub_configure_args="--silent $ac_sub_configure_args"
3554
 
  fi
3555
 
 
3556
 
  # Always prepend --disable-option-checking to silence warnings, since
3557
 
  # different subdirs can have different --enable and --with options.
3558
 
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
3559
 
 
3560
 
  ac_popdir=`pwd`
3561
 
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
3562
 
 
3563
 
    # Do not complain, so a configure script can configure whichever
3564
 
    # parts of a large source tree are present.
3565
 
    test -d "$srcdir/$ac_dir" || continue
3566
 
 
3567
 
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
3568
 
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
3569
 
    $as_echo "$ac_msg" >&6
3570
 
    { as_dir="$ac_dir"
3571
 
  case $as_dir in #(
3572
 
  -*) as_dir=./$as_dir;;
3573
 
  esac
3574
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3575
 
    as_dirs=
3576
 
    while :; do
3577
 
      case $as_dir in #(
3578
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3579
 
      *) as_qdir=$as_dir;;
3580
 
      esac
3581
 
      as_dirs="'$as_qdir' $as_dirs"
3582
 
      as_dir=`$as_dirname -- "$as_dir" ||
3583
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3584
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
3585
 
         X"$as_dir" : 'X\(//\)$' \| \
3586
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3587
 
$as_echo X"$as_dir" |
3588
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3589
 
            s//\1/
3590
 
            q
3591
 
          }
3592
 
          /^X\(\/\/\)[^/].*/{
3593
 
            s//\1/
3594
 
            q
3595
 
          }
3596
 
          /^X\(\/\/\)$/{
3597
 
            s//\1/
3598
 
            q
3599
 
          }
3600
 
          /^X\(\/\).*/{
3601
 
            s//\1/
3602
 
            q
3603
 
          }
3604
 
          s/.*/./; q'`
3605
 
      test -d "$as_dir" && break
3606
 
    done
3607
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
3608
 
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
3609
 
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
3610
 
   { (exit 1); exit 1; }; }; }
3611
 
    ac_builddir=.
3612
 
 
3613
 
case "$ac_dir" in
3614
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3615
 
*)
3616
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3617
 
  # A ".." for each directory in $ac_dir_suffix.
3618
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3619
 
  case $ac_top_builddir_sub in
3620
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3621
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3622
 
  esac ;;
3623
 
esac
3624
 
ac_abs_top_builddir=$ac_pwd
3625
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
3626
 
# for backward compatibility:
3627
 
ac_top_builddir=$ac_top_build_prefix
3628
 
 
3629
 
case $srcdir in
3630
 
  .)  # We are building in place.
3631
 
    ac_srcdir=.
3632
 
    ac_top_srcdir=$ac_top_builddir_sub
3633
 
    ac_abs_top_srcdir=$ac_pwd ;;
3634
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
3635
 
    ac_srcdir=$srcdir$ac_dir_suffix;
3636
 
    ac_top_srcdir=$srcdir
3637
 
    ac_abs_top_srcdir=$srcdir ;;
3638
 
  *) # Relative name.
3639
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3640
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
3641
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3642
 
esac
3643
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3644
 
 
3645
 
 
3646
 
    cd "$ac_dir"
3647
 
 
3648
 
    # Check for guested configure; otherwise get Cygnus style configure.
3649
 
    if test -f "$ac_srcdir/configure.gnu"; then
3650
 
      ac_sub_configure=$ac_srcdir/configure.gnu
3651
 
    elif test -f "$ac_srcdir/configure"; then
3652
 
      ac_sub_configure=$ac_srcdir/configure
3653
 
    elif test -f "$ac_srcdir/configure.in"; then
3654
 
      # This should be Cygnus configure.
3655
 
      ac_sub_configure=$ac_aux_dir/configure
3656
 
    else
3657
 
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
3658
 
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
3659
 
      ac_sub_configure=
3660
 
    fi
3661
 
 
3662
 
    # The recursion is here.
3663
 
    if test -n "$ac_sub_configure"; then
3664
 
      # Make the cache file name correct relative to the subdirectory.
3665
 
      case $cache_file in
3666
 
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
3667
 
      *) # Relative name.
3668
 
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
3669
 
      esac
3670
 
 
3671
 
      { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
3672
 
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
3673
 
      # The eval makes quoting arguments work.
3674
 
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
3675
 
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
3676
 
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
3677
 
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
3678
 
   { (exit 1); exit 1; }; }
3679
 
    fi
3680
 
 
3681
 
    cd "$ac_popdir"
3682
 
  done
 
20655
  $ac_cs_success || as_fn_exit 1
3683
20656
fi
3684
20657
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3685
 
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
20658
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3686
20659
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3687
20660
fi
3688
20661
 
 
20662