~peter-pearse/ubuntu/oneiric/xserver-xorg-input-synaptics/prop001

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2010-03-31 00:27:07 UTC
  • mfrom: (1.2.1 upstream) (0.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100331002707-b755dfql6yij15v0
Tags: 1.2.2-1ubuntu1
* Merge from Debian unstable. (LP: #546933)
* Rewrite old quirks to use ID_INPUT.tags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.63 for xf86-input-synaptics 1.2.2.
 
4
#
 
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
as_nl='
 
43
'
 
44
export as_nl
 
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
48
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
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
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
 
 
91
# IFS
 
92
# We need space, tab and new line, in precisely that order.  Quoting is
 
93
# there to prevent editors from complaining about space-tab.
 
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
95
# splitting by setting IFS to empty value.)
 
96
IFS=" ""        $as_nl"
 
97
 
 
98
# Find who we are.  Look in the path if we contain no directory separator.
 
99
case $0 in
 
100
  *[\\/]* ) as_myself=$0 ;;
 
101
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
102
for as_dir in $PATH
 
103
do
 
104
  IFS=$as_save_IFS
 
105
  test -z "$as_dir" && as_dir=.
 
106
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
107
done
 
108
IFS=$as_save_IFS
 
109
 
 
110
     ;;
 
111
esac
 
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
113
# in which case we are not to be found in the path.
 
114
if test "x$as_myself" = x; then
 
115
  as_myself=$0
 
116
fi
 
117
if test ! -f "$as_myself"; then
 
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
119
  { (exit 1); exit 1; }
 
120
fi
 
121
 
 
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
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
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
# CDPATH.
 
172
$as_unset CDPATH
 
173
 
 
174
 
 
175
if test "x$CONFIG_SHELL" = x; then
 
176
  if (eval ":") 2>/dev/null; then
 
177
  as_have_required=yes
 
178
else
 
179
  as_have_required=no
 
180
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
 
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
244
do
 
245
  IFS=$as_save_IFS
 
246
  test -z "$as_dir" && as_dir=.
 
247
  case $as_dir in
 
248
         /*)
 
249
           for as_base in sh bash ksh sh5; do
 
250
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
251
           done;;
 
252
       esac
 
253
done
 
254
IFS=$as_save_IFS
 
255
 
 
256
 
 
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
 
367
        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.  :-)
 
460
  sed -n '
 
461
    p
 
462
    /[$]LINENO/=
 
463
  ' <$as_myself |
 
464
    sed '
 
465
      s/[$]LINENO.*/&-/
 
466
      t lineno
 
467
      b
 
468
      :lineno
 
469
      N
 
470
      :loop
 
471
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
472
      t loop
 
473
      s/-\n.*//
 
474
    ' >$as_me.lineno &&
 
475
  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; }; }
 
478
 
 
479
  # Don't try to exec as it changes $[0], causing all sort of problems
 
480
  # (the dirname of $[0] is not the place where we might find the
 
481
  # original and so on.  Autoconf is especially sensitive to this).
 
482
  . "./$as_me.lineno"
 
483
  # Exit status is that of the last command.
 
484
  exit
 
485
}
 
486
 
 
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
ECHO_C= ECHO_N= ECHO_T=
 
495
case `echo -n x` in
 
496
-n*)
 
497
  case `echo 'x\c'` in
 
498
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
499
  *)   ECHO_C='\c';;
 
500
  esac;;
 
501
*)
 
502
  ECHO_N='-n';;
 
503
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
 
 
511
rm -f conf$$ conf$$.exe conf$$.file
 
512
if test -d conf$$.dir; then
 
513
  rm -f conf$$.dir/conf$$.file
 
514
else
 
515
  rm -f conf$$.dir
 
516
  mkdir conf$$.dir 2>/dev/null
 
517
fi
 
518
if (echo >conf$$.file) 2>/dev/null; then
 
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
520
    as_ln_s='ln -s'
 
521
    # ... but there are two gotchas:
 
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
524
    # In both cases, we have to default to `cp -p'.
 
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
526
      as_ln_s='cp -p'
 
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
528
    as_ln_s=ln
 
529
  else
 
530
    as_ln_s='cp -p'
 
531
  fi
 
532
else
 
533
  as_ln_s='cp -p'
 
534
fi
 
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
536
rmdir conf$$.dir 2>/dev/null
 
537
 
 
538
if mkdir -p . 2>/dev/null; then
 
539
  as_mkdir_p=:
 
540
else
 
541
  test -d ./-p && rmdir ./-p
 
542
  as_mkdir_p=false
 
543
fi
 
544
 
 
545
if test -x / >/dev/null 2>&1; then
 
546
  as_test_x='test -x'
 
547
else
 
548
  if ls -dL / >/dev/null 2>&1; then
 
549
    as_ls_L_option=L
 
550
  else
 
551
    as_ls_L_option=
 
552
  fi
 
553
  as_test_x='
 
554
    eval sh -c '\''
 
555
      if test -d "$1"; then
 
556
        test -d "$1/.";
 
557
      else
 
558
        case $1 in
 
559
        -*)set "./$1";;
 
560
        esac;
 
561
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
562
        ???[sx]*):;;*)false;;esac;fi
 
563
    '\'' sh
 
564
  '
 
565
fi
 
566
as_executable_p=$as_test_x
 
567
 
 
568
# Sed expression to map a string onto a valid CPP name.
 
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
570
 
 
571
# Sed expression to map a string onto a valid variable name.
 
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
573
 
 
574
 
 
575
 
 
576
 
 
577
# Check that we are running under the correct shell.
 
578
SHELL=${CONFIG_SHELL-/bin/sh}
 
579
 
 
580
case X$lt_ECHO in
 
581
X*--fallback-echo)
 
582
  # Remove one level of quotation (which was required for Make).
 
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
584
  ;;
 
585
esac
 
586
 
 
587
ECHO=${lt_ECHO-echo}
 
588
if test "X$1" = X--no-reexec; then
 
589
  # Discard the --no-reexec flag, and continue.
 
590
  shift
 
591
elif test "X$1" = X--fallback-echo; then
 
592
  # Avoid inline document here, it may be left over
 
593
  :
 
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $ECHO works!
 
596
  :
 
597
else
 
598
  # Restart under the correct shell.
 
599
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
600
fi
 
601
 
 
602
if test "X$1" = X--fallback-echo; then
 
603
  # used as fallback echo
 
604
  shift
 
605
  cat <<_LT_EOF
 
606
$*
 
607
_LT_EOF
 
608
  exit 0
 
609
fi
 
610
 
 
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
612
# if CDPATH is set.
 
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
614
 
 
615
if test -z "$lt_ECHO"; then
 
616
  if test "X${echo_test_string+set}" != Xset; then
 
617
    # find a string as large as possible, as long as the shell can cope with it
 
618
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
621
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
622
      then
 
623
        break
 
624
      fi
 
625
    done
 
626
  fi
 
627
 
 
628
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
629
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
630
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
631
    :
 
632
  else
 
633
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
634
    # backslashes.  This makes it impossible to quote backslashes using
 
635
    #   echo "$something" | sed 's/\\/\\\\/g'
 
636
    #
 
637
    # So, first we look for a working echo in the user's PATH.
 
638
 
 
639
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
640
    for dir in $PATH /usr/ucb; do
 
641
      IFS="$lt_save_ifs"
 
642
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
643
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
644
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
645
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
646
        ECHO="$dir/echo"
 
647
        break
 
648
      fi
 
649
    done
 
650
    IFS="$lt_save_ifs"
 
651
 
 
652
    if test "X$ECHO" = Xecho; then
 
653
      # We didn't find a better echo, so look for alternatives.
 
654
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
655
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
656
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
        # This shell has a builtin print -r that does the trick.
 
658
        ECHO='print -r'
 
659
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
660
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
661
        # If we have ksh, try running configure again with it.
 
662
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
663
        export ORIGINAL_CONFIG_SHELL
 
664
        CONFIG_SHELL=/bin/ksh
 
665
        export CONFIG_SHELL
 
666
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
667
      else
 
668
        # Try using printf.
 
669
        ECHO='printf %s\n'
 
670
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
671
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
672
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
673
          # Cool, printf works
 
674
          :
 
675
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
676
             test "X$echo_testing_string" = 'X\t' &&
 
677
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
678
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
679
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
680
          export CONFIG_SHELL
 
681
          SHELL="$CONFIG_SHELL"
 
682
          export SHELL
 
683
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
684
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
685
             test "X$echo_testing_string" = 'X\t' &&
 
686
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
687
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
688
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
689
        else
 
690
          # maybe with a smaller string...
 
691
          prev=:
 
692
 
 
693
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
694
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
695
            then
 
696
              break
 
697
            fi
 
698
            prev="$cmd"
 
699
          done
 
700
 
 
701
          if test "$prev" != 'sed 50q "$0"'; then
 
702
            echo_test_string=`eval $prev`
 
703
            export echo_test_string
 
704
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
705
          else
 
706
            # Oops.  We lost completely, so just stick with echo.
 
707
            ECHO=echo
 
708
          fi
 
709
        fi
 
710
      fi
 
711
    fi
 
712
  fi
 
713
fi
 
714
 
 
715
# Copy echo and quote the copy suitably for passing to libtool from
 
716
# the Makefile, instead of quoting the original, which is used later.
 
717
lt_ECHO=$ECHO
 
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
719
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
720
fi
 
721
 
 
722
 
 
723
 
 
724
 
 
725
exec 7<&0 </dev/null 6>&1
 
726
 
 
727
# Name of the host.
 
728
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
729
# so uname gets run too.
 
730
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
731
 
 
732
#
 
733
# Initializations.
 
734
#
 
735
ac_default_prefix=/usr/local
 
736
ac_clean_files=
 
737
ac_config_libobj_dir=.
 
738
LIBOBJS=
 
739
cross_compiling=no
 
740
subdirs=
 
741
MFLAGS=
 
742
MAKEFLAGS=
 
743
SHELL=${CONFIG_SHELL-/bin/sh}
 
744
 
 
745
# Identity of this package.
 
746
PACKAGE_NAME='xf86-input-synaptics'
 
747
PACKAGE_TARNAME='xf86-input-synaptics'
 
748
PACKAGE_VERSION='1.2.2'
 
749
PACKAGE_STRING='xf86-input-synaptics 1.2.2'
 
750
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
 
751
 
 
752
ac_unique_file="Makefile.am"
 
753
# Factoring default headers for most tests.
 
754
ac_includes_default="\
 
755
#include <stdio.h>
 
756
#ifdef HAVE_SYS_TYPES_H
 
757
# include <sys/types.h>
 
758
#endif
 
759
#ifdef HAVE_SYS_STAT_H
 
760
# include <sys/stat.h>
 
761
#endif
 
762
#ifdef STDC_HEADERS
 
763
# include <stdlib.h>
 
764
# include <stddef.h>
 
765
#else
 
766
# ifdef HAVE_STDLIB_H
 
767
#  include <stdlib.h>
 
768
# endif
 
769
#endif
 
770
#ifdef HAVE_STRING_H
 
771
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
772
#  include <memory.h>
 
773
# endif
 
774
# include <string.h>
 
775
#endif
 
776
#ifdef HAVE_STRINGS_H
 
777
# include <strings.h>
 
778
#endif
 
779
#ifdef HAVE_INTTYPES_H
 
780
# include <inttypes.h>
 
781
#endif
 
782
#ifdef HAVE_STDINT_H
 
783
# include <stdint.h>
 
784
#endif
 
785
#ifdef HAVE_UNISTD_H
 
786
# include <unistd.h>
 
787
#endif"
 
788
 
 
789
ac_subst_vars='am__EXEEXT_FALSE
 
790
am__EXEEXT_TRUE
 
791
LTLIBOBJS
 
792
LIBOBJS
 
793
BUILD_TOOLS
 
794
BUILD_TOOLS_FALSE
 
795
BUILD_TOOLS_TRUE
 
796
XI_LIBS
 
797
XI_CFLAGS
 
798
RECORDPROTO_1_13_LIBS
 
799
RECORDPROTO_1_13_CFLAGS
 
800
XTST_1_1_LIBS
 
801
XTST_1_1_CFLAGS
 
802
HAVE_PROPERTIES
 
803
HAVE_PROPERTIES_FALSE
 
804
HAVE_PROPERTIES_TRUE
 
805
XORG16_LIBS
 
806
XORG16_CFLAGS
 
807
sdkdir
 
808
XORG_LIBS
 
809
XORG_CFLAGS
 
810
inputdir
 
811
BUILD_PSMCOMM_FALSE
 
812
BUILD_PSMCOMM_TRUE
 
813
BUILD_EVENTCOMM_FALSE
 
814
BUILD_EVENTCOMM_TRUE
 
815
AM_BACKSLASH
 
816
AM_DEFAULT_VERBOSITY
 
817
ADMIN_MAN_DIR
 
818
DRIVER_MAN_DIR
 
819
MISC_MAN_DIR
 
820
FILE_MAN_DIR
 
821
LIB_MAN_DIR
 
822
APP_MAN_DIR
 
823
ADMIN_MAN_SUFFIX
 
824
DRIVER_MAN_SUFFIX
 
825
MISC_MAN_SUFFIX
 
826
FILE_MAN_SUFFIX
 
827
LIB_MAN_SUFFIX
 
828
APP_MAN_SUFFIX
 
829
INSTALL_CMD
 
830
PKG_CONFIG
 
831
CHANGELOG_CMD
 
832
CWARNFLAGS
 
833
CPP
 
834
OTOOL64
 
835
OTOOL
 
836
LIPO
 
837
NMEDIT
 
838
DSYMUTIL
 
839
lt_ECHO
 
840
RANLIB
 
841
AR
 
842
OBJDUMP
 
843
LN_S
 
844
NM
 
845
ac_ct_DUMPBIN
 
846
DUMPBIN
 
847
LD
 
848
FGREP
 
849
EGREP
 
850
GREP
 
851
SED
 
852
am__fastdepCC_FALSE
 
853
am__fastdepCC_TRUE
 
854
CCDEPMODE
 
855
AMDEPBACKSLASH
 
856
AMDEP_FALSE
 
857
AMDEP_TRUE
 
858
am__quote
 
859
am__include
 
860
DEPDIR
 
861
OBJEXT
 
862
EXEEXT
 
863
ac_ct_CC
 
864
CPPFLAGS
 
865
LDFLAGS
 
866
CFLAGS
 
867
CC
 
868
host_os
 
869
host_vendor
 
870
host_cpu
 
871
host
 
872
build_os
 
873
build_vendor
 
874
build_cpu
 
875
build
 
876
LIBTOOL
 
877
DRIVER_NAME
 
878
MAINT
 
879
MAINTAINER_MODE_FALSE
 
880
MAINTAINER_MODE_TRUE
 
881
am__untar
 
882
am__tar
 
883
AMTAR
 
884
am__leading_dot
 
885
SET_MAKE
 
886
AWK
 
887
mkdir_p
 
888
MKDIR_P
 
889
INSTALL_STRIP_PROGRAM
 
890
STRIP
 
891
install_sh
 
892
MAKEINFO
 
893
AUTOHEADER
 
894
AUTOMAKE
 
895
AUTOCONF
 
896
ACLOCAL
 
897
VERSION
 
898
PACKAGE
 
899
CYGPATH_W
 
900
am__isrc
 
901
INSTALL_DATA
 
902
INSTALL_SCRIPT
 
903
INSTALL_PROGRAM
 
904
target_alias
 
905
host_alias
 
906
build_alias
 
907
LIBS
 
908
ECHO_T
 
909
ECHO_N
 
910
ECHO_C
 
911
DEFS
 
912
mandir
 
913
localedir
 
914
libdir
 
915
psdir
 
916
pdfdir
 
917
dvidir
 
918
htmldir
 
919
infodir
 
920
docdir
 
921
oldincludedir
 
922
includedir
 
923
localstatedir
 
924
sharedstatedir
 
925
sysconfdir
 
926
datadir
 
927
datarootdir
 
928
libexecdir
 
929
sbindir
 
930
bindir
 
931
program_transform_name
 
932
prefix
 
933
exec_prefix
 
934
PACKAGE_BUGREPORT
 
935
PACKAGE_STRING
 
936
PACKAGE_VERSION
 
937
PACKAGE_TARNAME
 
938
PACKAGE_NAME
 
939
PATH_SEPARATOR
 
940
SHELL'
 
941
ac_subst_files=''
 
942
ac_user_opts='
 
943
enable_option_checking
 
944
enable_maintainer_mode
 
945
enable_static
 
946
enable_shared
 
947
with_pic
 
948
enable_fast_install
 
949
enable_dependency_tracking
 
950
with_gnu_ld
 
951
enable_libtool_lock
 
952
enable_strict_compilation
 
953
with_release_version
 
954
enable_silent_rules
 
955
with_xorg_module_dir
 
956
enable_tools
 
957
'
 
958
      ac_precious_vars='build_alias
 
959
host_alias
 
960
target_alias
 
961
CC
 
962
CFLAGS
 
963
LDFLAGS
 
964
LIBS
 
965
CPPFLAGS
 
966
CPP
 
967
PKG_CONFIG
 
968
XORG_CFLAGS
 
969
XORG_LIBS
 
970
XORG16_CFLAGS
 
971
XORG16_LIBS
 
972
XTST_1_1_CFLAGS
 
973
XTST_1_1_LIBS
 
974
RECORDPROTO_1_13_CFLAGS
 
975
RECORDPROTO_1_13_LIBS
 
976
XI_CFLAGS
 
977
XI_LIBS'
 
978
 
 
979
 
 
980
# Initialize some variables set by options.
 
981
ac_init_help=
 
982
ac_init_version=false
 
983
ac_unrecognized_opts=
 
984
ac_unrecognized_sep=
 
985
# The variables have the same names as the options, with
 
986
# dashes changed to underlines.
 
987
cache_file=/dev/null
 
988
exec_prefix=NONE
 
989
no_create=
 
990
no_recursion=
 
991
prefix=NONE
 
992
program_prefix=NONE
 
993
program_suffix=NONE
 
994
program_transform_name=s,x,x,
 
995
silent=
 
996
site=
 
997
srcdir=
 
998
verbose=
 
999
x_includes=NONE
 
1000
x_libraries=NONE
 
1001
 
 
1002
# Installation directory options.
 
1003
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1004
# and all the variables that are supposed to be based on exec_prefix
 
1005
# by default will actually change.
 
1006
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1007
# (The list follows the same order as the GNU Coding Standards.)
 
1008
bindir='${exec_prefix}/bin'
 
1009
sbindir='${exec_prefix}/sbin'
 
1010
libexecdir='${exec_prefix}/libexec'
 
1011
datarootdir='${prefix}/share'
 
1012
datadir='${datarootdir}'
 
1013
sysconfdir='${prefix}/etc'
 
1014
sharedstatedir='${prefix}/com'
 
1015
localstatedir='${prefix}/var'
 
1016
includedir='${prefix}/include'
 
1017
oldincludedir='/usr/include'
 
1018
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1019
infodir='${datarootdir}/info'
 
1020
htmldir='${docdir}'
 
1021
dvidir='${docdir}'
 
1022
pdfdir='${docdir}'
 
1023
psdir='${docdir}'
 
1024
libdir='${exec_prefix}/lib'
 
1025
localedir='${datarootdir}/locale'
 
1026
mandir='${datarootdir}/man'
 
1027
 
 
1028
ac_prev=
 
1029
ac_dashdash=
 
1030
for ac_option
 
1031
do
 
1032
  # If the previous option needs an argument, assign it.
 
1033
  if test -n "$ac_prev"; then
 
1034
    eval $ac_prev=\$ac_option
 
1035
    ac_prev=
 
1036
    continue
 
1037
  fi
 
1038
 
 
1039
  case $ac_option in
 
1040
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1041
  *)    ac_optarg=yes ;;
 
1042
  esac
 
1043
 
 
1044
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1045
 
 
1046
  case $ac_dashdash$ac_option in
 
1047
  --)
 
1048
    ac_dashdash=yes ;;
 
1049
 
 
1050
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1051
    ac_prev=bindir ;;
 
1052
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1053
    bindir=$ac_optarg ;;
 
1054
 
 
1055
  -build | --build | --buil | --bui | --bu)
 
1056
    ac_prev=build_alias ;;
 
1057
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1058
    build_alias=$ac_optarg ;;
 
1059
 
 
1060
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1061
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1062
    ac_prev=cache_file ;;
 
1063
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1064
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1065
    cache_file=$ac_optarg ;;
 
1066
 
 
1067
  --config-cache | -C)
 
1068
    cache_file=config.cache ;;
 
1069
 
 
1070
  -datadir | --datadir | --datadi | --datad)
 
1071
    ac_prev=datadir ;;
 
1072
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1073
    datadir=$ac_optarg ;;
 
1074
 
 
1075
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1076
  | --dataroo | --dataro | --datar)
 
1077
    ac_prev=datarootdir ;;
 
1078
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1079
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1080
    datarootdir=$ac_optarg ;;
 
1081
 
 
1082
  -disable-* | --disable-*)
 
1083
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1084
    # Reject names that are not valid shell variable names.
 
1085
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1086
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1087
   { (exit 1); exit 1; }; }
 
1088
    ac_useropt_orig=$ac_useropt
 
1089
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1090
    case $ac_user_opts in
 
1091
      *"
 
1092
"enable_$ac_useropt"
 
1093
"*) ;;
 
1094
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1095
         ac_unrecognized_sep=', ';;
 
1096
    esac
 
1097
    eval enable_$ac_useropt=no ;;
 
1098
 
 
1099
  -docdir | --docdir | --docdi | --doc | --do)
 
1100
    ac_prev=docdir ;;
 
1101
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1102
    docdir=$ac_optarg ;;
 
1103
 
 
1104
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1105
    ac_prev=dvidir ;;
 
1106
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1107
    dvidir=$ac_optarg ;;
 
1108
 
 
1109
  -enable-* | --enable-*)
 
1110
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1111
    # Reject names that are not valid shell variable names.
 
1112
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1113
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1114
   { (exit 1); exit 1; }; }
 
1115
    ac_useropt_orig=$ac_useropt
 
1116
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1117
    case $ac_user_opts in
 
1118
      *"
 
1119
"enable_$ac_useropt"
 
1120
"*) ;;
 
1121
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1122
         ac_unrecognized_sep=', ';;
 
1123
    esac
 
1124
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1125
 
 
1126
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1127
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1128
  | --exec | --exe | --ex)
 
1129
    ac_prev=exec_prefix ;;
 
1130
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1131
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1132
  | --exec=* | --exe=* | --ex=*)
 
1133
    exec_prefix=$ac_optarg ;;
 
1134
 
 
1135
  -gas | --gas | --ga | --g)
 
1136
    # Obsolete; use --with-gas.
 
1137
    with_gas=yes ;;
 
1138
 
 
1139
  -help | --help | --hel | --he | -h)
 
1140
    ac_init_help=long ;;
 
1141
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1142
    ac_init_help=recursive ;;
 
1143
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1144
    ac_init_help=short ;;
 
1145
 
 
1146
  -host | --host | --hos | --ho)
 
1147
    ac_prev=host_alias ;;
 
1148
  -host=* | --host=* | --hos=* | --ho=*)
 
1149
    host_alias=$ac_optarg ;;
 
1150
 
 
1151
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1152
    ac_prev=htmldir ;;
 
1153
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1154
  | --ht=*)
 
1155
    htmldir=$ac_optarg ;;
 
1156
 
 
1157
  -includedir | --includedir | --includedi | --included | --include \
 
1158
  | --includ | --inclu | --incl | --inc)
 
1159
    ac_prev=includedir ;;
 
1160
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1161
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1162
    includedir=$ac_optarg ;;
 
1163
 
 
1164
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1165
    ac_prev=infodir ;;
 
1166
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1167
    infodir=$ac_optarg ;;
 
1168
 
 
1169
  -libdir | --libdir | --libdi | --libd)
 
1170
    ac_prev=libdir ;;
 
1171
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1172
    libdir=$ac_optarg ;;
 
1173
 
 
1174
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1175
  | --libexe | --libex | --libe)
 
1176
    ac_prev=libexecdir ;;
 
1177
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1178
  | --libexe=* | --libex=* | --libe=*)
 
1179
    libexecdir=$ac_optarg ;;
 
1180
 
 
1181
  -localedir | --localedir | --localedi | --localed | --locale)
 
1182
    ac_prev=localedir ;;
 
1183
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1184
    localedir=$ac_optarg ;;
 
1185
 
 
1186
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1187
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1188
    ac_prev=localstatedir ;;
 
1189
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1190
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1191
    localstatedir=$ac_optarg ;;
 
1192
 
 
1193
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1194
    ac_prev=mandir ;;
 
1195
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1196
    mandir=$ac_optarg ;;
 
1197
 
 
1198
  -nfp | --nfp | --nf)
 
1199
    # Obsolete; use --without-fp.
 
1200
    with_fp=no ;;
 
1201
 
 
1202
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1203
  | --no-cr | --no-c | -n)
 
1204
    no_create=yes ;;
 
1205
 
 
1206
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1207
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1208
    no_recursion=yes ;;
 
1209
 
 
1210
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1211
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1212
  | --oldin | --oldi | --old | --ol | --o)
 
1213
    ac_prev=oldincludedir ;;
 
1214
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1215
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1216
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1217
    oldincludedir=$ac_optarg ;;
 
1218
 
 
1219
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1220
    ac_prev=prefix ;;
 
1221
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1222
    prefix=$ac_optarg ;;
 
1223
 
 
1224
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1225
  | --program-pre | --program-pr | --program-p)
 
1226
    ac_prev=program_prefix ;;
 
1227
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1228
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1229
    program_prefix=$ac_optarg ;;
 
1230
 
 
1231
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1232
  | --program-suf | --program-su | --program-s)
 
1233
    ac_prev=program_suffix ;;
 
1234
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1235
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1236
    program_suffix=$ac_optarg ;;
 
1237
 
 
1238
  -program-transform-name | --program-transform-name \
 
1239
  | --program-transform-nam | --program-transform-na \
 
1240
  | --program-transform-n | --program-transform- \
 
1241
  | --program-transform | --program-transfor \
 
1242
  | --program-transfo | --program-transf \
 
1243
  | --program-trans | --program-tran \
 
1244
  | --progr-tra | --program-tr | --program-t)
 
1245
    ac_prev=program_transform_name ;;
 
1246
  -program-transform-name=* | --program-transform-name=* \
 
1247
  | --program-transform-nam=* | --program-transform-na=* \
 
1248
  | --program-transform-n=* | --program-transform-=* \
 
1249
  | --program-transform=* | --program-transfor=* \
 
1250
  | --program-transfo=* | --program-transf=* \
 
1251
  | --program-trans=* | --program-tran=* \
 
1252
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1253
    program_transform_name=$ac_optarg ;;
 
1254
 
 
1255
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1256
    ac_prev=pdfdir ;;
 
1257
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1258
    pdfdir=$ac_optarg ;;
 
1259
 
 
1260
  -psdir | --psdir | --psdi | --psd | --ps)
 
1261
    ac_prev=psdir ;;
 
1262
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1263
    psdir=$ac_optarg ;;
 
1264
 
 
1265
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1266
  | -silent | --silent | --silen | --sile | --sil)
 
1267
    silent=yes ;;
 
1268
 
 
1269
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1270
    ac_prev=sbindir ;;
 
1271
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1272
  | --sbi=* | --sb=*)
 
1273
    sbindir=$ac_optarg ;;
 
1274
 
 
1275
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1276
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1277
  | --sharedst | --shareds | --shared | --share | --shar \
 
1278
  | --sha | --sh)
 
1279
    ac_prev=sharedstatedir ;;
 
1280
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1281
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1282
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1283
  | --sha=* | --sh=*)
 
1284
    sharedstatedir=$ac_optarg ;;
 
1285
 
 
1286
  -site | --site | --sit)
 
1287
    ac_prev=site ;;
 
1288
  -site=* | --site=* | --sit=*)
 
1289
    site=$ac_optarg ;;
 
1290
 
 
1291
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1292
    ac_prev=srcdir ;;
 
1293
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1294
    srcdir=$ac_optarg ;;
 
1295
 
 
1296
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1297
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1298
    ac_prev=sysconfdir ;;
 
1299
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1300
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1301
    sysconfdir=$ac_optarg ;;
 
1302
 
 
1303
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1304
    ac_prev=target_alias ;;
 
1305
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1306
    target_alias=$ac_optarg ;;
 
1307
 
 
1308
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1309
    verbose=yes ;;
 
1310
 
 
1311
  -version | --version | --versio | --versi | --vers | -V)
 
1312
    ac_init_version=: ;;
 
1313
 
 
1314
  -with-* | --with-*)
 
1315
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1316
    # Reject names that are not valid shell variable names.
 
1317
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1318
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1319
   { (exit 1); exit 1; }; }
 
1320
    ac_useropt_orig=$ac_useropt
 
1321
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1322
    case $ac_user_opts in
 
1323
      *"
 
1324
"with_$ac_useropt"
 
1325
"*) ;;
 
1326
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1327
         ac_unrecognized_sep=', ';;
 
1328
    esac
 
1329
    eval with_$ac_useropt=\$ac_optarg ;;
 
1330
 
 
1331
  -without-* | --without-*)
 
1332
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1333
    # Reject names that are not valid shell variable names.
 
1334
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1335
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1336
   { (exit 1); exit 1; }; }
 
1337
    ac_useropt_orig=$ac_useropt
 
1338
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1339
    case $ac_user_opts in
 
1340
      *"
 
1341
"with_$ac_useropt"
 
1342
"*) ;;
 
1343
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1344
         ac_unrecognized_sep=', ';;
 
1345
    esac
 
1346
    eval with_$ac_useropt=no ;;
 
1347
 
 
1348
  --x)
 
1349
    # Obsolete; use --with-x.
 
1350
    with_x=yes ;;
 
1351
 
 
1352
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1353
  | --x-incl | --x-inc | --x-in | --x-i)
 
1354
    ac_prev=x_includes ;;
 
1355
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1356
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1357
    x_includes=$ac_optarg ;;
 
1358
 
 
1359
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1360
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1361
    ac_prev=x_libraries ;;
 
1362
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1363
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1364
    x_libraries=$ac_optarg ;;
 
1365
 
 
1366
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1367
Try \`$0 --help' for more information." >&2
 
1368
   { (exit 1); exit 1; }; }
 
1369
    ;;
 
1370
 
 
1371
  *=*)
 
1372
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1373
    # Reject names that are not valid shell variable names.
 
1374
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1375
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1376
   { (exit 1); exit 1; }; }
 
1377
    eval $ac_envvar=\$ac_optarg
 
1378
    export $ac_envvar ;;
 
1379
 
 
1380
  *)
 
1381
    # FIXME: should be removed in autoconf 3.0.
 
1382
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1383
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1384
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1385
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1386
    ;;
 
1387
 
 
1388
  esac
 
1389
done
 
1390
 
 
1391
if test -n "$ac_prev"; then
 
1392
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1393
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1394
   { (exit 1); exit 1; }; }
 
1395
fi
 
1396
 
 
1397
if test -n "$ac_unrecognized_opts"; then
 
1398
  case $enable_option_checking in
 
1399
    no) ;;
 
1400
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1401
   { (exit 1); exit 1; }; } ;;
 
1402
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1403
  esac
 
1404
fi
 
1405
 
 
1406
# Check all directory arguments for consistency.
 
1407
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1408
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1409
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1410
                libdir localedir mandir
 
1411
do
 
1412
  eval ac_val=\$$ac_var
 
1413
  # Remove trailing slashes.
 
1414
  case $ac_val in
 
1415
    */ )
 
1416
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1417
      eval $ac_var=\$ac_val;;
 
1418
  esac
 
1419
  # Be sure to have absolute directory names.
 
1420
  case $ac_val in
 
1421
    [\\/$]* | ?:[\\/]* )  continue;;
 
1422
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1423
  esac
 
1424
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1425
   { (exit 1); exit 1; }; }
 
1426
done
 
1427
 
 
1428
# There might be people who depend on the old broken behavior: `$host'
 
1429
# used to hold the argument of --host etc.
 
1430
# FIXME: To remove some day.
 
1431
build=$build_alias
 
1432
host=$host_alias
 
1433
target=$target_alias
 
1434
 
 
1435
# FIXME: To remove some day.
 
1436
if test "x$host_alias" != x; then
 
1437
  if test "x$build_alias" = x; then
 
1438
    cross_compiling=maybe
 
1439
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1440
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1441
  elif test "x$build_alias" != "x$host_alias"; then
 
1442
    cross_compiling=yes
 
1443
  fi
 
1444
fi
 
1445
 
 
1446
ac_tool_prefix=
 
1447
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1448
 
 
1449
test "$silent" = yes && exec 6>/dev/null
 
1450
 
 
1451
 
 
1452
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1453
ac_ls_di=`ls -di .` &&
 
1454
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1455
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1456
   { (exit 1); exit 1; }; }
 
1457
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1458
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1459
   { (exit 1); exit 1; }; }
 
1460
 
 
1461
 
 
1462
# Find the source files, if location was not specified.
 
1463
if test -z "$srcdir"; then
 
1464
  ac_srcdir_defaulted=yes
 
1465
  # Try the directory containing this script, then the parent directory.
 
1466
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1467
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1468
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1469
         X"$as_myself" : 'X\(//\)$' \| \
 
1470
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1471
$as_echo X"$as_myself" |
 
1472
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1473
            s//\1/
 
1474
            q
 
1475
          }
 
1476
          /^X\(\/\/\)[^/].*/{
 
1477
            s//\1/
 
1478
            q
 
1479
          }
 
1480
          /^X\(\/\/\)$/{
 
1481
            s//\1/
 
1482
            q
 
1483
          }
 
1484
          /^X\(\/\).*/{
 
1485
            s//\1/
 
1486
            q
 
1487
          }
 
1488
          s/.*/./; q'`
 
1489
  srcdir=$ac_confdir
 
1490
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1491
    srcdir=..
 
1492
  fi
 
1493
else
 
1494
  ac_srcdir_defaulted=no
 
1495
fi
 
1496
if test ! -r "$srcdir/$ac_unique_file"; then
 
1497
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1498
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1499
   { (exit 1); exit 1; }; }
 
1500
fi
 
1501
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1502
ac_abs_confdir=`(
 
1503
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1504
   { (exit 1); exit 1; }; }
 
1505
        pwd)`
 
1506
# When building in place, set srcdir=.
 
1507
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1508
  srcdir=.
 
1509
fi
 
1510
# Remove unnecessary trailing slashes from srcdir.
 
1511
# Double slashes in file names in object file debugging info
 
1512
# mess up M-x gdb in Emacs.
 
1513
case $srcdir in
 
1514
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1515
esac
 
1516
for ac_var in $ac_precious_vars; do
 
1517
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1518
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1519
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1520
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1521
done
 
1522
 
 
1523
#
 
1524
# Report the --help message.
 
1525
#
 
1526
if test "$ac_init_help" = "long"; then
 
1527
  # Omit some internal or obsolete options to make the list less imposing.
 
1528
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1529
  cat <<_ACEOF
 
1530
\`configure' configures xf86-input-synaptics 1.2.2 to adapt to many kinds of systems.
 
1531
 
 
1532
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1533
 
 
1534
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1535
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1536
 
 
1537
Defaults for the options are specified in brackets.
 
1538
 
 
1539
Configuration:
 
1540
  -h, --help              display this help and exit
 
1541
      --help=short        display options specific to this package
 
1542
      --help=recursive    display the short help of all the included packages
 
1543
  -V, --version           display version information and exit
 
1544
  -q, --quiet, --silent   do not print \`checking...' messages
 
1545
      --cache-file=FILE   cache test results in FILE [disabled]
 
1546
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1547
  -n, --no-create         do not create output files
 
1548
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1549
 
 
1550
Installation directories:
 
1551
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1552
                          [$ac_default_prefix]
 
1553
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1554
                          [PREFIX]
 
1555
 
 
1556
By default, \`make install' will install all the files in
 
1557
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1558
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1559
for instance \`--prefix=\$HOME'.
 
1560
 
 
1561
For better control, use the options below.
 
1562
 
 
1563
Fine tuning of the installation directories:
 
1564
  --bindir=DIR            user executables [EPREFIX/bin]
 
1565
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1566
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1567
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1568
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1569
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1570
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1571
  --includedir=DIR        C header files [PREFIX/include]
 
1572
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1573
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1574
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1575
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1576
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1577
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1578
  --docdir=DIR            documentation root
 
1579
                          [DATAROOTDIR/doc/xf86-input-synaptics]
 
1580
  --htmldir=DIR           html documentation [DOCDIR]
 
1581
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1582
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1583
  --psdir=DIR             ps documentation [DOCDIR]
 
1584
_ACEOF
 
1585
 
 
1586
  cat <<\_ACEOF
 
1587
 
 
1588
Program names:
 
1589
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1590
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1591
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1592
 
 
1593
System types:
 
1594
  --build=BUILD     configure for building on BUILD [guessed]
 
1595
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1596
_ACEOF
 
1597
fi
 
1598
 
 
1599
if test -n "$ac_init_help"; then
 
1600
  case $ac_init_help in
 
1601
     short | recursive ) echo "Configuration of xf86-input-synaptics 1.2.2:";;
 
1602
   esac
 
1603
  cat <<\_ACEOF
 
1604
 
 
1605
Optional Features:
 
1606
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1607
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1608
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1609
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1610
                          (and sometimes confusing) to the casual installer
 
1611
  --enable-static[=PKGS]  build static libraries [default=no]
 
1612
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1613
  --enable-fast-install[=PKGS]
 
1614
                          optimize for fast installation [default=yes]
 
1615
  --disable-dependency-tracking  speeds up one-time build
 
1616
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1617
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1618
  --enable-strict-compilation
 
1619
                          Enable all warnings from compiler and make them
 
1620
                          errors (default: disabled)
 
1621
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1622
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1623
  --enable-tools          Build synclient and syndaemon [default=auto]
 
1624
 
 
1625
Optional Packages:
 
1626
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1627
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1628
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1629
                          both]
 
1630
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1631
  --with-release-version=STRING
 
1632
                          Use release version string in package name
 
1633
  --with-xorg-module-dir=DIR
 
1634
                          Default xorg module directory
 
1635
                          [default=$libdir/xorg/modules]
 
1636
 
 
1637
Some influential environment variables:
 
1638
  CC          C compiler command
 
1639
  CFLAGS      C compiler flags
 
1640
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1641
              nonstandard directory <lib dir>
 
1642
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1643
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1644
              you have headers in a nonstandard directory <include dir>
 
1645
  CPP         C preprocessor
 
1646
  PKG_CONFIG  path to pkg-config utility
 
1647
  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
 
1648
  XORG_LIBS   linker flags for XORG, overriding pkg-config
 
1649
  XORG16_CFLAGS
 
1650
              C compiler flags for XORG16, overriding pkg-config
 
1651
  XORG16_LIBS linker flags for XORG16, overriding pkg-config
 
1652
  XTST_1_1_CFLAGS
 
1653
              C compiler flags for XTST_1_1, overriding pkg-config
 
1654
  XTST_1_1_LIBS
 
1655
              linker flags for XTST_1_1, overriding pkg-config
 
1656
  RECORDPROTO_1_13_CFLAGS
 
1657
              C compiler flags for RECORDPROTO_1_13, overriding pkg-config
 
1658
  RECORDPROTO_1_13_LIBS
 
1659
              linker flags for RECORDPROTO_1_13, overriding pkg-config
 
1660
  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
 
1661
  XI_LIBS     linker flags for XI, overriding pkg-config
 
1662
 
 
1663
Use these variables to override the choices made by `configure' or to help
 
1664
it to find libraries and programs with nonstandard names/locations.
 
1665
 
 
1666
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
 
1667
_ACEOF
 
1668
ac_status=$?
 
1669
fi
 
1670
 
 
1671
if test "$ac_init_help" = "recursive"; then
 
1672
  # If there are subdirs, report their specific --help.
 
1673
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1674
    test -d "$ac_dir" ||
 
1675
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1676
      continue
 
1677
    ac_builddir=.
 
1678
 
 
1679
case "$ac_dir" in
 
1680
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1681
*)
 
1682
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1683
  # A ".." for each directory in $ac_dir_suffix.
 
1684
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1685
  case $ac_top_builddir_sub in
 
1686
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1687
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1688
  esac ;;
 
1689
esac
 
1690
ac_abs_top_builddir=$ac_pwd
 
1691
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1692
# for backward compatibility:
 
1693
ac_top_builddir=$ac_top_build_prefix
 
1694
 
 
1695
case $srcdir in
 
1696
  .)  # We are building in place.
 
1697
    ac_srcdir=.
 
1698
    ac_top_srcdir=$ac_top_builddir_sub
 
1699
    ac_abs_top_srcdir=$ac_pwd ;;
 
1700
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1701
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1702
    ac_top_srcdir=$srcdir
 
1703
    ac_abs_top_srcdir=$srcdir ;;
 
1704
  *) # Relative name.
 
1705
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1706
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1707
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1708
esac
 
1709
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1710
 
 
1711
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1712
    # Check for guested configure.
 
1713
    if test -f "$ac_srcdir/configure.gnu"; then
 
1714
      echo &&
 
1715
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1716
    elif test -f "$ac_srcdir/configure"; then
 
1717
      echo &&
 
1718
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1719
    else
 
1720
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1721
    fi || ac_status=$?
 
1722
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1723
  done
 
1724
fi
 
1725
 
 
1726
test -n "$ac_init_help" && exit $ac_status
 
1727
if $ac_init_version; then
 
1728
  cat <<\_ACEOF
 
1729
xf86-input-synaptics configure 1.2.2
 
1730
generated by GNU Autoconf 2.63
 
1731
 
 
1732
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1733
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1734
This configure script is free software; the Free Software Foundation
 
1735
gives unlimited permission to copy, distribute and modify it.
 
1736
_ACEOF
 
1737
  exit
 
1738
fi
 
1739
cat >config.log <<_ACEOF
 
1740
This file contains any messages produced by compilers while
 
1741
running configure, to aid debugging if configure makes a mistake.
 
1742
 
 
1743
It was created by xf86-input-synaptics $as_me 1.2.2, which was
 
1744
generated by GNU Autoconf 2.63.  Invocation command line was
 
1745
 
 
1746
  $ $0 $@
 
1747
 
 
1748
_ACEOF
 
1749
exec 5>>config.log
 
1750
{
 
1751
cat <<_ASUNAME
 
1752
## --------- ##
 
1753
## Platform. ##
 
1754
## --------- ##
 
1755
 
 
1756
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1757
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1758
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1759
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1760
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1761
 
 
1762
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1763
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1764
 
 
1765
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1766
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1767
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1768
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1769
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1770
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1771
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1772
 
 
1773
_ASUNAME
 
1774
 
 
1775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1776
for as_dir in $PATH
 
1777
do
 
1778
  IFS=$as_save_IFS
 
1779
  test -z "$as_dir" && as_dir=.
 
1780
  $as_echo "PATH: $as_dir"
 
1781
done
 
1782
IFS=$as_save_IFS
 
1783
 
 
1784
} >&5
 
1785
 
 
1786
cat >&5 <<_ACEOF
 
1787
 
 
1788
 
 
1789
## ----------- ##
 
1790
## Core tests. ##
 
1791
## ----------- ##
 
1792
 
 
1793
_ACEOF
 
1794
 
 
1795
 
 
1796
# Keep a trace of the command line.
 
1797
# Strip out --no-create and --no-recursion so they do not pile up.
 
1798
# Strip out --silent because we don't want to record it for future runs.
 
1799
# Also quote any args containing shell meta-characters.
 
1800
# Make two passes to allow for proper duplicate-argument suppression.
 
1801
ac_configure_args=
 
1802
ac_configure_args0=
 
1803
ac_configure_args1=
 
1804
ac_must_keep_next=false
 
1805
for ac_pass in 1 2
 
1806
do
 
1807
  for ac_arg
 
1808
  do
 
1809
    case $ac_arg in
 
1810
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1811
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1812
    | -silent | --silent | --silen | --sile | --sil)
 
1813
      continue ;;
 
1814
    *\'*)
 
1815
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1816
    esac
 
1817
    case $ac_pass in
 
1818
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1819
    2)
 
1820
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1821
      if test $ac_must_keep_next = true; then
 
1822
        ac_must_keep_next=false # Got value, back to normal.
 
1823
      else
 
1824
        case $ac_arg in
 
1825
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1826
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1827
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1828
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1829
            case "$ac_configure_args0 " in
 
1830
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1831
            esac
 
1832
            ;;
 
1833
          -* ) ac_must_keep_next=true ;;
 
1834
        esac
 
1835
      fi
 
1836
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1837
      ;;
 
1838
    esac
 
1839
  done
 
1840
done
 
1841
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1842
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1843
 
 
1844
# When interrupted or exit'd, cleanup temporary files, and complete
 
1845
# config.log.  We remove comments because anyway the quotes in there
 
1846
# would cause problems or look ugly.
 
1847
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1848
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1849
trap 'exit_status=$?
 
1850
  # Save into config.log some information that might help in debugging.
 
1851
  {
 
1852
    echo
 
1853
 
 
1854
    cat <<\_ASBOX
 
1855
## ---------------- ##
 
1856
## Cache variables. ##
 
1857
## ---------------- ##
 
1858
_ASBOX
 
1859
    echo
 
1860
    # The following way of writing the cache mishandles newlines in values,
 
1861
(
 
1862
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1863
    eval ac_val=\$$ac_var
 
1864
    case $ac_val in #(
 
1865
    *${as_nl}*)
 
1866
      case $ac_var in #(
 
1867
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1868
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1869
      esac
 
1870
      case $ac_var in #(
 
1871
      _ | IFS | as_nl) ;; #(
 
1872
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1873
      *) $as_unset $ac_var ;;
 
1874
      esac ;;
 
1875
    esac
 
1876
  done
 
1877
  (set) 2>&1 |
 
1878
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1879
    *${as_nl}ac_space=\ *)
 
1880
      sed -n \
 
1881
        "s/'\''/'\''\\\\'\'''\''/g;
 
1882
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1883
      ;; #(
 
1884
    *)
 
1885
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1886
      ;;
 
1887
    esac |
 
1888
    sort
 
1889
)
 
1890
    echo
 
1891
 
 
1892
    cat <<\_ASBOX
 
1893
## ----------------- ##
 
1894
## Output variables. ##
 
1895
## ----------------- ##
 
1896
_ASBOX
 
1897
    echo
 
1898
    for ac_var in $ac_subst_vars
 
1899
    do
 
1900
      eval ac_val=\$$ac_var
 
1901
      case $ac_val in
 
1902
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1903
      esac
 
1904
      $as_echo "$ac_var='\''$ac_val'\''"
 
1905
    done | sort
 
1906
    echo
 
1907
 
 
1908
    if test -n "$ac_subst_files"; then
 
1909
      cat <<\_ASBOX
 
1910
## ------------------- ##
 
1911
## File substitutions. ##
 
1912
## ------------------- ##
 
1913
_ASBOX
 
1914
      echo
 
1915
      for ac_var in $ac_subst_files
 
1916
      do
 
1917
        eval ac_val=\$$ac_var
 
1918
        case $ac_val in
 
1919
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1920
        esac
 
1921
        $as_echo "$ac_var='\''$ac_val'\''"
 
1922
      done | sort
 
1923
      echo
 
1924
    fi
 
1925
 
 
1926
    if test -s confdefs.h; then
 
1927
      cat <<\_ASBOX
 
1928
## ----------- ##
 
1929
## confdefs.h. ##
 
1930
## ----------- ##
 
1931
_ASBOX
 
1932
      echo
 
1933
      cat confdefs.h
 
1934
      echo
 
1935
    fi
 
1936
    test "$ac_signal" != 0 &&
 
1937
      $as_echo "$as_me: caught signal $ac_signal"
 
1938
    $as_echo "$as_me: exit $exit_status"
 
1939
  } >&5
 
1940
  rm -f core *.core core.conftest.* &&
 
1941
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1942
    exit $exit_status
 
1943
' 0
 
1944
for ac_signal in 1 2 13 15; do
 
1945
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1946
done
 
1947
ac_signal=0
 
1948
 
 
1949
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1950
rm -f -r conftest* confdefs.h
 
1951
 
 
1952
# Predefined preprocessor variables.
 
1953
 
 
1954
cat >>confdefs.h <<_ACEOF
 
1955
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1956
_ACEOF
 
1957
 
 
1958
 
 
1959
cat >>confdefs.h <<_ACEOF
 
1960
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1961
_ACEOF
 
1962
 
 
1963
 
 
1964
cat >>confdefs.h <<_ACEOF
 
1965
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1966
_ACEOF
 
1967
 
 
1968
 
 
1969
cat >>confdefs.h <<_ACEOF
 
1970
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1971
_ACEOF
 
1972
 
 
1973
 
 
1974
cat >>confdefs.h <<_ACEOF
 
1975
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1976
_ACEOF
 
1977
 
 
1978
 
 
1979
# Let the site file select an alternate cache file if it wants to.
 
1980
# Prefer an explicitly selected file to automatically selected ones.
 
1981
ac_site_file1=NONE
 
1982
ac_site_file2=NONE
 
1983
if test -n "$CONFIG_SITE"; then
 
1984
  ac_site_file1=$CONFIG_SITE
 
1985
elif test "x$prefix" != xNONE; then
 
1986
  ac_site_file1=$prefix/share/config.site
 
1987
  ac_site_file2=$prefix/etc/config.site
 
1988
else
 
1989
  ac_site_file1=$ac_default_prefix/share/config.site
 
1990
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1991
fi
 
1992
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1993
do
 
1994
  test "x$ac_site_file" = xNONE && continue
 
1995
  if test -r "$ac_site_file"; then
 
1996
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1997
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1998
    sed 's/^/| /' "$ac_site_file" >&5
 
1999
    . "$ac_site_file"
 
2000
  fi
 
2001
done
 
2002
 
 
2003
if test -r "$cache_file"; then
 
2004
  # Some versions of bash will fail to source /dev/null (special
 
2005
  # files actually), so we avoid doing that.
 
2006
  if test -f "$cache_file"; then
 
2007
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2008
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2009
    case $cache_file in
 
2010
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2011
      *)                      . "./$cache_file";;
 
2012
    esac
 
2013
  fi
 
2014
else
 
2015
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2016
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2017
  >$cache_file
 
2018
fi
 
2019
 
 
2020
# Check that the precious variables saved in the cache have kept the same
 
2021
# value.
 
2022
ac_cache_corrupted=false
 
2023
for ac_var in $ac_precious_vars; do
 
2024
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2025
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2026
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2027
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2028
  case $ac_old_set,$ac_new_set in
 
2029
    set,)
 
2030
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2031
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2032
      ac_cache_corrupted=: ;;
 
2033
    ,set)
 
2034
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2035
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2036
      ac_cache_corrupted=: ;;
 
2037
    ,);;
 
2038
    *)
 
2039
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2040
        # differences in whitespace do not lead to failure.
 
2041
        ac_old_val_w=`echo x $ac_old_val`
 
2042
        ac_new_val_w=`echo x $ac_new_val`
 
2043
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2044
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2045
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2046
          ac_cache_corrupted=:
 
2047
        else
 
2048
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2049
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2050
          eval $ac_var=\$ac_old_val
 
2051
        fi
 
2052
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2053
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2054
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2055
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2056
      fi;;
 
2057
  esac
 
2058
  # Pass precious variables to config.status.
 
2059
  if test "$ac_new_set" = set; then
 
2060
    case $ac_new_val in
 
2061
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2062
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2063
    esac
 
2064
    case " $ac_configure_args " in
 
2065
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2066
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2067
    esac
 
2068
  fi
 
2069
done
 
2070
if $ac_cache_corrupted; then
 
2071
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2072
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2073
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2074
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2075
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2076
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2077
   { (exit 1); exit 1; }; }
 
2078
fi
 
2079
 
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
 
 
2085
 
 
2086
 
 
2087
 
 
2088
 
 
2089
 
 
2090
 
 
2091
 
 
2092
 
 
2093
 
 
2094
 
 
2095
 
 
2096
 
 
2097
 
 
2098
 
 
2099
 
 
2100
 
 
2101
 
 
2102
 
 
2103
 
 
2104
ac_ext=c
 
2105
ac_cpp='$CPP $CPPFLAGS'
 
2106
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2107
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2108
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2109
 
 
2110
 
 
2111
 
 
2112
 
 
2113
ac_aux_dir=
 
2114
for ac_dir in . "$srcdir"/.; do
 
2115
  if test -f "$ac_dir/install-sh"; then
 
2116
    ac_aux_dir=$ac_dir
 
2117
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2118
    break
 
2119
  elif test -f "$ac_dir/install.sh"; then
 
2120
    ac_aux_dir=$ac_dir
 
2121
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2122
    break
 
2123
  elif test -f "$ac_dir/shtool"; then
 
2124
    ac_aux_dir=$ac_dir
 
2125
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2126
    break
 
2127
  fi
 
2128
done
 
2129
if test -z "$ac_aux_dir"; then
 
2130
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
 
2131
$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
 
2132
   { (exit 1); exit 1; }; }
 
2133
fi
 
2134
 
 
2135
# These three variables are undocumented and unsupported,
 
2136
# and are intended to be withdrawn in a future Autoconf release.
 
2137
# They can cause serious problems if a builder's source tree is in a directory
 
2138
# whose full name contains unusual characters.
 
2139
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2140
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2141
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2142
 
 
2143
 
 
2144
am__api_version='1.11'
 
2145
 
 
2146
# Find a good install program.  We prefer a C program (faster),
 
2147
# so one script is as good as another.  But avoid the broken or
 
2148
# incompatible versions:
 
2149
# SysV /etc/install, /usr/sbin/install
 
2150
# SunOS /usr/etc/install
 
2151
# IRIX /sbin/install
 
2152
# AIX /bin/install
 
2153
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2154
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2155
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2156
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2157
# OS/2's system install, which has a completely different semantic
 
2158
# ./install, which can be erroneously created by make from ./install.sh.
 
2159
# Reject install programs that cannot install multiple files.
 
2160
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2161
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2162
if test -z "$INSTALL"; then
 
2163
if test "${ac_cv_path_install+set}" = set; then
 
2164
  $as_echo_n "(cached) " >&6
 
2165
else
 
2166
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2167
for as_dir in $PATH
 
2168
do
 
2169
  IFS=$as_save_IFS
 
2170
  test -z "$as_dir" && as_dir=.
 
2171
  # Account for people who put trailing slashes in PATH elements.
 
2172
case $as_dir/ in
 
2173
  ./ | .// | /cC/* | \
 
2174
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2175
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2176
  /usr/ucb/* ) ;;
 
2177
  *)
 
2178
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2179
    # Don't use installbsd from OSF since it installs stuff as root
 
2180
    # by default.
 
2181
    for ac_prog in ginstall scoinst install; do
 
2182
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2183
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2184
          if test $ac_prog = install &&
 
2185
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2186
            # AIX install.  It has an incompatible calling convention.
 
2187
            :
 
2188
          elif test $ac_prog = install &&
 
2189
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2190
            # program-specific install script used by HP pwplus--don't use.
 
2191
            :
 
2192
          else
 
2193
            rm -rf conftest.one conftest.two conftest.dir
 
2194
            echo one > conftest.one
 
2195
            echo two > conftest.two
 
2196
            mkdir conftest.dir
 
2197
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2198
              test -s conftest.one && test -s conftest.two &&
 
2199
              test -s conftest.dir/conftest.one &&
 
2200
              test -s conftest.dir/conftest.two
 
2201
            then
 
2202
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2203
              break 3
 
2204
            fi
 
2205
          fi
 
2206
        fi
 
2207
      done
 
2208
    done
 
2209
    ;;
 
2210
esac
 
2211
 
 
2212
done
 
2213
IFS=$as_save_IFS
 
2214
 
 
2215
rm -rf conftest.one conftest.two conftest.dir
 
2216
 
 
2217
fi
 
2218
  if test "${ac_cv_path_install+set}" = set; then
 
2219
    INSTALL=$ac_cv_path_install
 
2220
  else
 
2221
    # As a last resort, use the slow shell script.  Don't cache a
 
2222
    # value for INSTALL within a source directory, because that will
 
2223
    # break other packages using the cache if that directory is
 
2224
    # removed, or if the value is a relative name.
 
2225
    INSTALL=$ac_install_sh
 
2226
  fi
 
2227
fi
 
2228
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2229
$as_echo "$INSTALL" >&6; }
 
2230
 
 
2231
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2232
# It thinks the first close brace ends the variable substitution.
 
2233
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2234
 
 
2235
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2236
 
 
2237
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2238
 
 
2239
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2240
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2241
# Just in case
 
2242
sleep 1
 
2243
echo timestamp > conftest.file
 
2244
# Reject unsafe characters in $srcdir or the absolute working directory
 
2245
# name.  Accept space and tab only in the latter.
 
2246
am_lf='
 
2247
'
 
2248
case `pwd` in
 
2249
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2250
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2251
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2252
   { (exit 1); exit 1; }; };;
 
2253
esac
 
2254
case $srcdir in
 
2255
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2256
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2257
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2258
   { (exit 1); exit 1; }; };;
 
2259
esac
 
2260
 
 
2261
# Do `set' in a subshell so we don't clobber the current shell's
 
2262
# arguments.  Must try -L first in case configure is actually a
 
2263
# symlink; some systems play weird games with the mod time of symlinks
 
2264
# (eg FreeBSD returns the mod time of the symlink's containing
 
2265
# directory).
 
2266
if (
 
2267
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2268
   if test "$*" = "X"; then
 
2269
      # -L didn't work.
 
2270
      set X `ls -t "$srcdir/configure" conftest.file`
 
2271
   fi
 
2272
   rm -f conftest.file
 
2273
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2274
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2275
 
 
2276
      # If neither matched, then we have a broken ls.  This can happen
 
2277
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2278
      # broken ls alias from the environment.  This has actually
 
2279
      # happened.  Such a system could not be considered "sane".
 
2280
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2281
alias in your environment" >&5
 
2282
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2283
alias in your environment" >&2;}
 
2284
   { (exit 1); exit 1; }; }
 
2285
   fi
 
2286
 
 
2287
   test "$2" = conftest.file
 
2288
   )
 
2289
then
 
2290
   # Ok.
 
2291
   :
 
2292
else
 
2293
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2294
Check your system clock" >&5
 
2295
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2296
Check your system clock" >&2;}
 
2297
   { (exit 1); exit 1; }; }
 
2298
fi
 
2299
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2300
$as_echo "yes" >&6; }
 
2301
test "$program_prefix" != NONE &&
 
2302
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2303
# Use a double $ so make ignores it.
 
2304
test "$program_suffix" != NONE &&
 
2305
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2306
# Double any \ or $.
 
2307
# By default was `s,x,x', remove it if useless.
 
2308
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2309
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2310
 
 
2311
# expand $ac_aux_dir to an absolute path
 
2312
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2313
 
 
2314
if test x"${MISSING+set}" != xset; then
 
2315
  case $am_aux_dir in
 
2316
  *\ * | *\     *)
 
2317
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2318
  *)
 
2319
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2320
  esac
 
2321
fi
 
2322
# Use eval to expand $SHELL
 
2323
if eval "$MISSING --run true"; then
 
2324
  am_missing_run="$MISSING --run "
 
2325
else
 
2326
  am_missing_run=
 
2327
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2328
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2329
fi
 
2330
 
 
2331
if test x"${install_sh}" != xset; then
 
2332
  case $am_aux_dir in
 
2333
  *\ * | *\     *)
 
2334
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2335
  *)
 
2336
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2337
  esac
 
2338
fi
 
2339
 
 
2340
# Installed binaries are usually stripped using `strip' when the user
 
2341
# run `make install-strip'.  However `strip' might not be the right
 
2342
# tool to use in cross-compilation environments, therefore Automake
 
2343
# will honor the `STRIP' environment variable to overrule this program.
 
2344
if test "$cross_compiling" != no; then
 
2345
  if test -n "$ac_tool_prefix"; then
 
2346
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2347
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2348
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2349
$as_echo_n "checking for $ac_word... " >&6; }
 
2350
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2351
  $as_echo_n "(cached) " >&6
 
2352
else
 
2353
  if test -n "$STRIP"; then
 
2354
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2355
else
 
2356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2357
for as_dir in $PATH
 
2358
do
 
2359
  IFS=$as_save_IFS
 
2360
  test -z "$as_dir" && as_dir=.
 
2361
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2362
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2363
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2364
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2365
    break 2
 
2366
  fi
 
2367
done
 
2368
done
 
2369
IFS=$as_save_IFS
 
2370
 
 
2371
fi
 
2372
fi
 
2373
STRIP=$ac_cv_prog_STRIP
 
2374
if test -n "$STRIP"; then
 
2375
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2376
$as_echo "$STRIP" >&6; }
 
2377
else
 
2378
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2379
$as_echo "no" >&6; }
 
2380
fi
 
2381
 
 
2382
 
 
2383
fi
 
2384
if test -z "$ac_cv_prog_STRIP"; then
 
2385
  ac_ct_STRIP=$STRIP
 
2386
  # Extract the first word of "strip", so it can be a program name with args.
 
2387
set dummy strip; ac_word=$2
 
2388
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2389
$as_echo_n "checking for $ac_word... " >&6; }
 
2390
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2391
  $as_echo_n "(cached) " >&6
 
2392
else
 
2393
  if test -n "$ac_ct_STRIP"; then
 
2394
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2395
else
 
2396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2397
for as_dir in $PATH
 
2398
do
 
2399
  IFS=$as_save_IFS
 
2400
  test -z "$as_dir" && as_dir=.
 
2401
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2402
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2403
    ac_cv_prog_ac_ct_STRIP="strip"
 
2404
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2405
    break 2
 
2406
  fi
 
2407
done
 
2408
done
 
2409
IFS=$as_save_IFS
 
2410
 
 
2411
fi
 
2412
fi
 
2413
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2414
if test -n "$ac_ct_STRIP"; then
 
2415
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2416
$as_echo "$ac_ct_STRIP" >&6; }
 
2417
else
 
2418
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2419
$as_echo "no" >&6; }
 
2420
fi
 
2421
 
 
2422
  if test "x$ac_ct_STRIP" = x; then
 
2423
    STRIP=":"
 
2424
  else
 
2425
    case $cross_compiling:$ac_tool_warned in
 
2426
yes:)
 
2427
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2429
ac_tool_warned=yes ;;
 
2430
esac
 
2431
    STRIP=$ac_ct_STRIP
 
2432
  fi
 
2433
else
 
2434
  STRIP="$ac_cv_prog_STRIP"
 
2435
fi
 
2436
 
 
2437
fi
 
2438
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2439
 
 
2440
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2441
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2442
if test -z "$MKDIR_P"; then
 
2443
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2444
  $as_echo_n "(cached) " >&6
 
2445
else
 
2446
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2447
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2448
do
 
2449
  IFS=$as_save_IFS
 
2450
  test -z "$as_dir" && as_dir=.
 
2451
  for ac_prog in mkdir gmkdir; do
 
2452
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2453
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2454
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2455
             'mkdir (GNU coreutils) '* | \
 
2456
             'mkdir (coreutils) '* | \
 
2457
             'mkdir (fileutils) '4.1*)
 
2458
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2459
               break 3;;
 
2460
           esac
 
2461
         done
 
2462
       done
 
2463
done
 
2464
IFS=$as_save_IFS
 
2465
 
 
2466
fi
 
2467
 
 
2468
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2469
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2470
  else
 
2471
    # As a last resort, use the slow shell script.  Don't cache a
 
2472
    # value for MKDIR_P within a source directory, because that will
 
2473
    # break other packages using the cache if that directory is
 
2474
    # removed, or if the value is a relative name.
 
2475
    test -d ./--version && rmdir ./--version
 
2476
    MKDIR_P="$ac_install_sh -d"
 
2477
  fi
 
2478
fi
 
2479
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2480
$as_echo "$MKDIR_P" >&6; }
 
2481
 
 
2482
mkdir_p="$MKDIR_P"
 
2483
case $mkdir_p in
 
2484
  [\\/$]* | ?:[\\/]*) ;;
 
2485
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2486
esac
 
2487
 
 
2488
for ac_prog in gawk mawk nawk awk
 
2489
do
 
2490
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2491
set dummy $ac_prog; ac_word=$2
 
2492
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2493
$as_echo_n "checking for $ac_word... " >&6; }
 
2494
if test "${ac_cv_prog_AWK+set}" = set; then
 
2495
  $as_echo_n "(cached) " >&6
 
2496
else
 
2497
  if test -n "$AWK"; then
 
2498
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2499
else
 
2500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2501
for as_dir in $PATH
 
2502
do
 
2503
  IFS=$as_save_IFS
 
2504
  test -z "$as_dir" && as_dir=.
 
2505
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2506
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2507
    ac_cv_prog_AWK="$ac_prog"
 
2508
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2509
    break 2
 
2510
  fi
 
2511
done
 
2512
done
 
2513
IFS=$as_save_IFS
 
2514
 
 
2515
fi
 
2516
fi
 
2517
AWK=$ac_cv_prog_AWK
 
2518
if test -n "$AWK"; then
 
2519
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2520
$as_echo "$AWK" >&6; }
 
2521
else
 
2522
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2523
$as_echo "no" >&6; }
 
2524
fi
 
2525
 
 
2526
 
 
2527
  test -n "$AWK" && break
 
2528
done
 
2529
 
 
2530
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2531
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2532
set x ${MAKE-make}
 
2533
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2534
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2535
  $as_echo_n "(cached) " >&6
 
2536
else
 
2537
  cat >conftest.make <<\_ACEOF
 
2538
SHELL = /bin/sh
 
2539
all:
 
2540
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2541
_ACEOF
 
2542
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2543
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2544
  *@@@%%%=?*=@@@%%%*)
 
2545
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2546
  *)
 
2547
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2548
esac
 
2549
rm -f conftest.make
 
2550
fi
 
2551
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2552
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2553
$as_echo "yes" >&6; }
 
2554
  SET_MAKE=
 
2555
else
 
2556
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2557
$as_echo "no" >&6; }
 
2558
  SET_MAKE="MAKE=${MAKE-make}"
 
2559
fi
 
2560
 
 
2561
rm -rf .tst 2>/dev/null
 
2562
mkdir .tst 2>/dev/null
 
2563
if test -d .tst; then
 
2564
  am__leading_dot=.
 
2565
else
 
2566
  am__leading_dot=_
 
2567
fi
 
2568
rmdir .tst 2>/dev/null
 
2569
 
 
2570
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2571
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2572
  # is not polluted with repeated "-I."
 
2573
  am__isrc=' -I$(srcdir)'
 
2574
  # test to see if srcdir already configured
 
2575
  if test -f $srcdir/config.status; then
 
2576
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2577
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2578
   { (exit 1); exit 1; }; }
 
2579
  fi
 
2580
fi
 
2581
 
 
2582
# test whether we have cygpath
 
2583
if test -z "$CYGPATH_W"; then
 
2584
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2585
    CYGPATH_W='cygpath -w'
 
2586
  else
 
2587
    CYGPATH_W=echo
 
2588
  fi
 
2589
fi
 
2590
 
 
2591
 
 
2592
# Define the identity of the package.
 
2593
 PACKAGE='xf86-input-synaptics'
 
2594
 VERSION='1.2.2'
 
2595
 
 
2596
 
 
2597
cat >>confdefs.h <<_ACEOF
 
2598
#define PACKAGE "$PACKAGE"
 
2599
_ACEOF
 
2600
 
 
2601
 
 
2602
cat >>confdefs.h <<_ACEOF
 
2603
#define VERSION "$VERSION"
 
2604
_ACEOF
 
2605
 
 
2606
# Some tools Automake needs.
 
2607
 
 
2608
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2609
 
 
2610
 
 
2611
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2612
 
 
2613
 
 
2614
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2615
 
 
2616
 
 
2617
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2618
 
 
2619
 
 
2620
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2621
 
 
2622
# We need awk for the "check" target.  The system "awk" is bad on
 
2623
# some platforms.
 
2624
# Always define AMTAR for backward compatibility.
 
2625
 
 
2626
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2627
 
 
2628
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2629
 
 
2630
 
 
2631
 
 
2632
 
 
2633
 
 
2634
 
 
2635
 
 
2636
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2637
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2638
    # Check whether --enable-maintainer-mode was given.
 
2639
if test "${enable_maintainer_mode+set}" = set; then
 
2640
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2641
else
 
2642
  USE_MAINTAINER_MODE=no
 
2643
fi
 
2644
 
 
2645
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2646
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2647
   if test $USE_MAINTAINER_MODE = yes; then
 
2648
  MAINTAINER_MODE_TRUE=
 
2649
  MAINTAINER_MODE_FALSE='#'
 
2650
else
 
2651
  MAINTAINER_MODE_TRUE='#'
 
2652
  MAINTAINER_MODE_FALSE=
 
2653
fi
 
2654
 
 
2655
  MAINT=$MAINTAINER_MODE_TRUE
 
2656
 
 
2657
 
 
2658
 
 
2659
DRIVER_NAME=synaptics
 
2660
 
 
2661
 
 
2662
# Require xorg-macros: XORG_DEFAULT_OPTIONS
 
2663
 
 
2664
 
 
2665
 
 
2666
 
 
2667
 
 
2668
 
 
2669
 
 
2670
 
 
2671
 
 
2672
 
 
2673
 
 
2674
ac_config_headers="$ac_config_headers config.h"
 
2675
 
 
2676
 
 
2677
# Checks for programs.
 
2678
# Check whether --enable-static was given.
 
2679
if test "${enable_static+set}" = set; then
 
2680
  enableval=$enable_static; p=${PACKAGE-default}
 
2681
    case $enableval in
 
2682
    yes) enable_static=yes ;;
 
2683
    no) enable_static=no ;;
 
2684
    *)
 
2685
     enable_static=no
 
2686
      # Look at the argument we got.  We use all the common list separators.
 
2687
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2688
      for pkg in $enableval; do
 
2689
        IFS="$lt_save_ifs"
 
2690
        if test "X$pkg" = "X$p"; then
 
2691
          enable_static=yes
 
2692
        fi
 
2693
      done
 
2694
      IFS="$lt_save_ifs"
 
2695
      ;;
 
2696
    esac
 
2697
else
 
2698
  enable_static=no
 
2699
fi
 
2700
 
 
2701
 
 
2702
 
 
2703
 
 
2704
 
 
2705
 
 
2706
 
 
2707
 
 
2708
 
 
2709
case `pwd` in
 
2710
  *\ * | *\     *)
 
2711
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2712
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2713
esac
 
2714
 
 
2715
 
 
2716
 
 
2717
macro_version='2.2.6b'
 
2718
macro_revision='1.3017'
 
2719
 
 
2720
 
 
2721
 
 
2722
 
 
2723
 
 
2724
 
 
2725
 
 
2726
 
 
2727
 
 
2728
 
 
2729
 
 
2730
 
 
2731
 
 
2732
ltmain="$ac_aux_dir/ltmain.sh"
 
2733
 
 
2734
# Make sure we can run config.sub.
 
2735
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2736
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2737
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2738
   { (exit 1); exit 1; }; }
 
2739
 
 
2740
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2741
$as_echo_n "checking build system type... " >&6; }
 
2742
if test "${ac_cv_build+set}" = set; then
 
2743
  $as_echo_n "(cached) " >&6
 
2744
else
 
2745
  ac_build_alias=$build_alias
 
2746
test "x$ac_build_alias" = x &&
 
2747
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2748
test "x$ac_build_alias" = x &&
 
2749
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2750
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2751
   { (exit 1); exit 1; }; }
 
2752
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2753
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2754
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2755
   { (exit 1); exit 1; }; }
 
2756
 
 
2757
fi
 
2758
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2759
$as_echo "$ac_cv_build" >&6; }
 
2760
case $ac_cv_build in
 
2761
*-*-*) ;;
 
2762
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2763
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
2764
   { (exit 1); exit 1; }; };;
 
2765
esac
 
2766
build=$ac_cv_build
 
2767
ac_save_IFS=$IFS; IFS='-'
 
2768
set x $ac_cv_build
 
2769
shift
 
2770
build_cpu=$1
 
2771
build_vendor=$2
 
2772
shift; shift
 
2773
# Remember, the first character of IFS is used to create $*,
 
2774
# except with old shells:
 
2775
build_os=$*
 
2776
IFS=$ac_save_IFS
 
2777
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2778
 
 
2779
 
 
2780
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2781
$as_echo_n "checking host system type... " >&6; }
 
2782
if test "${ac_cv_host+set}" = set; then
 
2783
  $as_echo_n "(cached) " >&6
 
2784
else
 
2785
  if test "x$host_alias" = x; then
 
2786
  ac_cv_host=$ac_cv_build
 
2787
else
 
2788
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2789
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2790
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2791
   { (exit 1); exit 1; }; }
 
2792
fi
 
2793
 
 
2794
fi
 
2795
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2796
$as_echo "$ac_cv_host" >&6; }
 
2797
case $ac_cv_host in
 
2798
*-*-*) ;;
 
2799
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2800
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
2801
   { (exit 1); exit 1; }; };;
 
2802
esac
 
2803
host=$ac_cv_host
 
2804
ac_save_IFS=$IFS; IFS='-'
 
2805
set x $ac_cv_host
 
2806
shift
 
2807
host_cpu=$1
 
2808
host_vendor=$2
 
2809
shift; shift
 
2810
# Remember, the first character of IFS is used to create $*,
 
2811
# except with old shells:
 
2812
host_os=$*
 
2813
IFS=$ac_save_IFS
 
2814
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2815
 
 
2816
 
 
2817
DEPDIR="${am__leading_dot}deps"
 
2818
 
 
2819
ac_config_commands="$ac_config_commands depfiles"
 
2820
 
 
2821
 
 
2822
am_make=${MAKE-make}
 
2823
cat > confinc << 'END'
 
2824
am__doit:
 
2825
        @echo this is the am__doit target
 
2826
.PHONY: am__doit
 
2827
END
 
2828
# If we don't find an include directive, just comment out the code.
 
2829
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2830
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2831
am__include="#"
 
2832
am__quote=
 
2833
_am_result=none
 
2834
# First try GNU make style include.
 
2835
echo "include confinc" > confmf
 
2836
# Ignore all kinds of additional output from `make'.
 
2837
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2838
*the\ am__doit\ target*)
 
2839
  am__include=include
 
2840
  am__quote=
 
2841
  _am_result=GNU
 
2842
  ;;
 
2843
esac
 
2844
# Now try BSD make style include.
 
2845
if test "$am__include" = "#"; then
 
2846
   echo '.include "confinc"' > confmf
 
2847
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2848
   *the\ am__doit\ target*)
 
2849
     am__include=.include
 
2850
     am__quote="\""
 
2851
     _am_result=BSD
 
2852
     ;;
 
2853
   esac
 
2854
fi
 
2855
 
 
2856
 
 
2857
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
2858
$as_echo "$_am_result" >&6; }
 
2859
rm -f confinc confmf
 
2860
 
 
2861
# Check whether --enable-dependency-tracking was given.
 
2862
if test "${enable_dependency_tracking+set}" = set; then
 
2863
  enableval=$enable_dependency_tracking;
 
2864
fi
 
2865
 
 
2866
if test "x$enable_dependency_tracking" != xno; then
 
2867
  am_depcomp="$ac_aux_dir/depcomp"
 
2868
  AMDEPBACKSLASH='\'
 
2869
fi
 
2870
 if test "x$enable_dependency_tracking" != xno; then
 
2871
  AMDEP_TRUE=
 
2872
  AMDEP_FALSE='#'
 
2873
else
 
2874
  AMDEP_TRUE='#'
 
2875
  AMDEP_FALSE=
 
2876
fi
 
2877
 
 
2878
 
 
2879
ac_ext=c
 
2880
ac_cpp='$CPP $CPPFLAGS'
 
2881
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2882
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2883
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2884
if test -n "$ac_tool_prefix"; then
 
2885
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2886
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2887
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2888
$as_echo_n "checking for $ac_word... " >&6; }
 
2889
if test "${ac_cv_prog_CC+set}" = set; then
 
2890
  $as_echo_n "(cached) " >&6
 
2891
else
 
2892
  if test -n "$CC"; then
 
2893
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2894
else
 
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2896
for as_dir in $PATH
 
2897
do
 
2898
  IFS=$as_save_IFS
 
2899
  test -z "$as_dir" && as_dir=.
 
2900
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2902
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2903
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2904
    break 2
 
2905
  fi
 
2906
done
 
2907
done
 
2908
IFS=$as_save_IFS
 
2909
 
 
2910
fi
 
2911
fi
 
2912
CC=$ac_cv_prog_CC
 
2913
if test -n "$CC"; then
 
2914
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2915
$as_echo "$CC" >&6; }
 
2916
else
 
2917
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2918
$as_echo "no" >&6; }
 
2919
fi
 
2920
 
 
2921
 
 
2922
fi
 
2923
if test -z "$ac_cv_prog_CC"; then
 
2924
  ac_ct_CC=$CC
 
2925
  # Extract the first word of "gcc", so it can be a program name with args.
 
2926
set dummy gcc; ac_word=$2
 
2927
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2928
$as_echo_n "checking for $ac_word... " >&6; }
 
2929
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2930
  $as_echo_n "(cached) " >&6
 
2931
else
 
2932
  if test -n "$ac_ct_CC"; then
 
2933
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2934
else
 
2935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2936
for as_dir in $PATH
 
2937
do
 
2938
  IFS=$as_save_IFS
 
2939
  test -z "$as_dir" && as_dir=.
 
2940
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2941
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2942
    ac_cv_prog_ac_ct_CC="gcc"
 
2943
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2944
    break 2
 
2945
  fi
 
2946
done
 
2947
done
 
2948
IFS=$as_save_IFS
 
2949
 
 
2950
fi
 
2951
fi
 
2952
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2953
if test -n "$ac_ct_CC"; then
 
2954
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2955
$as_echo "$ac_ct_CC" >&6; }
 
2956
else
 
2957
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2958
$as_echo "no" >&6; }
 
2959
fi
 
2960
 
 
2961
  if test "x$ac_ct_CC" = x; then
 
2962
    CC=""
 
2963
  else
 
2964
    case $cross_compiling:$ac_tool_warned in
 
2965
yes:)
 
2966
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2968
ac_tool_warned=yes ;;
 
2969
esac
 
2970
    CC=$ac_ct_CC
 
2971
  fi
 
2972
else
 
2973
  CC="$ac_cv_prog_CC"
 
2974
fi
 
2975
 
 
2976
if test -z "$CC"; then
 
2977
          if test -n "$ac_tool_prefix"; then
 
2978
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2979
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2980
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2981
$as_echo_n "checking for $ac_word... " >&6; }
 
2982
if test "${ac_cv_prog_CC+set}" = set; then
 
2983
  $as_echo_n "(cached) " >&6
 
2984
else
 
2985
  if test -n "$CC"; then
 
2986
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2987
else
 
2988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2989
for as_dir in $PATH
 
2990
do
 
2991
  IFS=$as_save_IFS
 
2992
  test -z "$as_dir" && as_dir=.
 
2993
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2994
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2995
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2996
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2997
    break 2
 
2998
  fi
 
2999
done
 
3000
done
 
3001
IFS=$as_save_IFS
 
3002
 
 
3003
fi
 
3004
fi
 
3005
CC=$ac_cv_prog_CC
 
3006
if test -n "$CC"; then
 
3007
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3008
$as_echo "$CC" >&6; }
 
3009
else
 
3010
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3011
$as_echo "no" >&6; }
 
3012
fi
 
3013
 
 
3014
 
 
3015
  fi
 
3016
fi
 
3017
if test -z "$CC"; then
 
3018
  # Extract the first word of "cc", so it can be a program name with args.
 
3019
set dummy cc; ac_word=$2
 
3020
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3021
$as_echo_n "checking for $ac_word... " >&6; }
 
3022
if test "${ac_cv_prog_CC+set}" = set; then
 
3023
  $as_echo_n "(cached) " >&6
 
3024
else
 
3025
  if test -n "$CC"; then
 
3026
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3027
else
 
3028
  ac_prog_rejected=no
 
3029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3030
for as_dir in $PATH
 
3031
do
 
3032
  IFS=$as_save_IFS
 
3033
  test -z "$as_dir" && as_dir=.
 
3034
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3035
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3036
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3037
       ac_prog_rejected=yes
 
3038
       continue
 
3039
     fi
 
3040
    ac_cv_prog_CC="cc"
 
3041
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3042
    break 2
 
3043
  fi
 
3044
done
 
3045
done
 
3046
IFS=$as_save_IFS
 
3047
 
 
3048
if test $ac_prog_rejected = yes; then
 
3049
  # We found a bogon in the path, so make sure we never use it.
 
3050
  set dummy $ac_cv_prog_CC
 
3051
  shift
 
3052
  if test $# != 0; then
 
3053
    # We chose a different compiler from the bogus one.
 
3054
    # However, it has the same basename, so the bogon will be chosen
 
3055
    # first if we set CC to just the basename; use the full file name.
 
3056
    shift
 
3057
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3058
  fi
 
3059
fi
 
3060
fi
 
3061
fi
 
3062
CC=$ac_cv_prog_CC
 
3063
if test -n "$CC"; then
 
3064
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3065
$as_echo "$CC" >&6; }
 
3066
else
 
3067
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3068
$as_echo "no" >&6; }
 
3069
fi
 
3070
 
 
3071
 
 
3072
fi
 
3073
if test -z "$CC"; then
 
3074
  if test -n "$ac_tool_prefix"; then
 
3075
  for ac_prog in cl.exe
 
3076
  do
 
3077
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3078
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3079
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3080
$as_echo_n "checking for $ac_word... " >&6; }
 
3081
if test "${ac_cv_prog_CC+set}" = set; then
 
3082
  $as_echo_n "(cached) " >&6
 
3083
else
 
3084
  if test -n "$CC"; then
 
3085
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3086
else
 
3087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3088
for as_dir in $PATH
 
3089
do
 
3090
  IFS=$as_save_IFS
 
3091
  test -z "$as_dir" && as_dir=.
 
3092
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3093
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3094
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3095
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3096
    break 2
 
3097
  fi
 
3098
done
 
3099
done
 
3100
IFS=$as_save_IFS
 
3101
 
 
3102
fi
 
3103
fi
 
3104
CC=$ac_cv_prog_CC
 
3105
if test -n "$CC"; then
 
3106
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3107
$as_echo "$CC" >&6; }
 
3108
else
 
3109
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3110
$as_echo "no" >&6; }
 
3111
fi
 
3112
 
 
3113
 
 
3114
    test -n "$CC" && break
 
3115
  done
 
3116
fi
 
3117
if test -z "$CC"; then
 
3118
  ac_ct_CC=$CC
 
3119
  for ac_prog in cl.exe
 
3120
do
 
3121
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3122
set dummy $ac_prog; ac_word=$2
 
3123
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3124
$as_echo_n "checking for $ac_word... " >&6; }
 
3125
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3126
  $as_echo_n "(cached) " >&6
 
3127
else
 
3128
  if test -n "$ac_ct_CC"; then
 
3129
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3130
else
 
3131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3132
for as_dir in $PATH
 
3133
do
 
3134
  IFS=$as_save_IFS
 
3135
  test -z "$as_dir" && as_dir=.
 
3136
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3137
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3138
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3139
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3140
    break 2
 
3141
  fi
 
3142
done
 
3143
done
 
3144
IFS=$as_save_IFS
 
3145
 
 
3146
fi
 
3147
fi
 
3148
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3149
if test -n "$ac_ct_CC"; then
 
3150
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3151
$as_echo "$ac_ct_CC" >&6; }
 
3152
else
 
3153
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3154
$as_echo "no" >&6; }
 
3155
fi
 
3156
 
 
3157
 
 
3158
  test -n "$ac_ct_CC" && break
 
3159
done
 
3160
 
 
3161
  if test "x$ac_ct_CC" = x; then
 
3162
    CC=""
 
3163
  else
 
3164
    case $cross_compiling:$ac_tool_warned in
 
3165
yes:)
 
3166
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3167
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3168
ac_tool_warned=yes ;;
 
3169
esac
 
3170
    CC=$ac_ct_CC
 
3171
  fi
 
3172
fi
 
3173
 
 
3174
fi
 
3175
 
 
3176
 
 
3177
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3178
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3179
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3180
See \`config.log' for more details." >&5
 
3181
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3182
See \`config.log' for more details." >&2;}
 
3183
   { (exit 1); exit 1; }; }; }
 
3184
 
 
3185
# Provide some information about the compiler.
 
3186
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3187
set X $ac_compile
 
3188
ac_compiler=$2
 
3189
{ (ac_try="$ac_compiler --version >&5"
 
3190
case "(($ac_try" in
 
3191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3192
  *) ac_try_echo=$ac_try;;
 
3193
esac
 
3194
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3195
$as_echo "$ac_try_echo") >&5
 
3196
  (eval "$ac_compiler --version >&5") 2>&5
 
3197
  ac_status=$?
 
3198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3199
  (exit $ac_status); }
 
3200
{ (ac_try="$ac_compiler -v >&5"
 
3201
case "(($ac_try" in
 
3202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3203
  *) ac_try_echo=$ac_try;;
 
3204
esac
 
3205
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3206
$as_echo "$ac_try_echo") >&5
 
3207
  (eval "$ac_compiler -v >&5") 2>&5
 
3208
  ac_status=$?
 
3209
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3210
  (exit $ac_status); }
 
3211
{ (ac_try="$ac_compiler -V >&5"
 
3212
case "(($ac_try" in
 
3213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3214
  *) ac_try_echo=$ac_try;;
 
3215
esac
 
3216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3217
$as_echo "$ac_try_echo") >&5
 
3218
  (eval "$ac_compiler -V >&5") 2>&5
 
3219
  ac_status=$?
 
3220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3221
  (exit $ac_status); }
 
3222
 
 
3223
cat >conftest.$ac_ext <<_ACEOF
 
3224
/* confdefs.h.  */
 
3225
_ACEOF
 
3226
cat confdefs.h >>conftest.$ac_ext
 
3227
cat >>conftest.$ac_ext <<_ACEOF
 
3228
/* end confdefs.h.  */
 
3229
 
 
3230
int
 
3231
main ()
 
3232
{
 
3233
 
 
3234
  ;
 
3235
  return 0;
 
3236
}
 
3237
_ACEOF
 
3238
ac_clean_files_save=$ac_clean_files
 
3239
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3240
# Try to create an executable without -o first, disregard a.out.
 
3241
# It will help us diagnose broken compilers, and finding out an intuition
 
3242
# of exeext.
 
3243
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3244
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3245
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3246
 
 
3247
# The possible output files:
 
3248
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3249
 
 
3250
ac_rmfiles=
 
3251
for ac_file in $ac_files
 
3252
do
 
3253
  case $ac_file in
 
3254
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3255
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3256
  esac
 
3257
done
 
3258
rm -f $ac_rmfiles
 
3259
 
 
3260
if { (ac_try="$ac_link_default"
 
3261
case "(($ac_try" in
 
3262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3263
  *) ac_try_echo=$ac_try;;
 
3264
esac
 
3265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3266
$as_echo "$ac_try_echo") >&5
 
3267
  (eval "$ac_link_default") 2>&5
 
3268
  ac_status=$?
 
3269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3270
  (exit $ac_status); }; then
 
3271
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3272
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3273
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3274
# so that the user can short-circuit this test for compilers unknown to
 
3275
# Autoconf.
 
3276
for ac_file in $ac_files ''
 
3277
do
 
3278
  test -f "$ac_file" || continue
 
3279
  case $ac_file in
 
3280
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3281
        ;;
 
3282
    [ab].out )
 
3283
        # We found the default executable, but exeext='' is most
 
3284
        # certainly right.
 
3285
        break;;
 
3286
    *.* )
 
3287
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3288
        then :; else
 
3289
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3290
        fi
 
3291
        # We set ac_cv_exeext here because the later test for it is not
 
3292
        # safe: cross compilers may not add the suffix if given an `-o'
 
3293
        # argument, so we may need to know it at that point already.
 
3294
        # Even if this section looks crufty: it has the advantage of
 
3295
        # actually working.
 
3296
        break;;
 
3297
    * )
 
3298
        break;;
 
3299
  esac
 
3300
done
 
3301
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3302
 
 
3303
else
 
3304
  ac_file=''
 
3305
fi
 
3306
 
 
3307
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3308
$as_echo "$ac_file" >&6; }
 
3309
if test -z "$ac_file"; then
 
3310
  $as_echo "$as_me: failed program was:" >&5
 
3311
sed 's/^/| /' conftest.$ac_ext >&5
 
3312
 
 
3313
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3314
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3315
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3316
See \`config.log' for more details." >&5
 
3317
$as_echo "$as_me: error: C compiler cannot create executables
 
3318
See \`config.log' for more details." >&2;}
 
3319
   { (exit 77); exit 77; }; }; }
 
3320
fi
 
3321
 
 
3322
ac_exeext=$ac_cv_exeext
 
3323
 
 
3324
# Check that the compiler produces executables we can run.  If not, either
 
3325
# the compiler is broken, or we cross compile.
 
3326
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3327
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3328
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3329
# If not cross compiling, check that we can run a simple program.
 
3330
if test "$cross_compiling" != yes; then
 
3331
  if { ac_try='./$ac_file'
 
3332
  { (case "(($ac_try" in
 
3333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3334
  *) ac_try_echo=$ac_try;;
 
3335
esac
 
3336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3337
$as_echo "$ac_try_echo") >&5
 
3338
  (eval "$ac_try") 2>&5
 
3339
  ac_status=$?
 
3340
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3341
  (exit $ac_status); }; }; then
 
3342
    cross_compiling=no
 
3343
  else
 
3344
    if test "$cross_compiling" = maybe; then
 
3345
        cross_compiling=yes
 
3346
    else
 
3347
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3349
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3350
If you meant to cross compile, use \`--host'.
 
3351
See \`config.log' for more details." >&5
 
3352
$as_echo "$as_me: error: cannot run C compiled programs.
 
3353
If you meant to cross compile, use \`--host'.
 
3354
See \`config.log' for more details." >&2;}
 
3355
   { (exit 1); exit 1; }; }; }
 
3356
    fi
 
3357
  fi
 
3358
fi
 
3359
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3360
$as_echo "yes" >&6; }
 
3361
 
 
3362
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3363
ac_clean_files=$ac_clean_files_save
 
3364
# Check that the compiler produces executables we can run.  If not, either
 
3365
# the compiler is broken, or we cross compile.
 
3366
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3367
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3368
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3369
$as_echo "$cross_compiling" >&6; }
 
3370
 
 
3371
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3372
$as_echo_n "checking for suffix of executables... " >&6; }
 
3373
if { (ac_try="$ac_link"
 
3374
case "(($ac_try" in
 
3375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3376
  *) ac_try_echo=$ac_try;;
 
3377
esac
 
3378
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3379
$as_echo "$ac_try_echo") >&5
 
3380
  (eval "$ac_link") 2>&5
 
3381
  ac_status=$?
 
3382
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3383
  (exit $ac_status); }; then
 
3384
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3385
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3386
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3387
# `rm'.
 
3388
for ac_file in conftest.exe conftest conftest.*; do
 
3389
  test -f "$ac_file" || continue
 
3390
  case $ac_file in
 
3391
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3392
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3393
          break;;
 
3394
    * ) break;;
 
3395
  esac
 
3396
done
 
3397
else
 
3398
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3399
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3400
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3401
See \`config.log' for more details." >&5
 
3402
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3403
See \`config.log' for more details." >&2;}
 
3404
   { (exit 1); exit 1; }; }; }
 
3405
fi
 
3406
 
 
3407
rm -f conftest$ac_cv_exeext
 
3408
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3409
$as_echo "$ac_cv_exeext" >&6; }
 
3410
 
 
3411
rm -f conftest.$ac_ext
 
3412
EXEEXT=$ac_cv_exeext
 
3413
ac_exeext=$EXEEXT
 
3414
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3415
$as_echo_n "checking for suffix of object files... " >&6; }
 
3416
if test "${ac_cv_objext+set}" = set; then
 
3417
  $as_echo_n "(cached) " >&6
 
3418
else
 
3419
  cat >conftest.$ac_ext <<_ACEOF
 
3420
/* confdefs.h.  */
 
3421
_ACEOF
 
3422
cat confdefs.h >>conftest.$ac_ext
 
3423
cat >>conftest.$ac_ext <<_ACEOF
 
3424
/* end confdefs.h.  */
 
3425
 
 
3426
int
 
3427
main ()
 
3428
{
 
3429
 
 
3430
  ;
 
3431
  return 0;
 
3432
}
 
3433
_ACEOF
 
3434
rm -f conftest.o conftest.obj
 
3435
if { (ac_try="$ac_compile"
 
3436
case "(($ac_try" in
 
3437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3438
  *) ac_try_echo=$ac_try;;
 
3439
esac
 
3440
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3441
$as_echo "$ac_try_echo") >&5
 
3442
  (eval "$ac_compile") 2>&5
 
3443
  ac_status=$?
 
3444
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3445
  (exit $ac_status); }; then
 
3446
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3447
  test -f "$ac_file" || continue;
 
3448
  case $ac_file in
 
3449
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3450
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3451
       break;;
 
3452
  esac
 
3453
done
 
3454
else
 
3455
  $as_echo "$as_me: failed program was:" >&5
 
3456
sed 's/^/| /' conftest.$ac_ext >&5
 
3457
 
 
3458
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3459
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3460
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3461
See \`config.log' for more details." >&5
 
3462
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3463
See \`config.log' for more details." >&2;}
 
3464
   { (exit 1); exit 1; }; }; }
 
3465
fi
 
3466
 
 
3467
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3468
fi
 
3469
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3470
$as_echo "$ac_cv_objext" >&6; }
 
3471
OBJEXT=$ac_cv_objext
 
3472
ac_objext=$OBJEXT
 
3473
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3474
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3475
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3476
  $as_echo_n "(cached) " >&6
 
3477
else
 
3478
  cat >conftest.$ac_ext <<_ACEOF
 
3479
/* confdefs.h.  */
 
3480
_ACEOF
 
3481
cat confdefs.h >>conftest.$ac_ext
 
3482
cat >>conftest.$ac_ext <<_ACEOF
 
3483
/* end confdefs.h.  */
 
3484
 
 
3485
int
 
3486
main ()
 
3487
{
 
3488
#ifndef __GNUC__
 
3489
       choke me
 
3490
#endif
 
3491
 
 
3492
  ;
 
3493
  return 0;
 
3494
}
 
3495
_ACEOF
 
3496
rm -f conftest.$ac_objext
 
3497
if { (ac_try="$ac_compile"
 
3498
case "(($ac_try" in
 
3499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3500
  *) ac_try_echo=$ac_try;;
 
3501
esac
 
3502
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3503
$as_echo "$ac_try_echo") >&5
 
3504
  (eval "$ac_compile") 2>conftest.er1
 
3505
  ac_status=$?
 
3506
  grep -v '^ *+' conftest.er1 >conftest.err
 
3507
  rm -f conftest.er1
 
3508
  cat conftest.err >&5
 
3509
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3510
  (exit $ac_status); } && {
 
3511
         test -z "$ac_c_werror_flag" ||
 
3512
         test ! -s conftest.err
 
3513
       } && test -s conftest.$ac_objext; then
 
3514
  ac_compiler_gnu=yes
 
3515
else
 
3516
  $as_echo "$as_me: failed program was:" >&5
 
3517
sed 's/^/| /' conftest.$ac_ext >&5
 
3518
 
 
3519
        ac_compiler_gnu=no
 
3520
fi
 
3521
 
 
3522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3523
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3524
 
 
3525
fi
 
3526
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3527
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3528
if test $ac_compiler_gnu = yes; then
 
3529
  GCC=yes
 
3530
else
 
3531
  GCC=
 
3532
fi
 
3533
ac_test_CFLAGS=${CFLAGS+set}
 
3534
ac_save_CFLAGS=$CFLAGS
 
3535
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3536
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3537
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3538
  $as_echo_n "(cached) " >&6
 
3539
else
 
3540
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3541
   ac_c_werror_flag=yes
 
3542
   ac_cv_prog_cc_g=no
 
3543
   CFLAGS="-g"
 
3544
   cat >conftest.$ac_ext <<_ACEOF
 
3545
/* confdefs.h.  */
 
3546
_ACEOF
 
3547
cat confdefs.h >>conftest.$ac_ext
 
3548
cat >>conftest.$ac_ext <<_ACEOF
 
3549
/* end confdefs.h.  */
 
3550
 
 
3551
int
 
3552
main ()
 
3553
{
 
3554
 
 
3555
  ;
 
3556
  return 0;
 
3557
}
 
3558
_ACEOF
 
3559
rm -f conftest.$ac_objext
 
3560
if { (ac_try="$ac_compile"
 
3561
case "(($ac_try" in
 
3562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3563
  *) ac_try_echo=$ac_try;;
 
3564
esac
 
3565
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3566
$as_echo "$ac_try_echo") >&5
 
3567
  (eval "$ac_compile") 2>conftest.er1
 
3568
  ac_status=$?
 
3569
  grep -v '^ *+' conftest.er1 >conftest.err
 
3570
  rm -f conftest.er1
 
3571
  cat conftest.err >&5
 
3572
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3573
  (exit $ac_status); } && {
 
3574
         test -z "$ac_c_werror_flag" ||
 
3575
         test ! -s conftest.err
 
3576
       } && test -s conftest.$ac_objext; then
 
3577
  ac_cv_prog_cc_g=yes
 
3578
else
 
3579
  $as_echo "$as_me: failed program was:" >&5
 
3580
sed 's/^/| /' conftest.$ac_ext >&5
 
3581
 
 
3582
        CFLAGS=""
 
3583
      cat >conftest.$ac_ext <<_ACEOF
 
3584
/* confdefs.h.  */
 
3585
_ACEOF
 
3586
cat confdefs.h >>conftest.$ac_ext
 
3587
cat >>conftest.$ac_ext <<_ACEOF
 
3588
/* end confdefs.h.  */
 
3589
 
 
3590
int
 
3591
main ()
 
3592
{
 
3593
 
 
3594
  ;
 
3595
  return 0;
 
3596
}
 
3597
_ACEOF
 
3598
rm -f conftest.$ac_objext
 
3599
if { (ac_try="$ac_compile"
 
3600
case "(($ac_try" in
 
3601
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3602
  *) ac_try_echo=$ac_try;;
 
3603
esac
 
3604
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3605
$as_echo "$ac_try_echo") >&5
 
3606
  (eval "$ac_compile") 2>conftest.er1
 
3607
  ac_status=$?
 
3608
  grep -v '^ *+' conftest.er1 >conftest.err
 
3609
  rm -f conftest.er1
 
3610
  cat conftest.err >&5
 
3611
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3612
  (exit $ac_status); } && {
 
3613
         test -z "$ac_c_werror_flag" ||
 
3614
         test ! -s conftest.err
 
3615
       } && test -s conftest.$ac_objext; then
 
3616
  :
 
3617
else
 
3618
  $as_echo "$as_me: failed program was:" >&5
 
3619
sed 's/^/| /' conftest.$ac_ext >&5
 
3620
 
 
3621
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3622
         CFLAGS="-g"
 
3623
         cat >conftest.$ac_ext <<_ACEOF
 
3624
/* confdefs.h.  */
 
3625
_ACEOF
 
3626
cat confdefs.h >>conftest.$ac_ext
 
3627
cat >>conftest.$ac_ext <<_ACEOF
 
3628
/* end confdefs.h.  */
 
3629
 
 
3630
int
 
3631
main ()
 
3632
{
 
3633
 
 
3634
  ;
 
3635
  return 0;
 
3636
}
 
3637
_ACEOF
 
3638
rm -f conftest.$ac_objext
 
3639
if { (ac_try="$ac_compile"
 
3640
case "(($ac_try" in
 
3641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3642
  *) ac_try_echo=$ac_try;;
 
3643
esac
 
3644
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3645
$as_echo "$ac_try_echo") >&5
 
3646
  (eval "$ac_compile") 2>conftest.er1
 
3647
  ac_status=$?
 
3648
  grep -v '^ *+' conftest.er1 >conftest.err
 
3649
  rm -f conftest.er1
 
3650
  cat conftest.err >&5
 
3651
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3652
  (exit $ac_status); } && {
 
3653
         test -z "$ac_c_werror_flag" ||
 
3654
         test ! -s conftest.err
 
3655
       } && test -s conftest.$ac_objext; then
 
3656
  ac_cv_prog_cc_g=yes
 
3657
else
 
3658
  $as_echo "$as_me: failed program was:" >&5
 
3659
sed 's/^/| /' conftest.$ac_ext >&5
 
3660
 
 
3661
 
 
3662
fi
 
3663
 
 
3664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3665
fi
 
3666
 
 
3667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3668
fi
 
3669
 
 
3670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3671
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3672
fi
 
3673
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3674
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3675
if test "$ac_test_CFLAGS" = set; then
 
3676
  CFLAGS=$ac_save_CFLAGS
 
3677
elif test $ac_cv_prog_cc_g = yes; then
 
3678
  if test "$GCC" = yes; then
 
3679
    CFLAGS="-g -O2"
 
3680
  else
 
3681
    CFLAGS="-g"
 
3682
  fi
 
3683
else
 
3684
  if test "$GCC" = yes; then
 
3685
    CFLAGS="-O2"
 
3686
  else
 
3687
    CFLAGS=
 
3688
  fi
 
3689
fi
 
3690
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3691
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3692
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3693
  $as_echo_n "(cached) " >&6
 
3694
else
 
3695
  ac_cv_prog_cc_c89=no
 
3696
ac_save_CC=$CC
 
3697
cat >conftest.$ac_ext <<_ACEOF
 
3698
/* confdefs.h.  */
 
3699
_ACEOF
 
3700
cat confdefs.h >>conftest.$ac_ext
 
3701
cat >>conftest.$ac_ext <<_ACEOF
 
3702
/* end confdefs.h.  */
 
3703
#include <stdarg.h>
 
3704
#include <stdio.h>
 
3705
#include <sys/types.h>
 
3706
#include <sys/stat.h>
 
3707
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3708
struct buf { int x; };
 
3709
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3710
static char *e (p, i)
 
3711
     char **p;
 
3712
     int i;
 
3713
{
 
3714
  return p[i];
 
3715
}
 
3716
static char *f (char * (*g) (char **, int), char **p, ...)
 
3717
{
 
3718
  char *s;
 
3719
  va_list v;
 
3720
  va_start (v,p);
 
3721
  s = g (p, va_arg (v,int));
 
3722
  va_end (v);
 
3723
  return s;
 
3724
}
 
3725
 
 
3726
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3727
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3728
   These don't provoke an error unfortunately, instead are silently treated
 
3729
   as 'x'.  The following induces an error, until -std is added to get
 
3730
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3731
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3732
   that's true only with -std.  */
 
3733
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3734
 
 
3735
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3736
   inside strings and character constants.  */
 
3737
#define FOO(x) 'x'
 
3738
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3739
 
 
3740
int test (int i, double x);
 
3741
struct s1 {int (*f) (int a);};
 
3742
struct s2 {int (*f) (double a);};
 
3743
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3744
int argc;
 
3745
char **argv;
 
3746
int
 
3747
main ()
 
3748
{
 
3749
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3750
  ;
 
3751
  return 0;
 
3752
}
 
3753
_ACEOF
 
3754
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3755
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3756
do
 
3757
  CC="$ac_save_CC $ac_arg"
 
3758
  rm -f conftest.$ac_objext
 
3759
if { (ac_try="$ac_compile"
 
3760
case "(($ac_try" in
 
3761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3762
  *) ac_try_echo=$ac_try;;
 
3763
esac
 
3764
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3765
$as_echo "$ac_try_echo") >&5
 
3766
  (eval "$ac_compile") 2>conftest.er1
 
3767
  ac_status=$?
 
3768
  grep -v '^ *+' conftest.er1 >conftest.err
 
3769
  rm -f conftest.er1
 
3770
  cat conftest.err >&5
 
3771
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3772
  (exit $ac_status); } && {
 
3773
         test -z "$ac_c_werror_flag" ||
 
3774
         test ! -s conftest.err
 
3775
       } && test -s conftest.$ac_objext; then
 
3776
  ac_cv_prog_cc_c89=$ac_arg
 
3777
else
 
3778
  $as_echo "$as_me: failed program was:" >&5
 
3779
sed 's/^/| /' conftest.$ac_ext >&5
 
3780
 
 
3781
 
 
3782
fi
 
3783
 
 
3784
rm -f core conftest.err conftest.$ac_objext
 
3785
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3786
done
 
3787
rm -f conftest.$ac_ext
 
3788
CC=$ac_save_CC
 
3789
 
 
3790
fi
 
3791
# AC_CACHE_VAL
 
3792
case "x$ac_cv_prog_cc_c89" in
 
3793
  x)
 
3794
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3795
$as_echo "none needed" >&6; } ;;
 
3796
  xno)
 
3797
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3798
$as_echo "unsupported" >&6; } ;;
 
3799
  *)
 
3800
    CC="$CC $ac_cv_prog_cc_c89"
 
3801
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3802
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3803
esac
 
3804
 
 
3805
 
 
3806
ac_ext=c
 
3807
ac_cpp='$CPP $CPPFLAGS'
 
3808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3811
 
 
3812
depcc="$CC"   am_compiler_list=
 
3813
 
 
3814
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3815
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3816
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3817
  $as_echo_n "(cached) " >&6
 
3818
else
 
3819
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3820
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3821
  # making bogus files that we don't know about and never remove.  For
 
3822
  # instance it was reported that on HP-UX the gcc test will end up
 
3823
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3824
  # in D'.
 
3825
  mkdir conftest.dir
 
3826
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3827
  # using a relative directory.
 
3828
  cp "$am_depcomp" conftest.dir
 
3829
  cd conftest.dir
 
3830
  # We will build objects and dependencies in a subdirectory because
 
3831
  # it helps to detect inapplicable dependency modes.  For instance
 
3832
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3833
  # side effect of compilation, but ICC will put the dependencies in
 
3834
  # the current directory while Tru64 will put them in the object
 
3835
  # directory.
 
3836
  mkdir sub
 
3837
 
 
3838
  am_cv_CC_dependencies_compiler_type=none
 
3839
  if test "$am_compiler_list" = ""; then
 
3840
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3841
  fi
 
3842
  am__universal=false
 
3843
  case " $depcc " in #(
 
3844
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3845
     esac
 
3846
 
 
3847
  for depmode in $am_compiler_list; do
 
3848
    # Setup a source with many dependencies, because some compilers
 
3849
    # like to wrap large dependency lists on column 80 (with \), and
 
3850
    # we should not choose a depcomp mode which is confused by this.
 
3851
    #
 
3852
    # We need to recreate these files for each test, as the compiler may
 
3853
    # overwrite some of them when testing with obscure command lines.
 
3854
    # This happens at least with the AIX C compiler.
 
3855
    : > sub/conftest.c
 
3856
    for i in 1 2 3 4 5 6; do
 
3857
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3858
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3859
      # Solaris 8's {/usr,}/bin/sh.
 
3860
      touch sub/conftst$i.h
 
3861
    done
 
3862
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3863
 
 
3864
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3865
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3866
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3867
    # versions had trouble with output in subdirs
 
3868
    am__obj=sub/conftest.${OBJEXT-o}
 
3869
    am__minus_obj="-o $am__obj"
 
3870
    case $depmode in
 
3871
    gcc)
 
3872
      # This depmode causes a compiler race in universal mode.
 
3873
      test "$am__universal" = false || continue
 
3874
      ;;
 
3875
    nosideeffect)
 
3876
      # after this tag, mechanisms are not by side-effect, so they'll
 
3877
      # only be used when explicitly requested
 
3878
      if test "x$enable_dependency_tracking" = xyes; then
 
3879
        continue
 
3880
      else
 
3881
        break
 
3882
      fi
 
3883
      ;;
 
3884
    msvisualcpp | msvcmsys)
 
3885
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3886
      # not run yet.  These depmodes are late enough in the game, and
 
3887
      # so weak that their functioning should not be impacted.
 
3888
      am__obj=conftest.${OBJEXT-o}
 
3889
      am__minus_obj=
 
3890
      ;;
 
3891
    none) break ;;
 
3892
    esac
 
3893
    if depmode=$depmode \
 
3894
       source=sub/conftest.c object=$am__obj \
 
3895
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3896
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3897
         >/dev/null 2>conftest.err &&
 
3898
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3899
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3900
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3901
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3902
      # icc doesn't choke on unknown options, it will just issue warnings
 
3903
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3904
      # that says an option was ignored or not supported.
 
3905
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3906
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3907
      # The diagnosis changed in icc 8.0:
 
3908
      #   icc: Command line remark: option '-MP' not supported
 
3909
      if (grep 'ignoring option' conftest.err ||
 
3910
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3911
        am_cv_CC_dependencies_compiler_type=$depmode
 
3912
        break
 
3913
      fi
 
3914
    fi
 
3915
  done
 
3916
 
 
3917
  cd ..
 
3918
  rm -rf conftest.dir
 
3919
else
 
3920
  am_cv_CC_dependencies_compiler_type=none
 
3921
fi
 
3922
 
 
3923
fi
 
3924
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3925
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3926
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3927
 
 
3928
 if
 
3929
  test "x$enable_dependency_tracking" != xno \
 
3930
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3931
  am__fastdepCC_TRUE=
 
3932
  am__fastdepCC_FALSE='#'
 
3933
else
 
3934
  am__fastdepCC_TRUE='#'
 
3935
  am__fastdepCC_FALSE=
 
3936
fi
 
3937
 
 
3938
 
 
3939
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3940
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3941
if test "${ac_cv_path_SED+set}" = set; then
 
3942
  $as_echo_n "(cached) " >&6
 
3943
else
 
3944
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3945
     for ac_i in 1 2 3 4 5 6 7; do
 
3946
       ac_script="$ac_script$as_nl$ac_script"
 
3947
     done
 
3948
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3949
     $as_unset ac_script || ac_script=
 
3950
     if test -z "$SED"; then
 
3951
  ac_path_SED_found=false
 
3952
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3953
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3954
for as_dir in $PATH
 
3955
do
 
3956
  IFS=$as_save_IFS
 
3957
  test -z "$as_dir" && as_dir=.
 
3958
  for ac_prog in sed gsed; do
 
3959
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3960
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3961
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3962
# Check for GNU ac_path_SED and select it if it is found.
 
3963
  # Check for GNU $ac_path_SED
 
3964
case `"$ac_path_SED" --version 2>&1` in
 
3965
*GNU*)
 
3966
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3967
*)
 
3968
  ac_count=0
 
3969
  $as_echo_n 0123456789 >"conftest.in"
 
3970
  while :
 
3971
  do
 
3972
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3973
    mv "conftest.tmp" "conftest.in"
 
3974
    cp "conftest.in" "conftest.nl"
 
3975
    $as_echo '' >> "conftest.nl"
 
3976
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3977
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3978
    ac_count=`expr $ac_count + 1`
 
3979
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3980
      # Best one so far, save it but keep looking for a better one
 
3981
      ac_cv_path_SED="$ac_path_SED"
 
3982
      ac_path_SED_max=$ac_count
 
3983
    fi
 
3984
    # 10*(2^10) chars as input seems more than enough
 
3985
    test $ac_count -gt 10 && break
 
3986
  done
 
3987
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3988
esac
 
3989
 
 
3990
      $ac_path_SED_found && break 3
 
3991
    done
 
3992
  done
 
3993
done
 
3994
IFS=$as_save_IFS
 
3995
  if test -z "$ac_cv_path_SED"; then
 
3996
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
3997
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
3998
   { (exit 1); exit 1; }; }
 
3999
  fi
 
4000
else
 
4001
  ac_cv_path_SED=$SED
 
4002
fi
 
4003
 
 
4004
fi
 
4005
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
4006
$as_echo "$ac_cv_path_SED" >&6; }
 
4007
 SED="$ac_cv_path_SED"
 
4008
  rm -f conftest.sed
 
4009
 
 
4010
test -z "$SED" && SED=sed
 
4011
Xsed="$SED -e 1s/^X//"
 
4012
 
 
4013
 
 
4014
 
 
4015
 
 
4016
 
 
4017
 
 
4018
 
 
4019
 
 
4020
 
 
4021
 
 
4022
 
 
4023
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4024
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4025
if test "${ac_cv_path_GREP+set}" = set; then
 
4026
  $as_echo_n "(cached) " >&6
 
4027
else
 
4028
  if test -z "$GREP"; then
 
4029
  ac_path_GREP_found=false
 
4030
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4031
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4032
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4033
do
 
4034
  IFS=$as_save_IFS
 
4035
  test -z "$as_dir" && as_dir=.
 
4036
  for ac_prog in grep ggrep; do
 
4037
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4038
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4039
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4040
# Check for GNU ac_path_GREP and select it if it is found.
 
4041
  # Check for GNU $ac_path_GREP
 
4042
case `"$ac_path_GREP" --version 2>&1` in
 
4043
*GNU*)
 
4044
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4045
*)
 
4046
  ac_count=0
 
4047
  $as_echo_n 0123456789 >"conftest.in"
 
4048
  while :
 
4049
  do
 
4050
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4051
    mv "conftest.tmp" "conftest.in"
 
4052
    cp "conftest.in" "conftest.nl"
 
4053
    $as_echo 'GREP' >> "conftest.nl"
 
4054
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4055
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4056
    ac_count=`expr $ac_count + 1`
 
4057
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4058
      # Best one so far, save it but keep looking for a better one
 
4059
      ac_cv_path_GREP="$ac_path_GREP"
 
4060
      ac_path_GREP_max=$ac_count
 
4061
    fi
 
4062
    # 10*(2^10) chars as input seems more than enough
 
4063
    test $ac_count -gt 10 && break
 
4064
  done
 
4065
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4066
esac
 
4067
 
 
4068
      $ac_path_GREP_found && break 3
 
4069
    done
 
4070
  done
 
4071
done
 
4072
IFS=$as_save_IFS
 
4073
  if test -z "$ac_cv_path_GREP"; then
 
4074
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4075
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4076
   { (exit 1); exit 1; }; }
 
4077
  fi
 
4078
else
 
4079
  ac_cv_path_GREP=$GREP
 
4080
fi
 
4081
 
 
4082
fi
 
4083
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4084
$as_echo "$ac_cv_path_GREP" >&6; }
 
4085
 GREP="$ac_cv_path_GREP"
 
4086
 
 
4087
 
 
4088
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
4089
$as_echo_n "checking for egrep... " >&6; }
 
4090
if test "${ac_cv_path_EGREP+set}" = set; then
 
4091
  $as_echo_n "(cached) " >&6
 
4092
else
 
4093
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4094
   then ac_cv_path_EGREP="$GREP -E"
 
4095
   else
 
4096
     if test -z "$EGREP"; then
 
4097
  ac_path_EGREP_found=false
 
4098
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4099
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4100
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4101
do
 
4102
  IFS=$as_save_IFS
 
4103
  test -z "$as_dir" && as_dir=.
 
4104
  for ac_prog in egrep; do
 
4105
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4106
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4107
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4108
# Check for GNU ac_path_EGREP and select it if it is found.
 
4109
  # Check for GNU $ac_path_EGREP
 
4110
case `"$ac_path_EGREP" --version 2>&1` in
 
4111
*GNU*)
 
4112
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4113
*)
 
4114
  ac_count=0
 
4115
  $as_echo_n 0123456789 >"conftest.in"
 
4116
  while :
 
4117
  do
 
4118
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4119
    mv "conftest.tmp" "conftest.in"
 
4120
    cp "conftest.in" "conftest.nl"
 
4121
    $as_echo 'EGREP' >> "conftest.nl"
 
4122
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4123
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4124
    ac_count=`expr $ac_count + 1`
 
4125
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4126
      # Best one so far, save it but keep looking for a better one
 
4127
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4128
      ac_path_EGREP_max=$ac_count
 
4129
    fi
 
4130
    # 10*(2^10) chars as input seems more than enough
 
4131
    test $ac_count -gt 10 && break
 
4132
  done
 
4133
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4134
esac
 
4135
 
 
4136
      $ac_path_EGREP_found && break 3
 
4137
    done
 
4138
  done
 
4139
done
 
4140
IFS=$as_save_IFS
 
4141
  if test -z "$ac_cv_path_EGREP"; then
 
4142
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4143
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4144
   { (exit 1); exit 1; }; }
 
4145
  fi
 
4146
else
 
4147
  ac_cv_path_EGREP=$EGREP
 
4148
fi
 
4149
 
 
4150
   fi
 
4151
fi
 
4152
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4153
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4154
 EGREP="$ac_cv_path_EGREP"
 
4155
 
 
4156
 
 
4157
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
4158
$as_echo_n "checking for fgrep... " >&6; }
 
4159
if test "${ac_cv_path_FGREP+set}" = set; then
 
4160
  $as_echo_n "(cached) " >&6
 
4161
else
 
4162
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4163
   then ac_cv_path_FGREP="$GREP -F"
 
4164
   else
 
4165
     if test -z "$FGREP"; then
 
4166
  ac_path_FGREP_found=false
 
4167
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4168
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4169
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4170
do
 
4171
  IFS=$as_save_IFS
 
4172
  test -z "$as_dir" && as_dir=.
 
4173
  for ac_prog in fgrep; do
 
4174
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4175
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4176
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4177
# Check for GNU ac_path_FGREP and select it if it is found.
 
4178
  # Check for GNU $ac_path_FGREP
 
4179
case `"$ac_path_FGREP" --version 2>&1` in
 
4180
*GNU*)
 
4181
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4182
*)
 
4183
  ac_count=0
 
4184
  $as_echo_n 0123456789 >"conftest.in"
 
4185
  while :
 
4186
  do
 
4187
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4188
    mv "conftest.tmp" "conftest.in"
 
4189
    cp "conftest.in" "conftest.nl"
 
4190
    $as_echo 'FGREP' >> "conftest.nl"
 
4191
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4192
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4193
    ac_count=`expr $ac_count + 1`
 
4194
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4195
      # Best one so far, save it but keep looking for a better one
 
4196
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4197
      ac_path_FGREP_max=$ac_count
 
4198
    fi
 
4199
    # 10*(2^10) chars as input seems more than enough
 
4200
    test $ac_count -gt 10 && break
 
4201
  done
 
4202
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4203
esac
 
4204
 
 
4205
      $ac_path_FGREP_found && break 3
 
4206
    done
 
4207
  done
 
4208
done
 
4209
IFS=$as_save_IFS
 
4210
  if test -z "$ac_cv_path_FGREP"; then
 
4211
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4212
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4213
   { (exit 1); exit 1; }; }
 
4214
  fi
 
4215
else
 
4216
  ac_cv_path_FGREP=$FGREP
 
4217
fi
 
4218
 
 
4219
   fi
 
4220
fi
 
4221
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4222
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4223
 FGREP="$ac_cv_path_FGREP"
 
4224
 
 
4225
 
 
4226
test -z "$GREP" && GREP=grep
 
4227
 
 
4228
 
 
4229
 
 
4230
 
 
4231
 
 
4232
 
 
4233
 
 
4234
 
 
4235
 
 
4236
 
 
4237
 
 
4238
 
 
4239
 
 
4240
 
 
4241
 
 
4242
 
 
4243
 
 
4244
 
 
4245
 
 
4246
# Check whether --with-gnu-ld was given.
 
4247
if test "${with_gnu_ld+set}" = set; then
 
4248
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4249
else
 
4250
  with_gnu_ld=no
 
4251
fi
 
4252
 
 
4253
ac_prog=ld
 
4254
if test "$GCC" = yes; then
 
4255
  # Check if gcc -print-prog-name=ld gives a path.
 
4256
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4257
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4258
  case $host in
 
4259
  *-*-mingw*)
 
4260
    # gcc leaves a trailing carriage return which upsets mingw
 
4261
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4262
  *)
 
4263
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4264
  esac
 
4265
  case $ac_prog in
 
4266
    # Accept absolute paths.
 
4267
    [\\/]* | ?:[\\/]*)
 
4268
      re_direlt='/[^/][^/]*/\.\./'
 
4269
      # Canonicalize the pathname of ld
 
4270
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4271
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4272
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4273
      done
 
4274
      test -z "$LD" && LD="$ac_prog"
 
4275
      ;;
 
4276
  "")
 
4277
    # If it fails, then pretend we aren't using GCC.
 
4278
    ac_prog=ld
 
4279
    ;;
 
4280
  *)
 
4281
    # If it is relative, then search for the first ld in PATH.
 
4282
    with_gnu_ld=unknown
 
4283
    ;;
 
4284
  esac
 
4285
elif test "$with_gnu_ld" = yes; then
 
4286
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4287
$as_echo_n "checking for GNU ld... " >&6; }
 
4288
else
 
4289
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4290
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4291
fi
 
4292
if test "${lt_cv_path_LD+set}" = set; then
 
4293
  $as_echo_n "(cached) " >&6
 
4294
else
 
4295
  if test -z "$LD"; then
 
4296
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4297
  for ac_dir in $PATH; do
 
4298
    IFS="$lt_save_ifs"
 
4299
    test -z "$ac_dir" && ac_dir=.
 
4300
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4301
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4302
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4303
      # but apparently some variants of GNU ld only accept -v.
 
4304
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4305
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4306
      *GNU* | *'with BFD'*)
 
4307
        test "$with_gnu_ld" != no && break
 
4308
        ;;
 
4309
      *)
 
4310
        test "$with_gnu_ld" != yes && break
 
4311
        ;;
 
4312
      esac
 
4313
    fi
 
4314
  done
 
4315
  IFS="$lt_save_ifs"
 
4316
else
 
4317
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4318
fi
 
4319
fi
 
4320
 
 
4321
LD="$lt_cv_path_LD"
 
4322
if test -n "$LD"; then
 
4323
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4324
$as_echo "$LD" >&6; }
 
4325
else
 
4326
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4327
$as_echo "no" >&6; }
 
4328
fi
 
4329
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4330
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4331
   { (exit 1); exit 1; }; }
 
4332
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4333
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4334
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4335
  $as_echo_n "(cached) " >&6
 
4336
else
 
4337
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4338
case `$LD -v 2>&1 </dev/null` in
 
4339
*GNU* | *'with BFD'*)
 
4340
  lt_cv_prog_gnu_ld=yes
 
4341
  ;;
 
4342
*)
 
4343
  lt_cv_prog_gnu_ld=no
 
4344
  ;;
 
4345
esac
 
4346
fi
 
4347
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4348
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4349
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4350
 
 
4351
 
 
4352
 
 
4353
 
 
4354
 
 
4355
 
 
4356
 
 
4357
 
 
4358
 
 
4359
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4360
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4361
if test "${lt_cv_path_NM+set}" = set; then
 
4362
  $as_echo_n "(cached) " >&6
 
4363
else
 
4364
  if test -n "$NM"; then
 
4365
  # Let the user override the test.
 
4366
  lt_cv_path_NM="$NM"
 
4367
else
 
4368
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4369
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4370
    lt_nm_to_check="$lt_nm_to_check nm"
 
4371
  fi
 
4372
  for lt_tmp_nm in $lt_nm_to_check; do
 
4373
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4374
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4375
      IFS="$lt_save_ifs"
 
4376
      test -z "$ac_dir" && ac_dir=.
 
4377
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4378
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4379
        # Check to see if the nm accepts a BSD-compat flag.
 
4380
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4381
        #   nm: unknown option "B" ignored
 
4382
        # Tru64's nm complains that /dev/null is an invalid object file
 
4383
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4384
        */dev/null* | *'Invalid file or object type'*)
 
4385
          lt_cv_path_NM="$tmp_nm -B"
 
4386
          break
 
4387
          ;;
 
4388
        *)
 
4389
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4390
          */dev/null*)
 
4391
            lt_cv_path_NM="$tmp_nm -p"
 
4392
            break
 
4393
            ;;
 
4394
          *)
 
4395
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4396
            continue # so that we can try to find one that supports BSD flags
 
4397
            ;;
 
4398
          esac
 
4399
          ;;
 
4400
        esac
 
4401
      fi
 
4402
    done
 
4403
    IFS="$lt_save_ifs"
 
4404
  done
 
4405
  : ${lt_cv_path_NM=no}
 
4406
fi
 
4407
fi
 
4408
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4409
$as_echo "$lt_cv_path_NM" >&6; }
 
4410
if test "$lt_cv_path_NM" != "no"; then
 
4411
  NM="$lt_cv_path_NM"
 
4412
else
 
4413
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4414
  if test -n "$ac_tool_prefix"; then
 
4415
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4416
  do
 
4417
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4418
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4419
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4420
$as_echo_n "checking for $ac_word... " >&6; }
 
4421
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4422
  $as_echo_n "(cached) " >&6
 
4423
else
 
4424
  if test -n "$DUMPBIN"; then
 
4425
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4426
else
 
4427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4428
for as_dir in $PATH
 
4429
do
 
4430
  IFS=$as_save_IFS
 
4431
  test -z "$as_dir" && as_dir=.
 
4432
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4433
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4434
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4435
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4436
    break 2
 
4437
  fi
 
4438
done
 
4439
done
 
4440
IFS=$as_save_IFS
 
4441
 
 
4442
fi
 
4443
fi
 
4444
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4445
if test -n "$DUMPBIN"; then
 
4446
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4447
$as_echo "$DUMPBIN" >&6; }
 
4448
else
 
4449
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4450
$as_echo "no" >&6; }
 
4451
fi
 
4452
 
 
4453
 
 
4454
    test -n "$DUMPBIN" && break
 
4455
  done
 
4456
fi
 
4457
if test -z "$DUMPBIN"; then
 
4458
  ac_ct_DUMPBIN=$DUMPBIN
 
4459
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4460
do
 
4461
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4462
set dummy $ac_prog; ac_word=$2
 
4463
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4464
$as_echo_n "checking for $ac_word... " >&6; }
 
4465
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4466
  $as_echo_n "(cached) " >&6
 
4467
else
 
4468
  if test -n "$ac_ct_DUMPBIN"; then
 
4469
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4470
else
 
4471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4472
for as_dir in $PATH
 
4473
do
 
4474
  IFS=$as_save_IFS
 
4475
  test -z "$as_dir" && as_dir=.
 
4476
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4477
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4478
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4479
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4480
    break 2
 
4481
  fi
 
4482
done
 
4483
done
 
4484
IFS=$as_save_IFS
 
4485
 
 
4486
fi
 
4487
fi
 
4488
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4489
if test -n "$ac_ct_DUMPBIN"; then
 
4490
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4491
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4492
else
 
4493
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4494
$as_echo "no" >&6; }
 
4495
fi
 
4496
 
 
4497
 
 
4498
  test -n "$ac_ct_DUMPBIN" && break
 
4499
done
 
4500
 
 
4501
  if test "x$ac_ct_DUMPBIN" = x; then
 
4502
    DUMPBIN=":"
 
4503
  else
 
4504
    case $cross_compiling:$ac_tool_warned in
 
4505
yes:)
 
4506
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4507
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4508
ac_tool_warned=yes ;;
 
4509
esac
 
4510
    DUMPBIN=$ac_ct_DUMPBIN
 
4511
  fi
 
4512
fi
 
4513
 
 
4514
 
 
4515
  if test "$DUMPBIN" != ":"; then
 
4516
    NM="$DUMPBIN"
 
4517
  fi
 
4518
fi
 
4519
test -z "$NM" && NM=nm
 
4520
 
 
4521
 
 
4522
 
 
4523
 
 
4524
 
 
4525
 
 
4526
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4527
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4528
if test "${lt_cv_nm_interface+set}" = set; then
 
4529
  $as_echo_n "(cached) " >&6
 
4530
else
 
4531
  lt_cv_nm_interface="BSD nm"
 
4532
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4533
  (eval echo "\"\$as_me:4533: $ac_compile\"" >&5)
 
4534
  (eval "$ac_compile" 2>conftest.err)
 
4535
  cat conftest.err >&5
 
4536
  (eval echo "\"\$as_me:4536: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4537
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4538
  cat conftest.err >&5
 
4539
  (eval echo "\"\$as_me:4539: output\"" >&5)
 
4540
  cat conftest.out >&5
 
4541
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4542
    lt_cv_nm_interface="MS dumpbin"
 
4543
  fi
 
4544
  rm -f conftest*
 
4545
fi
 
4546
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4547
$as_echo "$lt_cv_nm_interface" >&6; }
 
4548
 
 
4549
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4550
$as_echo_n "checking whether ln -s works... " >&6; }
 
4551
LN_S=$as_ln_s
 
4552
if test "$LN_S" = "ln -s"; then
 
4553
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4554
$as_echo "yes" >&6; }
 
4555
else
 
4556
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4557
$as_echo "no, using $LN_S" >&6; }
 
4558
fi
 
4559
 
 
4560
# find the maximum length of command line arguments
 
4561
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4562
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4563
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4564
  $as_echo_n "(cached) " >&6
 
4565
else
 
4566
    i=0
 
4567
  teststring="ABCD"
 
4568
 
 
4569
  case $build_os in
 
4570
  msdosdjgpp*)
 
4571
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4572
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4573
    # during glob expansion).  Even if it were fixed, the result of this
 
4574
    # check would be larger than it should be.
 
4575
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4576
    ;;
 
4577
 
 
4578
  gnu*)
 
4579
    # Under GNU Hurd, this test is not required because there is
 
4580
    # no limit to the length of command line arguments.
 
4581
    # Libtool will interpret -1 as no limit whatsoever
 
4582
    lt_cv_sys_max_cmd_len=-1;
 
4583
    ;;
 
4584
 
 
4585
  cygwin* | mingw* | cegcc*)
 
4586
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4587
    # about 5 minutes as the teststring grows exponentially.
 
4588
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4589
    # you end up with a "frozen" computer, even though with patience
 
4590
    # the test eventually succeeds (with a max line length of 256k).
 
4591
    # Instead, let's just punt: use the minimum linelength reported by
 
4592
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4593
    lt_cv_sys_max_cmd_len=8192;
 
4594
    ;;
 
4595
 
 
4596
  amigaos*)
 
4597
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4598
    # So we just punt and use a minimum line length of 8192.
 
4599
    lt_cv_sys_max_cmd_len=8192;
 
4600
    ;;
 
4601
 
 
4602
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4603
    # This has been around since 386BSD, at least.  Likely further.
 
4604
    if test -x /sbin/sysctl; then
 
4605
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4606
    elif test -x /usr/sbin/sysctl; then
 
4607
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4608
    else
 
4609
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4610
    fi
 
4611
    # And add a safety zone
 
4612
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4613
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4614
    ;;
 
4615
 
 
4616
  interix*)
 
4617
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4618
    lt_cv_sys_max_cmd_len=196608
 
4619
    ;;
 
4620
 
 
4621
  osf*)
 
4622
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4623
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4624
    # nice to cause kernel panics so lets avoid the loop below.
 
4625
    # First set a reasonable default.
 
4626
    lt_cv_sys_max_cmd_len=16384
 
4627
    #
 
4628
    if test -x /sbin/sysconfig; then
 
4629
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4630
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4631
      esac
 
4632
    fi
 
4633
    ;;
 
4634
  sco3.2v5*)
 
4635
    lt_cv_sys_max_cmd_len=102400
 
4636
    ;;
 
4637
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4638
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4639
    if test -n "$kargmax"; then
 
4640
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4641
    else
 
4642
      lt_cv_sys_max_cmd_len=32768
 
4643
    fi
 
4644
    ;;
 
4645
  *)
 
4646
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4647
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4648
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4649
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4650
    else
 
4651
      # Make teststring a little bigger before we do anything with it.
 
4652
      # a 1K string should be a reasonable start.
 
4653
      for i in 1 2 3 4 5 6 7 8 ; do
 
4654
        teststring=$teststring$teststring
 
4655
      done
 
4656
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4657
      # If test is not a shell built-in, we'll probably end up computing a
 
4658
      # maximum length that is only half of the actual maximum length, but
 
4659
      # we can't tell.
 
4660
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4661
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4662
              test $i != 17 # 1/2 MB should be enough
 
4663
      do
 
4664
        i=`expr $i + 1`
 
4665
        teststring=$teststring$teststring
 
4666
      done
 
4667
      # Only check the string length outside the loop.
 
4668
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4669
      teststring=
 
4670
      # Add a significant safety factor because C++ compilers can tack on
 
4671
      # massive amounts of additional arguments before passing them to the
 
4672
      # linker.  It appears as though 1/2 is a usable value.
 
4673
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4674
    fi
 
4675
    ;;
 
4676
  esac
 
4677
 
 
4678
fi
 
4679
 
 
4680
if test -n $lt_cv_sys_max_cmd_len ; then
 
4681
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4682
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4683
else
 
4684
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
4685
$as_echo "none" >&6; }
 
4686
fi
 
4687
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4688
 
 
4689
 
 
4690
 
 
4691
 
 
4692
 
 
4693
 
 
4694
: ${CP="cp -f"}
 
4695
: ${MV="mv -f"}
 
4696
: ${RM="rm -f"}
 
4697
 
 
4698
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
4699
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4700
# Try some XSI features
 
4701
xsi_shell=no
 
4702
( _lt_dummy="a/b/c"
 
4703
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4704
      = c,a/b,, \
 
4705
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4706
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4707
  && xsi_shell=yes
 
4708
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
4709
$as_echo "$xsi_shell" >&6; }
 
4710
 
 
4711
 
 
4712
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
4713
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4714
lt_shell_append=no
 
4715
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4716
    >/dev/null 2>&1 \
 
4717
  && lt_shell_append=yes
 
4718
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
4719
$as_echo "$lt_shell_append" >&6; }
 
4720
 
 
4721
 
 
4722
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4723
  lt_unset=unset
 
4724
else
 
4725
  lt_unset=false
 
4726
fi
 
4727
 
 
4728
 
 
4729
 
 
4730
 
 
4731
 
 
4732
# test EBCDIC or ASCII
 
4733
case `echo X|tr X '\101'` in
 
4734
 A) # ASCII based system
 
4735
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4736
  lt_SP2NL='tr \040 \012'
 
4737
  lt_NL2SP='tr \015\012 \040\040'
 
4738
  ;;
 
4739
 *) # EBCDIC based system
 
4740
  lt_SP2NL='tr \100 \n'
 
4741
  lt_NL2SP='tr \r\n \100\100'
 
4742
  ;;
 
4743
esac
 
4744
 
 
4745
 
 
4746
 
 
4747
 
 
4748
 
 
4749
 
 
4750
 
 
4751
 
 
4752
 
 
4753
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4754
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4755
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4756
  $as_echo_n "(cached) " >&6
 
4757
else
 
4758
  lt_cv_ld_reload_flag='-r'
 
4759
fi
 
4760
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4761
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4762
reload_flag=$lt_cv_ld_reload_flag
 
4763
case $reload_flag in
 
4764
"" | " "*) ;;
 
4765
*) reload_flag=" $reload_flag" ;;
 
4766
esac
 
4767
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4768
case $host_os in
 
4769
  darwin*)
 
4770
    if test "$GCC" = yes; then
 
4771
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4772
    else
 
4773
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4774
    fi
 
4775
    ;;
 
4776
esac
 
4777
 
 
4778
 
 
4779
 
 
4780
 
 
4781
 
 
4782
 
 
4783
 
 
4784
 
 
4785
 
 
4786
if test -n "$ac_tool_prefix"; then
 
4787
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4788
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4789
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4790
$as_echo_n "checking for $ac_word... " >&6; }
 
4791
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4792
  $as_echo_n "(cached) " >&6
 
4793
else
 
4794
  if test -n "$OBJDUMP"; then
 
4795
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4796
else
 
4797
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4798
for as_dir in $PATH
 
4799
do
 
4800
  IFS=$as_save_IFS
 
4801
  test -z "$as_dir" && as_dir=.
 
4802
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4803
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4804
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4805
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4806
    break 2
 
4807
  fi
 
4808
done
 
4809
done
 
4810
IFS=$as_save_IFS
 
4811
 
 
4812
fi
 
4813
fi
 
4814
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4815
if test -n "$OBJDUMP"; then
 
4816
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4817
$as_echo "$OBJDUMP" >&6; }
 
4818
else
 
4819
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4820
$as_echo "no" >&6; }
 
4821
fi
 
4822
 
 
4823
 
 
4824
fi
 
4825
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4826
  ac_ct_OBJDUMP=$OBJDUMP
 
4827
  # Extract the first word of "objdump", so it can be a program name with args.
 
4828
set dummy objdump; ac_word=$2
 
4829
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4830
$as_echo_n "checking for $ac_word... " >&6; }
 
4831
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4832
  $as_echo_n "(cached) " >&6
 
4833
else
 
4834
  if test -n "$ac_ct_OBJDUMP"; then
 
4835
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4836
else
 
4837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4838
for as_dir in $PATH
 
4839
do
 
4840
  IFS=$as_save_IFS
 
4841
  test -z "$as_dir" && as_dir=.
 
4842
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4843
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4844
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4845
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4846
    break 2
 
4847
  fi
 
4848
done
 
4849
done
 
4850
IFS=$as_save_IFS
 
4851
 
 
4852
fi
 
4853
fi
 
4854
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4855
if test -n "$ac_ct_OBJDUMP"; then
 
4856
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4857
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4858
else
 
4859
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4860
$as_echo "no" >&6; }
 
4861
fi
 
4862
 
 
4863
  if test "x$ac_ct_OBJDUMP" = x; then
 
4864
    OBJDUMP="false"
 
4865
  else
 
4866
    case $cross_compiling:$ac_tool_warned in
 
4867
yes:)
 
4868
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4869
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4870
ac_tool_warned=yes ;;
 
4871
esac
 
4872
    OBJDUMP=$ac_ct_OBJDUMP
 
4873
  fi
 
4874
else
 
4875
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4876
fi
 
4877
 
 
4878
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4879
 
 
4880
 
 
4881
 
 
4882
 
 
4883
 
 
4884
 
 
4885
 
 
4886
 
 
4887
 
 
4888
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4889
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4890
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4891
  $as_echo_n "(cached) " >&6
 
4892
else
 
4893
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4894
lt_cv_file_magic_test_file=
 
4895
lt_cv_deplibs_check_method='unknown'
 
4896
# Need to set the preceding variable on all platforms that support
 
4897
# interlibrary dependencies.
 
4898
# 'none' -- dependencies not supported.
 
4899
# `unknown' -- same as none, but documents that we really don't know.
 
4900
# 'pass_all' -- all dependencies passed with no checks.
 
4901
# 'test_compile' -- check by making test program.
 
4902
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4903
# which responds to the $file_magic_cmd with a given extended regex.
 
4904
# If you have `file' or equivalent on your system and you're not sure
 
4905
# whether `pass_all' will *always* work, you probably want this one.
 
4906
 
 
4907
case $host_os in
 
4908
aix[4-9]*)
 
4909
  lt_cv_deplibs_check_method=pass_all
 
4910
  ;;
 
4911
 
 
4912
beos*)
 
4913
  lt_cv_deplibs_check_method=pass_all
 
4914
  ;;
 
4915
 
 
4916
bsdi[45]*)
 
4917
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4918
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4919
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4920
  ;;
 
4921
 
 
4922
cygwin*)
 
4923
  # func_win32_libid is a shell function defined in ltmain.sh
 
4924
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4925
  lt_cv_file_magic_cmd='func_win32_libid'
 
4926
  ;;
 
4927
 
 
4928
mingw* | pw32*)
 
4929
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4930
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4931
  # unless we find 'file', for example because we are cross-compiling.
 
4932
  if ( file / ) >/dev/null 2>&1; then
 
4933
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4934
    lt_cv_file_magic_cmd='func_win32_libid'
 
4935
  else
 
4936
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4937
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4938
  fi
 
4939
  ;;
 
4940
 
 
4941
cegcc)
 
4942
  # use the weaker test based on 'objdump'. See mingw*.
 
4943
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4944
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4945
  ;;
 
4946
 
 
4947
darwin* | rhapsody*)
 
4948
  lt_cv_deplibs_check_method=pass_all
 
4949
  ;;
 
4950
 
 
4951
freebsd* | dragonfly*)
 
4952
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4953
    case $host_cpu in
 
4954
    i*86 )
 
4955
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4956
      # Let's accept both of them until this is cleared up.
 
4957
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4958
      lt_cv_file_magic_cmd=/usr/bin/file
 
4959
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4960
      ;;
 
4961
    esac
 
4962
  else
 
4963
    lt_cv_deplibs_check_method=pass_all
 
4964
  fi
 
4965
  ;;
 
4966
 
 
4967
gnu*)
 
4968
  lt_cv_deplibs_check_method=pass_all
 
4969
  ;;
 
4970
 
 
4971
hpux10.20* | hpux11*)
 
4972
  lt_cv_file_magic_cmd=/usr/bin/file
 
4973
  case $host_cpu in
 
4974
  ia64*)
 
4975
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4976
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4977
    ;;
 
4978
  hppa*64*)
 
4979
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4980
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4981
    ;;
 
4982
  *)
 
4983
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4984
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4985
    ;;
 
4986
  esac
 
4987
  ;;
 
4988
 
 
4989
interix[3-9]*)
 
4990
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4991
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4992
  ;;
 
4993
 
 
4994
irix5* | irix6* | nonstopux*)
 
4995
  case $LD in
 
4996
  *-32|*"-32 ") libmagic=32-bit;;
 
4997
  *-n32|*"-n32 ") libmagic=N32;;
 
4998
  *-64|*"-64 ") libmagic=64-bit;;
 
4999
  *) libmagic=never-match;;
 
5000
  esac
 
5001
  lt_cv_deplibs_check_method=pass_all
 
5002
  ;;
 
5003
 
 
5004
# This must be Linux ELF.
 
5005
linux* | k*bsd*-gnu)
 
5006
  lt_cv_deplibs_check_method=pass_all
 
5007
  ;;
 
5008
 
 
5009
netbsd*)
 
5010
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5011
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5012
  else
 
5013
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5014
  fi
 
5015
  ;;
 
5016
 
 
5017
newos6*)
 
5018
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5019
  lt_cv_file_magic_cmd=/usr/bin/file
 
5020
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5021
  ;;
 
5022
 
 
5023
*nto* | *qnx*)
 
5024
  lt_cv_deplibs_check_method=pass_all
 
5025
  ;;
 
5026
 
 
5027
openbsd*)
 
5028
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5029
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5030
  else
 
5031
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5032
  fi
 
5033
  ;;
 
5034
 
 
5035
osf3* | osf4* | osf5*)
 
5036
  lt_cv_deplibs_check_method=pass_all
 
5037
  ;;
 
5038
 
 
5039
rdos*)
 
5040
  lt_cv_deplibs_check_method=pass_all
 
5041
  ;;
 
5042
 
 
5043
solaris*)
 
5044
  lt_cv_deplibs_check_method=pass_all
 
5045
  ;;
 
5046
 
 
5047
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5048
  lt_cv_deplibs_check_method=pass_all
 
5049
  ;;
 
5050
 
 
5051
sysv4 | sysv4.3*)
 
5052
  case $host_vendor in
 
5053
  motorola)
 
5054
    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]'
 
5055
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5056
    ;;
 
5057
  ncr)
 
5058
    lt_cv_deplibs_check_method=pass_all
 
5059
    ;;
 
5060
  sequent)
 
5061
    lt_cv_file_magic_cmd='/bin/file'
 
5062
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5063
    ;;
 
5064
  sni)
 
5065
    lt_cv_file_magic_cmd='/bin/file'
 
5066
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5067
    lt_cv_file_magic_test_file=/lib/libc.so
 
5068
    ;;
 
5069
  siemens)
 
5070
    lt_cv_deplibs_check_method=pass_all
 
5071
    ;;
 
5072
  pc)
 
5073
    lt_cv_deplibs_check_method=pass_all
 
5074
    ;;
 
5075
  esac
 
5076
  ;;
 
5077
 
 
5078
tpf*)
 
5079
  lt_cv_deplibs_check_method=pass_all
 
5080
  ;;
 
5081
esac
 
5082
 
 
5083
fi
 
5084
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5085
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5086
file_magic_cmd=$lt_cv_file_magic_cmd
 
5087
deplibs_check_method=$lt_cv_deplibs_check_method
 
5088
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5089
 
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
 
5101
if test -n "$ac_tool_prefix"; then
 
5102
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5103
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5104
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5105
$as_echo_n "checking for $ac_word... " >&6; }
 
5106
if test "${ac_cv_prog_AR+set}" = set; then
 
5107
  $as_echo_n "(cached) " >&6
 
5108
else
 
5109
  if test -n "$AR"; then
 
5110
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5111
else
 
5112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5113
for as_dir in $PATH
 
5114
do
 
5115
  IFS=$as_save_IFS
 
5116
  test -z "$as_dir" && as_dir=.
 
5117
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5118
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5119
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5120
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5121
    break 2
 
5122
  fi
 
5123
done
 
5124
done
 
5125
IFS=$as_save_IFS
 
5126
 
 
5127
fi
 
5128
fi
 
5129
AR=$ac_cv_prog_AR
 
5130
if test -n "$AR"; then
 
5131
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
5132
$as_echo "$AR" >&6; }
 
5133
else
 
5134
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5135
$as_echo "no" >&6; }
 
5136
fi
 
5137
 
 
5138
 
 
5139
fi
 
5140
if test -z "$ac_cv_prog_AR"; then
 
5141
  ac_ct_AR=$AR
 
5142
  # Extract the first word of "ar", so it can be a program name with args.
 
5143
set dummy ar; ac_word=$2
 
5144
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5145
$as_echo_n "checking for $ac_word... " >&6; }
 
5146
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5147
  $as_echo_n "(cached) " >&6
 
5148
else
 
5149
  if test -n "$ac_ct_AR"; then
 
5150
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5151
else
 
5152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5153
for as_dir in $PATH
 
5154
do
 
5155
  IFS=$as_save_IFS
 
5156
  test -z "$as_dir" && as_dir=.
 
5157
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5158
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5159
    ac_cv_prog_ac_ct_AR="ar"
 
5160
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5161
    break 2
 
5162
  fi
 
5163
done
 
5164
done
 
5165
IFS=$as_save_IFS
 
5166
 
 
5167
fi
 
5168
fi
 
5169
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5170
if test -n "$ac_ct_AR"; then
 
5171
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5172
$as_echo "$ac_ct_AR" >&6; }
 
5173
else
 
5174
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5175
$as_echo "no" >&6; }
 
5176
fi
 
5177
 
 
5178
  if test "x$ac_ct_AR" = x; then
 
5179
    AR="false"
 
5180
  else
 
5181
    case $cross_compiling:$ac_tool_warned in
 
5182
yes:)
 
5183
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5184
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5185
ac_tool_warned=yes ;;
 
5186
esac
 
5187
    AR=$ac_ct_AR
 
5188
  fi
 
5189
else
 
5190
  AR="$ac_cv_prog_AR"
 
5191
fi
 
5192
 
 
5193
test -z "$AR" && AR=ar
 
5194
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5195
 
 
5196
 
 
5197
 
 
5198
 
 
5199
 
 
5200
 
 
5201
 
 
5202
 
 
5203
 
 
5204
 
 
5205
 
 
5206
if test -n "$ac_tool_prefix"; then
 
5207
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5208
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5209
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5210
$as_echo_n "checking for $ac_word... " >&6; }
 
5211
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5212
  $as_echo_n "(cached) " >&6
 
5213
else
 
5214
  if test -n "$STRIP"; then
 
5215
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5216
else
 
5217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5218
for as_dir in $PATH
 
5219
do
 
5220
  IFS=$as_save_IFS
 
5221
  test -z "$as_dir" && as_dir=.
 
5222
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5223
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5224
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5225
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5226
    break 2
 
5227
  fi
 
5228
done
 
5229
done
 
5230
IFS=$as_save_IFS
 
5231
 
 
5232
fi
 
5233
fi
 
5234
STRIP=$ac_cv_prog_STRIP
 
5235
if test -n "$STRIP"; then
 
5236
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
5237
$as_echo "$STRIP" >&6; }
 
5238
else
 
5239
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5240
$as_echo "no" >&6; }
 
5241
fi
 
5242
 
 
5243
 
 
5244
fi
 
5245
if test -z "$ac_cv_prog_STRIP"; then
 
5246
  ac_ct_STRIP=$STRIP
 
5247
  # Extract the first word of "strip", so it can be a program name with args.
 
5248
set dummy strip; ac_word=$2
 
5249
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5250
$as_echo_n "checking for $ac_word... " >&6; }
 
5251
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5252
  $as_echo_n "(cached) " >&6
 
5253
else
 
5254
  if test -n "$ac_ct_STRIP"; then
 
5255
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5256
else
 
5257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5258
for as_dir in $PATH
 
5259
do
 
5260
  IFS=$as_save_IFS
 
5261
  test -z "$as_dir" && as_dir=.
 
5262
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5263
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5264
    ac_cv_prog_ac_ct_STRIP="strip"
 
5265
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5266
    break 2
 
5267
  fi
 
5268
done
 
5269
done
 
5270
IFS=$as_save_IFS
 
5271
 
 
5272
fi
 
5273
fi
 
5274
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5275
if test -n "$ac_ct_STRIP"; then
 
5276
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5277
$as_echo "$ac_ct_STRIP" >&6; }
 
5278
else
 
5279
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5280
$as_echo "no" >&6; }
 
5281
fi
 
5282
 
 
5283
  if test "x$ac_ct_STRIP" = x; then
 
5284
    STRIP=":"
 
5285
  else
 
5286
    case $cross_compiling:$ac_tool_warned in
 
5287
yes:)
 
5288
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5289
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5290
ac_tool_warned=yes ;;
 
5291
esac
 
5292
    STRIP=$ac_ct_STRIP
 
5293
  fi
 
5294
else
 
5295
  STRIP="$ac_cv_prog_STRIP"
 
5296
fi
 
5297
 
 
5298
test -z "$STRIP" && STRIP=:
 
5299
 
 
5300
 
 
5301
 
 
5302
 
 
5303
 
 
5304
 
 
5305
if test -n "$ac_tool_prefix"; then
 
5306
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5307
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5308
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5309
$as_echo_n "checking for $ac_word... " >&6; }
 
5310
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5311
  $as_echo_n "(cached) " >&6
 
5312
else
 
5313
  if test -n "$RANLIB"; then
 
5314
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5315
else
 
5316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5317
for as_dir in $PATH
 
5318
do
 
5319
  IFS=$as_save_IFS
 
5320
  test -z "$as_dir" && as_dir=.
 
5321
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5322
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5323
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5324
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5325
    break 2
 
5326
  fi
 
5327
done
 
5328
done
 
5329
IFS=$as_save_IFS
 
5330
 
 
5331
fi
 
5332
fi
 
5333
RANLIB=$ac_cv_prog_RANLIB
 
5334
if test -n "$RANLIB"; then
 
5335
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5336
$as_echo "$RANLIB" >&6; }
 
5337
else
 
5338
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5339
$as_echo "no" >&6; }
 
5340
fi
 
5341
 
 
5342
 
 
5343
fi
 
5344
if test -z "$ac_cv_prog_RANLIB"; then
 
5345
  ac_ct_RANLIB=$RANLIB
 
5346
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5347
set dummy ranlib; ac_word=$2
 
5348
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5349
$as_echo_n "checking for $ac_word... " >&6; }
 
5350
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5351
  $as_echo_n "(cached) " >&6
 
5352
else
 
5353
  if test -n "$ac_ct_RANLIB"; then
 
5354
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5355
else
 
5356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5357
for as_dir in $PATH
 
5358
do
 
5359
  IFS=$as_save_IFS
 
5360
  test -z "$as_dir" && as_dir=.
 
5361
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5362
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5363
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5364
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5365
    break 2
 
5366
  fi
 
5367
done
 
5368
done
 
5369
IFS=$as_save_IFS
 
5370
 
 
5371
fi
 
5372
fi
 
5373
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5374
if test -n "$ac_ct_RANLIB"; then
 
5375
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5376
$as_echo "$ac_ct_RANLIB" >&6; }
 
5377
else
 
5378
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5379
$as_echo "no" >&6; }
 
5380
fi
 
5381
 
 
5382
  if test "x$ac_ct_RANLIB" = x; then
 
5383
    RANLIB=":"
 
5384
  else
 
5385
    case $cross_compiling:$ac_tool_warned in
 
5386
yes:)
 
5387
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5388
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5389
ac_tool_warned=yes ;;
 
5390
esac
 
5391
    RANLIB=$ac_ct_RANLIB
 
5392
  fi
 
5393
else
 
5394
  RANLIB="$ac_cv_prog_RANLIB"
 
5395
fi
 
5396
 
 
5397
test -z "$RANLIB" && RANLIB=:
 
5398
 
 
5399
 
 
5400
 
 
5401
 
 
5402
 
 
5403
 
 
5404
# Determine commands to create old-style static archives.
 
5405
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5406
old_postinstall_cmds='chmod 644 $oldlib'
 
5407
old_postuninstall_cmds=
 
5408
 
 
5409
if test -n "$RANLIB"; then
 
5410
  case $host_os in
 
5411
  openbsd*)
 
5412
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5413
    ;;
 
5414
  *)
 
5415
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5416
    ;;
 
5417
  esac
 
5418
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5419
fi
 
5420
 
 
5421
 
 
5422
 
 
5423
 
 
5424
 
 
5425
 
 
5426
 
 
5427
 
 
5428
 
 
5429
 
 
5430
 
 
5431
 
 
5432
 
 
5433
 
 
5434
 
 
5435
 
 
5436
 
 
5437
 
 
5438
 
 
5439
 
 
5440
 
 
5441
 
 
5442
 
 
5443
 
 
5444
 
 
5445
 
 
5446
 
 
5447
 
 
5448
 
 
5449
 
 
5450
 
 
5451
 
 
5452
 
 
5453
 
 
5454
# If no C compiler was specified, use CC.
 
5455
LTCC=${LTCC-"$CC"}
 
5456
 
 
5457
# If no C compiler flags were specified, use CFLAGS.
 
5458
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5459
 
 
5460
# Allow CC to be a program name with arguments.
 
5461
compiler=$CC
 
5462
 
 
5463
 
 
5464
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5465
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5466
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5467
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5468
  $as_echo_n "(cached) " >&6
 
5469
else
 
5470
 
 
5471
# These are sane defaults that work on at least a few old systems.
 
5472
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5473
 
 
5474
# Character class describing NM global symbol codes.
 
5475
symcode='[BCDEGRST]'
 
5476
 
 
5477
# Regexp to match symbols that can be accessed directly from C.
 
5478
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5479
 
 
5480
# Define system-specific variables.
 
5481
case $host_os in
 
5482
aix*)
 
5483
  symcode='[BCDT]'
 
5484
  ;;
 
5485
cygwin* | mingw* | pw32* | cegcc*)
 
5486
  symcode='[ABCDGISTW]'
 
5487
  ;;
 
5488
hpux*)
 
5489
  if test "$host_cpu" = ia64; then
 
5490
    symcode='[ABCDEGRST]'
 
5491
  fi
 
5492
  ;;
 
5493
irix* | nonstopux*)
 
5494
  symcode='[BCDEGRST]'
 
5495
  ;;
 
5496
osf*)
 
5497
  symcode='[BCDEGQRST]'
 
5498
  ;;
 
5499
solaris*)
 
5500
  symcode='[BDRT]'
 
5501
  ;;
 
5502
sco3.2v5*)
 
5503
  symcode='[DT]'
 
5504
  ;;
 
5505
sysv4.2uw2*)
 
5506
  symcode='[DT]'
 
5507
  ;;
 
5508
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5509
  symcode='[ABDT]'
 
5510
  ;;
 
5511
sysv4)
 
5512
  symcode='[DFNSTU]'
 
5513
  ;;
 
5514
esac
 
5515
 
 
5516
# If we're using GNU nm, then use its standard symbol codes.
 
5517
case `$NM -V 2>&1` in
 
5518
*GNU* | *'with BFD'*)
 
5519
  symcode='[ABCDGIRSTW]' ;;
 
5520
esac
 
5521
 
 
5522
# Transform an extracted symbol line into a proper C declaration.
 
5523
# Some systems (esp. on ia64) link data and code symbols differently,
 
5524
# so use this general approach.
 
5525
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5526
 
 
5527
# Transform an extracted symbol line into symbol name and symbol address
 
5528
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5529
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'"
 
5530
 
 
5531
# Handle CRLF in mingw tool chain
 
5532
opt_cr=
 
5533
case $build_os in
 
5534
mingw*)
 
5535
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5536
  ;;
 
5537
esac
 
5538
 
 
5539
# Try without a prefix underscore, then with it.
 
5540
for ac_symprfx in "" "_"; do
 
5541
 
 
5542
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5543
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5544
 
 
5545
  # Write the raw and C identifiers.
 
5546
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5547
    # Fake it for dumpbin and say T for any non-static function
 
5548
    # and D for any global variable.
 
5549
    # Also find C++ and __fastcall symbols from MSVC++,
 
5550
    # which start with @ or ?.
 
5551
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5552
"     {last_section=section; section=\$ 3};"\
 
5553
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5554
"     \$ 0!~/External *\|/{next};"\
 
5555
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5556
"     {if(hide[section]) next};"\
 
5557
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5558
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5559
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5560
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5561
"     ' prfx=^$ac_symprfx"
 
5562
  else
 
5563
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5564
  fi
 
5565
 
 
5566
  # Check to see that the pipe works correctly.
 
5567
  pipe_works=no
 
5568
 
 
5569
  rm -f conftest*
 
5570
  cat > conftest.$ac_ext <<_LT_EOF
 
5571
#ifdef __cplusplus
 
5572
extern "C" {
 
5573
#endif
 
5574
char nm_test_var;
 
5575
void nm_test_func(void);
 
5576
void nm_test_func(void){}
 
5577
#ifdef __cplusplus
 
5578
}
 
5579
#endif
 
5580
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5581
_LT_EOF
 
5582
 
 
5583
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5584
  (eval $ac_compile) 2>&5
 
5585
  ac_status=$?
 
5586
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5587
  (exit $ac_status); }; then
 
5588
    # Now try to grab the symbols.
 
5589
    nlist=conftest.nm
 
5590
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5591
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5592
  ac_status=$?
 
5593
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5594
  (exit $ac_status); } && test -s "$nlist"; then
 
5595
      # Try sorting and uniquifying the output.
 
5596
      if sort "$nlist" | uniq > "$nlist"T; then
 
5597
        mv -f "$nlist"T "$nlist"
 
5598
      else
 
5599
        rm -f "$nlist"T
 
5600
      fi
 
5601
 
 
5602
      # Make sure that we snagged all the symbols we need.
 
5603
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5604
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5605
          cat <<_LT_EOF > conftest.$ac_ext
 
5606
#ifdef __cplusplus
 
5607
extern "C" {
 
5608
#endif
 
5609
 
 
5610
_LT_EOF
 
5611
          # Now generate the symbol file.
 
5612
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5613
 
 
5614
          cat <<_LT_EOF >> conftest.$ac_ext
 
5615
 
 
5616
/* The mapping between symbol names and symbols.  */
 
5617
const struct {
 
5618
  const char *name;
 
5619
  void       *address;
 
5620
}
 
5621
lt__PROGRAM__LTX_preloaded_symbols[] =
 
5622
{
 
5623
  { "@PROGRAM@", (void *) 0 },
 
5624
_LT_EOF
 
5625
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5626
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5627
  {0, (void *) 0}
 
5628
};
 
5629
 
 
5630
/* This works around a problem in FreeBSD linker */
 
5631
#ifdef FREEBSD_WORKAROUND
 
5632
static const void *lt_preloaded_setup() {
 
5633
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5634
}
 
5635
#endif
 
5636
 
 
5637
#ifdef __cplusplus
 
5638
}
 
5639
#endif
 
5640
_LT_EOF
 
5641
          # Now try linking the two files.
 
5642
          mv conftest.$ac_objext conftstm.$ac_objext
 
5643
          lt_save_LIBS="$LIBS"
 
5644
          lt_save_CFLAGS="$CFLAGS"
 
5645
          LIBS="conftstm.$ac_objext"
 
5646
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5647
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5648
  (eval $ac_link) 2>&5
 
5649
  ac_status=$?
 
5650
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5651
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5652
            pipe_works=yes
 
5653
          fi
 
5654
          LIBS="$lt_save_LIBS"
 
5655
          CFLAGS="$lt_save_CFLAGS"
 
5656
        else
 
5657
          echo "cannot find nm_test_func in $nlist" >&5
 
5658
        fi
 
5659
      else
 
5660
        echo "cannot find nm_test_var in $nlist" >&5
 
5661
      fi
 
5662
    else
 
5663
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5664
    fi
 
5665
  else
 
5666
    echo "$progname: failed program was:" >&5
 
5667
    cat conftest.$ac_ext >&5
 
5668
  fi
 
5669
  rm -rf conftest* conftst*
 
5670
 
 
5671
  # Do not use the global_symbol_pipe unless it works.
 
5672
  if test "$pipe_works" = yes; then
 
5673
    break
 
5674
  else
 
5675
    lt_cv_sys_global_symbol_pipe=
 
5676
  fi
 
5677
done
 
5678
 
 
5679
fi
 
5680
 
 
5681
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5682
  lt_cv_sys_global_symbol_to_cdecl=
 
5683
fi
 
5684
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5685
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
5686
$as_echo "failed" >&6; }
 
5687
else
 
5688
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
5689
$as_echo "ok" >&6; }
 
5690
fi
 
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
 
 
5698
 
 
5699
 
 
5700
 
 
5701
 
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
 
 
5713
 
 
5714
# Check whether --enable-libtool-lock was given.
 
5715
if test "${enable_libtool_lock+set}" = set; then
 
5716
  enableval=$enable_libtool_lock;
 
5717
fi
 
5718
 
 
5719
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5720
 
 
5721
# Some flags need to be propagated to the compiler or linker for good
 
5722
# libtool support.
 
5723
case $host in
 
5724
ia64-*-hpux*)
 
5725
  # Find out which ABI we are using.
 
5726
  echo 'int i;' > conftest.$ac_ext
 
5727
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5728
  (eval $ac_compile) 2>&5
 
5729
  ac_status=$?
 
5730
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5731
  (exit $ac_status); }; then
 
5732
    case `/usr/bin/file conftest.$ac_objext` in
 
5733
      *ELF-32*)
 
5734
        HPUX_IA64_MODE="32"
 
5735
        ;;
 
5736
      *ELF-64*)
 
5737
        HPUX_IA64_MODE="64"
 
5738
        ;;
 
5739
    esac
 
5740
  fi
 
5741
  rm -rf conftest*
 
5742
  ;;
 
5743
*-*-irix6*)
 
5744
  # Find out which ABI we are using.
 
5745
  echo '#line 5745 "configure"' > conftest.$ac_ext
 
5746
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5747
  (eval $ac_compile) 2>&5
 
5748
  ac_status=$?
 
5749
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5750
  (exit $ac_status); }; then
 
5751
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5752
      case `/usr/bin/file conftest.$ac_objext` in
 
5753
        *32-bit*)
 
5754
          LD="${LD-ld} -melf32bsmip"
 
5755
          ;;
 
5756
        *N32*)
 
5757
          LD="${LD-ld} -melf32bmipn32"
 
5758
          ;;
 
5759
        *64-bit*)
 
5760
          LD="${LD-ld} -melf64bmip"
 
5761
        ;;
 
5762
      esac
 
5763
    else
 
5764
      case `/usr/bin/file conftest.$ac_objext` in
 
5765
        *32-bit*)
 
5766
          LD="${LD-ld} -32"
 
5767
          ;;
 
5768
        *N32*)
 
5769
          LD="${LD-ld} -n32"
 
5770
          ;;
 
5771
        *64-bit*)
 
5772
          LD="${LD-ld} -64"
 
5773
          ;;
 
5774
      esac
 
5775
    fi
 
5776
  fi
 
5777
  rm -rf conftest*
 
5778
  ;;
 
5779
 
 
5780
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5781
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5782
  # Find out which ABI we are using.
 
5783
  echo 'int i;' > conftest.$ac_ext
 
5784
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5785
  (eval $ac_compile) 2>&5
 
5786
  ac_status=$?
 
5787
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5788
  (exit $ac_status); }; then
 
5789
    case `/usr/bin/file conftest.o` in
 
5790
      *32-bit*)
 
5791
        case $host in
 
5792
          x86_64-*kfreebsd*-gnu)
 
5793
            LD="${LD-ld} -m elf_i386_fbsd"
 
5794
            ;;
 
5795
          x86_64-*linux*)
 
5796
            LD="${LD-ld} -m elf_i386"
 
5797
            ;;
 
5798
          ppc64-*linux*|powerpc64-*linux*)
 
5799
            LD="${LD-ld} -m elf32ppclinux"
 
5800
            ;;
 
5801
          s390x-*linux*)
 
5802
            LD="${LD-ld} -m elf_s390"
 
5803
            ;;
 
5804
          sparc64-*linux*)
 
5805
            LD="${LD-ld} -m elf32_sparc"
 
5806
            ;;
 
5807
        esac
 
5808
        ;;
 
5809
      *64-bit*)
 
5810
        case $host in
 
5811
          x86_64-*kfreebsd*-gnu)
 
5812
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5813
            ;;
 
5814
          x86_64-*linux*)
 
5815
            LD="${LD-ld} -m elf_x86_64"
 
5816
            ;;
 
5817
          ppc*-*linux*|powerpc*-*linux*)
 
5818
            LD="${LD-ld} -m elf64ppc"
 
5819
            ;;
 
5820
          s390*-*linux*|s390*-*tpf*)
 
5821
            LD="${LD-ld} -m elf64_s390"
 
5822
            ;;
 
5823
          sparc*-*linux*)
 
5824
            LD="${LD-ld} -m elf64_sparc"
 
5825
            ;;
 
5826
        esac
 
5827
        ;;
 
5828
    esac
 
5829
  fi
 
5830
  rm -rf conftest*
 
5831
  ;;
 
5832
 
 
5833
*-*-sco3.2v5*)
 
5834
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5835
  SAVE_CFLAGS="$CFLAGS"
 
5836
  CFLAGS="$CFLAGS -belf"
 
5837
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5838
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5839
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5840
  $as_echo_n "(cached) " >&6
 
5841
else
 
5842
  ac_ext=c
 
5843
ac_cpp='$CPP $CPPFLAGS'
 
5844
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5845
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5846
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5847
 
 
5848
     cat >conftest.$ac_ext <<_ACEOF
 
5849
/* confdefs.h.  */
 
5850
_ACEOF
 
5851
cat confdefs.h >>conftest.$ac_ext
 
5852
cat >>conftest.$ac_ext <<_ACEOF
 
5853
/* end confdefs.h.  */
 
5854
 
 
5855
int
 
5856
main ()
 
5857
{
 
5858
 
 
5859
  ;
 
5860
  return 0;
 
5861
}
 
5862
_ACEOF
 
5863
rm -f conftest.$ac_objext conftest$ac_exeext
 
5864
if { (ac_try="$ac_link"
 
5865
case "(($ac_try" in
 
5866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5867
  *) ac_try_echo=$ac_try;;
 
5868
esac
 
5869
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5870
$as_echo "$ac_try_echo") >&5
 
5871
  (eval "$ac_link") 2>conftest.er1
 
5872
  ac_status=$?
 
5873
  grep -v '^ *+' conftest.er1 >conftest.err
 
5874
  rm -f conftest.er1
 
5875
  cat conftest.err >&5
 
5876
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5877
  (exit $ac_status); } && {
 
5878
         test -z "$ac_c_werror_flag" ||
 
5879
         test ! -s conftest.err
 
5880
       } && test -s conftest$ac_exeext && {
 
5881
         test "$cross_compiling" = yes ||
 
5882
         $as_test_x conftest$ac_exeext
 
5883
       }; then
 
5884
  lt_cv_cc_needs_belf=yes
 
5885
else
 
5886
  $as_echo "$as_me: failed program was:" >&5
 
5887
sed 's/^/| /' conftest.$ac_ext >&5
 
5888
 
 
5889
        lt_cv_cc_needs_belf=no
 
5890
fi
 
5891
 
 
5892
rm -rf conftest.dSYM
 
5893
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5894
      conftest$ac_exeext conftest.$ac_ext
 
5895
     ac_ext=c
 
5896
ac_cpp='$CPP $CPPFLAGS'
 
5897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5900
 
 
5901
fi
 
5902
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5903
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5904
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5905
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5906
    CFLAGS="$SAVE_CFLAGS"
 
5907
  fi
 
5908
  ;;
 
5909
sparc*-*solaris*)
 
5910
  # Find out which ABI we are using.
 
5911
  echo 'int i;' > conftest.$ac_ext
 
5912
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5913
  (eval $ac_compile) 2>&5
 
5914
  ac_status=$?
 
5915
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5916
  (exit $ac_status); }; then
 
5917
    case `/usr/bin/file conftest.o` in
 
5918
    *64-bit*)
 
5919
      case $lt_cv_prog_gnu_ld in
 
5920
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5921
      *)
 
5922
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5923
          LD="${LD-ld} -64"
 
5924
        fi
 
5925
        ;;
 
5926
      esac
 
5927
      ;;
 
5928
    esac
 
5929
  fi
 
5930
  rm -rf conftest*
 
5931
  ;;
 
5932
esac
 
5933
 
 
5934
need_locks="$enable_libtool_lock"
 
5935
 
 
5936
 
 
5937
  case $host_os in
 
5938
    rhapsody* | darwin*)
 
5939
    if test -n "$ac_tool_prefix"; then
 
5940
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
5941
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
5942
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5943
$as_echo_n "checking for $ac_word... " >&6; }
 
5944
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
5945
  $as_echo_n "(cached) " >&6
 
5946
else
 
5947
  if test -n "$DSYMUTIL"; then
 
5948
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
5949
else
 
5950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5951
for as_dir in $PATH
 
5952
do
 
5953
  IFS=$as_save_IFS
 
5954
  test -z "$as_dir" && as_dir=.
 
5955
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5956
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5957
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
5958
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5959
    break 2
 
5960
  fi
 
5961
done
 
5962
done
 
5963
IFS=$as_save_IFS
 
5964
 
 
5965
fi
 
5966
fi
 
5967
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
5968
if test -n "$DSYMUTIL"; then
 
5969
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
5970
$as_echo "$DSYMUTIL" >&6; }
 
5971
else
 
5972
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5973
$as_echo "no" >&6; }
 
5974
fi
 
5975
 
 
5976
 
 
5977
fi
 
5978
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
5979
  ac_ct_DSYMUTIL=$DSYMUTIL
 
5980
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
5981
set dummy dsymutil; ac_word=$2
 
5982
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5983
$as_echo_n "checking for $ac_word... " >&6; }
 
5984
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
5985
  $as_echo_n "(cached) " >&6
 
5986
else
 
5987
  if test -n "$ac_ct_DSYMUTIL"; then
 
5988
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
5989
else
 
5990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5991
for as_dir in $PATH
 
5992
do
 
5993
  IFS=$as_save_IFS
 
5994
  test -z "$as_dir" && as_dir=.
 
5995
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5996
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5997
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
5998
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5999
    break 2
 
6000
  fi
 
6001
done
 
6002
done
 
6003
IFS=$as_save_IFS
 
6004
 
 
6005
fi
 
6006
fi
 
6007
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6008
if test -n "$ac_ct_DSYMUTIL"; then
 
6009
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
6010
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6011
else
 
6012
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6013
$as_echo "no" >&6; }
 
6014
fi
 
6015
 
 
6016
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6017
    DSYMUTIL=":"
 
6018
  else
 
6019
    case $cross_compiling:$ac_tool_warned in
 
6020
yes:)
 
6021
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6022
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6023
ac_tool_warned=yes ;;
 
6024
esac
 
6025
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6026
  fi
 
6027
else
 
6028
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6029
fi
 
6030
 
 
6031
    if test -n "$ac_tool_prefix"; then
 
6032
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6033
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6034
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6035
$as_echo_n "checking for $ac_word... " >&6; }
 
6036
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
6037
  $as_echo_n "(cached) " >&6
 
6038
else
 
6039
  if test -n "$NMEDIT"; then
 
6040
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6041
else
 
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6043
for as_dir in $PATH
 
6044
do
 
6045
  IFS=$as_save_IFS
 
6046
  test -z "$as_dir" && as_dir=.
 
6047
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6048
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6049
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6050
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6051
    break 2
 
6052
  fi
 
6053
done
 
6054
done
 
6055
IFS=$as_save_IFS
 
6056
 
 
6057
fi
 
6058
fi
 
6059
NMEDIT=$ac_cv_prog_NMEDIT
 
6060
if test -n "$NMEDIT"; then
 
6061
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
6062
$as_echo "$NMEDIT" >&6; }
 
6063
else
 
6064
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6065
$as_echo "no" >&6; }
 
6066
fi
 
6067
 
 
6068
 
 
6069
fi
 
6070
if test -z "$ac_cv_prog_NMEDIT"; then
 
6071
  ac_ct_NMEDIT=$NMEDIT
 
6072
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6073
set dummy nmedit; ac_word=$2
 
6074
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6075
$as_echo_n "checking for $ac_word... " >&6; }
 
6076
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
6077
  $as_echo_n "(cached) " >&6
 
6078
else
 
6079
  if test -n "$ac_ct_NMEDIT"; then
 
6080
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6081
else
 
6082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6083
for as_dir in $PATH
 
6084
do
 
6085
  IFS=$as_save_IFS
 
6086
  test -z "$as_dir" && as_dir=.
 
6087
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6088
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6089
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6090
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6091
    break 2
 
6092
  fi
 
6093
done
 
6094
done
 
6095
IFS=$as_save_IFS
 
6096
 
 
6097
fi
 
6098
fi
 
6099
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6100
if test -n "$ac_ct_NMEDIT"; then
 
6101
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
6102
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6103
else
 
6104
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6105
$as_echo "no" >&6; }
 
6106
fi
 
6107
 
 
6108
  if test "x$ac_ct_NMEDIT" = x; then
 
6109
    NMEDIT=":"
 
6110
  else
 
6111
    case $cross_compiling:$ac_tool_warned in
 
6112
yes:)
 
6113
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6114
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6115
ac_tool_warned=yes ;;
 
6116
esac
 
6117
    NMEDIT=$ac_ct_NMEDIT
 
6118
  fi
 
6119
else
 
6120
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6121
fi
 
6122
 
 
6123
    if test -n "$ac_tool_prefix"; then
 
6124
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6125
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6126
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6127
$as_echo_n "checking for $ac_word... " >&6; }
 
6128
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6129
  $as_echo_n "(cached) " >&6
 
6130
else
 
6131
  if test -n "$LIPO"; then
 
6132
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6133
else
 
6134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6135
for as_dir in $PATH
 
6136
do
 
6137
  IFS=$as_save_IFS
 
6138
  test -z "$as_dir" && as_dir=.
 
6139
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6140
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6141
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6142
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6143
    break 2
 
6144
  fi
 
6145
done
 
6146
done
 
6147
IFS=$as_save_IFS
 
6148
 
 
6149
fi
 
6150
fi
 
6151
LIPO=$ac_cv_prog_LIPO
 
6152
if test -n "$LIPO"; then
 
6153
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
6154
$as_echo "$LIPO" >&6; }
 
6155
else
 
6156
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6157
$as_echo "no" >&6; }
 
6158
fi
 
6159
 
 
6160
 
 
6161
fi
 
6162
if test -z "$ac_cv_prog_LIPO"; then
 
6163
  ac_ct_LIPO=$LIPO
 
6164
  # Extract the first word of "lipo", so it can be a program name with args.
 
6165
set dummy lipo; ac_word=$2
 
6166
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6167
$as_echo_n "checking for $ac_word... " >&6; }
 
6168
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6169
  $as_echo_n "(cached) " >&6
 
6170
else
 
6171
  if test -n "$ac_ct_LIPO"; then
 
6172
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6173
else
 
6174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6175
for as_dir in $PATH
 
6176
do
 
6177
  IFS=$as_save_IFS
 
6178
  test -z "$as_dir" && as_dir=.
 
6179
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6180
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6181
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6182
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6183
    break 2
 
6184
  fi
 
6185
done
 
6186
done
 
6187
IFS=$as_save_IFS
 
6188
 
 
6189
fi
 
6190
fi
 
6191
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6192
if test -n "$ac_ct_LIPO"; then
 
6193
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6194
$as_echo "$ac_ct_LIPO" >&6; }
 
6195
else
 
6196
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6197
$as_echo "no" >&6; }
 
6198
fi
 
6199
 
 
6200
  if test "x$ac_ct_LIPO" = x; then
 
6201
    LIPO=":"
 
6202
  else
 
6203
    case $cross_compiling:$ac_tool_warned in
 
6204
yes:)
 
6205
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6206
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6207
ac_tool_warned=yes ;;
 
6208
esac
 
6209
    LIPO=$ac_ct_LIPO
 
6210
  fi
 
6211
else
 
6212
  LIPO="$ac_cv_prog_LIPO"
 
6213
fi
 
6214
 
 
6215
    if test -n "$ac_tool_prefix"; then
 
6216
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6217
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6218
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6219
$as_echo_n "checking for $ac_word... " >&6; }
 
6220
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6221
  $as_echo_n "(cached) " >&6
 
6222
else
 
6223
  if test -n "$OTOOL"; then
 
6224
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6225
else
 
6226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6227
for as_dir in $PATH
 
6228
do
 
6229
  IFS=$as_save_IFS
 
6230
  test -z "$as_dir" && as_dir=.
 
6231
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6232
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6233
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6234
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6235
    break 2
 
6236
  fi
 
6237
done
 
6238
done
 
6239
IFS=$as_save_IFS
 
6240
 
 
6241
fi
 
6242
fi
 
6243
OTOOL=$ac_cv_prog_OTOOL
 
6244
if test -n "$OTOOL"; then
 
6245
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6246
$as_echo "$OTOOL" >&6; }
 
6247
else
 
6248
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6249
$as_echo "no" >&6; }
 
6250
fi
 
6251
 
 
6252
 
 
6253
fi
 
6254
if test -z "$ac_cv_prog_OTOOL"; then
 
6255
  ac_ct_OTOOL=$OTOOL
 
6256
  # Extract the first word of "otool", so it can be a program name with args.
 
6257
set dummy otool; ac_word=$2
 
6258
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6259
$as_echo_n "checking for $ac_word... " >&6; }
 
6260
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6261
  $as_echo_n "(cached) " >&6
 
6262
else
 
6263
  if test -n "$ac_ct_OTOOL"; then
 
6264
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6265
else
 
6266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6267
for as_dir in $PATH
 
6268
do
 
6269
  IFS=$as_save_IFS
 
6270
  test -z "$as_dir" && as_dir=.
 
6271
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6272
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6273
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6274
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6275
    break 2
 
6276
  fi
 
6277
done
 
6278
done
 
6279
IFS=$as_save_IFS
 
6280
 
 
6281
fi
 
6282
fi
 
6283
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6284
if test -n "$ac_ct_OTOOL"; then
 
6285
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6286
$as_echo "$ac_ct_OTOOL" >&6; }
 
6287
else
 
6288
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6289
$as_echo "no" >&6; }
 
6290
fi
 
6291
 
 
6292
  if test "x$ac_ct_OTOOL" = x; then
 
6293
    OTOOL=":"
 
6294
  else
 
6295
    case $cross_compiling:$ac_tool_warned in
 
6296
yes:)
 
6297
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6299
ac_tool_warned=yes ;;
 
6300
esac
 
6301
    OTOOL=$ac_ct_OTOOL
 
6302
  fi
 
6303
else
 
6304
  OTOOL="$ac_cv_prog_OTOOL"
 
6305
fi
 
6306
 
 
6307
    if test -n "$ac_tool_prefix"; then
 
6308
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6309
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6310
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6311
$as_echo_n "checking for $ac_word... " >&6; }
 
6312
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6313
  $as_echo_n "(cached) " >&6
 
6314
else
 
6315
  if test -n "$OTOOL64"; then
 
6316
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6317
else
 
6318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6319
for as_dir in $PATH
 
6320
do
 
6321
  IFS=$as_save_IFS
 
6322
  test -z "$as_dir" && as_dir=.
 
6323
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6324
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6325
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6326
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6327
    break 2
 
6328
  fi
 
6329
done
 
6330
done
 
6331
IFS=$as_save_IFS
 
6332
 
 
6333
fi
 
6334
fi
 
6335
OTOOL64=$ac_cv_prog_OTOOL64
 
6336
if test -n "$OTOOL64"; then
 
6337
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6338
$as_echo "$OTOOL64" >&6; }
 
6339
else
 
6340
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6341
$as_echo "no" >&6; }
 
6342
fi
 
6343
 
 
6344
 
 
6345
fi
 
6346
if test -z "$ac_cv_prog_OTOOL64"; then
 
6347
  ac_ct_OTOOL64=$OTOOL64
 
6348
  # Extract the first word of "otool64", so it can be a program name with args.
 
6349
set dummy otool64; ac_word=$2
 
6350
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6351
$as_echo_n "checking for $ac_word... " >&6; }
 
6352
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6353
  $as_echo_n "(cached) " >&6
 
6354
else
 
6355
  if test -n "$ac_ct_OTOOL64"; then
 
6356
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6357
else
 
6358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6359
for as_dir in $PATH
 
6360
do
 
6361
  IFS=$as_save_IFS
 
6362
  test -z "$as_dir" && as_dir=.
 
6363
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6365
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6366
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6367
    break 2
 
6368
  fi
 
6369
done
 
6370
done
 
6371
IFS=$as_save_IFS
 
6372
 
 
6373
fi
 
6374
fi
 
6375
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6376
if test -n "$ac_ct_OTOOL64"; then
 
6377
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6378
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6379
else
 
6380
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6381
$as_echo "no" >&6; }
 
6382
fi
 
6383
 
 
6384
  if test "x$ac_ct_OTOOL64" = x; then
 
6385
    OTOOL64=":"
 
6386
  else
 
6387
    case $cross_compiling:$ac_tool_warned in
 
6388
yes:)
 
6389
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6391
ac_tool_warned=yes ;;
 
6392
esac
 
6393
    OTOOL64=$ac_ct_OTOOL64
 
6394
  fi
 
6395
else
 
6396
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6397
fi
 
6398
 
 
6399
 
 
6400
 
 
6401
 
 
6402
 
 
6403
 
 
6404
 
 
6405
 
 
6406
 
 
6407
 
 
6408
 
 
6409
 
 
6410
 
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
 
 
6424
 
 
6425
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
6426
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6427
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
6428
  $as_echo_n "(cached) " >&6
 
6429
else
 
6430
  lt_cv_apple_cc_single_mod=no
 
6431
      if test -z "${LT_MULTI_MODULE}"; then
 
6432
        # By default we will add the -single_module flag. You can override
 
6433
        # by either setting the environment variable LT_MULTI_MODULE
 
6434
        # non-empty at configure time, or by adding -multi_module to the
 
6435
        # link flags.
 
6436
        rm -rf libconftest.dylib*
 
6437
        echo "int foo(void){return 1;}" > conftest.c
 
6438
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6439
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6440
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6441
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6442
        _lt_result=$?
 
6443
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6444
          lt_cv_apple_cc_single_mod=yes
 
6445
        else
 
6446
          cat conftest.err >&5
 
6447
        fi
 
6448
        rm -rf libconftest.dylib*
 
6449
        rm -f conftest.*
 
6450
      fi
 
6451
fi
 
6452
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
6453
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6454
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
6455
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6456
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
6457
  $as_echo_n "(cached) " >&6
 
6458
else
 
6459
  lt_cv_ld_exported_symbols_list=no
 
6460
      save_LDFLAGS=$LDFLAGS
 
6461
      echo "_main" > conftest.sym
 
6462
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6463
      cat >conftest.$ac_ext <<_ACEOF
 
6464
/* confdefs.h.  */
 
6465
_ACEOF
 
6466
cat confdefs.h >>conftest.$ac_ext
 
6467
cat >>conftest.$ac_ext <<_ACEOF
 
6468
/* end confdefs.h.  */
 
6469
 
 
6470
int
 
6471
main ()
 
6472
{
 
6473
 
 
6474
  ;
 
6475
  return 0;
 
6476
}
 
6477
_ACEOF
 
6478
rm -f conftest.$ac_objext conftest$ac_exeext
 
6479
if { (ac_try="$ac_link"
 
6480
case "(($ac_try" in
 
6481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6482
  *) ac_try_echo=$ac_try;;
 
6483
esac
 
6484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6485
$as_echo "$ac_try_echo") >&5
 
6486
  (eval "$ac_link") 2>conftest.er1
 
6487
  ac_status=$?
 
6488
  grep -v '^ *+' conftest.er1 >conftest.err
 
6489
  rm -f conftest.er1
 
6490
  cat conftest.err >&5
 
6491
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6492
  (exit $ac_status); } && {
 
6493
         test -z "$ac_c_werror_flag" ||
 
6494
         test ! -s conftest.err
 
6495
       } && test -s conftest$ac_exeext && {
 
6496
         test "$cross_compiling" = yes ||
 
6497
         $as_test_x conftest$ac_exeext
 
6498
       }; then
 
6499
  lt_cv_ld_exported_symbols_list=yes
 
6500
else
 
6501
  $as_echo "$as_me: failed program was:" >&5
 
6502
sed 's/^/| /' conftest.$ac_ext >&5
 
6503
 
 
6504
        lt_cv_ld_exported_symbols_list=no
 
6505
fi
 
6506
 
 
6507
rm -rf conftest.dSYM
 
6508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6509
      conftest$ac_exeext conftest.$ac_ext
 
6510
        LDFLAGS="$save_LDFLAGS"
 
6511
 
 
6512
fi
 
6513
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
6514
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6515
    case $host_os in
 
6516
    rhapsody* | darwin1.[012])
 
6517
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6518
    darwin1.*)
 
6519
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6520
    darwin*) # darwin 5.x on
 
6521
      # if running on 10.5 or later, the deployment target defaults
 
6522
      # to the OS version, if on x86, and 10.4, the deployment
 
6523
      # target defaults to 10.4. Don't you love it?
 
6524
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6525
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6526
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6527
        10.[012]*)
 
6528
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6529
        10.*)
 
6530
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6531
      esac
 
6532
    ;;
 
6533
  esac
 
6534
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6535
      _lt_dar_single_mod='$single_module'
 
6536
    fi
 
6537
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6538
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6539
    else
 
6540
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6541
    fi
 
6542
    if test "$DSYMUTIL" != ":"; then
 
6543
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6544
    else
 
6545
      _lt_dsymutil=
 
6546
    fi
 
6547
    ;;
 
6548
  esac
 
6549
 
 
6550
ac_ext=c
 
6551
ac_cpp='$CPP $CPPFLAGS'
 
6552
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6553
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6554
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6555
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6556
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6557
# On Suns, sometimes $CPP names a directory.
 
6558
if test -n "$CPP" && test -d "$CPP"; then
 
6559
  CPP=
 
6560
fi
 
6561
if test -z "$CPP"; then
 
6562
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6563
  $as_echo_n "(cached) " >&6
 
6564
else
 
6565
      # Double quotes because CPP needs to be expanded
 
6566
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6567
    do
 
6568
      ac_preproc_ok=false
 
6569
for ac_c_preproc_warn_flag in '' yes
 
6570
do
 
6571
  # Use a header file that comes with gcc, so configuring glibc
 
6572
  # with a fresh cross-compiler works.
 
6573
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6574
  # <limits.h> exists even on freestanding compilers.
 
6575
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6576
  # not just through cpp. "Syntax error" is here to catch this case.
 
6577
  cat >conftest.$ac_ext <<_ACEOF
 
6578
/* confdefs.h.  */
 
6579
_ACEOF
 
6580
cat confdefs.h >>conftest.$ac_ext
 
6581
cat >>conftest.$ac_ext <<_ACEOF
 
6582
/* end confdefs.h.  */
 
6583
#ifdef __STDC__
 
6584
# include <limits.h>
 
6585
#else
 
6586
# include <assert.h>
 
6587
#endif
 
6588
                     Syntax error
 
6589
_ACEOF
 
6590
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6591
case "(($ac_try" in
 
6592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6593
  *) ac_try_echo=$ac_try;;
 
6594
esac
 
6595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6596
$as_echo "$ac_try_echo") >&5
 
6597
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6598
  ac_status=$?
 
6599
  grep -v '^ *+' conftest.er1 >conftest.err
 
6600
  rm -f conftest.er1
 
6601
  cat conftest.err >&5
 
6602
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6603
  (exit $ac_status); } >/dev/null && {
 
6604
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6605
         test ! -s conftest.err
 
6606
       }; then
 
6607
  :
 
6608
else
 
6609
  $as_echo "$as_me: failed program was:" >&5
 
6610
sed 's/^/| /' conftest.$ac_ext >&5
 
6611
 
 
6612
  # Broken: fails on valid input.
 
6613
continue
 
6614
fi
 
6615
 
 
6616
rm -f conftest.err conftest.$ac_ext
 
6617
 
 
6618
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6619
  # can be detected and how.
 
6620
  cat >conftest.$ac_ext <<_ACEOF
 
6621
/* confdefs.h.  */
 
6622
_ACEOF
 
6623
cat confdefs.h >>conftest.$ac_ext
 
6624
cat >>conftest.$ac_ext <<_ACEOF
 
6625
/* end confdefs.h.  */
 
6626
#include <ac_nonexistent.h>
 
6627
_ACEOF
 
6628
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6629
case "(($ac_try" in
 
6630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6631
  *) ac_try_echo=$ac_try;;
 
6632
esac
 
6633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6634
$as_echo "$ac_try_echo") >&5
 
6635
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6636
  ac_status=$?
 
6637
  grep -v '^ *+' conftest.er1 >conftest.err
 
6638
  rm -f conftest.er1
 
6639
  cat conftest.err >&5
 
6640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6641
  (exit $ac_status); } >/dev/null && {
 
6642
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6643
         test ! -s conftest.err
 
6644
       }; then
 
6645
  # Broken: success on invalid input.
 
6646
continue
 
6647
else
 
6648
  $as_echo "$as_me: failed program was:" >&5
 
6649
sed 's/^/| /' conftest.$ac_ext >&5
 
6650
 
 
6651
  # Passes both tests.
 
6652
ac_preproc_ok=:
 
6653
break
 
6654
fi
 
6655
 
 
6656
rm -f conftest.err conftest.$ac_ext
 
6657
 
 
6658
done
 
6659
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6660
rm -f conftest.err conftest.$ac_ext
 
6661
if $ac_preproc_ok; then
 
6662
  break
 
6663
fi
 
6664
 
 
6665
    done
 
6666
    ac_cv_prog_CPP=$CPP
 
6667
 
 
6668
fi
 
6669
  CPP=$ac_cv_prog_CPP
 
6670
else
 
6671
  ac_cv_prog_CPP=$CPP
 
6672
fi
 
6673
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
6674
$as_echo "$CPP" >&6; }
 
6675
ac_preproc_ok=false
 
6676
for ac_c_preproc_warn_flag in '' yes
 
6677
do
 
6678
  # Use a header file that comes with gcc, so configuring glibc
 
6679
  # with a fresh cross-compiler works.
 
6680
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6681
  # <limits.h> exists even on freestanding compilers.
 
6682
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6683
  # not just through cpp. "Syntax error" is here to catch this case.
 
6684
  cat >conftest.$ac_ext <<_ACEOF
 
6685
/* confdefs.h.  */
 
6686
_ACEOF
 
6687
cat confdefs.h >>conftest.$ac_ext
 
6688
cat >>conftest.$ac_ext <<_ACEOF
 
6689
/* end confdefs.h.  */
 
6690
#ifdef __STDC__
 
6691
# include <limits.h>
 
6692
#else
 
6693
# include <assert.h>
 
6694
#endif
 
6695
                     Syntax error
 
6696
_ACEOF
 
6697
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6698
case "(($ac_try" in
 
6699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6700
  *) ac_try_echo=$ac_try;;
 
6701
esac
 
6702
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6703
$as_echo "$ac_try_echo") >&5
 
6704
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6705
  ac_status=$?
 
6706
  grep -v '^ *+' conftest.er1 >conftest.err
 
6707
  rm -f conftest.er1
 
6708
  cat conftest.err >&5
 
6709
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6710
  (exit $ac_status); } >/dev/null && {
 
6711
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6712
         test ! -s conftest.err
 
6713
       }; then
 
6714
  :
 
6715
else
 
6716
  $as_echo "$as_me: failed program was:" >&5
 
6717
sed 's/^/| /' conftest.$ac_ext >&5
 
6718
 
 
6719
  # Broken: fails on valid input.
 
6720
continue
 
6721
fi
 
6722
 
 
6723
rm -f conftest.err conftest.$ac_ext
 
6724
 
 
6725
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6726
  # can be detected and how.
 
6727
  cat >conftest.$ac_ext <<_ACEOF
 
6728
/* confdefs.h.  */
 
6729
_ACEOF
 
6730
cat confdefs.h >>conftest.$ac_ext
 
6731
cat >>conftest.$ac_ext <<_ACEOF
 
6732
/* end confdefs.h.  */
 
6733
#include <ac_nonexistent.h>
 
6734
_ACEOF
 
6735
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6736
case "(($ac_try" in
 
6737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6738
  *) ac_try_echo=$ac_try;;
 
6739
esac
 
6740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6741
$as_echo "$ac_try_echo") >&5
 
6742
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6743
  ac_status=$?
 
6744
  grep -v '^ *+' conftest.er1 >conftest.err
 
6745
  rm -f conftest.er1
 
6746
  cat conftest.err >&5
 
6747
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6748
  (exit $ac_status); } >/dev/null && {
 
6749
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6750
         test ! -s conftest.err
 
6751
       }; then
 
6752
  # Broken: success on invalid input.
 
6753
continue
 
6754
else
 
6755
  $as_echo "$as_me: failed program was:" >&5
 
6756
sed 's/^/| /' conftest.$ac_ext >&5
 
6757
 
 
6758
  # Passes both tests.
 
6759
ac_preproc_ok=:
 
6760
break
 
6761
fi
 
6762
 
 
6763
rm -f conftest.err conftest.$ac_ext
 
6764
 
 
6765
done
 
6766
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6767
rm -f conftest.err conftest.$ac_ext
 
6768
if $ac_preproc_ok; then
 
6769
  :
 
6770
else
 
6771
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6772
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6773
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
6774
See \`config.log' for more details." >&5
 
6775
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
6776
See \`config.log' for more details." >&2;}
 
6777
   { (exit 1); exit 1; }; }; }
 
6778
fi
 
6779
 
 
6780
ac_ext=c
 
6781
ac_cpp='$CPP $CPPFLAGS'
 
6782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6785
 
 
6786
 
 
6787
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6788
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6789
if test "${ac_cv_header_stdc+set}" = set; then
 
6790
  $as_echo_n "(cached) " >&6
 
6791
else
 
6792
  cat >conftest.$ac_ext <<_ACEOF
 
6793
/* confdefs.h.  */
 
6794
_ACEOF
 
6795
cat confdefs.h >>conftest.$ac_ext
 
6796
cat >>conftest.$ac_ext <<_ACEOF
 
6797
/* end confdefs.h.  */
 
6798
#include <stdlib.h>
 
6799
#include <stdarg.h>
 
6800
#include <string.h>
 
6801
#include <float.h>
 
6802
 
 
6803
int
 
6804
main ()
 
6805
{
 
6806
 
 
6807
  ;
 
6808
  return 0;
 
6809
}
 
6810
_ACEOF
 
6811
rm -f conftest.$ac_objext
 
6812
if { (ac_try="$ac_compile"
 
6813
case "(($ac_try" in
 
6814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6815
  *) ac_try_echo=$ac_try;;
 
6816
esac
 
6817
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6818
$as_echo "$ac_try_echo") >&5
 
6819
  (eval "$ac_compile") 2>conftest.er1
 
6820
  ac_status=$?
 
6821
  grep -v '^ *+' conftest.er1 >conftest.err
 
6822
  rm -f conftest.er1
 
6823
  cat conftest.err >&5
 
6824
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6825
  (exit $ac_status); } && {
 
6826
         test -z "$ac_c_werror_flag" ||
 
6827
         test ! -s conftest.err
 
6828
       } && test -s conftest.$ac_objext; then
 
6829
  ac_cv_header_stdc=yes
 
6830
else
 
6831
  $as_echo "$as_me: failed program was:" >&5
 
6832
sed 's/^/| /' conftest.$ac_ext >&5
 
6833
 
 
6834
        ac_cv_header_stdc=no
 
6835
fi
 
6836
 
 
6837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6838
 
 
6839
if test $ac_cv_header_stdc = yes; then
 
6840
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6841
  cat >conftest.$ac_ext <<_ACEOF
 
6842
/* confdefs.h.  */
 
6843
_ACEOF
 
6844
cat confdefs.h >>conftest.$ac_ext
 
6845
cat >>conftest.$ac_ext <<_ACEOF
 
6846
/* end confdefs.h.  */
 
6847
#include <string.h>
 
6848
 
 
6849
_ACEOF
 
6850
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6851
  $EGREP "memchr" >/dev/null 2>&1; then
 
6852
  :
 
6853
else
 
6854
  ac_cv_header_stdc=no
 
6855
fi
 
6856
rm -f conftest*
 
6857
 
 
6858
fi
 
6859
 
 
6860
if test $ac_cv_header_stdc = yes; then
 
6861
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6862
  cat >conftest.$ac_ext <<_ACEOF
 
6863
/* confdefs.h.  */
 
6864
_ACEOF
 
6865
cat confdefs.h >>conftest.$ac_ext
 
6866
cat >>conftest.$ac_ext <<_ACEOF
 
6867
/* end confdefs.h.  */
 
6868
#include <stdlib.h>
 
6869
 
 
6870
_ACEOF
 
6871
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6872
  $EGREP "free" >/dev/null 2>&1; then
 
6873
  :
 
6874
else
 
6875
  ac_cv_header_stdc=no
 
6876
fi
 
6877
rm -f conftest*
 
6878
 
 
6879
fi
 
6880
 
 
6881
if test $ac_cv_header_stdc = yes; then
 
6882
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6883
  if test "$cross_compiling" = yes; then
 
6884
  :
 
6885
else
 
6886
  cat >conftest.$ac_ext <<_ACEOF
 
6887
/* confdefs.h.  */
 
6888
_ACEOF
 
6889
cat confdefs.h >>conftest.$ac_ext
 
6890
cat >>conftest.$ac_ext <<_ACEOF
 
6891
/* end confdefs.h.  */
 
6892
#include <ctype.h>
 
6893
#include <stdlib.h>
 
6894
#if ((' ' & 0x0FF) == 0x020)
 
6895
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6896
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6897
#else
 
6898
# define ISLOWER(c) \
 
6899
                   (('a' <= (c) && (c) <= 'i') \
 
6900
                     || ('j' <= (c) && (c) <= 'r') \
 
6901
                     || ('s' <= (c) && (c) <= 'z'))
 
6902
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6903
#endif
 
6904
 
 
6905
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6906
int
 
6907
main ()
 
6908
{
 
6909
  int i;
 
6910
  for (i = 0; i < 256; i++)
 
6911
    if (XOR (islower (i), ISLOWER (i))
 
6912
        || toupper (i) != TOUPPER (i))
 
6913
      return 2;
 
6914
  return 0;
 
6915
}
 
6916
_ACEOF
 
6917
rm -f conftest$ac_exeext
 
6918
if { (ac_try="$ac_link"
 
6919
case "(($ac_try" in
 
6920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6921
  *) ac_try_echo=$ac_try;;
 
6922
esac
 
6923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6924
$as_echo "$ac_try_echo") >&5
 
6925
  (eval "$ac_link") 2>&5
 
6926
  ac_status=$?
 
6927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6928
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6929
  { (case "(($ac_try" in
 
6930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6931
  *) ac_try_echo=$ac_try;;
 
6932
esac
 
6933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6934
$as_echo "$ac_try_echo") >&5
 
6935
  (eval "$ac_try") 2>&5
 
6936
  ac_status=$?
 
6937
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6938
  (exit $ac_status); }; }; then
 
6939
  :
 
6940
else
 
6941
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6942
$as_echo "$as_me: failed program was:" >&5
 
6943
sed 's/^/| /' conftest.$ac_ext >&5
 
6944
 
 
6945
( exit $ac_status )
 
6946
ac_cv_header_stdc=no
 
6947
fi
 
6948
rm -rf conftest.dSYM
 
6949
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6950
fi
 
6951
 
 
6952
 
 
6953
fi
 
6954
fi
 
6955
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6956
$as_echo "$ac_cv_header_stdc" >&6; }
 
6957
if test $ac_cv_header_stdc = yes; then
 
6958
 
 
6959
cat >>confdefs.h <<\_ACEOF
 
6960
#define STDC_HEADERS 1
 
6961
_ACEOF
 
6962
 
 
6963
fi
 
6964
 
 
6965
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6966
 
 
6967
 
 
6968
 
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
 
 
6974
 
 
6975
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6976
                  inttypes.h stdint.h unistd.h
 
6977
do
 
6978
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6979
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6980
$as_echo_n "checking for $ac_header... " >&6; }
 
6981
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6982
  $as_echo_n "(cached) " >&6
 
6983
else
 
6984
  cat >conftest.$ac_ext <<_ACEOF
 
6985
/* confdefs.h.  */
 
6986
_ACEOF
 
6987
cat confdefs.h >>conftest.$ac_ext
 
6988
cat >>conftest.$ac_ext <<_ACEOF
 
6989
/* end confdefs.h.  */
 
6990
$ac_includes_default
 
6991
 
 
6992
#include <$ac_header>
 
6993
_ACEOF
 
6994
rm -f conftest.$ac_objext
 
6995
if { (ac_try="$ac_compile"
 
6996
case "(($ac_try" in
 
6997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6998
  *) ac_try_echo=$ac_try;;
 
6999
esac
 
7000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7001
$as_echo "$ac_try_echo") >&5
 
7002
  (eval "$ac_compile") 2>conftest.er1
 
7003
  ac_status=$?
 
7004
  grep -v '^ *+' conftest.er1 >conftest.err
 
7005
  rm -f conftest.er1
 
7006
  cat conftest.err >&5
 
7007
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7008
  (exit $ac_status); } && {
 
7009
         test -z "$ac_c_werror_flag" ||
 
7010
         test ! -s conftest.err
 
7011
       } && test -s conftest.$ac_objext; then
 
7012
  eval "$as_ac_Header=yes"
 
7013
else
 
7014
  $as_echo "$as_me: failed program was:" >&5
 
7015
sed 's/^/| /' conftest.$ac_ext >&5
 
7016
 
 
7017
        eval "$as_ac_Header=no"
 
7018
fi
 
7019
 
 
7020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7021
fi
 
7022
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7023
                 $as_echo "$as_val"'`
 
7024
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7025
$as_echo "$ac_res" >&6; }
 
7026
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7027
                 $as_echo "$as_val"'`
 
7028
   if test "x$as_val" = x""yes; then
 
7029
  cat >>confdefs.h <<_ACEOF
 
7030
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7031
_ACEOF
 
7032
 
 
7033
fi
 
7034
 
 
7035
done
 
7036
 
 
7037
 
 
7038
 
 
7039
for ac_header in dlfcn.h
 
7040
do
 
7041
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7042
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7043
$as_echo_n "checking for $ac_header... " >&6; }
 
7044
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7045
  $as_echo_n "(cached) " >&6
 
7046
else
 
7047
  cat >conftest.$ac_ext <<_ACEOF
 
7048
/* confdefs.h.  */
 
7049
_ACEOF
 
7050
cat confdefs.h >>conftest.$ac_ext
 
7051
cat >>conftest.$ac_ext <<_ACEOF
 
7052
/* end confdefs.h.  */
 
7053
$ac_includes_default
 
7054
 
 
7055
#include <$ac_header>
 
7056
_ACEOF
 
7057
rm -f conftest.$ac_objext
 
7058
if { (ac_try="$ac_compile"
 
7059
case "(($ac_try" in
 
7060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7061
  *) ac_try_echo=$ac_try;;
 
7062
esac
 
7063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7064
$as_echo "$ac_try_echo") >&5
 
7065
  (eval "$ac_compile") 2>conftest.er1
 
7066
  ac_status=$?
 
7067
  grep -v '^ *+' conftest.er1 >conftest.err
 
7068
  rm -f conftest.er1
 
7069
  cat conftest.err >&5
 
7070
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7071
  (exit $ac_status); } && {
 
7072
         test -z "$ac_c_werror_flag" ||
 
7073
         test ! -s conftest.err
 
7074
       } && test -s conftest.$ac_objext; then
 
7075
  eval "$as_ac_Header=yes"
 
7076
else
 
7077
  $as_echo "$as_me: failed program was:" >&5
 
7078
sed 's/^/| /' conftest.$ac_ext >&5
 
7079
 
 
7080
        eval "$as_ac_Header=no"
 
7081
fi
 
7082
 
 
7083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7084
fi
 
7085
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7086
                 $as_echo "$as_val"'`
 
7087
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7088
$as_echo "$ac_res" >&6; }
 
7089
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7090
                 $as_echo "$as_val"'`
 
7091
   if test "x$as_val" = x""yes; then
 
7092
  cat >>confdefs.h <<_ACEOF
 
7093
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7094
_ACEOF
 
7095
 
 
7096
fi
 
7097
 
 
7098
done
 
7099
 
 
7100
 
 
7101
 
 
7102
# Set options
 
7103
 
 
7104
 
 
7105
 
 
7106
        enable_dlopen=no
 
7107
 
 
7108
 
 
7109
  enable_win32_dll=no
 
7110
 
 
7111
 
 
7112
            # Check whether --enable-shared was given.
 
7113
if test "${enable_shared+set}" = set; then
 
7114
  enableval=$enable_shared; p=${PACKAGE-default}
 
7115
    case $enableval in
 
7116
    yes) enable_shared=yes ;;
 
7117
    no) enable_shared=no ;;
 
7118
    *)
 
7119
      enable_shared=no
 
7120
      # Look at the argument we got.  We use all the common list separators.
 
7121
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7122
      for pkg in $enableval; do
 
7123
        IFS="$lt_save_ifs"
 
7124
        if test "X$pkg" = "X$p"; then
 
7125
          enable_shared=yes
 
7126
        fi
 
7127
      done
 
7128
      IFS="$lt_save_ifs"
 
7129
      ;;
 
7130
    esac
 
7131
else
 
7132
  enable_shared=yes
 
7133
fi
 
7134
 
 
7135
 
 
7136
 
 
7137
 
 
7138
 
 
7139
 
 
7140
 
 
7141
 
 
7142
 
 
7143
 
 
7144
 
 
7145
# Check whether --with-pic was given.
 
7146
if test "${with_pic+set}" = set; then
 
7147
  withval=$with_pic; pic_mode="$withval"
 
7148
else
 
7149
  pic_mode=default
 
7150
fi
 
7151
 
 
7152
 
 
7153
test -z "$pic_mode" && pic_mode=default
 
7154
 
 
7155
 
 
7156
 
 
7157
 
 
7158
 
 
7159
 
 
7160
 
 
7161
  # Check whether --enable-fast-install was given.
 
7162
if test "${enable_fast_install+set}" = set; then
 
7163
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7164
    case $enableval in
 
7165
    yes) enable_fast_install=yes ;;
 
7166
    no) enable_fast_install=no ;;
 
7167
    *)
 
7168
      enable_fast_install=no
 
7169
      # Look at the argument we got.  We use all the common list separators.
 
7170
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7171
      for pkg in $enableval; do
 
7172
        IFS="$lt_save_ifs"
 
7173
        if test "X$pkg" = "X$p"; then
 
7174
          enable_fast_install=yes
 
7175
        fi
 
7176
      done
 
7177
      IFS="$lt_save_ifs"
 
7178
      ;;
 
7179
    esac
 
7180
else
 
7181
  enable_fast_install=yes
 
7182
fi
 
7183
 
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
# This can be used to rebuild libtool when needed
 
7195
LIBTOOL_DEPS="$ltmain"
 
7196
 
 
7197
# Always use our own libtool.
 
7198
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7199
 
 
7200
 
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
 
 
7207
 
 
7208
 
 
7209
 
 
7210
 
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
 
 
7216
 
 
7217
 
 
7218
 
 
7219
 
 
7220
 
 
7221
 
 
7222
 
 
7223
 
 
7224
test -z "$LN_S" && LN_S="ln -s"
 
7225
 
 
7226
 
 
7227
 
 
7228
 
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
if test -n "${ZSH_VERSION+set}" ; then
 
7240
   setopt NO_GLOB_SUBST
 
7241
fi
 
7242
 
 
7243
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7244
$as_echo_n "checking for objdir... " >&6; }
 
7245
if test "${lt_cv_objdir+set}" = set; then
 
7246
  $as_echo_n "(cached) " >&6
 
7247
else
 
7248
  rm -f .libs 2>/dev/null
 
7249
mkdir .libs 2>/dev/null
 
7250
if test -d .libs; then
 
7251
  lt_cv_objdir=.libs
 
7252
else
 
7253
  # MS-DOS does not allow filenames that begin with a dot.
 
7254
  lt_cv_objdir=_libs
 
7255
fi
 
7256
rmdir .libs 2>/dev/null
 
7257
fi
 
7258
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7259
$as_echo "$lt_cv_objdir" >&6; }
 
7260
objdir=$lt_cv_objdir
 
7261
 
 
7262
 
 
7263
 
 
7264
 
 
7265
 
 
7266
cat >>confdefs.h <<_ACEOF
 
7267
#define LT_OBJDIR "$lt_cv_objdir/"
 
7268
_ACEOF
 
7269
 
 
7270
 
 
7271
 
 
7272
 
 
7273
 
 
7274
 
 
7275
 
 
7276
 
 
7277
 
 
7278
 
 
7279
 
 
7280
 
 
7281
 
 
7282
 
 
7283
 
 
7284
 
 
7285
 
 
7286
case $host_os in
 
7287
aix3*)
 
7288
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7289
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7290
  # vanish in a puff of smoke.
 
7291
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7292
    COLLECT_NAMES=
 
7293
    export COLLECT_NAMES
 
7294
  fi
 
7295
  ;;
 
7296
esac
 
7297
 
 
7298
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7299
# metacharacters that are still active within double-quoted strings.
 
7300
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7301
 
 
7302
# Same as above, but do not quote variable references.
 
7303
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7304
 
 
7305
# Sed substitution to delay expansion of an escaped shell variable in a
 
7306
# double_quote_subst'ed string.
 
7307
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7308
 
 
7309
# Sed substitution to delay expansion of an escaped single quote.
 
7310
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7311
 
 
7312
# Sed substitution to avoid accidental globbing in evaled expressions
 
7313
no_glob_subst='s/\*/\\\*/g'
 
7314
 
 
7315
# Global variables:
 
7316
ofile=libtool
 
7317
can_build_shared=yes
 
7318
 
 
7319
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7320
# which needs '.lib').
 
7321
libext=a
 
7322
 
 
7323
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7324
 
 
7325
old_CC="$CC"
 
7326
old_CFLAGS="$CFLAGS"
 
7327
 
 
7328
# Set sane defaults for various variables
 
7329
test -z "$CC" && CC=cc
 
7330
test -z "$LTCC" && LTCC=$CC
 
7331
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7332
test -z "$LD" && LD=ld
 
7333
test -z "$ac_objext" && ac_objext=o
 
7334
 
 
7335
for cc_temp in $compiler""; do
 
7336
  case $cc_temp in
 
7337
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7338
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7339
    \-*) ;;
 
7340
    *) break;;
 
7341
  esac
 
7342
done
 
7343
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7344
 
 
7345
 
 
7346
# Only perform the check for file, if the check method requires it
 
7347
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7348
case $deplibs_check_method in
 
7349
file_magic*)
 
7350
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7351
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7352
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7353
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7354
  $as_echo_n "(cached) " >&6
 
7355
else
 
7356
  case $MAGIC_CMD in
 
7357
[\\/*] |  ?:[\\/]*)
 
7358
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7359
  ;;
 
7360
*)
 
7361
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7362
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7363
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7364
  for ac_dir in $ac_dummy; do
 
7365
    IFS="$lt_save_ifs"
 
7366
    test -z "$ac_dir" && ac_dir=.
 
7367
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7368
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7369
      if test -n "$file_magic_test_file"; then
 
7370
        case $deplibs_check_method in
 
7371
        "file_magic "*)
 
7372
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7373
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7374
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7375
            $EGREP "$file_magic_regex" > /dev/null; then
 
7376
            :
 
7377
          else
 
7378
            cat <<_LT_EOF 1>&2
 
7379
 
 
7380
*** Warning: the command libtool uses to detect shared libraries,
 
7381
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7382
*** The result is that libtool may fail to recognize shared libraries
 
7383
*** as such.  This will affect the creation of libtool libraries that
 
7384
*** depend on shared libraries, but programs linked with such libtool
 
7385
*** libraries will work regardless of this problem.  Nevertheless, you
 
7386
*** may want to report the problem to your system manager and/or to
 
7387
*** bug-libtool@gnu.org
 
7388
 
 
7389
_LT_EOF
 
7390
          fi ;;
 
7391
        esac
 
7392
      fi
 
7393
      break
 
7394
    fi
 
7395
  done
 
7396
  IFS="$lt_save_ifs"
 
7397
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7398
  ;;
 
7399
esac
 
7400
fi
 
7401
 
 
7402
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7403
if test -n "$MAGIC_CMD"; then
 
7404
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7405
$as_echo "$MAGIC_CMD" >&6; }
 
7406
else
 
7407
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7408
$as_echo "no" >&6; }
 
7409
fi
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7416
  if test -n "$ac_tool_prefix"; then
 
7417
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7418
$as_echo_n "checking for file... " >&6; }
 
7419
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7420
  $as_echo_n "(cached) " >&6
 
7421
else
 
7422
  case $MAGIC_CMD in
 
7423
[\\/*] |  ?:[\\/]*)
 
7424
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7425
  ;;
 
7426
*)
 
7427
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7428
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7429
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7430
  for ac_dir in $ac_dummy; do
 
7431
    IFS="$lt_save_ifs"
 
7432
    test -z "$ac_dir" && ac_dir=.
 
7433
    if test -f $ac_dir/file; then
 
7434
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7435
      if test -n "$file_magic_test_file"; then
 
7436
        case $deplibs_check_method in
 
7437
        "file_magic "*)
 
7438
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7439
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7440
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7441
            $EGREP "$file_magic_regex" > /dev/null; then
 
7442
            :
 
7443
          else
 
7444
            cat <<_LT_EOF 1>&2
 
7445
 
 
7446
*** Warning: the command libtool uses to detect shared libraries,
 
7447
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7448
*** The result is that libtool may fail to recognize shared libraries
 
7449
*** as such.  This will affect the creation of libtool libraries that
 
7450
*** depend on shared libraries, but programs linked with such libtool
 
7451
*** libraries will work regardless of this problem.  Nevertheless, you
 
7452
*** may want to report the problem to your system manager and/or to
 
7453
*** bug-libtool@gnu.org
 
7454
 
 
7455
_LT_EOF
 
7456
          fi ;;
 
7457
        esac
 
7458
      fi
 
7459
      break
 
7460
    fi
 
7461
  done
 
7462
  IFS="$lt_save_ifs"
 
7463
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7464
  ;;
 
7465
esac
 
7466
fi
 
7467
 
 
7468
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7469
if test -n "$MAGIC_CMD"; then
 
7470
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7471
$as_echo "$MAGIC_CMD" >&6; }
 
7472
else
 
7473
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7474
$as_echo "no" >&6; }
 
7475
fi
 
7476
 
 
7477
 
 
7478
  else
 
7479
    MAGIC_CMD=:
 
7480
  fi
 
7481
fi
 
7482
 
 
7483
  fi
 
7484
  ;;
 
7485
esac
 
7486
 
 
7487
# Use C for the default configuration in the libtool script
 
7488
 
 
7489
lt_save_CC="$CC"
 
7490
ac_ext=c
 
7491
ac_cpp='$CPP $CPPFLAGS'
 
7492
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7493
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7494
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7495
 
 
7496
 
 
7497
# Source file extension for C test sources.
 
7498
ac_ext=c
 
7499
 
 
7500
# Object file extension for compiled C test sources.
 
7501
objext=o
 
7502
objext=$objext
 
7503
 
 
7504
# Code to be used in simple compile tests
 
7505
lt_simple_compile_test_code="int some_variable = 0;"
 
7506
 
 
7507
# Code to be used in simple link tests
 
7508
lt_simple_link_test_code='int main(){return(0);}'
 
7509
 
 
7510
 
 
7511
 
 
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
# If no C compiler was specified, use CC.
 
7517
LTCC=${LTCC-"$CC"}
 
7518
 
 
7519
# If no C compiler flags were specified, use CFLAGS.
 
7520
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7521
 
 
7522
# Allow CC to be a program name with arguments.
 
7523
compiler=$CC
 
7524
 
 
7525
# Save the default compiler, since it gets overwritten when the other
 
7526
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7527
compiler_DEFAULT=$CC
 
7528
 
 
7529
# save warnings/boilerplate of simple test code
 
7530
ac_outfile=conftest.$ac_objext
 
7531
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7532
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7533
_lt_compiler_boilerplate=`cat conftest.err`
 
7534
$RM conftest*
 
7535
 
 
7536
ac_outfile=conftest.$ac_objext
 
7537
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7538
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7539
_lt_linker_boilerplate=`cat conftest.err`
 
7540
$RM -r conftest*
 
7541
 
 
7542
 
 
7543
if test -n "$compiler"; then
 
7544
 
 
7545
lt_prog_compiler_no_builtin_flag=
 
7546
 
 
7547
if test "$GCC" = yes; then
 
7548
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7549
 
 
7550
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7551
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7552
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7553
  $as_echo_n "(cached) " >&6
 
7554
else
 
7555
  lt_cv_prog_compiler_rtti_exceptions=no
 
7556
   ac_outfile=conftest.$ac_objext
 
7557
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7558
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7559
   # Insert the option either (1) after the last *FLAGS variable, or
 
7560
   # (2) before a word containing "conftest.", or (3) at the end.
 
7561
   # Note that $ac_compile itself does not contain backslashes and begins
 
7562
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7563
   # The option is referenced via a variable to avoid confusing sed.
 
7564
   lt_compile=`echo "$ac_compile" | $SED \
 
7565
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7566
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7567
   -e 's:$: $lt_compiler_flag:'`
 
7568
   (eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
 
7569
   (eval "$lt_compile" 2>conftest.err)
 
7570
   ac_status=$?
 
7571
   cat conftest.err >&5
 
7572
   echo "$as_me:7572: \$? = $ac_status" >&5
 
7573
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7574
     # The compiler can only warn and ignore the option if not recognized
 
7575
     # So say no if there are warnings other than the usual output.
 
7576
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7577
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7578
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7579
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7580
     fi
 
7581
   fi
 
7582
   $RM conftest*
 
7583
 
 
7584
fi
 
7585
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7586
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7587
 
 
7588
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7589
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7590
else
 
7591
    :
 
7592
fi
 
7593
 
 
7594
fi
 
7595
 
 
7596
 
 
7597
 
 
7598
 
 
7599
 
 
7600
 
 
7601
  lt_prog_compiler_wl=
 
7602
lt_prog_compiler_pic=
 
7603
lt_prog_compiler_static=
 
7604
 
 
7605
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7606
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7607
 
 
7608
  if test "$GCC" = yes; then
 
7609
    lt_prog_compiler_wl='-Wl,'
 
7610
    lt_prog_compiler_static='-static'
 
7611
 
 
7612
    case $host_os in
 
7613
      aix*)
 
7614
      # All AIX code is PIC.
 
7615
      if test "$host_cpu" = ia64; then
 
7616
        # AIX 5 now supports IA64 processor
 
7617
        lt_prog_compiler_static='-Bstatic'
 
7618
      fi
 
7619
      ;;
 
7620
 
 
7621
    amigaos*)
 
7622
      case $host_cpu in
 
7623
      powerpc)
 
7624
            # see comment about AmigaOS4 .so support
 
7625
            lt_prog_compiler_pic='-fPIC'
 
7626
        ;;
 
7627
      m68k)
 
7628
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7629
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7630
            # like `-m68040'.
 
7631
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7632
        ;;
 
7633
      esac
 
7634
      ;;
 
7635
 
 
7636
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7637
      # PIC is the default for these OSes.
 
7638
      ;;
 
7639
 
 
7640
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7641
      # This hack is so that the source file can tell whether it is being
 
7642
      # built for inclusion in a dll (and should export symbols for example).
 
7643
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7644
      # (--disable-auto-import) libraries
 
7645
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7646
      ;;
 
7647
 
 
7648
    darwin* | rhapsody*)
 
7649
      # PIC is the default on this platform
 
7650
      # Common symbols not allowed in MH_DYLIB files
 
7651
      lt_prog_compiler_pic='-fno-common'
 
7652
      ;;
 
7653
 
 
7654
    hpux*)
 
7655
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7656
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7657
      # sets the default TLS model and affects inlining.
 
7658
      case $host_cpu in
 
7659
      hppa*64*)
 
7660
        # +Z the default
 
7661
        ;;
 
7662
      *)
 
7663
        lt_prog_compiler_pic='-fPIC'
 
7664
        ;;
 
7665
      esac
 
7666
      ;;
 
7667
 
 
7668
    interix[3-9]*)
 
7669
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7670
      # Instead, we relocate shared libraries at runtime.
 
7671
      ;;
 
7672
 
 
7673
    msdosdjgpp*)
 
7674
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7675
      # on systems that don't support them.
 
7676
      lt_prog_compiler_can_build_shared=no
 
7677
      enable_shared=no
 
7678
      ;;
 
7679
 
 
7680
    *nto* | *qnx*)
 
7681
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7682
      # it will coredump.
 
7683
      lt_prog_compiler_pic='-fPIC -shared'
 
7684
      ;;
 
7685
 
 
7686
    sysv4*MP*)
 
7687
      if test -d /usr/nec; then
 
7688
        lt_prog_compiler_pic=-Kconform_pic
 
7689
      fi
 
7690
      ;;
 
7691
 
 
7692
    *)
 
7693
      lt_prog_compiler_pic='-fPIC'
 
7694
      ;;
 
7695
    esac
 
7696
  else
 
7697
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7698
    case $host_os in
 
7699
    aix*)
 
7700
      lt_prog_compiler_wl='-Wl,'
 
7701
      if test "$host_cpu" = ia64; then
 
7702
        # AIX 5 now supports IA64 processor
 
7703
        lt_prog_compiler_static='-Bstatic'
 
7704
      else
 
7705
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7706
      fi
 
7707
      ;;
 
7708
 
 
7709
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7710
      # This hack is so that the source file can tell whether it is being
 
7711
      # built for inclusion in a dll (and should export symbols for example).
 
7712
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7713
      ;;
 
7714
 
 
7715
    hpux9* | hpux10* | hpux11*)
 
7716
      lt_prog_compiler_wl='-Wl,'
 
7717
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7718
      # not for PA HP-UX.
 
7719
      case $host_cpu in
 
7720
      hppa*64*|ia64*)
 
7721
        # +Z the default
 
7722
        ;;
 
7723
      *)
 
7724
        lt_prog_compiler_pic='+Z'
 
7725
        ;;
 
7726
      esac
 
7727
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7728
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7729
      ;;
 
7730
 
 
7731
    irix5* | irix6* | nonstopux*)
 
7732
      lt_prog_compiler_wl='-Wl,'
 
7733
      # PIC (with -KPIC) is the default.
 
7734
      lt_prog_compiler_static='-non_shared'
 
7735
      ;;
 
7736
 
 
7737
    linux* | k*bsd*-gnu)
 
7738
      case $cc_basename in
 
7739
      # old Intel for x86_64 which still supported -KPIC.
 
7740
      ecc*)
 
7741
        lt_prog_compiler_wl='-Wl,'
 
7742
        lt_prog_compiler_pic='-KPIC'
 
7743
        lt_prog_compiler_static='-static'
 
7744
        ;;
 
7745
      # icc used to be incompatible with GCC.
 
7746
      # ICC 10 doesn't accept -KPIC any more.
 
7747
      icc* | ifort*)
 
7748
        lt_prog_compiler_wl='-Wl,'
 
7749
        lt_prog_compiler_pic='-fPIC'
 
7750
        lt_prog_compiler_static='-static'
 
7751
        ;;
 
7752
      # Lahey Fortran 8.1.
 
7753
      lf95*)
 
7754
        lt_prog_compiler_wl='-Wl,'
 
7755
        lt_prog_compiler_pic='--shared'
 
7756
        lt_prog_compiler_static='--static'
 
7757
        ;;
 
7758
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7759
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7760
        # which looks to be a dead project)
 
7761
        lt_prog_compiler_wl='-Wl,'
 
7762
        lt_prog_compiler_pic='-fpic'
 
7763
        lt_prog_compiler_static='-Bstatic'
 
7764
        ;;
 
7765
      ccc*)
 
7766
        lt_prog_compiler_wl='-Wl,'
 
7767
        # All Alpha code is PIC.
 
7768
        lt_prog_compiler_static='-non_shared'
 
7769
        ;;
 
7770
      xl*)
 
7771
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7772
        lt_prog_compiler_wl='-Wl,'
 
7773
        lt_prog_compiler_pic='-qpic'
 
7774
        lt_prog_compiler_static='-qstaticlink'
 
7775
        ;;
 
7776
      *)
 
7777
        case `$CC -V 2>&1 | sed 5q` in
 
7778
        *Sun\ C*)
 
7779
          # Sun C 5.9
 
7780
          lt_prog_compiler_pic='-KPIC'
 
7781
          lt_prog_compiler_static='-Bstatic'
 
7782
          lt_prog_compiler_wl='-Wl,'
 
7783
          ;;
 
7784
        *Sun\ F*)
 
7785
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7786
          lt_prog_compiler_pic='-KPIC'
 
7787
          lt_prog_compiler_static='-Bstatic'
 
7788
          lt_prog_compiler_wl=''
 
7789
          ;;
 
7790
        esac
 
7791
        ;;
 
7792
      esac
 
7793
      ;;
 
7794
 
 
7795
    newsos6)
 
7796
      lt_prog_compiler_pic='-KPIC'
 
7797
      lt_prog_compiler_static='-Bstatic'
 
7798
      ;;
 
7799
 
 
7800
    *nto* | *qnx*)
 
7801
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7802
      # it will coredump.
 
7803
      lt_prog_compiler_pic='-fPIC -shared'
 
7804
      ;;
 
7805
 
 
7806
    osf3* | osf4* | osf5*)
 
7807
      lt_prog_compiler_wl='-Wl,'
 
7808
      # All OSF/1 code is PIC.
 
7809
      lt_prog_compiler_static='-non_shared'
 
7810
      ;;
 
7811
 
 
7812
    rdos*)
 
7813
      lt_prog_compiler_static='-non_shared'
 
7814
      ;;
 
7815
 
 
7816
    solaris*)
 
7817
      lt_prog_compiler_pic='-KPIC'
 
7818
      lt_prog_compiler_static='-Bstatic'
 
7819
      case $cc_basename in
 
7820
      f77* | f90* | f95*)
 
7821
        lt_prog_compiler_wl='-Qoption ld ';;
 
7822
      *)
 
7823
        lt_prog_compiler_wl='-Wl,';;
 
7824
      esac
 
7825
      ;;
 
7826
 
 
7827
    sunos4*)
 
7828
      lt_prog_compiler_wl='-Qoption ld '
 
7829
      lt_prog_compiler_pic='-PIC'
 
7830
      lt_prog_compiler_static='-Bstatic'
 
7831
      ;;
 
7832
 
 
7833
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7834
      lt_prog_compiler_wl='-Wl,'
 
7835
      lt_prog_compiler_pic='-KPIC'
 
7836
      lt_prog_compiler_static='-Bstatic'
 
7837
      ;;
 
7838
 
 
7839
    sysv4*MP*)
 
7840
      if test -d /usr/nec ;then
 
7841
        lt_prog_compiler_pic='-Kconform_pic'
 
7842
        lt_prog_compiler_static='-Bstatic'
 
7843
      fi
 
7844
      ;;
 
7845
 
 
7846
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7847
      lt_prog_compiler_wl='-Wl,'
 
7848
      lt_prog_compiler_pic='-KPIC'
 
7849
      lt_prog_compiler_static='-Bstatic'
 
7850
      ;;
 
7851
 
 
7852
    unicos*)
 
7853
      lt_prog_compiler_wl='-Wl,'
 
7854
      lt_prog_compiler_can_build_shared=no
 
7855
      ;;
 
7856
 
 
7857
    uts4*)
 
7858
      lt_prog_compiler_pic='-pic'
 
7859
      lt_prog_compiler_static='-Bstatic'
 
7860
      ;;
 
7861
 
 
7862
    *)
 
7863
      lt_prog_compiler_can_build_shared=no
 
7864
      ;;
 
7865
    esac
 
7866
  fi
 
7867
 
 
7868
case $host_os in
 
7869
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7870
  *djgpp*)
 
7871
    lt_prog_compiler_pic=
 
7872
    ;;
 
7873
  *)
 
7874
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7875
    ;;
 
7876
esac
 
7877
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7878
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
 
 
7885
#
 
7886
# Check to make sure the PIC flag actually works.
 
7887
#
 
7888
if test -n "$lt_prog_compiler_pic"; then
 
7889
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7890
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7891
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7892
  $as_echo_n "(cached) " >&6
 
7893
else
 
7894
  lt_cv_prog_compiler_pic_works=no
 
7895
   ac_outfile=conftest.$ac_objext
 
7896
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7897
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7898
   # Insert the option either (1) after the last *FLAGS variable, or
 
7899
   # (2) before a word containing "conftest.", or (3) at the end.
 
7900
   # Note that $ac_compile itself does not contain backslashes and begins
 
7901
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7902
   # The option is referenced via a variable to avoid confusing sed.
 
7903
   lt_compile=`echo "$ac_compile" | $SED \
 
7904
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7905
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7906
   -e 's:$: $lt_compiler_flag:'`
 
7907
   (eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
 
7908
   (eval "$lt_compile" 2>conftest.err)
 
7909
   ac_status=$?
 
7910
   cat conftest.err >&5
 
7911
   echo "$as_me:7911: \$? = $ac_status" >&5
 
7912
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7913
     # The compiler can only warn and ignore the option if not recognized
 
7914
     # So say no if there are warnings other than the usual output.
 
7915
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7916
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7917
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7918
       lt_cv_prog_compiler_pic_works=yes
 
7919
     fi
 
7920
   fi
 
7921
   $RM conftest*
 
7922
 
 
7923
fi
 
7924
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7925
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7926
 
 
7927
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7928
    case $lt_prog_compiler_pic in
 
7929
     "" | " "*) ;;
 
7930
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7931
     esac
 
7932
else
 
7933
    lt_prog_compiler_pic=
 
7934
     lt_prog_compiler_can_build_shared=no
 
7935
fi
 
7936
 
 
7937
fi
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
#
 
7945
# Check to make sure the static flag actually works.
 
7946
#
 
7947
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7948
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7949
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7950
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
7951
  $as_echo_n "(cached) " >&6
 
7952
else
 
7953
  lt_cv_prog_compiler_static_works=no
 
7954
   save_LDFLAGS="$LDFLAGS"
 
7955
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7956
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7957
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7958
     # The linker can only warn and ignore the option if not recognized
 
7959
     # So say no if there are warnings
 
7960
     if test -s conftest.err; then
 
7961
       # Append any errors to the config.log.
 
7962
       cat conftest.err 1>&5
 
7963
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7964
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7965
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7966
         lt_cv_prog_compiler_static_works=yes
 
7967
       fi
 
7968
     else
 
7969
       lt_cv_prog_compiler_static_works=yes
 
7970
     fi
 
7971
   fi
 
7972
   $RM -r conftest*
 
7973
   LDFLAGS="$save_LDFLAGS"
 
7974
 
 
7975
fi
 
7976
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7977
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7978
 
 
7979
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7980
    :
 
7981
else
 
7982
    lt_prog_compiler_static=
 
7983
fi
 
7984
 
 
7985
 
 
7986
 
 
7987
 
 
7988
 
 
7989
 
 
7990
 
 
7991
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7992
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7993
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7994
  $as_echo_n "(cached) " >&6
 
7995
else
 
7996
  lt_cv_prog_compiler_c_o=no
 
7997
   $RM -r conftest 2>/dev/null
 
7998
   mkdir conftest
 
7999
   cd conftest
 
8000
   mkdir out
 
8001
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8002
 
 
8003
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8004
   # Insert the option either (1) after the last *FLAGS variable, or
 
8005
   # (2) before a word containing "conftest.", or (3) at the end.
 
8006
   # Note that $ac_compile itself does not contain backslashes and begins
 
8007
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8008
   lt_compile=`echo "$ac_compile" | $SED \
 
8009
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8010
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8011
   -e 's:$: $lt_compiler_flag:'`
 
8012
   (eval echo "\"\$as_me:8012: $lt_compile\"" >&5)
 
8013
   (eval "$lt_compile" 2>out/conftest.err)
 
8014
   ac_status=$?
 
8015
   cat out/conftest.err >&5
 
8016
   echo "$as_me:8016: \$? = $ac_status" >&5
 
8017
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8018
   then
 
8019
     # The compiler can only warn and ignore the option if not recognized
 
8020
     # So say no if there are warnings
 
8021
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8022
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8023
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8024
       lt_cv_prog_compiler_c_o=yes
 
8025
     fi
 
8026
   fi
 
8027
   chmod u+w . 2>&5
 
8028
   $RM conftest*
 
8029
   # SGI C++ compiler will create directory out/ii_files/ for
 
8030
   # template instantiation
 
8031
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8032
   $RM out/* && rmdir out
 
8033
   cd ..
 
8034
   $RM -r conftest
 
8035
   $RM conftest*
 
8036
 
 
8037
fi
 
8038
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8039
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8040
 
 
8041
 
 
8042
 
 
8043
 
 
8044
 
 
8045
 
 
8046
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8047
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8048
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8049
  $as_echo_n "(cached) " >&6
 
8050
else
 
8051
  lt_cv_prog_compiler_c_o=no
 
8052
   $RM -r conftest 2>/dev/null
 
8053
   mkdir conftest
 
8054
   cd conftest
 
8055
   mkdir out
 
8056
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8057
 
 
8058
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8059
   # Insert the option either (1) after the last *FLAGS variable, or
 
8060
   # (2) before a word containing "conftest.", or (3) at the end.
 
8061
   # Note that $ac_compile itself does not contain backslashes and begins
 
8062
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8063
   lt_compile=`echo "$ac_compile" | $SED \
 
8064
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8065
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8066
   -e 's:$: $lt_compiler_flag:'`
 
8067
   (eval echo "\"\$as_me:8067: $lt_compile\"" >&5)
 
8068
   (eval "$lt_compile" 2>out/conftest.err)
 
8069
   ac_status=$?
 
8070
   cat out/conftest.err >&5
 
8071
   echo "$as_me:8071: \$? = $ac_status" >&5
 
8072
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8073
   then
 
8074
     # The compiler can only warn and ignore the option if not recognized
 
8075
     # So say no if there are warnings
 
8076
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8077
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8078
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8079
       lt_cv_prog_compiler_c_o=yes
 
8080
     fi
 
8081
   fi
 
8082
   chmod u+w . 2>&5
 
8083
   $RM conftest*
 
8084
   # SGI C++ compiler will create directory out/ii_files/ for
 
8085
   # template instantiation
 
8086
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8087
   $RM out/* && rmdir out
 
8088
   cd ..
 
8089
   $RM -r conftest
 
8090
   $RM conftest*
 
8091
 
 
8092
fi
 
8093
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8094
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8095
 
 
8096
 
 
8097
 
 
8098
 
 
8099
hard_links="nottested"
 
8100
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8101
  # do not overwrite the value of need_locks provided by the user
 
8102
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8103
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8104
  hard_links=yes
 
8105
  $RM conftest*
 
8106
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8107
  touch conftest.a
 
8108
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8109
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8110
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
8111
$as_echo "$hard_links" >&6; }
 
8112
  if test "$hard_links" = no; then
 
8113
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8114
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8115
    need_locks=warn
 
8116
  fi
 
8117
else
 
8118
  need_locks=no
 
8119
fi
 
8120
 
 
8121
 
 
8122
 
 
8123
 
 
8124
 
 
8125
 
 
8126
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8127
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8128
 
 
8129
  runpath_var=
 
8130
  allow_undefined_flag=
 
8131
  always_export_symbols=no
 
8132
  archive_cmds=
 
8133
  archive_expsym_cmds=
 
8134
  compiler_needs_object=no
 
8135
  enable_shared_with_static_runtimes=no
 
8136
  export_dynamic_flag_spec=
 
8137
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8138
  hardcode_automatic=no
 
8139
  hardcode_direct=no
 
8140
  hardcode_direct_absolute=no
 
8141
  hardcode_libdir_flag_spec=
 
8142
  hardcode_libdir_flag_spec_ld=
 
8143
  hardcode_libdir_separator=
 
8144
  hardcode_minus_L=no
 
8145
  hardcode_shlibpath_var=unsupported
 
8146
  inherit_rpath=no
 
8147
  link_all_deplibs=unknown
 
8148
  module_cmds=
 
8149
  module_expsym_cmds=
 
8150
  old_archive_from_new_cmds=
 
8151
  old_archive_from_expsyms_cmds=
 
8152
  thread_safe_flag_spec=
 
8153
  whole_archive_flag_spec=
 
8154
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8155
  # included in the symbol list
 
8156
  include_expsyms=
 
8157
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8158
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8159
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8160
  # as well as any symbol that contains `d'.
 
8161
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8162
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8163
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8164
  # the symbol is explicitly referenced.  Since portable code cannot
 
8165
  # rely on this symbol name, it's probably fine to never include it in
 
8166
  # preloaded symbol tables.
 
8167
  # Exclude shared library initialization/finalization symbols.
 
8168
  extract_expsyms_cmds=
 
8169
 
 
8170
  case $host_os in
 
8171
  cygwin* | mingw* | pw32* | cegcc*)
 
8172
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8173
    # When not using gcc, we currently assume that we are using
 
8174
    # Microsoft Visual C++.
 
8175
    if test "$GCC" != yes; then
 
8176
      with_gnu_ld=no
 
8177
    fi
 
8178
    ;;
 
8179
  interix*)
 
8180
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8181
    with_gnu_ld=yes
 
8182
    ;;
 
8183
  openbsd*)
 
8184
    with_gnu_ld=no
 
8185
    ;;
 
8186
  esac
 
8187
 
 
8188
  ld_shlibs=yes
 
8189
  if test "$with_gnu_ld" = yes; then
 
8190
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8191
    wlarc='${wl}'
 
8192
 
 
8193
    # Set some defaults for GNU ld with shared library support. These
 
8194
    # are reset later if shared libraries are not supported. Putting them
 
8195
    # here allows them to be overridden if necessary.
 
8196
    runpath_var=LD_RUN_PATH
 
8197
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8198
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8199
    # ancient GNU ld didn't support --whole-archive et. al.
 
8200
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8201
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8202
    else
 
8203
      whole_archive_flag_spec=
 
8204
    fi
 
8205
    supports_anon_versioning=no
 
8206
    case `$LD -v 2>&1` in
 
8207
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8208
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8209
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8210
      *\ 2.11.*) ;; # other 2.11 versions
 
8211
      *) supports_anon_versioning=yes ;;
 
8212
    esac
 
8213
 
 
8214
    # See if GNU ld supports shared libraries.
 
8215
    case $host_os in
 
8216
    aix[3-9]*)
 
8217
      # On AIX/PPC, the GNU linker is very broken
 
8218
      if test "$host_cpu" != ia64; then
 
8219
        ld_shlibs=no
 
8220
        cat <<_LT_EOF 1>&2
 
8221
 
 
8222
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8223
*** to be unable to reliably create shared libraries on AIX.
 
8224
*** Therefore, libtool is disabling shared libraries support.  If you
 
8225
*** really care for shared libraries, you may want to modify your PATH
 
8226
*** so that a non-GNU linker is found, and then restart.
 
8227
 
 
8228
_LT_EOF
 
8229
      fi
 
8230
      ;;
 
8231
 
 
8232
    amigaos*)
 
8233
      case $host_cpu in
 
8234
      powerpc)
 
8235
            # see comment about AmigaOS4 .so support
 
8236
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8237
            archive_expsym_cmds=''
 
8238
        ;;
 
8239
      m68k)
 
8240
            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)'
 
8241
            hardcode_libdir_flag_spec='-L$libdir'
 
8242
            hardcode_minus_L=yes
 
8243
        ;;
 
8244
      esac
 
8245
      ;;
 
8246
 
 
8247
    beos*)
 
8248
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8249
        allow_undefined_flag=unsupported
 
8250
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8251
        # support --undefined.  This deserves some investigation.  FIXME
 
8252
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8253
      else
 
8254
        ld_shlibs=no
 
8255
      fi
 
8256
      ;;
 
8257
 
 
8258
    cygwin* | mingw* | pw32* | cegcc*)
 
8259
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8260
      # as there is no search path for DLLs.
 
8261
      hardcode_libdir_flag_spec='-L$libdir'
 
8262
      allow_undefined_flag=unsupported
 
8263
      always_export_symbols=no
 
8264
      enable_shared_with_static_runtimes=yes
 
8265
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8266
 
 
8267
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8268
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8269
        # If the export-symbols file already is a .def file (1st line
 
8270
        # is EXPORTS), use it as is; otherwise, prepend...
 
8271
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8272
          cp $export_symbols $output_objdir/$soname.def;
 
8273
        else
 
8274
          echo EXPORTS > $output_objdir/$soname.def;
 
8275
          cat $export_symbols >> $output_objdir/$soname.def;
 
8276
        fi~
 
8277
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8278
      else
 
8279
        ld_shlibs=no
 
8280
      fi
 
8281
      ;;
 
8282
 
 
8283
    interix[3-9]*)
 
8284
      hardcode_direct=no
 
8285
      hardcode_shlibpath_var=no
 
8286
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8287
      export_dynamic_flag_spec='${wl}-E'
 
8288
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8289
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8290
      # default) and relocated if they conflict, which is a slow very memory
 
8291
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8292
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8293
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8294
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8295
      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'
 
8296
      ;;
 
8297
 
 
8298
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8299
      tmp_diet=no
 
8300
      if test "$host_os" = linux-dietlibc; then
 
8301
        case $cc_basename in
 
8302
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8303
        esac
 
8304
      fi
 
8305
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8306
         && test "$tmp_diet" = no
 
8307
      then
 
8308
        tmp_addflag=
 
8309
        tmp_sharedflag='-shared'
 
8310
        case $cc_basename,$host_cpu in
 
8311
        pgcc*)                          # Portland Group C compiler
 
8312
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8313
          tmp_addflag=' $pic_flag'
 
8314
          ;;
 
8315
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8316
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8317
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8318
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8319
          tmp_addflag=' -i_dynamic' ;;
 
8320
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8321
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8322
        ifc* | ifort*)                  # Intel Fortran compiler
 
8323
          tmp_addflag=' -nofor_main' ;;
 
8324
        lf95*)                          # Lahey Fortran 8.1
 
8325
          whole_archive_flag_spec=
 
8326
          tmp_sharedflag='--shared' ;;
 
8327
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8328
          tmp_sharedflag='-qmkshrobj'
 
8329
          tmp_addflag= ;;
 
8330
        esac
 
8331
        case `$CC -V 2>&1 | sed 5q` in
 
8332
        *Sun\ C*)                       # Sun C 5.9
 
8333
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8334
          compiler_needs_object=yes
 
8335
          tmp_sharedflag='-G' ;;
 
8336
        *Sun\ F*)                       # Sun Fortran 8.3
 
8337
          tmp_sharedflag='-G' ;;
 
8338
        esac
 
8339
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8340
 
 
8341
        if test "x$supports_anon_versioning" = xyes; then
 
8342
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8343
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8344
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8345
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8346
        fi
 
8347
 
 
8348
        case $cc_basename in
 
8349
        xlf*)
 
8350
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8351
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8352
          hardcode_libdir_flag_spec=
 
8353
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8354
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8355
          if test "x$supports_anon_versioning" = xyes; then
 
8356
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8357
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8358
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8359
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8360
          fi
 
8361
          ;;
 
8362
        esac
 
8363
      else
 
8364
        ld_shlibs=no
 
8365
      fi
 
8366
      ;;
 
8367
 
 
8368
    netbsd*)
 
8369
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8370
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8371
        wlarc=
 
8372
      else
 
8373
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8374
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8375
      fi
 
8376
      ;;
 
8377
 
 
8378
    solaris*)
 
8379
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8380
        ld_shlibs=no
 
8381
        cat <<_LT_EOF 1>&2
 
8382
 
 
8383
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8384
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8385
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8386
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8387
*** your PATH or compiler configuration so that the native linker is
 
8388
*** used, and then restart.
 
8389
 
 
8390
_LT_EOF
 
8391
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8392
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8393
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8394
      else
 
8395
        ld_shlibs=no
 
8396
      fi
 
8397
      ;;
 
8398
 
 
8399
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8400
      case `$LD -v 2>&1` in
 
8401
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8402
        ld_shlibs=no
 
8403
        cat <<_LT_EOF 1>&2
 
8404
 
 
8405
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8406
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8407
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8408
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8409
*** your PATH or compiler configuration so that the native linker is
 
8410
*** used, and then restart.
 
8411
 
 
8412
_LT_EOF
 
8413
        ;;
 
8414
        *)
 
8415
          # For security reasons, it is highly recommended that you always
 
8416
          # use absolute paths for naming shared libraries, and exclude the
 
8417
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8418
          # requires that you compile everything twice, which is a pain.
 
8419
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8420
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8421
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8422
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8423
          else
 
8424
            ld_shlibs=no
 
8425
          fi
 
8426
        ;;
 
8427
      esac
 
8428
      ;;
 
8429
 
 
8430
    sunos4*)
 
8431
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8432
      wlarc=
 
8433
      hardcode_direct=yes
 
8434
      hardcode_shlibpath_var=no
 
8435
      ;;
 
8436
 
 
8437
    *)
 
8438
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8439
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8440
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8441
      else
 
8442
        ld_shlibs=no
 
8443
      fi
 
8444
      ;;
 
8445
    esac
 
8446
 
 
8447
    if test "$ld_shlibs" = no; then
 
8448
      runpath_var=
 
8449
      hardcode_libdir_flag_spec=
 
8450
      export_dynamic_flag_spec=
 
8451
      whole_archive_flag_spec=
 
8452
    fi
 
8453
  else
 
8454
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8455
    case $host_os in
 
8456
    aix3*)
 
8457
      allow_undefined_flag=unsupported
 
8458
      always_export_symbols=yes
 
8459
      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'
 
8460
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8461
      # are no directories specified by -L.
 
8462
      hardcode_minus_L=yes
 
8463
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8464
        # Neither direct hardcoding nor static linking is supported with a
 
8465
        # broken collect2.
 
8466
        hardcode_direct=unsupported
 
8467
      fi
 
8468
      ;;
 
8469
 
 
8470
    aix[4-9]*)
 
8471
      if test "$host_cpu" = ia64; then
 
8472
        # On IA64, the linker does run time linking by default, so we don't
 
8473
        # have to do anything special.
 
8474
        aix_use_runtimelinking=no
 
8475
        exp_sym_flag='-Bexport'
 
8476
        no_entry_flag=""
 
8477
      else
 
8478
        # If we're using GNU nm, then we don't want the "-C" option.
 
8479
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8480
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8481
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8482
        else
 
8483
          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'
 
8484
        fi
 
8485
        aix_use_runtimelinking=no
 
8486
 
 
8487
        # Test if we are trying to use run time linking or normal
 
8488
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8489
        # need to do runtime linking.
 
8490
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8491
          for ld_flag in $LDFLAGS; do
 
8492
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8493
            aix_use_runtimelinking=yes
 
8494
            break
 
8495
          fi
 
8496
          done
 
8497
          ;;
 
8498
        esac
 
8499
 
 
8500
        exp_sym_flag='-bexport'
 
8501
        no_entry_flag='-bnoentry'
 
8502
      fi
 
8503
 
 
8504
      # When large executables or shared objects are built, AIX ld can
 
8505
      # have problems creating the table of contents.  If linking a library
 
8506
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8507
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8508
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8509
 
 
8510
      archive_cmds=''
 
8511
      hardcode_direct=yes
 
8512
      hardcode_direct_absolute=yes
 
8513
      hardcode_libdir_separator=':'
 
8514
      link_all_deplibs=yes
 
8515
      file_list_spec='${wl}-f,'
 
8516
 
 
8517
      if test "$GCC" = yes; then
 
8518
        case $host_os in aix4.[012]|aix4.[012].*)
 
8519
        # We only want to do this on AIX 4.2 and lower, the check
 
8520
        # below for broken collect2 doesn't work under 4.3+
 
8521
          collect2name=`${CC} -print-prog-name=collect2`
 
8522
          if test -f "$collect2name" &&
 
8523
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8524
          then
 
8525
          # We have reworked collect2
 
8526
          :
 
8527
          else
 
8528
          # We have old collect2
 
8529
          hardcode_direct=unsupported
 
8530
          # It fails to find uninstalled libraries when the uninstalled
 
8531
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8532
          # to unsupported forces relinking
 
8533
          hardcode_minus_L=yes
 
8534
          hardcode_libdir_flag_spec='-L$libdir'
 
8535
          hardcode_libdir_separator=
 
8536
          fi
 
8537
          ;;
 
8538
        esac
 
8539
        shared_flag='-shared'
 
8540
        if test "$aix_use_runtimelinking" = yes; then
 
8541
          shared_flag="$shared_flag "'${wl}-G'
 
8542
        fi
 
8543
      else
 
8544
        # not using gcc
 
8545
        if test "$host_cpu" = ia64; then
 
8546
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8547
        # chokes on -Wl,-G. The following line is correct:
 
8548
          shared_flag='-G'
 
8549
        else
 
8550
          if test "$aix_use_runtimelinking" = yes; then
 
8551
            shared_flag='${wl}-G'
 
8552
          else
 
8553
            shared_flag='${wl}-bM:SRE'
 
8554
          fi
 
8555
        fi
 
8556
      fi
 
8557
 
 
8558
      export_dynamic_flag_spec='${wl}-bexpall'
 
8559
      # It seems that -bexpall does not export symbols beginning with
 
8560
      # underscore (_), so it is better to generate a list of symbols to export.
 
8561
      always_export_symbols=yes
 
8562
      if test "$aix_use_runtimelinking" = yes; then
 
8563
        # Warning - without using the other runtime loading flags (-brtl),
 
8564
        # -berok will link without error, but may produce a broken library.
 
8565
        allow_undefined_flag='-berok'
 
8566
        # Determine the default libpath from the value encoded in an
 
8567
        # empty executable.
 
8568
        cat >conftest.$ac_ext <<_ACEOF
 
8569
/* confdefs.h.  */
 
8570
_ACEOF
 
8571
cat confdefs.h >>conftest.$ac_ext
 
8572
cat >>conftest.$ac_ext <<_ACEOF
 
8573
/* end confdefs.h.  */
 
8574
 
 
8575
int
 
8576
main ()
 
8577
{
 
8578
 
 
8579
  ;
 
8580
  return 0;
 
8581
}
 
8582
_ACEOF
 
8583
rm -f conftest.$ac_objext conftest$ac_exeext
 
8584
if { (ac_try="$ac_link"
 
8585
case "(($ac_try" in
 
8586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8587
  *) ac_try_echo=$ac_try;;
 
8588
esac
 
8589
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8590
$as_echo "$ac_try_echo") >&5
 
8591
  (eval "$ac_link") 2>conftest.er1
 
8592
  ac_status=$?
 
8593
  grep -v '^ *+' conftest.er1 >conftest.err
 
8594
  rm -f conftest.er1
 
8595
  cat conftest.err >&5
 
8596
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8597
  (exit $ac_status); } && {
 
8598
         test -z "$ac_c_werror_flag" ||
 
8599
         test ! -s conftest.err
 
8600
       } && test -s conftest$ac_exeext && {
 
8601
         test "$cross_compiling" = yes ||
 
8602
         $as_test_x conftest$ac_exeext
 
8603
       }; then
 
8604
 
 
8605
lt_aix_libpath_sed='
 
8606
    /Import File Strings/,/^$/ {
 
8607
        /^0/ {
 
8608
            s/^0  *\(.*\)$/\1/
 
8609
            p
 
8610
        }
 
8611
    }'
 
8612
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8613
# Check for a 64-bit object if we didn't find anything.
 
8614
if test -z "$aix_libpath"; then
 
8615
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8616
fi
 
8617
else
 
8618
  $as_echo "$as_me: failed program was:" >&5
 
8619
sed 's/^/| /' conftest.$ac_ext >&5
 
8620
 
 
8621
 
 
8622
fi
 
8623
 
 
8624
rm -rf conftest.dSYM
 
8625
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8626
      conftest$ac_exeext conftest.$ac_ext
 
8627
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8628
 
 
8629
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8630
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8631
      else
 
8632
        if test "$host_cpu" = ia64; then
 
8633
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8634
          allow_undefined_flag="-z nodefs"
 
8635
          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"
 
8636
        else
 
8637
         # Determine the default libpath from the value encoded in an
 
8638
         # empty executable.
 
8639
         cat >conftest.$ac_ext <<_ACEOF
 
8640
/* confdefs.h.  */
 
8641
_ACEOF
 
8642
cat confdefs.h >>conftest.$ac_ext
 
8643
cat >>conftest.$ac_ext <<_ACEOF
 
8644
/* end confdefs.h.  */
 
8645
 
 
8646
int
 
8647
main ()
 
8648
{
 
8649
 
 
8650
  ;
 
8651
  return 0;
 
8652
}
 
8653
_ACEOF
 
8654
rm -f conftest.$ac_objext conftest$ac_exeext
 
8655
if { (ac_try="$ac_link"
 
8656
case "(($ac_try" in
 
8657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8658
  *) ac_try_echo=$ac_try;;
 
8659
esac
 
8660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8661
$as_echo "$ac_try_echo") >&5
 
8662
  (eval "$ac_link") 2>conftest.er1
 
8663
  ac_status=$?
 
8664
  grep -v '^ *+' conftest.er1 >conftest.err
 
8665
  rm -f conftest.er1
 
8666
  cat conftest.err >&5
 
8667
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8668
  (exit $ac_status); } && {
 
8669
         test -z "$ac_c_werror_flag" ||
 
8670
         test ! -s conftest.err
 
8671
       } && test -s conftest$ac_exeext && {
 
8672
         test "$cross_compiling" = yes ||
 
8673
         $as_test_x conftest$ac_exeext
 
8674
       }; then
 
8675
 
 
8676
lt_aix_libpath_sed='
 
8677
    /Import File Strings/,/^$/ {
 
8678
        /^0/ {
 
8679
            s/^0  *\(.*\)$/\1/
 
8680
            p
 
8681
        }
 
8682
    }'
 
8683
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8684
# Check for a 64-bit object if we didn't find anything.
 
8685
if test -z "$aix_libpath"; then
 
8686
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8687
fi
 
8688
else
 
8689
  $as_echo "$as_me: failed program was:" >&5
 
8690
sed 's/^/| /' conftest.$ac_ext >&5
 
8691
 
 
8692
 
 
8693
fi
 
8694
 
 
8695
rm -rf conftest.dSYM
 
8696
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8697
      conftest$ac_exeext conftest.$ac_ext
 
8698
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8699
 
 
8700
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8701
          # Warning - without using the other run time loading flags,
 
8702
          # -berok will link without error, but may produce a broken library.
 
8703
          no_undefined_flag=' ${wl}-bernotok'
 
8704
          allow_undefined_flag=' ${wl}-berok'
 
8705
          # Exported symbols can be pulled into shared objects from archives
 
8706
          whole_archive_flag_spec='$convenience'
 
8707
          archive_cmds_need_lc=yes
 
8708
          # This is similar to how AIX traditionally builds its shared libraries.
 
8709
          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'
 
8710
        fi
 
8711
      fi
 
8712
      ;;
 
8713
 
 
8714
    amigaos*)
 
8715
      case $host_cpu in
 
8716
      powerpc)
 
8717
            # see comment about AmigaOS4 .so support
 
8718
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8719
            archive_expsym_cmds=''
 
8720
        ;;
 
8721
      m68k)
 
8722
            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)'
 
8723
            hardcode_libdir_flag_spec='-L$libdir'
 
8724
            hardcode_minus_L=yes
 
8725
        ;;
 
8726
      esac
 
8727
      ;;
 
8728
 
 
8729
    bsdi[45]*)
 
8730
      export_dynamic_flag_spec=-rdynamic
 
8731
      ;;
 
8732
 
 
8733
    cygwin* | mingw* | pw32* | cegcc*)
 
8734
      # When not using gcc, we currently assume that we are using
 
8735
      # Microsoft Visual C++.
 
8736
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8737
      # no search path for DLLs.
 
8738
      hardcode_libdir_flag_spec=' '
 
8739
      allow_undefined_flag=unsupported
 
8740
      # Tell ltmain to make .lib files, not .a files.
 
8741
      libext=lib
 
8742
      # Tell ltmain to make .dll files, not .so files.
 
8743
      shrext_cmds=".dll"
 
8744
      # FIXME: Setting linknames here is a bad hack.
 
8745
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8746
      # The linker will automatically build a .lib file if we build a DLL.
 
8747
      old_archive_from_new_cmds='true'
 
8748
      # FIXME: Should let the user specify the lib program.
 
8749
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8750
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8751
      enable_shared_with_static_runtimes=yes
 
8752
      ;;
 
8753
 
 
8754
    darwin* | rhapsody*)
 
8755
 
 
8756
 
 
8757
  archive_cmds_need_lc=no
 
8758
  hardcode_direct=no
 
8759
  hardcode_automatic=yes
 
8760
  hardcode_shlibpath_var=unsupported
 
8761
  whole_archive_flag_spec=''
 
8762
  link_all_deplibs=yes
 
8763
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8764
  case $cc_basename in
 
8765
     ifort*) _lt_dar_can_shared=yes ;;
 
8766
     *) _lt_dar_can_shared=$GCC ;;
 
8767
  esac
 
8768
  if test "$_lt_dar_can_shared" = "yes"; then
 
8769
    output_verbose_link_cmd=echo
 
8770
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8771
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8772
    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}"
 
8773
    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}"
 
8774
 
 
8775
  else
 
8776
  ld_shlibs=no
 
8777
  fi
 
8778
 
 
8779
      ;;
 
8780
 
 
8781
    dgux*)
 
8782
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8783
      hardcode_libdir_flag_spec='-L$libdir'
 
8784
      hardcode_shlibpath_var=no
 
8785
      ;;
 
8786
 
 
8787
    freebsd1*)
 
8788
      ld_shlibs=no
 
8789
      ;;
 
8790
 
 
8791
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8792
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8793
    # does not break anything, and helps significantly (at the cost of a little
 
8794
    # extra space).
 
8795
    freebsd2.2*)
 
8796
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8797
      hardcode_libdir_flag_spec='-R$libdir'
 
8798
      hardcode_direct=yes
 
8799
      hardcode_shlibpath_var=no
 
8800
      ;;
 
8801
 
 
8802
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8803
    freebsd2*)
 
8804
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8805
      hardcode_direct=yes
 
8806
      hardcode_minus_L=yes
 
8807
      hardcode_shlibpath_var=no
 
8808
      ;;
 
8809
 
 
8810
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8811
    freebsd* | dragonfly*)
 
8812
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8813
      hardcode_libdir_flag_spec='-R$libdir'
 
8814
      hardcode_direct=yes
 
8815
      hardcode_shlibpath_var=no
 
8816
      ;;
 
8817
 
 
8818
    hpux9*)
 
8819
      if test "$GCC" = yes; then
 
8820
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8821
      else
 
8822
        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'
 
8823
      fi
 
8824
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8825
      hardcode_libdir_separator=:
 
8826
      hardcode_direct=yes
 
8827
 
 
8828
      # hardcode_minus_L: Not really in the search PATH,
 
8829
      # but as the default location of the library.
 
8830
      hardcode_minus_L=yes
 
8831
      export_dynamic_flag_spec='${wl}-E'
 
8832
      ;;
 
8833
 
 
8834
    hpux10*)
 
8835
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8836
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8837
      else
 
8838
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8839
      fi
 
8840
      if test "$with_gnu_ld" = no; then
 
8841
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8842
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
8843
        hardcode_libdir_separator=:
 
8844
        hardcode_direct=yes
 
8845
        hardcode_direct_absolute=yes
 
8846
        export_dynamic_flag_spec='${wl}-E'
 
8847
        # hardcode_minus_L: Not really in the search PATH,
 
8848
        # but as the default location of the library.
 
8849
        hardcode_minus_L=yes
 
8850
      fi
 
8851
      ;;
 
8852
 
 
8853
    hpux11*)
 
8854
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8855
        case $host_cpu in
 
8856
        hppa*64*)
 
8857
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8858
          ;;
 
8859
        ia64*)
 
8860
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8861
          ;;
 
8862
        *)
 
8863
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8864
          ;;
 
8865
        esac
 
8866
      else
 
8867
        case $host_cpu in
 
8868
        hppa*64*)
 
8869
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8870
          ;;
 
8871
        ia64*)
 
8872
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8873
          ;;
 
8874
        *)
 
8875
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8876
          ;;
 
8877
        esac
 
8878
      fi
 
8879
      if test "$with_gnu_ld" = no; then
 
8880
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8881
        hardcode_libdir_separator=:
 
8882
 
 
8883
        case $host_cpu in
 
8884
        hppa*64*|ia64*)
 
8885
          hardcode_direct=no
 
8886
          hardcode_shlibpath_var=no
 
8887
          ;;
 
8888
        *)
 
8889
          hardcode_direct=yes
 
8890
          hardcode_direct_absolute=yes
 
8891
          export_dynamic_flag_spec='${wl}-E'
 
8892
 
 
8893
          # hardcode_minus_L: Not really in the search PATH,
 
8894
          # but as the default location of the library.
 
8895
          hardcode_minus_L=yes
 
8896
          ;;
 
8897
        esac
 
8898
      fi
 
8899
      ;;
 
8900
 
 
8901
    irix5* | irix6* | nonstopux*)
 
8902
      if test "$GCC" = yes; then
 
8903
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8904
        # Try to use the -exported_symbol ld option, if it does not
 
8905
        # work, assume that -exports_file does not work either and
 
8906
        # implicitly export all symbols.
 
8907
        save_LDFLAGS="$LDFLAGS"
 
8908
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
8909
        cat >conftest.$ac_ext <<_ACEOF
 
8910
int foo(void) {}
 
8911
_ACEOF
 
8912
rm -f conftest.$ac_objext conftest$ac_exeext
 
8913
if { (ac_try="$ac_link"
 
8914
case "(($ac_try" in
 
8915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8916
  *) ac_try_echo=$ac_try;;
 
8917
esac
 
8918
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8919
$as_echo "$ac_try_echo") >&5
 
8920
  (eval "$ac_link") 2>conftest.er1
 
8921
  ac_status=$?
 
8922
  grep -v '^ *+' conftest.er1 >conftest.err
 
8923
  rm -f conftest.er1
 
8924
  cat conftest.err >&5
 
8925
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8926
  (exit $ac_status); } && {
 
8927
         test -z "$ac_c_werror_flag" ||
 
8928
         test ! -s conftest.err
 
8929
       } && test -s conftest$ac_exeext && {
 
8930
         test "$cross_compiling" = yes ||
 
8931
         $as_test_x conftest$ac_exeext
 
8932
       }; then
 
8933
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
8934
 
 
8935
else
 
8936
  $as_echo "$as_me: failed program was:" >&5
 
8937
sed 's/^/| /' conftest.$ac_ext >&5
 
8938
 
 
8939
 
 
8940
fi
 
8941
 
 
8942
rm -rf conftest.dSYM
 
8943
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8944
      conftest$ac_exeext conftest.$ac_ext
 
8945
        LDFLAGS="$save_LDFLAGS"
 
8946
      else
 
8947
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8948
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
8949
      fi
 
8950
      archive_cmds_need_lc='no'
 
8951
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8952
      hardcode_libdir_separator=:
 
8953
      inherit_rpath=yes
 
8954
      link_all_deplibs=yes
 
8955
      ;;
 
8956
 
 
8957
    netbsd*)
 
8958
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8959
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8960
      else
 
8961
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8962
      fi
 
8963
      hardcode_libdir_flag_spec='-R$libdir'
 
8964
      hardcode_direct=yes
 
8965
      hardcode_shlibpath_var=no
 
8966
      ;;
 
8967
 
 
8968
    newsos6)
 
8969
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8970
      hardcode_direct=yes
 
8971
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8972
      hardcode_libdir_separator=:
 
8973
      hardcode_shlibpath_var=no
 
8974
      ;;
 
8975
 
 
8976
    *nto* | *qnx*)
 
8977
      ;;
 
8978
 
 
8979
    openbsd*)
 
8980
      if test -f /usr/libexec/ld.so; then
 
8981
        hardcode_direct=yes
 
8982
        hardcode_shlibpath_var=no
 
8983
        hardcode_direct_absolute=yes
 
8984
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8985
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8986
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8987
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8988
          export_dynamic_flag_spec='${wl}-E'
 
8989
        else
 
8990
          case $host_os in
 
8991
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8992
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8993
             hardcode_libdir_flag_spec='-R$libdir'
 
8994
             ;;
 
8995
           *)
 
8996
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8997
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8998
             ;;
 
8999
          esac
 
9000
        fi
 
9001
      else
 
9002
        ld_shlibs=no
 
9003
      fi
 
9004
      ;;
 
9005
 
 
9006
    os2*)
 
9007
      hardcode_libdir_flag_spec='-L$libdir'
 
9008
      hardcode_minus_L=yes
 
9009
      allow_undefined_flag=unsupported
 
9010
      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'
 
9011
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9012
      ;;
 
9013
 
 
9014
    osf3*)
 
9015
      if test "$GCC" = yes; then
 
9016
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9017
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9018
      else
 
9019
        allow_undefined_flag=' -expect_unresolved \*'
 
9020
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9021
      fi
 
9022
      archive_cmds_need_lc='no'
 
9023
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9024
      hardcode_libdir_separator=:
 
9025
      ;;
 
9026
 
 
9027
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9028
      if test "$GCC" = yes; then
 
9029
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9030
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9031
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9032
      else
 
9033
        allow_undefined_flag=' -expect_unresolved \*'
 
9034
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9035
        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~
 
9036
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9037
 
 
9038
        # Both c and cxx compiler support -rpath directly
 
9039
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9040
      fi
 
9041
      archive_cmds_need_lc='no'
 
9042
      hardcode_libdir_separator=:
 
9043
      ;;
 
9044
 
 
9045
    solaris*)
 
9046
      no_undefined_flag=' -z defs'
 
9047
      if test "$GCC" = yes; then
 
9048
        wlarc='${wl}'
 
9049
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9050
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9051
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9052
      else
 
9053
        case `$CC -V 2>&1` in
 
9054
        *"Compilers 5.0"*)
 
9055
          wlarc=''
 
9056
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9057
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9058
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9059
          ;;
 
9060
        *)
 
9061
          wlarc='${wl}'
 
9062
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9063
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9064
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9065
          ;;
 
9066
        esac
 
9067
      fi
 
9068
      hardcode_libdir_flag_spec='-R$libdir'
 
9069
      hardcode_shlibpath_var=no
 
9070
      case $host_os in
 
9071
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9072
      *)
 
9073
        # The compiler driver will combine and reorder linker options,
 
9074
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9075
        # but is careful enough not to reorder.
 
9076
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9077
        if test "$GCC" = yes; then
 
9078
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9079
        else
 
9080
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9081
        fi
 
9082
        ;;
 
9083
      esac
 
9084
      link_all_deplibs=yes
 
9085
      ;;
 
9086
 
 
9087
    sunos4*)
 
9088
      if test "x$host_vendor" = xsequent; then
 
9089
        # Use $CC to link under sequent, because it throws in some extra .o
 
9090
        # files that make .init and .fini sections work.
 
9091
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9092
      else
 
9093
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9094
      fi
 
9095
      hardcode_libdir_flag_spec='-L$libdir'
 
9096
      hardcode_direct=yes
 
9097
      hardcode_minus_L=yes
 
9098
      hardcode_shlibpath_var=no
 
9099
      ;;
 
9100
 
 
9101
    sysv4)
 
9102
      case $host_vendor in
 
9103
        sni)
 
9104
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9105
          hardcode_direct=yes # is this really true???
 
9106
        ;;
 
9107
        siemens)
 
9108
          ## LD is ld it makes a PLAMLIB
 
9109
          ## CC just makes a GrossModule.
 
9110
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9111
          reload_cmds='$CC -r -o $output$reload_objs'
 
9112
          hardcode_direct=no
 
9113
        ;;
 
9114
        motorola)
 
9115
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9116
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9117
        ;;
 
9118
      esac
 
9119
      runpath_var='LD_RUN_PATH'
 
9120
      hardcode_shlibpath_var=no
 
9121
      ;;
 
9122
 
 
9123
    sysv4.3*)
 
9124
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9125
      hardcode_shlibpath_var=no
 
9126
      export_dynamic_flag_spec='-Bexport'
 
9127
      ;;
 
9128
 
 
9129
    sysv4*MP*)
 
9130
      if test -d /usr/nec; then
 
9131
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9132
        hardcode_shlibpath_var=no
 
9133
        runpath_var=LD_RUN_PATH
 
9134
        hardcode_runpath_var=yes
 
9135
        ld_shlibs=yes
 
9136
      fi
 
9137
      ;;
 
9138
 
 
9139
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9140
      no_undefined_flag='${wl}-z,text'
 
9141
      archive_cmds_need_lc=no
 
9142
      hardcode_shlibpath_var=no
 
9143
      runpath_var='LD_RUN_PATH'
 
9144
 
 
9145
      if test "$GCC" = yes; then
 
9146
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9147
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9148
      else
 
9149
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9150
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9151
      fi
 
9152
      ;;
 
9153
 
 
9154
    sysv5* | sco3.2v5* | sco5v6*)
 
9155
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9156
      # link with -lc, and that would cause any symbols used from libc to
 
9157
      # always be unresolved, which means just about no library would
 
9158
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9159
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9160
      # as -z defs.
 
9161
      no_undefined_flag='${wl}-z,text'
 
9162
      allow_undefined_flag='${wl}-z,nodefs'
 
9163
      archive_cmds_need_lc=no
 
9164
      hardcode_shlibpath_var=no
 
9165
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9166
      hardcode_libdir_separator=':'
 
9167
      link_all_deplibs=yes
 
9168
      export_dynamic_flag_spec='${wl}-Bexport'
 
9169
      runpath_var='LD_RUN_PATH'
 
9170
 
 
9171
      if test "$GCC" = yes; then
 
9172
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9173
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9174
      else
 
9175
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9176
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9177
      fi
 
9178
      ;;
 
9179
 
 
9180
    uts4*)
 
9181
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9182
      hardcode_libdir_flag_spec='-L$libdir'
 
9183
      hardcode_shlibpath_var=no
 
9184
      ;;
 
9185
 
 
9186
    *)
 
9187
      ld_shlibs=no
 
9188
      ;;
 
9189
    esac
 
9190
 
 
9191
    if test x$host_vendor = xsni; then
 
9192
      case $host in
 
9193
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9194
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9195
        ;;
 
9196
      esac
 
9197
    fi
 
9198
  fi
 
9199
 
 
9200
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9201
$as_echo "$ld_shlibs" >&6; }
 
9202
test "$ld_shlibs" = no && can_build_shared=no
 
9203
 
 
9204
with_gnu_ld=$with_gnu_ld
 
9205
 
 
9206
 
 
9207
 
 
9208
 
 
9209
 
 
9210
 
 
9211
 
 
9212
 
 
9213
 
 
9214
 
 
9215
 
 
9216
 
 
9217
 
 
9218
 
 
9219
 
 
9220
#
 
9221
# Do we need to explicitly link libc?
 
9222
#
 
9223
case "x$archive_cmds_need_lc" in
 
9224
x|xyes)
 
9225
  # Assume -lc should be added
 
9226
  archive_cmds_need_lc=yes
 
9227
 
 
9228
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9229
    case $archive_cmds in
 
9230
    *'~'*)
 
9231
      # FIXME: we may have to deal with multi-command sequences.
 
9232
      ;;
 
9233
    '$CC '*)
 
9234
      # Test whether the compiler implicitly links with -lc since on some
 
9235
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9236
      # to ld, don't add -lc before -lgcc.
 
9237
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9238
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9239
      $RM conftest*
 
9240
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9241
 
 
9242
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9243
  (eval $ac_compile) 2>&5
 
9244
  ac_status=$?
 
9245
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9246
  (exit $ac_status); } 2>conftest.err; then
 
9247
        soname=conftest
 
9248
        lib=conftest
 
9249
        libobjs=conftest.$ac_objext
 
9250
        deplibs=
 
9251
        wl=$lt_prog_compiler_wl
 
9252
        pic_flag=$lt_prog_compiler_pic
 
9253
        compiler_flags=-v
 
9254
        linker_flags=-v
 
9255
        verstring=
 
9256
        output_objdir=.
 
9257
        libname=conftest
 
9258
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9259
        allow_undefined_flag=
 
9260
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9261
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9262
  ac_status=$?
 
9263
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9264
  (exit $ac_status); }
 
9265
        then
 
9266
          archive_cmds_need_lc=no
 
9267
        else
 
9268
          archive_cmds_need_lc=yes
 
9269
        fi
 
9270
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9271
      else
 
9272
        cat conftest.err 1>&5
 
9273
      fi
 
9274
      $RM conftest*
 
9275
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9276
$as_echo "$archive_cmds_need_lc" >&6; }
 
9277
      ;;
 
9278
    esac
 
9279
  fi
 
9280
  ;;
 
9281
esac
 
9282
 
 
9283
 
 
9284
 
 
9285
 
 
9286
 
 
9287
 
 
9288
 
 
9289
 
 
9290
 
 
9291
 
 
9292
 
 
9293
 
 
9294
 
 
9295
 
 
9296
 
 
9297
 
 
9298
 
 
9299
 
 
9300
 
 
9301
 
 
9302
 
 
9303
 
 
9304
 
 
9305
 
 
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
9311
 
 
9312
 
 
9313
 
 
9314
 
 
9315
 
 
9316
 
 
9317
 
 
9318
 
 
9319
 
 
9320
 
 
9321
 
 
9322
 
 
9323
 
 
9324
 
 
9325
 
 
9326
 
 
9327
 
 
9328
 
 
9329
 
 
9330
 
 
9331
 
 
9332
 
 
9333
 
 
9334
 
 
9335
 
 
9336
 
 
9337
 
 
9338
 
 
9339
 
 
9340
 
 
9341
 
 
9342
 
 
9343
 
 
9344
 
 
9345
 
 
9346
 
 
9347
 
 
9348
 
 
9349
 
 
9350
 
 
9351
 
 
9352
 
 
9353
 
 
9354
 
 
9355
 
 
9356
 
 
9357
 
 
9358
 
 
9359
 
 
9360
 
 
9361
 
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
 
 
9378
 
 
9379
 
 
9380
 
 
9381
 
 
9382
 
 
9383
 
 
9384
 
 
9385
 
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
 
 
9391
 
 
9392
 
 
9393
 
 
9394
 
 
9395
 
 
9396
 
 
9397
 
 
9398
 
 
9399
 
 
9400
 
 
9401
 
 
9402
 
 
9403
 
 
9404
 
 
9405
 
 
9406
 
 
9407
 
 
9408
 
 
9409
 
 
9410
 
 
9411
 
 
9412
 
 
9413
 
 
9414
 
 
9415
 
 
9416
 
 
9417
 
 
9418
 
 
9419
 
 
9420
 
 
9421
 
 
9422
 
 
9423
 
 
9424
 
 
9425
 
 
9426
 
 
9427
 
 
9428
 
 
9429
 
 
9430
 
 
9431
 
 
9432
 
 
9433
 
 
9434
 
 
9435
 
 
9436
 
 
9437
 
 
9438
 
 
9439
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9440
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9441
 
 
9442
if test "$GCC" = yes; then
 
9443
  case $host_os in
 
9444
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9445
    *) lt_awk_arg="/^libraries:/" ;;
 
9446
  esac
 
9447
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9448
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9449
    # if the path contains ";" then we assume it to be the separator
 
9450
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9451
    # assumed that no part of a normal pathname contains ";" but that should
 
9452
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9453
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9454
  else
 
9455
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9456
  fi
 
9457
  # Ok, now we have the path, separated by spaces, we can step through it
 
9458
  # and add multilib dir if necessary.
 
9459
  lt_tmp_lt_search_path_spec=
 
9460
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9461
  for lt_sys_path in $lt_search_path_spec; do
 
9462
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9463
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9464
    else
 
9465
      test -d "$lt_sys_path" && \
 
9466
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9467
    fi
 
9468
  done
 
9469
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9470
BEGIN {RS=" "; FS="/|\n";} {
 
9471
  lt_foo="";
 
9472
  lt_count=0;
 
9473
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9474
    if ($lt_i != "" && $lt_i != ".") {
 
9475
      if ($lt_i == "..") {
 
9476
        lt_count++;
 
9477
      } else {
 
9478
        if (lt_count == 0) {
 
9479
          lt_foo="/" $lt_i lt_foo;
 
9480
        } else {
 
9481
          lt_count--;
 
9482
        }
 
9483
      }
 
9484
    }
 
9485
  }
 
9486
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9487
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9488
}'`
 
9489
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9490
else
 
9491
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9492
fi
 
9493
library_names_spec=
 
9494
libname_spec='lib$name'
 
9495
soname_spec=
 
9496
shrext_cmds=".so"
 
9497
postinstall_cmds=
 
9498
postuninstall_cmds=
 
9499
finish_cmds=
 
9500
finish_eval=
 
9501
shlibpath_var=
 
9502
shlibpath_overrides_runpath=unknown
 
9503
version_type=none
 
9504
dynamic_linker="$host_os ld.so"
 
9505
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9506
need_lib_prefix=unknown
 
9507
hardcode_into_libs=no
 
9508
 
 
9509
# when you set need_version to no, make sure it does not cause -set_version
 
9510
# flags to be left without arguments
 
9511
need_version=unknown
 
9512
 
 
9513
case $host_os in
 
9514
aix3*)
 
9515
  version_type=linux
 
9516
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9517
  shlibpath_var=LIBPATH
 
9518
 
 
9519
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9520
  soname_spec='${libname}${release}${shared_ext}$major'
 
9521
  ;;
 
9522
 
 
9523
aix[4-9]*)
 
9524
  version_type=linux
 
9525
  need_lib_prefix=no
 
9526
  need_version=no
 
9527
  hardcode_into_libs=yes
 
9528
  if test "$host_cpu" = ia64; then
 
9529
    # AIX 5 supports IA64
 
9530
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9531
    shlibpath_var=LD_LIBRARY_PATH
 
9532
  else
 
9533
    # With GCC up to 2.95.x, collect2 would create an import file
 
9534
    # for dependence libraries.  The import file would start with
 
9535
    # the line `#! .'.  This would cause the generated library to
 
9536
    # depend on `.', always an invalid library.  This was fixed in
 
9537
    # development snapshots of GCC prior to 3.0.
 
9538
    case $host_os in
 
9539
      aix4 | aix4.[01] | aix4.[01].*)
 
9540
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9541
           echo ' yes '
 
9542
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9543
        :
 
9544
      else
 
9545
        can_build_shared=no
 
9546
      fi
 
9547
      ;;
 
9548
    esac
 
9549
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9550
    # soname into executable. Probably we can add versioning support to
 
9551
    # collect2, so additional links can be useful in future.
 
9552
    if test "$aix_use_runtimelinking" = yes; then
 
9553
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9554
      # instead of lib<name>.a to let people know that these are not
 
9555
      # typical AIX shared libraries.
 
9556
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9557
    else
 
9558
      # We preserve .a as extension for shared libraries through AIX4.2
 
9559
      # and later when we are not doing run time linking.
 
9560
      library_names_spec='${libname}${release}.a $libname.a'
 
9561
      soname_spec='${libname}${release}${shared_ext}$major'
 
9562
    fi
 
9563
    shlibpath_var=LIBPATH
 
9564
  fi
 
9565
  ;;
 
9566
 
 
9567
amigaos*)
 
9568
  case $host_cpu in
 
9569
  powerpc)
 
9570
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9571
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9572
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9573
    ;;
 
9574
  m68k)
 
9575
    library_names_spec='$libname.ixlibrary $libname.a'
 
9576
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9577
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
 
9578
    ;;
 
9579
  esac
 
9580
  ;;
 
9581
 
 
9582
beos*)
 
9583
  library_names_spec='${libname}${shared_ext}'
 
9584
  dynamic_linker="$host_os ld.so"
 
9585
  shlibpath_var=LIBRARY_PATH
 
9586
  ;;
 
9587
 
 
9588
bsdi[45]*)
 
9589
  version_type=linux
 
9590
  need_version=no
 
9591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9592
  soname_spec='${libname}${release}${shared_ext}$major'
 
9593
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9594
  shlibpath_var=LD_LIBRARY_PATH
 
9595
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9596
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9597
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9598
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9599
  # libtool to hard-code these into programs
 
9600
  ;;
 
9601
 
 
9602
cygwin* | mingw* | pw32* | cegcc*)
 
9603
  version_type=windows
 
9604
  shrext_cmds=".dll"
 
9605
  need_version=no
 
9606
  need_lib_prefix=no
 
9607
 
 
9608
  case $GCC,$host_os in
 
9609
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9610
    library_names_spec='$libname.dll.a'
 
9611
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9612
    postinstall_cmds='base_file=`basename \${file}`~
 
9613
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9614
      dldir=$destdir/`dirname \$dlpath`~
 
9615
      test -d \$dldir || mkdir -p \$dldir~
 
9616
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9617
      chmod a+x \$dldir/$dlname~
 
9618
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9619
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9620
      fi'
 
9621
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9622
      dlpath=$dir/\$dldll~
 
9623
       $RM \$dlpath'
 
9624
    shlibpath_overrides_runpath=yes
 
9625
 
 
9626
    case $host_os in
 
9627
    cygwin*)
 
9628
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9629
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9630
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9631
      ;;
 
9632
    mingw* | cegcc*)
 
9633
      # MinGW DLLs use traditional 'lib' prefix
 
9634
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9635
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9636
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9637
        # It is most probably a Windows format PATH printed by
 
9638
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9639
        # path with ; separators, and with drive letters. We can handle the
 
9640
        # drive letters (cygwin fileutils understands them), so leave them,
 
9641
        # especially as we might pass files found there to a mingw objdump,
 
9642
        # which wouldn't understand a cygwinified path. Ahh.
 
9643
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9644
      else
 
9645
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9646
      fi
 
9647
      ;;
 
9648
    pw32*)
 
9649
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9650
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9651
      ;;
 
9652
    esac
 
9653
    ;;
 
9654
 
 
9655
  *)
 
9656
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9657
    ;;
 
9658
  esac
 
9659
  dynamic_linker='Win32 ld.exe'
 
9660
  # FIXME: first we should search . and the directory the executable is in
 
9661
  shlibpath_var=PATH
 
9662
  ;;
 
9663
 
 
9664
darwin* | rhapsody*)
 
9665
  dynamic_linker="$host_os dyld"
 
9666
  version_type=darwin
 
9667
  need_lib_prefix=no
 
9668
  need_version=no
 
9669
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9670
  soname_spec='${libname}${release}${major}$shared_ext'
 
9671
  shlibpath_overrides_runpath=yes
 
9672
  shlibpath_var=DYLD_LIBRARY_PATH
 
9673
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9674
 
 
9675
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9676
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9677
  ;;
 
9678
 
 
9679
dgux*)
 
9680
  version_type=linux
 
9681
  need_lib_prefix=no
 
9682
  need_version=no
 
9683
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9684
  soname_spec='${libname}${release}${shared_ext}$major'
 
9685
  shlibpath_var=LD_LIBRARY_PATH
 
9686
  ;;
 
9687
 
 
9688
freebsd1*)
 
9689
  dynamic_linker=no
 
9690
  ;;
 
9691
 
 
9692
freebsd* | dragonfly*)
 
9693
  # DragonFly does not have aout.  When/if they implement a new
 
9694
  # versioning mechanism, adjust this.
 
9695
  if test -x /usr/bin/objformat; then
 
9696
    objformat=`/usr/bin/objformat`
 
9697
  else
 
9698
    case $host_os in
 
9699
    freebsd[123]*) objformat=aout ;;
 
9700
    *) objformat=elf ;;
 
9701
    esac
 
9702
  fi
 
9703
  version_type=freebsd-$objformat
 
9704
  case $version_type in
 
9705
    freebsd-elf*)
 
9706
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9707
      need_version=no
 
9708
      need_lib_prefix=no
 
9709
      ;;
 
9710
    freebsd-*)
 
9711
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9712
      need_version=yes
 
9713
      ;;
 
9714
  esac
 
9715
  shlibpath_var=LD_LIBRARY_PATH
 
9716
  case $host_os in
 
9717
  freebsd2*)
 
9718
    shlibpath_overrides_runpath=yes
 
9719
    ;;
 
9720
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9721
    shlibpath_overrides_runpath=yes
 
9722
    hardcode_into_libs=yes
 
9723
    ;;
 
9724
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9725
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9726
    shlibpath_overrides_runpath=no
 
9727
    hardcode_into_libs=yes
 
9728
    ;;
 
9729
  *) # from 4.6 on, and DragonFly
 
9730
    shlibpath_overrides_runpath=yes
 
9731
    hardcode_into_libs=yes
 
9732
    ;;
 
9733
  esac
 
9734
  ;;
 
9735
 
 
9736
gnu*)
 
9737
  version_type=linux
 
9738
  need_lib_prefix=no
 
9739
  need_version=no
 
9740
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9741
  soname_spec='${libname}${release}${shared_ext}$major'
 
9742
  shlibpath_var=LD_LIBRARY_PATH
 
9743
  hardcode_into_libs=yes
 
9744
  ;;
 
9745
 
 
9746
hpux9* | hpux10* | hpux11*)
 
9747
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9748
  # link against other versions.
 
9749
  version_type=sunos
 
9750
  need_lib_prefix=no
 
9751
  need_version=no
 
9752
  case $host_cpu in
 
9753
  ia64*)
 
9754
    shrext_cmds='.so'
 
9755
    hardcode_into_libs=yes
 
9756
    dynamic_linker="$host_os dld.so"
 
9757
    shlibpath_var=LD_LIBRARY_PATH
 
9758
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9759
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9760
    soname_spec='${libname}${release}${shared_ext}$major'
 
9761
    if test "X$HPUX_IA64_MODE" = X32; then
 
9762
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9763
    else
 
9764
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9765
    fi
 
9766
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9767
    ;;
 
9768
  hppa*64*)
 
9769
    shrext_cmds='.sl'
 
9770
    hardcode_into_libs=yes
 
9771
    dynamic_linker="$host_os dld.sl"
 
9772
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9773
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9774
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9775
    soname_spec='${libname}${release}${shared_ext}$major'
 
9776
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9777
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9778
    ;;
 
9779
  *)
 
9780
    shrext_cmds='.sl'
 
9781
    dynamic_linker="$host_os dld.sl"
 
9782
    shlibpath_var=SHLIB_PATH
 
9783
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9784
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9785
    soname_spec='${libname}${release}${shared_ext}$major'
 
9786
    ;;
 
9787
  esac
 
9788
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9789
  postinstall_cmds='chmod 555 $lib'
 
9790
  ;;
 
9791
 
 
9792
interix[3-9]*)
 
9793
  version_type=linux
 
9794
  need_lib_prefix=no
 
9795
  need_version=no
 
9796
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9797
  soname_spec='${libname}${release}${shared_ext}$major'
 
9798
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9799
  shlibpath_var=LD_LIBRARY_PATH
 
9800
  shlibpath_overrides_runpath=no
 
9801
  hardcode_into_libs=yes
 
9802
  ;;
 
9803
 
 
9804
irix5* | irix6* | nonstopux*)
 
9805
  case $host_os in
 
9806
    nonstopux*) version_type=nonstopux ;;
 
9807
    *)
 
9808
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9809
                version_type=linux
 
9810
        else
 
9811
                version_type=irix
 
9812
        fi ;;
 
9813
  esac
 
9814
  need_lib_prefix=no
 
9815
  need_version=no
 
9816
  soname_spec='${libname}${release}${shared_ext}$major'
 
9817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9818
  case $host_os in
 
9819
  irix5* | nonstopux*)
 
9820
    libsuff= shlibsuff=
 
9821
    ;;
 
9822
  *)
 
9823
    case $LD in # libtool.m4 will add one of these switches to LD
 
9824
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9825
      libsuff= shlibsuff= libmagic=32-bit;;
 
9826
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9827
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9828
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9829
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9830
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9831
    esac
 
9832
    ;;
 
9833
  esac
 
9834
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9835
  shlibpath_overrides_runpath=no
 
9836
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9837
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9838
  hardcode_into_libs=yes
 
9839
  ;;
 
9840
 
 
9841
# No shared lib support for Linux oldld, aout, or coff.
 
9842
linux*oldld* | linux*aout* | linux*coff*)
 
9843
  dynamic_linker=no
 
9844
  ;;
 
9845
 
 
9846
# This must be Linux ELF.
 
9847
linux* | k*bsd*-gnu)
 
9848
  version_type=linux
 
9849
  need_lib_prefix=no
 
9850
  need_version=no
 
9851
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9852
  soname_spec='${libname}${release}${shared_ext}$major'
 
9853
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9854
  shlibpath_var=LD_LIBRARY_PATH
 
9855
  shlibpath_overrides_runpath=no
 
9856
  # Some binutils ld are patched to set DT_RUNPATH
 
9857
  save_LDFLAGS=$LDFLAGS
 
9858
  save_libdir=$libdir
 
9859
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
9860
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
9861
  cat >conftest.$ac_ext <<_ACEOF
 
9862
/* confdefs.h.  */
 
9863
_ACEOF
 
9864
cat confdefs.h >>conftest.$ac_ext
 
9865
cat >>conftest.$ac_ext <<_ACEOF
 
9866
/* end confdefs.h.  */
 
9867
 
 
9868
int
 
9869
main ()
 
9870
{
 
9871
 
 
9872
  ;
 
9873
  return 0;
 
9874
}
 
9875
_ACEOF
 
9876
rm -f conftest.$ac_objext conftest$ac_exeext
 
9877
if { (ac_try="$ac_link"
 
9878
case "(($ac_try" in
 
9879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9880
  *) ac_try_echo=$ac_try;;
 
9881
esac
 
9882
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9883
$as_echo "$ac_try_echo") >&5
 
9884
  (eval "$ac_link") 2>conftest.er1
 
9885
  ac_status=$?
 
9886
  grep -v '^ *+' conftest.er1 >conftest.err
 
9887
  rm -f conftest.er1
 
9888
  cat conftest.err >&5
 
9889
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9890
  (exit $ac_status); } && {
 
9891
         test -z "$ac_c_werror_flag" ||
 
9892
         test ! -s conftest.err
 
9893
       } && test -s conftest$ac_exeext && {
 
9894
         test "$cross_compiling" = yes ||
 
9895
         $as_test_x conftest$ac_exeext
 
9896
       }; then
 
9897
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
9898
  shlibpath_overrides_runpath=yes
 
9899
fi
 
9900
 
 
9901
else
 
9902
  $as_echo "$as_me: failed program was:" >&5
 
9903
sed 's/^/| /' conftest.$ac_ext >&5
 
9904
 
 
9905
 
 
9906
fi
 
9907
 
 
9908
rm -rf conftest.dSYM
 
9909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9910
      conftest$ac_exeext conftest.$ac_ext
 
9911
  LDFLAGS=$save_LDFLAGS
 
9912
  libdir=$save_libdir
 
9913
 
 
9914
  # This implies no fast_install, which is unacceptable.
 
9915
  # Some rework will be needed to allow for fast_install
 
9916
  # before this can be enabled.
 
9917
  hardcode_into_libs=yes
 
9918
 
 
9919
  # Add ABI-specific directories to the system library path.
 
9920
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
9921
 
 
9922
  # Append ld.so.conf contents to the search path
 
9923
  if test -f /etc/ld.so.conf; then
 
9924
    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;/^$/d' | tr '\n' ' '`
 
9925
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9926
  fi
 
9927
 
 
9928
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9929
  # powerpc, because MkLinux only supported shared libraries with the
 
9930
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9931
  # most powerpc-linux boxes support dynamic linking these days and
 
9932
  # people can always --disable-shared, the test was removed, and we
 
9933
  # assume the GNU/Linux dynamic linker is in use.
 
9934
  dynamic_linker='GNU/Linux ld.so'
 
9935
  ;;
 
9936
 
 
9937
netbsd*)
 
9938
  version_type=sunos
 
9939
  need_lib_prefix=no
 
9940
  need_version=no
 
9941
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9942
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9943
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9944
    dynamic_linker='NetBSD (a.out) ld.so'
 
9945
  else
 
9946
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9947
    soname_spec='${libname}${release}${shared_ext}$major'
 
9948
    dynamic_linker='NetBSD ld.elf_so'
 
9949
  fi
 
9950
  shlibpath_var=LD_LIBRARY_PATH
 
9951
  shlibpath_overrides_runpath=yes
 
9952
  hardcode_into_libs=yes
 
9953
  ;;
 
9954
 
 
9955
newsos6)
 
9956
  version_type=linux
 
9957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9958
  shlibpath_var=LD_LIBRARY_PATH
 
9959
  shlibpath_overrides_runpath=yes
 
9960
  ;;
 
9961
 
 
9962
*nto* | *qnx*)
 
9963
  version_type=qnx
 
9964
  need_lib_prefix=no
 
9965
  need_version=no
 
9966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9967
  soname_spec='${libname}${release}${shared_ext}$major'
 
9968
  shlibpath_var=LD_LIBRARY_PATH
 
9969
  shlibpath_overrides_runpath=no
 
9970
  hardcode_into_libs=yes
 
9971
  dynamic_linker='ldqnx.so'
 
9972
  ;;
 
9973
 
 
9974
openbsd*)
 
9975
  version_type=sunos
 
9976
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9977
  need_lib_prefix=no
 
9978
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9979
  case $host_os in
 
9980
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
9981
    *)                          need_version=no  ;;
 
9982
  esac
 
9983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9984
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9985
  shlibpath_var=LD_LIBRARY_PATH
 
9986
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9987
    case $host_os in
 
9988
      openbsd2.[89] | openbsd2.[89].*)
 
9989
        shlibpath_overrides_runpath=no
 
9990
        ;;
 
9991
      *)
 
9992
        shlibpath_overrides_runpath=yes
 
9993
        ;;
 
9994
      esac
 
9995
  else
 
9996
    shlibpath_overrides_runpath=yes
 
9997
  fi
 
9998
  ;;
 
9999
 
 
10000
os2*)
 
10001
  libname_spec='$name'
 
10002
  shrext_cmds=".dll"
 
10003
  need_lib_prefix=no
 
10004
  library_names_spec='$libname${shared_ext} $libname.a'
 
10005
  dynamic_linker='OS/2 ld.exe'
 
10006
  shlibpath_var=LIBPATH
 
10007
  ;;
 
10008
 
 
10009
osf3* | osf4* | osf5*)
 
10010
  version_type=osf
 
10011
  need_lib_prefix=no
 
10012
  need_version=no
 
10013
  soname_spec='${libname}${release}${shared_ext}$major'
 
10014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10015
  shlibpath_var=LD_LIBRARY_PATH
 
10016
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10017
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10018
  ;;
 
10019
 
 
10020
rdos*)
 
10021
  dynamic_linker=no
 
10022
  ;;
 
10023
 
 
10024
solaris*)
 
10025
  version_type=linux
 
10026
  need_lib_prefix=no
 
10027
  need_version=no
 
10028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10029
  soname_spec='${libname}${release}${shared_ext}$major'
 
10030
  shlibpath_var=LD_LIBRARY_PATH
 
10031
  shlibpath_overrides_runpath=yes
 
10032
  hardcode_into_libs=yes
 
10033
  # ldd complains unless libraries are executable
 
10034
  postinstall_cmds='chmod +x $lib'
 
10035
  ;;
 
10036
 
 
10037
sunos4*)
 
10038
  version_type=sunos
 
10039
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10040
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10041
  shlibpath_var=LD_LIBRARY_PATH
 
10042
  shlibpath_overrides_runpath=yes
 
10043
  if test "$with_gnu_ld" = yes; then
 
10044
    need_lib_prefix=no
 
10045
  fi
 
10046
  need_version=yes
 
10047
  ;;
 
10048
 
 
10049
sysv4 | sysv4.3*)
 
10050
  version_type=linux
 
10051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10052
  soname_spec='${libname}${release}${shared_ext}$major'
 
10053
  shlibpath_var=LD_LIBRARY_PATH
 
10054
  case $host_vendor in
 
10055
    sni)
 
10056
      shlibpath_overrides_runpath=no
 
10057
      need_lib_prefix=no
 
10058
      runpath_var=LD_RUN_PATH
 
10059
      ;;
 
10060
    siemens)
 
10061
      need_lib_prefix=no
 
10062
      ;;
 
10063
    motorola)
 
10064
      need_lib_prefix=no
 
10065
      need_version=no
 
10066
      shlibpath_overrides_runpath=no
 
10067
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10068
      ;;
 
10069
  esac
 
10070
  ;;
 
10071
 
 
10072
sysv4*MP*)
 
10073
  if test -d /usr/nec ;then
 
10074
    version_type=linux
 
10075
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10076
    soname_spec='$libname${shared_ext}.$major'
 
10077
    shlibpath_var=LD_LIBRARY_PATH
 
10078
  fi
 
10079
  ;;
 
10080
 
 
10081
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10082
  version_type=freebsd-elf
 
10083
  need_lib_prefix=no
 
10084
  need_version=no
 
10085
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10086
  soname_spec='${libname}${release}${shared_ext}$major'
 
10087
  shlibpath_var=LD_LIBRARY_PATH
 
10088
  shlibpath_overrides_runpath=yes
 
10089
  hardcode_into_libs=yes
 
10090
  if test "$with_gnu_ld" = yes; then
 
10091
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10092
  else
 
10093
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10094
    case $host_os in
 
10095
      sco3.2v5*)
 
10096
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10097
        ;;
 
10098
    esac
 
10099
  fi
 
10100
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10101
  ;;
 
10102
 
 
10103
tpf*)
 
10104
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10105
  version_type=linux
 
10106
  need_lib_prefix=no
 
10107
  need_version=no
 
10108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10109
  shlibpath_var=LD_LIBRARY_PATH
 
10110
  shlibpath_overrides_runpath=no
 
10111
  hardcode_into_libs=yes
 
10112
  ;;
 
10113
 
 
10114
uts4*)
 
10115
  version_type=linux
 
10116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10117
  soname_spec='${libname}${release}${shared_ext}$major'
 
10118
  shlibpath_var=LD_LIBRARY_PATH
 
10119
  ;;
 
10120
 
 
10121
*)
 
10122
  dynamic_linker=no
 
10123
  ;;
 
10124
esac
 
10125
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10126
$as_echo "$dynamic_linker" >&6; }
 
10127
test "$dynamic_linker" = no && can_build_shared=no
 
10128
 
 
10129
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10130
if test "$GCC" = yes; then
 
10131
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10132
fi
 
10133
 
 
10134
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10135
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10136
fi
 
10137
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10138
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10139
fi
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
 
 
10145
 
 
10146
 
 
10147
 
 
10148
 
 
10149
 
 
10150
 
 
10151
 
 
10152
 
 
10153
 
 
10154
 
 
10155
 
 
10156
 
 
10157
 
 
10158
 
 
10159
 
 
10160
 
 
10161
 
 
10162
 
 
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
 
10169
 
 
10170
 
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
 
 
10185
 
 
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
 
10192
 
 
10193
 
 
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
 
10207
 
 
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
 
 
10214
 
 
10215
 
 
10216
 
 
10217
 
 
10218
 
 
10219
 
 
10220
 
 
10221
 
 
10222
 
 
10223
 
 
10224
 
 
10225
 
 
10226
 
 
10227
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10228
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10229
hardcode_action=
 
10230
if test -n "$hardcode_libdir_flag_spec" ||
 
10231
   test -n "$runpath_var" ||
 
10232
   test "X$hardcode_automatic" = "Xyes" ; then
 
10233
 
 
10234
  # We can hardcode non-existent directories.
 
10235
  if test "$hardcode_direct" != no &&
 
10236
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10237
     # have to relink, otherwise we might link with an installed library
 
10238
     # when we should be linking with a yet-to-be-installed one
 
10239
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10240
     test "$hardcode_minus_L" != no; then
 
10241
    # Linking always hardcodes the temporary library directory.
 
10242
    hardcode_action=relink
 
10243
  else
 
10244
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10245
    hardcode_action=immediate
 
10246
  fi
 
10247
else
 
10248
  # We cannot hardcode anything, or else we can only hardcode existing
 
10249
  # directories.
 
10250
  hardcode_action=unsupported
 
10251
fi
 
10252
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10253
$as_echo "$hardcode_action" >&6; }
 
10254
 
 
10255
if test "$hardcode_action" = relink ||
 
10256
   test "$inherit_rpath" = yes; then
 
10257
  # Fast installation is not supported
 
10258
  enable_fast_install=no
 
10259
elif test "$shlibpath_overrides_runpath" = yes ||
 
10260
     test "$enable_shared" = no; then
 
10261
  # Fast installation is not necessary
 
10262
  enable_fast_install=needless
 
10263
fi
 
10264
 
 
10265
 
 
10266
 
 
10267
 
 
10268
 
 
10269
 
 
10270
  if test "x$enable_dlopen" != xyes; then
 
10271
  enable_dlopen=unknown
 
10272
  enable_dlopen_self=unknown
 
10273
  enable_dlopen_self_static=unknown
 
10274
else
 
10275
  lt_cv_dlopen=no
 
10276
  lt_cv_dlopen_libs=
 
10277
 
 
10278
  case $host_os in
 
10279
  beos*)
 
10280
    lt_cv_dlopen="load_add_on"
 
10281
    lt_cv_dlopen_libs=
 
10282
    lt_cv_dlopen_self=yes
 
10283
    ;;
 
10284
 
 
10285
  mingw* | pw32* | cegcc*)
 
10286
    lt_cv_dlopen="LoadLibrary"
 
10287
    lt_cv_dlopen_libs=
 
10288
    ;;
 
10289
 
 
10290
  cygwin*)
 
10291
    lt_cv_dlopen="dlopen"
 
10292
    lt_cv_dlopen_libs=
 
10293
    ;;
 
10294
 
 
10295
  darwin*)
 
10296
  # if libdl is installed we need to link against it
 
10297
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10298
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10299
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10300
  $as_echo_n "(cached) " >&6
 
10301
else
 
10302
  ac_check_lib_save_LIBS=$LIBS
 
10303
LIBS="-ldl  $LIBS"
 
10304
cat >conftest.$ac_ext <<_ACEOF
 
10305
/* confdefs.h.  */
 
10306
_ACEOF
 
10307
cat confdefs.h >>conftest.$ac_ext
 
10308
cat >>conftest.$ac_ext <<_ACEOF
 
10309
/* end confdefs.h.  */
 
10310
 
 
10311
/* Override any GCC internal prototype to avoid an error.
 
10312
   Use char because int might match the return type of a GCC
 
10313
   builtin and then its argument prototype would still apply.  */
 
10314
#ifdef __cplusplus
 
10315
extern "C"
 
10316
#endif
 
10317
char dlopen ();
 
10318
int
 
10319
main ()
 
10320
{
 
10321
return dlopen ();
 
10322
  ;
 
10323
  return 0;
 
10324
}
 
10325
_ACEOF
 
10326
rm -f conftest.$ac_objext conftest$ac_exeext
 
10327
if { (ac_try="$ac_link"
 
10328
case "(($ac_try" in
 
10329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10330
  *) ac_try_echo=$ac_try;;
 
10331
esac
 
10332
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10333
$as_echo "$ac_try_echo") >&5
 
10334
  (eval "$ac_link") 2>conftest.er1
 
10335
  ac_status=$?
 
10336
  grep -v '^ *+' conftest.er1 >conftest.err
 
10337
  rm -f conftest.er1
 
10338
  cat conftest.err >&5
 
10339
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10340
  (exit $ac_status); } && {
 
10341
         test -z "$ac_c_werror_flag" ||
 
10342
         test ! -s conftest.err
 
10343
       } && test -s conftest$ac_exeext && {
 
10344
         test "$cross_compiling" = yes ||
 
10345
         $as_test_x conftest$ac_exeext
 
10346
       }; then
 
10347
  ac_cv_lib_dl_dlopen=yes
 
10348
else
 
10349
  $as_echo "$as_me: failed program was:" >&5
 
10350
sed 's/^/| /' conftest.$ac_ext >&5
 
10351
 
 
10352
        ac_cv_lib_dl_dlopen=no
 
10353
fi
 
10354
 
 
10355
rm -rf conftest.dSYM
 
10356
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10357
      conftest$ac_exeext conftest.$ac_ext
 
10358
LIBS=$ac_check_lib_save_LIBS
 
10359
fi
 
10360
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10361
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10362
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10363
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10364
else
 
10365
 
 
10366
    lt_cv_dlopen="dyld"
 
10367
    lt_cv_dlopen_libs=
 
10368
    lt_cv_dlopen_self=yes
 
10369
 
 
10370
fi
 
10371
 
 
10372
    ;;
 
10373
 
 
10374
  *)
 
10375
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
10376
$as_echo_n "checking for shl_load... " >&6; }
 
10377
if test "${ac_cv_func_shl_load+set}" = set; then
 
10378
  $as_echo_n "(cached) " >&6
 
10379
else
 
10380
  cat >conftest.$ac_ext <<_ACEOF
 
10381
/* confdefs.h.  */
 
10382
_ACEOF
 
10383
cat confdefs.h >>conftest.$ac_ext
 
10384
cat >>conftest.$ac_ext <<_ACEOF
 
10385
/* end confdefs.h.  */
 
10386
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10387
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10388
#define shl_load innocuous_shl_load
 
10389
 
 
10390
/* System header to define __stub macros and hopefully few prototypes,
 
10391
    which can conflict with char shl_load (); below.
 
10392
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10393
    <limits.h> exists even on freestanding compilers.  */
 
10394
 
 
10395
#ifdef __STDC__
 
10396
# include <limits.h>
 
10397
#else
 
10398
# include <assert.h>
 
10399
#endif
 
10400
 
 
10401
#undef shl_load
 
10402
 
 
10403
/* Override any GCC internal prototype to avoid an error.
 
10404
   Use char because int might match the return type of a GCC
 
10405
   builtin and then its argument prototype would still apply.  */
 
10406
#ifdef __cplusplus
 
10407
extern "C"
 
10408
#endif
 
10409
char shl_load ();
 
10410
/* The GNU C library defines this for functions which it implements
 
10411
    to always fail with ENOSYS.  Some functions are actually named
 
10412
    something starting with __ and the normal name is an alias.  */
 
10413
#if defined __stub_shl_load || defined __stub___shl_load
 
10414
choke me
 
10415
#endif
 
10416
 
 
10417
int
 
10418
main ()
 
10419
{
 
10420
return shl_load ();
 
10421
  ;
 
10422
  return 0;
 
10423
}
 
10424
_ACEOF
 
10425
rm -f conftest.$ac_objext conftest$ac_exeext
 
10426
if { (ac_try="$ac_link"
 
10427
case "(($ac_try" in
 
10428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10429
  *) ac_try_echo=$ac_try;;
 
10430
esac
 
10431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10432
$as_echo "$ac_try_echo") >&5
 
10433
  (eval "$ac_link") 2>conftest.er1
 
10434
  ac_status=$?
 
10435
  grep -v '^ *+' conftest.er1 >conftest.err
 
10436
  rm -f conftest.er1
 
10437
  cat conftest.err >&5
 
10438
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10439
  (exit $ac_status); } && {
 
10440
         test -z "$ac_c_werror_flag" ||
 
10441
         test ! -s conftest.err
 
10442
       } && test -s conftest$ac_exeext && {
 
10443
         test "$cross_compiling" = yes ||
 
10444
         $as_test_x conftest$ac_exeext
 
10445
       }; then
 
10446
  ac_cv_func_shl_load=yes
 
10447
else
 
10448
  $as_echo "$as_me: failed program was:" >&5
 
10449
sed 's/^/| /' conftest.$ac_ext >&5
 
10450
 
 
10451
        ac_cv_func_shl_load=no
 
10452
fi
 
10453
 
 
10454
rm -rf conftest.dSYM
 
10455
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10456
      conftest$ac_exeext conftest.$ac_ext
 
10457
fi
 
10458
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10459
$as_echo "$ac_cv_func_shl_load" >&6; }
 
10460
if test "x$ac_cv_func_shl_load" = x""yes; then
 
10461
  lt_cv_dlopen="shl_load"
 
10462
else
 
10463
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10464
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10465
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10466
  $as_echo_n "(cached) " >&6
 
10467
else
 
10468
  ac_check_lib_save_LIBS=$LIBS
 
10469
LIBS="-ldld  $LIBS"
 
10470
cat >conftest.$ac_ext <<_ACEOF
 
10471
/* confdefs.h.  */
 
10472
_ACEOF
 
10473
cat confdefs.h >>conftest.$ac_ext
 
10474
cat >>conftest.$ac_ext <<_ACEOF
 
10475
/* end confdefs.h.  */
 
10476
 
 
10477
/* Override any GCC internal prototype to avoid an error.
 
10478
   Use char because int might match the return type of a GCC
 
10479
   builtin and then its argument prototype would still apply.  */
 
10480
#ifdef __cplusplus
 
10481
extern "C"
 
10482
#endif
 
10483
char shl_load ();
 
10484
int
 
10485
main ()
 
10486
{
 
10487
return shl_load ();
 
10488
  ;
 
10489
  return 0;
 
10490
}
 
10491
_ACEOF
 
10492
rm -f conftest.$ac_objext conftest$ac_exeext
 
10493
if { (ac_try="$ac_link"
 
10494
case "(($ac_try" in
 
10495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10496
  *) ac_try_echo=$ac_try;;
 
10497
esac
 
10498
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10499
$as_echo "$ac_try_echo") >&5
 
10500
  (eval "$ac_link") 2>conftest.er1
 
10501
  ac_status=$?
 
10502
  grep -v '^ *+' conftest.er1 >conftest.err
 
10503
  rm -f conftest.er1
 
10504
  cat conftest.err >&5
 
10505
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10506
  (exit $ac_status); } && {
 
10507
         test -z "$ac_c_werror_flag" ||
 
10508
         test ! -s conftest.err
 
10509
       } && test -s conftest$ac_exeext && {
 
10510
         test "$cross_compiling" = yes ||
 
10511
         $as_test_x conftest$ac_exeext
 
10512
       }; then
 
10513
  ac_cv_lib_dld_shl_load=yes
 
10514
else
 
10515
  $as_echo "$as_me: failed program was:" >&5
 
10516
sed 's/^/| /' conftest.$ac_ext >&5
 
10517
 
 
10518
        ac_cv_lib_dld_shl_load=no
 
10519
fi
 
10520
 
 
10521
rm -rf conftest.dSYM
 
10522
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10523
      conftest$ac_exeext conftest.$ac_ext
 
10524
LIBS=$ac_check_lib_save_LIBS
 
10525
fi
 
10526
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10527
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10528
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10529
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10530
else
 
10531
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10532
$as_echo_n "checking for dlopen... " >&6; }
 
10533
if test "${ac_cv_func_dlopen+set}" = set; then
 
10534
  $as_echo_n "(cached) " >&6
 
10535
else
 
10536
  cat >conftest.$ac_ext <<_ACEOF
 
10537
/* confdefs.h.  */
 
10538
_ACEOF
 
10539
cat confdefs.h >>conftest.$ac_ext
 
10540
cat >>conftest.$ac_ext <<_ACEOF
 
10541
/* end confdefs.h.  */
 
10542
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10543
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10544
#define dlopen innocuous_dlopen
 
10545
 
 
10546
/* System header to define __stub macros and hopefully few prototypes,
 
10547
    which can conflict with char dlopen (); below.
 
10548
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10549
    <limits.h> exists even on freestanding compilers.  */
 
10550
 
 
10551
#ifdef __STDC__
 
10552
# include <limits.h>
 
10553
#else
 
10554
# include <assert.h>
 
10555
#endif
 
10556
 
 
10557
#undef dlopen
 
10558
 
 
10559
/* Override any GCC internal prototype to avoid an error.
 
10560
   Use char because int might match the return type of a GCC
 
10561
   builtin and then its argument prototype would still apply.  */
 
10562
#ifdef __cplusplus
 
10563
extern "C"
 
10564
#endif
 
10565
char dlopen ();
 
10566
/* The GNU C library defines this for functions which it implements
 
10567
    to always fail with ENOSYS.  Some functions are actually named
 
10568
    something starting with __ and the normal name is an alias.  */
 
10569
#if defined __stub_dlopen || defined __stub___dlopen
 
10570
choke me
 
10571
#endif
 
10572
 
 
10573
int
 
10574
main ()
 
10575
{
 
10576
return dlopen ();
 
10577
  ;
 
10578
  return 0;
 
10579
}
 
10580
_ACEOF
 
10581
rm -f conftest.$ac_objext conftest$ac_exeext
 
10582
if { (ac_try="$ac_link"
 
10583
case "(($ac_try" in
 
10584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10585
  *) ac_try_echo=$ac_try;;
 
10586
esac
 
10587
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10588
$as_echo "$ac_try_echo") >&5
 
10589
  (eval "$ac_link") 2>conftest.er1
 
10590
  ac_status=$?
 
10591
  grep -v '^ *+' conftest.er1 >conftest.err
 
10592
  rm -f conftest.er1
 
10593
  cat conftest.err >&5
 
10594
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10595
  (exit $ac_status); } && {
 
10596
         test -z "$ac_c_werror_flag" ||
 
10597
         test ! -s conftest.err
 
10598
       } && test -s conftest$ac_exeext && {
 
10599
         test "$cross_compiling" = yes ||
 
10600
         $as_test_x conftest$ac_exeext
 
10601
       }; then
 
10602
  ac_cv_func_dlopen=yes
 
10603
else
 
10604
  $as_echo "$as_me: failed program was:" >&5
 
10605
sed 's/^/| /' conftest.$ac_ext >&5
 
10606
 
 
10607
        ac_cv_func_dlopen=no
 
10608
fi
 
10609
 
 
10610
rm -rf conftest.dSYM
 
10611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10612
      conftest$ac_exeext conftest.$ac_ext
 
10613
fi
 
10614
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10615
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10616
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10617
  lt_cv_dlopen="dlopen"
 
10618
else
 
10619
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10620
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10621
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10622
  $as_echo_n "(cached) " >&6
 
10623
else
 
10624
  ac_check_lib_save_LIBS=$LIBS
 
10625
LIBS="-ldl  $LIBS"
 
10626
cat >conftest.$ac_ext <<_ACEOF
 
10627
/* confdefs.h.  */
 
10628
_ACEOF
 
10629
cat confdefs.h >>conftest.$ac_ext
 
10630
cat >>conftest.$ac_ext <<_ACEOF
 
10631
/* end confdefs.h.  */
 
10632
 
 
10633
/* Override any GCC internal prototype to avoid an error.
 
10634
   Use char because int might match the return type of a GCC
 
10635
   builtin and then its argument prototype would still apply.  */
 
10636
#ifdef __cplusplus
 
10637
extern "C"
 
10638
#endif
 
10639
char dlopen ();
 
10640
int
 
10641
main ()
 
10642
{
 
10643
return dlopen ();
 
10644
  ;
 
10645
  return 0;
 
10646
}
 
10647
_ACEOF
 
10648
rm -f conftest.$ac_objext conftest$ac_exeext
 
10649
if { (ac_try="$ac_link"
 
10650
case "(($ac_try" in
 
10651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10652
  *) ac_try_echo=$ac_try;;
 
10653
esac
 
10654
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10655
$as_echo "$ac_try_echo") >&5
 
10656
  (eval "$ac_link") 2>conftest.er1
 
10657
  ac_status=$?
 
10658
  grep -v '^ *+' conftest.er1 >conftest.err
 
10659
  rm -f conftest.er1
 
10660
  cat conftest.err >&5
 
10661
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10662
  (exit $ac_status); } && {
 
10663
         test -z "$ac_c_werror_flag" ||
 
10664
         test ! -s conftest.err
 
10665
       } && test -s conftest$ac_exeext && {
 
10666
         test "$cross_compiling" = yes ||
 
10667
         $as_test_x conftest$ac_exeext
 
10668
       }; then
 
10669
  ac_cv_lib_dl_dlopen=yes
 
10670
else
 
10671
  $as_echo "$as_me: failed program was:" >&5
 
10672
sed 's/^/| /' conftest.$ac_ext >&5
 
10673
 
 
10674
        ac_cv_lib_dl_dlopen=no
 
10675
fi
 
10676
 
 
10677
rm -rf conftest.dSYM
 
10678
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10679
      conftest$ac_exeext conftest.$ac_ext
 
10680
LIBS=$ac_check_lib_save_LIBS
 
10681
fi
 
10682
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10683
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10684
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10685
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10686
else
 
10687
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10688
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10689
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10690
  $as_echo_n "(cached) " >&6
 
10691
else
 
10692
  ac_check_lib_save_LIBS=$LIBS
 
10693
LIBS="-lsvld  $LIBS"
 
10694
cat >conftest.$ac_ext <<_ACEOF
 
10695
/* confdefs.h.  */
 
10696
_ACEOF
 
10697
cat confdefs.h >>conftest.$ac_ext
 
10698
cat >>conftest.$ac_ext <<_ACEOF
 
10699
/* end confdefs.h.  */
 
10700
 
 
10701
/* Override any GCC internal prototype to avoid an error.
 
10702
   Use char because int might match the return type of a GCC
 
10703
   builtin and then its argument prototype would still apply.  */
 
10704
#ifdef __cplusplus
 
10705
extern "C"
 
10706
#endif
 
10707
char dlopen ();
 
10708
int
 
10709
main ()
 
10710
{
 
10711
return dlopen ();
 
10712
  ;
 
10713
  return 0;
 
10714
}
 
10715
_ACEOF
 
10716
rm -f conftest.$ac_objext conftest$ac_exeext
 
10717
if { (ac_try="$ac_link"
 
10718
case "(($ac_try" in
 
10719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10720
  *) ac_try_echo=$ac_try;;
 
10721
esac
 
10722
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10723
$as_echo "$ac_try_echo") >&5
 
10724
  (eval "$ac_link") 2>conftest.er1
 
10725
  ac_status=$?
 
10726
  grep -v '^ *+' conftest.er1 >conftest.err
 
10727
  rm -f conftest.er1
 
10728
  cat conftest.err >&5
 
10729
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10730
  (exit $ac_status); } && {
 
10731
         test -z "$ac_c_werror_flag" ||
 
10732
         test ! -s conftest.err
 
10733
       } && test -s conftest$ac_exeext && {
 
10734
         test "$cross_compiling" = yes ||
 
10735
         $as_test_x conftest$ac_exeext
 
10736
       }; then
 
10737
  ac_cv_lib_svld_dlopen=yes
 
10738
else
 
10739
  $as_echo "$as_me: failed program was:" >&5
 
10740
sed 's/^/| /' conftest.$ac_ext >&5
 
10741
 
 
10742
        ac_cv_lib_svld_dlopen=no
 
10743
fi
 
10744
 
 
10745
rm -rf conftest.dSYM
 
10746
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10747
      conftest$ac_exeext conftest.$ac_ext
 
10748
LIBS=$ac_check_lib_save_LIBS
 
10749
fi
 
10750
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10751
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10752
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10753
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10754
else
 
10755
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10756
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10757
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10758
  $as_echo_n "(cached) " >&6
 
10759
else
 
10760
  ac_check_lib_save_LIBS=$LIBS
 
10761
LIBS="-ldld  $LIBS"
 
10762
cat >conftest.$ac_ext <<_ACEOF
 
10763
/* confdefs.h.  */
 
10764
_ACEOF
 
10765
cat confdefs.h >>conftest.$ac_ext
 
10766
cat >>conftest.$ac_ext <<_ACEOF
 
10767
/* end confdefs.h.  */
 
10768
 
 
10769
/* Override any GCC internal prototype to avoid an error.
 
10770
   Use char because int might match the return type of a GCC
 
10771
   builtin and then its argument prototype would still apply.  */
 
10772
#ifdef __cplusplus
 
10773
extern "C"
 
10774
#endif
 
10775
char dld_link ();
 
10776
int
 
10777
main ()
 
10778
{
 
10779
return dld_link ();
 
10780
  ;
 
10781
  return 0;
 
10782
}
 
10783
_ACEOF
 
10784
rm -f conftest.$ac_objext conftest$ac_exeext
 
10785
if { (ac_try="$ac_link"
 
10786
case "(($ac_try" in
 
10787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10788
  *) ac_try_echo=$ac_try;;
 
10789
esac
 
10790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10791
$as_echo "$ac_try_echo") >&5
 
10792
  (eval "$ac_link") 2>conftest.er1
 
10793
  ac_status=$?
 
10794
  grep -v '^ *+' conftest.er1 >conftest.err
 
10795
  rm -f conftest.er1
 
10796
  cat conftest.err >&5
 
10797
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10798
  (exit $ac_status); } && {
 
10799
         test -z "$ac_c_werror_flag" ||
 
10800
         test ! -s conftest.err
 
10801
       } && test -s conftest$ac_exeext && {
 
10802
         test "$cross_compiling" = yes ||
 
10803
         $as_test_x conftest$ac_exeext
 
10804
       }; then
 
10805
  ac_cv_lib_dld_dld_link=yes
 
10806
else
 
10807
  $as_echo "$as_me: failed program was:" >&5
 
10808
sed 's/^/| /' conftest.$ac_ext >&5
 
10809
 
 
10810
        ac_cv_lib_dld_dld_link=no
 
10811
fi
 
10812
 
 
10813
rm -rf conftest.dSYM
 
10814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10815
      conftest$ac_exeext conftest.$ac_ext
 
10816
LIBS=$ac_check_lib_save_LIBS
 
10817
fi
 
10818
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10819
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10820
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10821
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10822
fi
 
10823
 
 
10824
 
 
10825
fi
 
10826
 
 
10827
 
 
10828
fi
 
10829
 
 
10830
 
 
10831
fi
 
10832
 
 
10833
 
 
10834
fi
 
10835
 
 
10836
 
 
10837
fi
 
10838
 
 
10839
    ;;
 
10840
  esac
 
10841
 
 
10842
  if test "x$lt_cv_dlopen" != xno; then
 
10843
    enable_dlopen=yes
 
10844
  else
 
10845
    enable_dlopen=no
 
10846
  fi
 
10847
 
 
10848
  case $lt_cv_dlopen in
 
10849
  dlopen)
 
10850
    save_CPPFLAGS="$CPPFLAGS"
 
10851
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10852
 
 
10853
    save_LDFLAGS="$LDFLAGS"
 
10854
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10855
 
 
10856
    save_LIBS="$LIBS"
 
10857
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10858
 
 
10859
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10860
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10861
if test "${lt_cv_dlopen_self+set}" = set; then
 
10862
  $as_echo_n "(cached) " >&6
 
10863
else
 
10864
          if test "$cross_compiling" = yes; then :
 
10865
  lt_cv_dlopen_self=cross
 
10866
else
 
10867
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10868
  lt_status=$lt_dlunknown
 
10869
  cat > conftest.$ac_ext <<_LT_EOF
 
10870
#line 10870 "configure"
 
10871
#include "confdefs.h"
 
10872
 
 
10873
#if HAVE_DLFCN_H
 
10874
#include <dlfcn.h>
 
10875
#endif
 
10876
 
 
10877
#include <stdio.h>
 
10878
 
 
10879
#ifdef RTLD_GLOBAL
 
10880
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10881
#else
 
10882
#  ifdef DL_GLOBAL
 
10883
#    define LT_DLGLOBAL         DL_GLOBAL
 
10884
#  else
 
10885
#    define LT_DLGLOBAL         0
 
10886
#  endif
 
10887
#endif
 
10888
 
 
10889
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10890
   find out it does not work in some platform. */
 
10891
#ifndef LT_DLLAZY_OR_NOW
 
10892
#  ifdef RTLD_LAZY
 
10893
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10894
#  else
 
10895
#    ifdef DL_LAZY
 
10896
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10897
#    else
 
10898
#      ifdef RTLD_NOW
 
10899
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10900
#      else
 
10901
#        ifdef DL_NOW
 
10902
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10903
#        else
 
10904
#          define LT_DLLAZY_OR_NOW      0
 
10905
#        endif
 
10906
#      endif
 
10907
#    endif
 
10908
#  endif
 
10909
#endif
 
10910
 
 
10911
void fnord() { int i=42;}
 
10912
int main ()
 
10913
{
 
10914
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10915
  int status = $lt_dlunknown;
 
10916
 
 
10917
  if (self)
 
10918
    {
 
10919
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10920
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10921
      /* dlclose (self); */
 
10922
    }
 
10923
  else
 
10924
    puts (dlerror ());
 
10925
 
 
10926
  return status;
 
10927
}
 
10928
_LT_EOF
 
10929
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10930
  (eval $ac_link) 2>&5
 
10931
  ac_status=$?
 
10932
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10933
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10934
    (./conftest; exit; ) >&5 2>/dev/null
 
10935
    lt_status=$?
 
10936
    case x$lt_status in
 
10937
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10938
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10939
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10940
    esac
 
10941
  else :
 
10942
    # compilation failed
 
10943
    lt_cv_dlopen_self=no
 
10944
  fi
 
10945
fi
 
10946
rm -fr conftest*
 
10947
 
 
10948
 
 
10949
fi
 
10950
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10951
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10952
 
 
10953
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10954
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10955
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10956
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10957
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10958
  $as_echo_n "(cached) " >&6
 
10959
else
 
10960
          if test "$cross_compiling" = yes; then :
 
10961
  lt_cv_dlopen_self_static=cross
 
10962
else
 
10963
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10964
  lt_status=$lt_dlunknown
 
10965
  cat > conftest.$ac_ext <<_LT_EOF
 
10966
#line 10966 "configure"
 
10967
#include "confdefs.h"
 
10968
 
 
10969
#if HAVE_DLFCN_H
 
10970
#include <dlfcn.h>
 
10971
#endif
 
10972
 
 
10973
#include <stdio.h>
 
10974
 
 
10975
#ifdef RTLD_GLOBAL
 
10976
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10977
#else
 
10978
#  ifdef DL_GLOBAL
 
10979
#    define LT_DLGLOBAL         DL_GLOBAL
 
10980
#  else
 
10981
#    define LT_DLGLOBAL         0
 
10982
#  endif
 
10983
#endif
 
10984
 
 
10985
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10986
   find out it does not work in some platform. */
 
10987
#ifndef LT_DLLAZY_OR_NOW
 
10988
#  ifdef RTLD_LAZY
 
10989
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10990
#  else
 
10991
#    ifdef DL_LAZY
 
10992
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10993
#    else
 
10994
#      ifdef RTLD_NOW
 
10995
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10996
#      else
 
10997
#        ifdef DL_NOW
 
10998
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10999
#        else
 
11000
#          define LT_DLLAZY_OR_NOW      0
 
11001
#        endif
 
11002
#      endif
 
11003
#    endif
 
11004
#  endif
 
11005
#endif
 
11006
 
 
11007
void fnord() { int i=42;}
 
11008
int main ()
 
11009
{
 
11010
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11011
  int status = $lt_dlunknown;
 
11012
 
 
11013
  if (self)
 
11014
    {
 
11015
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11016
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11017
      /* dlclose (self); */
 
11018
    }
 
11019
  else
 
11020
    puts (dlerror ());
 
11021
 
 
11022
  return status;
 
11023
}
 
11024
_LT_EOF
 
11025
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11026
  (eval $ac_link) 2>&5
 
11027
  ac_status=$?
 
11028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11029
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11030
    (./conftest; exit; ) >&5 2>/dev/null
 
11031
    lt_status=$?
 
11032
    case x$lt_status in
 
11033
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11034
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11035
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11036
    esac
 
11037
  else :
 
11038
    # compilation failed
 
11039
    lt_cv_dlopen_self_static=no
 
11040
  fi
 
11041
fi
 
11042
rm -fr conftest*
 
11043
 
 
11044
 
 
11045
fi
 
11046
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11047
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11048
    fi
 
11049
 
 
11050
    CPPFLAGS="$save_CPPFLAGS"
 
11051
    LDFLAGS="$save_LDFLAGS"
 
11052
    LIBS="$save_LIBS"
 
11053
    ;;
 
11054
  esac
 
11055
 
 
11056
  case $lt_cv_dlopen_self in
 
11057
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11058
  *) enable_dlopen_self=unknown ;;
 
11059
  esac
 
11060
 
 
11061
  case $lt_cv_dlopen_self_static in
 
11062
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11063
  *) enable_dlopen_self_static=unknown ;;
 
11064
  esac
 
11065
fi
 
11066
 
 
11067
 
 
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
striplib=
 
11084
old_striplib=
 
11085
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11086
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11087
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11088
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11089
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11090
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11091
$as_echo "yes" >&6; }
 
11092
else
 
11093
# FIXME - insert some real tests, host_os isn't really good enough
 
11094
  case $host_os in
 
11095
  darwin*)
 
11096
    if test -n "$STRIP" ; then
 
11097
      striplib="$STRIP -x"
 
11098
      old_striplib="$STRIP -S"
 
11099
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11100
$as_echo "yes" >&6; }
 
11101
    else
 
11102
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
11103
$as_echo "no" >&6; }
 
11104
    fi
 
11105
    ;;
 
11106
  *)
 
11107
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
11108
$as_echo "no" >&6; }
 
11109
    ;;
 
11110
  esac
 
11111
fi
 
11112
 
 
11113
 
 
11114
 
 
11115
 
 
11116
 
 
11117
 
 
11118
 
 
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
  # Report which library types will actually be built
 
11125
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11126
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11127
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11128
$as_echo "$can_build_shared" >&6; }
 
11129
 
 
11130
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11131
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11132
  test "$can_build_shared" = "no" && enable_shared=no
 
11133
 
 
11134
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11135
  # are all built from PIC.
 
11136
  case $host_os in
 
11137
  aix3*)
 
11138
    test "$enable_shared" = yes && enable_static=no
 
11139
    if test -n "$RANLIB"; then
 
11140
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11141
      postinstall_cmds='$RANLIB $lib'
 
11142
    fi
 
11143
    ;;
 
11144
 
 
11145
  aix[4-9]*)
 
11146
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11147
      test "$enable_shared" = yes && enable_static=no
 
11148
    fi
 
11149
    ;;
 
11150
  esac
 
11151
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11152
$as_echo "$enable_shared" >&6; }
 
11153
 
 
11154
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11155
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11156
  # Make sure either enable_shared or enable_static is yes.
 
11157
  test "$enable_shared" = yes || enable_static=yes
 
11158
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11159
$as_echo "$enable_static" >&6; }
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
fi
 
11165
ac_ext=c
 
11166
ac_cpp='$CPP $CPPFLAGS'
 
11167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11170
 
 
11171
CC="$lt_save_CC"
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
        ac_config_commands="$ac_config_commands libtool"
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
# Only expand once:
 
11191
 
 
11192
 
 
11193
ac_ext=c
 
11194
ac_cpp='$CPP $CPPFLAGS'
 
11195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11198
if test -n "$ac_tool_prefix"; then
 
11199
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
11200
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
11201
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11202
$as_echo_n "checking for $ac_word... " >&6; }
 
11203
if test "${ac_cv_prog_CC+set}" = set; then
 
11204
  $as_echo_n "(cached) " >&6
 
11205
else
 
11206
  if test -n "$CC"; then
 
11207
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11208
else
 
11209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11210
for as_dir in $PATH
 
11211
do
 
11212
  IFS=$as_save_IFS
 
11213
  test -z "$as_dir" && as_dir=.
 
11214
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11215
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11216
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
11217
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11218
    break 2
 
11219
  fi
 
11220
done
 
11221
done
 
11222
IFS=$as_save_IFS
 
11223
 
 
11224
fi
 
11225
fi
 
11226
CC=$ac_cv_prog_CC
 
11227
if test -n "$CC"; then
 
11228
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
11229
$as_echo "$CC" >&6; }
 
11230
else
 
11231
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11232
$as_echo "no" >&6; }
 
11233
fi
 
11234
 
 
11235
 
 
11236
fi
 
11237
if test -z "$ac_cv_prog_CC"; then
 
11238
  ac_ct_CC=$CC
 
11239
  # Extract the first word of "gcc", so it can be a program name with args.
 
11240
set dummy gcc; ac_word=$2
 
11241
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11242
$as_echo_n "checking for $ac_word... " >&6; }
 
11243
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
11244
  $as_echo_n "(cached) " >&6
 
11245
else
 
11246
  if test -n "$ac_ct_CC"; then
 
11247
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11248
else
 
11249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11250
for as_dir in $PATH
 
11251
do
 
11252
  IFS=$as_save_IFS
 
11253
  test -z "$as_dir" && as_dir=.
 
11254
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11255
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11256
    ac_cv_prog_ac_ct_CC="gcc"
 
11257
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11258
    break 2
 
11259
  fi
 
11260
done
 
11261
done
 
11262
IFS=$as_save_IFS
 
11263
 
 
11264
fi
 
11265
fi
 
11266
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11267
if test -n "$ac_ct_CC"; then
 
11268
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
11269
$as_echo "$ac_ct_CC" >&6; }
 
11270
else
 
11271
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11272
$as_echo "no" >&6; }
 
11273
fi
 
11274
 
 
11275
  if test "x$ac_ct_CC" = x; then
 
11276
    CC=""
 
11277
  else
 
11278
    case $cross_compiling:$ac_tool_warned in
 
11279
yes:)
 
11280
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11281
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11282
ac_tool_warned=yes ;;
 
11283
esac
 
11284
    CC=$ac_ct_CC
 
11285
  fi
 
11286
else
 
11287
  CC="$ac_cv_prog_CC"
 
11288
fi
 
11289
 
 
11290
if test -z "$CC"; then
 
11291
          if test -n "$ac_tool_prefix"; then
 
11292
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
11293
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
11294
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11295
$as_echo_n "checking for $ac_word... " >&6; }
 
11296
if test "${ac_cv_prog_CC+set}" = set; then
 
11297
  $as_echo_n "(cached) " >&6
 
11298
else
 
11299
  if test -n "$CC"; then
 
11300
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11301
else
 
11302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11303
for as_dir in $PATH
 
11304
do
 
11305
  IFS=$as_save_IFS
 
11306
  test -z "$as_dir" && as_dir=.
 
11307
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11308
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11309
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
11310
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11311
    break 2
 
11312
  fi
 
11313
done
 
11314
done
 
11315
IFS=$as_save_IFS
 
11316
 
 
11317
fi
 
11318
fi
 
11319
CC=$ac_cv_prog_CC
 
11320
if test -n "$CC"; then
 
11321
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
11322
$as_echo "$CC" >&6; }
 
11323
else
 
11324
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11325
$as_echo "no" >&6; }
 
11326
fi
 
11327
 
 
11328
 
 
11329
  fi
 
11330
fi
 
11331
if test -z "$CC"; then
 
11332
  # Extract the first word of "cc", so it can be a program name with args.
 
11333
set dummy cc; ac_word=$2
 
11334
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11335
$as_echo_n "checking for $ac_word... " >&6; }
 
11336
if test "${ac_cv_prog_CC+set}" = set; then
 
11337
  $as_echo_n "(cached) " >&6
 
11338
else
 
11339
  if test -n "$CC"; then
 
11340
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11341
else
 
11342
  ac_prog_rejected=no
 
11343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11344
for as_dir in $PATH
 
11345
do
 
11346
  IFS=$as_save_IFS
 
11347
  test -z "$as_dir" && as_dir=.
 
11348
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11349
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11350
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
11351
       ac_prog_rejected=yes
 
11352
       continue
 
11353
     fi
 
11354
    ac_cv_prog_CC="cc"
 
11355
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11356
    break 2
 
11357
  fi
 
11358
done
 
11359
done
 
11360
IFS=$as_save_IFS
 
11361
 
 
11362
if test $ac_prog_rejected = yes; then
 
11363
  # We found a bogon in the path, so make sure we never use it.
 
11364
  set dummy $ac_cv_prog_CC
 
11365
  shift
 
11366
  if test $# != 0; then
 
11367
    # We chose a different compiler from the bogus one.
 
11368
    # However, it has the same basename, so the bogon will be chosen
 
11369
    # first if we set CC to just the basename; use the full file name.
 
11370
    shift
 
11371
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
11372
  fi
 
11373
fi
 
11374
fi
 
11375
fi
 
11376
CC=$ac_cv_prog_CC
 
11377
if test -n "$CC"; then
 
11378
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
11379
$as_echo "$CC" >&6; }
 
11380
else
 
11381
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11382
$as_echo "no" >&6; }
 
11383
fi
 
11384
 
 
11385
 
 
11386
fi
 
11387
if test -z "$CC"; then
 
11388
  if test -n "$ac_tool_prefix"; then
 
11389
  for ac_prog in cl.exe
 
11390
  do
 
11391
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11392
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11393
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11394
$as_echo_n "checking for $ac_word... " >&6; }
 
11395
if test "${ac_cv_prog_CC+set}" = set; then
 
11396
  $as_echo_n "(cached) " >&6
 
11397
else
 
11398
  if test -n "$CC"; then
 
11399
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11400
else
 
11401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11402
for as_dir in $PATH
 
11403
do
 
11404
  IFS=$as_save_IFS
 
11405
  test -z "$as_dir" && as_dir=.
 
11406
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11408
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
11409
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11410
    break 2
 
11411
  fi
 
11412
done
 
11413
done
 
11414
IFS=$as_save_IFS
 
11415
 
 
11416
fi
 
11417
fi
 
11418
CC=$ac_cv_prog_CC
 
11419
if test -n "$CC"; then
 
11420
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
11421
$as_echo "$CC" >&6; }
 
11422
else
 
11423
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11424
$as_echo "no" >&6; }
 
11425
fi
 
11426
 
 
11427
 
 
11428
    test -n "$CC" && break
 
11429
  done
 
11430
fi
 
11431
if test -z "$CC"; then
 
11432
  ac_ct_CC=$CC
 
11433
  for ac_prog in cl.exe
 
11434
do
 
11435
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11436
set dummy $ac_prog; ac_word=$2
 
11437
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11438
$as_echo_n "checking for $ac_word... " >&6; }
 
11439
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
11440
  $as_echo_n "(cached) " >&6
 
11441
else
 
11442
  if test -n "$ac_ct_CC"; then
 
11443
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11444
else
 
11445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11446
for as_dir in $PATH
 
11447
do
 
11448
  IFS=$as_save_IFS
 
11449
  test -z "$as_dir" && as_dir=.
 
11450
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11451
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11452
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
11453
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11454
    break 2
 
11455
  fi
 
11456
done
 
11457
done
 
11458
IFS=$as_save_IFS
 
11459
 
 
11460
fi
 
11461
fi
 
11462
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11463
if test -n "$ac_ct_CC"; then
 
11464
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
11465
$as_echo "$ac_ct_CC" >&6; }
 
11466
else
 
11467
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11468
$as_echo "no" >&6; }
 
11469
fi
 
11470
 
 
11471
 
 
11472
  test -n "$ac_ct_CC" && break
 
11473
done
 
11474
 
 
11475
  if test "x$ac_ct_CC" = x; then
 
11476
    CC=""
 
11477
  else
 
11478
    case $cross_compiling:$ac_tool_warned in
 
11479
yes:)
 
11480
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11481
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11482
ac_tool_warned=yes ;;
 
11483
esac
 
11484
    CC=$ac_ct_CC
 
11485
  fi
 
11486
fi
 
11487
 
 
11488
fi
 
11489
 
 
11490
 
 
11491
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
11492
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11493
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
11494
See \`config.log' for more details." >&5
 
11495
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
11496
See \`config.log' for more details." >&2;}
 
11497
   { (exit 1); exit 1; }; }; }
 
11498
 
 
11499
# Provide some information about the compiler.
 
11500
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
11501
set X $ac_compile
 
11502
ac_compiler=$2
 
11503
{ (ac_try="$ac_compiler --version >&5"
 
11504
case "(($ac_try" in
 
11505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11506
  *) ac_try_echo=$ac_try;;
 
11507
esac
 
11508
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11509
$as_echo "$ac_try_echo") >&5
 
11510
  (eval "$ac_compiler --version >&5") 2>&5
 
11511
  ac_status=$?
 
11512
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11513
  (exit $ac_status); }
 
11514
{ (ac_try="$ac_compiler -v >&5"
 
11515
case "(($ac_try" in
 
11516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11517
  *) ac_try_echo=$ac_try;;
 
11518
esac
 
11519
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11520
$as_echo "$ac_try_echo") >&5
 
11521
  (eval "$ac_compiler -v >&5") 2>&5
 
11522
  ac_status=$?
 
11523
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11524
  (exit $ac_status); }
 
11525
{ (ac_try="$ac_compiler -V >&5"
 
11526
case "(($ac_try" in
 
11527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11528
  *) ac_try_echo=$ac_try;;
 
11529
esac
 
11530
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11531
$as_echo "$ac_try_echo") >&5
 
11532
  (eval "$ac_compiler -V >&5") 2>&5
 
11533
  ac_status=$?
 
11534
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11535
  (exit $ac_status); }
 
11536
 
 
11537
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
11538
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
11539
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
11540
  $as_echo_n "(cached) " >&6
 
11541
else
 
11542
  cat >conftest.$ac_ext <<_ACEOF
 
11543
/* confdefs.h.  */
 
11544
_ACEOF
 
11545
cat confdefs.h >>conftest.$ac_ext
 
11546
cat >>conftest.$ac_ext <<_ACEOF
 
11547
/* end confdefs.h.  */
 
11548
 
 
11549
int
 
11550
main ()
 
11551
{
 
11552
#ifndef __GNUC__
 
11553
       choke me
 
11554
#endif
 
11555
 
 
11556
  ;
 
11557
  return 0;
 
11558
}
 
11559
_ACEOF
 
11560
rm -f conftest.$ac_objext
 
11561
if { (ac_try="$ac_compile"
 
11562
case "(($ac_try" in
 
11563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11564
  *) ac_try_echo=$ac_try;;
 
11565
esac
 
11566
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11567
$as_echo "$ac_try_echo") >&5
 
11568
  (eval "$ac_compile") 2>conftest.er1
 
11569
  ac_status=$?
 
11570
  grep -v '^ *+' conftest.er1 >conftest.err
 
11571
  rm -f conftest.er1
 
11572
  cat conftest.err >&5
 
11573
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11574
  (exit $ac_status); } && {
 
11575
         test -z "$ac_c_werror_flag" ||
 
11576
         test ! -s conftest.err
 
11577
       } && test -s conftest.$ac_objext; then
 
11578
  ac_compiler_gnu=yes
 
11579
else
 
11580
  $as_echo "$as_me: failed program was:" >&5
 
11581
sed 's/^/| /' conftest.$ac_ext >&5
 
11582
 
 
11583
        ac_compiler_gnu=no
 
11584
fi
 
11585
 
 
11586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11587
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
11588
 
 
11589
fi
 
11590
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
11591
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
11592
if test $ac_compiler_gnu = yes; then
 
11593
  GCC=yes
 
11594
else
 
11595
  GCC=
 
11596
fi
 
11597
ac_test_CFLAGS=${CFLAGS+set}
 
11598
ac_save_CFLAGS=$CFLAGS
 
11599
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
11600
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
11601
if test "${ac_cv_prog_cc_g+set}" = set; then
 
11602
  $as_echo_n "(cached) " >&6
 
11603
else
 
11604
  ac_save_c_werror_flag=$ac_c_werror_flag
 
11605
   ac_c_werror_flag=yes
 
11606
   ac_cv_prog_cc_g=no
 
11607
   CFLAGS="-g"
 
11608
   cat >conftest.$ac_ext <<_ACEOF
 
11609
/* confdefs.h.  */
 
11610
_ACEOF
 
11611
cat confdefs.h >>conftest.$ac_ext
 
11612
cat >>conftest.$ac_ext <<_ACEOF
 
11613
/* end confdefs.h.  */
 
11614
 
 
11615
int
 
11616
main ()
 
11617
{
 
11618
 
 
11619
  ;
 
11620
  return 0;
 
11621
}
 
11622
_ACEOF
 
11623
rm -f conftest.$ac_objext
 
11624
if { (ac_try="$ac_compile"
 
11625
case "(($ac_try" in
 
11626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11627
  *) ac_try_echo=$ac_try;;
 
11628
esac
 
11629
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11630
$as_echo "$ac_try_echo") >&5
 
11631
  (eval "$ac_compile") 2>conftest.er1
 
11632
  ac_status=$?
 
11633
  grep -v '^ *+' conftest.er1 >conftest.err
 
11634
  rm -f conftest.er1
 
11635
  cat conftest.err >&5
 
11636
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11637
  (exit $ac_status); } && {
 
11638
         test -z "$ac_c_werror_flag" ||
 
11639
         test ! -s conftest.err
 
11640
       } && test -s conftest.$ac_objext; then
 
11641
  ac_cv_prog_cc_g=yes
 
11642
else
 
11643
  $as_echo "$as_me: failed program was:" >&5
 
11644
sed 's/^/| /' conftest.$ac_ext >&5
 
11645
 
 
11646
        CFLAGS=""
 
11647
      cat >conftest.$ac_ext <<_ACEOF
 
11648
/* confdefs.h.  */
 
11649
_ACEOF
 
11650
cat confdefs.h >>conftest.$ac_ext
 
11651
cat >>conftest.$ac_ext <<_ACEOF
 
11652
/* end confdefs.h.  */
 
11653
 
 
11654
int
 
11655
main ()
 
11656
{
 
11657
 
 
11658
  ;
 
11659
  return 0;
 
11660
}
 
11661
_ACEOF
 
11662
rm -f conftest.$ac_objext
 
11663
if { (ac_try="$ac_compile"
 
11664
case "(($ac_try" in
 
11665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11666
  *) ac_try_echo=$ac_try;;
 
11667
esac
 
11668
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11669
$as_echo "$ac_try_echo") >&5
 
11670
  (eval "$ac_compile") 2>conftest.er1
 
11671
  ac_status=$?
 
11672
  grep -v '^ *+' conftest.er1 >conftest.err
 
11673
  rm -f conftest.er1
 
11674
  cat conftest.err >&5
 
11675
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11676
  (exit $ac_status); } && {
 
11677
         test -z "$ac_c_werror_flag" ||
 
11678
         test ! -s conftest.err
 
11679
       } && test -s conftest.$ac_objext; then
 
11680
  :
 
11681
else
 
11682
  $as_echo "$as_me: failed program was:" >&5
 
11683
sed 's/^/| /' conftest.$ac_ext >&5
 
11684
 
 
11685
        ac_c_werror_flag=$ac_save_c_werror_flag
 
11686
         CFLAGS="-g"
 
11687
         cat >conftest.$ac_ext <<_ACEOF
 
11688
/* confdefs.h.  */
 
11689
_ACEOF
 
11690
cat confdefs.h >>conftest.$ac_ext
 
11691
cat >>conftest.$ac_ext <<_ACEOF
 
11692
/* end confdefs.h.  */
 
11693
 
 
11694
int
 
11695
main ()
 
11696
{
 
11697
 
 
11698
  ;
 
11699
  return 0;
 
11700
}
 
11701
_ACEOF
 
11702
rm -f conftest.$ac_objext
 
11703
if { (ac_try="$ac_compile"
 
11704
case "(($ac_try" in
 
11705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11706
  *) ac_try_echo=$ac_try;;
 
11707
esac
 
11708
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11709
$as_echo "$ac_try_echo") >&5
 
11710
  (eval "$ac_compile") 2>conftest.er1
 
11711
  ac_status=$?
 
11712
  grep -v '^ *+' conftest.er1 >conftest.err
 
11713
  rm -f conftest.er1
 
11714
  cat conftest.err >&5
 
11715
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11716
  (exit $ac_status); } && {
 
11717
         test -z "$ac_c_werror_flag" ||
 
11718
         test ! -s conftest.err
 
11719
       } && test -s conftest.$ac_objext; then
 
11720
  ac_cv_prog_cc_g=yes
 
11721
else
 
11722
  $as_echo "$as_me: failed program was:" >&5
 
11723
sed 's/^/| /' conftest.$ac_ext >&5
 
11724
 
 
11725
 
 
11726
fi
 
11727
 
 
11728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11729
fi
 
11730
 
 
11731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11732
fi
 
11733
 
 
11734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11735
   ac_c_werror_flag=$ac_save_c_werror_flag
 
11736
fi
 
11737
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
11738
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
11739
if test "$ac_test_CFLAGS" = set; then
 
11740
  CFLAGS=$ac_save_CFLAGS
 
11741
elif test $ac_cv_prog_cc_g = yes; then
 
11742
  if test "$GCC" = yes; then
 
11743
    CFLAGS="-g -O2"
 
11744
  else
 
11745
    CFLAGS="-g"
 
11746
  fi
 
11747
else
 
11748
  if test "$GCC" = yes; then
 
11749
    CFLAGS="-O2"
 
11750
  else
 
11751
    CFLAGS=
 
11752
  fi
 
11753
fi
 
11754
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
11755
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
11756
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
11757
  $as_echo_n "(cached) " >&6
 
11758
else
 
11759
  ac_cv_prog_cc_c89=no
 
11760
ac_save_CC=$CC
 
11761
cat >conftest.$ac_ext <<_ACEOF
 
11762
/* confdefs.h.  */
 
11763
_ACEOF
 
11764
cat confdefs.h >>conftest.$ac_ext
 
11765
cat >>conftest.$ac_ext <<_ACEOF
 
11766
/* end confdefs.h.  */
 
11767
#include <stdarg.h>
 
11768
#include <stdio.h>
 
11769
#include <sys/types.h>
 
11770
#include <sys/stat.h>
 
11771
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
11772
struct buf { int x; };
 
11773
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
11774
static char *e (p, i)
 
11775
     char **p;
 
11776
     int i;
 
11777
{
 
11778
  return p[i];
 
11779
}
 
11780
static char *f (char * (*g) (char **, int), char **p, ...)
 
11781
{
 
11782
  char *s;
 
11783
  va_list v;
 
11784
  va_start (v,p);
 
11785
  s = g (p, va_arg (v,int));
 
11786
  va_end (v);
 
11787
  return s;
 
11788
}
 
11789
 
 
11790
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
11791
   function prototypes and stuff, but not '\xHH' hex character constants.
 
11792
   These don't provoke an error unfortunately, instead are silently treated
 
11793
   as 'x'.  The following induces an error, until -std is added to get
 
11794
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
11795
   array size at least.  It's necessary to write '\x00'==0 to get something
 
11796
   that's true only with -std.  */
 
11797
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
11798
 
 
11799
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
11800
   inside strings and character constants.  */
 
11801
#define FOO(x) 'x'
 
11802
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
11803
 
 
11804
int test (int i, double x);
 
11805
struct s1 {int (*f) (int a);};
 
11806
struct s2 {int (*f) (double a);};
 
11807
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
11808
int argc;
 
11809
char **argv;
 
11810
int
 
11811
main ()
 
11812
{
 
11813
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
11814
  ;
 
11815
  return 0;
 
11816
}
 
11817
_ACEOF
 
11818
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
11819
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
11820
do
 
11821
  CC="$ac_save_CC $ac_arg"
 
11822
  rm -f conftest.$ac_objext
 
11823
if { (ac_try="$ac_compile"
 
11824
case "(($ac_try" in
 
11825
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11826
  *) ac_try_echo=$ac_try;;
 
11827
esac
 
11828
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11829
$as_echo "$ac_try_echo") >&5
 
11830
  (eval "$ac_compile") 2>conftest.er1
 
11831
  ac_status=$?
 
11832
  grep -v '^ *+' conftest.er1 >conftest.err
 
11833
  rm -f conftest.er1
 
11834
  cat conftest.err >&5
 
11835
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11836
  (exit $ac_status); } && {
 
11837
         test -z "$ac_c_werror_flag" ||
 
11838
         test ! -s conftest.err
 
11839
       } && test -s conftest.$ac_objext; then
 
11840
  ac_cv_prog_cc_c89=$ac_arg
 
11841
else
 
11842
  $as_echo "$as_me: failed program was:" >&5
 
11843
sed 's/^/| /' conftest.$ac_ext >&5
 
11844
 
 
11845
 
 
11846
fi
 
11847
 
 
11848
rm -f core conftest.err conftest.$ac_objext
 
11849
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
11850
done
 
11851
rm -f conftest.$ac_ext
 
11852
CC=$ac_save_CC
 
11853
 
 
11854
fi
 
11855
# AC_CACHE_VAL
 
11856
case "x$ac_cv_prog_cc_c89" in
 
11857
  x)
 
11858
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
11859
$as_echo "none needed" >&6; } ;;
 
11860
  xno)
 
11861
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
11862
$as_echo "unsupported" >&6; } ;;
 
11863
  *)
 
11864
    CC="$CC $ac_cv_prog_cc_c89"
 
11865
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
11866
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
11867
esac
 
11868
 
 
11869
 
 
11870
ac_ext=c
 
11871
ac_cpp='$CPP $CPPFLAGS'
 
11872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11875
 
 
11876
depcc="$CC"   am_compiler_list=
 
11877
 
 
11878
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
11879
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
11880
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
11881
  $as_echo_n "(cached) " >&6
 
11882
else
 
11883
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
11884
  # We make a subdir and do the tests there.  Otherwise we can end up
 
11885
  # making bogus files that we don't know about and never remove.  For
 
11886
  # instance it was reported that on HP-UX the gcc test will end up
 
11887
  # making a dummy file named `D' -- because `-MD' means `put the output
 
11888
  # in D'.
 
11889
  mkdir conftest.dir
 
11890
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
11891
  # using a relative directory.
 
11892
  cp "$am_depcomp" conftest.dir
 
11893
  cd conftest.dir
 
11894
  # We will build objects and dependencies in a subdirectory because
 
11895
  # it helps to detect inapplicable dependency modes.  For instance
 
11896
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
11897
  # side effect of compilation, but ICC will put the dependencies in
 
11898
  # the current directory while Tru64 will put them in the object
 
11899
  # directory.
 
11900
  mkdir sub
 
11901
 
 
11902
  am_cv_CC_dependencies_compiler_type=none
 
11903
  if test "$am_compiler_list" = ""; then
 
11904
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
11905
  fi
 
11906
  am__universal=false
 
11907
  case " $depcc " in #(
 
11908
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
11909
     esac
 
11910
 
 
11911
  for depmode in $am_compiler_list; do
 
11912
    # Setup a source with many dependencies, because some compilers
 
11913
    # like to wrap large dependency lists on column 80 (with \), and
 
11914
    # we should not choose a depcomp mode which is confused by this.
 
11915
    #
 
11916
    # We need to recreate these files for each test, as the compiler may
 
11917
    # overwrite some of them when testing with obscure command lines.
 
11918
    # This happens at least with the AIX C compiler.
 
11919
    : > sub/conftest.c
 
11920
    for i in 1 2 3 4 5 6; do
 
11921
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
11922
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
11923
      # Solaris 8's {/usr,}/bin/sh.
 
11924
      touch sub/conftst$i.h
 
11925
    done
 
11926
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
11927
 
 
11928
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
11929
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
11930
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
11931
    # versions had trouble with output in subdirs
 
11932
    am__obj=sub/conftest.${OBJEXT-o}
 
11933
    am__minus_obj="-o $am__obj"
 
11934
    case $depmode in
 
11935
    gcc)
 
11936
      # This depmode causes a compiler race in universal mode.
 
11937
      test "$am__universal" = false || continue
 
11938
      ;;
 
11939
    nosideeffect)
 
11940
      # after this tag, mechanisms are not by side-effect, so they'll
 
11941
      # only be used when explicitly requested
 
11942
      if test "x$enable_dependency_tracking" = xyes; then
 
11943
        continue
 
11944
      else
 
11945
        break
 
11946
      fi
 
11947
      ;;
 
11948
    msvisualcpp | msvcmsys)
 
11949
      # This compiler won't grok `-c -o', but also, the minuso test has
 
11950
      # not run yet.  These depmodes are late enough in the game, and
 
11951
      # so weak that their functioning should not be impacted.
 
11952
      am__obj=conftest.${OBJEXT-o}
 
11953
      am__minus_obj=
 
11954
      ;;
 
11955
    none) break ;;
 
11956
    esac
 
11957
    if depmode=$depmode \
 
11958
       source=sub/conftest.c object=$am__obj \
 
11959
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
11960
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
11961
         >/dev/null 2>conftest.err &&
 
11962
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
11963
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
11964
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
11965
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
11966
      # icc doesn't choke on unknown options, it will just issue warnings
 
11967
      # or remarks (even with -Werror).  So we grep stderr for any message
 
11968
      # that says an option was ignored or not supported.
 
11969
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
11970
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
11971
      # The diagnosis changed in icc 8.0:
 
11972
      #   icc: Command line remark: option '-MP' not supported
 
11973
      if (grep 'ignoring option' conftest.err ||
 
11974
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
11975
        am_cv_CC_dependencies_compiler_type=$depmode
 
11976
        break
 
11977
      fi
 
11978
    fi
 
11979
  done
 
11980
 
 
11981
  cd ..
 
11982
  rm -rf conftest.dir
 
11983
else
 
11984
  am_cv_CC_dependencies_compiler_type=none
 
11985
fi
 
11986
 
 
11987
fi
 
11988
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
11989
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
11990
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
11991
 
 
11992
 if
 
11993
  test "x$enable_dependency_tracking" != xno \
 
11994
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
11995
  am__fastdepCC_TRUE=
 
11996
  am__fastdepCC_FALSE='#'
 
11997
else
 
11998
  am__fastdepCC_TRUE='#'
 
11999
  am__fastdepCC_FALSE=
 
12000
fi
 
12001
 
 
12002
 
 
12003
   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
12004
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
12005
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
12006
  $as_echo_n "(cached) " >&6
 
12007
else
 
12008
  ac_cv_prog_cc_c99=no
 
12009
ac_save_CC=$CC
 
12010
cat >conftest.$ac_ext <<_ACEOF
 
12011
/* confdefs.h.  */
 
12012
_ACEOF
 
12013
cat confdefs.h >>conftest.$ac_ext
 
12014
cat >>conftest.$ac_ext <<_ACEOF
 
12015
/* end confdefs.h.  */
 
12016
#include <stdarg.h>
 
12017
#include <stdbool.h>
 
12018
#include <stdlib.h>
 
12019
#include <wchar.h>
 
12020
#include <stdio.h>
 
12021
 
 
12022
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
12023
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
12024
#define showlist(...) puts (#__VA_ARGS__)
 
12025
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
12026
static void
 
12027
test_varargs_macros (void)
 
12028
{
 
12029
  int x = 1234;
 
12030
  int y = 5678;
 
12031
  debug ("Flag");
 
12032
  debug ("X = %d\n", x);
 
12033
  showlist (The first, second, and third items.);
 
12034
  report (x>y, "x is %d but y is %d", x, y);
 
12035
}
 
12036
 
 
12037
// Check long long types.
 
12038
#define BIG64 18446744073709551615ull
 
12039
#define BIG32 4294967295ul
 
12040
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
12041
#if !BIG_OK
 
12042
  your preprocessor is broken;
 
12043
#endif
 
12044
#if BIG_OK
 
12045
#else
 
12046
  your preprocessor is broken;
 
12047
#endif
 
12048
static long long int bignum = -9223372036854775807LL;
 
12049
static unsigned long long int ubignum = BIG64;
 
12050
 
 
12051
struct incomplete_array
 
12052
{
 
12053
  int datasize;
 
12054
  double data[];
 
12055
};
 
12056
 
 
12057
struct named_init {
 
12058
  int number;
 
12059
  const wchar_t *name;
 
12060
  double average;
 
12061
};
 
12062
 
 
12063
typedef const char *ccp;
 
12064
 
 
12065
static inline int
 
12066
test_restrict (ccp restrict text)
 
12067
{
 
12068
  // See if C++-style comments work.
 
12069
  // Iterate through items via the restricted pointer.
 
12070
  // Also check for declarations in for loops.
 
12071
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
12072
    continue;
 
12073
  return 0;
 
12074
}
 
12075
 
 
12076
// Check varargs and va_copy.
 
12077
static void
 
12078
test_varargs (const char *format, ...)
 
12079
{
 
12080
  va_list args;
 
12081
  va_start (args, format);
 
12082
  va_list args_copy;
 
12083
  va_copy (args_copy, args);
 
12084
 
 
12085
  const char *str;
 
12086
  int number;
 
12087
  float fnumber;
 
12088
 
 
12089
  while (*format)
 
12090
    {
 
12091
      switch (*format++)
 
12092
        {
 
12093
        case 's': // string
 
12094
          str = va_arg (args_copy, const char *);
 
12095
          break;
 
12096
        case 'd': // int
 
12097
          number = va_arg (args_copy, int);
 
12098
          break;
 
12099
        case 'f': // float
 
12100
          fnumber = va_arg (args_copy, double);
 
12101
          break;
 
12102
        default:
 
12103
          break;
 
12104
        }
 
12105
    }
 
12106
  va_end (args_copy);
 
12107
  va_end (args);
 
12108
}
 
12109
 
 
12110
int
 
12111
main ()
 
12112
{
 
12113
 
 
12114
  // Check bool.
 
12115
  _Bool success = false;
 
12116
 
 
12117
  // Check restrict.
 
12118
  if (test_restrict ("String literal") == 0)
 
12119
    success = true;
 
12120
  char *restrict newvar = "Another string";
 
12121
 
 
12122
  // Check varargs.
 
12123
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
12124
  test_varargs_macros ();
 
12125
 
 
12126
  // Check flexible array members.
 
12127
  struct incomplete_array *ia =
 
12128
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
12129
  ia->datasize = 10;
 
12130
  for (int i = 0; i < ia->datasize; ++i)
 
12131
    ia->data[i] = i * 1.234;
 
12132
 
 
12133
  // Check named initializers.
 
12134
  struct named_init ni = {
 
12135
    .number = 34,
 
12136
    .name = L"Test wide string",
 
12137
    .average = 543.34343,
 
12138
  };
 
12139
 
 
12140
  ni.number = 58;
 
12141
 
 
12142
  int dynamic_array[ni.number];
 
12143
  dynamic_array[ni.number - 1] = 543;
 
12144
 
 
12145
  // work around unused variable warnings
 
12146
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
12147
          || dynamic_array[ni.number - 1] != 543);
 
12148
 
 
12149
  ;
 
12150
  return 0;
 
12151
}
 
12152
_ACEOF
 
12153
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
12154
do
 
12155
  CC="$ac_save_CC $ac_arg"
 
12156
  rm -f conftest.$ac_objext
 
12157
if { (ac_try="$ac_compile"
 
12158
case "(($ac_try" in
 
12159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12160
  *) ac_try_echo=$ac_try;;
 
12161
esac
 
12162
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12163
$as_echo "$ac_try_echo") >&5
 
12164
  (eval "$ac_compile") 2>conftest.er1
 
12165
  ac_status=$?
 
12166
  grep -v '^ *+' conftest.er1 >conftest.err
 
12167
  rm -f conftest.er1
 
12168
  cat conftest.err >&5
 
12169
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12170
  (exit $ac_status); } && {
 
12171
         test -z "$ac_c_werror_flag" ||
 
12172
         test ! -s conftest.err
 
12173
       } && test -s conftest.$ac_objext; then
 
12174
  ac_cv_prog_cc_c99=$ac_arg
 
12175
else
 
12176
  $as_echo "$as_me: failed program was:" >&5
 
12177
sed 's/^/| /' conftest.$ac_ext >&5
 
12178
 
 
12179
 
 
12180
fi
 
12181
 
 
12182
rm -f core conftest.err conftest.$ac_objext
 
12183
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
12184
done
 
12185
rm -f conftest.$ac_ext
 
12186
CC=$ac_save_CC
 
12187
 
 
12188
fi
 
12189
# AC_CACHE_VAL
 
12190
case "x$ac_cv_prog_cc_c99" in
 
12191
  x)
 
12192
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
12193
$as_echo "none needed" >&6; } ;;
 
12194
  xno)
 
12195
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
12196
$as_echo "unsupported" >&6; } ;;
 
12197
  *)
 
12198
    CC="$CC $ac_cv_prog_cc_c99"
 
12199
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
12200
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
12201
esac
 
12202
 
 
12203
 
 
12204
 
 
12205
 
 
12206
 
 
12207
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
12208
        if test -n "$ac_tool_prefix"; then
 
12209
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
12210
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
12211
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12212
$as_echo_n "checking for $ac_word... " >&6; }
 
12213
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
12214
  $as_echo_n "(cached) " >&6
 
12215
else
 
12216
  case $PKG_CONFIG in
 
12217
  [\\/]* | ?:[\\/]*)
 
12218
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
12219
  ;;
 
12220
  *)
 
12221
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12222
for as_dir in $PATH
 
12223
do
 
12224
  IFS=$as_save_IFS
 
12225
  test -z "$as_dir" && as_dir=.
 
12226
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12227
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12228
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12229
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12230
    break 2
 
12231
  fi
 
12232
done
 
12233
done
 
12234
IFS=$as_save_IFS
 
12235
 
 
12236
  ;;
 
12237
esac
 
12238
fi
 
12239
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
12240
if test -n "$PKG_CONFIG"; then
 
12241
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
12242
$as_echo "$PKG_CONFIG" >&6; }
 
12243
else
 
12244
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12245
$as_echo "no" >&6; }
 
12246
fi
 
12247
 
 
12248
 
 
12249
fi
 
12250
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
12251
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
12252
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
12253
set dummy pkg-config; ac_word=$2
 
12254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12255
$as_echo_n "checking for $ac_word... " >&6; }
 
12256
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
12257
  $as_echo_n "(cached) " >&6
 
12258
else
 
12259
  case $ac_pt_PKG_CONFIG in
 
12260
  [\\/]* | ?:[\\/]*)
 
12261
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
12262
  ;;
 
12263
  *)
 
12264
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12265
for as_dir in $PATH
 
12266
do
 
12267
  IFS=$as_save_IFS
 
12268
  test -z "$as_dir" && as_dir=.
 
12269
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12270
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12271
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12272
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12273
    break 2
 
12274
  fi
 
12275
done
 
12276
done
 
12277
IFS=$as_save_IFS
 
12278
 
 
12279
  ;;
 
12280
esac
 
12281
fi
 
12282
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
12283
if test -n "$ac_pt_PKG_CONFIG"; then
 
12284
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
12285
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
12286
else
 
12287
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12288
$as_echo "no" >&6; }
 
12289
fi
 
12290
 
 
12291
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
12292
    PKG_CONFIG=""
 
12293
  else
 
12294
    case $cross_compiling:$ac_tool_warned in
 
12295
yes:)
 
12296
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
12297
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12298
ac_tool_warned=yes ;;
 
12299
esac
 
12300
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
12301
  fi
 
12302
else
 
12303
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
12304
fi
 
12305
 
 
12306
fi
 
12307
if test -n "$PKG_CONFIG"; then
 
12308
        _pkg_min_version=0.9.0
 
12309
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
12310
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
12311
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
12312
                { $as_echo "$as_me:$LINENO: result: yes" >&5
 
12313
$as_echo "yes" >&6; }
 
12314
        else
 
12315
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
12316
$as_echo "no" >&6; }
 
12317
                PKG_CONFIG=""
 
12318
        fi
 
12319
 
 
12320
fi
 
12321
 
 
12322
 
 
12323
 
 
12324
if  test "x$GCC" = xyes ; then
 
12325
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
 
12326
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
 
12327
-Wbad-function-cast -Wformat=2"
 
12328
    case `$CC -dumpversion` in
 
12329
    3.4.* | 4.*)
 
12330
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
 
12331
        ;;
 
12332
    esac
 
12333
else
 
12334
    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
12335
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
12336
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
12337
  $as_echo_n "(cached) " >&6
 
12338
else
 
12339
  cat >conftest.$ac_ext <<_ACEOF
 
12340
/* confdefs.h.  */
 
12341
_ACEOF
 
12342
cat confdefs.h >>conftest.$ac_ext
 
12343
cat >>conftest.$ac_ext <<_ACEOF
 
12344
/* end confdefs.h.  */
 
12345
$ac_includes_default
 
12346
int
 
12347
main ()
 
12348
{
 
12349
#ifndef __SUNPRO_C
 
12350
  (void) __SUNPRO_C;
 
12351
#endif
 
12352
 
 
12353
  ;
 
12354
  return 0;
 
12355
}
 
12356
_ACEOF
 
12357
rm -f conftest.$ac_objext
 
12358
if { (ac_try="$ac_compile"
 
12359
case "(($ac_try" in
 
12360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12361
  *) ac_try_echo=$ac_try;;
 
12362
esac
 
12363
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12364
$as_echo "$ac_try_echo") >&5
 
12365
  (eval "$ac_compile") 2>conftest.er1
 
12366
  ac_status=$?
 
12367
  grep -v '^ *+' conftest.er1 >conftest.err
 
12368
  rm -f conftest.er1
 
12369
  cat conftest.err >&5
 
12370
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12371
  (exit $ac_status); } && {
 
12372
         test -z "$ac_c_werror_flag" ||
 
12373
         test ! -s conftest.err
 
12374
       } && test -s conftest.$ac_objext; then
 
12375
  ac_cv_have_decl___SUNPRO_C=yes
 
12376
else
 
12377
  $as_echo "$as_me: failed program was:" >&5
 
12378
sed 's/^/| /' conftest.$ac_ext >&5
 
12379
 
 
12380
        ac_cv_have_decl___SUNPRO_C=no
 
12381
fi
 
12382
 
 
12383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12384
fi
 
12385
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
12386
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
12387
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
12388
  SUNCC="yes"
 
12389
else
 
12390
  SUNCC="no"
 
12391
fi
 
12392
 
 
12393
    if test "x$SUNCC" = "xyes"; then
 
12394
        CWARNFLAGS="-v"
 
12395
    fi
 
12396
fi
 
12397
 
 
12398
 
 
12399
 
 
12400
 
 
12401
 
 
12402
 
 
12403
 
 
12404
# Check whether --enable-strict-compilation was given.
 
12405
if test "${enable_strict_compilation+set}" = set; then
 
12406
  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
 
12407
else
 
12408
  STRICT_COMPILE=no
 
12409
fi
 
12410
 
 
12411
if test "x$STRICT_COMPILE" = "xyes"; then
 
12412
        { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
12413
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
12414
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
12415
  $as_echo_n "(cached) " >&6
 
12416
else
 
12417
  cat >conftest.$ac_ext <<_ACEOF
 
12418
/* confdefs.h.  */
 
12419
_ACEOF
 
12420
cat confdefs.h >>conftest.$ac_ext
 
12421
cat >>conftest.$ac_ext <<_ACEOF
 
12422
/* end confdefs.h.  */
 
12423
$ac_includes_default
 
12424
int
 
12425
main ()
 
12426
{
 
12427
#ifndef __SUNPRO_C
 
12428
  (void) __SUNPRO_C;
 
12429
#endif
 
12430
 
 
12431
  ;
 
12432
  return 0;
 
12433
}
 
12434
_ACEOF
 
12435
rm -f conftest.$ac_objext
 
12436
if { (ac_try="$ac_compile"
 
12437
case "(($ac_try" in
 
12438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12439
  *) ac_try_echo=$ac_try;;
 
12440
esac
 
12441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12442
$as_echo "$ac_try_echo") >&5
 
12443
  (eval "$ac_compile") 2>conftest.er1
 
12444
  ac_status=$?
 
12445
  grep -v '^ *+' conftest.er1 >conftest.err
 
12446
  rm -f conftest.er1
 
12447
  cat conftest.err >&5
 
12448
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12449
  (exit $ac_status); } && {
 
12450
         test -z "$ac_c_werror_flag" ||
 
12451
         test ! -s conftest.err
 
12452
       } && test -s conftest.$ac_objext; then
 
12453
  ac_cv_have_decl___SUNPRO_C=yes
 
12454
else
 
12455
  $as_echo "$as_me: failed program was:" >&5
 
12456
sed 's/^/| /' conftest.$ac_ext >&5
 
12457
 
 
12458
        ac_cv_have_decl___SUNPRO_C=no
 
12459
fi
 
12460
 
 
12461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12462
fi
 
12463
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
12464
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
12465
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
12466
  SUNCC="yes"
 
12467
else
 
12468
  SUNCC="no"
 
12469
fi
 
12470
 
 
12471
        { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
 
12472
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
 
12473
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
 
12474
  $as_echo_n "(cached) " >&6
 
12475
else
 
12476
  cat >conftest.$ac_ext <<_ACEOF
 
12477
/* confdefs.h.  */
 
12478
_ACEOF
 
12479
cat confdefs.h >>conftest.$ac_ext
 
12480
cat >>conftest.$ac_ext <<_ACEOF
 
12481
/* end confdefs.h.  */
 
12482
$ac_includes_default
 
12483
int
 
12484
main ()
 
12485
{
 
12486
#ifndef __INTEL_COMPILER
 
12487
  (void) __INTEL_COMPILER;
 
12488
#endif
 
12489
 
 
12490
  ;
 
12491
  return 0;
 
12492
}
 
12493
_ACEOF
 
12494
rm -f conftest.$ac_objext
 
12495
if { (ac_try="$ac_compile"
 
12496
case "(($ac_try" in
 
12497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12498
  *) ac_try_echo=$ac_try;;
 
12499
esac
 
12500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12501
$as_echo "$ac_try_echo") >&5
 
12502
  (eval "$ac_compile") 2>conftest.er1
 
12503
  ac_status=$?
 
12504
  grep -v '^ *+' conftest.er1 >conftest.err
 
12505
  rm -f conftest.er1
 
12506
  cat conftest.err >&5
 
12507
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12508
  (exit $ac_status); } && {
 
12509
         test -z "$ac_c_werror_flag" ||
 
12510
         test ! -s conftest.err
 
12511
       } && test -s conftest.$ac_objext; then
 
12512
  ac_cv_have_decl___INTEL_COMPILER=yes
 
12513
else
 
12514
  $as_echo "$as_me: failed program was:" >&5
 
12515
sed 's/^/| /' conftest.$ac_ext >&5
 
12516
 
 
12517
        ac_cv_have_decl___INTEL_COMPILER=no
 
12518
fi
 
12519
 
 
12520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12521
fi
 
12522
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
 
12523
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
 
12524
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
 
12525
  INTELCC="yes"
 
12526
else
 
12527
  INTELCC="no"
 
12528
fi
 
12529
 
 
12530
        if test "x$GCC" = xyes ; then
 
12531
                STRICT_CFLAGS="-pedantic -Werror"
 
12532
        elif test "x$SUNCC" = "xyes"; then
 
12533
                STRICT_CFLAGS="-errwarn"
 
12534
    elif test "x$INTELCC" = "xyes"; then
 
12535
                STRICT_CFLAGS="-Werror"
 
12536
        fi
 
12537
fi
 
12538
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
12539
 
 
12540
 
 
12541
 
 
12542
 
 
12543
# Check whether --with-release-version was given.
 
12544
if test "${with_release_version+set}" = set; then
 
12545
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
12546
else
 
12547
  RELEASE_VERSION=""
 
12548
fi
 
12549
 
 
12550
        if test "x$RELEASE_VERSION" != "x"; then
 
12551
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
12552
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
12553
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
12554
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
12555
        fi
 
12556
 
 
12557
cat >>confdefs.h <<_ACEOF
 
12558
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
12559
_ACEOF
 
12560
 
 
12561
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
12562
        if test "x$PVM" = "x"; then
 
12563
                PVM="0"
 
12564
        fi
 
12565
 
 
12566
cat >>confdefs.h <<_ACEOF
 
12567
#define PACKAGE_VERSION_MINOR $PVM
 
12568
_ACEOF
 
12569
 
 
12570
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
12571
        if test "x$PVP" = "x"; then
 
12572
                PVP="0"
 
12573
        fi
 
12574
 
 
12575
cat >>confdefs.h <<_ACEOF
 
12576
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
12577
_ACEOF
 
12578
 
 
12579
 
 
12580
 
 
12581
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
 
12582
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
 
12583
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
 
12584
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
12585
 
 
12586
 
 
12587
 
 
12588
 
 
12589
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
 
12590
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
 
12591
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
 
12592
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
 
12593
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
 
12594
 
 
12595
 
 
12596
 
 
12597
 
 
12598
 
 
12599
if test x$APP_MAN_SUFFIX = x    ; then
 
12600
    APP_MAN_SUFFIX=1
 
12601
fi
 
12602
if test x$APP_MAN_DIR = x    ; then
 
12603
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
12604
fi
 
12605
 
 
12606
if test x$LIB_MAN_SUFFIX = x    ; then
 
12607
    LIB_MAN_SUFFIX=3
 
12608
fi
 
12609
if test x$LIB_MAN_DIR = x    ; then
 
12610
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
12611
fi
 
12612
 
 
12613
if test x$FILE_MAN_SUFFIX = x    ; then
 
12614
    case $host_os in
 
12615
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
12616
        *)              FILE_MAN_SUFFIX=5  ;;
 
12617
    esac
 
12618
fi
 
12619
if test x$FILE_MAN_DIR = x    ; then
 
12620
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
12621
fi
 
12622
 
 
12623
if test x$MISC_MAN_SUFFIX = x    ; then
 
12624
    case $host_os in
 
12625
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
12626
        *)              MISC_MAN_SUFFIX=7  ;;
 
12627
    esac
 
12628
fi
 
12629
if test x$MISC_MAN_DIR = x    ; then
 
12630
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
12631
fi
 
12632
 
 
12633
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
12634
    case $host_os in
 
12635
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
12636
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
12637
    esac
 
12638
fi
 
12639
if test x$DRIVER_MAN_DIR = x    ; then
 
12640
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
12641
fi
 
12642
 
 
12643
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
12644
    case $host_os in
 
12645
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
12646
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
12647
    esac
 
12648
fi
 
12649
if test x$ADMIN_MAN_DIR = x    ; then
 
12650
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
12651
fi
 
12652
 
 
12653
 
 
12654
 
 
12655
 
 
12656
 
 
12657
 
 
12658
 
 
12659
 
 
12660
 
 
12661
 
 
12662
 
 
12663
 
 
12664
 
 
12665
 
 
12666
 
 
12667
# Check whether --enable-silent-rules was given.
 
12668
if test "${enable_silent_rules+set}" = set; then
 
12669
  enableval=$enable_silent_rules;
 
12670
fi
 
12671
 
 
12672
case $enable_silent_rules in
 
12673
yes) AM_DEFAULT_VERBOSITY=0;;
 
12674
no)  AM_DEFAULT_VERBOSITY=1;;
 
12675
*)   AM_DEFAULT_VERBOSITY=0;;
 
12676
esac
 
12677
AM_BACKSLASH='\'
 
12678
 
 
12679
 
 
12680
 
 
12681
{ $as_echo "$as_me:$LINENO: checking which optional backends will be build" >&5
 
12682
$as_echo_n "checking which optional backends will be build... " >&6; }
 
12683
case "${host}" in
 
12684
*linux*)
 
12685
        { $as_echo "$as_me:$LINENO: result: eventcomm" >&5
 
12686
$as_echo "eventcomm" >&6; }
 
12687
        BUILD_EVENTCOMM="yes"
 
12688
        BUILD_PSMCOMM="no"
 
12689
        ;;
 
12690
*freebsd* | *openbsd* | *netbsd* | *dragonfly*)
 
12691
        { $as_echo "$as_me:$LINENO: result: psmcomm" >&5
 
12692
$as_echo "psmcomm" >&6; }
 
12693
        BUILD_EVENTCOMM="no"
 
12694
        BUILD_PSMCOMM="yes"
 
12695
        ;;
 
12696
*)
 
12697
        { $as_echo "$as_me:$LINENO: result: none" >&5
 
12698
$as_echo "none" >&6; }
 
12699
        BUILD_EVENTCOMM="no"
 
12700
        BUILD_PSMCOMM="no"
 
12701
        ;;
 
12702
esac
 
12703
 if test "x${BUILD_EVENTCOMM}" = "xyes"; then
 
12704
  BUILD_EVENTCOMM_TRUE=
 
12705
  BUILD_EVENTCOMM_FALSE='#'
 
12706
else
 
12707
  BUILD_EVENTCOMM_TRUE='#'
 
12708
  BUILD_EVENTCOMM_FALSE=
 
12709
fi
 
12710
 
 
12711
if test "x${BUILD_EVENTCOMM}" = "xyes" ; then
 
12712
 
 
12713
cat >>confdefs.h <<\_ACEOF
 
12714
#define BUILD_EVENTCOMM 1
 
12715
_ACEOF
 
12716
 
 
12717
fi
 
12718
 if test "x${BUILD_PSMCOMM}" = "xyes"; then
 
12719
  BUILD_PSMCOMM_TRUE=
 
12720
  BUILD_PSMCOMM_FALSE='#'
 
12721
else
 
12722
  BUILD_PSMCOMM_TRUE='#'
 
12723
  BUILD_PSMCOMM_FALSE=
 
12724
fi
 
12725
 
 
12726
if test "x${BUILD_PSMCOMM}" = "xyes" ; then
 
12727
 
 
12728
cat >>confdefs.h <<\_ACEOF
 
12729
#define BUILD_PSMCOMM 1
 
12730
_ACEOF
 
12731
 
 
12732
fi
 
12733
 
 
12734
 
 
12735
# Check whether --with-xorg-module-dir was given.
 
12736
if test "${with_xorg_module_dir+set}" = set; then
 
12737
  withval=$with_xorg_module_dir; moduledir="$withval"
 
12738
else
 
12739
  moduledir="$libdir/xorg/modules"
 
12740
fi
 
12741
 
 
12742
inputdir=${moduledir}/input
 
12743
 
 
12744
 
 
12745
# Checks for extensions
 
12746
 
 
12747
 
 
12748
        SAVE_CFLAGS="$CFLAGS"
 
12749
        CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
 
12750
        cat >conftest.$ac_ext <<_ACEOF
 
12751
/* confdefs.h.  */
 
12752
_ACEOF
 
12753
cat confdefs.h >>conftest.$ac_ext
 
12754
cat >>conftest.$ac_ext <<_ACEOF
 
12755
/* end confdefs.h.  */
 
12756
 
 
12757
#include "xorg-server.h"
 
12758
#if !defined XINPUT
 
12759
#error XINPUT not defined
 
12760
#endif
 
12761
 
 
12762
int
 
12763
main ()
 
12764
{
 
12765
 
 
12766
  ;
 
12767
  return 0;
 
12768
}
 
12769
_ACEOF
 
12770
rm -f conftest.$ac_objext
 
12771
if { (ac_try="$ac_compile"
 
12772
case "(($ac_try" in
 
12773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12774
  *) ac_try_echo=$ac_try;;
 
12775
esac
 
12776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12777
$as_echo "$ac_try_echo") >&5
 
12778
  (eval "$ac_compile") 2>conftest.er1
 
12779
  ac_status=$?
 
12780
  grep -v '^ *+' conftest.er1 >conftest.err
 
12781
  rm -f conftest.er1
 
12782
  cat conftest.err >&5
 
12783
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12784
  (exit $ac_status); } && {
 
12785
         test -z "$ac_c_werror_flag" ||
 
12786
         test ! -s conftest.err
 
12787
       } && test -s conftest.$ac_objext; then
 
12788
  _EXT_CHECK=yes
 
12789
else
 
12790
  $as_echo "$as_me: failed program was:" >&5
 
12791
sed 's/^/| /' conftest.$ac_ext >&5
 
12792
 
 
12793
        _EXT_CHECK=no
 
12794
fi
 
12795
 
 
12796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12797
        CFLAGS="$SAVE_CFLAGS"
 
12798
        { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
 
12799
$as_echo_n "checking if XINPUT is defined... " >&6; }
 
12800
        { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
 
12801
$as_echo "$_EXT_CHECK" >&6; }
 
12802
        if test "$_EXT_CHECK" != no; then
 
12803
                REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
 
12804
        fi
 
12805
 
 
12806
 
 
12807
# Checks for pkg-config packages
 
12808
 
 
12809
pkg_failed=no
 
12810
{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
 
12811
$as_echo_n "checking for XORG... " >&6; }
 
12812
 
 
12813
if test -n "$XORG_CFLAGS"; then
 
12814
    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
 
12815
 elif test -n "$PKG_CONFIG"; then
 
12816
    if test -n "$PKG_CONFIG" && \
 
12817
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
 
12818
  ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
 
12819
  ac_status=$?
 
12820
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12821
  (exit $ac_status); }; then
 
12822
  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
 
12823
else
 
12824
  pkg_failed=yes
 
12825
fi
 
12826
 else
 
12827
    pkg_failed=untried
 
12828
fi
 
12829
if test -n "$XORG_LIBS"; then
 
12830
    pkg_cv_XORG_LIBS="$XORG_LIBS"
 
12831
 elif test -n "$PKG_CONFIG"; then
 
12832
    if test -n "$PKG_CONFIG" && \
 
12833
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
 
12834
  ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
 
12835
  ac_status=$?
 
12836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12837
  (exit $ac_status); }; then
 
12838
  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
 
12839
else
 
12840
  pkg_failed=yes
 
12841
fi
 
12842
 else
 
12843
    pkg_failed=untried
 
12844
fi
 
12845
 
 
12846
 
 
12847
 
 
12848
if test $pkg_failed = yes; then
 
12849
 
 
12850
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12851
        _pkg_short_errors_supported=yes
 
12852
else
 
12853
        _pkg_short_errors_supported=no
 
12854
fi
 
12855
        if test $_pkg_short_errors_supported = yes; then
 
12856
                XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
 
12857
        else
 
12858
                XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
 
12859
        fi
 
12860
        # Put the nasty error message in config.log where it belongs
 
12861
        echo "$XORG_PKG_ERRORS" >&5
 
12862
 
 
12863
        { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
 
12864
 
 
12865
$XORG_PKG_ERRORS
 
12866
 
 
12867
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12868
installed software in a non-standard prefix.
 
12869
 
 
12870
Alternatively, you may set the environment variables XORG_CFLAGS
 
12871
and XORG_LIBS to avoid the need to call pkg-config.
 
12872
See the pkg-config man page for more details.
 
12873
" >&5
 
12874
$as_echo "$as_me: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
 
12875
 
 
12876
$XORG_PKG_ERRORS
 
12877
 
 
12878
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12879
installed software in a non-standard prefix.
 
12880
 
 
12881
Alternatively, you may set the environment variables XORG_CFLAGS
 
12882
and XORG_LIBS to avoid the need to call pkg-config.
 
12883
See the pkg-config man page for more details.
 
12884
" >&2;}
 
12885
   { (exit 1); exit 1; }; }
 
12886
elif test $pkg_failed = untried; then
 
12887
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
12888
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12889
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
12890
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12891
path to pkg-config.
 
12892
 
 
12893
Alternatively, you may set the environment variables XORG_CFLAGS
 
12894
and XORG_LIBS to avoid the need to call pkg-config.
 
12895
See the pkg-config man page for more details.
 
12896
 
 
12897
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12898
See \`config.log' for more details." >&5
 
12899
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
12900
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12901
path to pkg-config.
 
12902
 
 
12903
Alternatively, you may set the environment variables XORG_CFLAGS
 
12904
and XORG_LIBS to avoid the need to call pkg-config.
 
12905
See the pkg-config man page for more details.
 
12906
 
 
12907
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12908
See \`config.log' for more details." >&2;}
 
12909
   { (exit 1); exit 1; }; }; }
 
12910
else
 
12911
        XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
 
12912
        XORG_LIBS=$pkg_cv_XORG_LIBS
 
12913
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
12914
$as_echo "yes" >&6; }
 
12915
        :
 
12916
fi
 
12917
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
 
12918
 
 
12919
 
 
12920
 
 
12921
pkg_failed=no
 
12922
{ $as_echo "$as_me:$LINENO: checking for XORG16" >&5
 
12923
$as_echo_n "checking for XORG16... " >&6; }
 
12924
 
 
12925
if test -n "$XORG16_CFLAGS"; then
 
12926
    pkg_cv_XORG16_CFLAGS="$XORG16_CFLAGS"
 
12927
 elif test -n "$PKG_CONFIG"; then
 
12928
    if test -n "$PKG_CONFIG" && \
 
12929
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6\"") >&5
 
12930
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6") 2>&5
 
12931
  ac_status=$?
 
12932
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12933
  (exit $ac_status); }; then
 
12934
  pkg_cv_XORG16_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6" 2>/dev/null`
 
12935
else
 
12936
  pkg_failed=yes
 
12937
fi
 
12938
 else
 
12939
    pkg_failed=untried
 
12940
fi
 
12941
if test -n "$XORG16_LIBS"; then
 
12942
    pkg_cv_XORG16_LIBS="$XORG16_LIBS"
 
12943
 elif test -n "$PKG_CONFIG"; then
 
12944
    if test -n "$PKG_CONFIG" && \
 
12945
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6\"") >&5
 
12946
  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6") 2>&5
 
12947
  ac_status=$?
 
12948
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12949
  (exit $ac_status); }; then
 
12950
  pkg_cv_XORG16_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6" 2>/dev/null`
 
12951
else
 
12952
  pkg_failed=yes
 
12953
fi
 
12954
 else
 
12955
    pkg_failed=untried
 
12956
fi
 
12957
 
 
12958
 
 
12959
 
 
12960
if test $pkg_failed = yes; then
 
12961
 
 
12962
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12963
        _pkg_short_errors_supported=yes
 
12964
else
 
12965
        _pkg_short_errors_supported=no
 
12966
fi
 
12967
        if test $_pkg_short_errors_supported = yes; then
 
12968
                XORG16_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6" 2>&1`
 
12969
        else
 
12970
                XORG16_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6" 2>&1`
 
12971
        fi
 
12972
        # Put the nasty error message in config.log where it belongs
 
12973
        echo "$XORG16_PKG_ERRORS" >&5
 
12974
 
 
12975
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
12976
$as_echo "no" >&6; }
 
12977
                HAVE_PROPERTIES="no"
 
12978
elif test $pkg_failed = untried; then
 
12979
        HAVE_PROPERTIES="no"
 
12980
else
 
12981
        XORG16_CFLAGS=$pkg_cv_XORG16_CFLAGS
 
12982
        XORG16_LIBS=$pkg_cv_XORG16_LIBS
 
12983
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
12984
$as_echo "yes" >&6; }
 
12985
        HAVE_PROPERTIES="yes";
 
12986
cat >>confdefs.h <<\_ACEOF
 
12987
#define HAVE_PROPERTIES 1
 
12988
_ACEOF
 
12989
 
 
12990
fi;
 
12991
 if  test "$HAVE_PROPERTIES" = "yes" ; then
 
12992
  HAVE_PROPERTIES_TRUE=
 
12993
  HAVE_PROPERTIES_FALSE='#'
 
12994
else
 
12995
  HAVE_PROPERTIES_TRUE='#'
 
12996
  HAVE_PROPERTIES_FALSE=
 
12997
fi
 
12998
 
 
12999
 
 
13000
 
 
13001
CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
 
13002
 
 
13003
 
 
13004
# Checks for libraries.
 
13005
# Check whether --enable-tools was given.
 
13006
if test "${enable_tools+set}" = set; then
 
13007
  enableval=$enable_tools; build_tools="$enableval"
 
13008
else
 
13009
  build_tools="auto"
 
13010
fi
 
13011
 
 
13012
 
 
13013
if test "x$build_tools" != "xno"; then
 
13014
    # Record.h is either in recordproto up to 1.13.2 or in libXtst 1.1.
 
13015
 
 
13016
pkg_failed=no
 
13017
{ $as_echo "$as_me:$LINENO: checking for XTST_1_1" >&5
 
13018
$as_echo_n "checking for XTST_1_1... " >&6; }
 
13019
 
 
13020
if test -n "$XTST_1_1_CFLAGS"; then
 
13021
    pkg_cv_XTST_1_1_CFLAGS="$XTST_1_1_CFLAGS"
 
13022
 elif test -n "$PKG_CONFIG"; then
 
13023
    if test -n "$PKG_CONFIG" && \
 
13024
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst >= 1.0.99.1\"") >&5
 
13025
  ($PKG_CONFIG --exists --print-errors "xtst >= 1.0.99.1") 2>&5
 
13026
  ac_status=$?
 
13027
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13028
  (exit $ac_status); }; then
 
13029
  pkg_cv_XTST_1_1_CFLAGS=`$PKG_CONFIG --cflags "xtst >= 1.0.99.1" 2>/dev/null`
 
13030
else
 
13031
  pkg_failed=yes
 
13032
fi
 
13033
 else
 
13034
    pkg_failed=untried
 
13035
fi
 
13036
if test -n "$XTST_1_1_LIBS"; then
 
13037
    pkg_cv_XTST_1_1_LIBS="$XTST_1_1_LIBS"
 
13038
 elif test -n "$PKG_CONFIG"; then
 
13039
    if test -n "$PKG_CONFIG" && \
 
13040
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst >= 1.0.99.1\"") >&5
 
13041
  ($PKG_CONFIG --exists --print-errors "xtst >= 1.0.99.1") 2>&5
 
13042
  ac_status=$?
 
13043
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13044
  (exit $ac_status); }; then
 
13045
  pkg_cv_XTST_1_1_LIBS=`$PKG_CONFIG --libs "xtst >= 1.0.99.1" 2>/dev/null`
 
13046
else
 
13047
  pkg_failed=yes
 
13048
fi
 
13049
 else
 
13050
    pkg_failed=untried
 
13051
fi
 
13052
 
 
13053
 
 
13054
 
 
13055
if test $pkg_failed = yes; then
 
13056
 
 
13057
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13058
        _pkg_short_errors_supported=yes
 
13059
else
 
13060
        _pkg_short_errors_supported=no
 
13061
fi
 
13062
        if test $_pkg_short_errors_supported = yes; then
 
13063
                XTST_1_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst >= 1.0.99.1" 2>&1`
 
13064
        else
 
13065
                XTST_1_1_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst >= 1.0.99.1" 2>&1`
 
13066
        fi
 
13067
        # Put the nasty error message in config.log where it belongs
 
13068
        echo "$XTST_1_1_PKG_ERRORS" >&5
 
13069
 
 
13070
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
13071
$as_echo "no" >&6; }
 
13072
                HAVE_LIBXTST="no"
 
13073
elif test $pkg_failed = untried; then
 
13074
        HAVE_LIBXTST="no"
 
13075
else
 
13076
        XTST_1_1_CFLAGS=$pkg_cv_XTST_1_1_CFLAGS
 
13077
        XTST_1_1_LIBS=$pkg_cv_XTST_1_1_LIBS
 
13078
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
13079
$as_echo "yes" >&6; }
 
13080
        HAVE_LIBXTST="yes"
 
13081
fi
 
13082
 
 
13083
pkg_failed=no
 
13084
{ $as_echo "$as_me:$LINENO: checking for RECORDPROTO_1_13" >&5
 
13085
$as_echo_n "checking for RECORDPROTO_1_13... " >&6; }
 
13086
 
 
13087
if test -n "$RECORDPROTO_1_13_CFLAGS"; then
 
13088
    pkg_cv_RECORDPROTO_1_13_CFLAGS="$RECORDPROTO_1_13_CFLAGS"
 
13089
 elif test -n "$PKG_CONFIG"; then
 
13090
    if test -n "$PKG_CONFIG" && \
 
13091
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst recordproto < 1.13.99.1\"") >&5
 
13092
  ($PKG_CONFIG --exists --print-errors "xtst recordproto < 1.13.99.1") 2>&5
 
13093
  ac_status=$?
 
13094
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13095
  (exit $ac_status); }; then
 
13096
  pkg_cv_RECORDPROTO_1_13_CFLAGS=`$PKG_CONFIG --cflags "xtst recordproto < 1.13.99.1" 2>/dev/null`
 
13097
else
 
13098
  pkg_failed=yes
 
13099
fi
 
13100
 else
 
13101
    pkg_failed=untried
 
13102
fi
 
13103
if test -n "$RECORDPROTO_1_13_LIBS"; then
 
13104
    pkg_cv_RECORDPROTO_1_13_LIBS="$RECORDPROTO_1_13_LIBS"
 
13105
 elif test -n "$PKG_CONFIG"; then
 
13106
    if test -n "$PKG_CONFIG" && \
 
13107
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst recordproto < 1.13.99.1\"") >&5
 
13108
  ($PKG_CONFIG --exists --print-errors "xtst recordproto < 1.13.99.1") 2>&5
 
13109
  ac_status=$?
 
13110
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13111
  (exit $ac_status); }; then
 
13112
  pkg_cv_RECORDPROTO_1_13_LIBS=`$PKG_CONFIG --libs "xtst recordproto < 1.13.99.1" 2>/dev/null`
 
13113
else
 
13114
  pkg_failed=yes
 
13115
fi
 
13116
 else
 
13117
    pkg_failed=untried
 
13118
fi
 
13119
 
 
13120
 
 
13121
 
 
13122
if test $pkg_failed = yes; then
 
13123
 
 
13124
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13125
        _pkg_short_errors_supported=yes
 
13126
else
 
13127
        _pkg_short_errors_supported=no
 
13128
fi
 
13129
        if test $_pkg_short_errors_supported = yes; then
 
13130
                RECORDPROTO_1_13_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst recordproto < 1.13.99.1" 2>&1`
 
13131
        else
 
13132
                RECORDPROTO_1_13_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst recordproto < 1.13.99.1" 2>&1`
 
13133
        fi
 
13134
        # Put the nasty error message in config.log where it belongs
 
13135
        echo "$RECORDPROTO_1_13_PKG_ERRORS" >&5
 
13136
 
 
13137
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
13138
$as_echo "no" >&6; }
 
13139
                HAVE_RECORDPROTO="no"
 
13140
elif test $pkg_failed = untried; then
 
13141
        HAVE_RECORDPROTO="no"
 
13142
else
 
13143
        RECORDPROTO_1_13_CFLAGS=$pkg_cv_RECORDPROTO_1_13_CFLAGS
 
13144
        RECORDPROTO_1_13_LIBS=$pkg_cv_RECORDPROTO_1_13_LIBS
 
13145
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
13146
$as_echo "yes" >&6; }
 
13147
        HAVE_RECORDPROTO="yes"
 
13148
fi
 
13149
 
 
13150
    if test "x$HAVE_LIBXTST" = "xyes" || test "x$HAVE_RECORDPROTO" = "xyes" ; then
 
13151
 
 
13152
cat >>confdefs.h <<\_ACEOF
 
13153
#define HAVE_XRECORD /**/
 
13154
_ACEOF
 
13155
 
 
13156
    fi
 
13157
 
 
13158
 
 
13159
pkg_failed=no
 
13160
{ $as_echo "$as_me:$LINENO: checking for XI" >&5
 
13161
$as_echo_n "checking for XI... " >&6; }
 
13162
 
 
13163
if test -n "$XI_CFLAGS"; then
 
13164
    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
 
13165
 elif test -n "$PKG_CONFIG"; then
 
13166
    if test -n "$PKG_CONFIG" && \
 
13167
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xi >= 1.2 xorg-server >= 1.6\"") >&5
 
13168
  ($PKG_CONFIG --exists --print-errors "x11 xi >= 1.2 xorg-server >= 1.6") 2>&5
 
13169
  ac_status=$?
 
13170
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13171
  (exit $ac_status); }; then
 
13172
  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "x11 xi >= 1.2 xorg-server >= 1.6" 2>/dev/null`
 
13173
else
 
13174
  pkg_failed=yes
 
13175
fi
 
13176
 else
 
13177
    pkg_failed=untried
 
13178
fi
 
13179
if test -n "$XI_LIBS"; then
 
13180
    pkg_cv_XI_LIBS="$XI_LIBS"
 
13181
 elif test -n "$PKG_CONFIG"; then
 
13182
    if test -n "$PKG_CONFIG" && \
 
13183
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xi >= 1.2 xorg-server >= 1.6\"") >&5
 
13184
  ($PKG_CONFIG --exists --print-errors "x11 xi >= 1.2 xorg-server >= 1.6") 2>&5
 
13185
  ac_status=$?
 
13186
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13187
  (exit $ac_status); }; then
 
13188
  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "x11 xi >= 1.2 xorg-server >= 1.6" 2>/dev/null`
 
13189
else
 
13190
  pkg_failed=yes
 
13191
fi
 
13192
 else
 
13193
    pkg_failed=untried
 
13194
fi
 
13195
 
 
13196
 
 
13197
 
 
13198
if test $pkg_failed = yes; then
 
13199
 
 
13200
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13201
        _pkg_short_errors_supported=yes
 
13202
else
 
13203
        _pkg_short_errors_supported=no
 
13204
fi
 
13205
        if test $_pkg_short_errors_supported = yes; then
 
13206
                XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xi >= 1.2 xorg-server >= 1.6" 2>&1`
 
13207
        else
 
13208
                XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xi >= 1.2 xorg-server >= 1.6" 2>&1`
 
13209
        fi
 
13210
        # Put the nasty error message in config.log where it belongs
 
13211
        echo "$XI_PKG_ERRORS" >&5
 
13212
 
 
13213
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
13214
$as_echo "no" >&6; }
 
13215
                BUILD_TOOLS="no";
 
13216
                      if test "x$build_tools" = "xyes"; then
 
13217
                          { { $as_echo "$as_me:$LINENO: error: Dependencies failed for synclient and syndaemon." >&5
 
13218
$as_echo "$as_me: error: Dependencies failed for synclient and syndaemon." >&2;}
 
13219
   { (exit 1); exit 1; }; }
 
13220
                      else
 
13221
                          { $as_echo "$as_me:$LINENO: WARNING: Not building synclient and syndaemon." >&5
 
13222
$as_echo "$as_me: WARNING: Not building synclient and syndaemon." >&2;}
 
13223
                      fi
 
13224
 
 
13225
elif test $pkg_failed = untried; then
 
13226
        BUILD_TOOLS="no";
 
13227
                      if test "x$build_tools" = "xyes"; then
 
13228
                          { { $as_echo "$as_me:$LINENO: error: Dependencies failed for synclient and syndaemon." >&5
 
13229
$as_echo "$as_me: error: Dependencies failed for synclient and syndaemon." >&2;}
 
13230
   { (exit 1); exit 1; }; }
 
13231
                      else
 
13232
                          { $as_echo "$as_me:$LINENO: WARNING: Not building synclient and syndaemon." >&5
 
13233
$as_echo "$as_me: WARNING: Not building synclient and syndaemon." >&2;}
 
13234
                      fi
 
13235
 
 
13236
else
 
13237
        XI_CFLAGS=$pkg_cv_XI_CFLAGS
 
13238
        XI_LIBS=$pkg_cv_XI_LIBS
 
13239
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
13240
$as_echo "yes" >&6; }
 
13241
        BUILD_TOOLS="yes";
 
13242
cat >>confdefs.h <<\_ACEOF
 
13243
#define BUILD_TOOLS 1
 
13244
_ACEOF
 
13245
 
 
13246
fi
 
13247
fi
 
13248
 if  test "$BUILD_TOOLS" = "yes" ; then
 
13249
  BUILD_TOOLS_TRUE=
 
13250
  BUILD_TOOLS_FALSE='#'
 
13251
else
 
13252
  BUILD_TOOLS_TRUE='#'
 
13253
  BUILD_TOOLS_FALSE=
 
13254
fi
 
13255
 
 
13256
 
 
13257
 
 
13258
# Checks for header files.
 
13259
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
13260
$as_echo_n "checking for ANSI C header files... " >&6; }
 
13261
if test "${ac_cv_header_stdc+set}" = set; then
 
13262
  $as_echo_n "(cached) " >&6
 
13263
else
 
13264
  cat >conftest.$ac_ext <<_ACEOF
 
13265
/* confdefs.h.  */
 
13266
_ACEOF
 
13267
cat confdefs.h >>conftest.$ac_ext
 
13268
cat >>conftest.$ac_ext <<_ACEOF
 
13269
/* end confdefs.h.  */
 
13270
#include <stdlib.h>
 
13271
#include <stdarg.h>
 
13272
#include <string.h>
 
13273
#include <float.h>
 
13274
 
 
13275
int
 
13276
main ()
 
13277
{
 
13278
 
 
13279
  ;
 
13280
  return 0;
 
13281
}
 
13282
_ACEOF
 
13283
rm -f conftest.$ac_objext
 
13284
if { (ac_try="$ac_compile"
 
13285
case "(($ac_try" in
 
13286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13287
  *) ac_try_echo=$ac_try;;
 
13288
esac
 
13289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13290
$as_echo "$ac_try_echo") >&5
 
13291
  (eval "$ac_compile") 2>conftest.er1
 
13292
  ac_status=$?
 
13293
  grep -v '^ *+' conftest.er1 >conftest.err
 
13294
  rm -f conftest.er1
 
13295
  cat conftest.err >&5
 
13296
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13297
  (exit $ac_status); } && {
 
13298
         test -z "$ac_c_werror_flag" ||
 
13299
         test ! -s conftest.err
 
13300
       } && test -s conftest.$ac_objext; then
 
13301
  ac_cv_header_stdc=yes
 
13302
else
 
13303
  $as_echo "$as_me: failed program was:" >&5
 
13304
sed 's/^/| /' conftest.$ac_ext >&5
 
13305
 
 
13306
        ac_cv_header_stdc=no
 
13307
fi
 
13308
 
 
13309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13310
 
 
13311
if test $ac_cv_header_stdc = yes; then
 
13312
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
13313
  cat >conftest.$ac_ext <<_ACEOF
 
13314
/* confdefs.h.  */
 
13315
_ACEOF
 
13316
cat confdefs.h >>conftest.$ac_ext
 
13317
cat >>conftest.$ac_ext <<_ACEOF
 
13318
/* end confdefs.h.  */
 
13319
#include <string.h>
 
13320
 
 
13321
_ACEOF
 
13322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13323
  $EGREP "memchr" >/dev/null 2>&1; then
 
13324
  :
 
13325
else
 
13326
  ac_cv_header_stdc=no
 
13327
fi
 
13328
rm -f conftest*
 
13329
 
 
13330
fi
 
13331
 
 
13332
if test $ac_cv_header_stdc = yes; then
 
13333
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
13334
  cat >conftest.$ac_ext <<_ACEOF
 
13335
/* confdefs.h.  */
 
13336
_ACEOF
 
13337
cat confdefs.h >>conftest.$ac_ext
 
13338
cat >>conftest.$ac_ext <<_ACEOF
 
13339
/* end confdefs.h.  */
 
13340
#include <stdlib.h>
 
13341
 
 
13342
_ACEOF
 
13343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13344
  $EGREP "free" >/dev/null 2>&1; then
 
13345
  :
 
13346
else
 
13347
  ac_cv_header_stdc=no
 
13348
fi
 
13349
rm -f conftest*
 
13350
 
 
13351
fi
 
13352
 
 
13353
if test $ac_cv_header_stdc = yes; then
 
13354
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
13355
  if test "$cross_compiling" = yes; then
 
13356
  :
 
13357
else
 
13358
  cat >conftest.$ac_ext <<_ACEOF
 
13359
/* confdefs.h.  */
 
13360
_ACEOF
 
13361
cat confdefs.h >>conftest.$ac_ext
 
13362
cat >>conftest.$ac_ext <<_ACEOF
 
13363
/* end confdefs.h.  */
 
13364
#include <ctype.h>
 
13365
#include <stdlib.h>
 
13366
#if ((' ' & 0x0FF) == 0x020)
 
13367
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
13368
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
13369
#else
 
13370
# define ISLOWER(c) \
 
13371
                   (('a' <= (c) && (c) <= 'i') \
 
13372
                     || ('j' <= (c) && (c) <= 'r') \
 
13373
                     || ('s' <= (c) && (c) <= 'z'))
 
13374
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
13375
#endif
 
13376
 
 
13377
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
13378
int
 
13379
main ()
 
13380
{
 
13381
  int i;
 
13382
  for (i = 0; i < 256; i++)
 
13383
    if (XOR (islower (i), ISLOWER (i))
 
13384
        || toupper (i) != TOUPPER (i))
 
13385
      return 2;
 
13386
  return 0;
 
13387
}
 
13388
_ACEOF
 
13389
rm -f conftest$ac_exeext
 
13390
if { (ac_try="$ac_link"
 
13391
case "(($ac_try" in
 
13392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13393
  *) ac_try_echo=$ac_try;;
 
13394
esac
 
13395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13396
$as_echo "$ac_try_echo") >&5
 
13397
  (eval "$ac_link") 2>&5
 
13398
  ac_status=$?
 
13399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13400
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13401
  { (case "(($ac_try" in
 
13402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13403
  *) ac_try_echo=$ac_try;;
 
13404
esac
 
13405
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13406
$as_echo "$ac_try_echo") >&5
 
13407
  (eval "$ac_try") 2>&5
 
13408
  ac_status=$?
 
13409
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13410
  (exit $ac_status); }; }; then
 
13411
  :
 
13412
else
 
13413
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
13414
$as_echo "$as_me: failed program was:" >&5
 
13415
sed 's/^/| /' conftest.$ac_ext >&5
 
13416
 
 
13417
( exit $ac_status )
 
13418
ac_cv_header_stdc=no
 
13419
fi
 
13420
rm -rf conftest.dSYM
 
13421
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13422
fi
 
13423
 
 
13424
 
 
13425
fi
 
13426
fi
 
13427
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
13428
$as_echo "$ac_cv_header_stdc" >&6; }
 
13429
if test $ac_cv_header_stdc = yes; then
 
13430
 
 
13431
cat >>confdefs.h <<\_ACEOF
 
13432
#define STDC_HEADERS 1
 
13433
_ACEOF
 
13434
 
 
13435
fi
 
13436
 
 
13437
 
 
13438
 
 
13439
 
 
13440
 
 
13441
if test x$APP_MAN_SUFFIX = x    ; then
 
13442
    APP_MAN_SUFFIX=1
 
13443
fi
 
13444
if test x$APP_MAN_DIR = x    ; then
 
13445
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
13446
fi
 
13447
 
 
13448
if test x$LIB_MAN_SUFFIX = x    ; then
 
13449
    LIB_MAN_SUFFIX=3
 
13450
fi
 
13451
if test x$LIB_MAN_DIR = x    ; then
 
13452
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
13453
fi
 
13454
 
 
13455
if test x$FILE_MAN_SUFFIX = x    ; then
 
13456
    case $host_os in
 
13457
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
13458
        *)              FILE_MAN_SUFFIX=5  ;;
 
13459
    esac
 
13460
fi
 
13461
if test x$FILE_MAN_DIR = x    ; then
 
13462
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
13463
fi
 
13464
 
 
13465
if test x$MISC_MAN_SUFFIX = x    ; then
 
13466
    case $host_os in
 
13467
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
13468
        *)              MISC_MAN_SUFFIX=7  ;;
 
13469
    esac
 
13470
fi
 
13471
if test x$MISC_MAN_DIR = x    ; then
 
13472
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
13473
fi
 
13474
 
 
13475
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
13476
    case $host_os in
 
13477
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
13478
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
13479
    esac
 
13480
fi
 
13481
if test x$DRIVER_MAN_DIR = x    ; then
 
13482
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
13483
fi
 
13484
 
 
13485
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
13486
    case $host_os in
 
13487
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
13488
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
13489
    esac
 
13490
fi
 
13491
if test x$ADMIN_MAN_DIR = x    ; then
 
13492
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
13493
fi
 
13494
 
 
13495
 
 
13496
 
 
13497
 
 
13498
 
 
13499
 
 
13500
 
 
13501
 
 
13502
 
 
13503
 
 
13504
 
 
13505
 
 
13506
 
 
13507
 
 
13508
 
 
13509
 
 
13510
 
 
13511
# Check whether --with-release-version was given.
 
13512
if test "${with_release_version+set}" = set; then
 
13513
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
13514
else
 
13515
  RELEASE_VERSION=""
 
13516
fi
 
13517
 
 
13518
        if test "x$RELEASE_VERSION" != "x"; then
 
13519
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
13520
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
13521
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
13522
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
13523
        fi
 
13524
 
 
13525
cat >>confdefs.h <<_ACEOF
 
13526
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
13527
_ACEOF
 
13528
 
 
13529
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
13530
        if test "x$PVM" = "x"; then
 
13531
                PVM="0"
 
13532
        fi
 
13533
 
 
13534
cat >>confdefs.h <<_ACEOF
 
13535
#define PACKAGE_VERSION_MINOR $PVM
 
13536
_ACEOF
 
13537
 
 
13538
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
13539
        if test "x$PVP" = "x"; then
 
13540
                PVP="0"
 
13541
        fi
 
13542
 
 
13543
cat >>confdefs.h <<_ACEOF
 
13544
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
13545
_ACEOF
 
13546
 
 
13547
 
 
13548
 
 
13549
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile fdi/Makefile include/Makefile xorg-synaptics.pc"
 
13550
 
 
13551
cat >confcache <<\_ACEOF
 
13552
# This file is a shell script that caches the results of configure
 
13553
# tests run on this system so they can be shared between configure
 
13554
# scripts and configure runs, see configure's option --config-cache.
 
13555
# It is not useful on other systems.  If it contains results you don't
 
13556
# want to keep, you may remove or edit it.
 
13557
#
 
13558
# config.status only pays attention to the cache file if you give it
 
13559
# the --recheck option to rerun configure.
 
13560
#
 
13561
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13562
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13563
# following values.
 
13564
 
 
13565
_ACEOF
 
13566
 
 
13567
# The following way of writing the cache mishandles newlines in values,
 
13568
# but we know of no workaround that is simple, portable, and efficient.
 
13569
# So, we kill variables containing newlines.
 
13570
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13571
# and sets the high bit in the cache file unless we assign to the vars.
 
13572
(
 
13573
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13574
    eval ac_val=\$$ac_var
 
13575
    case $ac_val in #(
 
13576
    *${as_nl}*)
 
13577
      case $ac_var in #(
 
13578
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
13579
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13580
      esac
 
13581
      case $ac_var in #(
 
13582
      _ | IFS | as_nl) ;; #(
 
13583
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13584
      *) $as_unset $ac_var ;;
 
13585
      esac ;;
 
13586
    esac
 
13587
  done
 
13588
 
 
13589
  (set) 2>&1 |
 
13590
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13591
    *${as_nl}ac_space=\ *)
 
13592
      # `set' does not quote correctly, so add quotes (double-quote
 
13593
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
13594
      sed -n \
 
13595
        "s/'/'\\\\''/g;
 
13596
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13597
      ;; #(
 
13598
    *)
 
13599
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13600
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13601
      ;;
 
13602
    esac |
 
13603
    sort
 
13604
) |
 
13605
  sed '
 
13606
     /^ac_cv_env_/b end
 
13607
     t clear
 
13608
     :clear
 
13609
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13610
     t end
 
13611
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13612
     :end' >>confcache
 
13613
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13614
  if test -w "$cache_file"; then
 
13615
    test "x$cache_file" != "x/dev/null" &&
 
13616
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
13617
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13618
    cat confcache >$cache_file
 
13619
  else
 
13620
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
13621
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13622
  fi
 
13623
fi
 
13624
rm -f confcache
 
13625
 
 
13626
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13627
# Let make expand exec_prefix.
 
13628
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13629
 
 
13630
DEFS=-DHAVE_CONFIG_H
 
13631
 
 
13632
ac_libobjs=
 
13633
ac_ltlibobjs=
 
13634
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13635
  # 1. Remove the extension, and $U if already installed.
 
13636
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13637
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13638
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13639
  #    will be set to the directory where LIBOBJS objects are built.
 
13640
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13641
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
13642
done
 
13643
LIBOBJS=$ac_libobjs
 
13644
 
 
13645
LTLIBOBJS=$ac_ltlibobjs
 
13646
 
 
13647
 
 
13648
 if test -n "$EXEEXT"; then
 
13649
  am__EXEEXT_TRUE=
 
13650
  am__EXEEXT_FALSE='#'
 
13651
else
 
13652
  am__EXEEXT_TRUE='#'
 
13653
  am__EXEEXT_FALSE=
 
13654
fi
 
13655
 
 
13656
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
13657
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
13658
Usually this means the macro was only invoked conditionally." >&5
 
13659
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
13660
Usually this means the macro was only invoked conditionally." >&2;}
 
13661
   { (exit 1); exit 1; }; }
 
13662
fi
 
13663
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13664
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
13665
Usually this means the macro was only invoked conditionally." >&5
 
13666
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
13667
Usually this means the macro was only invoked conditionally." >&2;}
 
13668
   { (exit 1); exit 1; }; }
 
13669
fi
 
13670
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13671
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
13672
Usually this means the macro was only invoked conditionally." >&5
 
13673
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
13674
Usually this means the macro was only invoked conditionally." >&2;}
 
13675
   { (exit 1); exit 1; }; }
 
13676
fi
 
13677
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13678
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
13679
Usually this means the macro was only invoked conditionally." >&5
 
13680
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
13681
Usually this means the macro was only invoked conditionally." >&2;}
 
13682
   { (exit 1); exit 1; }; }
 
13683
fi
 
13684
if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
 
13685
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EVENTCOMM\" was never defined.
 
13686
Usually this means the macro was only invoked conditionally." >&5
 
13687
$as_echo "$as_me: error: conditional \"BUILD_EVENTCOMM\" was never defined.
 
13688
Usually this means the macro was only invoked conditionally." >&2;}
 
13689
   { (exit 1); exit 1; }; }
 
13690
fi
 
13691
if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
 
13692
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PSMCOMM\" was never defined.
 
13693
Usually this means the macro was only invoked conditionally." >&5
 
13694
$as_echo "$as_me: error: conditional \"BUILD_PSMCOMM\" was never defined.
 
13695
Usually this means the macro was only invoked conditionally." >&2;}
 
13696
   { (exit 1); exit 1; }; }
 
13697
fi
 
13698
if test -z "${HAVE_PROPERTIES_TRUE}" && test -z "${HAVE_PROPERTIES_FALSE}"; then
 
13699
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PROPERTIES\" was never defined.
 
13700
Usually this means the macro was only invoked conditionally." >&5
 
13701
$as_echo "$as_me: error: conditional \"HAVE_PROPERTIES\" was never defined.
 
13702
Usually this means the macro was only invoked conditionally." >&2;}
 
13703
   { (exit 1); exit 1; }; }
 
13704
fi
 
13705
if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
 
13706
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TOOLS\" was never defined.
 
13707
Usually this means the macro was only invoked conditionally." >&5
 
13708
$as_echo "$as_me: error: conditional \"BUILD_TOOLS\" was never defined.
 
13709
Usually this means the macro was only invoked conditionally." >&2;}
 
13710
   { (exit 1); exit 1; }; }
 
13711
fi
 
13712
 
 
13713
: ${CONFIG_STATUS=./config.status}
 
13714
ac_write_fail=0
 
13715
ac_clean_files_save=$ac_clean_files
 
13716
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13717
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
13718
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13719
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13720
#! $SHELL
 
13721
# Generated by $as_me.
 
13722
# Run this file to recreate the current configuration.
 
13723
# Compiler output produced by configure, useful for debugging
 
13724
# configure, is in config.log if it exists.
 
13725
 
 
13726
debug=false
 
13727
ac_cs_recheck=false
 
13728
ac_cs_silent=false
 
13729
SHELL=\${CONFIG_SHELL-$SHELL}
 
13730
_ACEOF
 
13731
 
 
13732
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13733
## --------------------- ##
 
13734
## M4sh Initialization.  ##
 
13735
## --------------------- ##
 
13736
 
 
13737
# Be more Bourne compatible
 
13738
DUALCASE=1; export DUALCASE # for MKS sh
 
13739
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
13740
  emulate sh
 
13741
  NULLCMD=:
 
13742
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13743
  # is contrary to our usage.  Disable this feature.
 
13744
  alias -g '${1+"$@"}'='"$@"'
 
13745
  setopt NO_GLOB_SUBST
 
13746
else
 
13747
  case `(set -o) 2>/dev/null` in
 
13748
  *posix*) set -o posix ;;
 
13749
esac
 
13750
 
 
13751
fi
 
13752
 
 
13753
 
 
13754
 
 
13755
 
 
13756
# PATH needs CR
 
13757
# Avoid depending upon Character Ranges.
 
13758
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13759
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13760
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13761
as_cr_digits='0123456789'
 
13762
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13763
 
 
13764
as_nl='
 
13765
'
 
13766
export as_nl
 
13767
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13768
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13769
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13770
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13771
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13772
  as_echo='printf %s\n'
 
13773
  as_echo_n='printf %s'
 
13774
else
 
13775
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13776
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13777
    as_echo_n='/usr/ucb/echo -n'
 
13778
  else
 
13779
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13780
    as_echo_n_body='eval
 
13781
      arg=$1;
 
13782
      case $arg in
 
13783
      *"$as_nl"*)
 
13784
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13785
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13786
      esac;
 
13787
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13788
    '
 
13789
    export as_echo_n_body
 
13790
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13791
  fi
 
13792
  export as_echo_body
 
13793
  as_echo='sh -c $as_echo_body as_echo'
 
13794
fi
 
13795
 
 
13796
# The user is always right.
 
13797
if test "${PATH_SEPARATOR+set}" != set; then
 
13798
  PATH_SEPARATOR=:
 
13799
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13800
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13801
      PATH_SEPARATOR=';'
 
13802
  }
 
13803
fi
 
13804
 
 
13805
# Support unset when possible.
 
13806
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
13807
  as_unset=unset
 
13808
else
 
13809
  as_unset=false
 
13810
fi
 
13811
 
 
13812
 
 
13813
# IFS
 
13814
# We need space, tab and new line, in precisely that order.  Quoting is
 
13815
# there to prevent editors from complaining about space-tab.
 
13816
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13817
# splitting by setting IFS to empty value.)
 
13818
IFS=" ""        $as_nl"
 
13819
 
 
13820
# Find who we are.  Look in the path if we contain no directory separator.
 
13821
case $0 in
 
13822
  *[\\/]* ) as_myself=$0 ;;
 
13823
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13824
for as_dir in $PATH
 
13825
do
 
13826
  IFS=$as_save_IFS
 
13827
  test -z "$as_dir" && as_dir=.
 
13828
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13829
done
 
13830
IFS=$as_save_IFS
 
13831
 
 
13832
     ;;
 
13833
esac
 
13834
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13835
# in which case we are not to be found in the path.
 
13836
if test "x$as_myself" = x; then
 
13837
  as_myself=$0
 
13838
fi
 
13839
if test ! -f "$as_myself"; then
 
13840
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13841
  { (exit 1); exit 1; }
 
13842
fi
 
13843
 
 
13844
# Work around bugs in pre-3.0 UWIN ksh.
 
13845
for as_var in ENV MAIL MAILPATH
 
13846
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13847
done
 
13848
PS1='$ '
 
13849
PS2='> '
 
13850
PS4='+ '
 
13851
 
 
13852
# NLS nuisances.
 
13853
LC_ALL=C
 
13854
export LC_ALL
 
13855
LANGUAGE=C
 
13856
export LANGUAGE
 
13857
 
 
13858
# Required to use basename.
 
13859
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13860
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13861
  as_expr=expr
 
13862
else
 
13863
  as_expr=false
 
13864
fi
 
13865
 
 
13866
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13867
  as_basename=basename
 
13868
else
 
13869
  as_basename=false
 
13870
fi
 
13871
 
 
13872
 
 
13873
# Name of the executable.
 
13874
as_me=`$as_basename -- "$0" ||
 
13875
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13876
         X"$0" : 'X\(//\)$' \| \
 
13877
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13878
$as_echo X/"$0" |
 
13879
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13880
            s//\1/
 
13881
            q
 
13882
          }
 
13883
          /^X\/\(\/\/\)$/{
 
13884
            s//\1/
 
13885
            q
 
13886
          }
 
13887
          /^X\/\(\/\).*/{
 
13888
            s//\1/
 
13889
            q
 
13890
          }
 
13891
          s/.*/./; q'`
 
13892
 
 
13893
# CDPATH.
 
13894
$as_unset CDPATH
 
13895
 
 
13896
 
 
13897
 
 
13898
  as_lineno_1=$LINENO
 
13899
  as_lineno_2=$LINENO
 
13900
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13901
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
13902
 
 
13903
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
13904
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
13905
  # line-number line after each line using $LINENO; the second 'sed'
 
13906
  # does the real work.  The second script uses 'N' to pair each
 
13907
  # line-number line with the line containing $LINENO, and appends
 
13908
  # trailing '-' during substitution so that $LINENO is not a special
 
13909
  # case at line end.
 
13910
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
13911
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
13912
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
13913
  sed -n '
 
13914
    p
 
13915
    /[$]LINENO/=
 
13916
  ' <$as_myself |
 
13917
    sed '
 
13918
      s/[$]LINENO.*/&-/
 
13919
      t lineno
 
13920
      b
 
13921
      :lineno
 
13922
      N
 
13923
      :loop
 
13924
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
13925
      t loop
 
13926
      s/-\n.*//
 
13927
    ' >$as_me.lineno &&
 
13928
  chmod +x "$as_me.lineno" ||
 
13929
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
13930
   { (exit 1); exit 1; }; }
 
13931
 
 
13932
  # Don't try to exec as it changes $[0], causing all sort of problems
 
13933
  # (the dirname of $[0] is not the place where we might find the
 
13934
  # original and so on.  Autoconf is especially sensitive to this).
 
13935
  . "./$as_me.lineno"
 
13936
  # Exit status is that of the last command.
 
13937
  exit
 
13938
}
 
13939
 
 
13940
 
 
13941
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13942
  as_dirname=dirname
 
13943
else
 
13944
  as_dirname=false
 
13945
fi
 
13946
 
 
13947
ECHO_C= ECHO_N= ECHO_T=
 
13948
case `echo -n x` in
 
13949
-n*)
 
13950
  case `echo 'x\c'` in
 
13951
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13952
  *)   ECHO_C='\c';;
 
13953
  esac;;
 
13954
*)
 
13955
  ECHO_N='-n';;
 
13956
esac
 
13957
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13958
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13959
  as_expr=expr
 
13960
else
 
13961
  as_expr=false
 
13962
fi
 
13963
 
 
13964
rm -f conf$$ conf$$.exe conf$$.file
 
13965
if test -d conf$$.dir; then
 
13966
  rm -f conf$$.dir/conf$$.file
 
13967
else
 
13968
  rm -f conf$$.dir
 
13969
  mkdir conf$$.dir 2>/dev/null
 
13970
fi
 
13971
if (echo >conf$$.file) 2>/dev/null; then
 
13972
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13973
    as_ln_s='ln -s'
 
13974
    # ... but there are two gotchas:
 
13975
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13976
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13977
    # In both cases, we have to default to `cp -p'.
 
13978
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13979
      as_ln_s='cp -p'
 
13980
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13981
    as_ln_s=ln
 
13982
  else
 
13983
    as_ln_s='cp -p'
 
13984
  fi
 
13985
else
 
13986
  as_ln_s='cp -p'
 
13987
fi
 
13988
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13989
rmdir conf$$.dir 2>/dev/null
 
13990
 
 
13991
if mkdir -p . 2>/dev/null; then
 
13992
  as_mkdir_p=:
 
13993
else
 
13994
  test -d ./-p && rmdir ./-p
 
13995
  as_mkdir_p=false
 
13996
fi
 
13997
 
 
13998
if test -x / >/dev/null 2>&1; then
 
13999
  as_test_x='test -x'
 
14000
else
 
14001
  if ls -dL / >/dev/null 2>&1; then
 
14002
    as_ls_L_option=L
 
14003
  else
 
14004
    as_ls_L_option=
 
14005
  fi
 
14006
  as_test_x='
 
14007
    eval sh -c '\''
 
14008
      if test -d "$1"; then
 
14009
        test -d "$1/.";
 
14010
      else
 
14011
        case $1 in
 
14012
        -*)set "./$1";;
 
14013
        esac;
 
14014
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
14015
        ???[sx]*):;;*)false;;esac;fi
 
14016
    '\'' sh
 
14017
  '
 
14018
fi
 
14019
as_executable_p=$as_test_x
 
14020
 
 
14021
# Sed expression to map a string onto a valid CPP name.
 
14022
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14023
 
 
14024
# Sed expression to map a string onto a valid variable name.
 
14025
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14026
 
 
14027
 
 
14028
exec 6>&1
 
14029
 
 
14030
# Save the log message, to keep $[0] and so on meaningful, and to
 
14031
# report actual input values of CONFIG_FILES etc. instead of their
 
14032
# values after options handling.
 
14033
ac_log="
 
14034
This file was extended by xf86-input-synaptics $as_me 1.2.2, which was
 
14035
generated by GNU Autoconf 2.63.  Invocation command line was
 
14036
 
 
14037
  CONFIG_FILES    = $CONFIG_FILES
 
14038
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14039
  CONFIG_LINKS    = $CONFIG_LINKS
 
14040
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14041
  $ $0 $@
 
14042
 
 
14043
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14044
"
 
14045
 
 
14046
_ACEOF
 
14047
 
 
14048
case $ac_config_files in *"
 
14049
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14050
esac
 
14051
 
 
14052
case $ac_config_headers in *"
 
14053
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14054
esac
 
14055
 
 
14056
 
 
14057
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14058
# Files that config.status was made for.
 
14059
config_files="$ac_config_files"
 
14060
config_headers="$ac_config_headers"
 
14061
config_commands="$ac_config_commands"
 
14062
 
 
14063
_ACEOF
 
14064
 
 
14065
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14066
ac_cs_usage="\
 
14067
\`$as_me' instantiates files from templates according to the
 
14068
current configuration.
 
14069
 
 
14070
Usage: $0 [OPTION]... [FILE]...
 
14071
 
 
14072
  -h, --help       print this help, then exit
 
14073
  -V, --version    print version number and configuration settings, then exit
 
14074
  -q, --quiet, --silent
 
14075
                   do not print progress messages
 
14076
  -d, --debug      don't remove temporary files
 
14077
      --recheck    update $as_me by reconfiguring in the same conditions
 
14078
      --file=FILE[:TEMPLATE]
 
14079
                   instantiate the configuration file FILE
 
14080
      --header=FILE[:TEMPLATE]
 
14081
                   instantiate the configuration header FILE
 
14082
 
 
14083
Configuration files:
 
14084
$config_files
 
14085
 
 
14086
Configuration headers:
 
14087
$config_headers
 
14088
 
 
14089
Configuration commands:
 
14090
$config_commands
 
14091
 
 
14092
Report bugs to <bug-autoconf@gnu.org>."
 
14093
 
 
14094
_ACEOF
 
14095
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14096
ac_cs_version="\\
 
14097
xf86-input-synaptics config.status 1.2.2
 
14098
configured by $0, generated by GNU Autoconf 2.63,
 
14099
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
14100
 
 
14101
Copyright (C) 2008 Free Software Foundation, Inc.
 
14102
This config.status script is free software; the Free Software Foundation
 
14103
gives unlimited permission to copy, distribute and modify it."
 
14104
 
 
14105
ac_pwd='$ac_pwd'
 
14106
srcdir='$srcdir'
 
14107
INSTALL='$INSTALL'
 
14108
MKDIR_P='$MKDIR_P'
 
14109
AWK='$AWK'
 
14110
test -n "\$AWK" || AWK=awk
 
14111
_ACEOF
 
14112
 
 
14113
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14114
# The default lists apply if the user does not specify any file.
 
14115
ac_need_defaults=:
 
14116
while test $# != 0
 
14117
do
 
14118
  case $1 in
 
14119
  --*=*)
 
14120
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14121
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
14122
    ac_shift=:
 
14123
    ;;
 
14124
  *)
 
14125
    ac_option=$1
 
14126
    ac_optarg=$2
 
14127
    ac_shift=shift
 
14128
    ;;
 
14129
  esac
 
14130
 
 
14131
  case $ac_option in
 
14132
  # Handling of the options.
 
14133
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14134
    ac_cs_recheck=: ;;
 
14135
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14136
    $as_echo "$ac_cs_version"; exit ;;
 
14137
  --debug | --debu | --deb | --de | --d | -d )
 
14138
    debug=: ;;
 
14139
  --file | --fil | --fi | --f )
 
14140
    $ac_shift
 
14141
    case $ac_optarg in
 
14142
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14143
    esac
 
14144
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
14145
    ac_need_defaults=false;;
 
14146
  --header | --heade | --head | --hea )
 
14147
    $ac_shift
 
14148
    case $ac_optarg in
 
14149
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14150
    esac
 
14151
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
14152
    ac_need_defaults=false;;
 
14153
  --he | --h)
 
14154
    # Conflict between --help and --header
 
14155
    { $as_echo "$as_me: error: ambiguous option: $1
 
14156
Try \`$0 --help' for more information." >&2
 
14157
   { (exit 1); exit 1; }; };;
 
14158
  --help | --hel | -h )
 
14159
    $as_echo "$ac_cs_usage"; exit ;;
 
14160
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14161
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14162
    ac_cs_silent=: ;;
 
14163
 
 
14164
  # This is an error.
 
14165
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
14166
Try \`$0 --help' for more information." >&2
 
14167
   { (exit 1); exit 1; }; } ;;
 
14168
 
 
14169
  *) ac_config_targets="$ac_config_targets $1"
 
14170
     ac_need_defaults=false ;;
 
14171
 
 
14172
  esac
 
14173
  shift
 
14174
done
 
14175
 
 
14176
ac_configure_extra_args=
 
14177
 
 
14178
if $ac_cs_silent; then
 
14179
  exec 6>/dev/null
 
14180
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14181
fi
 
14182
 
 
14183
_ACEOF
 
14184
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14185
if \$ac_cs_recheck; then
 
14186
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14187
  shift
 
14188
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14189
  CONFIG_SHELL='$SHELL'
 
14190
  export CONFIG_SHELL
 
14191
  exec "\$@"
 
14192
fi
 
14193
 
 
14194
_ACEOF
 
14195
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14196
exec 5>>config.log
 
14197
{
 
14198
  echo
 
14199
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14200
## Running $as_me. ##
 
14201
_ASBOX
 
14202
  $as_echo "$ac_log"
 
14203
} >&5
 
14204
 
 
14205
_ACEOF
 
14206
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14207
#
 
14208
# INIT-COMMANDS
 
14209
#
 
14210
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14211
 
 
14212
 
 
14213
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14214
# if CDPATH is set.
 
14215
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14216
 
 
14217
sed_quote_subst='$sed_quote_subst'
 
14218
double_quote_subst='$double_quote_subst'
 
14219
delay_variable_subst='$delay_variable_subst'
 
14220
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14221
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14222
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
14223
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
14224
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
14225
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
14226
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14227
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
14228
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14229
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14230
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
14231
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14232
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
14233
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
14234
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14235
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14236
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14237
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
14238
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
14239
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
14240
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
14241
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
14242
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
14243
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
14244
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
14245
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
14246
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14247
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14248
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
14249
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
14250
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
14251
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
14252
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14253
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
14254
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
14255
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14256
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14257
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14258
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
14259
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14260
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
14261
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
14262
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
14263
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
14264
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
14265
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14266
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
14267
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
14268
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
14269
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
14270
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14271
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
14272
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
14273
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14274
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
14275
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
14276
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
14277
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
14278
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
14279
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
14280
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
14281
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
14282
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14283
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14284
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
14285
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
14286
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14287
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14288
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
14289
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14290
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14291
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14292
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14293
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14294
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14295
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14296
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14297
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14298
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14299
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14300
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
14301
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
14302
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
14303
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
14304
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14305
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
14306
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14307
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
14308
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
14309
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
14310
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14311
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14312
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14313
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14314
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14315
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
14316
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14317
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14318
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
14319
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14320
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14321
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14322
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14323
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14324
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14325
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14326
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14327
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14328
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
14329
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
14330
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14331
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14332
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
14333
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
14334
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
14335
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14336
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14337
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14338
 
 
14339
LTCC='$LTCC'
 
14340
LTCFLAGS='$LTCFLAGS'
 
14341
compiler='$compiler_DEFAULT'
 
14342
 
 
14343
# Quote evaled strings.
 
14344
for var in SED \
 
14345
GREP \
 
14346
EGREP \
 
14347
FGREP \
 
14348
LD \
 
14349
NM \
 
14350
LN_S \
 
14351
lt_SP2NL \
 
14352
lt_NL2SP \
 
14353
reload_flag \
 
14354
OBJDUMP \
 
14355
deplibs_check_method \
 
14356
file_magic_cmd \
 
14357
AR \
 
14358
AR_FLAGS \
 
14359
STRIP \
 
14360
RANLIB \
 
14361
CC \
 
14362
CFLAGS \
 
14363
compiler \
 
14364
lt_cv_sys_global_symbol_pipe \
 
14365
lt_cv_sys_global_symbol_to_cdecl \
 
14366
lt_cv_sys_global_symbol_to_c_name_address \
 
14367
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14368
SHELL \
 
14369
ECHO \
 
14370
lt_prog_compiler_no_builtin_flag \
 
14371
lt_prog_compiler_wl \
 
14372
lt_prog_compiler_pic \
 
14373
lt_prog_compiler_static \
 
14374
lt_cv_prog_compiler_c_o \
 
14375
need_locks \
 
14376
DSYMUTIL \
 
14377
NMEDIT \
 
14378
LIPO \
 
14379
OTOOL \
 
14380
OTOOL64 \
 
14381
shrext_cmds \
 
14382
export_dynamic_flag_spec \
 
14383
whole_archive_flag_spec \
 
14384
compiler_needs_object \
 
14385
with_gnu_ld \
 
14386
allow_undefined_flag \
 
14387
no_undefined_flag \
 
14388
hardcode_libdir_flag_spec \
 
14389
hardcode_libdir_flag_spec_ld \
 
14390
hardcode_libdir_separator \
 
14391
fix_srcfile_path \
 
14392
exclude_expsyms \
 
14393
include_expsyms \
 
14394
file_list_spec \
 
14395
variables_saved_for_relink \
 
14396
libname_spec \
 
14397
library_names_spec \
 
14398
soname_spec \
 
14399
finish_eval \
 
14400
old_striplib \
 
14401
striplib; do
 
14402
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14403
    *[\\\\\\\`\\"\\\$]*)
 
14404
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14405
      ;;
 
14406
    *)
 
14407
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14408
      ;;
 
14409
    esac
 
14410
done
 
14411
 
 
14412
# Double-quote double-evaled strings.
 
14413
for var in reload_cmds \
 
14414
old_postinstall_cmds \
 
14415
old_postuninstall_cmds \
 
14416
old_archive_cmds \
 
14417
extract_expsyms_cmds \
 
14418
old_archive_from_new_cmds \
 
14419
old_archive_from_expsyms_cmds \
 
14420
archive_cmds \
 
14421
archive_expsym_cmds \
 
14422
module_cmds \
 
14423
module_expsym_cmds \
 
14424
export_symbols_cmds \
 
14425
prelink_cmds \
 
14426
postinstall_cmds \
 
14427
postuninstall_cmds \
 
14428
finish_cmds \
 
14429
sys_lib_search_path_spec \
 
14430
sys_lib_dlsearch_path_spec; do
 
14431
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14432
    *[\\\\\\\`\\"\\\$]*)
 
14433
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14434
      ;;
 
14435
    *)
 
14436
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14437
      ;;
 
14438
    esac
 
14439
done
 
14440
 
 
14441
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
14442
case \$lt_ECHO in
 
14443
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
14444
  ;;
 
14445
esac
 
14446
 
 
14447
ac_aux_dir='$ac_aux_dir'
 
14448
xsi_shell='$xsi_shell'
 
14449
lt_shell_append='$lt_shell_append'
 
14450
 
 
14451
# See if we are running on zsh, and set the options which allow our
 
14452
# commands through without removal of \ escapes INIT.
 
14453
if test -n "\${ZSH_VERSION+set}" ; then
 
14454
   setopt NO_GLOB_SUBST
 
14455
fi
 
14456
 
 
14457
 
 
14458
    PACKAGE='$PACKAGE'
 
14459
    VERSION='$VERSION'
 
14460
    TIMESTAMP='$TIMESTAMP'
 
14461
    RM='$RM'
 
14462
    ofile='$ofile'
 
14463
 
 
14464
 
 
14465
 
 
14466
 
 
14467
_ACEOF
 
14468
 
 
14469
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14470
 
 
14471
# Handling of arguments.
 
14472
for ac_config_target in $ac_config_targets
 
14473
do
 
14474
  case $ac_config_target in
 
14475
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
14476
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14477
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
14478
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14479
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
14480
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
14481
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
14482
    "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
 
14483
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
14484
    "xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
 
14485
 
 
14486
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
14487
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
14488
   { (exit 1); exit 1; }; };;
 
14489
  esac
 
14490
done
 
14491
 
 
14492
 
 
14493
# If the user did not use the arguments to specify the items to instantiate,
 
14494
# then the envvar interface is used.  Set only those that are not.
 
14495
# We use the long form for the default assignment because of an extremely
 
14496
# bizarre bug on SunOS 4.1.3.
 
14497
if $ac_need_defaults; then
 
14498
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14499
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
14500
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14501
fi
 
14502
 
 
14503
# Have a temporary directory for convenience.  Make it in the build tree
 
14504
# simply because there is no reason against having it here, and in addition,
 
14505
# creating and moving files from /tmp can sometimes cause problems.
 
14506
# Hook for its removal unless debugging.
 
14507
# Note that there is a small window in which the directory will not be cleaned:
 
14508
# after its creation but before its name has been assigned to `$tmp'.
 
14509
$debug ||
 
14510
{
 
14511
  tmp=
 
14512
  trap 'exit_status=$?
 
14513
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
14514
' 0
 
14515
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
14516
}
 
14517
# Create a (secure) tmp directory for tmp files.
 
14518
 
 
14519
{
 
14520
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14521
  test -n "$tmp" && test -d "$tmp"
 
14522
}  ||
 
14523
{
 
14524
  tmp=./conf$$-$RANDOM
 
14525
  (umask 077 && mkdir "$tmp")
 
14526
} ||
 
14527
{
 
14528
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
14529
   { (exit 1); exit 1; }
 
14530
}
 
14531
 
 
14532
# Set up the scripts for CONFIG_FILES section.
 
14533
# No need to generate them if there are no CONFIG_FILES.
 
14534
# This happens for instance with `./config.status config.h'.
 
14535
if test -n "$CONFIG_FILES"; then
 
14536
 
 
14537
 
 
14538
ac_cr='
 
 
b"'"
 
14539
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14540
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14541
  ac_cs_awk_cr='\\r'
 
14542
else
 
14543
  ac_cs_awk_cr=$ac_cr
 
14544
fi
 
14545
 
 
14546
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
14547
_ACEOF
 
14548
 
 
14549
 
 
14550
{
 
14551
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14552
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14553
  echo "_ACEOF"
 
14554
} >conf$$subs.sh ||
 
14555
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14556
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14557
   { (exit 1); exit 1; }; }
 
14558
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
14559
ac_delim='%!_!# '
 
14560
for ac_last_try in false false false false false :; do
 
14561
  . ./conf$$subs.sh ||
 
14562
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14563
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14564
   { (exit 1); exit 1; }; }
 
14565
 
 
14566
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14567
  if test $ac_delim_n = $ac_delim_num; then
 
14568
    break
 
14569
  elif $ac_last_try; then
 
14570
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14571
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14572
   { (exit 1); exit 1; }; }
 
14573
  else
 
14574
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14575
  fi
 
14576
done
 
14577
rm -f conf$$subs.sh
 
14578
 
 
14579
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14580
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
14581
_ACEOF
 
14582
sed -n '
 
14583
h
 
14584
s/^/S["/; s/!.*/"]=/
 
14585
p
 
14586
g
 
14587
s/^[^!]*!//
 
14588
:repl
 
14589
t repl
 
14590
s/'"$ac_delim"'$//
 
14591
t delim
 
14592
:nl
 
14593
h
 
14594
s/\(.\{148\}\).*/\1/
 
14595
t more1
 
14596
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14597
p
 
14598
n
 
14599
b repl
 
14600
:more1
 
14601
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14602
p
 
14603
g
 
14604
s/.\{148\}//
 
14605
t nl
 
14606
:delim
 
14607
h
 
14608
s/\(.\{148\}\).*/\1/
 
14609
t more2
 
14610
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14611
p
 
14612
b
 
14613
:more2
 
14614
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14615
p
 
14616
g
 
14617
s/.\{148\}//
 
14618
t delim
 
14619
' <conf$$subs.awk | sed '
 
14620
/^[^""]/{
 
14621
  N
 
14622
  s/\n//
 
14623
}
 
14624
' >>$CONFIG_STATUS || ac_write_fail=1
 
14625
rm -f conf$$subs.awk
 
14626
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14627
_ACAWK
 
14628
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
14629
  for (key in S) S_is_set[key] = 1
 
14630
  FS = ""
 
14631
 
 
14632
}
 
14633
{
 
14634
  line = $ 0
 
14635
  nfields = split(line, field, "@")
 
14636
  substed = 0
 
14637
  len = length(field[1])
 
14638
  for (i = 2; i < nfields; i++) {
 
14639
    key = field[i]
 
14640
    keylen = length(key)
 
14641
    if (S_is_set[key]) {
 
14642
      value = S[key]
 
14643
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14644
      len += length(value) + length(field[++i])
 
14645
      substed = 1
 
14646
    } else
 
14647
      len += 1 + keylen
 
14648
  }
 
14649
 
 
14650
  print line
 
14651
}
 
14652
 
 
14653
_ACAWK
 
14654
_ACEOF
 
14655
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14656
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14657
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14658
else
 
14659
  cat
 
14660
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
14661
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
14662
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
14663
   { (exit 1); exit 1; }; }
 
14664
_ACEOF
 
14665
 
 
14666
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
14667
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
14668
# trailing colons and then remove the whole line if VPATH becomes empty
 
14669
# (actually we leave an empty line to preserve line numbers).
 
14670
if test "x$srcdir" = x.; then
 
14671
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
14672
s/:*\$(srcdir):*/:/
 
14673
s/:*\${srcdir}:*/:/
 
14674
s/:*@srcdir@:*/:/
 
14675
s/^\([^=]*=[     ]*\):*/\1/
 
14676
s/:*$//
 
14677
s/^[^=]*=[       ]*$//
 
14678
}'
 
14679
fi
 
14680
 
 
14681
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14682
fi # test -n "$CONFIG_FILES"
 
14683
 
 
14684
# Set up the scripts for CONFIG_HEADERS section.
 
14685
# No need to generate them if there are no CONFIG_HEADERS.
 
14686
# This happens for instance with `./config.status Makefile'.
 
14687
if test -n "$CONFIG_HEADERS"; then
 
14688
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
14689
BEGIN {
 
14690
_ACEOF
 
14691
 
 
14692
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14693
# here-document in config.status, that substitutes the proper values into
 
14694
# config.h.in to produce config.h.
 
14695
 
 
14696
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14697
# handling of long lines.
 
14698
ac_delim='%!_!# '
 
14699
for ac_last_try in false false :; do
 
14700
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
14701
  if test -z "$ac_t"; then
 
14702
    break
 
14703
  elif $ac_last_try; then
 
14704
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
14705
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
14706
   { (exit 1); exit 1; }; }
 
14707
  else
 
14708
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14709
  fi
 
14710
done
 
14711
 
 
14712
# For the awk script, D is an array of macro values keyed by name,
 
14713
# likewise P contains macro parameters if any.  Preserve backslash
 
14714
# newline sequences.
 
14715
 
 
14716
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14717
sed -n '
 
14718
s/.\{148\}/&'"$ac_delim"'/g
 
14719
t rset
 
14720
:rset
 
14721
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14722
t def
 
14723
d
 
14724
:def
 
14725
s/\\$//
 
14726
t bsnl
 
14727
s/["\\]/\\&/g
 
14728
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14729
D["\1"]=" \3"/p
 
14730
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14731
d
 
14732
:bsnl
 
14733
s/["\\]/\\&/g
 
14734
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14735
D["\1"]=" \3\\\\\\n"\\/p
 
14736
t cont
 
14737
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14738
t cont
 
14739
d
 
14740
:cont
 
14741
n
 
14742
s/.\{148\}/&'"$ac_delim"'/g
 
14743
t clear
 
14744
:clear
 
14745
s/\\$//
 
14746
t bsnlc
 
14747
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14748
d
 
14749
:bsnlc
 
14750
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14751
b cont
 
14752
' <confdefs.h | sed '
 
14753
s/'"$ac_delim"'/"\\\
 
14754
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14755
 
 
14756
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14757
  for (key in D) D_is_set[key] = 1
 
14758
  FS = ""
 
14759
}
 
14760
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14761
  line = \$ 0
 
14762
  split(line, arg, " ")
 
14763
  if (arg[1] == "#") {
 
14764
    defundef = arg[2]
 
14765
    mac1 = arg[3]
 
14766
  } else {
 
14767
    defundef = substr(arg[1], 2)
 
14768
    mac1 = arg[2]
 
14769
  }
 
14770
  split(mac1, mac2, "(") #)
 
14771
  macro = mac2[1]
 
14772
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14773
  if (D_is_set[macro]) {
 
14774
    # Preserve the white space surrounding the "#".
 
14775
    print prefix "define", macro P[macro] D[macro]
 
14776
    next
 
14777
  } else {
 
14778
    # Replace #undef with comments.  This is necessary, for example,
 
14779
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14780
    # on some systems where configure will not decide to define it.
 
14781
    if (defundef == "undef") {
 
14782
      print "/*", prefix defundef, macro, "*/"
 
14783
      next
 
14784
    }
 
14785
  }
 
14786
}
 
14787
{ print }
 
14788
_ACAWK
 
14789
_ACEOF
 
14790
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14791
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
14792
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
14793
   { (exit 1); exit 1; }; }
 
14794
fi # test -n "$CONFIG_HEADERS"
 
14795
 
 
14796
 
 
14797
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14798
shift
 
14799
for ac_tag
 
14800
do
 
14801
  case $ac_tag in
 
14802
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14803
  esac
 
14804
  case $ac_mode$ac_tag in
 
14805
  :[FHL]*:*);;
 
14806
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
14807
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
14808
   { (exit 1); exit 1; }; };;
 
14809
  :[FH]-) ac_tag=-:-;;
 
14810
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14811
  esac
 
14812
  ac_save_IFS=$IFS
 
14813
  IFS=:
 
14814
  set x $ac_tag
 
14815
  IFS=$ac_save_IFS
 
14816
  shift
 
14817
  ac_file=$1
 
14818
  shift
 
14819
 
 
14820
  case $ac_mode in
 
14821
  :L) ac_source=$1;;
 
14822
  :[FH])
 
14823
    ac_file_inputs=
 
14824
    for ac_f
 
14825
    do
 
14826
      case $ac_f in
 
14827
      -) ac_f="$tmp/stdin";;
 
14828
      *) # Look for the file first in the build tree, then in the source tree
 
14829
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14830
         # because $ac_f cannot contain `:'.
 
14831
         test -f "$ac_f" ||
 
14832
           case $ac_f in
 
14833
           [\\/$]*) false;;
 
14834
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14835
           esac ||
 
14836
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
14837
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
14838
   { (exit 1); exit 1; }; };;
 
14839
      esac
 
14840
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14841
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
14842
    done
 
14843
 
 
14844
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14845
    # use $as_me), people would be surprised to read:
 
14846
    #    /* config.h.  Generated by config.status.  */
 
14847
    configure_input='Generated from '`
 
14848
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14849
        `' by configure.'
 
14850
    if test x"$ac_file" != x-; then
 
14851
      configure_input="$ac_file.  $configure_input"
 
14852
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
14853
$as_echo "$as_me: creating $ac_file" >&6;}
 
14854
    fi
 
14855
    # Neutralize special characters interpreted by sed in replacement strings.
 
14856
    case $configure_input in #(
 
14857
    *\&* | *\|* | *\\* )
 
14858
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14859
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14860
    *) ac_sed_conf_input=$configure_input;;
 
14861
    esac
 
14862
 
 
14863
    case $ac_tag in
 
14864
    *:-:* | *:-) cat >"$tmp/stdin" \
 
14865
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
14866
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
14867
   { (exit 1); exit 1; }; } ;;
 
14868
    esac
 
14869
    ;;
 
14870
  esac
 
14871
 
 
14872
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14873
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14874
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14875
         X"$ac_file" : 'X\(//\)$' \| \
 
14876
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14877
$as_echo X"$ac_file" |
 
14878
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14879
            s//\1/
 
14880
            q
 
14881
          }
 
14882
          /^X\(\/\/\)[^/].*/{
 
14883
            s//\1/
 
14884
            q
 
14885
          }
 
14886
          /^X\(\/\/\)$/{
 
14887
            s//\1/
 
14888
            q
 
14889
          }
 
14890
          /^X\(\/\).*/{
 
14891
            s//\1/
 
14892
            q
 
14893
          }
 
14894
          s/.*/./; q'`
 
14895
  { as_dir="$ac_dir"
 
14896
  case $as_dir in #(
 
14897
  -*) as_dir=./$as_dir;;
 
14898
  esac
 
14899
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
14900
    as_dirs=
 
14901
    while :; do
 
14902
      case $as_dir in #(
 
14903
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14904
      *) as_qdir=$as_dir;;
 
14905
      esac
 
14906
      as_dirs="'$as_qdir' $as_dirs"
 
14907
      as_dir=`$as_dirname -- "$as_dir" ||
 
14908
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14909
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14910
         X"$as_dir" : 'X\(//\)$' \| \
 
14911
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14912
$as_echo X"$as_dir" |
 
14913
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14914
            s//\1/
 
14915
            q
 
14916
          }
 
14917
          /^X\(\/\/\)[^/].*/{
 
14918
            s//\1/
 
14919
            q
 
14920
          }
 
14921
          /^X\(\/\/\)$/{
 
14922
            s//\1/
 
14923
            q
 
14924
          }
 
14925
          /^X\(\/\).*/{
 
14926
            s//\1/
 
14927
            q
 
14928
          }
 
14929
          s/.*/./; q'`
 
14930
      test -d "$as_dir" && break
 
14931
    done
 
14932
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14933
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
14934
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
14935
   { (exit 1); exit 1; }; }; }
 
14936
  ac_builddir=.
 
14937
 
 
14938
case "$ac_dir" in
 
14939
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14940
*)
 
14941
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14942
  # A ".." for each directory in $ac_dir_suffix.
 
14943
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14944
  case $ac_top_builddir_sub in
 
14945
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14946
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14947
  esac ;;
 
14948
esac
 
14949
ac_abs_top_builddir=$ac_pwd
 
14950
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14951
# for backward compatibility:
 
14952
ac_top_builddir=$ac_top_build_prefix
 
14953
 
 
14954
case $srcdir in
 
14955
  .)  # We are building in place.
 
14956
    ac_srcdir=.
 
14957
    ac_top_srcdir=$ac_top_builddir_sub
 
14958
    ac_abs_top_srcdir=$ac_pwd ;;
 
14959
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14960
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14961
    ac_top_srcdir=$srcdir
 
14962
    ac_abs_top_srcdir=$srcdir ;;
 
14963
  *) # Relative name.
 
14964
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14965
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14966
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14967
esac
 
14968
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14969
 
 
14970
 
 
14971
  case $ac_mode in
 
14972
  :F)
 
14973
  #
 
14974
  # CONFIG_FILE
 
14975
  #
 
14976
 
 
14977
  case $INSTALL in
 
14978
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14979
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14980
  esac
 
14981
  ac_MKDIR_P=$MKDIR_P
 
14982
  case $MKDIR_P in
 
14983
  [\\/$]* | ?:[\\/]* ) ;;
 
14984
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14985
  esac
 
14986
_ACEOF
 
14987
 
 
14988
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14989
# If the template does not know about datarootdir, expand it.
 
14990
# FIXME: This hack should be removed a few years after 2.60.
 
14991
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14992
 
 
14993
ac_sed_dataroot='
 
14994
/datarootdir/ {
 
14995
  p
 
14996
  q
 
14997
}
 
14998
/@datadir@/p
 
14999
/@docdir@/p
 
15000
/@infodir@/p
 
15001
/@localedir@/p
 
15002
/@mandir@/p
 
15003
'
 
15004
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
15005
*datarootdir*) ac_datarootdir_seen=yes;;
 
15006
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
15007
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15008
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15009
_ACEOF
 
15010
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15011
  ac_datarootdir_hack='
 
15012
  s&@datadir@&$datadir&g
 
15013
  s&@docdir@&$docdir&g
 
15014
  s&@infodir@&$infodir&g
 
15015
  s&@localedir@&$localedir&g
 
15016
  s&@mandir@&$mandir&g
 
15017
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
15018
esac
 
15019
_ACEOF
 
15020
 
 
15021
# Neutralize VPATH when `$srcdir' = `.'.
 
15022
# Shell code in configure.ac might set extrasub.
 
15023
# FIXME: do we really want to maintain this feature?
 
15024
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15025
ac_sed_extra="$ac_vpsub
 
15026
$extrasub
 
15027
_ACEOF
 
15028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15029
:t
 
15030
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
15031
s|@configure_input@|$ac_sed_conf_input|;t t
 
15032
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15033
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
15034
s&@srcdir@&$ac_srcdir&;t t
 
15035
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
15036
s&@top_srcdir@&$ac_top_srcdir&;t t
 
15037
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
15038
s&@builddir@&$ac_builddir&;t t
 
15039
s&@abs_builddir@&$ac_abs_builddir&;t t
 
15040
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
15041
s&@INSTALL@&$ac_INSTALL&;t t
 
15042
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
15043
$ac_datarootdir_hack
 
15044
"
 
15045
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
15046
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
15047
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
15048
   { (exit 1); exit 1; }; }
 
15049
 
 
15050
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
15051
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
15052
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
15053
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15054
which seems to be undefined.  Please make sure it is defined." >&5
 
15055
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15056
which seems to be undefined.  Please make sure it is defined." >&2;}
 
15057
 
 
15058
  rm -f "$tmp/stdin"
 
15059
  case $ac_file in
 
15060
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
15061
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
15062
  esac \
 
15063
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
15064
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
15065
   { (exit 1); exit 1; }; }
 
15066
 ;;
 
15067
  :H)
 
15068
  #
 
15069
  # CONFIG_HEADER
 
15070
  #
 
15071
  if test x"$ac_file" != x-; then
 
15072
    {
 
15073
      $as_echo "/* $configure_input  */" \
 
15074
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
15075
    } >"$tmp/config.h" \
 
15076
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
15077
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
15078
   { (exit 1); exit 1; }; }
 
15079
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
15080
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
15081
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
15082
    else
 
15083
      rm -f "$ac_file"
 
15084
      mv "$tmp/config.h" "$ac_file" \
 
15085
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
15086
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
15087
   { (exit 1); exit 1; }; }
 
15088
    fi
 
15089
  else
 
15090
    $as_echo "/* $configure_input  */" \
 
15091
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
15092
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
15093
$as_echo "$as_me: error: could not create -" >&2;}
 
15094
   { (exit 1); exit 1; }; }
 
15095
  fi
 
15096
# Compute "$ac_file"'s index in $config_headers.
 
15097
_am_arg="$ac_file"
 
15098
_am_stamp_count=1
 
15099
for _am_header in $config_headers :; do
 
15100
  case $_am_header in
 
15101
    $_am_arg | $_am_arg:* )
 
15102
      break ;;
 
15103
    * )
 
15104
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
15105
  esac
 
15106
done
 
15107
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
15108
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15109
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
15110
         X"$_am_arg" : 'X\(//\)$' \| \
 
15111
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
15112
$as_echo X"$_am_arg" |
 
15113
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15114
            s//\1/
 
15115
            q
 
15116
          }
 
15117
          /^X\(\/\/\)[^/].*/{
 
15118
            s//\1/
 
15119
            q
 
15120
          }
 
15121
          /^X\(\/\/\)$/{
 
15122
            s//\1/
 
15123
            q
 
15124
          }
 
15125
          /^X\(\/\).*/{
 
15126
            s//\1/
 
15127
            q
 
15128
          }
 
15129
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
15130
 ;;
 
15131
 
 
15132
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
15133
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
15134
 ;;
 
15135
  esac
 
15136
 
 
15137
 
 
15138
  case $ac_file$ac_mode in
 
15139
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15140
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
15141
  # are listed without --file.  Let's play safe and only enable the eval
 
15142
  # if we detect the quoting.
 
15143
  case $CONFIG_FILES in
 
15144
  *\'*) eval set x "$CONFIG_FILES" ;;
 
15145
  *)   set x $CONFIG_FILES ;;
 
15146
  esac
 
15147
  shift
 
15148
  for mf
 
15149
  do
 
15150
    # Strip MF so we end up with the name of the file.
 
15151
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15152
    # Check whether this is an Automake generated Makefile or not.
 
15153
    # We used to match only the files named `Makefile.in', but
 
15154
    # some people rename them; so instead we look at the file content.
 
15155
    # Grep'ing the first line is not enough: some people post-process
 
15156
    # each Makefile.in and add a new line on top of each file to say so.
 
15157
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15158
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15159
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15160
      dirpart=`$as_dirname -- "$mf" ||
 
15161
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15162
         X"$mf" : 'X\(//\)[^/]' \| \
 
15163
         X"$mf" : 'X\(//\)$' \| \
 
15164
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15165
$as_echo X"$mf" |
 
15166
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15167
            s//\1/
 
15168
            q
 
15169
          }
 
15170
          /^X\(\/\/\)[^/].*/{
 
15171
            s//\1/
 
15172
            q
 
15173
          }
 
15174
          /^X\(\/\/\)$/{
 
15175
            s//\1/
 
15176
            q
 
15177
          }
 
15178
          /^X\(\/\).*/{
 
15179
            s//\1/
 
15180
            q
 
15181
          }
 
15182
          s/.*/./; q'`
 
15183
    else
 
15184
      continue
 
15185
    fi
 
15186
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15187
    # from the Makefile without running `make'.
 
15188
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15189
    test -z "$DEPDIR" && continue
 
15190
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15191
    test -z "am__include" && continue
 
15192
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15193
    # When using ansi2knr, U may be empty or an underscore; expand it
 
15194
    U=`sed -n 's/^U = //p' < "$mf"`
 
15195
    # Find all dependency output files, they are included files with
 
15196
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15197
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15198
    # expansion.
 
15199
    for file in `sed -n "
 
15200
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15201
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
15202
      # Make sure the directory exists.
 
15203
      test -f "$dirpart/$file" && continue
 
15204
      fdir=`$as_dirname -- "$file" ||
 
15205
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15206
         X"$file" : 'X\(//\)[^/]' \| \
 
15207
         X"$file" : 'X\(//\)$' \| \
 
15208
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
15209
$as_echo X"$file" |
 
15210
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15211
            s//\1/
 
15212
            q
 
15213
          }
 
15214
          /^X\(\/\/\)[^/].*/{
 
15215
            s//\1/
 
15216
            q
 
15217
          }
 
15218
          /^X\(\/\/\)$/{
 
15219
            s//\1/
 
15220
            q
 
15221
          }
 
15222
          /^X\(\/\).*/{
 
15223
            s//\1/
 
15224
            q
 
15225
          }
 
15226
          s/.*/./; q'`
 
15227
      { as_dir=$dirpart/$fdir
 
15228
  case $as_dir in #(
 
15229
  -*) as_dir=./$as_dir;;
 
15230
  esac
 
15231
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
15232
    as_dirs=
 
15233
    while :; do
 
15234
      case $as_dir in #(
 
15235
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
15236
      *) as_qdir=$as_dir;;
 
15237
      esac
 
15238
      as_dirs="'$as_qdir' $as_dirs"
 
15239
      as_dir=`$as_dirname -- "$as_dir" ||
 
15240
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15241
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
15242
         X"$as_dir" : 'X\(//\)$' \| \
 
15243
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
15244
$as_echo X"$as_dir" |
 
15245
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15246
            s//\1/
 
15247
            q
 
15248
          }
 
15249
          /^X\(\/\/\)[^/].*/{
 
15250
            s//\1/
 
15251
            q
 
15252
          }
 
15253
          /^X\(\/\/\)$/{
 
15254
            s//\1/
 
15255
            q
 
15256
          }
 
15257
          /^X\(\/\).*/{
 
15258
            s//\1/
 
15259
            q
 
15260
          }
 
15261
          s/.*/./; q'`
 
15262
      test -d "$as_dir" && break
 
15263
    done
 
15264
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
15265
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
15266
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
15267
   { (exit 1); exit 1; }; }; }
 
15268
      # echo "creating $dirpart/$file"
 
15269
      echo '# dummy' > "$dirpart/$file"
 
15270
    done
 
15271
  done
 
15272
}
 
15273
 ;;
 
15274
    "libtool":C)
 
15275
 
 
15276
    # See if we are running on zsh, and set the options which allow our
 
15277
    # commands through without removal of \ escapes.
 
15278
    if test -n "${ZSH_VERSION+set}" ; then
 
15279
      setopt NO_GLOB_SUBST
 
15280
    fi
 
15281
 
 
15282
    cfgfile="${ofile}T"
 
15283
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15284
    $RM "$cfgfile"
 
15285
 
 
15286
    cat <<_LT_EOF >> "$cfgfile"
 
15287
#! $SHELL
 
15288
 
 
15289
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15290
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15291
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15292
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15293
#
 
15294
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15295
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
15296
#   Written by Gordon Matzigkeit, 1996
 
15297
#
 
15298
#   This file is part of GNU Libtool.
 
15299
#
 
15300
# GNU Libtool is free software; you can redistribute it and/or
 
15301
# modify it under the terms of the GNU General Public License as
 
15302
# published by the Free Software Foundation; either version 2 of
 
15303
# the License, or (at your option) any later version.
 
15304
#
 
15305
# As a special exception to the GNU General Public License,
 
15306
# if you distribute this file as part of a program or library that
 
15307
# is built using GNU Libtool, you may include this file under the
 
15308
# same distribution terms that you use for the rest of that program.
 
15309
#
 
15310
# GNU Libtool is distributed in the hope that it will be useful,
 
15311
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15312
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15313
# GNU General Public License for more details.
 
15314
#
 
15315
# You should have received a copy of the GNU General Public License
 
15316
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15317
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15318
# obtained by writing to the Free Software Foundation, Inc.,
 
15319
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15320
 
 
15321
 
 
15322
# The names of the tagged configurations supported by this script.
 
15323
available_tags=""
 
15324
 
 
15325
# ### BEGIN LIBTOOL CONFIG
 
15326
 
 
15327
# Whether or not to build static libraries.
 
15328
build_old_libs=$enable_static
 
15329
 
 
15330
# Which release of libtool.m4 was used?
 
15331
macro_version=$macro_version
 
15332
macro_revision=$macro_revision
 
15333
 
 
15334
# Whether or not to build shared libraries.
 
15335
build_libtool_libs=$enable_shared
 
15336
 
 
15337
# What type of objects to build.
 
15338
pic_mode=$pic_mode
 
15339
 
 
15340
# Whether or not to optimize for fast installation.
 
15341
fast_install=$enable_fast_install
 
15342
 
 
15343
# The host system.
 
15344
host_alias=$host_alias
 
15345
host=$host
 
15346
host_os=$host_os
 
15347
 
 
15348
# The build system.
 
15349
build_alias=$build_alias
 
15350
build=$build
 
15351
build_os=$build_os
 
15352
 
 
15353
# A sed program that does not truncate output.
 
15354
SED=$lt_SED
 
15355
 
 
15356
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15357
Xsed="\$SED -e 1s/^X//"
 
15358
 
 
15359
# A grep program that handles long lines.
 
15360
GREP=$lt_GREP
 
15361
 
 
15362
# An ERE matcher.
 
15363
EGREP=$lt_EGREP
 
15364
 
 
15365
# A literal string matcher.
 
15366
FGREP=$lt_FGREP
 
15367
 
 
15368
# A BSD- or MS-compatible name lister.
 
15369
NM=$lt_NM
 
15370
 
 
15371
# Whether we need soft or hard links.
 
15372
LN_S=$lt_LN_S
 
15373
 
 
15374
# What is the maximum length of a command?
 
15375
max_cmd_len=$max_cmd_len
 
15376
 
 
15377
# Object file suffix (normally "o").
 
15378
objext=$ac_objext
 
15379
 
 
15380
# Executable file suffix (normally "").
 
15381
exeext=$exeext
 
15382
 
 
15383
# whether the shell understands "unset".
 
15384
lt_unset=$lt_unset
 
15385
 
 
15386
# turn spaces into newlines.
 
15387
SP2NL=$lt_lt_SP2NL
 
15388
 
 
15389
# turn newlines into spaces.
 
15390
NL2SP=$lt_lt_NL2SP
 
15391
 
 
15392
# How to create reloadable object files.
 
15393
reload_flag=$lt_reload_flag
 
15394
reload_cmds=$lt_reload_cmds
 
15395
 
 
15396
# An object symbol dumper.
 
15397
OBJDUMP=$lt_OBJDUMP
 
15398
 
 
15399
# Method to check whether dependent libraries are shared objects.
 
15400
deplibs_check_method=$lt_deplibs_check_method
 
15401
 
 
15402
# Command to use when deplibs_check_method == "file_magic".
 
15403
file_magic_cmd=$lt_file_magic_cmd
 
15404
 
 
15405
# The archiver.
 
15406
AR=$lt_AR
 
15407
AR_FLAGS=$lt_AR_FLAGS
 
15408
 
 
15409
# A symbol stripping program.
 
15410
STRIP=$lt_STRIP
 
15411
 
 
15412
# Commands used to install an old-style archive.
 
15413
RANLIB=$lt_RANLIB
 
15414
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15415
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15416
 
 
15417
# A C compiler.
 
15418
LTCC=$lt_CC
 
15419
 
 
15420
# LTCC compiler flags.
 
15421
LTCFLAGS=$lt_CFLAGS
 
15422
 
 
15423
# Take the output of nm and produce a listing of raw symbols and C names.
 
15424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15425
 
 
15426
# Transform the output of nm in a proper C declaration.
 
15427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15428
 
 
15429
# Transform the output of nm in a C name address pair.
 
15430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15431
 
 
15432
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15433
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15434
 
 
15435
# The name of the directory that contains temporary libtool files.
 
15436
objdir=$objdir
 
15437
 
 
15438
# Shell to use when invoking shell scripts.
 
15439
SHELL=$lt_SHELL
 
15440
 
 
15441
# An echo program that does not interpret backslashes.
 
15442
ECHO=$lt_ECHO
 
15443
 
 
15444
# Used to examine libraries when file_magic_cmd begins with "file".
 
15445
MAGIC_CMD=$MAGIC_CMD
 
15446
 
 
15447
# Must we lock files when doing compilation?
 
15448
need_locks=$lt_need_locks
 
15449
 
 
15450
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15451
DSYMUTIL=$lt_DSYMUTIL
 
15452
 
 
15453
# Tool to change global to local symbols on Mac OS X.
 
15454
NMEDIT=$lt_NMEDIT
 
15455
 
 
15456
# Tool to manipulate fat objects and archives on Mac OS X.
 
15457
LIPO=$lt_LIPO
 
15458
 
 
15459
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15460
OTOOL=$lt_OTOOL
 
15461
 
 
15462
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15463
OTOOL64=$lt_OTOOL64
 
15464
 
 
15465
# Old archive suffix (normally "a").
 
15466
libext=$libext
 
15467
 
 
15468
# Shared library suffix (normally ".so").
 
15469
shrext_cmds=$lt_shrext_cmds
 
15470
 
 
15471
# The commands to extract the exported symbol list from a shared archive.
 
15472
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15473
 
 
15474
# Variables whose values should be saved in libtool wrapper scripts and
 
15475
# restored at link time.
 
15476
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15477
 
 
15478
# Do we need the "lib" prefix for modules?
 
15479
need_lib_prefix=$need_lib_prefix
 
15480
 
 
15481
# Do we need a version for libraries?
 
15482
need_version=$need_version
 
15483
 
 
15484
# Library versioning type.
 
15485
version_type=$version_type
 
15486
 
 
15487
# Shared library runtime path variable.
 
15488
runpath_var=$runpath_var
 
15489
 
 
15490
# Shared library path variable.
 
15491
shlibpath_var=$shlibpath_var
 
15492
 
 
15493
# Is shlibpath searched before the hard-coded library search path?
 
15494
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15495
 
 
15496
# Format of library name prefix.
 
15497
libname_spec=$lt_libname_spec
 
15498
 
 
15499
# List of archive names.  First name is the real one, the rest are links.
 
15500
# The last name is the one that the linker finds with -lNAME
 
15501
library_names_spec=$lt_library_names_spec
 
15502
 
 
15503
# The coded name of the library, if different from the real name.
 
15504
soname_spec=$lt_soname_spec
 
15505
 
 
15506
# Command to use after installation of a shared archive.
 
15507
postinstall_cmds=$lt_postinstall_cmds
 
15508
 
 
15509
# Command to use after uninstallation of a shared archive.
 
15510
postuninstall_cmds=$lt_postuninstall_cmds
 
15511
 
 
15512
# Commands used to finish a libtool library installation in a directory.
 
15513
finish_cmds=$lt_finish_cmds
 
15514
 
 
15515
# As "finish_cmds", except a single script fragment to be evaled but
 
15516
# not shown.
 
15517
finish_eval=$lt_finish_eval
 
15518
 
 
15519
# Whether we should hardcode library paths into libraries.
 
15520
hardcode_into_libs=$hardcode_into_libs
 
15521
 
 
15522
# Compile-time system search path for libraries.
 
15523
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15524
 
 
15525
# Run-time system search path for libraries.
 
15526
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15527
 
 
15528
# Whether dlopen is supported.
 
15529
dlopen_support=$enable_dlopen
 
15530
 
 
15531
# Whether dlopen of programs is supported.
 
15532
dlopen_self=$enable_dlopen_self
 
15533
 
 
15534
# Whether dlopen of statically linked programs is supported.
 
15535
dlopen_self_static=$enable_dlopen_self_static
 
15536
 
 
15537
# Commands to strip libraries.
 
15538
old_striplib=$lt_old_striplib
 
15539
striplib=$lt_striplib
 
15540
 
 
15541
 
 
15542
# The linker used to build libraries.
 
15543
LD=$lt_LD
 
15544
 
 
15545
# Commands used to build an old-style archive.
 
15546
old_archive_cmds=$lt_old_archive_cmds
 
15547
 
 
15548
# A language specific compiler.
 
15549
CC=$lt_compiler
 
15550
 
 
15551
# Is the compiler the GNU compiler?
 
15552
with_gcc=$GCC
 
15553
 
 
15554
# Compiler flag to turn off builtin functions.
 
15555
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15556
 
 
15557
# How to pass a linker flag through the compiler.
 
15558
wl=$lt_lt_prog_compiler_wl
 
15559
 
 
15560
# Additional compiler flags for building library objects.
 
15561
pic_flag=$lt_lt_prog_compiler_pic
 
15562
 
 
15563
# Compiler flag to prevent dynamic linking.
 
15564
link_static_flag=$lt_lt_prog_compiler_static
 
15565
 
 
15566
# Does compiler simultaneously support -c and -o options?
 
15567
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15568
 
 
15569
# Whether or not to add -lc for building shared libraries.
 
15570
build_libtool_need_lc=$archive_cmds_need_lc
 
15571
 
 
15572
# Whether or not to disallow shared libs when runtime libs are static.
 
15573
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15574
 
 
15575
# Compiler flag to allow reflexive dlopens.
 
15576
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15577
 
 
15578
# Compiler flag to generate shared objects directly from archives.
 
15579
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15580
 
 
15581
# Whether the compiler copes with passing no objects directly.
 
15582
compiler_needs_object=$lt_compiler_needs_object
 
15583
 
 
15584
# Create an old-style archive from a shared archive.
 
15585
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15586
 
 
15587
# Create a temporary old-style archive to link instead of a shared archive.
 
15588
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15589
 
 
15590
# Commands used to build a shared archive.
 
15591
archive_cmds=$lt_archive_cmds
 
15592
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15593
 
 
15594
# Commands used to build a loadable module if different from building
 
15595
# a shared archive.
 
15596
module_cmds=$lt_module_cmds
 
15597
module_expsym_cmds=$lt_module_expsym_cmds
 
15598
 
 
15599
# Whether we are building with GNU ld or not.
 
15600
with_gnu_ld=$lt_with_gnu_ld
 
15601
 
 
15602
# Flag that allows shared libraries with undefined symbols to be built.
 
15603
allow_undefined_flag=$lt_allow_undefined_flag
 
15604
 
 
15605
# Flag that enforces no undefined symbols.
 
15606
no_undefined_flag=$lt_no_undefined_flag
 
15607
 
 
15608
# Flag to hardcode \$libdir into a binary during linking.
 
15609
# This must work even if \$libdir does not exist
 
15610
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15611
 
 
15612
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
15613
# during linking.  This must work even if \$libdir does not exist.
 
15614
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
15615
 
 
15616
# Whether we need a single "-rpath" flag with a separated argument.
 
15617
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15618
 
 
15619
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15620
# DIR into the resulting binary.
 
15621
hardcode_direct=$hardcode_direct
 
15622
 
 
15623
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15624
# DIR into the resulting binary and the resulting library dependency is
 
15625
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15626
# library is relocated.
 
15627
hardcode_direct_absolute=$hardcode_direct_absolute
 
15628
 
 
15629
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15630
# into the resulting binary.
 
15631
hardcode_minus_L=$hardcode_minus_L
 
15632
 
 
15633
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15634
# into the resulting binary.
 
15635
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15636
 
 
15637
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15638
# into the library and all subsequent libraries and executables linked
 
15639
# against it.
 
15640
hardcode_automatic=$hardcode_automatic
 
15641
 
 
15642
# Set to yes if linker adds runtime paths of dependent libraries
 
15643
# to runtime path list.
 
15644
inherit_rpath=$inherit_rpath
 
15645
 
 
15646
# Whether libtool must link a program against all its dependency libraries.
 
15647
link_all_deplibs=$link_all_deplibs
 
15648
 
 
15649
# Fix the shell variable \$srcfile for the compiler.
 
15650
fix_srcfile_path=$lt_fix_srcfile_path
 
15651
 
 
15652
# Set to "yes" if exported symbols are required.
 
15653
always_export_symbols=$always_export_symbols
 
15654
 
 
15655
# The commands to list exported symbols.
 
15656
export_symbols_cmds=$lt_export_symbols_cmds
 
15657
 
 
15658
# Symbols that should not be listed in the preloaded symbols.
 
15659
exclude_expsyms=$lt_exclude_expsyms
 
15660
 
 
15661
# Symbols that must always be exported.
 
15662
include_expsyms=$lt_include_expsyms
 
15663
 
 
15664
# Commands necessary for linking programs (against libraries) with templates.
 
15665
prelink_cmds=$lt_prelink_cmds
 
15666
 
 
15667
# Specify filename containing input files.
 
15668
file_list_spec=$lt_file_list_spec
 
15669
 
 
15670
# How to hardcode a shared library path into an executable.
 
15671
hardcode_action=$hardcode_action
 
15672
 
 
15673
# ### END LIBTOOL CONFIG
 
15674
 
 
15675
_LT_EOF
 
15676
 
 
15677
  case $host_os in
 
15678
  aix3*)
 
15679
    cat <<\_LT_EOF >> "$cfgfile"
 
15680
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15681
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15682
# vanish in a puff of smoke.
 
15683
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15684
  COLLECT_NAMES=
 
15685
  export COLLECT_NAMES
 
15686
fi
 
15687
_LT_EOF
 
15688
    ;;
 
15689
  esac
 
15690
 
 
15691
 
 
15692
ltmain="$ac_aux_dir/ltmain.sh"
 
15693
 
 
15694
 
 
15695
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15696
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15697
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15698
  # is reportedly fixed, but why not run on old versions too?
 
15699
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
15700
    || (rm -f "$cfgfile"; exit 1)
 
15701
 
 
15702
  case $xsi_shell in
 
15703
  yes)
 
15704
    cat << \_LT_EOF >> "$cfgfile"
 
15705
 
 
15706
# func_dirname file append nondir_replacement
 
15707
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15708
# otherwise set result to NONDIR_REPLACEMENT.
 
15709
func_dirname ()
 
15710
{
 
15711
  case ${1} in
 
15712
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15713
    *  ) func_dirname_result="${3}" ;;
 
15714
  esac
 
15715
}
 
15716
 
 
15717
# func_basename file
 
15718
func_basename ()
 
15719
{
 
15720
  func_basename_result="${1##*/}"
 
15721
}
 
15722
 
 
15723
# func_dirname_and_basename file append nondir_replacement
 
15724
# perform func_basename and func_dirname in a single function
 
15725
# call:
 
15726
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
15727
#             add APPEND to the result, otherwise set result
 
15728
#             to NONDIR_REPLACEMENT.
 
15729
#             value returned in "$func_dirname_result"
 
15730
#   basename: Compute filename of FILE.
 
15731
#             value retuned in "$func_basename_result"
 
15732
# Implementation must be kept synchronized with func_dirname
 
15733
# and func_basename. For efficiency, we do not delegate to
 
15734
# those functions but instead duplicate the functionality here.
 
15735
func_dirname_and_basename ()
 
15736
{
 
15737
  case ${1} in
 
15738
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15739
    *  ) func_dirname_result="${3}" ;;
 
15740
  esac
 
15741
  func_basename_result="${1##*/}"
 
15742
}
 
15743
 
 
15744
# func_stripname prefix suffix name
 
15745
# strip PREFIX and SUFFIX off of NAME.
 
15746
# PREFIX and SUFFIX must not contain globbing or regex special
 
15747
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15748
# dot (in which case that matches only a dot).
 
15749
func_stripname ()
 
15750
{
 
15751
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
15752
  # positional parameters, so assign one to ordinary parameter first.
 
15753
  func_stripname_result=${3}
 
15754
  func_stripname_result=${func_stripname_result#"${1}"}
 
15755
  func_stripname_result=${func_stripname_result%"${2}"}
 
15756
}
 
15757
 
 
15758
# func_opt_split
 
15759
func_opt_split ()
 
15760
{
 
15761
  func_opt_split_opt=${1%%=*}
 
15762
  func_opt_split_arg=${1#*=}
 
15763
}
 
15764
 
 
15765
# func_lo2o object
 
15766
func_lo2o ()
 
15767
{
 
15768
  case ${1} in
 
15769
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
15770
    *)    func_lo2o_result=${1} ;;
 
15771
  esac
 
15772
}
 
15773
 
 
15774
# func_xform libobj-or-source
 
15775
func_xform ()
 
15776
{
 
15777
  func_xform_result=${1%.*}.lo
 
15778
}
 
15779
 
 
15780
# func_arith arithmetic-term...
 
15781
func_arith ()
 
15782
{
 
15783
  func_arith_result=$(( $* ))
 
15784
}
 
15785
 
 
15786
# func_len string
 
15787
# STRING may not start with a hyphen.
 
15788
func_len ()
 
15789
{
 
15790
  func_len_result=${#1}
 
15791
}
 
15792
 
 
15793
_LT_EOF
 
15794
    ;;
 
15795
  *) # Bourne compatible functions.
 
15796
    cat << \_LT_EOF >> "$cfgfile"
 
15797
 
 
15798
# func_dirname file append nondir_replacement
 
15799
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15800
# otherwise set result to NONDIR_REPLACEMENT.
 
15801
func_dirname ()
 
15802
{
 
15803
  # Extract subdirectory from the argument.
 
15804
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
15805
  if test "X$func_dirname_result" = "X${1}"; then
 
15806
    func_dirname_result="${3}"
 
15807
  else
 
15808
    func_dirname_result="$func_dirname_result${2}"
 
15809
  fi
 
15810
}
 
15811
 
 
15812
# func_basename file
 
15813
func_basename ()
 
15814
{
 
15815
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
15816
}
 
15817
 
 
15818
 
 
15819
# func_stripname prefix suffix name
 
15820
# strip PREFIX and SUFFIX off of NAME.
 
15821
# PREFIX and SUFFIX must not contain globbing or regex special
 
15822
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15823
# dot (in which case that matches only a dot).
 
15824
# func_strip_suffix prefix name
 
15825
func_stripname ()
 
15826
{
 
15827
  case ${2} in
 
15828
    .*) func_stripname_result=`$ECHO "X${3}" \
 
15829
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
15830
    *)  func_stripname_result=`$ECHO "X${3}" \
 
15831
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
15832
  esac
 
15833
}
 
15834
 
 
15835
# sed scripts:
 
15836
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
15837
my_sed_long_arg='1s/^-[^=]*=//'
 
15838
 
 
15839
# func_opt_split
 
15840
func_opt_split ()
 
15841
{
 
15842
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
15843
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
15844
}
 
15845
 
 
15846
# func_lo2o object
 
15847
func_lo2o ()
 
15848
{
 
15849
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
15850
}
 
15851
 
 
15852
# func_xform libobj-or-source
 
15853
func_xform ()
 
15854
{
 
15855
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
15856
}
 
15857
 
 
15858
# func_arith arithmetic-term...
 
15859
func_arith ()
 
15860
{
 
15861
  func_arith_result=`expr "$@"`
 
15862
}
 
15863
 
 
15864
# func_len string
 
15865
# STRING may not start with a hyphen.
 
15866
func_len ()
 
15867
{
 
15868
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
15869
}
 
15870
 
 
15871
_LT_EOF
 
15872
esac
 
15873
 
 
15874
case $lt_shell_append in
 
15875
  yes)
 
15876
    cat << \_LT_EOF >> "$cfgfile"
 
15877
 
 
15878
# func_append var value
 
15879
# Append VALUE to the end of shell variable VAR.
 
15880
func_append ()
 
15881
{
 
15882
  eval "$1+=\$2"
 
15883
}
 
15884
_LT_EOF
 
15885
    ;;
 
15886
  *)
 
15887
    cat << \_LT_EOF >> "$cfgfile"
 
15888
 
 
15889
# func_append var value
 
15890
# Append VALUE to the end of shell variable VAR.
 
15891
func_append ()
 
15892
{
 
15893
  eval "$1=\$$1\$2"
 
15894
}
 
15895
 
 
15896
_LT_EOF
 
15897
    ;;
 
15898
  esac
 
15899
 
 
15900
 
 
15901
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
15902
    || (rm -f "$cfgfile"; exit 1)
 
15903
 
 
15904
  mv -f "$cfgfile" "$ofile" ||
 
15905
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15906
  chmod +x "$ofile"
 
15907
 
 
15908
 ;;
 
15909
 
 
15910
  esac
 
15911
done # for ac_tag
 
15912
 
 
15913
 
 
15914
{ (exit 0); exit 0; }
 
15915
_ACEOF
 
15916
chmod +x $CONFIG_STATUS
 
15917
ac_clean_files=$ac_clean_files_save
 
15918
 
 
15919
test $ac_write_fail = 0 ||
 
15920
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
15921
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
15922
   { (exit 1); exit 1; }; }
 
15923
 
 
15924
 
 
15925
# configure is writing to config.log, and then calls config.status.
 
15926
# config.status does its own redirection, appending to config.log.
 
15927
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15928
# by configure, so config.status won't be able to write to it; its
 
15929
# output is simply discarded.  So we exec the FD to /dev/null,
 
15930
# effectively closing config.log, so it can be properly (re)opened and
 
15931
# appended to by config.status.  When coming back to configure, we
 
15932
# need to make the FD available again.
 
15933
if test "$no_create" != yes; then
 
15934
  ac_cs_success=:
 
15935
  ac_config_status_args=
 
15936
  test "$silent" = yes &&
 
15937
    ac_config_status_args="$ac_config_status_args --quiet"
 
15938
  exec 5>/dev/null
 
15939
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15940
  exec 5>>config.log
 
15941
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15942
  # would make configure fail if this is the last instruction.
 
15943
  $ac_cs_success || { (exit 1); exit 1; }
 
15944
fi
 
15945
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15946
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15947
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15948
fi
 
15949