~cairo-dock-team/cairo-dock-plug-ins/experimental

« back to all changes in this revision

Viewing changes to compiz-icon/autom4te.cache/output.1

  • Committer: changfu
  • Date: 2008-04-06 01:33:23 UTC
  • Revision ID: svn-v4:620951bb-bb42-0410-82c3-830e739ed170:trunk/plug-ins:770
Compiz-Icon: Nouveau

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.61 for cd-compiz-icon 0.0.1.
 
4
@%:@
 
5
@%:@ Report bugs to <ChAnGFu (changfu@hollowproject.org) ()>.
 
6
@%:@ 
 
7
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
@%:@ 2002, 2003, 2004, 2005, 2006 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
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
    
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIB@&t@OBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='cd-compiz-icon'
 
730
PACKAGE_TARNAME='cd-compiz-icon'
 
731
PACKAGE_VERSION='0.0.1'
 
732
PACKAGE_STRING='cd-compiz-icon 0.0.1'
 
733
PACKAGE_BUGREPORT='ChAnGFu (changfu@hollowproject.org) ()'
 
734
 
 
735
ac_unique_file="config.h.in"
 
736
# Factoring default headers for most tests.
 
737
ac_includes_default="\
 
738
#include <stdio.h>
 
739
#ifdef HAVE_SYS_TYPES_H
 
740
# include <sys/types.h>
 
741
#endif
 
742
#ifdef HAVE_SYS_STAT_H
 
743
# include <sys/stat.h>
 
744
#endif
 
745
#ifdef STDC_HEADERS
 
746
# include <stdlib.h>
 
747
# include <stddef.h>
 
748
#else
 
749
# ifdef HAVE_STDLIB_H
 
750
#  include <stdlib.h>
 
751
# endif
 
752
#endif
 
753
#ifdef HAVE_STRING_H
 
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
755
#  include <memory.h>
 
756
# endif
 
757
# include <string.h>
 
758
#endif
 
759
#ifdef HAVE_STRINGS_H
 
760
# include <strings.h>
 
761
#endif
 
762
#ifdef HAVE_INTTYPES_H
 
763
# include <inttypes.h>
 
764
#endif
 
765
#ifdef HAVE_STDINT_H
 
766
# include <stdint.h>
 
767
#endif
 
768
#ifdef HAVE_UNISTD_H
 
769
# include <unistd.h>
 
770
#endif"
 
771
 
 
772
ac_subst_vars='SHELL
 
773
PATH_SEPARATOR
 
774
PACKAGE_NAME
 
775
PACKAGE_TARNAME
 
776
PACKAGE_VERSION
 
777
PACKAGE_STRING
 
778
PACKAGE_BUGREPORT
 
779
exec_prefix
 
780
prefix
 
781
program_transform_name
 
782
bindir
 
783
sbindir
 
784
libexecdir
 
785
datarootdir
 
786
datadir
 
787
sysconfdir
 
788
sharedstatedir
 
789
localstatedir
 
790
includedir
 
791
oldincludedir
 
792
docdir
 
793
infodir
 
794
htmldir
 
795
dvidir
 
796
pdfdir
 
797
psdir
 
798
libdir
 
799
localedir
 
800
mandir
 
801
DEFS
 
802
ECHO_C
 
803
ECHO_N
 
804
ECHO_T
 
805
LIBS
 
806
build_alias
 
807
host_alias
 
808
target_alias
 
809
INSTALL_PROGRAM
 
810
INSTALL_SCRIPT
 
811
INSTALL_DATA
 
812
CYGPATH_W
 
813
PACKAGE
 
814
VERSION
 
815
ACLOCAL
 
816
AUTOCONF
 
817
AUTOMAKE
 
818
AUTOHEADER
 
819
MAKEINFO
 
820
install_sh
 
821
STRIP
 
822
INSTALL_STRIP_PROGRAM
 
823
mkdir_p
 
824
AWK
 
825
SET_MAKE
 
826
am__leading_dot
 
827
AMTAR
 
828
am__tar
 
829
am__untar
 
830
build
 
831
build_cpu
 
832
build_vendor
 
833
build_os
 
834
host
 
835
host_cpu
 
836
host_vendor
 
837
host_os
 
838
CC
 
839
CFLAGS
 
840
LDFLAGS
 
841
CPPFLAGS
 
842
ac_ct_CC
 
843
EXEEXT
 
844
OBJEXT
 
845
DEPDIR
 
846
am__include
 
847
am__quote
 
848
AMDEP_TRUE
 
849
AMDEP_FALSE
 
850
AMDEPBACKSLASH
 
851
CCDEPMODE
 
852
am__fastdepCC_TRUE
 
853
am__fastdepCC_FALSE
 
854
SED
 
855
GREP
 
856
EGREP
 
857
LN_S
 
858
ECHO
 
859
AR
 
860
RANLIB
 
861
CPP
 
862
CXX
 
863
CXXFLAGS
 
864
ac_ct_CXX
 
865
CXXDEPMODE
 
866
am__fastdepCXX_TRUE
 
867
am__fastdepCXX_FALSE
 
868
CXXCPP
 
869
F77
 
870
FFLAGS
 
871
ac_ct_F77
 
872
LIBTOOL
 
873
INTLTOOL_DESKTOP_RULE
 
874
INTLTOOL_DIRECTORY_RULE
 
875
INTLTOOL_KEYS_RULE
 
876
INTLTOOL_PROP_RULE
 
877
INTLTOOL_OAF_RULE
 
878
INTLTOOL_PONG_RULE
 
879
INTLTOOL_SERVER_RULE
 
880
INTLTOOL_SHEET_RULE
 
881
INTLTOOL_SOUNDLIST_RULE
 
882
INTLTOOL_UI_RULE
 
883
INTLTOOL_XAM_RULE
 
884
INTLTOOL_KBD_RULE
 
885
INTLTOOL_XML_RULE
 
886
INTLTOOL_XML_NOMERGE_RULE
 
887
INTLTOOL_CAVES_RULE
 
888
INTLTOOL_SCHEMAS_RULE
 
889
INTLTOOL_THEME_RULE
 
890
INTLTOOL_SERVICE_RULE
 
891
INTLTOOL_POLICY_RULE
 
892
INTLTOOL_EXTRACT
 
893
INTLTOOL_MERGE
 
894
INTLTOOL_UPDATE
 
895
INTLTOOL_PERL
 
896
ALL_LINGUAS
 
897
DATADIRNAME
 
898
USE_NLS
 
899
MSGFMT
 
900
MSGFMT_OPTS
 
901
GMSGFMT
 
902
XGETTEXT
 
903
CATALOGS
 
904
CATOBJEXT
 
905
GMOFILES
 
906
INSTOBJEXT
 
907
INTLLIBS
 
908
PO_IN_DATADIR_TRUE
 
909
PO_IN_DATADIR_FALSE
 
910
POFILES
 
911
POSUB
 
912
MKINSTALLDIRS
 
913
GETTEXT_PACKAGE
 
914
pkgdatadir
 
915
PKG_CONFIG
 
916
PACKAGE_CFLAGS
 
917
PACKAGE_LIBS
 
918
LIB@&t@OBJS
 
919
LTLIBOBJS'
 
920
ac_subst_files=''
 
921
      ac_precious_vars='build_alias
 
922
host_alias
 
923
target_alias
 
924
CC
 
925
CFLAGS
 
926
LDFLAGS
 
927
LIBS
 
928
CPPFLAGS
 
929
CPP
 
930
CXX
 
931
CXXFLAGS
 
932
CCC
 
933
CXXCPP
 
934
F77
 
935
FFLAGS
 
936
PKG_CONFIG
 
937
PACKAGE_CFLAGS
 
938
PACKAGE_LIBS'
 
939
 
 
940
 
 
941
# Initialize some variables set by options.
 
942
ac_init_help=
 
943
ac_init_version=false
 
944
# The variables have the same names as the options, with
 
945
# dashes changed to underlines.
 
946
cache_file=/dev/null
 
947
exec_prefix=NONE
 
948
no_create=
 
949
no_recursion=
 
950
prefix=NONE
 
951
program_prefix=NONE
 
952
program_suffix=NONE
 
953
program_transform_name=s,x,x,
 
954
silent=
 
955
site=
 
956
srcdir=
 
957
verbose=
 
958
x_includes=NONE
 
959
x_libraries=NONE
 
960
 
 
961
# Installation directory options.
 
962
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
963
# and all the variables that are supposed to be based on exec_prefix
 
964
# by default will actually change.
 
965
# Use braces instead of parens because sh, perl, etc. also accept them.
 
966
# (The list follows the same order as the GNU Coding Standards.)
 
967
bindir='${exec_prefix}/bin'
 
968
sbindir='${exec_prefix}/sbin'
 
969
libexecdir='${exec_prefix}/libexec'
 
970
datarootdir='${prefix}/share'
 
971
datadir='${datarootdir}'
 
972
sysconfdir='${prefix}/etc'
 
973
sharedstatedir='${prefix}/com'
 
974
localstatedir='${prefix}/var'
 
975
includedir='${prefix}/include'
 
976
oldincludedir='/usr/include'
 
977
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
978
infodir='${datarootdir}/info'
 
979
htmldir='${docdir}'
 
980
dvidir='${docdir}'
 
981
pdfdir='${docdir}'
 
982
psdir='${docdir}'
 
983
libdir='${exec_prefix}/lib'
 
984
localedir='${datarootdir}/locale'
 
985
mandir='${datarootdir}/man'
 
986
 
 
987
ac_prev=
 
988
ac_dashdash=
 
989
for ac_option
 
990
do
 
991
  # If the previous option needs an argument, assign it.
 
992
  if test -n "$ac_prev"; then
 
993
    eval $ac_prev=\$ac_option
 
994
    ac_prev=
 
995
    continue
 
996
  fi
 
997
 
 
998
  case $ac_option in
 
999
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1000
  *)    ac_optarg=yes ;;
 
1001
  esac
 
1002
 
 
1003
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1004
 
 
1005
  case $ac_dashdash$ac_option in
 
1006
  --)
 
1007
    ac_dashdash=yes ;;
 
1008
 
 
1009
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1010
    ac_prev=bindir ;;
 
1011
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1012
    bindir=$ac_optarg ;;
 
1013
 
 
1014
  -build | --build | --buil | --bui | --bu)
 
1015
    ac_prev=build_alias ;;
 
1016
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1017
    build_alias=$ac_optarg ;;
 
1018
 
 
1019
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1020
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1021
    ac_prev=cache_file ;;
 
1022
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1023
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1024
    cache_file=$ac_optarg ;;
 
1025
 
 
1026
  --config-cache | -C)
 
1027
    cache_file=config.cache ;;
 
1028
 
 
1029
  -datadir | --datadir | --datadi | --datad)
 
1030
    ac_prev=datadir ;;
 
1031
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1032
    datadir=$ac_optarg ;;
 
1033
 
 
1034
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1035
  | --dataroo | --dataro | --datar)
 
1036
    ac_prev=datarootdir ;;
 
1037
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1038
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1039
    datarootdir=$ac_optarg ;;
 
1040
 
 
1041
  -disable-* | --disable-*)
 
1042
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1043
    # Reject names that are not valid shell variable names.
 
1044
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1045
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1046
   { (exit 1); exit 1; }; }
 
1047
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1048
    eval enable_$ac_feature=no ;;
 
1049
 
 
1050
  -docdir | --docdir | --docdi | --doc | --do)
 
1051
    ac_prev=docdir ;;
 
1052
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1053
    docdir=$ac_optarg ;;
 
1054
 
 
1055
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1056
    ac_prev=dvidir ;;
 
1057
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1058
    dvidir=$ac_optarg ;;
 
1059
 
 
1060
  -enable-* | --enable-*)
 
1061
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1062
    # Reject names that are not valid shell variable names.
 
1063
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1064
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1065
   { (exit 1); exit 1; }; }
 
1066
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1067
    eval enable_$ac_feature=\$ac_optarg ;;
 
1068
 
 
1069
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1070
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1071
  | --exec | --exe | --ex)
 
1072
    ac_prev=exec_prefix ;;
 
1073
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1074
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1075
  | --exec=* | --exe=* | --ex=*)
 
1076
    exec_prefix=$ac_optarg ;;
 
1077
 
 
1078
  -gas | --gas | --ga | --g)
 
1079
    # Obsolete; use --with-gas.
 
1080
    with_gas=yes ;;
 
1081
 
 
1082
  -help | --help | --hel | --he | -h)
 
1083
    ac_init_help=long ;;
 
1084
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1085
    ac_init_help=recursive ;;
 
1086
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1087
    ac_init_help=short ;;
 
1088
 
 
1089
  -host | --host | --hos | --ho)
 
1090
    ac_prev=host_alias ;;
 
1091
  -host=* | --host=* | --hos=* | --ho=*)
 
1092
    host_alias=$ac_optarg ;;
 
1093
 
 
1094
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1095
    ac_prev=htmldir ;;
 
1096
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1097
  | --ht=*)
 
1098
    htmldir=$ac_optarg ;;
 
1099
 
 
1100
  -includedir | --includedir | --includedi | --included | --include \
 
1101
  | --includ | --inclu | --incl | --inc)
 
1102
    ac_prev=includedir ;;
 
1103
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1104
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1105
    includedir=$ac_optarg ;;
 
1106
 
 
1107
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1108
    ac_prev=infodir ;;
 
1109
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1110
    infodir=$ac_optarg ;;
 
1111
 
 
1112
  -libdir | --libdir | --libdi | --libd)
 
1113
    ac_prev=libdir ;;
 
1114
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1115
    libdir=$ac_optarg ;;
 
1116
 
 
1117
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1118
  | --libexe | --libex | --libe)
 
1119
    ac_prev=libexecdir ;;
 
1120
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1121
  | --libexe=* | --libex=* | --libe=*)
 
1122
    libexecdir=$ac_optarg ;;
 
1123
 
 
1124
  -localedir | --localedir | --localedi | --localed | --locale)
 
1125
    ac_prev=localedir ;;
 
1126
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1127
    localedir=$ac_optarg ;;
 
1128
 
 
1129
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1130
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1131
    ac_prev=localstatedir ;;
 
1132
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1133
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1134
    localstatedir=$ac_optarg ;;
 
1135
 
 
1136
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1137
    ac_prev=mandir ;;
 
1138
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1139
    mandir=$ac_optarg ;;
 
1140
 
 
1141
  -nfp | --nfp | --nf)
 
1142
    # Obsolete; use --without-fp.
 
1143
    with_fp=no ;;
 
1144
 
 
1145
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1146
  | --no-cr | --no-c | -n)
 
1147
    no_create=yes ;;
 
1148
 
 
1149
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1150
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1151
    no_recursion=yes ;;
 
1152
 
 
1153
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1154
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1155
  | --oldin | --oldi | --old | --ol | --o)
 
1156
    ac_prev=oldincludedir ;;
 
1157
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1158
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1159
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1160
    oldincludedir=$ac_optarg ;;
 
1161
 
 
1162
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1163
    ac_prev=prefix ;;
 
1164
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1165
    prefix=$ac_optarg ;;
 
1166
 
 
1167
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1168
  | --program-pre | --program-pr | --program-p)
 
1169
    ac_prev=program_prefix ;;
 
1170
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1171
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1172
    program_prefix=$ac_optarg ;;
 
1173
 
 
1174
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1175
  | --program-suf | --program-su | --program-s)
 
1176
    ac_prev=program_suffix ;;
 
1177
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1178
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1179
    program_suffix=$ac_optarg ;;
 
1180
 
 
1181
  -program-transform-name | --program-transform-name \
 
1182
  | --program-transform-nam | --program-transform-na \
 
1183
  | --program-transform-n | --program-transform- \
 
1184
  | --program-transform | --program-transfor \
 
1185
  | --program-transfo | --program-transf \
 
1186
  | --program-trans | --program-tran \
 
1187
  | --progr-tra | --program-tr | --program-t)
 
1188
    ac_prev=program_transform_name ;;
 
1189
  -program-transform-name=* | --program-transform-name=* \
 
1190
  | --program-transform-nam=* | --program-transform-na=* \
 
1191
  | --program-transform-n=* | --program-transform-=* \
 
1192
  | --program-transform=* | --program-transfor=* \
 
1193
  | --program-transfo=* | --program-transf=* \
 
1194
  | --program-trans=* | --program-tran=* \
 
1195
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1196
    program_transform_name=$ac_optarg ;;
 
1197
 
 
1198
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1199
    ac_prev=pdfdir ;;
 
1200
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1201
    pdfdir=$ac_optarg ;;
 
1202
 
 
1203
  -psdir | --psdir | --psdi | --psd | --ps)
 
1204
    ac_prev=psdir ;;
 
1205
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1206
    psdir=$ac_optarg ;;
 
1207
 
 
1208
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1209
  | -silent | --silent | --silen | --sile | --sil)
 
1210
    silent=yes ;;
 
1211
 
 
1212
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1213
    ac_prev=sbindir ;;
 
1214
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1215
  | --sbi=* | --sb=*)
 
1216
    sbindir=$ac_optarg ;;
 
1217
 
 
1218
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1219
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1220
  | --sharedst | --shareds | --shared | --share | --shar \
 
1221
  | --sha | --sh)
 
1222
    ac_prev=sharedstatedir ;;
 
1223
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1224
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1225
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1226
  | --sha=* | --sh=*)
 
1227
    sharedstatedir=$ac_optarg ;;
 
1228
 
 
1229
  -site | --site | --sit)
 
1230
    ac_prev=site ;;
 
1231
  -site=* | --site=* | --sit=*)
 
1232
    site=$ac_optarg ;;
 
1233
 
 
1234
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1235
    ac_prev=srcdir ;;
 
1236
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1237
    srcdir=$ac_optarg ;;
 
1238
 
 
1239
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1240
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1241
    ac_prev=sysconfdir ;;
 
1242
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1243
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1244
    sysconfdir=$ac_optarg ;;
 
1245
 
 
1246
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1247
    ac_prev=target_alias ;;
 
1248
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1249
    target_alias=$ac_optarg ;;
 
1250
 
 
1251
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1252
    verbose=yes ;;
 
1253
 
 
1254
  -version | --version | --versio | --versi | --vers | -V)
 
1255
    ac_init_version=: ;;
 
1256
 
 
1257
  -with-* | --with-*)
 
1258
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1259
    # Reject names that are not valid shell variable names.
 
1260
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1261
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1262
   { (exit 1); exit 1; }; }
 
1263
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1264
    eval with_$ac_package=\$ac_optarg ;;
 
1265
 
 
1266
  -without-* | --without-*)
 
1267
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1268
    # Reject names that are not valid shell variable names.
 
1269
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1270
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1271
   { (exit 1); exit 1; }; }
 
1272
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1273
    eval with_$ac_package=no ;;
 
1274
 
 
1275
  --x)
 
1276
    # Obsolete; use --with-x.
 
1277
    with_x=yes ;;
 
1278
 
 
1279
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1280
  | --x-incl | --x-inc | --x-in | --x-i)
 
1281
    ac_prev=x_includes ;;
 
1282
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1283
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1284
    x_includes=$ac_optarg ;;
 
1285
 
 
1286
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1287
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1288
    ac_prev=x_libraries ;;
 
1289
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1290
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1291
    x_libraries=$ac_optarg ;;
 
1292
 
 
1293
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1294
Try \`$0 --help' for more information." >&2
 
1295
   { (exit 1); exit 1; }; }
 
1296
    ;;
 
1297
 
 
1298
  *=*)
 
1299
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1300
    # Reject names that are not valid shell variable names.
 
1301
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1302
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1303
   { (exit 1); exit 1; }; }
 
1304
    eval $ac_envvar=\$ac_optarg
 
1305
    export $ac_envvar ;;
 
1306
 
 
1307
  *)
 
1308
    # FIXME: should be removed in autoconf 3.0.
 
1309
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1310
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1311
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1312
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1313
    ;;
 
1314
 
 
1315
  esac
 
1316
done
 
1317
 
 
1318
if test -n "$ac_prev"; then
 
1319
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1320
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1321
   { (exit 1); exit 1; }; }
 
1322
fi
 
1323
 
 
1324
# Be sure to have absolute directory names.
 
1325
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1326
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1327
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1328
                libdir localedir mandir
 
1329
do
 
1330
  eval ac_val=\$$ac_var
 
1331
  case $ac_val in
 
1332
    [\\/$]* | ?:[\\/]* )  continue;;
 
1333
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1334
  esac
 
1335
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1336
   { (exit 1); exit 1; }; }
 
1337
done
 
1338
 
 
1339
# There might be people who depend on the old broken behavior: `$host'
 
1340
# used to hold the argument of --host etc.
 
1341
# FIXME: To remove some day.
 
1342
build=$build_alias
 
1343
host=$host_alias
 
1344
target=$target_alias
 
1345
 
 
1346
# FIXME: To remove some day.
 
1347
if test "x$host_alias" != x; then
 
1348
  if test "x$build_alias" = x; then
 
1349
    cross_compiling=maybe
 
1350
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1351
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1352
  elif test "x$build_alias" != "x$host_alias"; then
 
1353
    cross_compiling=yes
 
1354
  fi
 
1355
fi
 
1356
 
 
1357
ac_tool_prefix=
 
1358
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1359
 
 
1360
test "$silent" = yes && exec 6>/dev/null
 
1361
 
 
1362
 
 
1363
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1364
ac_ls_di=`ls -di .` &&
 
1365
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1366
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1367
   { (exit 1); exit 1; }; }
 
1368
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1369
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1370
   { (exit 1); exit 1; }; }
 
1371
 
 
1372
 
 
1373
# Find the source files, if location was not specified.
 
1374
if test -z "$srcdir"; then
 
1375
  ac_srcdir_defaulted=yes
 
1376
  # Try the directory containing this script, then the parent directory.
 
1377
  ac_confdir=`$as_dirname -- "$0" ||
 
1378
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1379
         X"$0" : 'X\(//\)[^/]' \| \
 
1380
         X"$0" : 'X\(//\)$' \| \
 
1381
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1382
echo X"$0" |
 
1383
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1384
            s//\1/
 
1385
            q
 
1386
          }
 
1387
          /^X\(\/\/\)[^/].*/{
 
1388
            s//\1/
 
1389
            q
 
1390
          }
 
1391
          /^X\(\/\/\)$/{
 
1392
            s//\1/
 
1393
            q
 
1394
          }
 
1395
          /^X\(\/\).*/{
 
1396
            s//\1/
 
1397
            q
 
1398
          }
 
1399
          s/.*/./; q'`
 
1400
  srcdir=$ac_confdir
 
1401
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1402
    srcdir=..
 
1403
  fi
 
1404
else
 
1405
  ac_srcdir_defaulted=no
 
1406
fi
 
1407
if test ! -r "$srcdir/$ac_unique_file"; then
 
1408
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1409
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1410
   { (exit 1); exit 1; }; }
 
1411
fi
 
1412
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1413
ac_abs_confdir=`(
 
1414
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1415
   { (exit 1); exit 1; }; }
 
1416
        pwd)`
 
1417
# When building in place, set srcdir=.
 
1418
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1419
  srcdir=.
 
1420
fi
 
1421
# Remove unnecessary trailing slashes from srcdir.
 
1422
# Double slashes in file names in object file debugging info
 
1423
# mess up M-x gdb in Emacs.
 
1424
case $srcdir in
 
1425
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1426
esac
 
1427
for ac_var in $ac_precious_vars; do
 
1428
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1429
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1430
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1431
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1432
done
 
1433
 
 
1434
#
 
1435
# Report the --help message.
 
1436
#
 
1437
if test "$ac_init_help" = "long"; then
 
1438
  # Omit some internal or obsolete options to make the list less imposing.
 
1439
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1440
  cat <<_ACEOF
 
1441
\`configure' configures cd-compiz-icon 0.0.1 to adapt to many kinds of systems.
 
1442
 
 
1443
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1444
 
 
1445
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1446
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1447
 
 
1448
Defaults for the options are specified in brackets.
 
1449
 
 
1450
Configuration:
 
1451
  -h, --help              display this help and exit
 
1452
      --help=short        display options specific to this package
 
1453
      --help=recursive    display the short help of all the included packages
 
1454
  -V, --version           display version information and exit
 
1455
  -q, --quiet, --silent   do not print \`checking...' messages
 
1456
      --cache-file=FILE   cache test results in FILE [disabled]
 
1457
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1458
  -n, --no-create         do not create output files
 
1459
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1460
 
 
1461
Installation directories:
 
1462
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1463
                          [$ac_default_prefix]
 
1464
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1465
                          [PREFIX]
 
1466
 
 
1467
By default, \`make install' will install all the files in
 
1468
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1469
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1470
for instance \`--prefix=\$HOME'.
 
1471
 
 
1472
For better control, use the options below.
 
1473
 
 
1474
Fine tuning of the installation directories:
 
1475
  --bindir=DIR           user executables [EPREFIX/bin]
 
1476
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1477
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1478
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1479
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1480
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1481
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1482
  --includedir=DIR       C header files [PREFIX/include]
 
1483
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1484
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1485
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1486
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1487
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1488
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1489
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/cd-compiz-icon@:>@
 
1490
  --htmldir=DIR          html documentation [DOCDIR]
 
1491
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1492
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1493
  --psdir=DIR            ps documentation [DOCDIR]
 
1494
_ACEOF
 
1495
 
 
1496
  cat <<\_ACEOF
 
1497
 
 
1498
Program names:
 
1499
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1500
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1501
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1502
 
 
1503
System types:
 
1504
  --build=BUILD     configure for building on BUILD [guessed]
 
1505
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1506
_ACEOF
 
1507
fi
 
1508
 
 
1509
if test -n "$ac_init_help"; then
 
1510
  case $ac_init_help in
 
1511
     short | recursive ) echo "Configuration of cd-compiz-icon 0.0.1:";;
 
1512
   esac
 
1513
  cat <<\_ACEOF
 
1514
 
 
1515
Optional Features:
 
1516
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1517
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1518
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
 
1519
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
 
1520
  --enable-fast-install@<:@=PKGS@:>@ 
 
1521
                          optimize for fast installation @<:@default=yes@:>@
 
1522
  --disable-dependency-tracking  speeds up one-time build
 
1523
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1524
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1525
 
 
1526
Optional Packages:
 
1527
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1528
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1529
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1530
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
 
1531
                          both@:>@
 
1532
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
 
1533
 
 
1534
Some influential environment variables:
 
1535
  CC          C compiler command
 
1536
  CFLAGS      C compiler flags
 
1537
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1538
              nonstandard directory <lib dir>
 
1539
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1540
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1541
              you have headers in a nonstandard directory <include dir>
 
1542
  CPP         C preprocessor
 
1543
  CXX         C++ compiler command
 
1544
  CXXFLAGS    C++ compiler flags
 
1545
  CXXCPP      C++ preprocessor
 
1546
  F77         Fortran 77 compiler command
 
1547
  FFLAGS      Fortran 77 compiler flags
 
1548
  PKG_CONFIG  path to pkg-config utility
 
1549
  PACKAGE_CFLAGS 
 
1550
              C compiler flags for PACKAGE, overriding pkg-config
 
1551
  PACKAGE_LIBS 
 
1552
              linker flags for PACKAGE, overriding pkg-config
 
1553
 
 
1554
Use these variables to override the choices made by `configure' or to help
 
1555
it to find libraries and programs with nonstandard names/locations.
 
1556
 
 
1557
Report bugs to <ChAnGFu (changfu@hollowproject.org) ()>.
 
1558
_ACEOF
 
1559
ac_status=$?
 
1560
fi
 
1561
 
 
1562
if test "$ac_init_help" = "recursive"; then
 
1563
  # If there are subdirs, report their specific --help.
 
1564
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1565
    test -d "$ac_dir" || continue
 
1566
    ac_builddir=.
 
1567
 
 
1568
case "$ac_dir" in
 
1569
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1570
*)
 
1571
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1572
  # A ".." for each directory in $ac_dir_suffix.
 
1573
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1574
  case $ac_top_builddir_sub in
 
1575
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1576
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1577
  esac ;;
 
1578
esac
 
1579
ac_abs_top_builddir=$ac_pwd
 
1580
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1581
# for backward compatibility:
 
1582
ac_top_builddir=$ac_top_build_prefix
 
1583
 
 
1584
case $srcdir in
 
1585
  .)  # We are building in place.
 
1586
    ac_srcdir=.
 
1587
    ac_top_srcdir=$ac_top_builddir_sub
 
1588
    ac_abs_top_srcdir=$ac_pwd ;;
 
1589
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1590
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1591
    ac_top_srcdir=$srcdir
 
1592
    ac_abs_top_srcdir=$srcdir ;;
 
1593
  *) # Relative name.
 
1594
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1595
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1596
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1597
esac
 
1598
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1599
 
 
1600
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1601
    # Check for guested configure.
 
1602
    if test -f "$ac_srcdir/configure.gnu"; then
 
1603
      echo &&
 
1604
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1605
    elif test -f "$ac_srcdir/configure"; then
 
1606
      echo &&
 
1607
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1608
    else
 
1609
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1610
    fi || ac_status=$?
 
1611
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1612
  done
 
1613
fi
 
1614
 
 
1615
test -n "$ac_init_help" && exit $ac_status
 
1616
if $ac_init_version; then
 
1617
  cat <<\_ACEOF
 
1618
cd-compiz-icon configure 0.0.1
 
1619
generated by GNU Autoconf 2.61
 
1620
 
 
1621
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1622
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1623
This configure script is free software; the Free Software Foundation
 
1624
gives unlimited permission to copy, distribute and modify it.
 
1625
_ACEOF
 
1626
  exit
 
1627
fi
 
1628
cat >config.log <<_ACEOF
 
1629
This file contains any messages produced by compilers while
 
1630
running configure, to aid debugging if configure makes a mistake.
 
1631
 
 
1632
It was created by cd-compiz-icon $as_me 0.0.1, which was
 
1633
generated by GNU Autoconf 2.61.  Invocation command line was
 
1634
 
 
1635
  $ $0 $@
 
1636
 
 
1637
_ACEOF
 
1638
exec 5>>config.log
 
1639
{
 
1640
cat <<_ASUNAME
 
1641
@%:@@%:@ --------- @%:@@%:@
 
1642
@%:@@%:@ Platform. @%:@@%:@
 
1643
@%:@@%:@ --------- @%:@@%:@
 
1644
 
 
1645
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1646
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1647
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1648
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1649
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1650
 
 
1651
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1652
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1653
 
 
1654
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1655
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1656
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1657
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1658
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1659
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1660
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1661
 
 
1662
_ASUNAME
 
1663
 
 
1664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1665
for as_dir in $PATH
 
1666
do
 
1667
  IFS=$as_save_IFS
 
1668
  test -z "$as_dir" && as_dir=.
 
1669
  echo "PATH: $as_dir"
 
1670
done
 
1671
IFS=$as_save_IFS
 
1672
 
 
1673
} >&5
 
1674
 
 
1675
cat >&5 <<_ACEOF
 
1676
 
 
1677
 
 
1678
@%:@@%:@ ----------- @%:@@%:@
 
1679
@%:@@%:@ Core tests. @%:@@%:@
 
1680
@%:@@%:@ ----------- @%:@@%:@
 
1681
 
 
1682
_ACEOF
 
1683
 
 
1684
 
 
1685
# Keep a trace of the command line.
 
1686
# Strip out --no-create and --no-recursion so they do not pile up.
 
1687
# Strip out --silent because we don't want to record it for future runs.
 
1688
# Also quote any args containing shell meta-characters.
 
1689
# Make two passes to allow for proper duplicate-argument suppression.
 
1690
ac_configure_args=
 
1691
ac_configure_args0=
 
1692
ac_configure_args1=
 
1693
ac_must_keep_next=false
 
1694
for ac_pass in 1 2
 
1695
do
 
1696
  for ac_arg
 
1697
  do
 
1698
    case $ac_arg in
 
1699
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1700
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1701
    | -silent | --silent | --silen | --sile | --sil)
 
1702
      continue ;;
 
1703
    *\'*)
 
1704
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1705
    esac
 
1706
    case $ac_pass in
 
1707
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1708
    2)
 
1709
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1710
      if test $ac_must_keep_next = true; then
 
1711
        ac_must_keep_next=false # Got value, back to normal.
 
1712
      else
 
1713
        case $ac_arg in
 
1714
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1715
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1716
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1717
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1718
            case "$ac_configure_args0 " in
 
1719
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1720
            esac
 
1721
            ;;
 
1722
          -* ) ac_must_keep_next=true ;;
 
1723
        esac
 
1724
      fi
 
1725
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1726
      ;;
 
1727
    esac
 
1728
  done
 
1729
done
 
1730
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1731
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1732
 
 
1733
# When interrupted or exit'd, cleanup temporary files, and complete
 
1734
# config.log.  We remove comments because anyway the quotes in there
 
1735
# would cause problems or look ugly.
 
1736
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1737
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1738
trap 'exit_status=$?
 
1739
  # Save into config.log some information that might help in debugging.
 
1740
  {
 
1741
    echo
 
1742
 
 
1743
    cat <<\_ASBOX
 
1744
@%:@@%:@ ---------------- @%:@@%:@
 
1745
@%:@@%:@ Cache variables. @%:@@%:@
 
1746
@%:@@%:@ ---------------- @%:@@%:@
 
1747
_ASBOX
 
1748
    echo
 
1749
    # The following way of writing the cache mishandles newlines in values,
 
1750
(
 
1751
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1752
    eval ac_val=\$$ac_var
 
1753
    case $ac_val in #(
 
1754
    *${as_nl}*)
 
1755
      case $ac_var in #(
 
1756
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1757
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1758
      esac
 
1759
      case $ac_var in #(
 
1760
      _ | IFS | as_nl) ;; #(
 
1761
      *) $as_unset $ac_var ;;
 
1762
      esac ;;
 
1763
    esac
 
1764
  done
 
1765
  (set) 2>&1 |
 
1766
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1767
    *${as_nl}ac_space=\ *)
 
1768
      sed -n \
 
1769
        "s/'\''/'\''\\\\'\'''\''/g;
 
1770
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1771
      ;; #(
 
1772
    *)
 
1773
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1774
      ;;
 
1775
    esac |
 
1776
    sort
 
1777
)
 
1778
    echo
 
1779
 
 
1780
    cat <<\_ASBOX
 
1781
@%:@@%:@ ----------------- @%:@@%:@
 
1782
@%:@@%:@ Output variables. @%:@@%:@
 
1783
@%:@@%:@ ----------------- @%:@@%:@
 
1784
_ASBOX
 
1785
    echo
 
1786
    for ac_var in $ac_subst_vars
 
1787
    do
 
1788
      eval ac_val=\$$ac_var
 
1789
      case $ac_val in
 
1790
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1791
      esac
 
1792
      echo "$ac_var='\''$ac_val'\''"
 
1793
    done | sort
 
1794
    echo
 
1795
 
 
1796
    if test -n "$ac_subst_files"; then
 
1797
      cat <<\_ASBOX
 
1798
@%:@@%:@ ------------------- @%:@@%:@
 
1799
@%:@@%:@ File substitutions. @%:@@%:@
 
1800
@%:@@%:@ ------------------- @%:@@%:@
 
1801
_ASBOX
 
1802
      echo
 
1803
      for ac_var in $ac_subst_files
 
1804
      do
 
1805
        eval ac_val=\$$ac_var
 
1806
        case $ac_val in
 
1807
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1808
        esac
 
1809
        echo "$ac_var='\''$ac_val'\''"
 
1810
      done | sort
 
1811
      echo
 
1812
    fi
 
1813
 
 
1814
    if test -s confdefs.h; then
 
1815
      cat <<\_ASBOX
 
1816
@%:@@%:@ ----------- @%:@@%:@
 
1817
@%:@@%:@ confdefs.h. @%:@@%:@
 
1818
@%:@@%:@ ----------- @%:@@%:@
 
1819
_ASBOX
 
1820
      echo
 
1821
      cat confdefs.h
 
1822
      echo
 
1823
    fi
 
1824
    test "$ac_signal" != 0 &&
 
1825
      echo "$as_me: caught signal $ac_signal"
 
1826
    echo "$as_me: exit $exit_status"
 
1827
  } >&5
 
1828
  rm -f core *.core core.conftest.* &&
 
1829
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1830
    exit $exit_status
 
1831
' 0
 
1832
for ac_signal in 1 2 13 15; do
 
1833
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1834
done
 
1835
ac_signal=0
 
1836
 
 
1837
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1838
rm -f -r conftest* confdefs.h
 
1839
 
 
1840
# Predefined preprocessor variables.
 
1841
 
 
1842
cat >>confdefs.h <<_ACEOF
 
1843
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
1844
_ACEOF
 
1845
 
 
1846
 
 
1847
cat >>confdefs.h <<_ACEOF
 
1848
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1849
_ACEOF
 
1850
 
 
1851
 
 
1852
cat >>confdefs.h <<_ACEOF
 
1853
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1854
_ACEOF
 
1855
 
 
1856
 
 
1857
cat >>confdefs.h <<_ACEOF
 
1858
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
1859
_ACEOF
 
1860
 
 
1861
 
 
1862
cat >>confdefs.h <<_ACEOF
 
1863
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1864
_ACEOF
 
1865
 
 
1866
 
 
1867
# Let the site file select an alternate cache file if it wants to.
 
1868
# Prefer explicitly selected file to automatically selected ones.
 
1869
if test -n "$CONFIG_SITE"; then
 
1870
  set x "$CONFIG_SITE"
 
1871
elif test "x$prefix" != xNONE; then
 
1872
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1873
else
 
1874
  set x "$ac_default_prefix/share/config.site" \
 
1875
        "$ac_default_prefix/etc/config.site"
 
1876
fi
 
1877
shift
 
1878
for ac_site_file
 
1879
do
 
1880
  if test -r "$ac_site_file"; then
 
1881
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1882
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1883
    sed 's/^/| /' "$ac_site_file" >&5
 
1884
    . "$ac_site_file"
 
1885
  fi
 
1886
done
 
1887
 
 
1888
if test -r "$cache_file"; then
 
1889
  # Some versions of bash will fail to source /dev/null (special
 
1890
  # files actually), so we avoid doing that.
 
1891
  if test -f "$cache_file"; then
 
1892
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1893
echo "$as_me: loading cache $cache_file" >&6;}
 
1894
    case $cache_file in
 
1895
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1896
      *)                      . "./$cache_file";;
 
1897
    esac
 
1898
  fi
 
1899
else
 
1900
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1901
echo "$as_me: creating cache $cache_file" >&6;}
 
1902
  >$cache_file
 
1903
fi
 
1904
 
 
1905
# Check that the precious variables saved in the cache have kept the same
 
1906
# value.
 
1907
ac_cache_corrupted=false
 
1908
for ac_var in $ac_precious_vars; do
 
1909
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1910
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1911
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1912
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1913
  case $ac_old_set,$ac_new_set in
 
1914
    set,)
 
1915
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1916
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1917
      ac_cache_corrupted=: ;;
 
1918
    ,set)
 
1919
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1920
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1921
      ac_cache_corrupted=: ;;
 
1922
    ,);;
 
1923
    *)
 
1924
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1925
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1926
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1927
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1928
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1929
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1930
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1931
        ac_cache_corrupted=:
 
1932
      fi;;
 
1933
  esac
 
1934
  # Pass precious variables to config.status.
 
1935
  if test "$ac_new_set" = set; then
 
1936
    case $ac_new_val in
 
1937
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1938
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1939
    esac
 
1940
    case " $ac_configure_args " in
 
1941
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1942
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1943
    esac
 
1944
  fi
 
1945
done
 
1946
if $ac_cache_corrupted; then
 
1947
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1948
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1949
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1950
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1951
   { (exit 1); exit 1; }; }
 
1952
fi
 
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
 
 
1960
 
 
1961
 
 
1962
 
 
1963
 
 
1964
 
 
1965
 
 
1966
 
 
1967
 
 
1968
 
 
1969
 
 
1970
 
 
1971
 
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
ac_ext=c
 
1979
ac_cpp='$CPP $CPPFLAGS'
 
1980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1983
 
 
1984
 
 
1985
 
 
1986
ac_config_headers="$ac_config_headers config.h"
 
1987
 
 
1988
 
 
1989
am__api_version="1.9"
 
1990
ac_aux_dir=
 
1991
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1992
  if test -f "$ac_dir/install-sh"; then
 
1993
    ac_aux_dir=$ac_dir
 
1994
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1995
    break
 
1996
  elif test -f "$ac_dir/install.sh"; then
 
1997
    ac_aux_dir=$ac_dir
 
1998
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1999
    break
 
2000
  elif test -f "$ac_dir/shtool"; then
 
2001
    ac_aux_dir=$ac_dir
 
2002
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2003
    break
 
2004
  fi
 
2005
done
 
2006
if test -z "$ac_aux_dir"; then
 
2007
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2008
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2009
   { (exit 1); exit 1; }; }
 
2010
fi
 
2011
 
 
2012
# These three variables are undocumented and unsupported,
 
2013
# and are intended to be withdrawn in a future Autoconf release.
 
2014
# They can cause serious problems if a builder's source tree is in a directory
 
2015
# whose full name contains unusual characters.
 
2016
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2017
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2018
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2019
 
 
2020
 
 
2021
# Find a good install program.  We prefer a C program (faster),
 
2022
# so one script is as good as another.  But avoid the broken or
 
2023
# incompatible versions:
 
2024
# SysV /etc/install, /usr/sbin/install
 
2025
# SunOS /usr/etc/install
 
2026
# IRIX /sbin/install
 
2027
# AIX /bin/install
 
2028
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2029
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2030
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2031
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2032
# OS/2's system install, which has a completely different semantic
 
2033
# ./install, which can be erroneously created by make from ./install.sh.
 
2034
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2035
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2036
if test -z "$INSTALL"; then
 
2037
if test "${ac_cv_path_install+set}" = set; then
 
2038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2039
else
 
2040
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2041
for as_dir in $PATH
 
2042
do
 
2043
  IFS=$as_save_IFS
 
2044
  test -z "$as_dir" && as_dir=.
 
2045
  # Account for people who put trailing slashes in PATH elements.
 
2046
case $as_dir/ in
 
2047
  ./ | .// | /cC/* | \
 
2048
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2049
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2050
  /usr/ucb/* ) ;;
 
2051
  *)
 
2052
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2053
    # Don't use installbsd from OSF since it installs stuff as root
 
2054
    # by default.
 
2055
    for ac_prog in ginstall scoinst install; do
 
2056
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2057
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2058
          if test $ac_prog = install &&
 
2059
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2060
            # AIX install.  It has an incompatible calling convention.
 
2061
            :
 
2062
          elif test $ac_prog = install &&
 
2063
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2064
            # program-specific install script used by HP pwplus--don't use.
 
2065
            :
 
2066
          else
 
2067
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2068
            break 3
 
2069
          fi
 
2070
        fi
 
2071
      done
 
2072
    done
 
2073
    ;;
 
2074
esac
 
2075
done
 
2076
IFS=$as_save_IFS
 
2077
 
 
2078
 
 
2079
fi
 
2080
  if test "${ac_cv_path_install+set}" = set; then
 
2081
    INSTALL=$ac_cv_path_install
 
2082
  else
 
2083
    # As a last resort, use the slow shell script.  Don't cache a
 
2084
    # value for INSTALL within a source directory, because that will
 
2085
    # break other packages using the cache if that directory is
 
2086
    # removed, or if the value is a relative name.
 
2087
    INSTALL=$ac_install_sh
 
2088
  fi
 
2089
fi
 
2090
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2091
echo "${ECHO_T}$INSTALL" >&6; }
 
2092
 
 
2093
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2094
# It thinks the first close brace ends the variable substitution.
 
2095
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2096
 
 
2097
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2098
 
 
2099
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2100
 
 
2101
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2102
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2103
# Just in case
 
2104
sleep 1
 
2105
echo timestamp > conftest.file
 
2106
# Do `set' in a subshell so we don't clobber the current shell's
 
2107
# arguments.  Must try -L first in case configure is actually a
 
2108
# symlink; some systems play weird games with the mod time of symlinks
 
2109
# (eg FreeBSD returns the mod time of the symlink's containing
 
2110
# directory).
 
2111
if (
 
2112
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2113
   if test "$*" = "X"; then
 
2114
      # -L didn't work.
 
2115
      set X `ls -t $srcdir/configure conftest.file`
 
2116
   fi
 
2117
   rm -f conftest.file
 
2118
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2119
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2120
 
 
2121
      # If neither matched, then we have a broken ls.  This can happen
 
2122
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2123
      # broken ls alias from the environment.  This has actually
 
2124
      # happened.  Such a system could not be considered "sane".
 
2125
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2126
alias in your environment" >&5
 
2127
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2128
alias in your environment" >&2;}
 
2129
   { (exit 1); exit 1; }; }
 
2130
   fi
 
2131
 
 
2132
   test "$2" = conftest.file
 
2133
   )
 
2134
then
 
2135
   # Ok.
 
2136
   :
 
2137
else
 
2138
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2139
Check your system clock" >&5
 
2140
echo "$as_me: error: newly created file is older than distributed files!
 
2141
Check your system clock" >&2;}
 
2142
   { (exit 1); exit 1; }; }
 
2143
fi
 
2144
{ echo "$as_me:$LINENO: result: yes" >&5
 
2145
echo "${ECHO_T}yes" >&6; }
 
2146
test "$program_prefix" != NONE &&
 
2147
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2148
# Use a double $ so make ignores it.
 
2149
test "$program_suffix" != NONE &&
 
2150
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2151
# Double any \ or $.  echo might interpret backslashes.
 
2152
# By default was `s,x,x', remove it if useless.
 
2153
cat <<\_ACEOF >conftest.sed
 
2154
s/[\\$]/&&/g;s/;s,x,x,$//
 
2155
_ACEOF
 
2156
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2157
rm -f conftest.sed
 
2158
 
 
2159
# expand $ac_aux_dir to an absolute path
 
2160
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2161
 
 
2162
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2163
# Use eval to expand $SHELL
 
2164
if eval "$MISSING --run true"; then
 
2165
  am_missing_run="$MISSING --run "
 
2166
else
 
2167
  am_missing_run=
 
2168
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2169
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2170
fi
 
2171
 
 
2172
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2173
  # We used to keeping the `.' as first argument, in order to
 
2174
  # allow $(mkdir_p) to be used without argument.  As in
 
2175
  #   $(mkdir_p) $(somedir)
 
2176
  # where $(somedir) is conditionally defined.  However this is wrong
 
2177
  # for two reasons:
 
2178
  #  1. if the package is installed by a user who cannot write `.'
 
2179
  #     make install will fail,
 
2180
  #  2. the above comment should most certainly read
 
2181
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2182
  #     so it does not work when $(somedir) is undefined and
 
2183
  #     $(DESTDIR) is not.
 
2184
  #  To support the latter case, we have to write
 
2185
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2186
  #  so the `.' trick is pointless.
 
2187
  mkdir_p='mkdir -p --'
 
2188
else
 
2189
  # On NextStep and OpenStep, the `mkdir' command does not
 
2190
  # recognize any option.  It will interpret all options as
 
2191
  # directories to create, and then abort because `.' already
 
2192
  # exists.
 
2193
  for d in ./-p ./--version;
 
2194
  do
 
2195
    test -d $d && rmdir $d
 
2196
  done
 
2197
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2198
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2199
    mkdir_p='$(mkinstalldirs)'
 
2200
  else
 
2201
    mkdir_p='$(install_sh) -d'
 
2202
  fi
 
2203
fi
 
2204
 
 
2205
for ac_prog in gawk mawk nawk awk
 
2206
do
 
2207
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2208
set dummy $ac_prog; ac_word=$2
 
2209
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2210
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2211
if test "${ac_cv_prog_AWK+set}" = set; then
 
2212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2213
else
 
2214
  if test -n "$AWK"; then
 
2215
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2216
else
 
2217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2218
for as_dir in $PATH
 
2219
do
 
2220
  IFS=$as_save_IFS
 
2221
  test -z "$as_dir" && as_dir=.
 
2222
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2223
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2224
    ac_cv_prog_AWK="$ac_prog"
 
2225
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2226
    break 2
 
2227
  fi
 
2228
done
 
2229
done
 
2230
IFS=$as_save_IFS
 
2231
 
 
2232
fi
 
2233
fi
 
2234
AWK=$ac_cv_prog_AWK
 
2235
if test -n "$AWK"; then
 
2236
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2237
echo "${ECHO_T}$AWK" >&6; }
 
2238
else
 
2239
  { echo "$as_me:$LINENO: result: no" >&5
 
2240
echo "${ECHO_T}no" >&6; }
 
2241
fi
 
2242
 
 
2243
 
 
2244
  test -n "$AWK" && break
 
2245
done
 
2246
 
 
2247
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2248
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2249
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2250
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2252
else
 
2253
  cat >conftest.make <<\_ACEOF
 
2254
SHELL = /bin/sh
 
2255
all:
 
2256
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2257
_ACEOF
 
2258
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2259
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2260
  *@@@%%%=?*=@@@%%%*)
 
2261
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2262
  *)
 
2263
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2264
esac
 
2265
rm -f conftest.make
 
2266
fi
 
2267
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2268
  { echo "$as_me:$LINENO: result: yes" >&5
 
2269
echo "${ECHO_T}yes" >&6; }
 
2270
  SET_MAKE=
 
2271
else
 
2272
  { echo "$as_me:$LINENO: result: no" >&5
 
2273
echo "${ECHO_T}no" >&6; }
 
2274
  SET_MAKE="MAKE=${MAKE-make}"
 
2275
fi
 
2276
 
 
2277
rm -rf .tst 2>/dev/null
 
2278
mkdir .tst 2>/dev/null
 
2279
if test -d .tst; then
 
2280
  am__leading_dot=.
 
2281
else
 
2282
  am__leading_dot=_
 
2283
fi
 
2284
rmdir .tst 2>/dev/null
 
2285
 
 
2286
# test to see if srcdir already configured
 
2287
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2288
   test -f $srcdir/config.status; then
 
2289
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2290
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2291
   { (exit 1); exit 1; }; }
 
2292
fi
 
2293
 
 
2294
# test whether we have cygpath
 
2295
if test -z "$CYGPATH_W"; then
 
2296
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2297
    CYGPATH_W='cygpath -w'
 
2298
  else
 
2299
    CYGPATH_W=echo
 
2300
  fi
 
2301
fi
 
2302
 
 
2303
 
 
2304
# Define the identity of the package.
 
2305
 PACKAGE='cd-compiz-icon'
 
2306
 VERSION='0.0.1'
 
2307
 
 
2308
 
 
2309
cat >>confdefs.h <<_ACEOF
 
2310
@%:@define PACKAGE "$PACKAGE"
 
2311
_ACEOF
 
2312
 
 
2313
 
 
2314
cat >>confdefs.h <<_ACEOF
 
2315
@%:@define VERSION "$VERSION"
 
2316
_ACEOF
 
2317
 
 
2318
# Some tools Automake needs.
 
2319
 
 
2320
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2321
 
 
2322
 
 
2323
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2324
 
 
2325
 
 
2326
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2327
 
 
2328
 
 
2329
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2330
 
 
2331
 
 
2332
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2333
 
 
2334
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2335
 
 
2336
# Installed binaries are usually stripped using `strip' when the user
 
2337
# run `make install-strip'.  However `strip' might not be the right
 
2338
# tool to use in cross-compilation environments, therefore Automake
 
2339
# will honor the `STRIP' environment variable to overrule this program.
 
2340
if test "$cross_compiling" != no; then
 
2341
  if test -n "$ac_tool_prefix"; then
 
2342
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2343
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2344
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2345
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2346
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2348
else
 
2349
  if test -n "$STRIP"; then
 
2350
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2351
else
 
2352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2353
for as_dir in $PATH
 
2354
do
 
2355
  IFS=$as_save_IFS
 
2356
  test -z "$as_dir" && as_dir=.
 
2357
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2358
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2359
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2360
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2361
    break 2
 
2362
  fi
 
2363
done
 
2364
done
 
2365
IFS=$as_save_IFS
 
2366
 
 
2367
fi
 
2368
fi
 
2369
STRIP=$ac_cv_prog_STRIP
 
2370
if test -n "$STRIP"; then
 
2371
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2372
echo "${ECHO_T}$STRIP" >&6; }
 
2373
else
 
2374
  { echo "$as_me:$LINENO: result: no" >&5
 
2375
echo "${ECHO_T}no" >&6; }
 
2376
fi
 
2377
 
 
2378
 
 
2379
fi
 
2380
if test -z "$ac_cv_prog_STRIP"; then
 
2381
  ac_ct_STRIP=$STRIP
 
2382
  # Extract the first word of "strip", so it can be a program name with args.
 
2383
set dummy strip; ac_word=$2
 
2384
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2385
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2386
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2388
else
 
2389
  if test -n "$ac_ct_STRIP"; then
 
2390
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2391
else
 
2392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2393
for as_dir in $PATH
 
2394
do
 
2395
  IFS=$as_save_IFS
 
2396
  test -z "$as_dir" && as_dir=.
 
2397
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2399
    ac_cv_prog_ac_ct_STRIP="strip"
 
2400
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2401
    break 2
 
2402
  fi
 
2403
done
 
2404
done
 
2405
IFS=$as_save_IFS
 
2406
 
 
2407
fi
 
2408
fi
 
2409
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2410
if test -n "$ac_ct_STRIP"; then
 
2411
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2412
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2413
else
 
2414
  { echo "$as_me:$LINENO: result: no" >&5
 
2415
echo "${ECHO_T}no" >&6; }
 
2416
fi
 
2417
 
 
2418
  if test "x$ac_ct_STRIP" = x; then
 
2419
    STRIP=":"
 
2420
  else
 
2421
    case $cross_compiling:$ac_tool_warned in
 
2422
yes:)
 
2423
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2424
whose name does not start with the host triplet.  If you think this
 
2425
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2426
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2427
whose name does not start with the host triplet.  If you think this
 
2428
configuration is useful to you, please write to autoconf@gnu.org." >&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="\${SHELL} \$(install_sh) -c -s"
 
2439
 
 
2440
# We need awk for the "check" target.  The system "awk" is bad on
 
2441
# some platforms.
 
2442
# Always define AMTAR for backward compatibility.
 
2443
 
 
2444
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2445
 
 
2446
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2447
 
 
2448
 
 
2449
 
 
2450
 
 
2451
 
 
2452
# Check whether --enable-shared was given.
 
2453
if test "${enable_shared+set}" = set; then
 
2454
  enableval=$enable_shared; p=${PACKAGE-default}
 
2455
    case $enableval in
 
2456
    yes) enable_shared=yes ;;
 
2457
    no) enable_shared=no ;;
 
2458
    *)
 
2459
      enable_shared=no
 
2460
      # Look at the argument we got.  We use all the common list separators.
 
2461
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2462
      for pkg in $enableval; do
 
2463
        IFS="$lt_save_ifs"
 
2464
        if test "X$pkg" = "X$p"; then
 
2465
          enable_shared=yes
 
2466
        fi
 
2467
      done
 
2468
      IFS="$lt_save_ifs"
 
2469
      ;;
 
2470
    esac
 
2471
else
 
2472
  enable_shared=yes
 
2473
fi
 
2474
 
 
2475
 
 
2476
# Check whether --enable-static was given.
 
2477
if test "${enable_static+set}" = set; then
 
2478
  enableval=$enable_static; p=${PACKAGE-default}
 
2479
    case $enableval in
 
2480
    yes) enable_static=yes ;;
 
2481
    no) enable_static=no ;;
 
2482
    *)
 
2483
     enable_static=no
 
2484
      # Look at the argument we got.  We use all the common list separators.
 
2485
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2486
      for pkg in $enableval; do
 
2487
        IFS="$lt_save_ifs"
 
2488
        if test "X$pkg" = "X$p"; then
 
2489
          enable_static=yes
 
2490
        fi
 
2491
      done
 
2492
      IFS="$lt_save_ifs"
 
2493
      ;;
 
2494
    esac
 
2495
else
 
2496
  enable_static=yes
 
2497
fi
 
2498
 
 
2499
 
 
2500
# Check whether --enable-fast-install was given.
 
2501
if test "${enable_fast_install+set}" = set; then
 
2502
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
2503
    case $enableval in
 
2504
    yes) enable_fast_install=yes ;;
 
2505
    no) enable_fast_install=no ;;
 
2506
    *)
 
2507
      enable_fast_install=no
 
2508
      # Look at the argument we got.  We use all the common list separators.
 
2509
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2510
      for pkg in $enableval; do
 
2511
        IFS="$lt_save_ifs"
 
2512
        if test "X$pkg" = "X$p"; then
 
2513
          enable_fast_install=yes
 
2514
        fi
 
2515
      done
 
2516
      IFS="$lt_save_ifs"
 
2517
      ;;
 
2518
    esac
 
2519
else
 
2520
  enable_fast_install=yes
 
2521
fi
 
2522
 
 
2523
 
 
2524
# Make sure we can run config.sub.
 
2525
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2526
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2527
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2528
   { (exit 1); exit 1; }; }
 
2529
 
 
2530
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2531
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2532
if test "${ac_cv_build+set}" = set; then
 
2533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2534
else
 
2535
  ac_build_alias=$build_alias
 
2536
test "x$ac_build_alias" = x &&
 
2537
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2538
test "x$ac_build_alias" = x &&
 
2539
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2540
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2541
   { (exit 1); exit 1; }; }
 
2542
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2543
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2544
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2545
   { (exit 1); exit 1; }; }
 
2546
 
 
2547
fi
 
2548
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2549
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2550
case $ac_cv_build in
 
2551
*-*-*) ;;
 
2552
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2553
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2554
   { (exit 1); exit 1; }; };;
 
2555
esac
 
2556
build=$ac_cv_build
 
2557
ac_save_IFS=$IFS; IFS='-'
 
2558
set x $ac_cv_build
 
2559
shift
 
2560
build_cpu=$1
 
2561
build_vendor=$2
 
2562
shift; shift
 
2563
# Remember, the first character of IFS is used to create $*,
 
2564
# except with old shells:
 
2565
build_os=$*
 
2566
IFS=$ac_save_IFS
 
2567
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2568
 
 
2569
 
 
2570
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2571
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2572
if test "${ac_cv_host+set}" = set; then
 
2573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2574
else
 
2575
  if test "x$host_alias" = x; then
 
2576
  ac_cv_host=$ac_cv_build
 
2577
else
 
2578
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2579
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2580
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2581
   { (exit 1); exit 1; }; }
 
2582
fi
 
2583
 
 
2584
fi
 
2585
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2586
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2587
case $ac_cv_host in
 
2588
*-*-*) ;;
 
2589
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2590
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2591
   { (exit 1); exit 1; }; };;
 
2592
esac
 
2593
host=$ac_cv_host
 
2594
ac_save_IFS=$IFS; IFS='-'
 
2595
set x $ac_cv_host
 
2596
shift
 
2597
host_cpu=$1
 
2598
host_vendor=$2
 
2599
shift; shift
 
2600
# Remember, the first character of IFS is used to create $*,
 
2601
# except with old shells:
 
2602
host_os=$*
 
2603
IFS=$ac_save_IFS
 
2604
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2605
 
 
2606
 
 
2607
DEPDIR="${am__leading_dot}deps"
 
2608
 
 
2609
ac_config_commands="$ac_config_commands depfiles"
 
2610
 
 
2611
 
 
2612
am_make=${MAKE-make}
 
2613
cat > confinc << 'END'
 
2614
am__doit:
 
2615
        @echo done
 
2616
.PHONY: am__doit
 
2617
END
 
2618
# If we don't find an include directive, just comment out the code.
 
2619
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2620
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2621
am__include="#"
 
2622
am__quote=
 
2623
_am_result=none
 
2624
# First try GNU make style include.
 
2625
echo "include confinc" > confmf
 
2626
# We grep out `Entering directory' and `Leaving directory'
 
2627
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2628
# In particular we don't look at `^make:' because GNU make might
 
2629
# be invoked under some other name (usually "gmake"), in which
 
2630
# case it prints its new name instead of `make'.
 
2631
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2632
   am__include=include
 
2633
   am__quote=
 
2634
   _am_result=GNU
 
2635
fi
 
2636
# Now try BSD make style include.
 
2637
if test "$am__include" = "#"; then
 
2638
   echo '.include "confinc"' > confmf
 
2639
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2640
      am__include=.include
 
2641
      am__quote="\""
 
2642
      _am_result=BSD
 
2643
   fi
 
2644
fi
 
2645
 
 
2646
 
 
2647
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2648
echo "${ECHO_T}$_am_result" >&6; }
 
2649
rm -f confinc confmf
 
2650
 
 
2651
# Check whether --enable-dependency-tracking was given.
 
2652
if test "${enable_dependency_tracking+set}" = set; then
 
2653
  enableval=$enable_dependency_tracking; 
 
2654
fi
 
2655
 
 
2656
if test "x$enable_dependency_tracking" != xno; then
 
2657
  am_depcomp="$ac_aux_dir/depcomp"
 
2658
  AMDEPBACKSLASH='\'
 
2659
fi
 
2660
 
 
2661
 
 
2662
if test "x$enable_dependency_tracking" != xno; then
 
2663
  AMDEP_TRUE=
 
2664
  AMDEP_FALSE='#'
 
2665
else
 
2666
  AMDEP_TRUE='#'
 
2667
  AMDEP_FALSE=
 
2668
fi
 
2669
 
 
2670
 
 
2671
 
 
2672
ac_ext=c
 
2673
ac_cpp='$CPP $CPPFLAGS'
 
2674
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2675
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2676
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2677
if test -n "$ac_tool_prefix"; then
 
2678
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2679
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2680
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2682
if test "${ac_cv_prog_CC+set}" = set; then
 
2683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2684
else
 
2685
  if test -n "$CC"; then
 
2686
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2687
else
 
2688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2689
for as_dir in $PATH
 
2690
do
 
2691
  IFS=$as_save_IFS
 
2692
  test -z "$as_dir" && as_dir=.
 
2693
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2694
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2695
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2696
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2697
    break 2
 
2698
  fi
 
2699
done
 
2700
done
 
2701
IFS=$as_save_IFS
 
2702
 
 
2703
fi
 
2704
fi
 
2705
CC=$ac_cv_prog_CC
 
2706
if test -n "$CC"; then
 
2707
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2708
echo "${ECHO_T}$CC" >&6; }
 
2709
else
 
2710
  { echo "$as_me:$LINENO: result: no" >&5
 
2711
echo "${ECHO_T}no" >&6; }
 
2712
fi
 
2713
 
 
2714
 
 
2715
fi
 
2716
if test -z "$ac_cv_prog_CC"; then
 
2717
  ac_ct_CC=$CC
 
2718
  # Extract the first word of "gcc", so it can be a program name with args.
 
2719
set dummy gcc; ac_word=$2
 
2720
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2722
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2724
else
 
2725
  if test -n "$ac_ct_CC"; then
 
2726
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2727
else
 
2728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2729
for as_dir in $PATH
 
2730
do
 
2731
  IFS=$as_save_IFS
 
2732
  test -z "$as_dir" && as_dir=.
 
2733
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2734
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2735
    ac_cv_prog_ac_ct_CC="gcc"
 
2736
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2737
    break 2
 
2738
  fi
 
2739
done
 
2740
done
 
2741
IFS=$as_save_IFS
 
2742
 
 
2743
fi
 
2744
fi
 
2745
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2746
if test -n "$ac_ct_CC"; then
 
2747
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2748
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2749
else
 
2750
  { echo "$as_me:$LINENO: result: no" >&5
 
2751
echo "${ECHO_T}no" >&6; }
 
2752
fi
 
2753
 
 
2754
  if test "x$ac_ct_CC" = x; then
 
2755
    CC=""
 
2756
  else
 
2757
    case $cross_compiling:$ac_tool_warned in
 
2758
yes:)
 
2759
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2760
whose name does not start with the host triplet.  If you think this
 
2761
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2762
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2763
whose name does not start with the host triplet.  If you think this
 
2764
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2765
ac_tool_warned=yes ;;
 
2766
esac
 
2767
    CC=$ac_ct_CC
 
2768
  fi
 
2769
else
 
2770
  CC="$ac_cv_prog_CC"
 
2771
fi
 
2772
 
 
2773
if test -z "$CC"; then
 
2774
          if test -n "$ac_tool_prefix"; then
 
2775
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2776
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2777
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2778
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2779
if test "${ac_cv_prog_CC+set}" = set; then
 
2780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2781
else
 
2782
  if test -n "$CC"; then
 
2783
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2784
else
 
2785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2786
for as_dir in $PATH
 
2787
do
 
2788
  IFS=$as_save_IFS
 
2789
  test -z "$as_dir" && as_dir=.
 
2790
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2791
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2792
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2793
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2794
    break 2
 
2795
  fi
 
2796
done
 
2797
done
 
2798
IFS=$as_save_IFS
 
2799
 
 
2800
fi
 
2801
fi
 
2802
CC=$ac_cv_prog_CC
 
2803
if test -n "$CC"; then
 
2804
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2805
echo "${ECHO_T}$CC" >&6; }
 
2806
else
 
2807
  { echo "$as_me:$LINENO: result: no" >&5
 
2808
echo "${ECHO_T}no" >&6; }
 
2809
fi
 
2810
 
 
2811
 
 
2812
  fi
 
2813
fi
 
2814
if test -z "$CC"; then
 
2815
  # Extract the first word of "cc", so it can be a program name with args.
 
2816
set dummy cc; ac_word=$2
 
2817
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2818
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2819
if test "${ac_cv_prog_CC+set}" = set; then
 
2820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2821
else
 
2822
  if test -n "$CC"; then
 
2823
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2824
else
 
2825
  ac_prog_rejected=no
 
2826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2827
for as_dir in $PATH
 
2828
do
 
2829
  IFS=$as_save_IFS
 
2830
  test -z "$as_dir" && as_dir=.
 
2831
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2832
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2833
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2834
       ac_prog_rejected=yes
 
2835
       continue
 
2836
     fi
 
2837
    ac_cv_prog_CC="cc"
 
2838
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2839
    break 2
 
2840
  fi
 
2841
done
 
2842
done
 
2843
IFS=$as_save_IFS
 
2844
 
 
2845
if test $ac_prog_rejected = yes; then
 
2846
  # We found a bogon in the path, so make sure we never use it.
 
2847
  set dummy $ac_cv_prog_CC
 
2848
  shift
 
2849
  if test $@%:@ != 0; then
 
2850
    # We chose a different compiler from the bogus one.
 
2851
    # However, it has the same basename, so the bogon will be chosen
 
2852
    # first if we set CC to just the basename; use the full file name.
 
2853
    shift
 
2854
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2855
  fi
 
2856
fi
 
2857
fi
 
2858
fi
 
2859
CC=$ac_cv_prog_CC
 
2860
if test -n "$CC"; then
 
2861
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2862
echo "${ECHO_T}$CC" >&6; }
 
2863
else
 
2864
  { echo "$as_me:$LINENO: result: no" >&5
 
2865
echo "${ECHO_T}no" >&6; }
 
2866
fi
 
2867
 
 
2868
 
 
2869
fi
 
2870
if test -z "$CC"; then
 
2871
  if test -n "$ac_tool_prefix"; then
 
2872
  for ac_prog in cl.exe
 
2873
  do
 
2874
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2875
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2876
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2878
if test "${ac_cv_prog_CC+set}" = set; then
 
2879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2880
else
 
2881
  if test -n "$CC"; then
 
2882
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2883
else
 
2884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2885
for as_dir in $PATH
 
2886
do
 
2887
  IFS=$as_save_IFS
 
2888
  test -z "$as_dir" && as_dir=.
 
2889
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2890
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2891
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2892
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2893
    break 2
 
2894
  fi
 
2895
done
 
2896
done
 
2897
IFS=$as_save_IFS
 
2898
 
 
2899
fi
 
2900
fi
 
2901
CC=$ac_cv_prog_CC
 
2902
if test -n "$CC"; then
 
2903
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2904
echo "${ECHO_T}$CC" >&6; }
 
2905
else
 
2906
  { echo "$as_me:$LINENO: result: no" >&5
 
2907
echo "${ECHO_T}no" >&6; }
 
2908
fi
 
2909
 
 
2910
 
 
2911
    test -n "$CC" && break
 
2912
  done
 
2913
fi
 
2914
if test -z "$CC"; then
 
2915
  ac_ct_CC=$CC
 
2916
  for ac_prog in cl.exe
 
2917
do
 
2918
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2919
set dummy $ac_prog; ac_word=$2
 
2920
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2922
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2924
else
 
2925
  if test -n "$ac_ct_CC"; then
 
2926
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2927
else
 
2928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2929
for as_dir in $PATH
 
2930
do
 
2931
  IFS=$as_save_IFS
 
2932
  test -z "$as_dir" && as_dir=.
 
2933
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2934
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2935
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2936
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2937
    break 2
 
2938
  fi
 
2939
done
 
2940
done
 
2941
IFS=$as_save_IFS
 
2942
 
 
2943
fi
 
2944
fi
 
2945
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2946
if test -n "$ac_ct_CC"; then
 
2947
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2948
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2949
else
 
2950
  { echo "$as_me:$LINENO: result: no" >&5
 
2951
echo "${ECHO_T}no" >&6; }
 
2952
fi
 
2953
 
 
2954
 
 
2955
  test -n "$ac_ct_CC" && break
 
2956
done
 
2957
 
 
2958
  if test "x$ac_ct_CC" = x; then
 
2959
    CC=""
 
2960
  else
 
2961
    case $cross_compiling:$ac_tool_warned in
 
2962
yes:)
 
2963
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2964
whose name does not start with the host triplet.  If you think this
 
2965
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2966
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2967
whose name does not start with the host triplet.  If you think this
 
2968
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2969
ac_tool_warned=yes ;;
 
2970
esac
 
2971
    CC=$ac_ct_CC
 
2972
  fi
 
2973
fi
 
2974
 
 
2975
fi
 
2976
 
 
2977
 
 
2978
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2979
See \`config.log' for more details." >&5
 
2980
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2981
See \`config.log' for more details." >&2;}
 
2982
   { (exit 1); exit 1; }; }
 
2983
 
 
2984
# Provide some information about the compiler.
 
2985
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2986
ac_compiler=`set X $ac_compile; echo $2`
 
2987
{ (ac_try="$ac_compiler --version >&5"
 
2988
case "(($ac_try" in
 
2989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2990
  *) ac_try_echo=$ac_try;;
 
2991
esac
 
2992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2993
  (eval "$ac_compiler --version >&5") 2>&5
 
2994
  ac_status=$?
 
2995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2996
  (exit $ac_status); }
 
2997
{ (ac_try="$ac_compiler -v >&5"
 
2998
case "(($ac_try" in
 
2999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3000
  *) ac_try_echo=$ac_try;;
 
3001
esac
 
3002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3003
  (eval "$ac_compiler -v >&5") 2>&5
 
3004
  ac_status=$?
 
3005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3006
  (exit $ac_status); }
 
3007
{ (ac_try="$ac_compiler -V >&5"
 
3008
case "(($ac_try" in
 
3009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3010
  *) ac_try_echo=$ac_try;;
 
3011
esac
 
3012
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3013
  (eval "$ac_compiler -V >&5") 2>&5
 
3014
  ac_status=$?
 
3015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3016
  (exit $ac_status); }
 
3017
 
 
3018
cat >conftest.$ac_ext <<_ACEOF
 
3019
/* confdefs.h.  */
 
3020
_ACEOF
 
3021
cat confdefs.h >>conftest.$ac_ext
 
3022
cat >>conftest.$ac_ext <<_ACEOF
 
3023
/* end confdefs.h.  */
 
3024
 
 
3025
int
 
3026
main ()
 
3027
{
 
3028
 
 
3029
  ;
 
3030
  return 0;
 
3031
}
 
3032
_ACEOF
 
3033
ac_clean_files_save=$ac_clean_files
 
3034
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3035
# Try to create an executable without -o first, disregard a.out.
 
3036
# It will help us diagnose broken compilers, and finding out an intuition
 
3037
# of exeext.
 
3038
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3039
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3040
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3041
#
 
3042
# List of possible output files, starting from the most likely.
 
3043
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3044
# only as a last resort.  b.out is created by i960 compilers.
 
3045
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3046
#
 
3047
# The IRIX 6 linker writes into existing files which may not be
 
3048
# executable, retaining their permissions.  Remove them first so a
 
3049
# subsequent execution test works.
 
3050
ac_rmfiles=
 
3051
for ac_file in $ac_files
 
3052
do
 
3053
  case $ac_file in
 
3054
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3055
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3056
  esac
 
3057
done
 
3058
rm -f $ac_rmfiles
 
3059
 
 
3060
if { (ac_try="$ac_link_default"
 
3061
case "(($ac_try" in
 
3062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3063
  *) ac_try_echo=$ac_try;;
 
3064
esac
 
3065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3066
  (eval "$ac_link_default") 2>&5
 
3067
  ac_status=$?
 
3068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3069
  (exit $ac_status); }; then
 
3070
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3071
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3072
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3073
# so that the user can short-circuit this test for compilers unknown to
 
3074
# Autoconf.
 
3075
for ac_file in $ac_files ''
 
3076
do
 
3077
  test -f "$ac_file" || continue
 
3078
  case $ac_file in
 
3079
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3080
        ;;
 
3081
    [ab].out )
 
3082
        # We found the default executable, but exeext='' is most
 
3083
        # certainly right.
 
3084
        break;;
 
3085
    *.* )
 
3086
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3087
        then :; else
 
3088
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3089
        fi
 
3090
        # We set ac_cv_exeext here because the later test for it is not
 
3091
        # safe: cross compilers may not add the suffix if given an `-o'
 
3092
        # argument, so we may need to know it at that point already.
 
3093
        # Even if this section looks crufty: it has the advantage of
 
3094
        # actually working.
 
3095
        break;;
 
3096
    * )
 
3097
        break;;
 
3098
  esac
 
3099
done
 
3100
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3101
 
 
3102
else
 
3103
  ac_file=''
 
3104
fi
 
3105
 
 
3106
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3107
echo "${ECHO_T}$ac_file" >&6; }
 
3108
if test -z "$ac_file"; then
 
3109
  echo "$as_me: failed program was:" >&5
 
3110
sed 's/^/| /' conftest.$ac_ext >&5
 
3111
 
 
3112
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3113
See \`config.log' for more details." >&5
 
3114
echo "$as_me: error: C compiler cannot create executables
 
3115
See \`config.log' for more details." >&2;}
 
3116
   { (exit 77); exit 77; }; }
 
3117
fi
 
3118
 
 
3119
ac_exeext=$ac_cv_exeext
 
3120
 
 
3121
# Check that the compiler produces executables we can run.  If not, either
 
3122
# the compiler is broken, or we cross compile.
 
3123
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3124
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3125
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3126
# If not cross compiling, check that we can run a simple program.
 
3127
if test "$cross_compiling" != yes; then
 
3128
  if { ac_try='./$ac_file'
 
3129
  { (case "(($ac_try" in
 
3130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3131
  *) ac_try_echo=$ac_try;;
 
3132
esac
 
3133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3134
  (eval "$ac_try") 2>&5
 
3135
  ac_status=$?
 
3136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3137
  (exit $ac_status); }; }; then
 
3138
    cross_compiling=no
 
3139
  else
 
3140
    if test "$cross_compiling" = maybe; then
 
3141
        cross_compiling=yes
 
3142
    else
 
3143
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3144
If you meant to cross compile, use \`--host'.
 
3145
See \`config.log' for more details." >&5
 
3146
echo "$as_me: error: cannot run C compiled programs.
 
3147
If you meant to cross compile, use \`--host'.
 
3148
See \`config.log' for more details." >&2;}
 
3149
   { (exit 1); exit 1; }; }
 
3150
    fi
 
3151
  fi
 
3152
fi
 
3153
{ echo "$as_me:$LINENO: result: yes" >&5
 
3154
echo "${ECHO_T}yes" >&6; }
 
3155
 
 
3156
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3157
ac_clean_files=$ac_clean_files_save
 
3158
# Check that the compiler produces executables we can run.  If not, either
 
3159
# the compiler is broken, or we cross compile.
 
3160
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3161
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3162
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3163
echo "${ECHO_T}$cross_compiling" >&6; }
 
3164
 
 
3165
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3166
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3167
if { (ac_try="$ac_link"
 
3168
case "(($ac_try" in
 
3169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3170
  *) ac_try_echo=$ac_try;;
 
3171
esac
 
3172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3173
  (eval "$ac_link") 2>&5
 
3174
  ac_status=$?
 
3175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3176
  (exit $ac_status); }; then
 
3177
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3178
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3179
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3180
# `rm'.
 
3181
for ac_file in conftest.exe conftest conftest.*; do
 
3182
  test -f "$ac_file" || continue
 
3183
  case $ac_file in
 
3184
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3185
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3186
          break;;
 
3187
    * ) break;;
 
3188
  esac
 
3189
done
 
3190
else
 
3191
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3192
See \`config.log' for more details." >&5
 
3193
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3194
See \`config.log' for more details." >&2;}
 
3195
   { (exit 1); exit 1; }; }
 
3196
fi
 
3197
 
 
3198
rm -f conftest$ac_cv_exeext
 
3199
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3200
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3201
 
 
3202
rm -f conftest.$ac_ext
 
3203
EXEEXT=$ac_cv_exeext
 
3204
ac_exeext=$EXEEXT
 
3205
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3206
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3207
if test "${ac_cv_objext+set}" = set; then
 
3208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3209
else
 
3210
  cat >conftest.$ac_ext <<_ACEOF
 
3211
/* confdefs.h.  */
 
3212
_ACEOF
 
3213
cat confdefs.h >>conftest.$ac_ext
 
3214
cat >>conftest.$ac_ext <<_ACEOF
 
3215
/* end confdefs.h.  */
 
3216
 
 
3217
int
 
3218
main ()
 
3219
{
 
3220
 
 
3221
  ;
 
3222
  return 0;
 
3223
}
 
3224
_ACEOF
 
3225
rm -f conftest.o conftest.obj
 
3226
if { (ac_try="$ac_compile"
 
3227
case "(($ac_try" in
 
3228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3229
  *) ac_try_echo=$ac_try;;
 
3230
esac
 
3231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3232
  (eval "$ac_compile") 2>&5
 
3233
  ac_status=$?
 
3234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3235
  (exit $ac_status); }; then
 
3236
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3237
  test -f "$ac_file" || continue;
 
3238
  case $ac_file in
 
3239
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3240
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3241
       break;;
 
3242
  esac
 
3243
done
 
3244
else
 
3245
  echo "$as_me: failed program was:" >&5
 
3246
sed 's/^/| /' conftest.$ac_ext >&5
 
3247
 
 
3248
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3249
See \`config.log' for more details." >&5
 
3250
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3251
See \`config.log' for more details." >&2;}
 
3252
   { (exit 1); exit 1; }; }
 
3253
fi
 
3254
 
 
3255
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3256
fi
 
3257
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3258
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3259
OBJEXT=$ac_cv_objext
 
3260
ac_objext=$OBJEXT
 
3261
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3262
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3263
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3265
else
 
3266
  cat >conftest.$ac_ext <<_ACEOF
 
3267
/* confdefs.h.  */
 
3268
_ACEOF
 
3269
cat confdefs.h >>conftest.$ac_ext
 
3270
cat >>conftest.$ac_ext <<_ACEOF
 
3271
/* end confdefs.h.  */
 
3272
 
 
3273
int
 
3274
main ()
 
3275
{
 
3276
#ifndef __GNUC__
 
3277
       choke me
 
3278
#endif
 
3279
 
 
3280
  ;
 
3281
  return 0;
 
3282
}
 
3283
_ACEOF
 
3284
rm -f conftest.$ac_objext
 
3285
if { (ac_try="$ac_compile"
 
3286
case "(($ac_try" in
 
3287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3288
  *) ac_try_echo=$ac_try;;
 
3289
esac
 
3290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3291
  (eval "$ac_compile") 2>conftest.er1
 
3292
  ac_status=$?
 
3293
  grep -v '^ *+' conftest.er1 >conftest.err
 
3294
  rm -f conftest.er1
 
3295
  cat conftest.err >&5
 
3296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3297
  (exit $ac_status); } && {
 
3298
         test -z "$ac_c_werror_flag" ||
 
3299
         test ! -s conftest.err
 
3300
       } && test -s conftest.$ac_objext; then
 
3301
  ac_compiler_gnu=yes
 
3302
else
 
3303
  echo "$as_me: failed program was:" >&5
 
3304
sed 's/^/| /' conftest.$ac_ext >&5
 
3305
 
 
3306
        ac_compiler_gnu=no
 
3307
fi
 
3308
 
 
3309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3310
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3311
 
 
3312
fi
 
3313
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3314
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3315
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3316
ac_test_CFLAGS=${CFLAGS+set}
 
3317
ac_save_CFLAGS=$CFLAGS
 
3318
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3319
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3320
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3322
else
 
3323
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3324
   ac_c_werror_flag=yes
 
3325
   ac_cv_prog_cc_g=no
 
3326
   CFLAGS="-g"
 
3327
   cat >conftest.$ac_ext <<_ACEOF
 
3328
/* confdefs.h.  */
 
3329
_ACEOF
 
3330
cat confdefs.h >>conftest.$ac_ext
 
3331
cat >>conftest.$ac_ext <<_ACEOF
 
3332
/* end confdefs.h.  */
 
3333
 
 
3334
int
 
3335
main ()
 
3336
{
 
3337
 
 
3338
  ;
 
3339
  return 0;
 
3340
}
 
3341
_ACEOF
 
3342
rm -f conftest.$ac_objext
 
3343
if { (ac_try="$ac_compile"
 
3344
case "(($ac_try" in
 
3345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3346
  *) ac_try_echo=$ac_try;;
 
3347
esac
 
3348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3349
  (eval "$ac_compile") 2>conftest.er1
 
3350
  ac_status=$?
 
3351
  grep -v '^ *+' conftest.er1 >conftest.err
 
3352
  rm -f conftest.er1
 
3353
  cat conftest.err >&5
 
3354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3355
  (exit $ac_status); } && {
 
3356
         test -z "$ac_c_werror_flag" ||
 
3357
         test ! -s conftest.err
 
3358
       } && test -s conftest.$ac_objext; then
 
3359
  ac_cv_prog_cc_g=yes
 
3360
else
 
3361
  echo "$as_me: failed program was:" >&5
 
3362
sed 's/^/| /' conftest.$ac_ext >&5
 
3363
 
 
3364
        CFLAGS=""
 
3365
      cat >conftest.$ac_ext <<_ACEOF
 
3366
/* confdefs.h.  */
 
3367
_ACEOF
 
3368
cat confdefs.h >>conftest.$ac_ext
 
3369
cat >>conftest.$ac_ext <<_ACEOF
 
3370
/* end confdefs.h.  */
 
3371
 
 
3372
int
 
3373
main ()
 
3374
{
 
3375
 
 
3376
  ;
 
3377
  return 0;
 
3378
}
 
3379
_ACEOF
 
3380
rm -f conftest.$ac_objext
 
3381
if { (ac_try="$ac_compile"
 
3382
case "(($ac_try" in
 
3383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3384
  *) ac_try_echo=$ac_try;;
 
3385
esac
 
3386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3387
  (eval "$ac_compile") 2>conftest.er1
 
3388
  ac_status=$?
 
3389
  grep -v '^ *+' conftest.er1 >conftest.err
 
3390
  rm -f conftest.er1
 
3391
  cat conftest.err >&5
 
3392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3393
  (exit $ac_status); } && {
 
3394
         test -z "$ac_c_werror_flag" ||
 
3395
         test ! -s conftest.err
 
3396
       } && test -s conftest.$ac_objext; then
 
3397
  :
 
3398
else
 
3399
  echo "$as_me: failed program was:" >&5
 
3400
sed 's/^/| /' conftest.$ac_ext >&5
 
3401
 
 
3402
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3403
         CFLAGS="-g"
 
3404
         cat >conftest.$ac_ext <<_ACEOF
 
3405
/* confdefs.h.  */
 
3406
_ACEOF
 
3407
cat confdefs.h >>conftest.$ac_ext
 
3408
cat >>conftest.$ac_ext <<_ACEOF
 
3409
/* end confdefs.h.  */
 
3410
 
 
3411
int
 
3412
main ()
 
3413
{
 
3414
 
 
3415
  ;
 
3416
  return 0;
 
3417
}
 
3418
_ACEOF
 
3419
rm -f conftest.$ac_objext
 
3420
if { (ac_try="$ac_compile"
 
3421
case "(($ac_try" in
 
3422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3423
  *) ac_try_echo=$ac_try;;
 
3424
esac
 
3425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3426
  (eval "$ac_compile") 2>conftest.er1
 
3427
  ac_status=$?
 
3428
  grep -v '^ *+' conftest.er1 >conftest.err
 
3429
  rm -f conftest.er1
 
3430
  cat conftest.err >&5
 
3431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3432
  (exit $ac_status); } && {
 
3433
         test -z "$ac_c_werror_flag" ||
 
3434
         test ! -s conftest.err
 
3435
       } && test -s conftest.$ac_objext; then
 
3436
  ac_cv_prog_cc_g=yes
 
3437
else
 
3438
  echo "$as_me: failed program was:" >&5
 
3439
sed 's/^/| /' conftest.$ac_ext >&5
 
3440
 
 
3441
        
 
3442
fi
 
3443
 
 
3444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3445
fi
 
3446
 
 
3447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3448
fi
 
3449
 
 
3450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3451
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3452
fi
 
3453
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3454
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3455
if test "$ac_test_CFLAGS" = set; then
 
3456
  CFLAGS=$ac_save_CFLAGS
 
3457
elif test $ac_cv_prog_cc_g = yes; then
 
3458
  if test "$GCC" = yes; then
 
3459
    CFLAGS="-g -O2"
 
3460
  else
 
3461
    CFLAGS="-g"
 
3462
  fi
 
3463
else
 
3464
  if test "$GCC" = yes; then
 
3465
    CFLAGS="-O2"
 
3466
  else
 
3467
    CFLAGS=
 
3468
  fi
 
3469
fi
 
3470
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3471
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3472
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3474
else
 
3475
  ac_cv_prog_cc_c89=no
 
3476
ac_save_CC=$CC
 
3477
cat >conftest.$ac_ext <<_ACEOF
 
3478
/* confdefs.h.  */
 
3479
_ACEOF
 
3480
cat confdefs.h >>conftest.$ac_ext
 
3481
cat >>conftest.$ac_ext <<_ACEOF
 
3482
/* end confdefs.h.  */
 
3483
#include <stdarg.h>
 
3484
#include <stdio.h>
 
3485
#include <sys/types.h>
 
3486
#include <sys/stat.h>
 
3487
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3488
struct buf { int x; };
 
3489
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3490
static char *e (p, i)
 
3491
     char **p;
 
3492
     int i;
 
3493
{
 
3494
  return p[i];
 
3495
}
 
3496
static char *f (char * (*g) (char **, int), char **p, ...)
 
3497
{
 
3498
  char *s;
 
3499
  va_list v;
 
3500
  va_start (v,p);
 
3501
  s = g (p, va_arg (v,int));
 
3502
  va_end (v);
 
3503
  return s;
 
3504
}
 
3505
 
 
3506
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3507
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3508
   These don't provoke an error unfortunately, instead are silently treated
 
3509
   as 'x'.  The following induces an error, until -std is added to get
 
3510
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3511
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3512
   that's true only with -std.  */
 
3513
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3514
 
 
3515
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3516
   inside strings and character constants.  */
 
3517
#define FOO(x) 'x'
 
3518
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3519
 
 
3520
int test (int i, double x);
 
3521
struct s1 {int (*f) (int a);};
 
3522
struct s2 {int (*f) (double a);};
 
3523
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3524
int argc;
 
3525
char **argv;
 
3526
int
 
3527
main ()
 
3528
{
 
3529
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3530
  ;
 
3531
  return 0;
 
3532
}
 
3533
_ACEOF
 
3534
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3535
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3536
do
 
3537
  CC="$ac_save_CC $ac_arg"
 
3538
  rm -f conftest.$ac_objext
 
3539
if { (ac_try="$ac_compile"
 
3540
case "(($ac_try" in
 
3541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3542
  *) ac_try_echo=$ac_try;;
 
3543
esac
 
3544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3545
  (eval "$ac_compile") 2>conftest.er1
 
3546
  ac_status=$?
 
3547
  grep -v '^ *+' conftest.er1 >conftest.err
 
3548
  rm -f conftest.er1
 
3549
  cat conftest.err >&5
 
3550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3551
  (exit $ac_status); } && {
 
3552
         test -z "$ac_c_werror_flag" ||
 
3553
         test ! -s conftest.err
 
3554
       } && test -s conftest.$ac_objext; then
 
3555
  ac_cv_prog_cc_c89=$ac_arg
 
3556
else
 
3557
  echo "$as_me: failed program was:" >&5
 
3558
sed 's/^/| /' conftest.$ac_ext >&5
 
3559
 
 
3560
        
 
3561
fi
 
3562
 
 
3563
rm -f core conftest.err conftest.$ac_objext 
 
3564
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3565
done
 
3566
rm -f conftest.$ac_ext
 
3567
CC=$ac_save_CC
 
3568
 
 
3569
fi
 
3570
# AC_CACHE_VAL
 
3571
case "x$ac_cv_prog_cc_c89" in
 
3572
  x)
 
3573
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3574
echo "${ECHO_T}none needed" >&6; } ;;
 
3575
  xno)
 
3576
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3577
echo "${ECHO_T}unsupported" >&6; } ;;
 
3578
  *)
 
3579
    CC="$CC $ac_cv_prog_cc_c89"
 
3580
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3581
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3582
esac
 
3583
 
 
3584
 
 
3585
ac_ext=c
 
3586
ac_cpp='$CPP $CPPFLAGS'
 
3587
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3588
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3589
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3590
 
 
3591
depcc="$CC"   am_compiler_list=
 
3592
 
 
3593
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3594
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3595
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3597
else
 
3598
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3599
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3600
  # making bogus files that we don't know about and never remove.  For
 
3601
  # instance it was reported that on HP-UX the gcc test will end up
 
3602
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3603
  # in D'.
 
3604
  mkdir conftest.dir
 
3605
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3606
  # using a relative directory.
 
3607
  cp "$am_depcomp" conftest.dir
 
3608
  cd conftest.dir
 
3609
  # We will build objects and dependencies in a subdirectory because
 
3610
  # it helps to detect inapplicable dependency modes.  For instance
 
3611
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3612
  # side effect of compilation, but ICC will put the dependencies in
 
3613
  # the current directory while Tru64 will put them in the object
 
3614
  # directory.
 
3615
  mkdir sub
 
3616
 
 
3617
  am_cv_CC_dependencies_compiler_type=none
 
3618
  if test "$am_compiler_list" = ""; then
 
3619
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3620
  fi
 
3621
  for depmode in $am_compiler_list; do
 
3622
    # Setup a source with many dependencies, because some compilers
 
3623
    # like to wrap large dependency lists on column 80 (with \), and
 
3624
    # we should not choose a depcomp mode which is confused by this.
 
3625
    #
 
3626
    # We need to recreate these files for each test, as the compiler may
 
3627
    # overwrite some of them when testing with obscure command lines.
 
3628
    # This happens at least with the AIX C compiler.
 
3629
    : > sub/conftest.c
 
3630
    for i in 1 2 3 4 5 6; do
 
3631
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3632
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3633
      # Solaris 8's {/usr,}/bin/sh.
 
3634
      touch sub/conftst$i.h
 
3635
    done
 
3636
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3637
 
 
3638
    case $depmode in
 
3639
    nosideeffect)
 
3640
      # after this tag, mechanisms are not by side-effect, so they'll
 
3641
      # only be used when explicitly requested
 
3642
      if test "x$enable_dependency_tracking" = xyes; then
 
3643
        continue
 
3644
      else
 
3645
        break
 
3646
      fi
 
3647
      ;;
 
3648
    none) break ;;
 
3649
    esac
 
3650
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3651
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3652
    # handle `-M -o', and we need to detect this.
 
3653
    if depmode=$depmode \
 
3654
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3655
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3656
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3657
         >/dev/null 2>conftest.err &&
 
3658
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3659
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3660
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3661
      # icc doesn't choke on unknown options, it will just issue warnings
 
3662
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3663
      # that says an option was ignored or not supported.
 
3664
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3665
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3666
      # The diagnosis changed in icc 8.0:
 
3667
      #   icc: Command line remark: option '-MP' not supported
 
3668
      if (grep 'ignoring option' conftest.err ||
 
3669
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3670
        am_cv_CC_dependencies_compiler_type=$depmode
 
3671
        break
 
3672
      fi
 
3673
    fi
 
3674
  done
 
3675
 
 
3676
  cd ..
 
3677
  rm -rf conftest.dir
 
3678
else
 
3679
  am_cv_CC_dependencies_compiler_type=none
 
3680
fi
 
3681
 
 
3682
fi
 
3683
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3684
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3685
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3686
 
 
3687
 
 
3688
 
 
3689
if 
 
3690
  test "x$enable_dependency_tracking" != xno \
 
3691
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3692
  am__fastdepCC_TRUE=
 
3693
  am__fastdepCC_FALSE='#'
 
3694
else
 
3695
  am__fastdepCC_TRUE='#'
 
3696
  am__fastdepCC_FALSE=
 
3697
fi
 
3698
 
 
3699
 
 
3700
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3701
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3702
if test "${lt_cv_path_SED+set}" = set; then
 
3703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3704
else
 
3705
  # Loop through the user's path and test for sed and gsed.
 
3706
# Then use that list of sed's as ones to test for truncation.
 
3707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3708
for as_dir in $PATH
 
3709
do
 
3710
  IFS=$as_save_IFS
 
3711
  test -z "$as_dir" && as_dir=.
 
3712
  for lt_ac_prog in sed gsed; do
 
3713
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3714
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3715
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3716
      fi
 
3717
    done
 
3718
  done
 
3719
done
 
3720
IFS=$as_save_IFS
 
3721
lt_ac_max=0
 
3722
lt_ac_count=0
 
3723
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3724
# along with /bin/sed that truncates output.
 
3725
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3726
  test ! -f $lt_ac_sed && continue
 
3727
  cat /dev/null > conftest.in
 
3728
  lt_ac_count=0
 
3729
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3730
  # Check for GNU sed and select it if it is found.
 
3731
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3732
    lt_cv_path_SED=$lt_ac_sed
 
3733
    break
 
3734
  fi
 
3735
  while true; do
 
3736
    cat conftest.in conftest.in >conftest.tmp
 
3737
    mv conftest.tmp conftest.in
 
3738
    cp conftest.in conftest.nl
 
3739
    echo >>conftest.nl
 
3740
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3741
    cmp -s conftest.out conftest.nl || break
 
3742
    # 10000 chars as input seems more than enough
 
3743
    test $lt_ac_count -gt 10 && break
 
3744
    lt_ac_count=`expr $lt_ac_count + 1`
 
3745
    if test $lt_ac_count -gt $lt_ac_max; then
 
3746
      lt_ac_max=$lt_ac_count
 
3747
      lt_cv_path_SED=$lt_ac_sed
 
3748
    fi
 
3749
  done
 
3750
done
 
3751
 
 
3752
fi
 
3753
 
 
3754
SED=$lt_cv_path_SED
 
3755
 
 
3756
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3757
echo "${ECHO_T}$SED" >&6; }
 
3758
 
 
3759
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3760
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3761
if test "${ac_cv_path_GREP+set}" = set; then
 
3762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3763
else
 
3764
  # Extract the first word of "grep ggrep" to use in msg output
 
3765
if test -z "$GREP"; then
 
3766
set dummy grep ggrep; ac_prog_name=$2
 
3767
if test "${ac_cv_path_GREP+set}" = set; then
 
3768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3769
else
 
3770
  ac_path_GREP_found=false
 
3771
# Loop through the user's path and test for each of PROGNAME-LIST
 
3772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3773
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3774
do
 
3775
  IFS=$as_save_IFS
 
3776
  test -z "$as_dir" && as_dir=.
 
3777
  for ac_prog in grep ggrep; do
 
3778
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3779
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3780
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3781
    # Check for GNU ac_path_GREP and select it if it is found.
 
3782
  # Check for GNU $ac_path_GREP
 
3783
case `"$ac_path_GREP" --version 2>&1` in
 
3784
*GNU*)
 
3785
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3786
*)
 
3787
  ac_count=0
 
3788
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3789
  while :
 
3790
  do
 
3791
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3792
    mv "conftest.tmp" "conftest.in"
 
3793
    cp "conftest.in" "conftest.nl"
 
3794
    echo 'GREP' >> "conftest.nl"
 
3795
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3796
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3797
    ac_count=`expr $ac_count + 1`
 
3798
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3799
      # Best one so far, save it but keep looking for a better one
 
3800
      ac_cv_path_GREP="$ac_path_GREP"
 
3801
      ac_path_GREP_max=$ac_count
 
3802
    fi
 
3803
    # 10*(2^10) chars as input seems more than enough
 
3804
    test $ac_count -gt 10 && break
 
3805
  done
 
3806
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3807
esac
 
3808
 
 
3809
 
 
3810
    $ac_path_GREP_found && break 3
 
3811
  done
 
3812
done
 
3813
 
 
3814
done
 
3815
IFS=$as_save_IFS
 
3816
 
 
3817
 
 
3818
fi
 
3819
 
 
3820
GREP="$ac_cv_path_GREP"
 
3821
if test -z "$GREP"; then
 
3822
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3823
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3824
   { (exit 1); exit 1; }; }
 
3825
fi
 
3826
 
 
3827
else
 
3828
  ac_cv_path_GREP=$GREP
 
3829
fi
 
3830
 
 
3831
 
 
3832
fi
 
3833
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3834
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3835
 GREP="$ac_cv_path_GREP"
 
3836
 
 
3837
 
 
3838
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3839
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3840
if test "${ac_cv_path_EGREP+set}" = set; then
 
3841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3842
else
 
3843
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3844
   then ac_cv_path_EGREP="$GREP -E"
 
3845
   else
 
3846
     # Extract the first word of "egrep" to use in msg output
 
3847
if test -z "$EGREP"; then
 
3848
set dummy egrep; ac_prog_name=$2
 
3849
if test "${ac_cv_path_EGREP+set}" = set; then
 
3850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3851
else
 
3852
  ac_path_EGREP_found=false
 
3853
# Loop through the user's path and test for each of PROGNAME-LIST
 
3854
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3855
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3856
do
 
3857
  IFS=$as_save_IFS
 
3858
  test -z "$as_dir" && as_dir=.
 
3859
  for ac_prog in egrep; do
 
3860
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3861
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3862
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3863
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3864
  # Check for GNU $ac_path_EGREP
 
3865
case `"$ac_path_EGREP" --version 2>&1` in
 
3866
*GNU*)
 
3867
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3868
*)
 
3869
  ac_count=0
 
3870
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3871
  while :
 
3872
  do
 
3873
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3874
    mv "conftest.tmp" "conftest.in"
 
3875
    cp "conftest.in" "conftest.nl"
 
3876
    echo 'EGREP' >> "conftest.nl"
 
3877
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3878
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3879
    ac_count=`expr $ac_count + 1`
 
3880
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3881
      # Best one so far, save it but keep looking for a better one
 
3882
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3883
      ac_path_EGREP_max=$ac_count
 
3884
    fi
 
3885
    # 10*(2^10) chars as input seems more than enough
 
3886
    test $ac_count -gt 10 && break
 
3887
  done
 
3888
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3889
esac
 
3890
 
 
3891
 
 
3892
    $ac_path_EGREP_found && break 3
 
3893
  done
 
3894
done
 
3895
 
 
3896
done
 
3897
IFS=$as_save_IFS
 
3898
 
 
3899
 
 
3900
fi
 
3901
 
 
3902
EGREP="$ac_cv_path_EGREP"
 
3903
if test -z "$EGREP"; then
 
3904
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3905
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3906
   { (exit 1); exit 1; }; }
 
3907
fi
 
3908
 
 
3909
else
 
3910
  ac_cv_path_EGREP=$EGREP
 
3911
fi
 
3912
 
 
3913
 
 
3914
   fi
 
3915
fi
 
3916
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3917
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3918
 EGREP="$ac_cv_path_EGREP"
 
3919
 
 
3920
 
 
3921
 
 
3922
# Check whether --with-gnu-ld was given.
 
3923
if test "${with_gnu_ld+set}" = set; then
 
3924
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
3925
else
 
3926
  with_gnu_ld=no
 
3927
fi
 
3928
 
 
3929
ac_prog=ld
 
3930
if test "$GCC" = yes; then
 
3931
  # Check if gcc -print-prog-name=ld gives a path.
 
3932
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3933
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
3934
  case $host in
 
3935
  *-*-mingw*)
 
3936
    # gcc leaves a trailing carriage return which upsets mingw
 
3937
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3938
  *)
 
3939
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3940
  esac
 
3941
  case $ac_prog in
 
3942
    # Accept absolute paths.
 
3943
    [\\/]* | ?:[\\/]*)
 
3944
      re_direlt='/[^/][^/]*/\.\./'
 
3945
      # Canonicalize the pathname of ld
 
3946
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3947
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3948
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3949
      done
 
3950
      test -z "$LD" && LD="$ac_prog"
 
3951
      ;;
 
3952
  "")
 
3953
    # If it fails, then pretend we aren't using GCC.
 
3954
    ac_prog=ld
 
3955
    ;;
 
3956
  *)
 
3957
    # If it is relative, then search for the first ld in PATH.
 
3958
    with_gnu_ld=unknown
 
3959
    ;;
 
3960
  esac
 
3961
elif test "$with_gnu_ld" = yes; then
 
3962
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3963
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
3964
else
 
3965
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3966
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
3967
fi
 
3968
if test "${lt_cv_path_LD+set}" = set; then
 
3969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3970
else
 
3971
  if test -z "$LD"; then
 
3972
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3973
  for ac_dir in $PATH; do
 
3974
    IFS="$lt_save_ifs"
 
3975
    test -z "$ac_dir" && ac_dir=.
 
3976
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3977
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3978
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3979
      # but apparently some variants of GNU ld only accept -v.
 
3980
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3981
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3982
      *GNU* | *'with BFD'*)
 
3983
        test "$with_gnu_ld" != no && break
 
3984
        ;;
 
3985
      *)
 
3986
        test "$with_gnu_ld" != yes && break
 
3987
        ;;
 
3988
      esac
 
3989
    fi
 
3990
  done
 
3991
  IFS="$lt_save_ifs"
 
3992
else
 
3993
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3994
fi
 
3995
fi
 
3996
 
 
3997
LD="$lt_cv_path_LD"
 
3998
if test -n "$LD"; then
 
3999
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4000
echo "${ECHO_T}$LD" >&6; }
 
4001
else
 
4002
  { echo "$as_me:$LINENO: result: no" >&5
 
4003
echo "${ECHO_T}no" >&6; }
 
4004
fi
 
4005
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4006
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4007
   { (exit 1); exit 1; }; }
 
4008
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4009
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4010
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4012
else
 
4013
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4014
case `$LD -v 2>&1 </dev/null` in
 
4015
*GNU* | *'with BFD'*)
 
4016
  lt_cv_prog_gnu_ld=yes
 
4017
  ;;
 
4018
*)
 
4019
  lt_cv_prog_gnu_ld=no
 
4020
  ;;
 
4021
esac
 
4022
fi
 
4023
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4024
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4025
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4026
 
 
4027
 
 
4028
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4029
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4030
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4032
else
 
4033
  lt_cv_ld_reload_flag='-r'
 
4034
fi
 
4035
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4036
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4037
reload_flag=$lt_cv_ld_reload_flag
 
4038
case $reload_flag in
 
4039
"" | " "*) ;;
 
4040
*) reload_flag=" $reload_flag" ;;
 
4041
esac
 
4042
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4043
case $host_os in
 
4044
  darwin*)
 
4045
    if test "$GCC" = yes; then
 
4046
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4047
    else
 
4048
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4049
    fi
 
4050
    ;;
 
4051
esac
 
4052
 
 
4053
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4054
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4055
if test "${lt_cv_path_NM+set}" = set; then
 
4056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4057
else
 
4058
  if test -n "$NM"; then
 
4059
  # Let the user override the test.
 
4060
  lt_cv_path_NM="$NM"
 
4061
else
 
4062
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4063
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4064
    lt_nm_to_check="$lt_nm_to_check nm"
 
4065
  fi
 
4066
  for lt_tmp_nm in $lt_nm_to_check; do
 
4067
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4068
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4069
      IFS="$lt_save_ifs"
 
4070
      test -z "$ac_dir" && ac_dir=.
 
4071
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4072
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4073
        # Check to see if the nm accepts a BSD-compat flag.
 
4074
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4075
        #   nm: unknown option "B" ignored
 
4076
        # Tru64's nm complains that /dev/null is an invalid object file
 
4077
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4078
        */dev/null* | *'Invalid file or object type'*)
 
4079
          lt_cv_path_NM="$tmp_nm -B"
 
4080
          break
 
4081
          ;;
 
4082
        *)
 
4083
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4084
          */dev/null*)
 
4085
            lt_cv_path_NM="$tmp_nm -p"
 
4086
            break
 
4087
            ;;
 
4088
          *)
 
4089
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4090
            continue # so that we can try to find one that supports BSD flags
 
4091
            ;;
 
4092
          esac
 
4093
          ;;
 
4094
        esac
 
4095
      fi
 
4096
    done
 
4097
    IFS="$lt_save_ifs"
 
4098
  done
 
4099
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4100
fi
 
4101
fi
 
4102
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4103
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4104
NM="$lt_cv_path_NM"
 
4105
 
 
4106
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4107
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4108
LN_S=$as_ln_s
 
4109
if test "$LN_S" = "ln -s"; then
 
4110
  { echo "$as_me:$LINENO: result: yes" >&5
 
4111
echo "${ECHO_T}yes" >&6; }
 
4112
else
 
4113
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4114
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4115
fi
 
4116
 
 
4117
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4118
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4119
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4121
else
 
4122
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4123
lt_cv_file_magic_test_file=
 
4124
lt_cv_deplibs_check_method='unknown'
 
4125
# Need to set the preceding variable on all platforms that support
 
4126
# interlibrary dependencies.
 
4127
# 'none' -- dependencies not supported.
 
4128
# `unknown' -- same as none, but documents that we really don't know.
 
4129
# 'pass_all' -- all dependencies passed with no checks.
 
4130
# 'test_compile' -- check by making test program.
 
4131
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4132
# which responds to the $file_magic_cmd with a given extended regex.
 
4133
# If you have `file' or equivalent on your system and you're not sure
 
4134
# whether `pass_all' will *always* work, you probably want this one.
 
4135
 
 
4136
case $host_os in
 
4137
aix4* | aix5*)
 
4138
  lt_cv_deplibs_check_method=pass_all
 
4139
  ;;
 
4140
 
 
4141
beos*)
 
4142
  lt_cv_deplibs_check_method=pass_all
 
4143
  ;;
 
4144
 
 
4145
bsdi[45]*)
 
4146
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4147
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4148
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4149
  ;;
 
4150
 
 
4151
cygwin*)
 
4152
  # func_win32_libid is a shell function defined in ltmain.sh
 
4153
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4154
  lt_cv_file_magic_cmd='func_win32_libid'
 
4155
  ;;
 
4156
 
 
4157
mingw* | pw32*)
 
4158
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4159
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4160
  # unless we find 'file', for example because we are cross-compiling.
 
4161
  if ( file / ) >/dev/null 2>&1; then
 
4162
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4163
    lt_cv_file_magic_cmd='func_win32_libid'
 
4164
  else
 
4165
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4166
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4167
  fi
 
4168
  ;;
 
4169
 
 
4170
darwin* | rhapsody*)
 
4171
  lt_cv_deplibs_check_method=pass_all
 
4172
  ;;
 
4173
 
 
4174
freebsd* | dragonfly*)
 
4175
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4176
    case $host_cpu in
 
4177
    i*86 )
 
4178
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4179
      # Let's accept both of them until this is cleared up.
 
4180
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4181
      lt_cv_file_magic_cmd=/usr/bin/file
 
4182
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4183
      ;;
 
4184
    esac
 
4185
  else
 
4186
    lt_cv_deplibs_check_method=pass_all
 
4187
  fi
 
4188
  ;;
 
4189
 
 
4190
gnu*)
 
4191
  lt_cv_deplibs_check_method=pass_all
 
4192
  ;;
 
4193
 
 
4194
hpux10.20* | hpux11*)
 
4195
  lt_cv_file_magic_cmd=/usr/bin/file
 
4196
  case $host_cpu in
 
4197
  ia64*)
 
4198
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4199
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4200
    ;;
 
4201
  hppa*64*)
 
4202
    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]'
 
4203
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4204
    ;;
 
4205
  *)
 
4206
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4207
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4208
    ;;
 
4209
  esac
 
4210
  ;;
 
4211
 
 
4212
interix[3-9]*)
 
4213
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4214
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4215
  ;;
 
4216
 
 
4217
irix5* | irix6* | nonstopux*)
 
4218
  case $LD in
 
4219
  *-32|*"-32 ") libmagic=32-bit;;
 
4220
  *-n32|*"-n32 ") libmagic=N32;;
 
4221
  *-64|*"-64 ") libmagic=64-bit;;
 
4222
  *) libmagic=never-match;;
 
4223
  esac
 
4224
  lt_cv_deplibs_check_method=pass_all
 
4225
  ;;
 
4226
 
 
4227
# This must be Linux ELF.
 
4228
linux* | k*bsd*-gnu)
 
4229
  lt_cv_deplibs_check_method=pass_all
 
4230
  ;;
 
4231
 
 
4232
netbsd* | netbsdelf*-gnu)
 
4233
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4234
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4235
  else
 
4236
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4237
  fi
 
4238
  ;;
 
4239
 
 
4240
newos6*)
 
4241
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4242
  lt_cv_file_magic_cmd=/usr/bin/file
 
4243
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4244
  ;;
 
4245
 
 
4246
nto-qnx*)
 
4247
  lt_cv_deplibs_check_method=unknown
 
4248
  ;;
 
4249
 
 
4250
openbsd*)
 
4251
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4252
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4253
  else
 
4254
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4255
  fi
 
4256
  ;;
 
4257
 
 
4258
osf3* | osf4* | osf5*)
 
4259
  lt_cv_deplibs_check_method=pass_all
 
4260
  ;;
 
4261
 
 
4262
rdos*)
 
4263
  lt_cv_deplibs_check_method=pass_all
 
4264
  ;;
 
4265
 
 
4266
solaris*)
 
4267
  lt_cv_deplibs_check_method=pass_all
 
4268
  ;;
 
4269
 
 
4270
sysv4 | sysv4.3*)
 
4271
  case $host_vendor in
 
4272
  motorola)
 
4273
    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]'
 
4274
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4275
    ;;
 
4276
  ncr)
 
4277
    lt_cv_deplibs_check_method=pass_all
 
4278
    ;;
 
4279
  sequent)
 
4280
    lt_cv_file_magic_cmd='/bin/file'
 
4281
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4282
    ;;
 
4283
  sni)
 
4284
    lt_cv_file_magic_cmd='/bin/file'
 
4285
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4286
    lt_cv_file_magic_test_file=/lib/libc.so
 
4287
    ;;
 
4288
  siemens)
 
4289
    lt_cv_deplibs_check_method=pass_all
 
4290
    ;;
 
4291
  pc)
 
4292
    lt_cv_deplibs_check_method=pass_all
 
4293
    ;;
 
4294
  esac
 
4295
  ;;
 
4296
 
 
4297
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4298
  lt_cv_deplibs_check_method=pass_all
 
4299
  ;;
 
4300
esac
 
4301
 
 
4302
fi
 
4303
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4304
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4305
file_magic_cmd=$lt_cv_file_magic_cmd
 
4306
deplibs_check_method=$lt_cv_deplibs_check_method
 
4307
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4308
 
 
4309
 
 
4310
 
 
4311
 
 
4312
# If no C compiler was specified, use CC.
 
4313
LTCC=${LTCC-"$CC"}
 
4314
 
 
4315
# If no C compiler flags were specified, use CFLAGS.
 
4316
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4317
 
 
4318
# Allow CC to be a program name with arguments.
 
4319
compiler=$CC
 
4320
 
 
4321
 
 
4322
# Check whether --enable-libtool-lock was given.
 
4323
if test "${enable_libtool_lock+set}" = set; then
 
4324
  enableval=$enable_libtool_lock; 
 
4325
fi
 
4326
 
 
4327
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4328
 
 
4329
# Some flags need to be propagated to the compiler or linker for good
 
4330
# libtool support.
 
4331
case $host in
 
4332
ia64-*-hpux*)
 
4333
  # Find out which ABI we are using.
 
4334
  echo 'int i;' > conftest.$ac_ext
 
4335
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4336
  (eval $ac_compile) 2>&5
 
4337
  ac_status=$?
 
4338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4339
  (exit $ac_status); }; then
 
4340
    case `/usr/bin/file conftest.$ac_objext` in
 
4341
    *ELF-32*)
 
4342
      HPUX_IA64_MODE="32"
 
4343
      ;;
 
4344
    *ELF-64*)
 
4345
      HPUX_IA64_MODE="64"
 
4346
      ;;
 
4347
    esac
 
4348
  fi
 
4349
  rm -rf conftest*
 
4350
  ;;
 
4351
*-*-irix6*)
 
4352
  # Find out which ABI we are using.
 
4353
  echo '#line __oline__ "configure"' > conftest.$ac_ext
 
4354
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4355
  (eval $ac_compile) 2>&5
 
4356
  ac_status=$?
 
4357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4358
  (exit $ac_status); }; then
 
4359
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4360
    case `/usr/bin/file conftest.$ac_objext` in
 
4361
    *32-bit*)
 
4362
      LD="${LD-ld} -melf32bsmip"
 
4363
      ;;
 
4364
    *N32*)
 
4365
      LD="${LD-ld} -melf32bmipn32"
 
4366
      ;;
 
4367
    *64-bit*)
 
4368
      LD="${LD-ld} -melf64bmip"
 
4369
      ;;
 
4370
    esac
 
4371
   else
 
4372
    case `/usr/bin/file conftest.$ac_objext` in
 
4373
    *32-bit*)
 
4374
      LD="${LD-ld} -32"
 
4375
      ;;
 
4376
    *N32*)
 
4377
      LD="${LD-ld} -n32"
 
4378
      ;;
 
4379
    *64-bit*)
 
4380
      LD="${LD-ld} -64"
 
4381
      ;;
 
4382
    esac
 
4383
   fi
 
4384
  fi
 
4385
  rm -rf conftest*
 
4386
  ;;
 
4387
 
 
4388
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4389
s390*-*linux*|sparc*-*linux*)
 
4390
  # Find out which ABI we are using.
 
4391
  echo 'int i;' > conftest.$ac_ext
 
4392
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4393
  (eval $ac_compile) 2>&5
 
4394
  ac_status=$?
 
4395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4396
  (exit $ac_status); }; then
 
4397
    case `/usr/bin/file conftest.o` in
 
4398
    *32-bit*)
 
4399
      case $host in
 
4400
        x86_64-*kfreebsd*-gnu)
 
4401
          LD="${LD-ld} -m elf_i386_fbsd"
 
4402
          ;;
 
4403
        x86_64-*linux*)
 
4404
          LD="${LD-ld} -m elf_i386"
 
4405
          ;;
 
4406
        ppc64-*linux*|powerpc64-*linux*)
 
4407
          LD="${LD-ld} -m elf32ppclinux"
 
4408
          ;;
 
4409
        s390x-*linux*)
 
4410
          LD="${LD-ld} -m elf_s390"
 
4411
          ;;
 
4412
        sparc64-*linux*)
 
4413
          LD="${LD-ld} -m elf32_sparc"
 
4414
          ;;
 
4415
      esac
 
4416
      ;;
 
4417
    *64-bit*)
 
4418
      case $host in
 
4419
        x86_64-*kfreebsd*-gnu)
 
4420
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4421
          ;;
 
4422
        x86_64-*linux*)
 
4423
          LD="${LD-ld} -m elf_x86_64"
 
4424
          ;;
 
4425
        ppc*-*linux*|powerpc*-*linux*)
 
4426
          LD="${LD-ld} -m elf64ppc"
 
4427
          ;;
 
4428
        s390*-*linux*)
 
4429
          LD="${LD-ld} -m elf64_s390"
 
4430
          ;;
 
4431
        sparc*-*linux*)
 
4432
          LD="${LD-ld} -m elf64_sparc"
 
4433
          ;;
 
4434
      esac
 
4435
      ;;
 
4436
    esac
 
4437
  fi
 
4438
  rm -rf conftest*
 
4439
  ;;
 
4440
 
 
4441
*-*-sco3.2v5*)
 
4442
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4443
  SAVE_CFLAGS="$CFLAGS"
 
4444
  CFLAGS="$CFLAGS -belf"
 
4445
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4446
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4447
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4449
else
 
4450
  ac_ext=c
 
4451
ac_cpp='$CPP $CPPFLAGS'
 
4452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4455
 
 
4456
     cat >conftest.$ac_ext <<_ACEOF
 
4457
/* confdefs.h.  */
 
4458
_ACEOF
 
4459
cat confdefs.h >>conftest.$ac_ext
 
4460
cat >>conftest.$ac_ext <<_ACEOF
 
4461
/* end confdefs.h.  */
 
4462
 
 
4463
int
 
4464
main ()
 
4465
{
 
4466
 
 
4467
  ;
 
4468
  return 0;
 
4469
}
 
4470
_ACEOF
 
4471
rm -f conftest.$ac_objext conftest$ac_exeext
 
4472
if { (ac_try="$ac_link"
 
4473
case "(($ac_try" in
 
4474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4475
  *) ac_try_echo=$ac_try;;
 
4476
esac
 
4477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4478
  (eval "$ac_link") 2>conftest.er1
 
4479
  ac_status=$?
 
4480
  grep -v '^ *+' conftest.er1 >conftest.err
 
4481
  rm -f conftest.er1
 
4482
  cat conftest.err >&5
 
4483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4484
  (exit $ac_status); } && {
 
4485
         test -z "$ac_c_werror_flag" ||
 
4486
         test ! -s conftest.err
 
4487
       } && test -s conftest$ac_exeext &&
 
4488
       $as_test_x conftest$ac_exeext; then
 
4489
  lt_cv_cc_needs_belf=yes
 
4490
else
 
4491
  echo "$as_me: failed program was:" >&5
 
4492
sed 's/^/| /' conftest.$ac_ext >&5
 
4493
 
 
4494
        lt_cv_cc_needs_belf=no
 
4495
fi
 
4496
 
 
4497
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4498
      conftest$ac_exeext conftest.$ac_ext
 
4499
     ac_ext=c
 
4500
ac_cpp='$CPP $CPPFLAGS'
 
4501
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4502
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4503
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4504
 
 
4505
fi
 
4506
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4507
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4508
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4509
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4510
    CFLAGS="$SAVE_CFLAGS"
 
4511
  fi
 
4512
  ;;
 
4513
sparc*-*solaris*)
 
4514
  # Find out which ABI we are using.
 
4515
  echo 'int i;' > conftest.$ac_ext
 
4516
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4517
  (eval $ac_compile) 2>&5
 
4518
  ac_status=$?
 
4519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4520
  (exit $ac_status); }; then
 
4521
    case `/usr/bin/file conftest.o` in
 
4522
    *64-bit*)
 
4523
      case $lt_cv_prog_gnu_ld in
 
4524
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4525
      *)    LD="${LD-ld} -64" ;;
 
4526
      esac
 
4527
      ;;
 
4528
    esac
 
4529
  fi
 
4530
  rm -rf conftest*
 
4531
  ;;
 
4532
 
 
4533
 
 
4534
esac
 
4535
 
 
4536
need_locks="$enable_libtool_lock"
 
4537
 
 
4538
 
 
4539
ac_ext=c
 
4540
ac_cpp='$CPP $CPPFLAGS'
 
4541
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4542
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4543
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4544
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4545
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4546
# On Suns, sometimes $CPP names a directory.
 
4547
if test -n "$CPP" && test -d "$CPP"; then
 
4548
  CPP=
 
4549
fi
 
4550
if test -z "$CPP"; then
 
4551
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4553
else
 
4554
      # Double quotes because CPP needs to be expanded
 
4555
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4556
    do
 
4557
      ac_preproc_ok=false
 
4558
for ac_c_preproc_warn_flag in '' yes
 
4559
do
 
4560
  # Use a header file that comes with gcc, so configuring glibc
 
4561
  # with a fresh cross-compiler works.
 
4562
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4563
  # <limits.h> exists even on freestanding compilers.
 
4564
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4565
  # not just through cpp. "Syntax error" is here to catch this case.
 
4566
  cat >conftest.$ac_ext <<_ACEOF
 
4567
/* confdefs.h.  */
 
4568
_ACEOF
 
4569
cat confdefs.h >>conftest.$ac_ext
 
4570
cat >>conftest.$ac_ext <<_ACEOF
 
4571
/* end confdefs.h.  */
 
4572
@%:@ifdef __STDC__
 
4573
@%:@ include <limits.h>
 
4574
@%:@else
 
4575
@%:@ include <assert.h>
 
4576
@%:@endif
 
4577
                     Syntax error
 
4578
_ACEOF
 
4579
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4580
case "(($ac_try" in
 
4581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4582
  *) ac_try_echo=$ac_try;;
 
4583
esac
 
4584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4585
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4586
  ac_status=$?
 
4587
  grep -v '^ *+' conftest.er1 >conftest.err
 
4588
  rm -f conftest.er1
 
4589
  cat conftest.err >&5
 
4590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4591
  (exit $ac_status); } >/dev/null && {
 
4592
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4593
         test ! -s conftest.err
 
4594
       }; then
 
4595
  :
 
4596
else
 
4597
  echo "$as_me: failed program was:" >&5
 
4598
sed 's/^/| /' conftest.$ac_ext >&5
 
4599
 
 
4600
  # Broken: fails on valid input.
 
4601
continue
 
4602
fi
 
4603
 
 
4604
rm -f conftest.err conftest.$ac_ext
 
4605
 
 
4606
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4607
  # can be detected and how.
 
4608
  cat >conftest.$ac_ext <<_ACEOF
 
4609
/* confdefs.h.  */
 
4610
_ACEOF
 
4611
cat confdefs.h >>conftest.$ac_ext
 
4612
cat >>conftest.$ac_ext <<_ACEOF
 
4613
/* end confdefs.h.  */
 
4614
@%:@include <ac_nonexistent.h>
 
4615
_ACEOF
 
4616
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4617
case "(($ac_try" in
 
4618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4619
  *) ac_try_echo=$ac_try;;
 
4620
esac
 
4621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4622
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4623
  ac_status=$?
 
4624
  grep -v '^ *+' conftest.er1 >conftest.err
 
4625
  rm -f conftest.er1
 
4626
  cat conftest.err >&5
 
4627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4628
  (exit $ac_status); } >/dev/null && {
 
4629
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4630
         test ! -s conftest.err
 
4631
       }; then
 
4632
  # Broken: success on invalid input.
 
4633
continue
 
4634
else
 
4635
  echo "$as_me: failed program was:" >&5
 
4636
sed 's/^/| /' conftest.$ac_ext >&5
 
4637
 
 
4638
  # Passes both tests.
 
4639
ac_preproc_ok=:
 
4640
break
 
4641
fi
 
4642
 
 
4643
rm -f conftest.err conftest.$ac_ext
 
4644
 
 
4645
done
 
4646
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4647
rm -f conftest.err conftest.$ac_ext
 
4648
if $ac_preproc_ok; then
 
4649
  break
 
4650
fi
 
4651
 
 
4652
    done
 
4653
    ac_cv_prog_CPP=$CPP
 
4654
  
 
4655
fi
 
4656
  CPP=$ac_cv_prog_CPP
 
4657
else
 
4658
  ac_cv_prog_CPP=$CPP
 
4659
fi
 
4660
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4661
echo "${ECHO_T}$CPP" >&6; }
 
4662
ac_preproc_ok=false
 
4663
for ac_c_preproc_warn_flag in '' yes
 
4664
do
 
4665
  # Use a header file that comes with gcc, so configuring glibc
 
4666
  # with a fresh cross-compiler works.
 
4667
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4668
  # <limits.h> exists even on freestanding compilers.
 
4669
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4670
  # not just through cpp. "Syntax error" is here to catch this case.
 
4671
  cat >conftest.$ac_ext <<_ACEOF
 
4672
/* confdefs.h.  */
 
4673
_ACEOF
 
4674
cat confdefs.h >>conftest.$ac_ext
 
4675
cat >>conftest.$ac_ext <<_ACEOF
 
4676
/* end confdefs.h.  */
 
4677
@%:@ifdef __STDC__
 
4678
@%:@ include <limits.h>
 
4679
@%:@else
 
4680
@%:@ include <assert.h>
 
4681
@%:@endif
 
4682
                     Syntax error
 
4683
_ACEOF
 
4684
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4685
case "(($ac_try" in
 
4686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4687
  *) ac_try_echo=$ac_try;;
 
4688
esac
 
4689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4690
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4691
  ac_status=$?
 
4692
  grep -v '^ *+' conftest.er1 >conftest.err
 
4693
  rm -f conftest.er1
 
4694
  cat conftest.err >&5
 
4695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4696
  (exit $ac_status); } >/dev/null && {
 
4697
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4698
         test ! -s conftest.err
 
4699
       }; then
 
4700
  :
 
4701
else
 
4702
  echo "$as_me: failed program was:" >&5
 
4703
sed 's/^/| /' conftest.$ac_ext >&5
 
4704
 
 
4705
  # Broken: fails on valid input.
 
4706
continue
 
4707
fi
 
4708
 
 
4709
rm -f conftest.err conftest.$ac_ext
 
4710
 
 
4711
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4712
  # can be detected and how.
 
4713
  cat >conftest.$ac_ext <<_ACEOF
 
4714
/* confdefs.h.  */
 
4715
_ACEOF
 
4716
cat confdefs.h >>conftest.$ac_ext
 
4717
cat >>conftest.$ac_ext <<_ACEOF
 
4718
/* end confdefs.h.  */
 
4719
@%:@include <ac_nonexistent.h>
 
4720
_ACEOF
 
4721
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4722
case "(($ac_try" in
 
4723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4724
  *) ac_try_echo=$ac_try;;
 
4725
esac
 
4726
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4727
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4728
  ac_status=$?
 
4729
  grep -v '^ *+' conftest.er1 >conftest.err
 
4730
  rm -f conftest.er1
 
4731
  cat conftest.err >&5
 
4732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4733
  (exit $ac_status); } >/dev/null && {
 
4734
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4735
         test ! -s conftest.err
 
4736
       }; then
 
4737
  # Broken: success on invalid input.
 
4738
continue
 
4739
else
 
4740
  echo "$as_me: failed program was:" >&5
 
4741
sed 's/^/| /' conftest.$ac_ext >&5
 
4742
 
 
4743
  # Passes both tests.
 
4744
ac_preproc_ok=:
 
4745
break
 
4746
fi
 
4747
 
 
4748
rm -f conftest.err conftest.$ac_ext
 
4749
 
 
4750
done
 
4751
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4752
rm -f conftest.err conftest.$ac_ext
 
4753
if $ac_preproc_ok; then
 
4754
  :
 
4755
else
 
4756
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4757
See \`config.log' for more details." >&5
 
4758
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4759
See \`config.log' for more details." >&2;}
 
4760
   { (exit 1); exit 1; }; }
 
4761
fi
 
4762
 
 
4763
ac_ext=c
 
4764
ac_cpp='$CPP $CPPFLAGS'
 
4765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4768
 
 
4769
 
 
4770
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4771
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4772
if test "${ac_cv_header_stdc+set}" = set; then
 
4773
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4774
else
 
4775
  cat >conftest.$ac_ext <<_ACEOF
 
4776
/* confdefs.h.  */
 
4777
_ACEOF
 
4778
cat confdefs.h >>conftest.$ac_ext
 
4779
cat >>conftest.$ac_ext <<_ACEOF
 
4780
/* end confdefs.h.  */
 
4781
#include <stdlib.h>
 
4782
#include <stdarg.h>
 
4783
#include <string.h>
 
4784
#include <float.h>
 
4785
 
 
4786
int
 
4787
main ()
 
4788
{
 
4789
 
 
4790
  ;
 
4791
  return 0;
 
4792
}
 
4793
_ACEOF
 
4794
rm -f conftest.$ac_objext
 
4795
if { (ac_try="$ac_compile"
 
4796
case "(($ac_try" in
 
4797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4798
  *) ac_try_echo=$ac_try;;
 
4799
esac
 
4800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4801
  (eval "$ac_compile") 2>conftest.er1
 
4802
  ac_status=$?
 
4803
  grep -v '^ *+' conftest.er1 >conftest.err
 
4804
  rm -f conftest.er1
 
4805
  cat conftest.err >&5
 
4806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4807
  (exit $ac_status); } && {
 
4808
         test -z "$ac_c_werror_flag" ||
 
4809
         test ! -s conftest.err
 
4810
       } && test -s conftest.$ac_objext; then
 
4811
  ac_cv_header_stdc=yes
 
4812
else
 
4813
  echo "$as_me: failed program was:" >&5
 
4814
sed 's/^/| /' conftest.$ac_ext >&5
 
4815
 
 
4816
        ac_cv_header_stdc=no
 
4817
fi
 
4818
 
 
4819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4820
 
 
4821
if test $ac_cv_header_stdc = yes; then
 
4822
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4823
  cat >conftest.$ac_ext <<_ACEOF
 
4824
/* confdefs.h.  */
 
4825
_ACEOF
 
4826
cat confdefs.h >>conftest.$ac_ext
 
4827
cat >>conftest.$ac_ext <<_ACEOF
 
4828
/* end confdefs.h.  */
 
4829
#include <string.h>
 
4830
 
 
4831
_ACEOF
 
4832
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4833
  $EGREP "memchr" >/dev/null 2>&1; then
 
4834
  :
 
4835
else
 
4836
  ac_cv_header_stdc=no
 
4837
fi
 
4838
rm -f conftest*
 
4839
 
 
4840
fi
 
4841
 
 
4842
if test $ac_cv_header_stdc = yes; then
 
4843
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4844
  cat >conftest.$ac_ext <<_ACEOF
 
4845
/* confdefs.h.  */
 
4846
_ACEOF
 
4847
cat confdefs.h >>conftest.$ac_ext
 
4848
cat >>conftest.$ac_ext <<_ACEOF
 
4849
/* end confdefs.h.  */
 
4850
#include <stdlib.h>
 
4851
 
 
4852
_ACEOF
 
4853
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4854
  $EGREP "free" >/dev/null 2>&1; then
 
4855
  :
 
4856
else
 
4857
  ac_cv_header_stdc=no
 
4858
fi
 
4859
rm -f conftest*
 
4860
 
 
4861
fi
 
4862
 
 
4863
if test $ac_cv_header_stdc = yes; then
 
4864
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4865
  if test "$cross_compiling" = yes; then
 
4866
  :
 
4867
else
 
4868
  cat >conftest.$ac_ext <<_ACEOF
 
4869
/* confdefs.h.  */
 
4870
_ACEOF
 
4871
cat confdefs.h >>conftest.$ac_ext
 
4872
cat >>conftest.$ac_ext <<_ACEOF
 
4873
/* end confdefs.h.  */
 
4874
#include <ctype.h>
 
4875
#include <stdlib.h>
 
4876
#if ((' ' & 0x0FF) == 0x020)
 
4877
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4878
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4879
#else
 
4880
# define ISLOWER(c) \
 
4881
                   (('a' <= (c) && (c) <= 'i') \
 
4882
                     || ('j' <= (c) && (c) <= 'r') \
 
4883
                     || ('s' <= (c) && (c) <= 'z'))
 
4884
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4885
#endif
 
4886
 
 
4887
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4888
int
 
4889
main ()
 
4890
{
 
4891
  int i;
 
4892
  for (i = 0; i < 256; i++)
 
4893
    if (XOR (islower (i), ISLOWER (i))
 
4894
        || toupper (i) != TOUPPER (i))
 
4895
      return 2;
 
4896
  return 0;
 
4897
}
 
4898
_ACEOF
 
4899
rm -f conftest$ac_exeext
 
4900
if { (ac_try="$ac_link"
 
4901
case "(($ac_try" in
 
4902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4903
  *) ac_try_echo=$ac_try;;
 
4904
esac
 
4905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4906
  (eval "$ac_link") 2>&5
 
4907
  ac_status=$?
 
4908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4909
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4910
  { (case "(($ac_try" in
 
4911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4912
  *) ac_try_echo=$ac_try;;
 
4913
esac
 
4914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4915
  (eval "$ac_try") 2>&5
 
4916
  ac_status=$?
 
4917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4918
  (exit $ac_status); }; }; then
 
4919
  :
 
4920
else
 
4921
  echo "$as_me: program exited with status $ac_status" >&5
 
4922
echo "$as_me: failed program was:" >&5
 
4923
sed 's/^/| /' conftest.$ac_ext >&5
 
4924
 
 
4925
( exit $ac_status )
 
4926
ac_cv_header_stdc=no
 
4927
fi
 
4928
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4929
fi
 
4930
 
 
4931
 
 
4932
fi
 
4933
fi
 
4934
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4935
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4936
if test $ac_cv_header_stdc = yes; then
 
4937
  
 
4938
cat >>confdefs.h <<\_ACEOF
 
4939
@%:@define STDC_HEADERS 1
 
4940
_ACEOF
 
4941
 
 
4942
fi
 
4943
 
 
4944
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
 
 
4950
 
 
4951
 
 
4952
 
 
4953
 
 
4954
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4955
                  inttypes.h stdint.h unistd.h
 
4956
do
 
4957
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4958
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4959
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4960
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4962
else
 
4963
  cat >conftest.$ac_ext <<_ACEOF
 
4964
/* confdefs.h.  */
 
4965
_ACEOF
 
4966
cat confdefs.h >>conftest.$ac_ext
 
4967
cat >>conftest.$ac_ext <<_ACEOF
 
4968
/* end confdefs.h.  */
 
4969
$ac_includes_default
 
4970
 
 
4971
@%:@include <$ac_header>
 
4972
_ACEOF
 
4973
rm -f conftest.$ac_objext
 
4974
if { (ac_try="$ac_compile"
 
4975
case "(($ac_try" in
 
4976
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4977
  *) ac_try_echo=$ac_try;;
 
4978
esac
 
4979
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4980
  (eval "$ac_compile") 2>conftest.er1
 
4981
  ac_status=$?
 
4982
  grep -v '^ *+' conftest.er1 >conftest.err
 
4983
  rm -f conftest.er1
 
4984
  cat conftest.err >&5
 
4985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4986
  (exit $ac_status); } && {
 
4987
         test -z "$ac_c_werror_flag" ||
 
4988
         test ! -s conftest.err
 
4989
       } && test -s conftest.$ac_objext; then
 
4990
  eval "$as_ac_Header=yes"
 
4991
else
 
4992
  echo "$as_me: failed program was:" >&5
 
4993
sed 's/^/| /' conftest.$ac_ext >&5
 
4994
 
 
4995
        eval "$as_ac_Header=no"
 
4996
fi
 
4997
 
 
4998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4999
fi
 
5000
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5001
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5002
echo "${ECHO_T}$ac_res" >&6; }
 
5003
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5004
  cat >>confdefs.h <<_ACEOF
 
5005
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5006
_ACEOF
 
5007
 
 
5008
fi
 
5009
 
 
5010
done
 
5011
 
 
5012
 
 
5013
 
 
5014
for ac_header in dlfcn.h
 
5015
do
 
5016
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5017
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5018
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5019
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5020
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5022
fi
 
5023
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5024
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5025
echo "${ECHO_T}$ac_res" >&6; }
 
5026
else
 
5027
  # Is the header compilable?
 
5028
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5029
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5030
cat >conftest.$ac_ext <<_ACEOF
 
5031
/* confdefs.h.  */
 
5032
_ACEOF
 
5033
cat confdefs.h >>conftest.$ac_ext
 
5034
cat >>conftest.$ac_ext <<_ACEOF
 
5035
/* end confdefs.h.  */
 
5036
$ac_includes_default
 
5037
@%:@include <$ac_header>
 
5038
_ACEOF
 
5039
rm -f conftest.$ac_objext
 
5040
if { (ac_try="$ac_compile"
 
5041
case "(($ac_try" in
 
5042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5043
  *) ac_try_echo=$ac_try;;
 
5044
esac
 
5045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5046
  (eval "$ac_compile") 2>conftest.er1
 
5047
  ac_status=$?
 
5048
  grep -v '^ *+' conftest.er1 >conftest.err
 
5049
  rm -f conftest.er1
 
5050
  cat conftest.err >&5
 
5051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5052
  (exit $ac_status); } && {
 
5053
         test -z "$ac_c_werror_flag" ||
 
5054
         test ! -s conftest.err
 
5055
       } && test -s conftest.$ac_objext; then
 
5056
  ac_header_compiler=yes
 
5057
else
 
5058
  echo "$as_me: failed program was:" >&5
 
5059
sed 's/^/| /' conftest.$ac_ext >&5
 
5060
 
 
5061
        ac_header_compiler=no
 
5062
fi
 
5063
 
 
5064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5065
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5066
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5067
 
 
5068
# Is the header present?
 
5069
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5070
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5071
cat >conftest.$ac_ext <<_ACEOF
 
5072
/* confdefs.h.  */
 
5073
_ACEOF
 
5074
cat confdefs.h >>conftest.$ac_ext
 
5075
cat >>conftest.$ac_ext <<_ACEOF
 
5076
/* end confdefs.h.  */
 
5077
@%:@include <$ac_header>
 
5078
_ACEOF
 
5079
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5080
case "(($ac_try" in
 
5081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5082
  *) ac_try_echo=$ac_try;;
 
5083
esac
 
5084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5085
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5086
  ac_status=$?
 
5087
  grep -v '^ *+' conftest.er1 >conftest.err
 
5088
  rm -f conftest.er1
 
5089
  cat conftest.err >&5
 
5090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5091
  (exit $ac_status); } >/dev/null && {
 
5092
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5093
         test ! -s conftest.err
 
5094
       }; then
 
5095
  ac_header_preproc=yes
 
5096
else
 
5097
  echo "$as_me: failed program was:" >&5
 
5098
sed 's/^/| /' conftest.$ac_ext >&5
 
5099
 
 
5100
  ac_header_preproc=no
 
5101
fi
 
5102
 
 
5103
rm -f conftest.err conftest.$ac_ext
 
5104
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5105
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5106
 
 
5107
# So?  What about this header?
 
5108
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5109
  yes:no: )
 
5110
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5111
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5112
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5113
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5114
    ac_header_preproc=yes
 
5115
    ;;
 
5116
  no:yes:* )
 
5117
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5118
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5119
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5120
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5121
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5122
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5123
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5124
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5125
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5126
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5127
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5128
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5129
    ( cat <<\_ASBOX
 
5130
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
5131
@%:@@%:@ Report this to ChAnGFu (changfu@hollowproject.org) () @%:@@%:@
 
5132
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
5133
_ASBOX
 
5134
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5135
    ;;
 
5136
esac
 
5137
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5138
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5139
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5141
else
 
5142
  eval "$as_ac_Header=\$ac_header_preproc"
 
5143
fi
 
5144
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5145
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5146
echo "${ECHO_T}$ac_res" >&6; }
 
5147
 
 
5148
fi
 
5149
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5150
  cat >>confdefs.h <<_ACEOF
 
5151
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5152
_ACEOF
 
5153
 
 
5154
fi
 
5155
 
 
5156
done
 
5157
 
 
5158
ac_ext=cpp
 
5159
ac_cpp='$CXXCPP $CPPFLAGS'
 
5160
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5161
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5162
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5163
if test -z "$CXX"; then
 
5164
  if test -n "$CCC"; then
 
5165
    CXX=$CCC
 
5166
  else
 
5167
    if test -n "$ac_tool_prefix"; then
 
5168
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5169
  do
 
5170
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5171
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5172
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5174
if test "${ac_cv_prog_CXX+set}" = set; then
 
5175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5176
else
 
5177
  if test -n "$CXX"; then
 
5178
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5179
else
 
5180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5181
for as_dir in $PATH
 
5182
do
 
5183
  IFS=$as_save_IFS
 
5184
  test -z "$as_dir" && as_dir=.
 
5185
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5186
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5187
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5188
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5189
    break 2
 
5190
  fi
 
5191
done
 
5192
done
 
5193
IFS=$as_save_IFS
 
5194
 
 
5195
fi
 
5196
fi
 
5197
CXX=$ac_cv_prog_CXX
 
5198
if test -n "$CXX"; then
 
5199
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5200
echo "${ECHO_T}$CXX" >&6; }
 
5201
else
 
5202
  { echo "$as_me:$LINENO: result: no" >&5
 
5203
echo "${ECHO_T}no" >&6; }
 
5204
fi
 
5205
 
 
5206
 
 
5207
    test -n "$CXX" && break
 
5208
  done
 
5209
fi
 
5210
if test -z "$CXX"; then
 
5211
  ac_ct_CXX=$CXX
 
5212
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5213
do
 
5214
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5215
set dummy $ac_prog; ac_word=$2
 
5216
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5217
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5218
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5220
else
 
5221
  if test -n "$ac_ct_CXX"; then
 
5222
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5223
else
 
5224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5225
for as_dir in $PATH
 
5226
do
 
5227
  IFS=$as_save_IFS
 
5228
  test -z "$as_dir" && as_dir=.
 
5229
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5230
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5231
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5232
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5233
    break 2
 
5234
  fi
 
5235
done
 
5236
done
 
5237
IFS=$as_save_IFS
 
5238
 
 
5239
fi
 
5240
fi
 
5241
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5242
if test -n "$ac_ct_CXX"; then
 
5243
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5244
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5245
else
 
5246
  { echo "$as_me:$LINENO: result: no" >&5
 
5247
echo "${ECHO_T}no" >&6; }
 
5248
fi
 
5249
 
 
5250
 
 
5251
  test -n "$ac_ct_CXX" && break
 
5252
done
 
5253
 
 
5254
  if test "x$ac_ct_CXX" = x; then
 
5255
    CXX="g++"
 
5256
  else
 
5257
    case $cross_compiling:$ac_tool_warned in
 
5258
yes:)
 
5259
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5260
whose name does not start with the host triplet.  If you think this
 
5261
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5262
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5263
whose name does not start with the host triplet.  If you think this
 
5264
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5265
ac_tool_warned=yes ;;
 
5266
esac
 
5267
    CXX=$ac_ct_CXX
 
5268
  fi
 
5269
fi
 
5270
 
 
5271
  fi
 
5272
fi
 
5273
# Provide some information about the compiler.
 
5274
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5275
ac_compiler=`set X $ac_compile; echo $2`
 
5276
{ (ac_try="$ac_compiler --version >&5"
 
5277
case "(($ac_try" in
 
5278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5279
  *) ac_try_echo=$ac_try;;
 
5280
esac
 
5281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5282
  (eval "$ac_compiler --version >&5") 2>&5
 
5283
  ac_status=$?
 
5284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5285
  (exit $ac_status); }
 
5286
{ (ac_try="$ac_compiler -v >&5"
 
5287
case "(($ac_try" in
 
5288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5289
  *) ac_try_echo=$ac_try;;
 
5290
esac
 
5291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5292
  (eval "$ac_compiler -v >&5") 2>&5
 
5293
  ac_status=$?
 
5294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5295
  (exit $ac_status); }
 
5296
{ (ac_try="$ac_compiler -V >&5"
 
5297
case "(($ac_try" in
 
5298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5299
  *) ac_try_echo=$ac_try;;
 
5300
esac
 
5301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5302
  (eval "$ac_compiler -V >&5") 2>&5
 
5303
  ac_status=$?
 
5304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5305
  (exit $ac_status); }
 
5306
 
 
5307
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5308
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5309
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5311
else
 
5312
  cat >conftest.$ac_ext <<_ACEOF
 
5313
/* confdefs.h.  */
 
5314
_ACEOF
 
5315
cat confdefs.h >>conftest.$ac_ext
 
5316
cat >>conftest.$ac_ext <<_ACEOF
 
5317
/* end confdefs.h.  */
 
5318
 
 
5319
int
 
5320
main ()
 
5321
{
 
5322
#ifndef __GNUC__
 
5323
       choke me
 
5324
#endif
 
5325
 
 
5326
  ;
 
5327
  return 0;
 
5328
}
 
5329
_ACEOF
 
5330
rm -f conftest.$ac_objext
 
5331
if { (ac_try="$ac_compile"
 
5332
case "(($ac_try" in
 
5333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5334
  *) ac_try_echo=$ac_try;;
 
5335
esac
 
5336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5337
  (eval "$ac_compile") 2>conftest.er1
 
5338
  ac_status=$?
 
5339
  grep -v '^ *+' conftest.er1 >conftest.err
 
5340
  rm -f conftest.er1
 
5341
  cat conftest.err >&5
 
5342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5343
  (exit $ac_status); } && {
 
5344
         test -z "$ac_cxx_werror_flag" ||
 
5345
         test ! -s conftest.err
 
5346
       } && test -s conftest.$ac_objext; then
 
5347
  ac_compiler_gnu=yes
 
5348
else
 
5349
  echo "$as_me: failed program was:" >&5
 
5350
sed 's/^/| /' conftest.$ac_ext >&5
 
5351
 
 
5352
        ac_compiler_gnu=no
 
5353
fi
 
5354
 
 
5355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5356
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5357
 
 
5358
fi
 
5359
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5360
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5361
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5362
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5363
ac_save_CXXFLAGS=$CXXFLAGS
 
5364
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5365
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5366
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5368
else
 
5369
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5370
   ac_cxx_werror_flag=yes
 
5371
   ac_cv_prog_cxx_g=no
 
5372
   CXXFLAGS="-g"
 
5373
   cat >conftest.$ac_ext <<_ACEOF
 
5374
/* confdefs.h.  */
 
5375
_ACEOF
 
5376
cat confdefs.h >>conftest.$ac_ext
 
5377
cat >>conftest.$ac_ext <<_ACEOF
 
5378
/* end confdefs.h.  */
 
5379
 
 
5380
int
 
5381
main ()
 
5382
{
 
5383
 
 
5384
  ;
 
5385
  return 0;
 
5386
}
 
5387
_ACEOF
 
5388
rm -f conftest.$ac_objext
 
5389
if { (ac_try="$ac_compile"
 
5390
case "(($ac_try" in
 
5391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5392
  *) ac_try_echo=$ac_try;;
 
5393
esac
 
5394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5395
  (eval "$ac_compile") 2>conftest.er1
 
5396
  ac_status=$?
 
5397
  grep -v '^ *+' conftest.er1 >conftest.err
 
5398
  rm -f conftest.er1
 
5399
  cat conftest.err >&5
 
5400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5401
  (exit $ac_status); } && {
 
5402
         test -z "$ac_cxx_werror_flag" ||
 
5403
         test ! -s conftest.err
 
5404
       } && test -s conftest.$ac_objext; then
 
5405
  ac_cv_prog_cxx_g=yes
 
5406
else
 
5407
  echo "$as_me: failed program was:" >&5
 
5408
sed 's/^/| /' conftest.$ac_ext >&5
 
5409
 
 
5410
        CXXFLAGS=""
 
5411
      cat >conftest.$ac_ext <<_ACEOF
 
5412
/* confdefs.h.  */
 
5413
_ACEOF
 
5414
cat confdefs.h >>conftest.$ac_ext
 
5415
cat >>conftest.$ac_ext <<_ACEOF
 
5416
/* end confdefs.h.  */
 
5417
 
 
5418
int
 
5419
main ()
 
5420
{
 
5421
 
 
5422
  ;
 
5423
  return 0;
 
5424
}
 
5425
_ACEOF
 
5426
rm -f conftest.$ac_objext
 
5427
if { (ac_try="$ac_compile"
 
5428
case "(($ac_try" in
 
5429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5430
  *) ac_try_echo=$ac_try;;
 
5431
esac
 
5432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5433
  (eval "$ac_compile") 2>conftest.er1
 
5434
  ac_status=$?
 
5435
  grep -v '^ *+' conftest.er1 >conftest.err
 
5436
  rm -f conftest.er1
 
5437
  cat conftest.err >&5
 
5438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5439
  (exit $ac_status); } && {
 
5440
         test -z "$ac_cxx_werror_flag" ||
 
5441
         test ! -s conftest.err
 
5442
       } && test -s conftest.$ac_objext; then
 
5443
  :
 
5444
else
 
5445
  echo "$as_me: failed program was:" >&5
 
5446
sed 's/^/| /' conftest.$ac_ext >&5
 
5447
 
 
5448
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5449
         CXXFLAGS="-g"
 
5450
         cat >conftest.$ac_ext <<_ACEOF
 
5451
/* confdefs.h.  */
 
5452
_ACEOF
 
5453
cat confdefs.h >>conftest.$ac_ext
 
5454
cat >>conftest.$ac_ext <<_ACEOF
 
5455
/* end confdefs.h.  */
 
5456
 
 
5457
int
 
5458
main ()
 
5459
{
 
5460
 
 
5461
  ;
 
5462
  return 0;
 
5463
}
 
5464
_ACEOF
 
5465
rm -f conftest.$ac_objext
 
5466
if { (ac_try="$ac_compile"
 
5467
case "(($ac_try" in
 
5468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5469
  *) ac_try_echo=$ac_try;;
 
5470
esac
 
5471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5472
  (eval "$ac_compile") 2>conftest.er1
 
5473
  ac_status=$?
 
5474
  grep -v '^ *+' conftest.er1 >conftest.err
 
5475
  rm -f conftest.er1
 
5476
  cat conftest.err >&5
 
5477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5478
  (exit $ac_status); } && {
 
5479
         test -z "$ac_cxx_werror_flag" ||
 
5480
         test ! -s conftest.err
 
5481
       } && test -s conftest.$ac_objext; then
 
5482
  ac_cv_prog_cxx_g=yes
 
5483
else
 
5484
  echo "$as_me: failed program was:" >&5
 
5485
sed 's/^/| /' conftest.$ac_ext >&5
 
5486
 
 
5487
        
 
5488
fi
 
5489
 
 
5490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5491
fi
 
5492
 
 
5493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5494
fi
 
5495
 
 
5496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5497
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5498
fi
 
5499
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5500
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5501
if test "$ac_test_CXXFLAGS" = set; then
 
5502
  CXXFLAGS=$ac_save_CXXFLAGS
 
5503
elif test $ac_cv_prog_cxx_g = yes; then
 
5504
  if test "$GXX" = yes; then
 
5505
    CXXFLAGS="-g -O2"
 
5506
  else
 
5507
    CXXFLAGS="-g"
 
5508
  fi
 
5509
else
 
5510
  if test "$GXX" = yes; then
 
5511
    CXXFLAGS="-O2"
 
5512
  else
 
5513
    CXXFLAGS=
 
5514
  fi
 
5515
fi
 
5516
ac_ext=cpp
 
5517
ac_cpp='$CXXCPP $CPPFLAGS'
 
5518
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5519
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5520
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5521
 
 
5522
depcc="$CXX"  am_compiler_list=
 
5523
 
 
5524
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5525
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5526
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5528
else
 
5529
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5530
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5531
  # making bogus files that we don't know about and never remove.  For
 
5532
  # instance it was reported that on HP-UX the gcc test will end up
 
5533
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5534
  # in D'.
 
5535
  mkdir conftest.dir
 
5536
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5537
  # using a relative directory.
 
5538
  cp "$am_depcomp" conftest.dir
 
5539
  cd conftest.dir
 
5540
  # We will build objects and dependencies in a subdirectory because
 
5541
  # it helps to detect inapplicable dependency modes.  For instance
 
5542
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5543
  # side effect of compilation, but ICC will put the dependencies in
 
5544
  # the current directory while Tru64 will put them in the object
 
5545
  # directory.
 
5546
  mkdir sub
 
5547
 
 
5548
  am_cv_CXX_dependencies_compiler_type=none
 
5549
  if test "$am_compiler_list" = ""; then
 
5550
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5551
  fi
 
5552
  for depmode in $am_compiler_list; do
 
5553
    # Setup a source with many dependencies, because some compilers
 
5554
    # like to wrap large dependency lists on column 80 (with \), and
 
5555
    # we should not choose a depcomp mode which is confused by this.
 
5556
    #
 
5557
    # We need to recreate these files for each test, as the compiler may
 
5558
    # overwrite some of them when testing with obscure command lines.
 
5559
    # This happens at least with the AIX C compiler.
 
5560
    : > sub/conftest.c
 
5561
    for i in 1 2 3 4 5 6; do
 
5562
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5563
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5564
      # Solaris 8's {/usr,}/bin/sh.
 
5565
      touch sub/conftst$i.h
 
5566
    done
 
5567
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5568
 
 
5569
    case $depmode in
 
5570
    nosideeffect)
 
5571
      # after this tag, mechanisms are not by side-effect, so they'll
 
5572
      # only be used when explicitly requested
 
5573
      if test "x$enable_dependency_tracking" = xyes; then
 
5574
        continue
 
5575
      else
 
5576
        break
 
5577
      fi
 
5578
      ;;
 
5579
    none) break ;;
 
5580
    esac
 
5581
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5582
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5583
    # handle `-M -o', and we need to detect this.
 
5584
    if depmode=$depmode \
 
5585
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5586
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5587
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5588
         >/dev/null 2>conftest.err &&
 
5589
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5590
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5591
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5592
      # icc doesn't choke on unknown options, it will just issue warnings
 
5593
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5594
      # that says an option was ignored or not supported.
 
5595
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5596
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5597
      # The diagnosis changed in icc 8.0:
 
5598
      #   icc: Command line remark: option '-MP' not supported
 
5599
      if (grep 'ignoring option' conftest.err ||
 
5600
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5601
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5602
        break
 
5603
      fi
 
5604
    fi
 
5605
  done
 
5606
 
 
5607
  cd ..
 
5608
  rm -rf conftest.dir
 
5609
else
 
5610
  am_cv_CXX_dependencies_compiler_type=none
 
5611
fi
 
5612
 
 
5613
fi
 
5614
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5615
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5616
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5617
 
 
5618
 
 
5619
 
 
5620
if 
 
5621
  test "x$enable_dependency_tracking" != xno \
 
5622
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5623
  am__fastdepCXX_TRUE=
 
5624
  am__fastdepCXX_FALSE='#'
 
5625
else
 
5626
  am__fastdepCXX_TRUE='#'
 
5627
  am__fastdepCXX_FALSE=
 
5628
fi
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5634
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5635
    (test "X$CXX" != "Xg++"))) ; then
 
5636
  ac_ext=cpp
 
5637
ac_cpp='$CXXCPP $CPPFLAGS'
 
5638
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5639
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5640
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5641
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5642
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5643
if test -z "$CXXCPP"; then
 
5644
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5646
else
 
5647
      # Double quotes because CXXCPP needs to be expanded
 
5648
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5649
    do
 
5650
      ac_preproc_ok=false
 
5651
for ac_cxx_preproc_warn_flag in '' yes
 
5652
do
 
5653
  # Use a header file that comes with gcc, so configuring glibc
 
5654
  # with a fresh cross-compiler works.
 
5655
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5656
  # <limits.h> exists even on freestanding compilers.
 
5657
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5658
  # not just through cpp. "Syntax error" is here to catch this case.
 
5659
  cat >conftest.$ac_ext <<_ACEOF
 
5660
/* confdefs.h.  */
 
5661
_ACEOF
 
5662
cat confdefs.h >>conftest.$ac_ext
 
5663
cat >>conftest.$ac_ext <<_ACEOF
 
5664
/* end confdefs.h.  */
 
5665
@%:@ifdef __STDC__
 
5666
@%:@ include <limits.h>
 
5667
@%:@else
 
5668
@%:@ include <assert.h>
 
5669
@%:@endif
 
5670
                     Syntax error
 
5671
_ACEOF
 
5672
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5673
case "(($ac_try" in
 
5674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5675
  *) ac_try_echo=$ac_try;;
 
5676
esac
 
5677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5678
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5679
  ac_status=$?
 
5680
  grep -v '^ *+' conftest.er1 >conftest.err
 
5681
  rm -f conftest.er1
 
5682
  cat conftest.err >&5
 
5683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5684
  (exit $ac_status); } >/dev/null && {
 
5685
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5686
         test ! -s conftest.err
 
5687
       }; then
 
5688
  :
 
5689
else
 
5690
  echo "$as_me: failed program was:" >&5
 
5691
sed 's/^/| /' conftest.$ac_ext >&5
 
5692
 
 
5693
  # Broken: fails on valid input.
 
5694
continue
 
5695
fi
 
5696
 
 
5697
rm -f conftest.err conftest.$ac_ext
 
5698
 
 
5699
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5700
  # can be detected and how.
 
5701
  cat >conftest.$ac_ext <<_ACEOF
 
5702
/* confdefs.h.  */
 
5703
_ACEOF
 
5704
cat confdefs.h >>conftest.$ac_ext
 
5705
cat >>conftest.$ac_ext <<_ACEOF
 
5706
/* end confdefs.h.  */
 
5707
@%:@include <ac_nonexistent.h>
 
5708
_ACEOF
 
5709
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5710
case "(($ac_try" in
 
5711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5712
  *) ac_try_echo=$ac_try;;
 
5713
esac
 
5714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5715
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5716
  ac_status=$?
 
5717
  grep -v '^ *+' conftest.er1 >conftest.err
 
5718
  rm -f conftest.er1
 
5719
  cat conftest.err >&5
 
5720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5721
  (exit $ac_status); } >/dev/null && {
 
5722
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5723
         test ! -s conftest.err
 
5724
       }; then
 
5725
  # Broken: success on invalid input.
 
5726
continue
 
5727
else
 
5728
  echo "$as_me: failed program was:" >&5
 
5729
sed 's/^/| /' conftest.$ac_ext >&5
 
5730
 
 
5731
  # Passes both tests.
 
5732
ac_preproc_ok=:
 
5733
break
 
5734
fi
 
5735
 
 
5736
rm -f conftest.err conftest.$ac_ext
 
5737
 
 
5738
done
 
5739
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5740
rm -f conftest.err conftest.$ac_ext
 
5741
if $ac_preproc_ok; then
 
5742
  break
 
5743
fi
 
5744
 
 
5745
    done
 
5746
    ac_cv_prog_CXXCPP=$CXXCPP
 
5747
  
 
5748
fi
 
5749
  CXXCPP=$ac_cv_prog_CXXCPP
 
5750
else
 
5751
  ac_cv_prog_CXXCPP=$CXXCPP
 
5752
fi
 
5753
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5754
echo "${ECHO_T}$CXXCPP" >&6; }
 
5755
ac_preproc_ok=false
 
5756
for ac_cxx_preproc_warn_flag in '' yes
 
5757
do
 
5758
  # Use a header file that comes with gcc, so configuring glibc
 
5759
  # with a fresh cross-compiler works.
 
5760
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5761
  # <limits.h> exists even on freestanding compilers.
 
5762
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5763
  # not just through cpp. "Syntax error" is here to catch this case.
 
5764
  cat >conftest.$ac_ext <<_ACEOF
 
5765
/* confdefs.h.  */
 
5766
_ACEOF
 
5767
cat confdefs.h >>conftest.$ac_ext
 
5768
cat >>conftest.$ac_ext <<_ACEOF
 
5769
/* end confdefs.h.  */
 
5770
@%:@ifdef __STDC__
 
5771
@%:@ include <limits.h>
 
5772
@%:@else
 
5773
@%:@ include <assert.h>
 
5774
@%:@endif
 
5775
                     Syntax error
 
5776
_ACEOF
 
5777
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5778
case "(($ac_try" in
 
5779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5780
  *) ac_try_echo=$ac_try;;
 
5781
esac
 
5782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5783
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5784
  ac_status=$?
 
5785
  grep -v '^ *+' conftest.er1 >conftest.err
 
5786
  rm -f conftest.er1
 
5787
  cat conftest.err >&5
 
5788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5789
  (exit $ac_status); } >/dev/null && {
 
5790
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5791
         test ! -s conftest.err
 
5792
       }; then
 
5793
  :
 
5794
else
 
5795
  echo "$as_me: failed program was:" >&5
 
5796
sed 's/^/| /' conftest.$ac_ext >&5
 
5797
 
 
5798
  # Broken: fails on valid input.
 
5799
continue
 
5800
fi
 
5801
 
 
5802
rm -f conftest.err conftest.$ac_ext
 
5803
 
 
5804
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5805
  # can be detected and how.
 
5806
  cat >conftest.$ac_ext <<_ACEOF
 
5807
/* confdefs.h.  */
 
5808
_ACEOF
 
5809
cat confdefs.h >>conftest.$ac_ext
 
5810
cat >>conftest.$ac_ext <<_ACEOF
 
5811
/* end confdefs.h.  */
 
5812
@%:@include <ac_nonexistent.h>
 
5813
_ACEOF
 
5814
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5815
case "(($ac_try" in
 
5816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5817
  *) ac_try_echo=$ac_try;;
 
5818
esac
 
5819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5820
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5821
  ac_status=$?
 
5822
  grep -v '^ *+' conftest.er1 >conftest.err
 
5823
  rm -f conftest.er1
 
5824
  cat conftest.err >&5
 
5825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5826
  (exit $ac_status); } >/dev/null && {
 
5827
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5828
         test ! -s conftest.err
 
5829
       }; then
 
5830
  # Broken: success on invalid input.
 
5831
continue
 
5832
else
 
5833
  echo "$as_me: failed program was:" >&5
 
5834
sed 's/^/| /' conftest.$ac_ext >&5
 
5835
 
 
5836
  # Passes both tests.
 
5837
ac_preproc_ok=:
 
5838
break
 
5839
fi
 
5840
 
 
5841
rm -f conftest.err conftest.$ac_ext
 
5842
 
 
5843
done
 
5844
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5845
rm -f conftest.err conftest.$ac_ext
 
5846
if $ac_preproc_ok; then
 
5847
  :
 
5848
else
 
5849
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5850
See \`config.log' for more details." >&5
 
5851
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5852
See \`config.log' for more details." >&2;}
 
5853
   { (exit 1); exit 1; }; }
 
5854
fi
 
5855
 
 
5856
ac_ext=cpp
 
5857
ac_cpp='$CXXCPP $CPPFLAGS'
 
5858
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5859
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5860
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5861
 
 
5862
fi
 
5863
 
 
5864
 
 
5865
ac_ext=f
 
5866
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5867
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5868
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5869
if test -n "$ac_tool_prefix"; then
 
5870
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5871
  do
 
5872
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5873
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5874
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5876
if test "${ac_cv_prog_F77+set}" = set; then
 
5877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5878
else
 
5879
  if test -n "$F77"; then
 
5880
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5881
else
 
5882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5883
for as_dir in $PATH
 
5884
do
 
5885
  IFS=$as_save_IFS
 
5886
  test -z "$as_dir" && as_dir=.
 
5887
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5888
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5889
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5890
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5891
    break 2
 
5892
  fi
 
5893
done
 
5894
done
 
5895
IFS=$as_save_IFS
 
5896
 
 
5897
fi
 
5898
fi
 
5899
F77=$ac_cv_prog_F77
 
5900
if test -n "$F77"; then
 
5901
  { echo "$as_me:$LINENO: result: $F77" >&5
 
5902
echo "${ECHO_T}$F77" >&6; }
 
5903
else
 
5904
  { echo "$as_me:$LINENO: result: no" >&5
 
5905
echo "${ECHO_T}no" >&6; }
 
5906
fi
 
5907
 
 
5908
 
 
5909
    test -n "$F77" && break
 
5910
  done
 
5911
fi
 
5912
if test -z "$F77"; then
 
5913
  ac_ct_F77=$F77
 
5914
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5915
do
 
5916
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5917
set dummy $ac_prog; ac_word=$2
 
5918
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5919
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5920
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5922
else
 
5923
  if test -n "$ac_ct_F77"; then
 
5924
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5925
else
 
5926
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5927
for as_dir in $PATH
 
5928
do
 
5929
  IFS=$as_save_IFS
 
5930
  test -z "$as_dir" && as_dir=.
 
5931
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5932
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5933
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5934
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5935
    break 2
 
5936
  fi
 
5937
done
 
5938
done
 
5939
IFS=$as_save_IFS
 
5940
 
 
5941
fi
 
5942
fi
 
5943
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5944
if test -n "$ac_ct_F77"; then
 
5945
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5946
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
5947
else
 
5948
  { echo "$as_me:$LINENO: result: no" >&5
 
5949
echo "${ECHO_T}no" >&6; }
 
5950
fi
 
5951
 
 
5952
 
 
5953
  test -n "$ac_ct_F77" && break
 
5954
done
 
5955
 
 
5956
  if test "x$ac_ct_F77" = x; then
 
5957
    F77=""
 
5958
  else
 
5959
    case $cross_compiling:$ac_tool_warned in
 
5960
yes:)
 
5961
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5962
whose name does not start with the host triplet.  If you think this
 
5963
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5964
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5965
whose name does not start with the host triplet.  If you think this
 
5966
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5967
ac_tool_warned=yes ;;
 
5968
esac
 
5969
    F77=$ac_ct_F77
 
5970
  fi
 
5971
fi
 
5972
 
 
5973
 
 
5974
# Provide some information about the compiler.
 
5975
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
5976
ac_compiler=`set X $ac_compile; echo $2`
 
5977
{ (ac_try="$ac_compiler --version >&5"
 
5978
case "(($ac_try" in
 
5979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5980
  *) ac_try_echo=$ac_try;;
 
5981
esac
 
5982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5983
  (eval "$ac_compiler --version >&5") 2>&5
 
5984
  ac_status=$?
 
5985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5986
  (exit $ac_status); }
 
5987
{ (ac_try="$ac_compiler -v >&5"
 
5988
case "(($ac_try" in
 
5989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5990
  *) ac_try_echo=$ac_try;;
 
5991
esac
 
5992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5993
  (eval "$ac_compiler -v >&5") 2>&5
 
5994
  ac_status=$?
 
5995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5996
  (exit $ac_status); }
 
5997
{ (ac_try="$ac_compiler -V >&5"
 
5998
case "(($ac_try" in
 
5999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6000
  *) ac_try_echo=$ac_try;;
 
6001
esac
 
6002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6003
  (eval "$ac_compiler -V >&5") 2>&5
 
6004
  ac_status=$?
 
6005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6006
  (exit $ac_status); }
 
6007
rm -f a.out
 
6008
 
 
6009
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6010
# input file.  (Note that this only needs to work for GNU compilers.)
 
6011
ac_save_ext=$ac_ext
 
6012
ac_ext=F
 
6013
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6014
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6015
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6017
else
 
6018
  cat >conftest.$ac_ext <<_ACEOF
 
6019
      program main
 
6020
#ifndef __GNUC__
 
6021
       choke me
 
6022
#endif
 
6023
 
 
6024
      end
 
6025
_ACEOF
 
6026
rm -f conftest.$ac_objext
 
6027
if { (ac_try="$ac_compile"
 
6028
case "(($ac_try" in
 
6029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6030
  *) ac_try_echo=$ac_try;;
 
6031
esac
 
6032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6033
  (eval "$ac_compile") 2>conftest.er1
 
6034
  ac_status=$?
 
6035
  grep -v '^ *+' conftest.er1 >conftest.err
 
6036
  rm -f conftest.er1
 
6037
  cat conftest.err >&5
 
6038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6039
  (exit $ac_status); } && {
 
6040
         test -z "$ac_f77_werror_flag" ||
 
6041
         test ! -s conftest.err
 
6042
       } && test -s conftest.$ac_objext; then
 
6043
  ac_compiler_gnu=yes
 
6044
else
 
6045
  echo "$as_me: failed program was:" >&5
 
6046
sed 's/^/| /' conftest.$ac_ext >&5
 
6047
 
 
6048
        ac_compiler_gnu=no
 
6049
fi
 
6050
 
 
6051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6052
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6053
 
 
6054
fi
 
6055
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6056
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6057
ac_ext=$ac_save_ext
 
6058
ac_test_FFLAGS=${FFLAGS+set}
 
6059
ac_save_FFLAGS=$FFLAGS
 
6060
FFLAGS=
 
6061
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6062
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6063
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6065
else
 
6066
  FFLAGS=-g
 
6067
cat >conftest.$ac_ext <<_ACEOF
 
6068
      program main
 
6069
 
 
6070
      end
 
6071
_ACEOF
 
6072
rm -f conftest.$ac_objext
 
6073
if { (ac_try="$ac_compile"
 
6074
case "(($ac_try" in
 
6075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6076
  *) ac_try_echo=$ac_try;;
 
6077
esac
 
6078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6079
  (eval "$ac_compile") 2>conftest.er1
 
6080
  ac_status=$?
 
6081
  grep -v '^ *+' conftest.er1 >conftest.err
 
6082
  rm -f conftest.er1
 
6083
  cat conftest.err >&5
 
6084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6085
  (exit $ac_status); } && {
 
6086
         test -z "$ac_f77_werror_flag" ||
 
6087
         test ! -s conftest.err
 
6088
       } && test -s conftest.$ac_objext; then
 
6089
  ac_cv_prog_f77_g=yes
 
6090
else
 
6091
  echo "$as_me: failed program was:" >&5
 
6092
sed 's/^/| /' conftest.$ac_ext >&5
 
6093
 
 
6094
        ac_cv_prog_f77_g=no
 
6095
fi
 
6096
 
 
6097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6098
 
 
6099
fi
 
6100
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6101
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6102
if test "$ac_test_FFLAGS" = set; then
 
6103
  FFLAGS=$ac_save_FFLAGS
 
6104
elif test $ac_cv_prog_f77_g = yes; then
 
6105
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6106
    FFLAGS="-g -O2"
 
6107
  else
 
6108
    FFLAGS="-g"
 
6109
  fi
 
6110
else
 
6111
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6112
    FFLAGS="-O2"
 
6113
  else
 
6114
    FFLAGS=
 
6115
  fi
 
6116
fi
 
6117
 
 
6118
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6119
ac_ext=c
 
6120
ac_cpp='$CPP $CPPFLAGS'
 
6121
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6122
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6123
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6124
 
 
6125
 
 
6126
 
 
6127
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6128
 
 
6129
# find the maximum length of command line arguments
 
6130
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6131
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6132
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6134
else
 
6135
    i=0
 
6136
  teststring="ABCD"
 
6137
 
 
6138
  case $build_os in
 
6139
  msdosdjgpp*)
 
6140
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6141
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6142
    # during glob expansion).  Even if it were fixed, the result of this
 
6143
    # check would be larger than it should be.
 
6144
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6145
    ;;
 
6146
 
 
6147
  gnu*)
 
6148
    # Under GNU Hurd, this test is not required because there is
 
6149
    # no limit to the length of command line arguments.
 
6150
    # Libtool will interpret -1 as no limit whatsoever
 
6151
    lt_cv_sys_max_cmd_len=-1;
 
6152
    ;;
 
6153
 
 
6154
  cygwin* | mingw*)
 
6155
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6156
    # about 5 minutes as the teststring grows exponentially.
 
6157
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6158
    # you end up with a "frozen" computer, even though with patience
 
6159
    # the test eventually succeeds (with a max line length of 256k).
 
6160
    # Instead, let's just punt: use the minimum linelength reported by
 
6161
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6162
    lt_cv_sys_max_cmd_len=8192;
 
6163
    ;;
 
6164
 
 
6165
  amigaos*)
 
6166
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6167
    # So we just punt and use a minimum line length of 8192.
 
6168
    lt_cv_sys_max_cmd_len=8192;
 
6169
    ;;
 
6170
 
 
6171
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6172
    # This has been around since 386BSD, at least.  Likely further.
 
6173
    if test -x /sbin/sysctl; then
 
6174
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6175
    elif test -x /usr/sbin/sysctl; then
 
6176
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6177
    else
 
6178
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6179
    fi
 
6180
    # And add a safety zone
 
6181
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6182
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6183
    ;;
 
6184
 
 
6185
  interix*)
 
6186
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6187
    lt_cv_sys_max_cmd_len=196608
 
6188
    ;;
 
6189
 
 
6190
  osf*)
 
6191
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6192
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6193
    # nice to cause kernel panics so lets avoid the loop below.
 
6194
    # First set a reasonable default.
 
6195
    lt_cv_sys_max_cmd_len=16384
 
6196
    #
 
6197
    if test -x /sbin/sysconfig; then
 
6198
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6199
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6200
      esac
 
6201
    fi
 
6202
    ;;
 
6203
  sco3.2v5*)
 
6204
    lt_cv_sys_max_cmd_len=102400
 
6205
    ;;
 
6206
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6207
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6208
    if test -n "$kargmax"; then
 
6209
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6210
    else
 
6211
      lt_cv_sys_max_cmd_len=32768
 
6212
    fi
 
6213
    ;;
 
6214
  *)
 
6215
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6216
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6217
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6218
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6219
    else
 
6220
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6221
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6222
               = "XX$teststring") >/dev/null 2>&1 &&
 
6223
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6224
              lt_cv_sys_max_cmd_len=$new_result &&
 
6225
              test $i != 17 # 1/2 MB should be enough
 
6226
      do
 
6227
        i=`expr $i + 1`
 
6228
        teststring=$teststring$teststring
 
6229
      done
 
6230
      teststring=
 
6231
      # Add a significant safety factor because C++ compilers can tack on massive
 
6232
      # amounts of additional arguments before passing them to the linker.
 
6233
      # It appears as though 1/2 is a usable value.
 
6234
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6235
    fi
 
6236
    ;;
 
6237
  esac
 
6238
 
 
6239
fi
 
6240
 
 
6241
if test -n $lt_cv_sys_max_cmd_len ; then
 
6242
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6243
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6244
else
 
6245
  { echo "$as_me:$LINENO: result: none" >&5
 
6246
echo "${ECHO_T}none" >&6; }
 
6247
fi
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6254
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6255
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6256
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6258
else
 
6259
  
 
6260
# These are sane defaults that work on at least a few old systems.
 
6261
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6262
 
 
6263
# Character class describing NM global symbol codes.
 
6264
symcode='[BCDEGRST]'
 
6265
 
 
6266
# Regexp to match symbols that can be accessed directly from C.
 
6267
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6268
 
 
6269
# Transform an extracted symbol line into a proper C declaration
 
6270
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6271
 
 
6272
# Transform an extracted symbol line into symbol name and symbol address
 
6273
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6274
 
 
6275
# Define system-specific variables.
 
6276
case $host_os in
 
6277
aix*)
 
6278
  symcode='[BCDT]'
 
6279
  ;;
 
6280
cygwin* | mingw* | pw32*)
 
6281
  symcode='[ABCDGISTW]'
 
6282
  ;;
 
6283
hpux*) # Its linker distinguishes data from code symbols
 
6284
  if test "$host_cpu" = ia64; then
 
6285
    symcode='[ABCDEGRST]'
 
6286
  fi
 
6287
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6288
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6289
  ;;
 
6290
linux* | k*bsd*-gnu)
 
6291
  if test "$host_cpu" = ia64; then
 
6292
    symcode='[ABCDGIRSTW]'
 
6293
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6294
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6295
  fi
 
6296
  ;;
 
6297
irix* | nonstopux*)
 
6298
  symcode='[BCDEGRST]'
 
6299
  ;;
 
6300
osf*)
 
6301
  symcode='[BCDEGQRST]'
 
6302
  ;;
 
6303
solaris*)
 
6304
  symcode='[BDRT]'
 
6305
  ;;
 
6306
sco3.2v5*)
 
6307
  symcode='[DT]'
 
6308
  ;;
 
6309
sysv4.2uw2*)
 
6310
  symcode='[DT]'
 
6311
  ;;
 
6312
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6313
  symcode='[ABDT]'
 
6314
  ;;
 
6315
sysv4)
 
6316
  symcode='[DFNSTU]'
 
6317
  ;;
 
6318
esac
 
6319
 
 
6320
# Handle CRLF in mingw tool chain
 
6321
opt_cr=
 
6322
case $build_os in
 
6323
mingw*)
 
6324
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6325
  ;;
 
6326
esac
 
6327
 
 
6328
# If we're using GNU nm, then use its standard symbol codes.
 
6329
case `$NM -V 2>&1` in
 
6330
*GNU* | *'with BFD'*)
 
6331
  symcode='[ABCDGIRSTW]' ;;
 
6332
esac
 
6333
 
 
6334
# Try without a prefix undercore, then with it.
 
6335
for ac_symprfx in "" "_"; do
 
6336
 
 
6337
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6338
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6339
 
 
6340
  # Write the raw and C identifiers.
 
6341
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6342
 
 
6343
  # Check to see that the pipe works correctly.
 
6344
  pipe_works=no
 
6345
 
 
6346
  rm -f conftest*
 
6347
  cat > conftest.$ac_ext <<EOF
 
6348
#ifdef __cplusplus
 
6349
extern "C" {
 
6350
#endif
 
6351
char nm_test_var;
 
6352
void nm_test_func(){}
 
6353
#ifdef __cplusplus
 
6354
}
 
6355
#endif
 
6356
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6357
EOF
 
6358
 
 
6359
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6360
  (eval $ac_compile) 2>&5
 
6361
  ac_status=$?
 
6362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6363
  (exit $ac_status); }; then
 
6364
    # Now try to grab the symbols.
 
6365
    nlist=conftest.nm
 
6366
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6367
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6368
  ac_status=$?
 
6369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6370
  (exit $ac_status); } && test -s "$nlist"; then
 
6371
      # Try sorting and uniquifying the output.
 
6372
      if sort "$nlist" | uniq > "$nlist"T; then
 
6373
        mv -f "$nlist"T "$nlist"
 
6374
      else
 
6375
        rm -f "$nlist"T
 
6376
      fi
 
6377
 
 
6378
      # Make sure that we snagged all the symbols we need.
 
6379
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6380
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6381
          cat <<EOF > conftest.$ac_ext
 
6382
#ifdef __cplusplus
 
6383
extern "C" {
 
6384
#endif
 
6385
 
 
6386
EOF
 
6387
          # Now generate the symbol file.
 
6388
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6389
 
 
6390
          cat <<EOF >> conftest.$ac_ext
 
6391
#if defined (__STDC__) && __STDC__
 
6392
# define lt_ptr_t void *
 
6393
#else
 
6394
# define lt_ptr_t char *
 
6395
# define const
 
6396
#endif
 
6397
 
 
6398
/* The mapping between symbol names and symbols. */
 
6399
const struct {
 
6400
  const char *name;
 
6401
  lt_ptr_t address;
 
6402
}
 
6403
lt_preloaded_symbols[] =
 
6404
{
 
6405
EOF
 
6406
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6407
          cat <<\EOF >> conftest.$ac_ext
 
6408
  {0, (lt_ptr_t) 0}
 
6409
};
 
6410
 
 
6411
#ifdef __cplusplus
 
6412
}
 
6413
#endif
 
6414
EOF
 
6415
          # Now try linking the two files.
 
6416
          mv conftest.$ac_objext conftstm.$ac_objext
 
6417
          lt_save_LIBS="$LIBS"
 
6418
          lt_save_CFLAGS="$CFLAGS"
 
6419
          LIBS="conftstm.$ac_objext"
 
6420
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6421
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6422
  (eval $ac_link) 2>&5
 
6423
  ac_status=$?
 
6424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6425
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6426
            pipe_works=yes
 
6427
          fi
 
6428
          LIBS="$lt_save_LIBS"
 
6429
          CFLAGS="$lt_save_CFLAGS"
 
6430
        else
 
6431
          echo "cannot find nm_test_func in $nlist" >&5
 
6432
        fi
 
6433
      else
 
6434
        echo "cannot find nm_test_var in $nlist" >&5
 
6435
      fi
 
6436
    else
 
6437
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6438
    fi
 
6439
  else
 
6440
    echo "$progname: failed program was:" >&5
 
6441
    cat conftest.$ac_ext >&5
 
6442
  fi
 
6443
  rm -f conftest* conftst*
 
6444
 
 
6445
  # Do not use the global_symbol_pipe unless it works.
 
6446
  if test "$pipe_works" = yes; then
 
6447
    break
 
6448
  else
 
6449
    lt_cv_sys_global_symbol_pipe=
 
6450
  fi
 
6451
done
 
6452
 
 
6453
fi
 
6454
 
 
6455
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6456
  lt_cv_sys_global_symbol_to_cdecl=
 
6457
fi
 
6458
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6459
  { echo "$as_me:$LINENO: result: failed" >&5
 
6460
echo "${ECHO_T}failed" >&6; }
 
6461
else
 
6462
  { echo "$as_me:$LINENO: result: ok" >&5
 
6463
echo "${ECHO_T}ok" >&6; }
 
6464
fi
 
6465
 
 
6466
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6467
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6468
if test "${lt_cv_objdir+set}" = set; then
 
6469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6470
else
 
6471
  rm -f .libs 2>/dev/null
 
6472
mkdir .libs 2>/dev/null
 
6473
if test -d .libs; then
 
6474
  lt_cv_objdir=.libs
 
6475
else
 
6476
  # MS-DOS does not allow filenames that begin with a dot.
 
6477
  lt_cv_objdir=_libs
 
6478
fi
 
6479
rmdir .libs 2>/dev/null
 
6480
fi
 
6481
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6482
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6483
objdir=$lt_cv_objdir
 
6484
 
 
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
case $host_os in
 
6490
aix3*)
 
6491
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6492
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6493
  # vanish in a puff of smoke.
 
6494
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6495
    COLLECT_NAMES=
 
6496
    export COLLECT_NAMES
 
6497
  fi
 
6498
  ;;
 
6499
esac
 
6500
 
 
6501
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6502
# metacharacters that are still active within double-quoted strings.
 
6503
Xsed='sed -e 1s/^X//'
 
6504
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6505
 
 
6506
# Same as above, but do not quote variable references.
 
6507
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6508
 
 
6509
# Sed substitution to delay expansion of an escaped shell variable in a
 
6510
# double_quote_subst'ed string.
 
6511
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6512
 
 
6513
# Sed substitution to avoid accidental globbing in evaled expressions
 
6514
no_glob_subst='s/\*/\\\*/g'
 
6515
 
 
6516
# Constants:
 
6517
rm="rm -f"
 
6518
 
 
6519
# Global variables:
 
6520
default_ofile=libtool
 
6521
can_build_shared=yes
 
6522
 
 
6523
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6524
# which needs '.lib').
 
6525
libext=a
 
6526
ltmain="$ac_aux_dir/ltmain.sh"
 
6527
ofile="$default_ofile"
 
6528
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6529
 
 
6530
if test -n "$ac_tool_prefix"; then
 
6531
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6532
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6533
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6534
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6535
if test "${ac_cv_prog_AR+set}" = set; then
 
6536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6537
else
 
6538
  if test -n "$AR"; then
 
6539
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6540
else
 
6541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6542
for as_dir in $PATH
 
6543
do
 
6544
  IFS=$as_save_IFS
 
6545
  test -z "$as_dir" && as_dir=.
 
6546
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6547
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6548
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6549
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6550
    break 2
 
6551
  fi
 
6552
done
 
6553
done
 
6554
IFS=$as_save_IFS
 
6555
 
 
6556
fi
 
6557
fi
 
6558
AR=$ac_cv_prog_AR
 
6559
if test -n "$AR"; then
 
6560
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6561
echo "${ECHO_T}$AR" >&6; }
 
6562
else
 
6563
  { echo "$as_me:$LINENO: result: no" >&5
 
6564
echo "${ECHO_T}no" >&6; }
 
6565
fi
 
6566
 
 
6567
 
 
6568
fi
 
6569
if test -z "$ac_cv_prog_AR"; then
 
6570
  ac_ct_AR=$AR
 
6571
  # Extract the first word of "ar", so it can be a program name with args.
 
6572
set dummy ar; ac_word=$2
 
6573
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6575
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6577
else
 
6578
  if test -n "$ac_ct_AR"; then
 
6579
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6580
else
 
6581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6582
for as_dir in $PATH
 
6583
do
 
6584
  IFS=$as_save_IFS
 
6585
  test -z "$as_dir" && as_dir=.
 
6586
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6587
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6588
    ac_cv_prog_ac_ct_AR="ar"
 
6589
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6590
    break 2
 
6591
  fi
 
6592
done
 
6593
done
 
6594
IFS=$as_save_IFS
 
6595
 
 
6596
fi
 
6597
fi
 
6598
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6599
if test -n "$ac_ct_AR"; then
 
6600
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6601
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6602
else
 
6603
  { echo "$as_me:$LINENO: result: no" >&5
 
6604
echo "${ECHO_T}no" >&6; }
 
6605
fi
 
6606
 
 
6607
  if test "x$ac_ct_AR" = x; then
 
6608
    AR="false"
 
6609
  else
 
6610
    case $cross_compiling:$ac_tool_warned in
 
6611
yes:)
 
6612
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6613
whose name does not start with the host triplet.  If you think this
 
6614
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6615
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6616
whose name does not start with the host triplet.  If you think this
 
6617
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6618
ac_tool_warned=yes ;;
 
6619
esac
 
6620
    AR=$ac_ct_AR
 
6621
  fi
 
6622
else
 
6623
  AR="$ac_cv_prog_AR"
 
6624
fi
 
6625
 
 
6626
if test -n "$ac_tool_prefix"; then
 
6627
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6628
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6629
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6631
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6633
else
 
6634
  if test -n "$RANLIB"; then
 
6635
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6636
else
 
6637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6638
for as_dir in $PATH
 
6639
do
 
6640
  IFS=$as_save_IFS
 
6641
  test -z "$as_dir" && as_dir=.
 
6642
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6643
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6644
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6645
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6646
    break 2
 
6647
  fi
 
6648
done
 
6649
done
 
6650
IFS=$as_save_IFS
 
6651
 
 
6652
fi
 
6653
fi
 
6654
RANLIB=$ac_cv_prog_RANLIB
 
6655
if test -n "$RANLIB"; then
 
6656
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6657
echo "${ECHO_T}$RANLIB" >&6; }
 
6658
else
 
6659
  { echo "$as_me:$LINENO: result: no" >&5
 
6660
echo "${ECHO_T}no" >&6; }
 
6661
fi
 
6662
 
 
6663
 
 
6664
fi
 
6665
if test -z "$ac_cv_prog_RANLIB"; then
 
6666
  ac_ct_RANLIB=$RANLIB
 
6667
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6668
set dummy ranlib; ac_word=$2
 
6669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6671
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6673
else
 
6674
  if test -n "$ac_ct_RANLIB"; then
 
6675
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6676
else
 
6677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6678
for as_dir in $PATH
 
6679
do
 
6680
  IFS=$as_save_IFS
 
6681
  test -z "$as_dir" && as_dir=.
 
6682
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6683
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6684
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6685
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6686
    break 2
 
6687
  fi
 
6688
done
 
6689
done
 
6690
IFS=$as_save_IFS
 
6691
 
 
6692
fi
 
6693
fi
 
6694
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6695
if test -n "$ac_ct_RANLIB"; then
 
6696
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6697
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6698
else
 
6699
  { echo "$as_me:$LINENO: result: no" >&5
 
6700
echo "${ECHO_T}no" >&6; }
 
6701
fi
 
6702
 
 
6703
  if test "x$ac_ct_RANLIB" = x; then
 
6704
    RANLIB=":"
 
6705
  else
 
6706
    case $cross_compiling:$ac_tool_warned in
 
6707
yes:)
 
6708
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6709
whose name does not start with the host triplet.  If you think this
 
6710
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6711
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6712
whose name does not start with the host triplet.  If you think this
 
6713
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6714
ac_tool_warned=yes ;;
 
6715
esac
 
6716
    RANLIB=$ac_ct_RANLIB
 
6717
  fi
 
6718
else
 
6719
  RANLIB="$ac_cv_prog_RANLIB"
 
6720
fi
 
6721
 
 
6722
if test -n "$ac_tool_prefix"; then
 
6723
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6724
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6725
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6726
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6727
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6729
else
 
6730
  if test -n "$STRIP"; then
 
6731
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6732
else
 
6733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6734
for as_dir in $PATH
 
6735
do
 
6736
  IFS=$as_save_IFS
 
6737
  test -z "$as_dir" && as_dir=.
 
6738
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6739
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6740
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6741
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6742
    break 2
 
6743
  fi
 
6744
done
 
6745
done
 
6746
IFS=$as_save_IFS
 
6747
 
 
6748
fi
 
6749
fi
 
6750
STRIP=$ac_cv_prog_STRIP
 
6751
if test -n "$STRIP"; then
 
6752
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6753
echo "${ECHO_T}$STRIP" >&6; }
 
6754
else
 
6755
  { echo "$as_me:$LINENO: result: no" >&5
 
6756
echo "${ECHO_T}no" >&6; }
 
6757
fi
 
6758
 
 
6759
 
 
6760
fi
 
6761
if test -z "$ac_cv_prog_STRIP"; then
 
6762
  ac_ct_STRIP=$STRIP
 
6763
  # Extract the first word of "strip", so it can be a program name with args.
 
6764
set dummy strip; ac_word=$2
 
6765
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6767
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6769
else
 
6770
  if test -n "$ac_ct_STRIP"; then
 
6771
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6772
else
 
6773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6774
for as_dir in $PATH
 
6775
do
 
6776
  IFS=$as_save_IFS
 
6777
  test -z "$as_dir" && as_dir=.
 
6778
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6779
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6780
    ac_cv_prog_ac_ct_STRIP="strip"
 
6781
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6782
    break 2
 
6783
  fi
 
6784
done
 
6785
done
 
6786
IFS=$as_save_IFS
 
6787
 
 
6788
fi
 
6789
fi
 
6790
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6791
if test -n "$ac_ct_STRIP"; then
 
6792
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6793
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6794
else
 
6795
  { echo "$as_me:$LINENO: result: no" >&5
 
6796
echo "${ECHO_T}no" >&6; }
 
6797
fi
 
6798
 
 
6799
  if test "x$ac_ct_STRIP" = x; then
 
6800
    STRIP=":"
 
6801
  else
 
6802
    case $cross_compiling:$ac_tool_warned in
 
6803
yes:)
 
6804
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6805
whose name does not start with the host triplet.  If you think this
 
6806
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6807
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6808
whose name does not start with the host triplet.  If you think this
 
6809
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6810
ac_tool_warned=yes ;;
 
6811
esac
 
6812
    STRIP=$ac_ct_STRIP
 
6813
  fi
 
6814
else
 
6815
  STRIP="$ac_cv_prog_STRIP"
 
6816
fi
 
6817
 
 
6818
 
 
6819
old_CC="$CC"
 
6820
old_CFLAGS="$CFLAGS"
 
6821
 
 
6822
# Set sane defaults for various variables
 
6823
test -z "$AR" && AR=ar
 
6824
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6825
test -z "$AS" && AS=as
 
6826
test -z "$CC" && CC=cc
 
6827
test -z "$LTCC" && LTCC=$CC
 
6828
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6829
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6830
test -z "$LD" && LD=ld
 
6831
test -z "$LN_S" && LN_S="ln -s"
 
6832
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6833
test -z "$NM" && NM=nm
 
6834
test -z "$SED" && SED=sed
 
6835
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6836
test -z "$RANLIB" && RANLIB=:
 
6837
test -z "$STRIP" && STRIP=:
 
6838
test -z "$ac_objext" && ac_objext=o
 
6839
 
 
6840
# Determine commands to create old-style static archives.
 
6841
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6842
old_postinstall_cmds='chmod 644 $oldlib'
 
6843
old_postuninstall_cmds=
 
6844
 
 
6845
if test -n "$RANLIB"; then
 
6846
  case $host_os in
 
6847
  openbsd*)
 
6848
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6849
    ;;
 
6850
  *)
 
6851
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6852
    ;;
 
6853
  esac
 
6854
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6855
fi
 
6856
 
 
6857
for cc_temp in $compiler""; do
 
6858
  case $cc_temp in
 
6859
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6860
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6861
    \-*) ;;
 
6862
    *) break;;
 
6863
  esac
 
6864
done
 
6865
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6866
 
 
6867
 
 
6868
# Only perform the check for file, if the check method requires it
 
6869
case $deplibs_check_method in
 
6870
file_magic*)
 
6871
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6872
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6873
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6874
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6876
else
 
6877
  case $MAGIC_CMD in
 
6878
[\\/*] |  ?:[\\/]*)
 
6879
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6880
  ;;
 
6881
*)
 
6882
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6883
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6884
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6885
  for ac_dir in $ac_dummy; do
 
6886
    IFS="$lt_save_ifs"
 
6887
    test -z "$ac_dir" && ac_dir=.
 
6888
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6889
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6890
      if test -n "$file_magic_test_file"; then
 
6891
        case $deplibs_check_method in
 
6892
        "file_magic "*)
 
6893
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6894
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6895
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6896
            $EGREP "$file_magic_regex" > /dev/null; then
 
6897
            :
 
6898
          else
 
6899
            cat <<EOF 1>&2
 
6900
 
 
6901
*** Warning: the command libtool uses to detect shared libraries,
 
6902
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6903
*** The result is that libtool may fail to recognize shared libraries
 
6904
*** as such.  This will affect the creation of libtool libraries that
 
6905
*** depend on shared libraries, but programs linked with such libtool
 
6906
*** libraries will work regardless of this problem.  Nevertheless, you
 
6907
*** may want to report the problem to your system manager and/or to
 
6908
*** bug-libtool@gnu.org
 
6909
 
 
6910
EOF
 
6911
          fi ;;
 
6912
        esac
 
6913
      fi
 
6914
      break
 
6915
    fi
 
6916
  done
 
6917
  IFS="$lt_save_ifs"
 
6918
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6919
  ;;
 
6920
esac
 
6921
fi
 
6922
 
 
6923
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6924
if test -n "$MAGIC_CMD"; then
 
6925
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6926
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6927
else
 
6928
  { echo "$as_me:$LINENO: result: no" >&5
 
6929
echo "${ECHO_T}no" >&6; }
 
6930
fi
 
6931
 
 
6932
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6933
  if test -n "$ac_tool_prefix"; then
 
6934
    { echo "$as_me:$LINENO: checking for file" >&5
 
6935
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
6936
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6938
else
 
6939
  case $MAGIC_CMD in
 
6940
[\\/*] |  ?:[\\/]*)
 
6941
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6942
  ;;
 
6943
*)
 
6944
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6945
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6946
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6947
  for ac_dir in $ac_dummy; do
 
6948
    IFS="$lt_save_ifs"
 
6949
    test -z "$ac_dir" && ac_dir=.
 
6950
    if test -f $ac_dir/file; then
 
6951
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6952
      if test -n "$file_magic_test_file"; then
 
6953
        case $deplibs_check_method in
 
6954
        "file_magic "*)
 
6955
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6956
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6957
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6958
            $EGREP "$file_magic_regex" > /dev/null; then
 
6959
            :
 
6960
          else
 
6961
            cat <<EOF 1>&2
 
6962
 
 
6963
*** Warning: the command libtool uses to detect shared libraries,
 
6964
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6965
*** The result is that libtool may fail to recognize shared libraries
 
6966
*** as such.  This will affect the creation of libtool libraries that
 
6967
*** depend on shared libraries, but programs linked with such libtool
 
6968
*** libraries will work regardless of this problem.  Nevertheless, you
 
6969
*** may want to report the problem to your system manager and/or to
 
6970
*** bug-libtool@gnu.org
 
6971
 
 
6972
EOF
 
6973
          fi ;;
 
6974
        esac
 
6975
      fi
 
6976
      break
 
6977
    fi
 
6978
  done
 
6979
  IFS="$lt_save_ifs"
 
6980
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6981
  ;;
 
6982
esac
 
6983
fi
 
6984
 
 
6985
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6986
if test -n "$MAGIC_CMD"; then
 
6987
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6988
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6989
else
 
6990
  { echo "$as_me:$LINENO: result: no" >&5
 
6991
echo "${ECHO_T}no" >&6; }
 
6992
fi
 
6993
 
 
6994
  else
 
6995
    MAGIC_CMD=:
 
6996
  fi
 
6997
fi
 
6998
 
 
6999
  fi
 
7000
  ;;
 
7001
esac
 
7002
 
 
7003
enable_dlopen=no
 
7004
enable_win32_dll=no
 
7005
 
 
7006
# Check whether --enable-libtool-lock was given.
 
7007
if test "${enable_libtool_lock+set}" = set; then
 
7008
  enableval=$enable_libtool_lock; 
 
7009
fi
 
7010
 
 
7011
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7012
 
 
7013
 
 
7014
# Check whether --with-pic was given.
 
7015
if test "${with_pic+set}" = set; then
 
7016
  withval=$with_pic; pic_mode="$withval"
 
7017
else
 
7018
  pic_mode=default
 
7019
fi
 
7020
 
 
7021
test -z "$pic_mode" && pic_mode=default
 
7022
 
 
7023
# Use C for the default configuration in the libtool script
 
7024
tagname=
 
7025
lt_save_CC="$CC"
 
7026
ac_ext=c
 
7027
ac_cpp='$CPP $CPPFLAGS'
 
7028
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7029
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7030
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7031
 
 
7032
 
 
7033
# Source file extension for C test sources.
 
7034
ac_ext=c
 
7035
 
 
7036
# Object file extension for compiled C test sources.
 
7037
objext=o
 
7038
objext=$objext
 
7039
 
 
7040
# Code to be used in simple compile tests
 
7041
lt_simple_compile_test_code="int some_variable = 0;"
 
7042
 
 
7043
# Code to be used in simple link tests
 
7044
lt_simple_link_test_code='int main(){return(0);}'
 
7045
 
 
7046
 
 
7047
# If no C compiler was specified, use CC.
 
7048
LTCC=${LTCC-"$CC"}
 
7049
 
 
7050
# If no C compiler flags were specified, use CFLAGS.
 
7051
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7052
 
 
7053
# Allow CC to be a program name with arguments.
 
7054
compiler=$CC
 
7055
 
 
7056
 
 
7057
# save warnings/boilerplate of simple test code
 
7058
ac_outfile=conftest.$ac_objext
 
7059
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7060
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7061
_lt_compiler_boilerplate=`cat conftest.err`
 
7062
$rm conftest*
 
7063
 
 
7064
ac_outfile=conftest.$ac_objext
 
7065
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7066
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7067
_lt_linker_boilerplate=`cat conftest.err`
 
7068
$rm conftest*
 
7069
 
 
7070
 
 
7071
 
 
7072
lt_prog_compiler_no_builtin_flag=
 
7073
 
 
7074
if test "$GCC" = yes; then
 
7075
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7076
 
 
7077
  
 
7078
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7079
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7080
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7082
else
 
7083
  lt_cv_prog_compiler_rtti_exceptions=no
 
7084
  ac_outfile=conftest.$ac_objext
 
7085
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7086
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7087
   # Insert the option either (1) after the last *FLAGS variable, or
 
7088
   # (2) before a word containing "conftest.", or (3) at the end.
 
7089
   # Note that $ac_compile itself does not contain backslashes and begins
 
7090
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7091
   # The option is referenced via a variable to avoid confusing sed.
 
7092
   lt_compile=`echo "$ac_compile" | $SED \
 
7093
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7094
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7095
   -e 's:$: $lt_compiler_flag:'`
 
7096
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
7097
   (eval "$lt_compile" 2>conftest.err)
 
7098
   ac_status=$?
 
7099
   cat conftest.err >&5
 
7100
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
7101
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7102
     # The compiler can only warn and ignore the option if not recognized
 
7103
     # So say no if there are warnings other than the usual output.
 
7104
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7105
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7106
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7107
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7108
     fi
 
7109
   fi
 
7110
   $rm conftest*
 
7111
 
 
7112
fi
 
7113
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7114
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7115
 
 
7116
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7117
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7118
else
 
7119
    :
 
7120
fi
 
7121
 
 
7122
fi
 
7123
 
 
7124
lt_prog_compiler_wl=
 
7125
lt_prog_compiler_pic=
 
7126
lt_prog_compiler_static=
 
7127
 
 
7128
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7129
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7130
 
 
7131
  if test "$GCC" = yes; then
 
7132
    lt_prog_compiler_wl='-Wl,'
 
7133
    lt_prog_compiler_static='-static'
 
7134
 
 
7135
    case $host_os in
 
7136
      aix*)
 
7137
      # All AIX code is PIC.
 
7138
      if test "$host_cpu" = ia64; then
 
7139
        # AIX 5 now supports IA64 processor
 
7140
        lt_prog_compiler_static='-Bstatic'
 
7141
      fi
 
7142
      ;;
 
7143
 
 
7144
    amigaos*)
 
7145
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7146
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7147
      # like `-m68040'.
 
7148
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7149
      ;;
 
7150
 
 
7151
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7152
      # PIC is the default for these OSes.
 
7153
      ;;
 
7154
 
 
7155
    mingw* | cygwin* | pw32* | os2*)
 
7156
      # This hack is so that the source file can tell whether it is being
 
7157
      # built for inclusion in a dll (and should export symbols for example).
 
7158
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7159
      # (--disable-auto-import) libraries
 
7160
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7161
      ;;
 
7162
 
 
7163
    darwin* | rhapsody*)
 
7164
      # PIC is the default on this platform
 
7165
      # Common symbols not allowed in MH_DYLIB files
 
7166
      lt_prog_compiler_pic='-fno-common'
 
7167
      ;;
 
7168
 
 
7169
    interix[3-9]*)
 
7170
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7171
      # Instead, we relocate shared libraries at runtime.
 
7172
      ;;
 
7173
 
 
7174
    msdosdjgpp*)
 
7175
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7176
      # on systems that don't support them.
 
7177
      lt_prog_compiler_can_build_shared=no
 
7178
      enable_shared=no
 
7179
      ;;
 
7180
 
 
7181
    sysv4*MP*)
 
7182
      if test -d /usr/nec; then
 
7183
        lt_prog_compiler_pic=-Kconform_pic
 
7184
      fi
 
7185
      ;;
 
7186
 
 
7187
    hpux*)
 
7188
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7189
      # not for PA HP-UX.
 
7190
      case $host_cpu in
 
7191
      hppa*64*|ia64*)
 
7192
        # +Z the default
 
7193
        ;;
 
7194
      *)
 
7195
        lt_prog_compiler_pic='-fPIC'
 
7196
        ;;
 
7197
      esac
 
7198
      ;;
 
7199
 
 
7200
    *)
 
7201
      lt_prog_compiler_pic='-fPIC'
 
7202
      ;;
 
7203
    esac
 
7204
  else
 
7205
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7206
    case $host_os in
 
7207
    aix*)
 
7208
      lt_prog_compiler_wl='-Wl,'
 
7209
      if test "$host_cpu" = ia64; then
 
7210
        # AIX 5 now supports IA64 processor
 
7211
        lt_prog_compiler_static='-Bstatic'
 
7212
      else
 
7213
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7214
      fi
 
7215
      ;;
 
7216
      darwin*)
 
7217
        # PIC is the default on this platform
 
7218
        # Common symbols not allowed in MH_DYLIB files
 
7219
       case $cc_basename in
 
7220
         xlc*)
 
7221
         lt_prog_compiler_pic='-qnocommon'
 
7222
         lt_prog_compiler_wl='-Wl,'
 
7223
         ;;
 
7224
       esac
 
7225
       ;;
 
7226
 
 
7227
    mingw* | cygwin* | pw32* | os2*)
 
7228
      # This hack is so that the source file can tell whether it is being
 
7229
      # built for inclusion in a dll (and should export symbols for example).
 
7230
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7231
      ;;
 
7232
 
 
7233
    hpux9* | hpux10* | hpux11*)
 
7234
      lt_prog_compiler_wl='-Wl,'
 
7235
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7236
      # not for PA HP-UX.
 
7237
      case $host_cpu in
 
7238
      hppa*64*|ia64*)
 
7239
        # +Z the default
 
7240
        ;;
 
7241
      *)
 
7242
        lt_prog_compiler_pic='+Z'
 
7243
        ;;
 
7244
      esac
 
7245
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7246
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7247
      ;;
 
7248
 
 
7249
    irix5* | irix6* | nonstopux*)
 
7250
      lt_prog_compiler_wl='-Wl,'
 
7251
      # PIC (with -KPIC) is the default.
 
7252
      lt_prog_compiler_static='-non_shared'
 
7253
      ;;
 
7254
 
 
7255
    newsos6)
 
7256
      lt_prog_compiler_pic='-KPIC'
 
7257
      lt_prog_compiler_static='-Bstatic'
 
7258
      ;;
 
7259
 
 
7260
    linux* | k*bsd*-gnu)
 
7261
      case $cc_basename in
 
7262
      icc* | ecc*)
 
7263
        lt_prog_compiler_wl='-Wl,'
 
7264
        lt_prog_compiler_pic='-KPIC'
 
7265
        lt_prog_compiler_static='-static'
 
7266
        ;;
 
7267
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7268
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7269
        # which looks to be a dead project)
 
7270
        lt_prog_compiler_wl='-Wl,'
 
7271
        lt_prog_compiler_pic='-fpic'
 
7272
        lt_prog_compiler_static='-Bstatic'
 
7273
        ;;
 
7274
      ccc*)
 
7275
        lt_prog_compiler_wl='-Wl,'
 
7276
        # All Alpha code is PIC.
 
7277
        lt_prog_compiler_static='-non_shared'
 
7278
        ;;
 
7279
      *)
 
7280
        case `$CC -V 2>&1 | sed 5q` in
 
7281
        *Sun\ C*)
 
7282
          # Sun C 5.9
 
7283
          lt_prog_compiler_pic='-KPIC'
 
7284
          lt_prog_compiler_static='-Bstatic'
 
7285
          lt_prog_compiler_wl='-Wl,'
 
7286
          ;;
 
7287
        *Sun\ F*)
 
7288
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7289
          lt_prog_compiler_pic='-KPIC'
 
7290
          lt_prog_compiler_static='-Bstatic'
 
7291
          lt_prog_compiler_wl=''
 
7292
          ;;
 
7293
        esac
 
7294
        ;;
 
7295
      esac
 
7296
      ;;
 
7297
 
 
7298
    osf3* | osf4* | osf5*)
 
7299
      lt_prog_compiler_wl='-Wl,'
 
7300
      # All OSF/1 code is PIC.
 
7301
      lt_prog_compiler_static='-non_shared'
 
7302
      ;;
 
7303
 
 
7304
    rdos*)
 
7305
      lt_prog_compiler_static='-non_shared'
 
7306
      ;;
 
7307
 
 
7308
    solaris*)
 
7309
      lt_prog_compiler_pic='-KPIC'
 
7310
      lt_prog_compiler_static='-Bstatic'
 
7311
      case $cc_basename in
 
7312
      f77* | f90* | f95*)
 
7313
        lt_prog_compiler_wl='-Qoption ld ';;
 
7314
      *)
 
7315
        lt_prog_compiler_wl='-Wl,';;
 
7316
      esac
 
7317
      ;;
 
7318
 
 
7319
    sunos4*)
 
7320
      lt_prog_compiler_wl='-Qoption ld '
 
7321
      lt_prog_compiler_pic='-PIC'
 
7322
      lt_prog_compiler_static='-Bstatic'
 
7323
      ;;
 
7324
 
 
7325
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7326
      lt_prog_compiler_wl='-Wl,'
 
7327
      lt_prog_compiler_pic='-KPIC'
 
7328
      lt_prog_compiler_static='-Bstatic'
 
7329
      ;;
 
7330
 
 
7331
    sysv4*MP*)
 
7332
      if test -d /usr/nec ;then
 
7333
        lt_prog_compiler_pic='-Kconform_pic'
 
7334
        lt_prog_compiler_static='-Bstatic'
 
7335
      fi
 
7336
      ;;
 
7337
 
 
7338
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7339
      lt_prog_compiler_wl='-Wl,'
 
7340
      lt_prog_compiler_pic='-KPIC'
 
7341
      lt_prog_compiler_static='-Bstatic'
 
7342
      ;;
 
7343
 
 
7344
    unicos*)
 
7345
      lt_prog_compiler_wl='-Wl,'
 
7346
      lt_prog_compiler_can_build_shared=no
 
7347
      ;;
 
7348
 
 
7349
    uts4*)
 
7350
      lt_prog_compiler_pic='-pic'
 
7351
      lt_prog_compiler_static='-Bstatic'
 
7352
      ;;
 
7353
 
 
7354
    *)
 
7355
      lt_prog_compiler_can_build_shared=no
 
7356
      ;;
 
7357
    esac
 
7358
  fi
 
7359
 
 
7360
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7361
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7362
 
 
7363
#
 
7364
# Check to make sure the PIC flag actually works.
 
7365
#
 
7366
if test -n "$lt_prog_compiler_pic"; then
 
7367
  
 
7368
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7369
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7370
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7372
else
 
7373
  lt_prog_compiler_pic_works=no
 
7374
  ac_outfile=conftest.$ac_objext
 
7375
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7376
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7377
   # Insert the option either (1) after the last *FLAGS variable, or
 
7378
   # (2) before a word containing "conftest.", or (3) at the end.
 
7379
   # Note that $ac_compile itself does not contain backslashes and begins
 
7380
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7381
   # The option is referenced via a variable to avoid confusing sed.
 
7382
   lt_compile=`echo "$ac_compile" | $SED \
 
7383
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7384
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7385
   -e 's:$: $lt_compiler_flag:'`
 
7386
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
7387
   (eval "$lt_compile" 2>conftest.err)
 
7388
   ac_status=$?
 
7389
   cat conftest.err >&5
 
7390
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
7391
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7392
     # The compiler can only warn and ignore the option if not recognized
 
7393
     # So say no if there are warnings other than the usual output.
 
7394
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7395
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7396
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7397
       lt_prog_compiler_pic_works=yes
 
7398
     fi
 
7399
   fi
 
7400
   $rm conftest*
 
7401
 
 
7402
fi
 
7403
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7404
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7405
 
 
7406
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7407
    case $lt_prog_compiler_pic in
 
7408
     "" | " "*) ;;
 
7409
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7410
     esac
 
7411
else
 
7412
    lt_prog_compiler_pic=
 
7413
     lt_prog_compiler_can_build_shared=no
 
7414
fi
 
7415
 
 
7416
fi
 
7417
case $host_os in
 
7418
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7419
  *djgpp*)
 
7420
    lt_prog_compiler_pic=
 
7421
    ;;
 
7422
  *)
 
7423
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7424
    ;;
 
7425
esac
 
7426
 
 
7427
#
 
7428
# Check to make sure the static flag actually works.
 
7429
#
 
7430
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7431
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7432
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7433
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7435
else
 
7436
  lt_prog_compiler_static_works=no
 
7437
   save_LDFLAGS="$LDFLAGS"
 
7438
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7439
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7440
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7441
     # The linker can only warn and ignore the option if not recognized
 
7442
     # So say no if there are warnings
 
7443
     if test -s conftest.err; then
 
7444
       # Append any errors to the config.log.
 
7445
       cat conftest.err 1>&5
 
7446
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7447
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7448
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7449
         lt_prog_compiler_static_works=yes
 
7450
       fi
 
7451
     else
 
7452
       lt_prog_compiler_static_works=yes
 
7453
     fi
 
7454
   fi
 
7455
   $rm conftest*
 
7456
   LDFLAGS="$save_LDFLAGS"
 
7457
 
 
7458
fi
 
7459
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7460
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7461
 
 
7462
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7463
    :
 
7464
else
 
7465
    lt_prog_compiler_static=
 
7466
fi
 
7467
 
 
7468
 
 
7469
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7470
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7471
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7473
else
 
7474
  lt_cv_prog_compiler_c_o=no
 
7475
   $rm -r conftest 2>/dev/null
 
7476
   mkdir conftest
 
7477
   cd conftest
 
7478
   mkdir out
 
7479
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7480
 
 
7481
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7482
   # Insert the option either (1) after the last *FLAGS variable, or
 
7483
   # (2) before a word containing "conftest.", or (3) at the end.
 
7484
   # Note that $ac_compile itself does not contain backslashes and begins
 
7485
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7486
   lt_compile=`echo "$ac_compile" | $SED \
 
7487
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7488
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7489
   -e 's:$: $lt_compiler_flag:'`
 
7490
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
7491
   (eval "$lt_compile" 2>out/conftest.err)
 
7492
   ac_status=$?
 
7493
   cat out/conftest.err >&5
 
7494
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
7495
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7496
   then
 
7497
     # The compiler can only warn and ignore the option if not recognized
 
7498
     # So say no if there are warnings
 
7499
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7500
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7501
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7502
       lt_cv_prog_compiler_c_o=yes
 
7503
     fi
 
7504
   fi
 
7505
   chmod u+w . 2>&5
 
7506
   $rm conftest*
 
7507
   # SGI C++ compiler will create directory out/ii_files/ for
 
7508
   # template instantiation
 
7509
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7510
   $rm out/* && rmdir out
 
7511
   cd ..
 
7512
   rmdir conftest
 
7513
   $rm conftest*
 
7514
 
 
7515
fi
 
7516
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7517
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7518
 
 
7519
 
 
7520
hard_links="nottested"
 
7521
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7522
  # do not overwrite the value of need_locks provided by the user
 
7523
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7524
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7525
  hard_links=yes
 
7526
  $rm conftest*
 
7527
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7528
  touch conftest.a
 
7529
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7530
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7531
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7532
echo "${ECHO_T}$hard_links" >&6; }
 
7533
  if test "$hard_links" = no; then
 
7534
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7535
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7536
    need_locks=warn
 
7537
  fi
 
7538
else
 
7539
  need_locks=no
 
7540
fi
 
7541
 
 
7542
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7543
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7544
 
 
7545
  runpath_var=
 
7546
  allow_undefined_flag=
 
7547
  enable_shared_with_static_runtimes=no
 
7548
  archive_cmds=
 
7549
  archive_expsym_cmds=
 
7550
  old_archive_From_new_cmds=
 
7551
  old_archive_from_expsyms_cmds=
 
7552
  export_dynamic_flag_spec=
 
7553
  whole_archive_flag_spec=
 
7554
  thread_safe_flag_spec=
 
7555
  hardcode_libdir_flag_spec=
 
7556
  hardcode_libdir_flag_spec_ld=
 
7557
  hardcode_libdir_separator=
 
7558
  hardcode_direct=no
 
7559
  hardcode_minus_L=no
 
7560
  hardcode_shlibpath_var=unsupported
 
7561
  link_all_deplibs=unknown
 
7562
  hardcode_automatic=no
 
7563
  module_cmds=
 
7564
  module_expsym_cmds=
 
7565
  always_export_symbols=no
 
7566
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7567
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7568
  # included in the symbol list
 
7569
  include_expsyms=
 
7570
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7571
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7572
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7573
  # as well as any symbol that contains `d'.
 
7574
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7575
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7576
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7577
  # the symbol is explicitly referenced.  Since portable code cannot
 
7578
  # rely on this symbol name, it's probably fine to never include it in
 
7579
  # preloaded symbol tables.
 
7580
  extract_expsyms_cmds=
 
7581
  # Just being paranoid about ensuring that cc_basename is set.
 
7582
  for cc_temp in $compiler""; do
 
7583
  case $cc_temp in
 
7584
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7585
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7586
    \-*) ;;
 
7587
    *) break;;
 
7588
  esac
 
7589
done
 
7590
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7591
 
 
7592
  case $host_os in
 
7593
  cygwin* | mingw* | pw32*)
 
7594
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7595
    # When not using gcc, we currently assume that we are using
 
7596
    # Microsoft Visual C++.
 
7597
    if test "$GCC" != yes; then
 
7598
      with_gnu_ld=no
 
7599
    fi
 
7600
    ;;
 
7601
  interix*)
 
7602
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7603
    with_gnu_ld=yes
 
7604
    ;;
 
7605
  openbsd*)
 
7606
    with_gnu_ld=no
 
7607
    ;;
 
7608
  esac
 
7609
 
 
7610
  ld_shlibs=yes
 
7611
  if test "$with_gnu_ld" = yes; then
 
7612
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7613
    wlarc='${wl}'
 
7614
 
 
7615
    # Set some defaults for GNU ld with shared library support. These
 
7616
    # are reset later if shared libraries are not supported. Putting them
 
7617
    # here allows them to be overridden if necessary.
 
7618
    runpath_var=LD_RUN_PATH
 
7619
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7620
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7621
    # ancient GNU ld didn't support --whole-archive et. al.
 
7622
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7623
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7624
      else
 
7625
        whole_archive_flag_spec=
 
7626
    fi
 
7627
    supports_anon_versioning=no
 
7628
    case `$LD -v 2>/dev/null` in
 
7629
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7630
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7631
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7632
      *\ 2.11.*) ;; # other 2.11 versions
 
7633
      *) supports_anon_versioning=yes ;;
 
7634
    esac
 
7635
 
 
7636
    # See if GNU ld supports shared libraries.
 
7637
    case $host_os in
 
7638
    aix3* | aix4* | aix5*)
 
7639
      # On AIX/PPC, the GNU linker is very broken
 
7640
      if test "$host_cpu" != ia64; then
 
7641
        ld_shlibs=no
 
7642
        cat <<EOF 1>&2
 
7643
 
 
7644
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7645
*** to be unable to reliably create shared libraries on AIX.
 
7646
*** Therefore, libtool is disabling shared libraries support.  If you
 
7647
*** really care for shared libraries, you may want to modify your PATH
 
7648
*** so that a non-GNU linker is found, and then restart.
 
7649
 
 
7650
EOF
 
7651
      fi
 
7652
      ;;
 
7653
 
 
7654
    amigaos*)
 
7655
      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)'
 
7656
      hardcode_libdir_flag_spec='-L$libdir'
 
7657
      hardcode_minus_L=yes
 
7658
 
 
7659
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7660
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7661
      # to version 4, is to share data among multiple programs linked
 
7662
      # with the same dynamic library.  Since this doesn't match the
 
7663
      # behavior of shared libraries on other platforms, we can't use
 
7664
      # them.
 
7665
      ld_shlibs=no
 
7666
      ;;
 
7667
 
 
7668
    beos*)
 
7669
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7670
        allow_undefined_flag=unsupported
 
7671
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7672
        # support --undefined.  This deserves some investigation.  FIXME
 
7673
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7674
      else
 
7675
        ld_shlibs=no
 
7676
      fi
 
7677
      ;;
 
7678
 
 
7679
    cygwin* | mingw* | pw32*)
 
7680
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7681
      # as there is no search path for DLLs.
 
7682
      hardcode_libdir_flag_spec='-L$libdir'
 
7683
      allow_undefined_flag=unsupported
 
7684
      always_export_symbols=no
 
7685
      enable_shared_with_static_runtimes=yes
 
7686
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7687
 
 
7688
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7689
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7690
        # If the export-symbols file already is a .def file (1st line
 
7691
        # is EXPORTS), use it as is; otherwise, prepend...
 
7692
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7693
          cp $export_symbols $output_objdir/$soname.def;
 
7694
        else
 
7695
          echo EXPORTS > $output_objdir/$soname.def;
 
7696
          cat $export_symbols >> $output_objdir/$soname.def;
 
7697
        fi~
 
7698
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7699
      else
 
7700
        ld_shlibs=no
 
7701
      fi
 
7702
      ;;
 
7703
 
 
7704
    interix[3-9]*)
 
7705
      hardcode_direct=no
 
7706
      hardcode_shlibpath_var=no
 
7707
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7708
      export_dynamic_flag_spec='${wl}-E'
 
7709
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7710
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7711
      # default) and relocated if they conflict, which is a slow very memory
 
7712
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7713
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7714
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7715
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7716
      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'
 
7717
      ;;
 
7718
 
 
7719
    gnu* | linux* | k*bsd*-gnu)
 
7720
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7721
        tmp_addflag=
 
7722
        case $cc_basename,$host_cpu in
 
7723
        pgcc*)                          # Portland Group C compiler
 
7724
          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'
 
7725
          tmp_addflag=' $pic_flag'
 
7726
          ;;
 
7727
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7728
          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'
 
7729
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7730
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7731
          tmp_addflag=' -i_dynamic' ;;
 
7732
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7733
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7734
        ifc* | ifort*)                  # Intel Fortran compiler
 
7735
          tmp_addflag=' -nofor_main' ;;
 
7736
        esac
 
7737
        case `$CC -V 2>&1 | sed 5q` in
 
7738
        *Sun\ C*)                       # Sun C 5.9
 
7739
          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'
 
7740
          tmp_sharedflag='-G' ;;
 
7741
        *Sun\ F*)                       # Sun Fortran 8.3
 
7742
          tmp_sharedflag='-G' ;;
 
7743
        *)
 
7744
          tmp_sharedflag='-shared' ;;
 
7745
        esac
 
7746
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7747
 
 
7748
        if test $supports_anon_versioning = yes; then
 
7749
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7750
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7751
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7752
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7753
        fi
 
7754
        link_all_deplibs=no
 
7755
      else
 
7756
        ld_shlibs=no
 
7757
      fi
 
7758
      ;;
 
7759
 
 
7760
    netbsd* | netbsdelf*-gnu)
 
7761
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7762
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7763
        wlarc=
 
7764
      else
 
7765
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7766
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7767
      fi
 
7768
      ;;
 
7769
 
 
7770
    solaris*)
 
7771
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7772
        ld_shlibs=no
 
7773
        cat <<EOF 1>&2
 
7774
 
 
7775
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7776
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7777
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7778
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7779
*** your PATH or compiler configuration so that the native linker is
 
7780
*** used, and then restart.
 
7781
 
 
7782
EOF
 
7783
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7784
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7785
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7786
      else
 
7787
        ld_shlibs=no
 
7788
      fi
 
7789
      ;;
 
7790
 
 
7791
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7792
      case `$LD -v 2>&1` in
 
7793
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7794
        ld_shlibs=no
 
7795
        cat <<_LT_EOF 1>&2
 
7796
 
 
7797
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7798
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7799
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7800
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7801
*** your PATH or compiler configuration so that the native linker is
 
7802
*** used, and then restart.
 
7803
 
 
7804
_LT_EOF
 
7805
        ;;
 
7806
        *)
 
7807
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7808
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7809
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7810
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7811
          else
 
7812
            ld_shlibs=no
 
7813
          fi
 
7814
        ;;
 
7815
      esac
 
7816
      ;;
 
7817
 
 
7818
    sunos4*)
 
7819
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7820
      wlarc=
 
7821
      hardcode_direct=yes
 
7822
      hardcode_shlibpath_var=no
 
7823
      ;;
 
7824
 
 
7825
    *)
 
7826
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7827
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7828
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7829
      else
 
7830
        ld_shlibs=no
 
7831
      fi
 
7832
      ;;
 
7833
    esac
 
7834
 
 
7835
    if test "$ld_shlibs" = no; then
 
7836
      runpath_var=
 
7837
      hardcode_libdir_flag_spec=
 
7838
      export_dynamic_flag_spec=
 
7839
      whole_archive_flag_spec=
 
7840
    fi
 
7841
  else
 
7842
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7843
    case $host_os in
 
7844
    aix3*)
 
7845
      allow_undefined_flag=unsupported
 
7846
      always_export_symbols=yes
 
7847
      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'
 
7848
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7849
      # are no directories specified by -L.
 
7850
      hardcode_minus_L=yes
 
7851
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7852
        # Neither direct hardcoding nor static linking is supported with a
 
7853
        # broken collect2.
 
7854
        hardcode_direct=unsupported
 
7855
      fi
 
7856
      ;;
 
7857
 
 
7858
    aix4* | aix5*)
 
7859
      if test "$host_cpu" = ia64; then
 
7860
        # On IA64, the linker does run time linking by default, so we don't
 
7861
        # have to do anything special.
 
7862
        aix_use_runtimelinking=no
 
7863
        exp_sym_flag='-Bexport'
 
7864
        no_entry_flag=""
 
7865
      else
 
7866
        # If we're using GNU nm, then we don't want the "-C" option.
 
7867
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7868
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7869
          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'
 
7870
        else
 
7871
          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'
 
7872
        fi
 
7873
        aix_use_runtimelinking=no
 
7874
 
 
7875
        # Test if we are trying to use run time linking or normal
 
7876
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7877
        # need to do runtime linking.
 
7878
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7879
          for ld_flag in $LDFLAGS; do
 
7880
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7881
            aix_use_runtimelinking=yes
 
7882
            break
 
7883
          fi
 
7884
          done
 
7885
          ;;
 
7886
        esac
 
7887
 
 
7888
        exp_sym_flag='-bexport'
 
7889
        no_entry_flag='-bnoentry'
 
7890
      fi
 
7891
 
 
7892
      # When large executables or shared objects are built, AIX ld can
 
7893
      # have problems creating the table of contents.  If linking a library
 
7894
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7895
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7896
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7897
 
 
7898
      archive_cmds=''
 
7899
      hardcode_direct=yes
 
7900
      hardcode_libdir_separator=':'
 
7901
      link_all_deplibs=yes
 
7902
 
 
7903
      if test "$GCC" = yes; then
 
7904
        case $host_os in aix4.[012]|aix4.[012].*)
 
7905
        # We only want to do this on AIX 4.2 and lower, the check
 
7906
        # below for broken collect2 doesn't work under 4.3+
 
7907
          collect2name=`${CC} -print-prog-name=collect2`
 
7908
          if test -f "$collect2name" && \
 
7909
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7910
          then
 
7911
          # We have reworked collect2
 
7912
          :
 
7913
          else
 
7914
          # We have old collect2
 
7915
          hardcode_direct=unsupported
 
7916
          # It fails to find uninstalled libraries when the uninstalled
 
7917
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7918
          # to unsupported forces relinking
 
7919
          hardcode_minus_L=yes
 
7920
          hardcode_libdir_flag_spec='-L$libdir'
 
7921
          hardcode_libdir_separator=
 
7922
          fi
 
7923
          ;;
 
7924
        esac
 
7925
        shared_flag='-shared'
 
7926
        if test "$aix_use_runtimelinking" = yes; then
 
7927
          shared_flag="$shared_flag "'${wl}-G'
 
7928
        fi
 
7929
      else
 
7930
        # not using gcc
 
7931
        if test "$host_cpu" = ia64; then
 
7932
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7933
        # chokes on -Wl,-G. The following line is correct:
 
7934
          shared_flag='-G'
 
7935
        else
 
7936
          if test "$aix_use_runtimelinking" = yes; then
 
7937
            shared_flag='${wl}-G'
 
7938
          else
 
7939
            shared_flag='${wl}-bM:SRE'
 
7940
          fi
 
7941
        fi
 
7942
      fi
 
7943
 
 
7944
      # It seems that -bexpall does not export symbols beginning with
 
7945
      # underscore (_), so it is better to generate a list of symbols to export.
 
7946
      always_export_symbols=yes
 
7947
      if test "$aix_use_runtimelinking" = yes; then
 
7948
        # Warning - without using the other runtime loading flags (-brtl),
 
7949
        # -berok will link without error, but may produce a broken library.
 
7950
        allow_undefined_flag='-berok'
 
7951
       # Determine the default libpath from the value encoded in an empty executable.
 
7952
       cat >conftest.$ac_ext <<_ACEOF
 
7953
/* confdefs.h.  */
 
7954
_ACEOF
 
7955
cat confdefs.h >>conftest.$ac_ext
 
7956
cat >>conftest.$ac_ext <<_ACEOF
 
7957
/* end confdefs.h.  */
 
7958
 
 
7959
int
 
7960
main ()
 
7961
{
 
7962
 
 
7963
  ;
 
7964
  return 0;
 
7965
}
 
7966
_ACEOF
 
7967
rm -f conftest.$ac_objext conftest$ac_exeext
 
7968
if { (ac_try="$ac_link"
 
7969
case "(($ac_try" in
 
7970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7971
  *) ac_try_echo=$ac_try;;
 
7972
esac
 
7973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7974
  (eval "$ac_link") 2>conftest.er1
 
7975
  ac_status=$?
 
7976
  grep -v '^ *+' conftest.er1 >conftest.err
 
7977
  rm -f conftest.er1
 
7978
  cat conftest.err >&5
 
7979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7980
  (exit $ac_status); } && {
 
7981
         test -z "$ac_c_werror_flag" ||
 
7982
         test ! -s conftest.err
 
7983
       } && test -s conftest$ac_exeext &&
 
7984
       $as_test_x conftest$ac_exeext; then
 
7985
  
 
7986
lt_aix_libpath_sed='
 
7987
    /Import File Strings/,/^$/ {
 
7988
        /^0/ {
 
7989
            s/^0  *\(.*\)$/\1/
 
7990
            p
 
7991
        }
 
7992
    }'
 
7993
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
7994
# Check for a 64-bit object if we didn't find anything.
 
7995
if test -z "$aix_libpath"; then
 
7996
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
7997
fi
 
7998
else
 
7999
  echo "$as_me: failed program was:" >&5
 
8000
sed 's/^/| /' conftest.$ac_ext >&5
 
8001
 
 
8002
        
 
8003
fi
 
8004
 
 
8005
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8006
      conftest$ac_exeext conftest.$ac_ext
 
8007
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8008
 
 
8009
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8010
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8011
       else
 
8012
        if test "$host_cpu" = ia64; then
 
8013
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8014
          allow_undefined_flag="-z nodefs"
 
8015
          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"
 
8016
        else
 
8017
         # Determine the default libpath from the value encoded in an empty executable.
 
8018
         cat >conftest.$ac_ext <<_ACEOF
 
8019
/* confdefs.h.  */
 
8020
_ACEOF
 
8021
cat confdefs.h >>conftest.$ac_ext
 
8022
cat >>conftest.$ac_ext <<_ACEOF
 
8023
/* end confdefs.h.  */
 
8024
 
 
8025
int
 
8026
main ()
 
8027
{
 
8028
 
 
8029
  ;
 
8030
  return 0;
 
8031
}
 
8032
_ACEOF
 
8033
rm -f conftest.$ac_objext conftest$ac_exeext
 
8034
if { (ac_try="$ac_link"
 
8035
case "(($ac_try" in
 
8036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8037
  *) ac_try_echo=$ac_try;;
 
8038
esac
 
8039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8040
  (eval "$ac_link") 2>conftest.er1
 
8041
  ac_status=$?
 
8042
  grep -v '^ *+' conftest.er1 >conftest.err
 
8043
  rm -f conftest.er1
 
8044
  cat conftest.err >&5
 
8045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8046
  (exit $ac_status); } && {
 
8047
         test -z "$ac_c_werror_flag" ||
 
8048
         test ! -s conftest.err
 
8049
       } && test -s conftest$ac_exeext &&
 
8050
       $as_test_x conftest$ac_exeext; then
 
8051
  
 
8052
lt_aix_libpath_sed='
 
8053
    /Import File Strings/,/^$/ {
 
8054
        /^0/ {
 
8055
            s/^0  *\(.*\)$/\1/
 
8056
            p
 
8057
        }
 
8058
    }'
 
8059
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8060
# Check for a 64-bit object if we didn't find anything.
 
8061
if test -z "$aix_libpath"; then
 
8062
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8063
fi
 
8064
else
 
8065
  echo "$as_me: failed program was:" >&5
 
8066
sed 's/^/| /' conftest.$ac_ext >&5
 
8067
 
 
8068
        
 
8069
fi
 
8070
 
 
8071
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8072
      conftest$ac_exeext conftest.$ac_ext
 
8073
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8074
 
 
8075
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8076
          # Warning - without using the other run time loading flags,
 
8077
          # -berok will link without error, but may produce a broken library.
 
8078
          no_undefined_flag=' ${wl}-bernotok'
 
8079
          allow_undefined_flag=' ${wl}-berok'
 
8080
          # Exported symbols can be pulled into shared objects from archives
 
8081
          whole_archive_flag_spec='$convenience'
 
8082
          archive_cmds_need_lc=yes
 
8083
          # This is similar to how AIX traditionally builds its shared libraries.
 
8084
          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'
 
8085
        fi
 
8086
      fi
 
8087
      ;;
 
8088
 
 
8089
    amigaos*)
 
8090
      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)'
 
8091
      hardcode_libdir_flag_spec='-L$libdir'
 
8092
      hardcode_minus_L=yes
 
8093
      # see comment about different semantics on the GNU ld section
 
8094
      ld_shlibs=no
 
8095
      ;;
 
8096
 
 
8097
    bsdi[45]*)
 
8098
      export_dynamic_flag_spec=-rdynamic
 
8099
      ;;
 
8100
 
 
8101
    cygwin* | mingw* | pw32*)
 
8102
      # When not using gcc, we currently assume that we are using
 
8103
      # Microsoft Visual C++.
 
8104
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8105
      # no search path for DLLs.
 
8106
      hardcode_libdir_flag_spec=' '
 
8107
      allow_undefined_flag=unsupported
 
8108
      # Tell ltmain to make .lib files, not .a files.
 
8109
      libext=lib
 
8110
      # Tell ltmain to make .dll files, not .so files.
 
8111
      shrext_cmds=".dll"
 
8112
      # FIXME: Setting linknames here is a bad hack.
 
8113
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8114
      # The linker will automatically build a .lib file if we build a DLL.
 
8115
      old_archive_From_new_cmds='true'
 
8116
      # FIXME: Should let the user specify the lib program.
 
8117
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8118
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8119
      enable_shared_with_static_runtimes=yes
 
8120
      ;;
 
8121
 
 
8122
    darwin* | rhapsody*)
 
8123
      case $host_os in
 
8124
        rhapsody* | darwin1.[012])
 
8125
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8126
         ;;
 
8127
       *) # Darwin 1.3 on
 
8128
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8129
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8130
         else
 
8131
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8132
             10.[012])
 
8133
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8134
               ;;
 
8135
             10.*)
 
8136
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8137
               ;;
 
8138
           esac
 
8139
         fi
 
8140
         ;;
 
8141
      esac
 
8142
      archive_cmds_need_lc=no
 
8143
      hardcode_direct=no
 
8144
      hardcode_automatic=yes
 
8145
      hardcode_shlibpath_var=unsupported
 
8146
      whole_archive_flag_spec=''
 
8147
      link_all_deplibs=yes
 
8148
    if test "$GCC" = yes ; then
 
8149
        output_verbose_link_cmd='echo'
 
8150
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8151
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8152
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8153
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8154
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8155
    else
 
8156
      case $cc_basename in
 
8157
        xlc*)
 
8158
         output_verbose_link_cmd='echo'
 
8159
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8160
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8161
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8162
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8163
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8164
          ;;
 
8165
       *)
 
8166
         ld_shlibs=no
 
8167
          ;;
 
8168
      esac
 
8169
    fi
 
8170
      ;;
 
8171
 
 
8172
    dgux*)
 
8173
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8174
      hardcode_libdir_flag_spec='-L$libdir'
 
8175
      hardcode_shlibpath_var=no
 
8176
      ;;
 
8177
 
 
8178
    freebsd1*)
 
8179
      ld_shlibs=no
 
8180
      ;;
 
8181
 
 
8182
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8183
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8184
    # does not break anything, and helps significantly (at the cost of a little
 
8185
    # extra space).
 
8186
    freebsd2.2*)
 
8187
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8188
      hardcode_libdir_flag_spec='-R$libdir'
 
8189
      hardcode_direct=yes
 
8190
      hardcode_shlibpath_var=no
 
8191
      ;;
 
8192
 
 
8193
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8194
    freebsd2*)
 
8195
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8196
      hardcode_direct=yes
 
8197
      hardcode_minus_L=yes
 
8198
      hardcode_shlibpath_var=no
 
8199
      ;;
 
8200
 
 
8201
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8202
    freebsd* | dragonfly*)
 
8203
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8204
      hardcode_libdir_flag_spec='-R$libdir'
 
8205
      hardcode_direct=yes
 
8206
      hardcode_shlibpath_var=no
 
8207
      ;;
 
8208
 
 
8209
    hpux9*)
 
8210
      if test "$GCC" = yes; then
 
8211
        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'
 
8212
      else
 
8213
        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'
 
8214
      fi
 
8215
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8216
      hardcode_libdir_separator=:
 
8217
      hardcode_direct=yes
 
8218
 
 
8219
      # hardcode_minus_L: Not really in the search PATH,
 
8220
      # but as the default location of the library.
 
8221
      hardcode_minus_L=yes
 
8222
      export_dynamic_flag_spec='${wl}-E'
 
8223
      ;;
 
8224
 
 
8225
    hpux10*)
 
8226
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8227
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8228
      else
 
8229
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8230
      fi
 
8231
      if test "$with_gnu_ld" = no; then
 
8232
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8233
        hardcode_libdir_separator=:
 
8234
 
 
8235
        hardcode_direct=yes
 
8236
        export_dynamic_flag_spec='${wl}-E'
 
8237
 
 
8238
        # hardcode_minus_L: Not really in the search PATH,
 
8239
        # but as the default location of the library.
 
8240
        hardcode_minus_L=yes
 
8241
      fi
 
8242
      ;;
 
8243
 
 
8244
    hpux11*)
 
8245
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8246
        case $host_cpu in
 
8247
        hppa*64*)
 
8248
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8249
          ;;
 
8250
        ia64*)
 
8251
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8252
          ;;
 
8253
        *)
 
8254
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8255
          ;;
 
8256
        esac
 
8257
      else
 
8258
        case $host_cpu in
 
8259
        hppa*64*)
 
8260
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8261
          ;;
 
8262
        ia64*)
 
8263
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8264
          ;;
 
8265
        *)
 
8266
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8267
          ;;
 
8268
        esac
 
8269
      fi
 
8270
      if test "$with_gnu_ld" = no; then
 
8271
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8272
        hardcode_libdir_separator=:
 
8273
 
 
8274
        case $host_cpu in
 
8275
        hppa*64*|ia64*)
 
8276
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8277
          hardcode_direct=no
 
8278
          hardcode_shlibpath_var=no
 
8279
          ;;
 
8280
        *)
 
8281
          hardcode_direct=yes
 
8282
          export_dynamic_flag_spec='${wl}-E'
 
8283
 
 
8284
          # hardcode_minus_L: Not really in the search PATH,
 
8285
          # but as the default location of the library.
 
8286
          hardcode_minus_L=yes
 
8287
          ;;
 
8288
        esac
 
8289
      fi
 
8290
      ;;
 
8291
 
 
8292
    irix5* | irix6* | nonstopux*)
 
8293
      if test "$GCC" = yes; then
 
8294
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8295
      else
 
8296
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8297
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8298
      fi
 
8299
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8300
      hardcode_libdir_separator=:
 
8301
      link_all_deplibs=yes
 
8302
      ;;
 
8303
 
 
8304
    netbsd* | netbsdelf*-gnu)
 
8305
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8306
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8307
      else
 
8308
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8309
      fi
 
8310
      hardcode_libdir_flag_spec='-R$libdir'
 
8311
      hardcode_direct=yes
 
8312
      hardcode_shlibpath_var=no
 
8313
      ;;
 
8314
 
 
8315
    newsos6)
 
8316
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8317
      hardcode_direct=yes
 
8318
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8319
      hardcode_libdir_separator=:
 
8320
      hardcode_shlibpath_var=no
 
8321
      ;;
 
8322
 
 
8323
    openbsd*)
 
8324
      if test -f /usr/libexec/ld.so; then
 
8325
        hardcode_direct=yes
 
8326
        hardcode_shlibpath_var=no
 
8327
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8328
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8329
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8330
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8331
          export_dynamic_flag_spec='${wl}-E'
 
8332
        else
 
8333
          case $host_os in
 
8334
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8335
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8336
             hardcode_libdir_flag_spec='-R$libdir'
 
8337
             ;;
 
8338
           *)
 
8339
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8340
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8341
             ;;
 
8342
          esac
 
8343
        fi
 
8344
      else
 
8345
        ld_shlibs=no
 
8346
      fi
 
8347
      ;;
 
8348
 
 
8349
    os2*)
 
8350
      hardcode_libdir_flag_spec='-L$libdir'
 
8351
      hardcode_minus_L=yes
 
8352
      allow_undefined_flag=unsupported
 
8353
      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'
 
8354
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8355
      ;;
 
8356
 
 
8357
    osf3*)
 
8358
      if test "$GCC" = yes; then
 
8359
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8360
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8361
      else
 
8362
        allow_undefined_flag=' -expect_unresolved \*'
 
8363
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8364
      fi
 
8365
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8366
      hardcode_libdir_separator=:
 
8367
      ;;
 
8368
 
 
8369
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8370
      if test "$GCC" = yes; then
 
8371
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8372
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8373
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8374
      else
 
8375
        allow_undefined_flag=' -expect_unresolved \*'
 
8376
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8377
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8378
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
8379
 
 
8380
        # Both c and cxx compiler support -rpath directly
 
8381
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8382
      fi
 
8383
      hardcode_libdir_separator=:
 
8384
      ;;
 
8385
 
 
8386
    solaris*)
 
8387
      no_undefined_flag=' -z text'
 
8388
      if test "$GCC" = yes; then
 
8389
        wlarc='${wl}'
 
8390
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8391
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8392
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8393
      else
 
8394
        wlarc=''
 
8395
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8396
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8397
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8398
      fi
 
8399
      hardcode_libdir_flag_spec='-R$libdir'
 
8400
      hardcode_shlibpath_var=no
 
8401
      case $host_os in
 
8402
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8403
      *)
 
8404
        # The compiler driver will combine and reorder linker options,
 
8405
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8406
        # but is careful enough not to reorder.
 
8407
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8408
        if test "$GCC" = yes; then
 
8409
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8410
        else
 
8411
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8412
        fi
 
8413
        ;;
 
8414
      esac
 
8415
      link_all_deplibs=yes
 
8416
      ;;
 
8417
 
 
8418
    sunos4*)
 
8419
      if test "x$host_vendor" = xsequent; then
 
8420
        # Use $CC to link under sequent, because it throws in some extra .o
 
8421
        # files that make .init and .fini sections work.
 
8422
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8423
      else
 
8424
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8425
      fi
 
8426
      hardcode_libdir_flag_spec='-L$libdir'
 
8427
      hardcode_direct=yes
 
8428
      hardcode_minus_L=yes
 
8429
      hardcode_shlibpath_var=no
 
8430
      ;;
 
8431
 
 
8432
    sysv4)
 
8433
      case $host_vendor in
 
8434
        sni)
 
8435
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8436
          hardcode_direct=yes # is this really true???
 
8437
        ;;
 
8438
        siemens)
 
8439
          ## LD is ld it makes a PLAMLIB
 
8440
          ## CC just makes a GrossModule.
 
8441
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8442
          reload_cmds='$CC -r -o $output$reload_objs'
 
8443
          hardcode_direct=no
 
8444
        ;;
 
8445
        motorola)
 
8446
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8447
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8448
        ;;
 
8449
      esac
 
8450
      runpath_var='LD_RUN_PATH'
 
8451
      hardcode_shlibpath_var=no
 
8452
      ;;
 
8453
 
 
8454
    sysv4.3*)
 
8455
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8456
      hardcode_shlibpath_var=no
 
8457
      export_dynamic_flag_spec='-Bexport'
 
8458
      ;;
 
8459
 
 
8460
    sysv4*MP*)
 
8461
      if test -d /usr/nec; then
 
8462
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8463
        hardcode_shlibpath_var=no
 
8464
        runpath_var=LD_RUN_PATH
 
8465
        hardcode_runpath_var=yes
 
8466
        ld_shlibs=yes
 
8467
      fi
 
8468
      ;;
 
8469
 
 
8470
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8471
      no_undefined_flag='${wl}-z,text'
 
8472
      archive_cmds_need_lc=no
 
8473
      hardcode_shlibpath_var=no
 
8474
      runpath_var='LD_RUN_PATH'
 
8475
 
 
8476
      if test "$GCC" = yes; then
 
8477
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8478
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8479
      else
 
8480
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8481
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8482
      fi
 
8483
      ;;
 
8484
 
 
8485
    sysv5* | sco3.2v5* | sco5v6*)
 
8486
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8487
      # link with -lc, and that would cause any symbols used from libc to
 
8488
      # always be unresolved, which means just about no library would
 
8489
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8490
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8491
      # as -z defs.
 
8492
      no_undefined_flag='${wl}-z,text'
 
8493
      allow_undefined_flag='${wl}-z,nodefs'
 
8494
      archive_cmds_need_lc=no
 
8495
      hardcode_shlibpath_var=no
 
8496
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8497
      hardcode_libdir_separator=':'
 
8498
      link_all_deplibs=yes
 
8499
      export_dynamic_flag_spec='${wl}-Bexport'
 
8500
      runpath_var='LD_RUN_PATH'
 
8501
 
 
8502
      if test "$GCC" = yes; then
 
8503
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8504
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8505
      else
 
8506
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8507
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8508
      fi
 
8509
      ;;
 
8510
 
 
8511
    uts4*)
 
8512
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8513
      hardcode_libdir_flag_spec='-L$libdir'
 
8514
      hardcode_shlibpath_var=no
 
8515
      ;;
 
8516
 
 
8517
    *)
 
8518
      ld_shlibs=no
 
8519
      ;;
 
8520
    esac
 
8521
  fi
 
8522
 
 
8523
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8524
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8525
test "$ld_shlibs" = no && can_build_shared=no
 
8526
 
 
8527
#
 
8528
# Do we need to explicitly link libc?
 
8529
#
 
8530
case "x$archive_cmds_need_lc" in
 
8531
x|xyes)
 
8532
  # Assume -lc should be added
 
8533
  archive_cmds_need_lc=yes
 
8534
 
 
8535
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8536
    case $archive_cmds in
 
8537
    *'~'*)
 
8538
      # FIXME: we may have to deal with multi-command sequences.
 
8539
      ;;
 
8540
    '$CC '*)
 
8541
      # Test whether the compiler implicitly links with -lc since on some
 
8542
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8543
      # to ld, don't add -lc before -lgcc.
 
8544
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8545
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8546
      $rm conftest*
 
8547
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8548
 
 
8549
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8550
  (eval $ac_compile) 2>&5
 
8551
  ac_status=$?
 
8552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8553
  (exit $ac_status); } 2>conftest.err; then
 
8554
        soname=conftest
 
8555
        lib=conftest
 
8556
        libobjs=conftest.$ac_objext
 
8557
        deplibs=
 
8558
        wl=$lt_prog_compiler_wl
 
8559
        pic_flag=$lt_prog_compiler_pic
 
8560
        compiler_flags=-v
 
8561
        linker_flags=-v
 
8562
        verstring=
 
8563
        output_objdir=.
 
8564
        libname=conftest
 
8565
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8566
        allow_undefined_flag=
 
8567
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8568
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8569
  ac_status=$?
 
8570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8571
  (exit $ac_status); }
 
8572
        then
 
8573
          archive_cmds_need_lc=no
 
8574
        else
 
8575
          archive_cmds_need_lc=yes
 
8576
        fi
 
8577
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8578
      else
 
8579
        cat conftest.err 1>&5
 
8580
      fi
 
8581
      $rm conftest*
 
8582
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8583
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8584
      ;;
 
8585
    esac
 
8586
  fi
 
8587
  ;;
 
8588
esac
 
8589
 
 
8590
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8591
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8592
library_names_spec=
 
8593
libname_spec='lib$name'
 
8594
soname_spec=
 
8595
shrext_cmds=".so"
 
8596
postinstall_cmds=
 
8597
postuninstall_cmds=
 
8598
finish_cmds=
 
8599
finish_eval=
 
8600
shlibpath_var=
 
8601
shlibpath_overrides_runpath=unknown
 
8602
version_type=none
 
8603
dynamic_linker="$host_os ld.so"
 
8604
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8605
 
 
8606
if test "$GCC" = yes; then
 
8607
  case $host_os in
 
8608
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8609
    *) lt_awk_arg="/^libraries:/" ;;
 
8610
  esac
 
8611
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8612
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
8613
    # if the path contains ";" then we assume it to be the separator
 
8614
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8615
    # assumed that no part of a normal pathname contains ";" but that should
 
8616
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8617
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8618
  else
 
8619
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8620
  fi
 
8621
  # Ok, now we have the path, separated by spaces, we can step through it
 
8622
  # and add multilib dir if necessary.
 
8623
  lt_tmp_lt_search_path_spec=
 
8624
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8625
  for lt_sys_path in $lt_search_path_spec; do
 
8626
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8627
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8628
    else
 
8629
      test -d "$lt_sys_path" && \
 
8630
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8631
    fi
 
8632
  done
 
8633
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8634
BEGIN {RS=" "; FS="/|\n";} {
 
8635
  lt_foo="";
 
8636
  lt_count=0;
 
8637
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8638
    if ($lt_i != "" && $lt_i != ".") {
 
8639
      if ($lt_i == "..") {
 
8640
        lt_count++;
 
8641
      } else {
 
8642
        if (lt_count == 0) {
 
8643
          lt_foo="/" $lt_i lt_foo;
 
8644
        } else {
 
8645
          lt_count--;
 
8646
        }
 
8647
      }
 
8648
    }
 
8649
  }
 
8650
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8651
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8652
}'`
 
8653
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
8654
else
 
8655
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8656
fi
 
8657
need_lib_prefix=unknown
 
8658
hardcode_into_libs=no
 
8659
 
 
8660
# when you set need_version to no, make sure it does not cause -set_version
 
8661
# flags to be left without arguments
 
8662
need_version=unknown
 
8663
 
 
8664
case $host_os in
 
8665
aix3*)
 
8666
  version_type=linux
 
8667
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8668
  shlibpath_var=LIBPATH
 
8669
 
 
8670
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8671
  soname_spec='${libname}${release}${shared_ext}$major'
 
8672
  ;;
 
8673
 
 
8674
aix4* | aix5*)
 
8675
  version_type=linux
 
8676
  need_lib_prefix=no
 
8677
  need_version=no
 
8678
  hardcode_into_libs=yes
 
8679
  if test "$host_cpu" = ia64; then
 
8680
    # AIX 5 supports IA64
 
8681
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8682
    shlibpath_var=LD_LIBRARY_PATH
 
8683
  else
 
8684
    # With GCC up to 2.95.x, collect2 would create an import file
 
8685
    # for dependence libraries.  The import file would start with
 
8686
    # the line `#! .'.  This would cause the generated library to
 
8687
    # depend on `.', always an invalid library.  This was fixed in
 
8688
    # development snapshots of GCC prior to 3.0.
 
8689
    case $host_os in
 
8690
      aix4 | aix4.[01] | aix4.[01].*)
 
8691
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8692
           echo ' yes '
 
8693
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8694
        :
 
8695
      else
 
8696
        can_build_shared=no
 
8697
      fi
 
8698
      ;;
 
8699
    esac
 
8700
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8701
    # soname into executable. Probably we can add versioning support to
 
8702
    # collect2, so additional links can be useful in future.
 
8703
    if test "$aix_use_runtimelinking" = yes; then
 
8704
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8705
      # instead of lib<name>.a to let people know that these are not
 
8706
      # typical AIX shared libraries.
 
8707
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8708
    else
 
8709
      # We preserve .a as extension for shared libraries through AIX4.2
 
8710
      # and later when we are not doing run time linking.
 
8711
      library_names_spec='${libname}${release}.a $libname.a'
 
8712
      soname_spec='${libname}${release}${shared_ext}$major'
 
8713
    fi
 
8714
    shlibpath_var=LIBPATH
 
8715
  fi
 
8716
  ;;
 
8717
 
 
8718
amigaos*)
 
8719
  library_names_spec='$libname.ixlibrary $libname.a'
 
8720
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8721
  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'
 
8722
  ;;
 
8723
 
 
8724
beos*)
 
8725
  library_names_spec='${libname}${shared_ext}'
 
8726
  dynamic_linker="$host_os ld.so"
 
8727
  shlibpath_var=LIBRARY_PATH
 
8728
  ;;
 
8729
 
 
8730
bsdi[45]*)
 
8731
  version_type=linux
 
8732
  need_version=no
 
8733
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8734
  soname_spec='${libname}${release}${shared_ext}$major'
 
8735
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8736
  shlibpath_var=LD_LIBRARY_PATH
 
8737
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8738
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8739
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8740
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8741
  # libtool to hard-code these into programs
 
8742
  ;;
 
8743
 
 
8744
cygwin* | mingw* | pw32*)
 
8745
  version_type=windows
 
8746
  shrext_cmds=".dll"
 
8747
  need_version=no
 
8748
  need_lib_prefix=no
 
8749
 
 
8750
  case $GCC,$host_os in
 
8751
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8752
    library_names_spec='$libname.dll.a'
 
8753
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8754
    postinstall_cmds='base_file=`basename \${file}`~
 
8755
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8756
      dldir=$destdir/`dirname \$dlpath`~
 
8757
      test -d \$dldir || mkdir -p \$dldir~
 
8758
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8759
      chmod a+x \$dldir/$dlname'
 
8760
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8761
      dlpath=$dir/\$dldll~
 
8762
       $rm \$dlpath'
 
8763
    shlibpath_overrides_runpath=yes
 
8764
 
 
8765
    case $host_os in
 
8766
    cygwin*)
 
8767
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8768
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8769
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8770
      ;;
 
8771
    mingw*)
 
8772
      # MinGW DLLs use traditional 'lib' prefix
 
8773
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8774
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8775
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8776
        # It is most probably a Windows format PATH printed by
 
8777
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8778
        # path with ; separators, and with drive letters. We can handle the
 
8779
        # drive letters (cygwin fileutils understands them), so leave them,
 
8780
        # especially as we might pass files found there to a mingw objdump,
 
8781
        # which wouldn't understand a cygwinified path. Ahh.
 
8782
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8783
      else
 
8784
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8785
      fi
 
8786
      ;;
 
8787
    pw32*)
 
8788
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8789
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8790
      ;;
 
8791
    esac
 
8792
    ;;
 
8793
 
 
8794
  *)
 
8795
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8796
    ;;
 
8797
  esac
 
8798
  dynamic_linker='Win32 ld.exe'
 
8799
  # FIXME: first we should search . and the directory the executable is in
 
8800
  shlibpath_var=PATH
 
8801
  ;;
 
8802
 
 
8803
darwin* | rhapsody*)
 
8804
  dynamic_linker="$host_os dyld"
 
8805
  version_type=darwin
 
8806
  need_lib_prefix=no
 
8807
  need_version=no
 
8808
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8809
  soname_spec='${libname}${release}${major}$shared_ext'
 
8810
  shlibpath_overrides_runpath=yes
 
8811
  shlibpath_var=DYLD_LIBRARY_PATH
 
8812
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8813
  
 
8814
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
 
8815
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8816
  ;;
 
8817
 
 
8818
dgux*)
 
8819
  version_type=linux
 
8820
  need_lib_prefix=no
 
8821
  need_version=no
 
8822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8823
  soname_spec='${libname}${release}${shared_ext}$major'
 
8824
  shlibpath_var=LD_LIBRARY_PATH
 
8825
  ;;
 
8826
 
 
8827
freebsd1*)
 
8828
  dynamic_linker=no
 
8829
  ;;
 
8830
 
 
8831
freebsd* | dragonfly*)
 
8832
  # DragonFly does not have aout.  When/if they implement a new
 
8833
  # versioning mechanism, adjust this.
 
8834
  if test -x /usr/bin/objformat; then
 
8835
    objformat=`/usr/bin/objformat`
 
8836
  else
 
8837
    case $host_os in
 
8838
    freebsd[123]*) objformat=aout ;;
 
8839
    *) objformat=elf ;;
 
8840
    esac
 
8841
  fi
 
8842
  version_type=freebsd-$objformat
 
8843
  case $version_type in
 
8844
    freebsd-elf*)
 
8845
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8846
      need_version=no
 
8847
      need_lib_prefix=no
 
8848
      ;;
 
8849
    freebsd-*)
 
8850
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8851
      need_version=yes
 
8852
      ;;
 
8853
  esac
 
8854
  shlibpath_var=LD_LIBRARY_PATH
 
8855
  case $host_os in
 
8856
  freebsd2*)
 
8857
    shlibpath_overrides_runpath=yes
 
8858
    ;;
 
8859
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8860
    shlibpath_overrides_runpath=yes
 
8861
    hardcode_into_libs=yes
 
8862
    ;;
 
8863
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8864
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8865
    shlibpath_overrides_runpath=no
 
8866
    hardcode_into_libs=yes
 
8867
    ;;
 
8868
  *) # from 4.6 on, and DragonFly
 
8869
    shlibpath_overrides_runpath=yes
 
8870
    hardcode_into_libs=yes
 
8871
    ;;
 
8872
  esac
 
8873
  ;;
 
8874
 
 
8875
gnu*)
 
8876
  version_type=linux
 
8877
  need_lib_prefix=no
 
8878
  need_version=no
 
8879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8880
  soname_spec='${libname}${release}${shared_ext}$major'
 
8881
  shlibpath_var=LD_LIBRARY_PATH
 
8882
  hardcode_into_libs=yes
 
8883
  ;;
 
8884
 
 
8885
hpux9* | hpux10* | hpux11*)
 
8886
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8887
  # link against other versions.
 
8888
  version_type=sunos
 
8889
  need_lib_prefix=no
 
8890
  need_version=no
 
8891
  case $host_cpu in
 
8892
  ia64*)
 
8893
    shrext_cmds='.so'
 
8894
    hardcode_into_libs=yes
 
8895
    dynamic_linker="$host_os dld.so"
 
8896
    shlibpath_var=LD_LIBRARY_PATH
 
8897
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8898
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8899
    soname_spec='${libname}${release}${shared_ext}$major'
 
8900
    if test "X$HPUX_IA64_MODE" = X32; then
 
8901
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8902
    else
 
8903
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8904
    fi
 
8905
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8906
    ;;
 
8907
   hppa*64*)
 
8908
     shrext_cmds='.sl'
 
8909
     hardcode_into_libs=yes
 
8910
     dynamic_linker="$host_os dld.sl"
 
8911
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8912
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8913
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8914
     soname_spec='${libname}${release}${shared_ext}$major'
 
8915
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8916
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8917
     ;;
 
8918
   *)
 
8919
    shrext_cmds='.sl'
 
8920
    dynamic_linker="$host_os dld.sl"
 
8921
    shlibpath_var=SHLIB_PATH
 
8922
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8923
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8924
    soname_spec='${libname}${release}${shared_ext}$major'
 
8925
    ;;
 
8926
  esac
 
8927
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8928
  postinstall_cmds='chmod 555 $lib'
 
8929
  ;;
 
8930
 
 
8931
interix[3-9]*)
 
8932
  version_type=linux
 
8933
  need_lib_prefix=no
 
8934
  need_version=no
 
8935
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8936
  soname_spec='${libname}${release}${shared_ext}$major'
 
8937
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8938
  shlibpath_var=LD_LIBRARY_PATH
 
8939
  shlibpath_overrides_runpath=no
 
8940
  hardcode_into_libs=yes
 
8941
  ;;
 
8942
 
 
8943
irix5* | irix6* | nonstopux*)
 
8944
  case $host_os in
 
8945
    nonstopux*) version_type=nonstopux ;;
 
8946
    *)
 
8947
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8948
                version_type=linux
 
8949
        else
 
8950
                version_type=irix
 
8951
        fi ;;
 
8952
  esac
 
8953
  need_lib_prefix=no
 
8954
  need_version=no
 
8955
  soname_spec='${libname}${release}${shared_ext}$major'
 
8956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8957
  case $host_os in
 
8958
  irix5* | nonstopux*)
 
8959
    libsuff= shlibsuff=
 
8960
    ;;
 
8961
  *)
 
8962
    case $LD in # libtool.m4 will add one of these switches to LD
 
8963
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8964
      libsuff= shlibsuff= libmagic=32-bit;;
 
8965
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8966
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8967
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8968
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8969
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8970
    esac
 
8971
    ;;
 
8972
  esac
 
8973
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8974
  shlibpath_overrides_runpath=no
 
8975
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8976
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8977
  hardcode_into_libs=yes
 
8978
  ;;
 
8979
 
 
8980
# No shared lib support for Linux oldld, aout, or coff.
 
8981
linux*oldld* | linux*aout* | linux*coff*)
 
8982
  dynamic_linker=no
 
8983
  ;;
 
8984
 
 
8985
# This must be Linux ELF.
 
8986
linux* | k*bsd*-gnu)
 
8987
  version_type=linux
 
8988
  need_lib_prefix=no
 
8989
  need_version=no
 
8990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8991
  soname_spec='${libname}${release}${shared_ext}$major'
 
8992
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8993
  shlibpath_var=LD_LIBRARY_PATH
 
8994
  shlibpath_overrides_runpath=no
 
8995
  # This implies no fast_install, which is unacceptable.
 
8996
  # Some rework will be needed to allow for fast_install
 
8997
  # before this can be enabled.
 
8998
  hardcode_into_libs=yes
 
8999
 
 
9000
  # Append ld.so.conf contents to the search path
 
9001
  if test -f /etc/ld.so.conf; then
 
9002
    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' ' '`
 
9003
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9004
  fi
 
9005
 
 
9006
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9007
  # powerpc, because MkLinux only supported shared libraries with the
 
9008
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9009
  # most powerpc-linux boxes support dynamic linking these days and
 
9010
  # people can always --disable-shared, the test was removed, and we
 
9011
  # assume the GNU/Linux dynamic linker is in use.
 
9012
  dynamic_linker='GNU/Linux ld.so'
 
9013
  ;;
 
9014
 
 
9015
netbsdelf*-gnu)
 
9016
  version_type=linux
 
9017
  need_lib_prefix=no
 
9018
  need_version=no
 
9019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9020
  soname_spec='${libname}${release}${shared_ext}$major'
 
9021
  shlibpath_var=LD_LIBRARY_PATH
 
9022
  shlibpath_overrides_runpath=no
 
9023
  hardcode_into_libs=yes
 
9024
  dynamic_linker='NetBSD ld.elf_so'
 
9025
  ;;
 
9026
 
 
9027
netbsd*)
 
9028
  version_type=sunos
 
9029
  need_lib_prefix=no
 
9030
  need_version=no
 
9031
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9032
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9033
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9034
    dynamic_linker='NetBSD (a.out) ld.so'
 
9035
  else
 
9036
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9037
    soname_spec='${libname}${release}${shared_ext}$major'
 
9038
    dynamic_linker='NetBSD ld.elf_so'
 
9039
  fi
 
9040
  shlibpath_var=LD_LIBRARY_PATH
 
9041
  shlibpath_overrides_runpath=yes
 
9042
  hardcode_into_libs=yes
 
9043
  ;;
 
9044
 
 
9045
newsos6)
 
9046
  version_type=linux
 
9047
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9048
  shlibpath_var=LD_LIBRARY_PATH
 
9049
  shlibpath_overrides_runpath=yes
 
9050
  ;;
 
9051
 
 
9052
nto-qnx*)
 
9053
  version_type=linux
 
9054
  need_lib_prefix=no
 
9055
  need_version=no
 
9056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9057
  soname_spec='${libname}${release}${shared_ext}$major'
 
9058
  shlibpath_var=LD_LIBRARY_PATH
 
9059
  shlibpath_overrides_runpath=yes
 
9060
  ;;
 
9061
 
 
9062
openbsd*)
 
9063
  version_type=sunos
 
9064
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9065
  need_lib_prefix=no
 
9066
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9067
  case $host_os in
 
9068
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9069
    *)                         need_version=no  ;;
 
9070
  esac
 
9071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9072
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9073
  shlibpath_var=LD_LIBRARY_PATH
 
9074
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9075
    case $host_os in
 
9076
      openbsd2.[89] | openbsd2.[89].*)
 
9077
        shlibpath_overrides_runpath=no
 
9078
        ;;
 
9079
      *)
 
9080
        shlibpath_overrides_runpath=yes
 
9081
        ;;
 
9082
      esac
 
9083
  else
 
9084
    shlibpath_overrides_runpath=yes
 
9085
  fi
 
9086
  ;;
 
9087
 
 
9088
os2*)
 
9089
  libname_spec='$name'
 
9090
  shrext_cmds=".dll"
 
9091
  need_lib_prefix=no
 
9092
  library_names_spec='$libname${shared_ext} $libname.a'
 
9093
  dynamic_linker='OS/2 ld.exe'
 
9094
  shlibpath_var=LIBPATH
 
9095
  ;;
 
9096
 
 
9097
osf3* | osf4* | osf5*)
 
9098
  version_type=osf
 
9099
  need_lib_prefix=no
 
9100
  need_version=no
 
9101
  soname_spec='${libname}${release}${shared_ext}$major'
 
9102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9103
  shlibpath_var=LD_LIBRARY_PATH
 
9104
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9105
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9106
  ;;
 
9107
 
 
9108
rdos*)
 
9109
  dynamic_linker=no
 
9110
  ;;
 
9111
 
 
9112
solaris*)
 
9113
  version_type=linux
 
9114
  need_lib_prefix=no
 
9115
  need_version=no
 
9116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9117
  soname_spec='${libname}${release}${shared_ext}$major'
 
9118
  shlibpath_var=LD_LIBRARY_PATH
 
9119
  shlibpath_overrides_runpath=yes
 
9120
  hardcode_into_libs=yes
 
9121
  # ldd complains unless libraries are executable
 
9122
  postinstall_cmds='chmod +x $lib'
 
9123
  ;;
 
9124
 
 
9125
sunos4*)
 
9126
  version_type=sunos
 
9127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9128
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9129
  shlibpath_var=LD_LIBRARY_PATH
 
9130
  shlibpath_overrides_runpath=yes
 
9131
  if test "$with_gnu_ld" = yes; then
 
9132
    need_lib_prefix=no
 
9133
  fi
 
9134
  need_version=yes
 
9135
  ;;
 
9136
 
 
9137
sysv4 | sysv4.3*)
 
9138
  version_type=linux
 
9139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9140
  soname_spec='${libname}${release}${shared_ext}$major'
 
9141
  shlibpath_var=LD_LIBRARY_PATH
 
9142
  case $host_vendor in
 
9143
    sni)
 
9144
      shlibpath_overrides_runpath=no
 
9145
      need_lib_prefix=no
 
9146
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9147
      runpath_var=LD_RUN_PATH
 
9148
      ;;
 
9149
    siemens)
 
9150
      need_lib_prefix=no
 
9151
      ;;
 
9152
    motorola)
 
9153
      need_lib_prefix=no
 
9154
      need_version=no
 
9155
      shlibpath_overrides_runpath=no
 
9156
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9157
      ;;
 
9158
  esac
 
9159
  ;;
 
9160
 
 
9161
sysv4*MP*)
 
9162
  if test -d /usr/nec ;then
 
9163
    version_type=linux
 
9164
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9165
    soname_spec='$libname${shared_ext}.$major'
 
9166
    shlibpath_var=LD_LIBRARY_PATH
 
9167
  fi
 
9168
  ;;
 
9169
 
 
9170
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9171
  version_type=freebsd-elf
 
9172
  need_lib_prefix=no
 
9173
  need_version=no
 
9174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9175
  soname_spec='${libname}${release}${shared_ext}$major'
 
9176
  shlibpath_var=LD_LIBRARY_PATH
 
9177
  hardcode_into_libs=yes
 
9178
  if test "$with_gnu_ld" = yes; then
 
9179
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9180
    shlibpath_overrides_runpath=no
 
9181
  else
 
9182
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9183
    shlibpath_overrides_runpath=yes
 
9184
    case $host_os in
 
9185
      sco3.2v5*)
 
9186
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9187
        ;;
 
9188
    esac
 
9189
  fi
 
9190
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9191
  ;;
 
9192
 
 
9193
uts4*)
 
9194
  version_type=linux
 
9195
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9196
  soname_spec='${libname}${release}${shared_ext}$major'
 
9197
  shlibpath_var=LD_LIBRARY_PATH
 
9198
  ;;
 
9199
 
 
9200
*)
 
9201
  dynamic_linker=no
 
9202
  ;;
 
9203
esac
 
9204
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9205
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9206
test "$dynamic_linker" = no && can_build_shared=no
 
9207
 
 
9208
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9209
if test "$GCC" = yes; then
 
9210
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9211
fi
 
9212
 
 
9213
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9214
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9215
hardcode_action=
 
9216
if test -n "$hardcode_libdir_flag_spec" || \
 
9217
   test -n "$runpath_var" || \
 
9218
   test "X$hardcode_automatic" = "Xyes" ; then
 
9219
 
 
9220
  # We can hardcode non-existant directories.
 
9221
  if test "$hardcode_direct" != no &&
 
9222
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9223
     # have to relink, otherwise we might link with an installed library
 
9224
     # when we should be linking with a yet-to-be-installed one
 
9225
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9226
     test "$hardcode_minus_L" != no; then
 
9227
    # Linking always hardcodes the temporary library directory.
 
9228
    hardcode_action=relink
 
9229
  else
 
9230
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9231
    hardcode_action=immediate
 
9232
  fi
 
9233
else
 
9234
  # We cannot hardcode anything, or else we can only hardcode existing
 
9235
  # directories.
 
9236
  hardcode_action=unsupported
 
9237
fi
 
9238
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9239
echo "${ECHO_T}$hardcode_action" >&6; }
 
9240
 
 
9241
if test "$hardcode_action" = relink; then
 
9242
  # Fast installation is not supported
 
9243
  enable_fast_install=no
 
9244
elif test "$shlibpath_overrides_runpath" = yes ||
 
9245
     test "$enable_shared" = no; then
 
9246
  # Fast installation is not necessary
 
9247
  enable_fast_install=needless
 
9248
fi
 
9249
 
 
9250
striplib=
 
9251
old_striplib=
 
9252
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9253
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9254
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9255
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9256
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9257
  { echo "$as_me:$LINENO: result: yes" >&5
 
9258
echo "${ECHO_T}yes" >&6; }
 
9259
else
 
9260
# FIXME - insert some real tests, host_os isn't really good enough
 
9261
  case $host_os in
 
9262
   darwin*)
 
9263
       if test -n "$STRIP" ; then
 
9264
         striplib="$STRIP -x"
 
9265
         old_striplib="$STRIP -S"
 
9266
         { echo "$as_me:$LINENO: result: yes" >&5
 
9267
echo "${ECHO_T}yes" >&6; }
 
9268
       else
 
9269
  { echo "$as_me:$LINENO: result: no" >&5
 
9270
echo "${ECHO_T}no" >&6; }
 
9271
fi
 
9272
       ;;
 
9273
   *)
 
9274
  { echo "$as_me:$LINENO: result: no" >&5
 
9275
echo "${ECHO_T}no" >&6; }
 
9276
    ;;
 
9277
  esac
 
9278
fi
 
9279
 
 
9280
if test "x$enable_dlopen" != xyes; then
 
9281
  enable_dlopen=unknown
 
9282
  enable_dlopen_self=unknown
 
9283
  enable_dlopen_self_static=unknown
 
9284
else
 
9285
  lt_cv_dlopen=no
 
9286
  lt_cv_dlopen_libs=
 
9287
 
 
9288
  case $host_os in
 
9289
  beos*)
 
9290
    lt_cv_dlopen="load_add_on"
 
9291
    lt_cv_dlopen_libs=
 
9292
    lt_cv_dlopen_self=yes
 
9293
    ;;
 
9294
 
 
9295
  mingw* | pw32*)
 
9296
    lt_cv_dlopen="LoadLibrary"
 
9297
    lt_cv_dlopen_libs=
 
9298
   ;;
 
9299
 
 
9300
  cygwin*)
 
9301
    lt_cv_dlopen="dlopen"
 
9302
    lt_cv_dlopen_libs=
 
9303
   ;;
 
9304
 
 
9305
  darwin*)
 
9306
  # if libdl is installed we need to link against it
 
9307
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9308
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9309
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9311
else
 
9312
  ac_check_lib_save_LIBS=$LIBS
 
9313
LIBS="-ldl  $LIBS"
 
9314
cat >conftest.$ac_ext <<_ACEOF
 
9315
/* confdefs.h.  */
 
9316
_ACEOF
 
9317
cat confdefs.h >>conftest.$ac_ext
 
9318
cat >>conftest.$ac_ext <<_ACEOF
 
9319
/* end confdefs.h.  */
 
9320
 
 
9321
/* Override any GCC internal prototype to avoid an error.
 
9322
   Use char because int might match the return type of a GCC
 
9323
   builtin and then its argument prototype would still apply.  */
 
9324
#ifdef __cplusplus
 
9325
extern "C"
 
9326
#endif
 
9327
char dlopen ();
 
9328
int
 
9329
main ()
 
9330
{
 
9331
return dlopen ();
 
9332
  ;
 
9333
  return 0;
 
9334
}
 
9335
_ACEOF
 
9336
rm -f conftest.$ac_objext conftest$ac_exeext
 
9337
if { (ac_try="$ac_link"
 
9338
case "(($ac_try" in
 
9339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9340
  *) ac_try_echo=$ac_try;;
 
9341
esac
 
9342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9343
  (eval "$ac_link") 2>conftest.er1
 
9344
  ac_status=$?
 
9345
  grep -v '^ *+' conftest.er1 >conftest.err
 
9346
  rm -f conftest.er1
 
9347
  cat conftest.err >&5
 
9348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9349
  (exit $ac_status); } && {
 
9350
         test -z "$ac_c_werror_flag" ||
 
9351
         test ! -s conftest.err
 
9352
       } && test -s conftest$ac_exeext &&
 
9353
       $as_test_x conftest$ac_exeext; then
 
9354
  ac_cv_lib_dl_dlopen=yes
 
9355
else
 
9356
  echo "$as_me: failed program was:" >&5
 
9357
sed 's/^/| /' conftest.$ac_ext >&5
 
9358
 
 
9359
        ac_cv_lib_dl_dlopen=no
 
9360
fi
 
9361
 
 
9362
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9363
      conftest$ac_exeext conftest.$ac_ext
 
9364
LIBS=$ac_check_lib_save_LIBS
 
9365
fi
 
9366
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9367
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9368
if test $ac_cv_lib_dl_dlopen = yes; then
 
9369
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9370
else
 
9371
  
 
9372
    lt_cv_dlopen="dyld"
 
9373
    lt_cv_dlopen_libs=
 
9374
    lt_cv_dlopen_self=yes
 
9375
    
 
9376
fi
 
9377
 
 
9378
   ;;
 
9379
 
 
9380
  *)
 
9381
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9382
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9383
if test "${ac_cv_func_shl_load+set}" = set; then
 
9384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9385
else
 
9386
  cat >conftest.$ac_ext <<_ACEOF
 
9387
/* confdefs.h.  */
 
9388
_ACEOF
 
9389
cat confdefs.h >>conftest.$ac_ext
 
9390
cat >>conftest.$ac_ext <<_ACEOF
 
9391
/* end confdefs.h.  */
 
9392
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9393
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9394
#define shl_load innocuous_shl_load
 
9395
 
 
9396
/* System header to define __stub macros and hopefully few prototypes,
 
9397
    which can conflict with char shl_load (); below.
 
9398
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9399
    <limits.h> exists even on freestanding compilers.  */
 
9400
 
 
9401
#ifdef __STDC__
 
9402
# include <limits.h>
 
9403
#else
 
9404
# include <assert.h>
 
9405
#endif
 
9406
 
 
9407
#undef shl_load
 
9408
 
 
9409
/* Override any GCC internal prototype to avoid an error.
 
9410
   Use char because int might match the return type of a GCC
 
9411
   builtin and then its argument prototype would still apply.  */
 
9412
#ifdef __cplusplus
 
9413
extern "C"
 
9414
#endif
 
9415
char shl_load ();
 
9416
/* The GNU C library defines this for functions which it implements
 
9417
    to always fail with ENOSYS.  Some functions are actually named
 
9418
    something starting with __ and the normal name is an alias.  */
 
9419
#if defined __stub_shl_load || defined __stub___shl_load
 
9420
choke me
 
9421
#endif
 
9422
 
 
9423
int
 
9424
main ()
 
9425
{
 
9426
return shl_load ();
 
9427
  ;
 
9428
  return 0;
 
9429
}
 
9430
_ACEOF
 
9431
rm -f conftest.$ac_objext conftest$ac_exeext
 
9432
if { (ac_try="$ac_link"
 
9433
case "(($ac_try" in
 
9434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9435
  *) ac_try_echo=$ac_try;;
 
9436
esac
 
9437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9438
  (eval "$ac_link") 2>conftest.er1
 
9439
  ac_status=$?
 
9440
  grep -v '^ *+' conftest.er1 >conftest.err
 
9441
  rm -f conftest.er1
 
9442
  cat conftest.err >&5
 
9443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9444
  (exit $ac_status); } && {
 
9445
         test -z "$ac_c_werror_flag" ||
 
9446
         test ! -s conftest.err
 
9447
       } && test -s conftest$ac_exeext &&
 
9448
       $as_test_x conftest$ac_exeext; then
 
9449
  ac_cv_func_shl_load=yes
 
9450
else
 
9451
  echo "$as_me: failed program was:" >&5
 
9452
sed 's/^/| /' conftest.$ac_ext >&5
 
9453
 
 
9454
        ac_cv_func_shl_load=no
 
9455
fi
 
9456
 
 
9457
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9458
      conftest$ac_exeext conftest.$ac_ext
 
9459
fi
 
9460
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9461
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9462
if test $ac_cv_func_shl_load = yes; then
 
9463
  lt_cv_dlopen="shl_load"
 
9464
else
 
9465
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9466
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9467
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9469
else
 
9470
  ac_check_lib_save_LIBS=$LIBS
 
9471
LIBS="-ldld  $LIBS"
 
9472
cat >conftest.$ac_ext <<_ACEOF
 
9473
/* confdefs.h.  */
 
9474
_ACEOF
 
9475
cat confdefs.h >>conftest.$ac_ext
 
9476
cat >>conftest.$ac_ext <<_ACEOF
 
9477
/* end confdefs.h.  */
 
9478
 
 
9479
/* Override any GCC internal prototype to avoid an error.
 
9480
   Use char because int might match the return type of a GCC
 
9481
   builtin and then its argument prototype would still apply.  */
 
9482
#ifdef __cplusplus
 
9483
extern "C"
 
9484
#endif
 
9485
char shl_load ();
 
9486
int
 
9487
main ()
 
9488
{
 
9489
return shl_load ();
 
9490
  ;
 
9491
  return 0;
 
9492
}
 
9493
_ACEOF
 
9494
rm -f conftest.$ac_objext conftest$ac_exeext
 
9495
if { (ac_try="$ac_link"
 
9496
case "(($ac_try" in
 
9497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9498
  *) ac_try_echo=$ac_try;;
 
9499
esac
 
9500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9501
  (eval "$ac_link") 2>conftest.er1
 
9502
  ac_status=$?
 
9503
  grep -v '^ *+' conftest.er1 >conftest.err
 
9504
  rm -f conftest.er1
 
9505
  cat conftest.err >&5
 
9506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9507
  (exit $ac_status); } && {
 
9508
         test -z "$ac_c_werror_flag" ||
 
9509
         test ! -s conftest.err
 
9510
       } && test -s conftest$ac_exeext &&
 
9511
       $as_test_x conftest$ac_exeext; then
 
9512
  ac_cv_lib_dld_shl_load=yes
 
9513
else
 
9514
  echo "$as_me: failed program was:" >&5
 
9515
sed 's/^/| /' conftest.$ac_ext >&5
 
9516
 
 
9517
        ac_cv_lib_dld_shl_load=no
 
9518
fi
 
9519
 
 
9520
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9521
      conftest$ac_exeext conftest.$ac_ext
 
9522
LIBS=$ac_check_lib_save_LIBS
 
9523
fi
 
9524
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9525
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9526
if test $ac_cv_lib_dld_shl_load = yes; then
 
9527
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9528
else
 
9529
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9530
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9531
if test "${ac_cv_func_dlopen+set}" = set; then
 
9532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9533
else
 
9534
  cat >conftest.$ac_ext <<_ACEOF
 
9535
/* confdefs.h.  */
 
9536
_ACEOF
 
9537
cat confdefs.h >>conftest.$ac_ext
 
9538
cat >>conftest.$ac_ext <<_ACEOF
 
9539
/* end confdefs.h.  */
 
9540
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9541
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9542
#define dlopen innocuous_dlopen
 
9543
 
 
9544
/* System header to define __stub macros and hopefully few prototypes,
 
9545
    which can conflict with char dlopen (); below.
 
9546
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9547
    <limits.h> exists even on freestanding compilers.  */
 
9548
 
 
9549
#ifdef __STDC__
 
9550
# include <limits.h>
 
9551
#else
 
9552
# include <assert.h>
 
9553
#endif
 
9554
 
 
9555
#undef dlopen
 
9556
 
 
9557
/* Override any GCC internal prototype to avoid an error.
 
9558
   Use char because int might match the return type of a GCC
 
9559
   builtin and then its argument prototype would still apply.  */
 
9560
#ifdef __cplusplus
 
9561
extern "C"
 
9562
#endif
 
9563
char dlopen ();
 
9564
/* The GNU C library defines this for functions which it implements
 
9565
    to always fail with ENOSYS.  Some functions are actually named
 
9566
    something starting with __ and the normal name is an alias.  */
 
9567
#if defined __stub_dlopen || defined __stub___dlopen
 
9568
choke me
 
9569
#endif
 
9570
 
 
9571
int
 
9572
main ()
 
9573
{
 
9574
return dlopen ();
 
9575
  ;
 
9576
  return 0;
 
9577
}
 
9578
_ACEOF
 
9579
rm -f conftest.$ac_objext conftest$ac_exeext
 
9580
if { (ac_try="$ac_link"
 
9581
case "(($ac_try" in
 
9582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9583
  *) ac_try_echo=$ac_try;;
 
9584
esac
 
9585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9586
  (eval "$ac_link") 2>conftest.er1
 
9587
  ac_status=$?
 
9588
  grep -v '^ *+' conftest.er1 >conftest.err
 
9589
  rm -f conftest.er1
 
9590
  cat conftest.err >&5
 
9591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9592
  (exit $ac_status); } && {
 
9593
         test -z "$ac_c_werror_flag" ||
 
9594
         test ! -s conftest.err
 
9595
       } && test -s conftest$ac_exeext &&
 
9596
       $as_test_x conftest$ac_exeext; then
 
9597
  ac_cv_func_dlopen=yes
 
9598
else
 
9599
  echo "$as_me: failed program was:" >&5
 
9600
sed 's/^/| /' conftest.$ac_ext >&5
 
9601
 
 
9602
        ac_cv_func_dlopen=no
 
9603
fi
 
9604
 
 
9605
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9606
      conftest$ac_exeext conftest.$ac_ext
 
9607
fi
 
9608
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9609
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9610
if test $ac_cv_func_dlopen = yes; then
 
9611
  lt_cv_dlopen="dlopen"
 
9612
else
 
9613
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9614
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9615
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9616
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9617
else
 
9618
  ac_check_lib_save_LIBS=$LIBS
 
9619
LIBS="-ldl  $LIBS"
 
9620
cat >conftest.$ac_ext <<_ACEOF
 
9621
/* confdefs.h.  */
 
9622
_ACEOF
 
9623
cat confdefs.h >>conftest.$ac_ext
 
9624
cat >>conftest.$ac_ext <<_ACEOF
 
9625
/* end confdefs.h.  */
 
9626
 
 
9627
/* Override any GCC internal prototype to avoid an error.
 
9628
   Use char because int might match the return type of a GCC
 
9629
   builtin and then its argument prototype would still apply.  */
 
9630
#ifdef __cplusplus
 
9631
extern "C"
 
9632
#endif
 
9633
char dlopen ();
 
9634
int
 
9635
main ()
 
9636
{
 
9637
return dlopen ();
 
9638
  ;
 
9639
  return 0;
 
9640
}
 
9641
_ACEOF
 
9642
rm -f conftest.$ac_objext conftest$ac_exeext
 
9643
if { (ac_try="$ac_link"
 
9644
case "(($ac_try" in
 
9645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9646
  *) ac_try_echo=$ac_try;;
 
9647
esac
 
9648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9649
  (eval "$ac_link") 2>conftest.er1
 
9650
  ac_status=$?
 
9651
  grep -v '^ *+' conftest.er1 >conftest.err
 
9652
  rm -f conftest.er1
 
9653
  cat conftest.err >&5
 
9654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9655
  (exit $ac_status); } && {
 
9656
         test -z "$ac_c_werror_flag" ||
 
9657
         test ! -s conftest.err
 
9658
       } && test -s conftest$ac_exeext &&
 
9659
       $as_test_x conftest$ac_exeext; then
 
9660
  ac_cv_lib_dl_dlopen=yes
 
9661
else
 
9662
  echo "$as_me: failed program was:" >&5
 
9663
sed 's/^/| /' conftest.$ac_ext >&5
 
9664
 
 
9665
        ac_cv_lib_dl_dlopen=no
 
9666
fi
 
9667
 
 
9668
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9669
      conftest$ac_exeext conftest.$ac_ext
 
9670
LIBS=$ac_check_lib_save_LIBS
 
9671
fi
 
9672
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9673
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9674
if test $ac_cv_lib_dl_dlopen = yes; then
 
9675
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9676
else
 
9677
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9678
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9679
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9681
else
 
9682
  ac_check_lib_save_LIBS=$LIBS
 
9683
LIBS="-lsvld  $LIBS"
 
9684
cat >conftest.$ac_ext <<_ACEOF
 
9685
/* confdefs.h.  */
 
9686
_ACEOF
 
9687
cat confdefs.h >>conftest.$ac_ext
 
9688
cat >>conftest.$ac_ext <<_ACEOF
 
9689
/* end confdefs.h.  */
 
9690
 
 
9691
/* Override any GCC internal prototype to avoid an error.
 
9692
   Use char because int might match the return type of a GCC
 
9693
   builtin and then its argument prototype would still apply.  */
 
9694
#ifdef __cplusplus
 
9695
extern "C"
 
9696
#endif
 
9697
char dlopen ();
 
9698
int
 
9699
main ()
 
9700
{
 
9701
return dlopen ();
 
9702
  ;
 
9703
  return 0;
 
9704
}
 
9705
_ACEOF
 
9706
rm -f conftest.$ac_objext conftest$ac_exeext
 
9707
if { (ac_try="$ac_link"
 
9708
case "(($ac_try" in
 
9709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9710
  *) ac_try_echo=$ac_try;;
 
9711
esac
 
9712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9713
  (eval "$ac_link") 2>conftest.er1
 
9714
  ac_status=$?
 
9715
  grep -v '^ *+' conftest.er1 >conftest.err
 
9716
  rm -f conftest.er1
 
9717
  cat conftest.err >&5
 
9718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9719
  (exit $ac_status); } && {
 
9720
         test -z "$ac_c_werror_flag" ||
 
9721
         test ! -s conftest.err
 
9722
       } && test -s conftest$ac_exeext &&
 
9723
       $as_test_x conftest$ac_exeext; then
 
9724
  ac_cv_lib_svld_dlopen=yes
 
9725
else
 
9726
  echo "$as_me: failed program was:" >&5
 
9727
sed 's/^/| /' conftest.$ac_ext >&5
 
9728
 
 
9729
        ac_cv_lib_svld_dlopen=no
 
9730
fi
 
9731
 
 
9732
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9733
      conftest$ac_exeext conftest.$ac_ext
 
9734
LIBS=$ac_check_lib_save_LIBS
 
9735
fi
 
9736
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9737
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
9738
if test $ac_cv_lib_svld_dlopen = yes; then
 
9739
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9740
else
 
9741
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9742
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
9743
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9745
else
 
9746
  ac_check_lib_save_LIBS=$LIBS
 
9747
LIBS="-ldld  $LIBS"
 
9748
cat >conftest.$ac_ext <<_ACEOF
 
9749
/* confdefs.h.  */
 
9750
_ACEOF
 
9751
cat confdefs.h >>conftest.$ac_ext
 
9752
cat >>conftest.$ac_ext <<_ACEOF
 
9753
/* end confdefs.h.  */
 
9754
 
 
9755
/* Override any GCC internal prototype to avoid an error.
 
9756
   Use char because int might match the return type of a GCC
 
9757
   builtin and then its argument prototype would still apply.  */
 
9758
#ifdef __cplusplus
 
9759
extern "C"
 
9760
#endif
 
9761
char dld_link ();
 
9762
int
 
9763
main ()
 
9764
{
 
9765
return dld_link ();
 
9766
  ;
 
9767
  return 0;
 
9768
}
 
9769
_ACEOF
 
9770
rm -f conftest.$ac_objext conftest$ac_exeext
 
9771
if { (ac_try="$ac_link"
 
9772
case "(($ac_try" in
 
9773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9774
  *) ac_try_echo=$ac_try;;
 
9775
esac
 
9776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9777
  (eval "$ac_link") 2>conftest.er1
 
9778
  ac_status=$?
 
9779
  grep -v '^ *+' conftest.er1 >conftest.err
 
9780
  rm -f conftest.er1
 
9781
  cat conftest.err >&5
 
9782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9783
  (exit $ac_status); } && {
 
9784
         test -z "$ac_c_werror_flag" ||
 
9785
         test ! -s conftest.err
 
9786
       } && test -s conftest$ac_exeext &&
 
9787
       $as_test_x conftest$ac_exeext; then
 
9788
  ac_cv_lib_dld_dld_link=yes
 
9789
else
 
9790
  echo "$as_me: failed program was:" >&5
 
9791
sed 's/^/| /' conftest.$ac_ext >&5
 
9792
 
 
9793
        ac_cv_lib_dld_dld_link=no
 
9794
fi
 
9795
 
 
9796
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9797
      conftest$ac_exeext conftest.$ac_ext
 
9798
LIBS=$ac_check_lib_save_LIBS
 
9799
fi
 
9800
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9801
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
9802
if test $ac_cv_lib_dld_dld_link = yes; then
 
9803
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9804
fi
 
9805
 
 
9806
              
 
9807
fi
 
9808
 
 
9809
            
 
9810
fi
 
9811
 
 
9812
          
 
9813
fi
 
9814
 
 
9815
        
 
9816
fi
 
9817
 
 
9818
      
 
9819
fi
 
9820
 
 
9821
    ;;
 
9822
  esac
 
9823
 
 
9824
  if test "x$lt_cv_dlopen" != xno; then
 
9825
    enable_dlopen=yes
 
9826
  else
 
9827
    enable_dlopen=no
 
9828
  fi
 
9829
 
 
9830
  case $lt_cv_dlopen in
 
9831
  dlopen)
 
9832
    save_CPPFLAGS="$CPPFLAGS"
 
9833
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9834
 
 
9835
    save_LDFLAGS="$LDFLAGS"
 
9836
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9837
 
 
9838
    save_LIBS="$LIBS"
 
9839
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9840
 
 
9841
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9842
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
9843
if test "${lt_cv_dlopen_self+set}" = set; then
 
9844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9845
else
 
9846
          if test "$cross_compiling" = yes; then :
 
9847
  lt_cv_dlopen_self=cross
 
9848
else
 
9849
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9850
  lt_status=$lt_dlunknown
 
9851
  cat > conftest.$ac_ext <<EOF
 
9852
#line __oline__ "configure"
 
9853
#include "confdefs.h"
 
9854
 
 
9855
#if HAVE_DLFCN_H
 
9856
#include <dlfcn.h>
 
9857
#endif
 
9858
 
 
9859
#include <stdio.h>
 
9860
 
 
9861
#ifdef RTLD_GLOBAL
 
9862
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9863
#else
 
9864
#  ifdef DL_GLOBAL
 
9865
#    define LT_DLGLOBAL         DL_GLOBAL
 
9866
#  else
 
9867
#    define LT_DLGLOBAL         0
 
9868
#  endif
 
9869
#endif
 
9870
 
 
9871
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9872
   find out it does not work in some platform. */
 
9873
#ifndef LT_DLLAZY_OR_NOW
 
9874
#  ifdef RTLD_LAZY
 
9875
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9876
#  else
 
9877
#    ifdef DL_LAZY
 
9878
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9879
#    else
 
9880
#      ifdef RTLD_NOW
 
9881
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9882
#      else
 
9883
#        ifdef DL_NOW
 
9884
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9885
#        else
 
9886
#          define LT_DLLAZY_OR_NOW      0
 
9887
#        endif
 
9888
#      endif
 
9889
#    endif
 
9890
#  endif
 
9891
#endif
 
9892
 
 
9893
#ifdef __cplusplus
 
9894
extern "C" void exit (int);
 
9895
#endif
 
9896
 
 
9897
void fnord() { int i=42;}
 
9898
int main ()
 
9899
{
 
9900
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9901
  int status = $lt_dlunknown;
 
9902
 
 
9903
  if (self)
 
9904
    {
 
9905
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9906
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9907
      /* dlclose (self); */
 
9908
    }
 
9909
  else
 
9910
    puts (dlerror ());
 
9911
 
 
9912
    exit (status);
 
9913
}
 
9914
EOF
 
9915
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9916
  (eval $ac_link) 2>&5
 
9917
  ac_status=$?
 
9918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9919
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9920
    (./conftest; exit; ) >&5 2>/dev/null
 
9921
    lt_status=$?
 
9922
    case x$lt_status in
 
9923
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9924
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9925
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9926
    esac
 
9927
  else :
 
9928
    # compilation failed
 
9929
    lt_cv_dlopen_self=no
 
9930
  fi
 
9931
fi
 
9932
rm -fr conftest*
 
9933
 
 
9934
    
 
9935
fi
 
9936
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9937
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
9938
 
 
9939
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9940
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9941
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9942
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
9943
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9945
else
 
9946
          if test "$cross_compiling" = yes; then :
 
9947
  lt_cv_dlopen_self_static=cross
 
9948
else
 
9949
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9950
  lt_status=$lt_dlunknown
 
9951
  cat > conftest.$ac_ext <<EOF
 
9952
#line __oline__ "configure"
 
9953
#include "confdefs.h"
 
9954
 
 
9955
#if HAVE_DLFCN_H
 
9956
#include <dlfcn.h>
 
9957
#endif
 
9958
 
 
9959
#include <stdio.h>
 
9960
 
 
9961
#ifdef RTLD_GLOBAL
 
9962
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9963
#else
 
9964
#  ifdef DL_GLOBAL
 
9965
#    define LT_DLGLOBAL         DL_GLOBAL
 
9966
#  else
 
9967
#    define LT_DLGLOBAL         0
 
9968
#  endif
 
9969
#endif
 
9970
 
 
9971
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9972
   find out it does not work in some platform. */
 
9973
#ifndef LT_DLLAZY_OR_NOW
 
9974
#  ifdef RTLD_LAZY
 
9975
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9976
#  else
 
9977
#    ifdef DL_LAZY
 
9978
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9979
#    else
 
9980
#      ifdef RTLD_NOW
 
9981
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9982
#      else
 
9983
#        ifdef DL_NOW
 
9984
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9985
#        else
 
9986
#          define LT_DLLAZY_OR_NOW      0
 
9987
#        endif
 
9988
#      endif
 
9989
#    endif
 
9990
#  endif
 
9991
#endif
 
9992
 
 
9993
#ifdef __cplusplus
 
9994
extern "C" void exit (int);
 
9995
#endif
 
9996
 
 
9997
void fnord() { int i=42;}
 
9998
int main ()
 
9999
{
 
10000
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10001
  int status = $lt_dlunknown;
 
10002
 
 
10003
  if (self)
 
10004
    {
 
10005
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10006
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10007
      /* dlclose (self); */
 
10008
    }
 
10009
  else
 
10010
    puts (dlerror ());
 
10011
 
 
10012
    exit (status);
 
10013
}
 
10014
EOF
 
10015
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10016
  (eval $ac_link) 2>&5
 
10017
  ac_status=$?
 
10018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10019
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10020
    (./conftest; exit; ) >&5 2>/dev/null
 
10021
    lt_status=$?
 
10022
    case x$lt_status in
 
10023
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10024
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10025
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10026
    esac
 
10027
  else :
 
10028
    # compilation failed
 
10029
    lt_cv_dlopen_self_static=no
 
10030
  fi
 
10031
fi
 
10032
rm -fr conftest*
 
10033
 
 
10034
      
 
10035
fi
 
10036
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10037
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10038
    fi
 
10039
 
 
10040
    CPPFLAGS="$save_CPPFLAGS"
 
10041
    LDFLAGS="$save_LDFLAGS"
 
10042
    LIBS="$save_LIBS"
 
10043
    ;;
 
10044
  esac
 
10045
 
 
10046
  case $lt_cv_dlopen_self in
 
10047
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10048
  *) enable_dlopen_self=unknown ;;
 
10049
  esac
 
10050
 
 
10051
  case $lt_cv_dlopen_self_static in
 
10052
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10053
  *) enable_dlopen_self_static=unknown ;;
 
10054
  esac
 
10055
fi
 
10056
 
 
10057
 
 
10058
# Report which library types will actually be built
 
10059
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10060
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10061
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10062
echo "${ECHO_T}$can_build_shared" >&6; }
 
10063
 
 
10064
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10065
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10066
test "$can_build_shared" = "no" && enable_shared=no
 
10067
 
 
10068
# On AIX, shared libraries and static libraries use the same namespace, and
 
10069
# are all built from PIC.
 
10070
case $host_os in
 
10071
aix3*)
 
10072
  test "$enable_shared" = yes && enable_static=no
 
10073
  if test -n "$RANLIB"; then
 
10074
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10075
    postinstall_cmds='$RANLIB $lib'
 
10076
  fi
 
10077
  ;;
 
10078
 
 
10079
aix4* | aix5*)
 
10080
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10081
    test "$enable_shared" = yes && enable_static=no
 
10082
  fi
 
10083
    ;;
 
10084
esac
 
10085
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10086
echo "${ECHO_T}$enable_shared" >&6; }
 
10087
 
 
10088
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10089
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10090
# Make sure either enable_shared or enable_static is yes.
 
10091
test "$enable_shared" = yes || enable_static=yes
 
10092
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10093
echo "${ECHO_T}$enable_static" >&6; }
 
10094
 
 
10095
# The else clause should only fire when bootstrapping the
 
10096
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10097
# with your package, and you will get complaints that there are
 
10098
# no rules to generate ltmain.sh.
 
10099
if test -f "$ltmain"; then
 
10100
  # See if we are running on zsh, and set the options which allow our commands through
 
10101
  # without removal of \ escapes.
 
10102
  if test -n "${ZSH_VERSION+set}" ; then
 
10103
    setopt NO_GLOB_SUBST
 
10104
  fi
 
10105
  # Now quote all the things that may contain metacharacters while being
 
10106
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10107
  # variables and quote the copies for generation of the libtool script.
 
10108
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10109
    SED SHELL STRIP \
 
10110
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10111
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10112
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10113
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10114
    lt_cv_sys_global_symbol_to_c_name_address \
 
10115
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10116
    old_postinstall_cmds old_postuninstall_cmds \
 
10117
    compiler \
 
10118
    CC \
 
10119
    LD \
 
10120
    lt_prog_compiler_wl \
 
10121
    lt_prog_compiler_pic \
 
10122
    lt_prog_compiler_static \
 
10123
    lt_prog_compiler_no_builtin_flag \
 
10124
    export_dynamic_flag_spec \
 
10125
    thread_safe_flag_spec \
 
10126
    whole_archive_flag_spec \
 
10127
    enable_shared_with_static_runtimes \
 
10128
    old_archive_cmds \
 
10129
    old_archive_from_new_cmds \
 
10130
    predep_objects \
 
10131
    postdep_objects \
 
10132
    predeps \
 
10133
    postdeps \
 
10134
    compiler_lib_search_path \
 
10135
    archive_cmds \
 
10136
    archive_expsym_cmds \
 
10137
    postinstall_cmds \
 
10138
    postuninstall_cmds \
 
10139
    old_archive_from_expsyms_cmds \
 
10140
    allow_undefined_flag \
 
10141
    no_undefined_flag \
 
10142
    export_symbols_cmds \
 
10143
    hardcode_libdir_flag_spec \
 
10144
    hardcode_libdir_flag_spec_ld \
 
10145
    hardcode_libdir_separator \
 
10146
    hardcode_automatic \
 
10147
    module_cmds \
 
10148
    module_expsym_cmds \
 
10149
    lt_cv_prog_compiler_c_o \
 
10150
    fix_srcfile_path \
 
10151
    exclude_expsyms \
 
10152
    include_expsyms; do
 
10153
 
 
10154
    case $var in
 
10155
    old_archive_cmds | \
 
10156
    old_archive_from_new_cmds | \
 
10157
    archive_cmds | \
 
10158
    archive_expsym_cmds | \
 
10159
    module_cmds | \
 
10160
    module_expsym_cmds | \
 
10161
    old_archive_from_expsyms_cmds | \
 
10162
    export_symbols_cmds | \
 
10163
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10164
    postinstall_cmds | postuninstall_cmds | \
 
10165
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10166
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10167
      # Double-quote double-evaled strings.
 
10168
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10169
      ;;
 
10170
    *)
 
10171
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10172
      ;;
 
10173
    esac
 
10174
  done
 
10175
 
 
10176
  case $lt_echo in
 
10177
  *'\$0 --fallback-echo"')
 
10178
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10179
    ;;
 
10180
  esac
 
10181
 
 
10182
cfgfile="${ofile}T"
 
10183
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10184
  $rm -f "$cfgfile"
 
10185
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10186
echo "$as_me: creating $ofile" >&6;}
 
10187
 
 
10188
  cat <<__EOF__ >> "$cfgfile"
 
10189
#! $SHELL
 
10190
 
 
10191
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10192
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10193
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10194
#
 
10195
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
10196
# Free Software Foundation, Inc.
 
10197
#
 
10198
# This file is part of GNU Libtool:
 
10199
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10200
#
 
10201
# This program is free software; you can redistribute it and/or modify
 
10202
# it under the terms of the GNU General Public License as published by
 
10203
# the Free Software Foundation; either version 2 of the License, or
 
10204
# (at your option) any later version.
 
10205
#
 
10206
# This program is distributed in the hope that it will be useful, but
 
10207
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10208
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10209
# General Public License for more details.
 
10210
#
 
10211
# You should have received a copy of the GNU General Public License
 
10212
# along with this program; if not, write to the Free Software
 
10213
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10214
#
 
10215
# As a special exception to the GNU General Public License, if you
 
10216
# distribute this file as part of a program that contains a
 
10217
# configuration script generated by Autoconf, you may include it under
 
10218
# the same distribution terms that you use for the rest of that program.
 
10219
 
 
10220
# A sed program that does not truncate output.
 
10221
SED=$lt_SED
 
10222
 
 
10223
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10224
Xsed="$SED -e 1s/^X//"
 
10225
 
 
10226
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10227
# if CDPATH is set.
 
10228
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10229
 
 
10230
# The names of the tagged configurations supported by this script.
 
10231
available_tags=
 
10232
 
 
10233
# ### BEGIN LIBTOOL CONFIG
 
10234
 
 
10235
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10236
 
 
10237
# Shell to use when invoking shell scripts.
 
10238
SHELL=$lt_SHELL
 
10239
 
 
10240
# Whether or not to build shared libraries.
 
10241
build_libtool_libs=$enable_shared
 
10242
 
 
10243
# Whether or not to build static libraries.
 
10244
build_old_libs=$enable_static
 
10245
 
 
10246
# Whether or not to add -lc for building shared libraries.
 
10247
build_libtool_need_lc=$archive_cmds_need_lc
 
10248
 
 
10249
# Whether or not to disallow shared libs when runtime libs are static
 
10250
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10251
 
 
10252
# Whether or not to optimize for fast installation.
 
10253
fast_install=$enable_fast_install
 
10254
 
 
10255
# The host system.
 
10256
host_alias=$host_alias
 
10257
host=$host
 
10258
host_os=$host_os
 
10259
 
 
10260
# The build system.
 
10261
build_alias=$build_alias
 
10262
build=$build
 
10263
build_os=$build_os
 
10264
 
 
10265
# An echo program that does not interpret backslashes.
 
10266
echo=$lt_echo
 
10267
 
 
10268
# The archiver.
 
10269
AR=$lt_AR
 
10270
AR_FLAGS=$lt_AR_FLAGS
 
10271
 
 
10272
# A C compiler.
 
10273
LTCC=$lt_LTCC
 
10274
 
 
10275
# LTCC compiler flags.
 
10276
LTCFLAGS=$lt_LTCFLAGS
 
10277
 
 
10278
# A language-specific compiler.
 
10279
CC=$lt_compiler
 
10280
 
 
10281
# Is the compiler the GNU C compiler?
 
10282
with_gcc=$GCC
 
10283
 
 
10284
# An ERE matcher.
 
10285
EGREP=$lt_EGREP
 
10286
 
 
10287
# The linker used to build libraries.
 
10288
LD=$lt_LD
 
10289
 
 
10290
# Whether we need hard or soft links.
 
10291
LN_S=$lt_LN_S
 
10292
 
 
10293
# A BSD-compatible nm program.
 
10294
NM=$lt_NM
 
10295
 
 
10296
# A symbol stripping program
 
10297
STRIP=$lt_STRIP
 
10298
 
 
10299
# Used to examine libraries when file_magic_cmd begins "file"
 
10300
MAGIC_CMD=$MAGIC_CMD
 
10301
 
 
10302
# Used on cygwin: DLL creation program.
 
10303
DLLTOOL="$DLLTOOL"
 
10304
 
 
10305
# Used on cygwin: object dumper.
 
10306
OBJDUMP="$OBJDUMP"
 
10307
 
 
10308
# Used on cygwin: assembler.
 
10309
AS="$AS"
 
10310
 
 
10311
# The name of the directory that contains temporary libtool files.
 
10312
objdir=$objdir
 
10313
 
 
10314
# How to create reloadable object files.
 
10315
reload_flag=$lt_reload_flag
 
10316
reload_cmds=$lt_reload_cmds
 
10317
 
 
10318
# How to pass a linker flag through the compiler.
 
10319
wl=$lt_lt_prog_compiler_wl
 
10320
 
 
10321
# Object file suffix (normally "o").
 
10322
objext="$ac_objext"
 
10323
 
 
10324
# Old archive suffix (normally "a").
 
10325
libext="$libext"
 
10326
 
 
10327
# Shared library suffix (normally ".so").
 
10328
shrext_cmds='$shrext_cmds'
 
10329
 
 
10330
# Executable file suffix (normally "").
 
10331
exeext="$exeext"
 
10332
 
 
10333
# Additional compiler flags for building library objects.
 
10334
pic_flag=$lt_lt_prog_compiler_pic
 
10335
pic_mode=$pic_mode
 
10336
 
 
10337
# What is the maximum length of a command?
 
10338
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10339
 
 
10340
# Does compiler simultaneously support -c and -o options?
 
10341
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10342
 
 
10343
# Must we lock files when doing compilation?
 
10344
need_locks=$lt_need_locks
 
10345
 
 
10346
# Do we need the lib prefix for modules?
 
10347
need_lib_prefix=$need_lib_prefix
 
10348
 
 
10349
# Do we need a version for libraries?
 
10350
need_version=$need_version
 
10351
 
 
10352
# Whether dlopen is supported.
 
10353
dlopen_support=$enable_dlopen
 
10354
 
 
10355
# Whether dlopen of programs is supported.
 
10356
dlopen_self=$enable_dlopen_self
 
10357
 
 
10358
# Whether dlopen of statically linked programs is supported.
 
10359
dlopen_self_static=$enable_dlopen_self_static
 
10360
 
 
10361
# Compiler flag to prevent dynamic linking.
 
10362
link_static_flag=$lt_lt_prog_compiler_static
 
10363
 
 
10364
# Compiler flag to turn off builtin functions.
 
10365
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10366
 
 
10367
# Compiler flag to allow reflexive dlopens.
 
10368
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10369
 
 
10370
# Compiler flag to generate shared objects directly from archives.
 
10371
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10372
 
 
10373
# Compiler flag to generate thread-safe objects.
 
10374
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10375
 
 
10376
# Library versioning type.
 
10377
version_type=$version_type
 
10378
 
 
10379
# Format of library name prefix.
 
10380
libname_spec=$lt_libname_spec
 
10381
 
 
10382
# List of archive names.  First name is the real one, the rest are links.
 
10383
# The last name is the one that the linker finds with -lNAME.
 
10384
library_names_spec=$lt_library_names_spec
 
10385
 
 
10386
# The coded name of the library, if different from the real name.
 
10387
soname_spec=$lt_soname_spec
 
10388
 
 
10389
# Commands used to build and install an old-style archive.
 
10390
RANLIB=$lt_RANLIB
 
10391
old_archive_cmds=$lt_old_archive_cmds
 
10392
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10393
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10394
 
 
10395
# Create an old-style archive from a shared archive.
 
10396
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10397
 
 
10398
# Create a temporary old-style archive to link instead of a shared archive.
 
10399
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10400
 
 
10401
# Commands used to build and install a shared archive.
 
10402
archive_cmds=$lt_archive_cmds
 
10403
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10404
postinstall_cmds=$lt_postinstall_cmds
 
10405
postuninstall_cmds=$lt_postuninstall_cmds
 
10406
 
 
10407
# Commands used to build a loadable module (assumed same as above if empty)
 
10408
module_cmds=$lt_module_cmds
 
10409
module_expsym_cmds=$lt_module_expsym_cmds
 
10410
 
 
10411
# Commands to strip libraries.
 
10412
old_striplib=$lt_old_striplib
 
10413
striplib=$lt_striplib
 
10414
 
 
10415
# Dependencies to place before the objects being linked to create a
 
10416
# shared library.
 
10417
predep_objects=$lt_predep_objects
 
10418
 
 
10419
# Dependencies to place after the objects being linked to create a
 
10420
# shared library.
 
10421
postdep_objects=$lt_postdep_objects
 
10422
 
 
10423
# Dependencies to place before the objects being linked to create a
 
10424
# shared library.
 
10425
predeps=$lt_predeps
 
10426
 
 
10427
# Dependencies to place after the objects being linked to create a
 
10428
# shared library.
 
10429
postdeps=$lt_postdeps
 
10430
 
 
10431
# The library search path used internally by the compiler when linking
 
10432
# a shared library.
 
10433
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10434
 
 
10435
# Method to check whether dependent libraries are shared objects.
 
10436
deplibs_check_method=$lt_deplibs_check_method
 
10437
 
 
10438
# Command to use when deplibs_check_method == file_magic.
 
10439
file_magic_cmd=$lt_file_magic_cmd
 
10440
 
 
10441
# Flag that allows shared libraries with undefined symbols to be built.
 
10442
allow_undefined_flag=$lt_allow_undefined_flag
 
10443
 
 
10444
# Flag that forces no undefined symbols.
 
10445
no_undefined_flag=$lt_no_undefined_flag
 
10446
 
 
10447
# Commands used to finish a libtool library installation in a directory.
 
10448
finish_cmds=$lt_finish_cmds
 
10449
 
 
10450
# Same as above, but a single script fragment to be evaled but not shown.
 
10451
finish_eval=$lt_finish_eval
 
10452
 
 
10453
# Take the output of nm and produce a listing of raw symbols and C names.
 
10454
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10455
 
 
10456
# Transform the output of nm in a proper C declaration
 
10457
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10458
 
 
10459
# Transform the output of nm in a C name address pair
 
10460
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10461
 
 
10462
# This is the shared library runtime path variable.
 
10463
runpath_var=$runpath_var
 
10464
 
 
10465
# This is the shared library path variable.
 
10466
shlibpath_var=$shlibpath_var
 
10467
 
 
10468
# Is shlibpath searched before the hard-coded library search path?
 
10469
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10470
 
 
10471
# How to hardcode a shared library path into an executable.
 
10472
hardcode_action=$hardcode_action
 
10473
 
 
10474
# Whether we should hardcode library paths into libraries.
 
10475
hardcode_into_libs=$hardcode_into_libs
 
10476
 
 
10477
# Flag to hardcode \$libdir into a binary during linking.
 
10478
# This must work even if \$libdir does not exist.
 
10479
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10480
 
 
10481
# If ld is used when linking, flag to hardcode \$libdir into
 
10482
# a binary during linking. This must work even if \$libdir does
 
10483
# not exist.
 
10484
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10485
 
 
10486
# Whether we need a single -rpath flag with a separated argument.
 
10487
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10488
 
 
10489
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10490
# resulting binary.
 
10491
hardcode_direct=$hardcode_direct
 
10492
 
 
10493
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10494
# resulting binary.
 
10495
hardcode_minus_L=$hardcode_minus_L
 
10496
 
 
10497
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10498
# the resulting binary.
 
10499
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10500
 
 
10501
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10502
# and all subsequent libraries and executables linked against it.
 
10503
hardcode_automatic=$hardcode_automatic
 
10504
 
 
10505
# Variables whose values should be saved in libtool wrapper scripts and
 
10506
# restored at relink time.
 
10507
variables_saved_for_relink="$variables_saved_for_relink"
 
10508
 
 
10509
# Whether libtool must link a program against all its dependency libraries.
 
10510
link_all_deplibs=$link_all_deplibs
 
10511
 
 
10512
# Compile-time system search path for libraries
 
10513
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10514
 
 
10515
# Run-time system search path for libraries
 
10516
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10517
 
 
10518
# Fix the shell variable \$srcfile for the compiler.
 
10519
fix_srcfile_path=$lt_fix_srcfile_path
 
10520
 
 
10521
# Set to yes if exported symbols are required.
 
10522
always_export_symbols=$always_export_symbols
 
10523
 
 
10524
# The commands to list exported symbols.
 
10525
export_symbols_cmds=$lt_export_symbols_cmds
 
10526
 
 
10527
# The commands to extract the exported symbol list from a shared archive.
 
10528
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10529
 
 
10530
# Symbols that should not be listed in the preloaded symbols.
 
10531
exclude_expsyms=$lt_exclude_expsyms
 
10532
 
 
10533
# Symbols that must always be exported.
 
10534
include_expsyms=$lt_include_expsyms
 
10535
 
 
10536
# ### END LIBTOOL CONFIG
 
10537
 
 
10538
__EOF__
 
10539
 
 
10540
 
 
10541
  case $host_os in
 
10542
  aix3*)
 
10543
    cat <<\EOF >> "$cfgfile"
 
10544
 
 
10545
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10546
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10547
# vanish in a puff of smoke.
 
10548
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10549
  COLLECT_NAMES=
 
10550
  export COLLECT_NAMES
 
10551
fi
 
10552
EOF
 
10553
    ;;
 
10554
  esac
 
10555
 
 
10556
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10557
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10558
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10559
  # is reportedly fixed, but why not run on old versions too?
 
10560
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10561
 
 
10562
  mv -f "$cfgfile" "$ofile" || \
 
10563
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10564
  chmod +x "$ofile"
 
10565
 
 
10566
else
 
10567
  # If there is no Makefile yet, we rely on a make rule to execute
 
10568
  # `config.status --recheck' to rerun these tests and create the
 
10569
  # libtool script then.
 
10570
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10571
  if test -f "$ltmain_in"; then
 
10572
    test -f Makefile && make "$ltmain"
 
10573
  fi
 
10574
fi
 
10575
 
 
10576
 
 
10577
ac_ext=c
 
10578
ac_cpp='$CPP $CPPFLAGS'
 
10579
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10580
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10581
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10582
 
 
10583
CC="$lt_save_CC"
 
10584
 
 
10585
 
 
10586
# Check whether --with-tags was given.
 
10587
if test "${with_tags+set}" = set; then
 
10588
  withval=$with_tags; tagnames="$withval"
 
10589
fi
 
10590
 
 
10591
 
 
10592
if test -f "$ltmain" && test -n "$tagnames"; then
 
10593
  if test ! -f "${ofile}"; then
 
10594
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10595
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10596
  fi
 
10597
 
 
10598
  if test -z "$LTCC"; then
 
10599
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10600
    if test -z "$LTCC"; then
 
10601
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10602
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10603
    else
 
10604
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10605
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10606
    fi
 
10607
  fi
 
10608
  if test -z "$LTCFLAGS"; then
 
10609
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10610
  fi
 
10611
 
 
10612
  # Extract list of available tagged configurations in $ofile.
 
10613
  # Note that this assumes the entire list is on one line.
 
10614
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10615
 
 
10616
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10617
  for tagname in $tagnames; do
 
10618
    IFS="$lt_save_ifs"
 
10619
    # Check whether tagname contains only valid characters
 
10620
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10621
    "") ;;
 
10622
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10623
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10624
   { (exit 1); exit 1; }; }
 
10625
        ;;
 
10626
    esac
 
10627
 
 
10628
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10629
    then
 
10630
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10631
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10632
   { (exit 1); exit 1; }; }
 
10633
    fi
 
10634
 
 
10635
    # Update the list of available tags.
 
10636
    if test -n "$tagname"; then
 
10637
      echo appending configuration tag \"$tagname\" to $ofile
 
10638
 
 
10639
      case $tagname in
 
10640
      CXX)
 
10641
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10642
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10643
            (test "X$CXX" != "Xg++"))) ; then
 
10644
          ac_ext=cpp
 
10645
ac_cpp='$CXXCPP $CPPFLAGS'
 
10646
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10647
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10648
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
archive_cmds_need_lc_CXX=no
 
10654
allow_undefined_flag_CXX=
 
10655
always_export_symbols_CXX=no
 
10656
archive_expsym_cmds_CXX=
 
10657
export_dynamic_flag_spec_CXX=
 
10658
hardcode_direct_CXX=no
 
10659
hardcode_libdir_flag_spec_CXX=
 
10660
hardcode_libdir_flag_spec_ld_CXX=
 
10661
hardcode_libdir_separator_CXX=
 
10662
hardcode_minus_L_CXX=no
 
10663
hardcode_shlibpath_var_CXX=unsupported
 
10664
hardcode_automatic_CXX=no
 
10665
module_cmds_CXX=
 
10666
module_expsym_cmds_CXX=
 
10667
link_all_deplibs_CXX=unknown
 
10668
old_archive_cmds_CXX=$old_archive_cmds
 
10669
no_undefined_flag_CXX=
 
10670
whole_archive_flag_spec_CXX=
 
10671
enable_shared_with_static_runtimes_CXX=no
 
10672
 
 
10673
# Dependencies to place before and after the object being linked:
 
10674
predep_objects_CXX=
 
10675
postdep_objects_CXX=
 
10676
predeps_CXX=
 
10677
postdeps_CXX=
 
10678
compiler_lib_search_path_CXX=
 
10679
 
 
10680
# Source file extension for C++ test sources.
 
10681
ac_ext=cpp
 
10682
 
 
10683
# Object file extension for compiled C++ test sources.
 
10684
objext=o
 
10685
objext_CXX=$objext
 
10686
 
 
10687
# Code to be used in simple compile tests
 
10688
lt_simple_compile_test_code="int some_variable = 0;"
 
10689
 
 
10690
# Code to be used in simple link tests
 
10691
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
10692
 
 
10693
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10694
 
 
10695
# If no C compiler was specified, use CC.
 
10696
LTCC=${LTCC-"$CC"}
 
10697
 
 
10698
# If no C compiler flags were specified, use CFLAGS.
 
10699
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10700
 
 
10701
# Allow CC to be a program name with arguments.
 
10702
compiler=$CC
 
10703
 
 
10704
 
 
10705
# save warnings/boilerplate of simple test code
 
10706
ac_outfile=conftest.$ac_objext
 
10707
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10708
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10709
_lt_compiler_boilerplate=`cat conftest.err`
 
10710
$rm conftest*
 
10711
 
 
10712
ac_outfile=conftest.$ac_objext
 
10713
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
10714
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10715
_lt_linker_boilerplate=`cat conftest.err`
 
10716
$rm conftest*
 
10717
 
 
10718
 
 
10719
# Allow CC to be a program name with arguments.
 
10720
lt_save_CC=$CC
 
10721
lt_save_LD=$LD
 
10722
lt_save_GCC=$GCC
 
10723
GCC=$GXX
 
10724
lt_save_with_gnu_ld=$with_gnu_ld
 
10725
lt_save_path_LD=$lt_cv_path_LD
 
10726
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10727
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10728
else
 
10729
  $as_unset lt_cv_prog_gnu_ld
 
10730
fi
 
10731
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10732
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10733
else
 
10734
  $as_unset lt_cv_path_LD
 
10735
fi
 
10736
test -z "${LDCXX+set}" || LD=$LDCXX
 
10737
CC=${CXX-"c++"}
 
10738
compiler=$CC
 
10739
compiler_CXX=$CC
 
10740
for cc_temp in $compiler""; do
 
10741
  case $cc_temp in
 
10742
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10743
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10744
    \-*) ;;
 
10745
    *) break;;
 
10746
  esac
 
10747
done
 
10748
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10749
 
 
10750
 
 
10751
# We don't want -fno-exception wen compiling C++ code, so set the
 
10752
# no_builtin_flag separately
 
10753
if test "$GXX" = yes; then
 
10754
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10755
else
 
10756
  lt_prog_compiler_no_builtin_flag_CXX=
 
10757
fi
 
10758
 
 
10759
if test "$GXX" = yes; then
 
10760
  # Set up default GNU C++ configuration
 
10761
 
 
10762
  
 
10763
# Check whether --with-gnu-ld was given.
 
10764
if test "${with_gnu_ld+set}" = set; then
 
10765
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10766
else
 
10767
  with_gnu_ld=no
 
10768
fi
 
10769
 
 
10770
ac_prog=ld
 
10771
if test "$GCC" = yes; then
 
10772
  # Check if gcc -print-prog-name=ld gives a path.
 
10773
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10774
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10775
  case $host in
 
10776
  *-*-mingw*)
 
10777
    # gcc leaves a trailing carriage return which upsets mingw
 
10778
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10779
  *)
 
10780
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10781
  esac
 
10782
  case $ac_prog in
 
10783
    # Accept absolute paths.
 
10784
    [\\/]* | ?:[\\/]*)
 
10785
      re_direlt='/[^/][^/]*/\.\./'
 
10786
      # Canonicalize the pathname of ld
 
10787
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10788
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10789
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10790
      done
 
10791
      test -z "$LD" && LD="$ac_prog"
 
10792
      ;;
 
10793
  "")
 
10794
    # If it fails, then pretend we aren't using GCC.
 
10795
    ac_prog=ld
 
10796
    ;;
 
10797
  *)
 
10798
    # If it is relative, then search for the first ld in PATH.
 
10799
    with_gnu_ld=unknown
 
10800
    ;;
 
10801
  esac
 
10802
elif test "$with_gnu_ld" = yes; then
 
10803
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10804
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
10805
else
 
10806
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10807
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
10808
fi
 
10809
if test "${lt_cv_path_LD+set}" = set; then
 
10810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10811
else
 
10812
  if test -z "$LD"; then
 
10813
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10814
  for ac_dir in $PATH; do
 
10815
    IFS="$lt_save_ifs"
 
10816
    test -z "$ac_dir" && ac_dir=.
 
10817
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10818
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10819
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10820
      # but apparently some variants of GNU ld only accept -v.
 
10821
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10822
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10823
      *GNU* | *'with BFD'*)
 
10824
        test "$with_gnu_ld" != no && break
 
10825
        ;;
 
10826
      *)
 
10827
        test "$with_gnu_ld" != yes && break
 
10828
        ;;
 
10829
      esac
 
10830
    fi
 
10831
  done
 
10832
  IFS="$lt_save_ifs"
 
10833
else
 
10834
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10835
fi
 
10836
fi
 
10837
 
 
10838
LD="$lt_cv_path_LD"
 
10839
if test -n "$LD"; then
 
10840
  { echo "$as_me:$LINENO: result: $LD" >&5
 
10841
echo "${ECHO_T}$LD" >&6; }
 
10842
else
 
10843
  { echo "$as_me:$LINENO: result: no" >&5
 
10844
echo "${ECHO_T}no" >&6; }
 
10845
fi
 
10846
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10847
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10848
   { (exit 1); exit 1; }; }
 
10849
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10850
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
10851
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10853
else
 
10854
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10855
case `$LD -v 2>&1 </dev/null` in
 
10856
*GNU* | *'with BFD'*)
 
10857
  lt_cv_prog_gnu_ld=yes
 
10858
  ;;
 
10859
*)
 
10860
  lt_cv_prog_gnu_ld=no
 
10861
  ;;
 
10862
esac
 
10863
fi
 
10864
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10865
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
10866
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10867
 
 
10868
 
 
10869
 
 
10870
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10871
  # archiving commands below assume that GNU ld is being used.
 
10872
  if test "$with_gnu_ld" = yes; then
 
10873
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10874
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10875
 
 
10876
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10877
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10878
 
 
10879
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10880
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10881
    #     investigate it a little bit more. (MM)
 
10882
    wlarc='${wl}'
 
10883
 
 
10884
    # ancient GNU ld didn't support --whole-archive et. al.
 
10885
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10886
        grep 'no-whole-archive' > /dev/null; then
 
10887
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10888
    else
 
10889
      whole_archive_flag_spec_CXX=
 
10890
    fi
 
10891
  else
 
10892
    with_gnu_ld=no
 
10893
    wlarc=
 
10894
 
 
10895
    # A generic and very simple default shared library creation
 
10896
    # command for GNU C++ for the case where it uses the native
 
10897
    # linker, instead of GNU ld.  If possible, this setting should
 
10898
    # overridden to take advantage of the native linker features on
 
10899
    # the platform it is being used on.
 
10900
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10901
  fi
 
10902
 
 
10903
  # Commands to make compiler produce verbose output that lists
 
10904
  # what "hidden" libraries, object files and flags are used when
 
10905
  # linking a shared library.
 
10906
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10907
 
 
10908
else
 
10909
  GXX=no
 
10910
  with_gnu_ld=no
 
10911
  wlarc=
 
10912
fi
 
10913
 
 
10914
# PORTME: fill in a description of your system's C++ link characteristics
 
10915
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10916
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10917
ld_shlibs_CXX=yes
 
10918
case $host_os in
 
10919
  aix3*)
 
10920
    # FIXME: insert proper C++ library support
 
10921
    ld_shlibs_CXX=no
 
10922
    ;;
 
10923
  aix4* | aix5*)
 
10924
    if test "$host_cpu" = ia64; then
 
10925
      # On IA64, the linker does run time linking by default, so we don't
 
10926
      # have to do anything special.
 
10927
      aix_use_runtimelinking=no
 
10928
      exp_sym_flag='-Bexport'
 
10929
      no_entry_flag=""
 
10930
    else
 
10931
      aix_use_runtimelinking=no
 
10932
 
 
10933
      # Test if we are trying to use run time linking or normal
 
10934
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10935
      # need to do runtime linking.
 
10936
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10937
        for ld_flag in $LDFLAGS; do
 
10938
          case $ld_flag in
 
10939
          *-brtl*)
 
10940
            aix_use_runtimelinking=yes
 
10941
            break
 
10942
            ;;
 
10943
          esac
 
10944
        done
 
10945
        ;;
 
10946
      esac
 
10947
 
 
10948
      exp_sym_flag='-bexport'
 
10949
      no_entry_flag='-bnoentry'
 
10950
    fi
 
10951
 
 
10952
    # When large executables or shared objects are built, AIX ld can
 
10953
    # have problems creating the table of contents.  If linking a library
 
10954
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10955
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10956
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10957
 
 
10958
    archive_cmds_CXX=''
 
10959
    hardcode_direct_CXX=yes
 
10960
    hardcode_libdir_separator_CXX=':'
 
10961
    link_all_deplibs_CXX=yes
 
10962
 
 
10963
    if test "$GXX" = yes; then
 
10964
      case $host_os in aix4.[012]|aix4.[012].*)
 
10965
      # We only want to do this on AIX 4.2 and lower, the check
 
10966
      # below for broken collect2 doesn't work under 4.3+
 
10967
        collect2name=`${CC} -print-prog-name=collect2`
 
10968
        if test -f "$collect2name" && \
 
10969
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10970
        then
 
10971
          # We have reworked collect2
 
10972
          :
 
10973
        else
 
10974
          # We have old collect2
 
10975
          hardcode_direct_CXX=unsupported
 
10976
          # It fails to find uninstalled libraries when the uninstalled
 
10977
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10978
          # to unsupported forces relinking
 
10979
          hardcode_minus_L_CXX=yes
 
10980
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10981
          hardcode_libdir_separator_CXX=
 
10982
        fi
 
10983
        ;;
 
10984
      esac
 
10985
      shared_flag='-shared'
 
10986
      if test "$aix_use_runtimelinking" = yes; then
 
10987
        shared_flag="$shared_flag "'${wl}-G'
 
10988
      fi
 
10989
    else
 
10990
      # not using gcc
 
10991
      if test "$host_cpu" = ia64; then
 
10992
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10993
        # chokes on -Wl,-G. The following line is correct:
 
10994
        shared_flag='-G'
 
10995
      else
 
10996
        if test "$aix_use_runtimelinking" = yes; then
 
10997
          shared_flag='${wl}-G'
 
10998
        else
 
10999
          shared_flag='${wl}-bM:SRE'
 
11000
        fi
 
11001
      fi
 
11002
    fi
 
11003
 
 
11004
    # It seems that -bexpall does not export symbols beginning with
 
11005
    # underscore (_), so it is better to generate a list of symbols to export.
 
11006
    always_export_symbols_CXX=yes
 
11007
    if test "$aix_use_runtimelinking" = yes; then
 
11008
      # Warning - without using the other runtime loading flags (-brtl),
 
11009
      # -berok will link without error, but may produce a broken library.
 
11010
      allow_undefined_flag_CXX='-berok'
 
11011
      # Determine the default libpath from the value encoded in an empty executable.
 
11012
      cat >conftest.$ac_ext <<_ACEOF
 
11013
/* confdefs.h.  */
 
11014
_ACEOF
 
11015
cat confdefs.h >>conftest.$ac_ext
 
11016
cat >>conftest.$ac_ext <<_ACEOF
 
11017
/* end confdefs.h.  */
 
11018
 
 
11019
int
 
11020
main ()
 
11021
{
 
11022
 
 
11023
  ;
 
11024
  return 0;
 
11025
}
 
11026
_ACEOF
 
11027
rm -f conftest.$ac_objext conftest$ac_exeext
 
11028
if { (ac_try="$ac_link"
 
11029
case "(($ac_try" in
 
11030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11031
  *) ac_try_echo=$ac_try;;
 
11032
esac
 
11033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11034
  (eval "$ac_link") 2>conftest.er1
 
11035
  ac_status=$?
 
11036
  grep -v '^ *+' conftest.er1 >conftest.err
 
11037
  rm -f conftest.er1
 
11038
  cat conftest.err >&5
 
11039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11040
  (exit $ac_status); } && {
 
11041
         test -z "$ac_cxx_werror_flag" ||
 
11042
         test ! -s conftest.err
 
11043
       } && test -s conftest$ac_exeext &&
 
11044
       $as_test_x conftest$ac_exeext; then
 
11045
  
 
11046
lt_aix_libpath_sed='
 
11047
    /Import File Strings/,/^$/ {
 
11048
        /^0/ {
 
11049
            s/^0  *\(.*\)$/\1/
 
11050
            p
 
11051
        }
 
11052
    }'
 
11053
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11054
# Check for a 64-bit object if we didn't find anything.
 
11055
if test -z "$aix_libpath"; then
 
11056
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11057
fi
 
11058
else
 
11059
  echo "$as_me: failed program was:" >&5
 
11060
sed 's/^/| /' conftest.$ac_ext >&5
 
11061
 
 
11062
        
 
11063
fi
 
11064
 
 
11065
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11066
      conftest$ac_exeext conftest.$ac_ext
 
11067
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11068
 
 
11069
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11070
 
 
11071
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11072
     else
 
11073
      if test "$host_cpu" = ia64; then
 
11074
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11075
        allow_undefined_flag_CXX="-z nodefs"
 
11076
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11077
      else
 
11078
        # Determine the default libpath from the value encoded in an empty executable.
 
11079
        cat >conftest.$ac_ext <<_ACEOF
 
11080
/* confdefs.h.  */
 
11081
_ACEOF
 
11082
cat confdefs.h >>conftest.$ac_ext
 
11083
cat >>conftest.$ac_ext <<_ACEOF
 
11084
/* end confdefs.h.  */
 
11085
 
 
11086
int
 
11087
main ()
 
11088
{
 
11089
 
 
11090
  ;
 
11091
  return 0;
 
11092
}
 
11093
_ACEOF
 
11094
rm -f conftest.$ac_objext conftest$ac_exeext
 
11095
if { (ac_try="$ac_link"
 
11096
case "(($ac_try" in
 
11097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11098
  *) ac_try_echo=$ac_try;;
 
11099
esac
 
11100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11101
  (eval "$ac_link") 2>conftest.er1
 
11102
  ac_status=$?
 
11103
  grep -v '^ *+' conftest.er1 >conftest.err
 
11104
  rm -f conftest.er1
 
11105
  cat conftest.err >&5
 
11106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11107
  (exit $ac_status); } && {
 
11108
         test -z "$ac_cxx_werror_flag" ||
 
11109
         test ! -s conftest.err
 
11110
       } && test -s conftest$ac_exeext &&
 
11111
       $as_test_x conftest$ac_exeext; then
 
11112
  
 
11113
lt_aix_libpath_sed='
 
11114
    /Import File Strings/,/^$/ {
 
11115
        /^0/ {
 
11116
            s/^0  *\(.*\)$/\1/
 
11117
            p
 
11118
        }
 
11119
    }'
 
11120
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11121
# Check for a 64-bit object if we didn't find anything.
 
11122
if test -z "$aix_libpath"; then
 
11123
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11124
fi
 
11125
else
 
11126
  echo "$as_me: failed program was:" >&5
 
11127
sed 's/^/| /' conftest.$ac_ext >&5
 
11128
 
 
11129
        
 
11130
fi
 
11131
 
 
11132
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11133
      conftest$ac_exeext conftest.$ac_ext
 
11134
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11135
 
 
11136
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11137
        # Warning - without using the other run time loading flags,
 
11138
        # -berok will link without error, but may produce a broken library.
 
11139
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11140
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11141
        # Exported symbols can be pulled into shared objects from archives
 
11142
        whole_archive_flag_spec_CXX='$convenience'
 
11143
        archive_cmds_need_lc_CXX=yes
 
11144
        # This is similar to how AIX traditionally builds its shared libraries.
 
11145
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11146
      fi
 
11147
    fi
 
11148
    ;;
 
11149
 
 
11150
  beos*)
 
11151
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11152
      allow_undefined_flag_CXX=unsupported
 
11153
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11154
      # support --undefined.  This deserves some investigation.  FIXME
 
11155
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11156
    else
 
11157
      ld_shlibs_CXX=no
 
11158
    fi
 
11159
    ;;
 
11160
 
 
11161
  chorus*)
 
11162
    case $cc_basename in
 
11163
      *)
 
11164
        # FIXME: insert proper C++ library support
 
11165
        ld_shlibs_CXX=no
 
11166
        ;;
 
11167
    esac
 
11168
    ;;
 
11169
 
 
11170
  cygwin* | mingw* | pw32*)
 
11171
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11172
    # as there is no search path for DLLs.
 
11173
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11174
    allow_undefined_flag_CXX=unsupported
 
11175
    always_export_symbols_CXX=no
 
11176
    enable_shared_with_static_runtimes_CXX=yes
 
11177
 
 
11178
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11179
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11180
      # If the export-symbols file already is a .def file (1st line
 
11181
      # is EXPORTS), use it as is; otherwise, prepend...
 
11182
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11183
        cp $export_symbols $output_objdir/$soname.def;
 
11184
      else
 
11185
        echo EXPORTS > $output_objdir/$soname.def;
 
11186
        cat $export_symbols >> $output_objdir/$soname.def;
 
11187
      fi~
 
11188
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11189
    else
 
11190
      ld_shlibs_CXX=no
 
11191
    fi
 
11192
  ;;
 
11193
      darwin* | rhapsody*)
 
11194
        case $host_os in
 
11195
        rhapsody* | darwin1.[012])
 
11196
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11197
         ;;
 
11198
       *) # Darwin 1.3 on
 
11199
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11200
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11201
         else
 
11202
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11203
             10.[012])
 
11204
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11205
               ;;
 
11206
             10.*)
 
11207
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11208
               ;;
 
11209
           esac
 
11210
         fi
 
11211
         ;;
 
11212
        esac
 
11213
      archive_cmds_need_lc_CXX=no
 
11214
      hardcode_direct_CXX=no
 
11215
      hardcode_automatic_CXX=yes
 
11216
      hardcode_shlibpath_var_CXX=unsupported
 
11217
      whole_archive_flag_spec_CXX=''
 
11218
      link_all_deplibs_CXX=yes
 
11219
 
 
11220
    if test "$GXX" = yes ; then
 
11221
      lt_int_apple_cc_single_mod=no
 
11222
      output_verbose_link_cmd='echo'
 
11223
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11224
       lt_int_apple_cc_single_mod=yes
 
11225
      fi
 
11226
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11227
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11228
      else
 
11229
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11230
        fi
 
11231
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11232
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11233
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11234
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11235
          else
 
11236
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11237
          fi
 
11238
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11239
      else
 
11240
      case $cc_basename in
 
11241
        xlc*)
 
11242
         output_verbose_link_cmd='echo'
 
11243
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
11244
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11245
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11246
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11247
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11248
          ;;
 
11249
       *)
 
11250
         ld_shlibs_CXX=no
 
11251
          ;;
 
11252
      esac
 
11253
      fi
 
11254
        ;;
 
11255
 
 
11256
  dgux*)
 
11257
    case $cc_basename in
 
11258
      ec++*)
 
11259
        # FIXME: insert proper C++ library support
 
11260
        ld_shlibs_CXX=no
 
11261
        ;;
 
11262
      ghcx*)
 
11263
        # Green Hills C++ Compiler
 
11264
        # FIXME: insert proper C++ library support
 
11265
        ld_shlibs_CXX=no
 
11266
        ;;
 
11267
      *)
 
11268
        # FIXME: insert proper C++ library support
 
11269
        ld_shlibs_CXX=no
 
11270
        ;;
 
11271
    esac
 
11272
    ;;
 
11273
  freebsd[12]*)
 
11274
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11275
    ld_shlibs_CXX=no
 
11276
    ;;
 
11277
  freebsd-elf*)
 
11278
    archive_cmds_need_lc_CXX=no
 
11279
    ;;
 
11280
  freebsd* | dragonfly*)
 
11281
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11282
    # conventions
 
11283
    ld_shlibs_CXX=yes
 
11284
    ;;
 
11285
  gnu*)
 
11286
    ;;
 
11287
  hpux9*)
 
11288
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11289
    hardcode_libdir_separator_CXX=:
 
11290
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11291
    hardcode_direct_CXX=yes
 
11292
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11293
                                # but as the default
 
11294
                                # location of the library.
 
11295
 
 
11296
    case $cc_basename in
 
11297
    CC*)
 
11298
      # FIXME: insert proper C++ library support
 
11299
      ld_shlibs_CXX=no
 
11300
      ;;
 
11301
    aCC*)
 
11302
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11303
      # Commands to make compiler produce verbose output that lists
 
11304
      # what "hidden" libraries, object files and flags are used when
 
11305
      # linking a shared library.
 
11306
      #
 
11307
      # There doesn't appear to be a way to prevent this compiler from
 
11308
      # explicitly linking system object files so we need to strip them
 
11309
      # from the output so that they don't get included in the library
 
11310
      # dependencies.
 
11311
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11312
      ;;
 
11313
    *)
 
11314
      if test "$GXX" = yes; then
 
11315
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11316
      else
 
11317
        # FIXME: insert proper C++ library support
 
11318
        ld_shlibs_CXX=no
 
11319
      fi
 
11320
      ;;
 
11321
    esac
 
11322
    ;;
 
11323
  hpux10*|hpux11*)
 
11324
    if test $with_gnu_ld = no; then
 
11325
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11326
      hardcode_libdir_separator_CXX=:
 
11327
 
 
11328
      case $host_cpu in
 
11329
      hppa*64*|ia64*) ;;
 
11330
      *)
 
11331
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11332
        ;;
 
11333
      esac
 
11334
    fi
 
11335
    case $host_cpu in
 
11336
    hppa*64*|ia64*)
 
11337
      hardcode_direct_CXX=no
 
11338
      hardcode_shlibpath_var_CXX=no
 
11339
      ;;
 
11340
    *)
 
11341
      hardcode_direct_CXX=yes
 
11342
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11343
                                              # but as the default
 
11344
                                              # location of the library.
 
11345
      ;;
 
11346
    esac
 
11347
 
 
11348
    case $cc_basename in
 
11349
      CC*)
 
11350
        # FIXME: insert proper C++ library support
 
11351
        ld_shlibs_CXX=no
 
11352
        ;;
 
11353
      aCC*)
 
11354
        case $host_cpu in
 
11355
        hppa*64*)
 
11356
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11357
          ;;
 
11358
        ia64*)
 
11359
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11360
          ;;
 
11361
        *)
 
11362
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11363
          ;;
 
11364
        esac
 
11365
        # Commands to make compiler produce verbose output that lists
 
11366
        # what "hidden" libraries, object files and flags are used when
 
11367
        # linking a shared library.
 
11368
        #
 
11369
        # There doesn't appear to be a way to prevent this compiler from
 
11370
        # explicitly linking system object files so we need to strip them
 
11371
        # from the output so that they don't get included in the library
 
11372
        # dependencies.
 
11373
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11374
        ;;
 
11375
      *)
 
11376
        if test "$GXX" = yes; then
 
11377
          if test $with_gnu_ld = no; then
 
11378
            case $host_cpu in
 
11379
            hppa*64*)
 
11380
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11381
              ;;
 
11382
            ia64*)
 
11383
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11384
              ;;
 
11385
            *)
 
11386
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11387
              ;;
 
11388
            esac
 
11389
          fi
 
11390
        else
 
11391
          # FIXME: insert proper C++ library support
 
11392
          ld_shlibs_CXX=no
 
11393
        fi
 
11394
        ;;
 
11395
    esac
 
11396
    ;;
 
11397
  interix[3-9]*)
 
11398
    hardcode_direct_CXX=no
 
11399
    hardcode_shlibpath_var_CXX=no
 
11400
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11401
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11402
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11403
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11404
    # default) and relocated if they conflict, which is a slow very memory
 
11405
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11406
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11407
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11408
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11409
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11410
    ;;
 
11411
  irix5* | irix6*)
 
11412
    case $cc_basename in
 
11413
      CC*)
 
11414
        # SGI C++
 
11415
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11416
 
 
11417
        # Archives containing C++ object files must be created using
 
11418
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11419
        # necessary to make sure instantiated templates are included
 
11420
        # in the archive.
 
11421
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11422
        ;;
 
11423
      *)
 
11424
        if test "$GXX" = yes; then
 
11425
          if test "$with_gnu_ld" = no; then
 
11426
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11427
          else
 
11428
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11429
          fi
 
11430
        fi
 
11431
        link_all_deplibs_CXX=yes
 
11432
        ;;
 
11433
    esac
 
11434
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11435
    hardcode_libdir_separator_CXX=:
 
11436
    ;;
 
11437
  linux* | k*bsd*-gnu)
 
11438
    case $cc_basename in
 
11439
      KCC*)
 
11440
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11441
 
 
11442
        # KCC will only create a shared library if the output file
 
11443
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11444
        # to its proper name (with version) after linking.
 
11445
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11446
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11447
        # Commands to make compiler produce verbose output that lists
 
11448
        # what "hidden" libraries, object files and flags are used when
 
11449
        # linking a shared library.
 
11450
        #
 
11451
        # There doesn't appear to be a way to prevent this compiler from
 
11452
        # explicitly linking system object files so we need to strip them
 
11453
        # from the output so that they don't get included in the library
 
11454
        # dependencies.
 
11455
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11456
 
 
11457
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11458
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11459
 
 
11460
        # Archives containing C++ object files must be created using
 
11461
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11462
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11463
        ;;
 
11464
      icpc*)
 
11465
        # Intel C++
 
11466
        with_gnu_ld=yes
 
11467
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11468
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11469
        # earlier do not add the objects themselves.
 
11470
        case `$CC -V 2>&1` in
 
11471
        *"Version 7."*)
 
11472
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11473
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11474
          ;;
 
11475
        *)  # Version 8.0 or newer
 
11476
          tmp_idyn=
 
11477
          case $host_cpu in
 
11478
            ia64*) tmp_idyn=' -i_dynamic';;
 
11479
          esac
 
11480
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11481
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11482
          ;;
 
11483
        esac
 
11484
        archive_cmds_need_lc_CXX=no
 
11485
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11486
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11487
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11488
        ;;
 
11489
      pgCC*)
 
11490
        # Portland Group C++ compiler
 
11491
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11492
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
11493
 
 
11494
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11495
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11496
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11497
        ;;
 
11498
      cxx*)
 
11499
        # Compaq C++
 
11500
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11501
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11502
 
 
11503
        runpath_var=LD_RUN_PATH
 
11504
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11505
        hardcode_libdir_separator_CXX=:
 
11506
 
 
11507
        # Commands to make compiler produce verbose output that lists
 
11508
        # what "hidden" libraries, object files and flags are used when
 
11509
        # linking a shared library.
 
11510
        #
 
11511
        # There doesn't appear to be a way to prevent this compiler from
 
11512
        # explicitly linking system object files so we need to strip them
 
11513
        # from the output so that they don't get included in the library
 
11514
        # dependencies.
 
11515
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11516
        ;;
 
11517
      *)
 
11518
        case `$CC -V 2>&1 | sed 5q` in
 
11519
        *Sun\ C*)
 
11520
          # Sun C++ 5.9
 
11521
          no_undefined_flag_CXX=' -zdefs'
 
11522
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11523
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
11524
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11525
          whole_archive_flag_spec_CXX='${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'
 
11526
 
 
11527
          # Not sure whether something based on
 
11528
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11529
          # would be better.
 
11530
          output_verbose_link_cmd='echo'
 
11531
 
 
11532
          # Archives containing C++ object files must be created using
 
11533
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11534
          # necessary to make sure instantiated templates are included
 
11535
          # in the archive.
 
11536
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11537
          ;;
 
11538
        esac
 
11539
        ;;
 
11540
    esac
 
11541
    ;;
 
11542
  lynxos*)
 
11543
    # FIXME: insert proper C++ library support
 
11544
    ld_shlibs_CXX=no
 
11545
    ;;
 
11546
  m88k*)
 
11547
    # FIXME: insert proper C++ library support
 
11548
    ld_shlibs_CXX=no
 
11549
    ;;
 
11550
  mvs*)
 
11551
    case $cc_basename in
 
11552
      cxx*)
 
11553
        # FIXME: insert proper C++ library support
 
11554
        ld_shlibs_CXX=no
 
11555
        ;;
 
11556
      *)
 
11557
        # FIXME: insert proper C++ library support
 
11558
        ld_shlibs_CXX=no
 
11559
        ;;
 
11560
    esac
 
11561
    ;;
 
11562
  netbsd* | netbsdelf*-gnu)
 
11563
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11564
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11565
      wlarc=
 
11566
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11567
      hardcode_direct_CXX=yes
 
11568
      hardcode_shlibpath_var_CXX=no
 
11569
    fi
 
11570
    # Workaround some broken pre-1.5 toolchains
 
11571
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11572
    ;;
 
11573
  openbsd2*)
 
11574
    # C++ shared libraries are fairly broken
 
11575
    ld_shlibs_CXX=no
 
11576
    ;;
 
11577
  openbsd*)
 
11578
    if test -f /usr/libexec/ld.so; then
 
11579
      hardcode_direct_CXX=yes
 
11580
      hardcode_shlibpath_var_CXX=no
 
11581
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11582
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11583
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11584
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11585
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11586
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11587
      fi
 
11588
      output_verbose_link_cmd='echo'
 
11589
    else
 
11590
      ld_shlibs_CXX=no
 
11591
    fi
 
11592
    ;;
 
11593
  osf3*)
 
11594
    case $cc_basename in
 
11595
      KCC*)
 
11596
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11597
 
 
11598
        # KCC will only create a shared library if the output file
 
11599
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11600
        # to its proper name (with version) after linking.
 
11601
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11602
 
 
11603
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11604
        hardcode_libdir_separator_CXX=:
 
11605
 
 
11606
        # Archives containing C++ object files must be created using
 
11607
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11608
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11609
 
 
11610
        ;;
 
11611
      RCC*)
 
11612
        # Rational C++ 2.4.1
 
11613
        # FIXME: insert proper C++ library support
 
11614
        ld_shlibs_CXX=no
 
11615
        ;;
 
11616
      cxx*)
 
11617
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11618
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11619
 
 
11620
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11621
        hardcode_libdir_separator_CXX=:
 
11622
 
 
11623
        # Commands to make compiler produce verbose output that lists
 
11624
        # what "hidden" libraries, object files and flags are used when
 
11625
        # linking a shared library.
 
11626
        #
 
11627
        # There doesn't appear to be a way to prevent this compiler from
 
11628
        # explicitly linking system object files so we need to strip them
 
11629
        # from the output so that they don't get included in the library
 
11630
        # dependencies.
 
11631
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11632
        ;;
 
11633
      *)
 
11634
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11635
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11636
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11637
 
 
11638
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11639
          hardcode_libdir_separator_CXX=:
 
11640
 
 
11641
          # Commands to make compiler produce verbose output that lists
 
11642
          # what "hidden" libraries, object files and flags are used when
 
11643
          # linking a shared library.
 
11644
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11645
 
 
11646
        else
 
11647
          # FIXME: insert proper C++ library support
 
11648
          ld_shlibs_CXX=no
 
11649
        fi
 
11650
        ;;
 
11651
    esac
 
11652
    ;;
 
11653
  osf4* | osf5*)
 
11654
    case $cc_basename in
 
11655
      KCC*)
 
11656
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11657
 
 
11658
        # KCC will only create a shared library if the output file
 
11659
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11660
        # to its proper name (with version) after linking.
 
11661
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11662
 
 
11663
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11664
        hardcode_libdir_separator_CXX=:
 
11665
 
 
11666
        # Archives containing C++ object files must be created using
 
11667
        # the KAI C++ compiler.
 
11668
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11669
        ;;
 
11670
      RCC*)
 
11671
        # Rational C++ 2.4.1
 
11672
        # FIXME: insert proper C++ library support
 
11673
        ld_shlibs_CXX=no
 
11674
        ;;
 
11675
      cxx*)
 
11676
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11677
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11678
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11679
          echo "-hidden">> $lib.exp~
 
11680
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
11681
          $rm $lib.exp'
 
11682
 
 
11683
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11684
        hardcode_libdir_separator_CXX=:
 
11685
 
 
11686
        # Commands to make compiler produce verbose output that lists
 
11687
        # what "hidden" libraries, object files and flags are used when
 
11688
        # linking a shared library.
 
11689
        #
 
11690
        # There doesn't appear to be a way to prevent this compiler from
 
11691
        # explicitly linking system object files so we need to strip them
 
11692
        # from the output so that they don't get included in the library
 
11693
        # dependencies.
 
11694
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11695
        ;;
 
11696
      *)
 
11697
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11698
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11699
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11700
 
 
11701
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11702
          hardcode_libdir_separator_CXX=:
 
11703
 
 
11704
          # Commands to make compiler produce verbose output that lists
 
11705
          # what "hidden" libraries, object files and flags are used when
 
11706
          # linking a shared library.
 
11707
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11708
 
 
11709
        else
 
11710
          # FIXME: insert proper C++ library support
 
11711
          ld_shlibs_CXX=no
 
11712
        fi
 
11713
        ;;
 
11714
    esac
 
11715
    ;;
 
11716
  psos*)
 
11717
    # FIXME: insert proper C++ library support
 
11718
    ld_shlibs_CXX=no
 
11719
    ;;
 
11720
  sunos4*)
 
11721
    case $cc_basename in
 
11722
      CC*)
 
11723
        # Sun C++ 4.x
 
11724
        # FIXME: insert proper C++ library support
 
11725
        ld_shlibs_CXX=no
 
11726
        ;;
 
11727
      lcc*)
 
11728
        # Lucid
 
11729
        # FIXME: insert proper C++ library support
 
11730
        ld_shlibs_CXX=no
 
11731
        ;;
 
11732
      *)
 
11733
        # FIXME: insert proper C++ library support
 
11734
        ld_shlibs_CXX=no
 
11735
        ;;
 
11736
    esac
 
11737
    ;;
 
11738
  solaris*)
 
11739
    case $cc_basename in
 
11740
      CC*)
 
11741
        # Sun C++ 4.2, 5.x and Centerline C++
 
11742
        archive_cmds_need_lc_CXX=yes
 
11743
        no_undefined_flag_CXX=' -zdefs'
 
11744
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11745
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11746
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11747
 
 
11748
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11749
        hardcode_shlibpath_var_CXX=no
 
11750
        case $host_os in
 
11751
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11752
          *)
 
11753
            # The compiler driver will combine and reorder linker options,
 
11754
            # but understands `-z linker_flag'.
 
11755
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11756
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
11757
            ;;
 
11758
        esac
 
11759
        link_all_deplibs_CXX=yes
 
11760
 
 
11761
        output_verbose_link_cmd='echo'
 
11762
 
 
11763
        # Archives containing C++ object files must be created using
 
11764
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11765
        # necessary to make sure instantiated templates are included
 
11766
        # in the archive.
 
11767
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11768
        ;;
 
11769
      gcx*)
 
11770
        # Green Hills C++ Compiler
 
11771
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11772
 
 
11773
        # The C++ compiler must be used to create the archive.
 
11774
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11775
        ;;
 
11776
      *)
 
11777
        # GNU C++ compiler with Solaris linker
 
11778
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11779
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11780
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11781
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11782
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11783
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11784
 
 
11785
            # Commands to make compiler produce verbose output that lists
 
11786
            # what "hidden" libraries, object files and flags are used when
 
11787
            # linking a shared library.
 
11788
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11789
          else
 
11790
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11791
            # platform.
 
11792
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11793
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11794
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11795
 
 
11796
            # Commands to make compiler produce verbose output that lists
 
11797
            # what "hidden" libraries, object files and flags are used when
 
11798
            # linking a shared library.
 
11799
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11800
          fi
 
11801
 
 
11802
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11803
          case $host_os in
 
11804
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11805
          *)
 
11806
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11807
            ;;
 
11808
          esac
 
11809
        fi
 
11810
        ;;
 
11811
    esac
 
11812
    ;;
 
11813
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11814
    no_undefined_flag_CXX='${wl}-z,text'
 
11815
    archive_cmds_need_lc_CXX=no
 
11816
    hardcode_shlibpath_var_CXX=no
 
11817
    runpath_var='LD_RUN_PATH'
 
11818
 
 
11819
    case $cc_basename in
 
11820
      CC*)
 
11821
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11822
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11823
        ;;
 
11824
      *)
 
11825
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11826
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11827
        ;;
 
11828
    esac
 
11829
    ;;
 
11830
  sysv5* | sco3.2v5* | sco5v6*)
 
11831
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11832
    # link with -lc, and that would cause any symbols used from libc to
 
11833
    # always be unresolved, which means just about no library would
 
11834
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11835
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11836
    # as -z defs.
 
11837
    # For security reasons, it is highly recommended that you always
 
11838
    # use absolute paths for naming shared libraries, and exclude the
 
11839
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11840
    # requires that you compile everything twice, which is a pain.
 
11841
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11842
    # non-empty value in the environment.  Most likely only useful for
 
11843
    # creating official distributions of packages.
 
11844
    # This is a hack until libtool officially supports absolute path
 
11845
    # names for shared libraries.
 
11846
    no_undefined_flag_CXX='${wl}-z,text'
 
11847
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11848
    archive_cmds_need_lc_CXX=no
 
11849
    hardcode_shlibpath_var_CXX=no
 
11850
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11851
    hardcode_libdir_separator_CXX=':'
 
11852
    link_all_deplibs_CXX=yes
 
11853
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11854
    runpath_var='LD_RUN_PATH'
 
11855
 
 
11856
    case $cc_basename in
 
11857
      CC*)
 
11858
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11859
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11860
        ;;
 
11861
      *)
 
11862
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11863
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11864
        ;;
 
11865
    esac
 
11866
    ;;
 
11867
  tandem*)
 
11868
    case $cc_basename in
 
11869
      NCC*)
 
11870
        # NonStop-UX NCC 3.20
 
11871
        # FIXME: insert proper C++ library support
 
11872
        ld_shlibs_CXX=no
 
11873
        ;;
 
11874
      *)
 
11875
        # FIXME: insert proper C++ library support
 
11876
        ld_shlibs_CXX=no
 
11877
        ;;
 
11878
    esac
 
11879
    ;;
 
11880
  vxworks*)
 
11881
    # FIXME: insert proper C++ library support
 
11882
    ld_shlibs_CXX=no
 
11883
    ;;
 
11884
  *)
 
11885
    # FIXME: insert proper C++ library support
 
11886
    ld_shlibs_CXX=no
 
11887
    ;;
 
11888
esac
 
11889
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11890
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11891
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11892
 
 
11893
GCC_CXX="$GXX"
 
11894
LD_CXX="$LD"
 
11895
 
 
11896
 
 
11897
cat > conftest.$ac_ext <<EOF
 
11898
class Foo
 
11899
{
 
11900
public:
 
11901
  Foo (void) { a = 0; }
 
11902
private:
 
11903
  int a;
 
11904
};
 
11905
EOF
 
11906
 
 
11907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11908
  (eval $ac_compile) 2>&5
 
11909
  ac_status=$?
 
11910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11911
  (exit $ac_status); }; then
 
11912
  # Parse the compiler output and extract the necessary
 
11913
  # objects, libraries and library flags.
 
11914
 
 
11915
  # Sentinel used to keep track of whether or not we are before
 
11916
  # the conftest object file.
 
11917
  pre_test_object_deps_done=no
 
11918
 
 
11919
  # The `*' in the case matches for architectures that use `case' in
 
11920
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11921
  # eval without this substitution.
 
11922
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11923
 
 
11924
  for p in `eval $output_verbose_link_cmd`; do
 
11925
    case $p in
 
11926
 
 
11927
    -L* | -R* | -l*)
 
11928
       # Some compilers place space between "-{L,R}" and the path.
 
11929
       # Remove the space.
 
11930
       if test $p = "-L" \
 
11931
          || test $p = "-R"; then
 
11932
         prev=$p
 
11933
         continue
 
11934
       else
 
11935
         prev=
 
11936
       fi
 
11937
 
 
11938
       if test "$pre_test_object_deps_done" = no; then
 
11939
         case $p in
 
11940
         -L* | -R*)
 
11941
           # Internal compiler library paths should come after those
 
11942
           # provided the user.  The postdeps already come after the
 
11943
           # user supplied libs so there is no need to process them.
 
11944
           if test -z "$compiler_lib_search_path_CXX"; then
 
11945
             compiler_lib_search_path_CXX="${prev}${p}"
 
11946
           else
 
11947
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11948
           fi
 
11949
           ;;
 
11950
         # The "-l" case would never come before the object being
 
11951
         # linked, so don't bother handling this case.
 
11952
         esac
 
11953
       else
 
11954
         if test -z "$postdeps_CXX"; then
 
11955
           postdeps_CXX="${prev}${p}"
 
11956
         else
 
11957
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11958
         fi
 
11959
       fi
 
11960
       ;;
 
11961
 
 
11962
    *.$objext)
 
11963
       # This assumes that the test object file only shows up
 
11964
       # once in the compiler output.
 
11965
       if test "$p" = "conftest.$objext"; then
 
11966
         pre_test_object_deps_done=yes
 
11967
         continue
 
11968
       fi
 
11969
 
 
11970
       if test "$pre_test_object_deps_done" = no; then
 
11971
         if test -z "$predep_objects_CXX"; then
 
11972
           predep_objects_CXX="$p"
 
11973
         else
 
11974
           predep_objects_CXX="$predep_objects_CXX $p"
 
11975
         fi
 
11976
       else
 
11977
         if test -z "$postdep_objects_CXX"; then
 
11978
           postdep_objects_CXX="$p"
 
11979
         else
 
11980
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11981
         fi
 
11982
       fi
 
11983
       ;;
 
11984
 
 
11985
    *) ;; # Ignore the rest.
 
11986
 
 
11987
    esac
 
11988
  done
 
11989
 
 
11990
  # Clean up.
 
11991
  rm -f a.out a.exe
 
11992
else
 
11993
  echo "libtool.m4: error: problem compiling CXX test program"
 
11994
fi
 
11995
 
 
11996
$rm -f confest.$objext
 
11997
 
 
11998
# PORTME: override above test on systems where it is broken
 
11999
case $host_os in
 
12000
interix[3-9]*)
 
12001
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12002
  # hack all around it, let's just trust "g++" to DTRT.
 
12003
  predep_objects_CXX=
 
12004
  postdep_objects_CXX=
 
12005
  postdeps_CXX=
 
12006
  ;;
 
12007
 
 
12008
linux*)
 
12009
  case `$CC -V 2>&1 | sed 5q` in
 
12010
  *Sun\ C*)
 
12011
    # Sun C++ 5.9
 
12012
    #
 
12013
    # The more standards-conforming stlport4 library is
 
12014
    # incompatible with the Cstd library. Avoid specifying
 
12015
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12016
    # -library=stlport4 depends on it.
 
12017
    case " $CXX $CXXFLAGS " in
 
12018
    *" -library=stlport4 "*)
 
12019
      solaris_use_stlport4=yes
 
12020
      ;;
 
12021
    esac
 
12022
    if test "$solaris_use_stlport4" != yes; then
 
12023
      postdeps_CXX='-library=Cstd -library=Crun'
 
12024
    fi
 
12025
    ;;
 
12026
  esac
 
12027
  ;;
 
12028
 
 
12029
solaris*)
 
12030
  case $cc_basename in
 
12031
  CC*)
 
12032
    # The more standards-conforming stlport4 library is
 
12033
    # incompatible with the Cstd library. Avoid specifying
 
12034
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12035
    # -library=stlport4 depends on it.
 
12036
    case " $CXX $CXXFLAGS " in
 
12037
    *" -library=stlport4 "*)
 
12038
      solaris_use_stlport4=yes
 
12039
      ;;
 
12040
    esac
 
12041
 
 
12042
    # Adding this requires a known-good setup of shared libraries for
 
12043
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12044
    # archive will be linked into the output, leading to subtle bugs.
 
12045
    if test "$solaris_use_stlport4" != yes; then
 
12046
      postdeps_CXX='-library=Cstd -library=Crun'
 
12047
    fi
 
12048
    ;;
 
12049
  esac
 
12050
  ;;
 
12051
esac
 
12052
 
 
12053
 
 
12054
case " $postdeps_CXX " in
 
12055
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12056
esac
 
12057
 
 
12058
lt_prog_compiler_wl_CXX=
 
12059
lt_prog_compiler_pic_CXX=
 
12060
lt_prog_compiler_static_CXX=
 
12061
 
 
12062
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12063
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12064
 
 
12065
  # C++ specific cases for pic, static, wl, etc.
 
12066
  if test "$GXX" = yes; then
 
12067
    lt_prog_compiler_wl_CXX='-Wl,'
 
12068
    lt_prog_compiler_static_CXX='-static'
 
12069
 
 
12070
    case $host_os in
 
12071
    aix*)
 
12072
      # All AIX code is PIC.
 
12073
      if test "$host_cpu" = ia64; then
 
12074
        # AIX 5 now supports IA64 processor
 
12075
        lt_prog_compiler_static_CXX='-Bstatic'
 
12076
      fi
 
12077
      ;;
 
12078
    amigaos*)
 
12079
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12080
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12081
      # like `-m68040'.
 
12082
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12083
      ;;
 
12084
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12085
      # PIC is the default for these OSes.
 
12086
      ;;
 
12087
    mingw* | cygwin* | os2* | pw32*)
 
12088
      # This hack is so that the source file can tell whether it is being
 
12089
      # built for inclusion in a dll (and should export symbols for example).
 
12090
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12091
      # (--disable-auto-import) libraries
 
12092
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12093
      ;;
 
12094
    darwin* | rhapsody*)
 
12095
      # PIC is the default on this platform
 
12096
      # Common symbols not allowed in MH_DYLIB files
 
12097
      lt_prog_compiler_pic_CXX='-fno-common'
 
12098
      ;;
 
12099
    *djgpp*)
 
12100
      # DJGPP does not support shared libraries at all
 
12101
      lt_prog_compiler_pic_CXX=
 
12102
      ;;
 
12103
    interix[3-9]*)
 
12104
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12105
      # Instead, we relocate shared libraries at runtime.
 
12106
      ;;
 
12107
    sysv4*MP*)
 
12108
      if test -d /usr/nec; then
 
12109
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12110
      fi
 
12111
      ;;
 
12112
    hpux*)
 
12113
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12114
      # not for PA HP-UX.
 
12115
      case $host_cpu in
 
12116
      hppa*64*|ia64*)
 
12117
        ;;
 
12118
      *)
 
12119
        lt_prog_compiler_pic_CXX='-fPIC'
 
12120
        ;;
 
12121
      esac
 
12122
      ;;
 
12123
    *)
 
12124
      lt_prog_compiler_pic_CXX='-fPIC'
 
12125
      ;;
 
12126
    esac
 
12127
  else
 
12128
    case $host_os in
 
12129
      aix4* | aix5*)
 
12130
        # All AIX code is PIC.
 
12131
        if test "$host_cpu" = ia64; then
 
12132
          # AIX 5 now supports IA64 processor
 
12133
          lt_prog_compiler_static_CXX='-Bstatic'
 
12134
        else
 
12135
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12136
        fi
 
12137
        ;;
 
12138
      chorus*)
 
12139
        case $cc_basename in
 
12140
        cxch68*)
 
12141
          # Green Hills C++ Compiler
 
12142
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12143
          ;;
 
12144
        esac
 
12145
        ;;
 
12146
       darwin*)
 
12147
         # PIC is the default on this platform
 
12148
         # Common symbols not allowed in MH_DYLIB files
 
12149
         case $cc_basename in
 
12150
           xlc*)
 
12151
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12152
           lt_prog_compiler_wl_CXX='-Wl,'
 
12153
           ;;
 
12154
         esac
 
12155
       ;;
 
12156
      dgux*)
 
12157
        case $cc_basename in
 
12158
          ec++*)
 
12159
            lt_prog_compiler_pic_CXX='-KPIC'
 
12160
            ;;
 
12161
          ghcx*)
 
12162
            # Green Hills C++ Compiler
 
12163
            lt_prog_compiler_pic_CXX='-pic'
 
12164
            ;;
 
12165
          *)
 
12166
            ;;
 
12167
        esac
 
12168
        ;;
 
12169
      freebsd* | dragonfly*)
 
12170
        # FreeBSD uses GNU C++
 
12171
        ;;
 
12172
      hpux9* | hpux10* | hpux11*)
 
12173
        case $cc_basename in
 
12174
          CC*)
 
12175
            lt_prog_compiler_wl_CXX='-Wl,'
 
12176
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12177
            if test "$host_cpu" != ia64; then
 
12178
              lt_prog_compiler_pic_CXX='+Z'
 
12179
            fi
 
12180
            ;;
 
12181
          aCC*)
 
12182
            lt_prog_compiler_wl_CXX='-Wl,'
 
12183
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12184
            case $host_cpu in
 
12185
            hppa*64*|ia64*)
 
12186
              # +Z the default
 
12187
              ;;
 
12188
            *)
 
12189
              lt_prog_compiler_pic_CXX='+Z'
 
12190
              ;;
 
12191
            esac
 
12192
            ;;
 
12193
          *)
 
12194
            ;;
 
12195
        esac
 
12196
        ;;
 
12197
      interix*)
 
12198
        # This is c89, which is MS Visual C++ (no shared libs)
 
12199
        # Anyone wants to do a port?
 
12200
        ;;
 
12201
      irix5* | irix6* | nonstopux*)
 
12202
        case $cc_basename in
 
12203
          CC*)
 
12204
            lt_prog_compiler_wl_CXX='-Wl,'
 
12205
            lt_prog_compiler_static_CXX='-non_shared'
 
12206
            # CC pic flag -KPIC is the default.
 
12207
            ;;
 
12208
          *)
 
12209
            ;;
 
12210
        esac
 
12211
        ;;
 
12212
      linux* | k*bsd*-gnu)
 
12213
        case $cc_basename in
 
12214
          KCC*)
 
12215
            # KAI C++ Compiler
 
12216
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12217
            lt_prog_compiler_pic_CXX='-fPIC'
 
12218
            ;;
 
12219
          icpc* | ecpc*)
 
12220
            # Intel C++
 
12221
            lt_prog_compiler_wl_CXX='-Wl,'
 
12222
            lt_prog_compiler_pic_CXX='-KPIC'
 
12223
            lt_prog_compiler_static_CXX='-static'
 
12224
            ;;
 
12225
          pgCC*)
 
12226
            # Portland Group C++ compiler.
 
12227
            lt_prog_compiler_wl_CXX='-Wl,'
 
12228
            lt_prog_compiler_pic_CXX='-fpic'
 
12229
            lt_prog_compiler_static_CXX='-Bstatic'
 
12230
            ;;
 
12231
          cxx*)
 
12232
            # Compaq C++
 
12233
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12234
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12235
            lt_prog_compiler_pic_CXX=
 
12236
            lt_prog_compiler_static_CXX='-non_shared'
 
12237
            ;;
 
12238
          *)
 
12239
            case `$CC -V 2>&1 | sed 5q` in
 
12240
            *Sun\ C*)
 
12241
              # Sun C++ 5.9
 
12242
              lt_prog_compiler_pic_CXX='-KPIC'
 
12243
              lt_prog_compiler_static_CXX='-Bstatic'
 
12244
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12245
              ;;
 
12246
            esac
 
12247
            ;;
 
12248
        esac
 
12249
        ;;
 
12250
      lynxos*)
 
12251
        ;;
 
12252
      m88k*)
 
12253
        ;;
 
12254
      mvs*)
 
12255
        case $cc_basename in
 
12256
          cxx*)
 
12257
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12258
            ;;
 
12259
          *)
 
12260
            ;;
 
12261
        esac
 
12262
        ;;
 
12263
      netbsd* | netbsdelf*-gnu)
 
12264
        ;;
 
12265
      osf3* | osf4* | osf5*)
 
12266
        case $cc_basename in
 
12267
          KCC*)
 
12268
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12269
            ;;
 
12270
          RCC*)
 
12271
            # Rational C++ 2.4.1
 
12272
            lt_prog_compiler_pic_CXX='-pic'
 
12273
            ;;
 
12274
          cxx*)
 
12275
            # Digital/Compaq C++
 
12276
            lt_prog_compiler_wl_CXX='-Wl,'
 
12277
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12278
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12279
            lt_prog_compiler_pic_CXX=
 
12280
            lt_prog_compiler_static_CXX='-non_shared'
 
12281
            ;;
 
12282
          *)
 
12283
            ;;
 
12284
        esac
 
12285
        ;;
 
12286
      psos*)
 
12287
        ;;
 
12288
      solaris*)
 
12289
        case $cc_basename in
 
12290
          CC*)
 
12291
            # Sun C++ 4.2, 5.x and Centerline C++
 
12292
            lt_prog_compiler_pic_CXX='-KPIC'
 
12293
            lt_prog_compiler_static_CXX='-Bstatic'
 
12294
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12295
            ;;
 
12296
          gcx*)
 
12297
            # Green Hills C++ Compiler
 
12298
            lt_prog_compiler_pic_CXX='-PIC'
 
12299
            ;;
 
12300
          *)
 
12301
            ;;
 
12302
        esac
 
12303
        ;;
 
12304
      sunos4*)
 
12305
        case $cc_basename in
 
12306
          CC*)
 
12307
            # Sun C++ 4.x
 
12308
            lt_prog_compiler_pic_CXX='-pic'
 
12309
            lt_prog_compiler_static_CXX='-Bstatic'
 
12310
            ;;
 
12311
          lcc*)
 
12312
            # Lucid
 
12313
            lt_prog_compiler_pic_CXX='-pic'
 
12314
            ;;
 
12315
          *)
 
12316
            ;;
 
12317
        esac
 
12318
        ;;
 
12319
      tandem*)
 
12320
        case $cc_basename in
 
12321
          NCC*)
 
12322
            # NonStop-UX NCC 3.20
 
12323
            lt_prog_compiler_pic_CXX='-KPIC'
 
12324
            ;;
 
12325
          *)
 
12326
            ;;
 
12327
        esac
 
12328
        ;;
 
12329
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12330
        case $cc_basename in
 
12331
          CC*)
 
12332
            lt_prog_compiler_wl_CXX='-Wl,'
 
12333
            lt_prog_compiler_pic_CXX='-KPIC'
 
12334
            lt_prog_compiler_static_CXX='-Bstatic'
 
12335
            ;;
 
12336
        esac
 
12337
        ;;
 
12338
      vxworks*)
 
12339
        ;;
 
12340
      *)
 
12341
        lt_prog_compiler_can_build_shared_CXX=no
 
12342
        ;;
 
12343
    esac
 
12344
  fi
 
12345
 
 
12346
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12347
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12348
 
 
12349
#
 
12350
# Check to make sure the PIC flag actually works.
 
12351
#
 
12352
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12353
  
 
12354
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12355
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12356
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12358
else
 
12359
  lt_prog_compiler_pic_works_CXX=no
 
12360
  ac_outfile=conftest.$ac_objext
 
12361
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12362
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12363
   # Insert the option either (1) after the last *FLAGS variable, or
 
12364
   # (2) before a word containing "conftest.", or (3) at the end.
 
12365
   # Note that $ac_compile itself does not contain backslashes and begins
 
12366
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12367
   # The option is referenced via a variable to avoid confusing sed.
 
12368
   lt_compile=`echo "$ac_compile" | $SED \
 
12369
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12370
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12371
   -e 's:$: $lt_compiler_flag:'`
 
12372
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
12373
   (eval "$lt_compile" 2>conftest.err)
 
12374
   ac_status=$?
 
12375
   cat conftest.err >&5
 
12376
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
12377
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12378
     # The compiler can only warn and ignore the option if not recognized
 
12379
     # So say no if there are warnings other than the usual output.
 
12380
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12381
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12382
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12383
       lt_prog_compiler_pic_works_CXX=yes
 
12384
     fi
 
12385
   fi
 
12386
   $rm conftest*
 
12387
 
 
12388
fi
 
12389
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12390
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12391
 
 
12392
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12393
    case $lt_prog_compiler_pic_CXX in
 
12394
     "" | " "*) ;;
 
12395
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12396
     esac
 
12397
else
 
12398
    lt_prog_compiler_pic_CXX=
 
12399
     lt_prog_compiler_can_build_shared_CXX=no
 
12400
fi
 
12401
 
 
12402
fi
 
12403
case $host_os in
 
12404
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12405
  *djgpp*)
 
12406
    lt_prog_compiler_pic_CXX=
 
12407
    ;;
 
12408
  *)
 
12409
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12410
    ;;
 
12411
esac
 
12412
 
 
12413
#
 
12414
# Check to make sure the static flag actually works.
 
12415
#
 
12416
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12417
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12418
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12419
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12421
else
 
12422
  lt_prog_compiler_static_works_CXX=no
 
12423
   save_LDFLAGS="$LDFLAGS"
 
12424
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12425
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12426
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12427
     # The linker can only warn and ignore the option if not recognized
 
12428
     # So say no if there are warnings
 
12429
     if test -s conftest.err; then
 
12430
       # Append any errors to the config.log.
 
12431
       cat conftest.err 1>&5
 
12432
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12433
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12434
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12435
         lt_prog_compiler_static_works_CXX=yes
 
12436
       fi
 
12437
     else
 
12438
       lt_prog_compiler_static_works_CXX=yes
 
12439
     fi
 
12440
   fi
 
12441
   $rm conftest*
 
12442
   LDFLAGS="$save_LDFLAGS"
 
12443
 
 
12444
fi
 
12445
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12446
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12447
 
 
12448
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12449
    :
 
12450
else
 
12451
    lt_prog_compiler_static_CXX=
 
12452
fi
 
12453
 
 
12454
 
 
12455
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12456
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12457
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12459
else
 
12460
  lt_cv_prog_compiler_c_o_CXX=no
 
12461
   $rm -r conftest 2>/dev/null
 
12462
   mkdir conftest
 
12463
   cd conftest
 
12464
   mkdir out
 
12465
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12466
 
 
12467
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12468
   # Insert the option either (1) after the last *FLAGS variable, or
 
12469
   # (2) before a word containing "conftest.", or (3) at the end.
 
12470
   # Note that $ac_compile itself does not contain backslashes and begins
 
12471
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12472
   lt_compile=`echo "$ac_compile" | $SED \
 
12473
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12474
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12475
   -e 's:$: $lt_compiler_flag:'`
 
12476
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
12477
   (eval "$lt_compile" 2>out/conftest.err)
 
12478
   ac_status=$?
 
12479
   cat out/conftest.err >&5
 
12480
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
12481
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12482
   then
 
12483
     # The compiler can only warn and ignore the option if not recognized
 
12484
     # So say no if there are warnings
 
12485
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12486
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12487
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12488
       lt_cv_prog_compiler_c_o_CXX=yes
 
12489
     fi
 
12490
   fi
 
12491
   chmod u+w . 2>&5
 
12492
   $rm conftest*
 
12493
   # SGI C++ compiler will create directory out/ii_files/ for
 
12494
   # template instantiation
 
12495
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12496
   $rm out/* && rmdir out
 
12497
   cd ..
 
12498
   rmdir conftest
 
12499
   $rm conftest*
 
12500
 
 
12501
fi
 
12502
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12503
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12504
 
 
12505
 
 
12506
hard_links="nottested"
 
12507
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12508
  # do not overwrite the value of need_locks provided by the user
 
12509
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12510
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12511
  hard_links=yes
 
12512
  $rm conftest*
 
12513
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12514
  touch conftest.a
 
12515
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12516
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12517
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12518
echo "${ECHO_T}$hard_links" >&6; }
 
12519
  if test "$hard_links" = no; then
 
12520
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12521
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12522
    need_locks=warn
 
12523
  fi
 
12524
else
 
12525
  need_locks=no
 
12526
fi
 
12527
 
 
12528
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12529
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12530
 
 
12531
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12532
  case $host_os in
 
12533
  aix4* | aix5*)
 
12534
    # If we're using GNU nm, then we don't want the "-C" option.
 
12535
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12536
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12537
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12538
    else
 
12539
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12540
    fi
 
12541
    ;;
 
12542
  pw32*)
 
12543
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12544
  ;;
 
12545
  cygwin* | mingw*)
 
12546
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
12547
  ;;
 
12548
  linux* | k*bsd*-gnu)
 
12549
    link_all_deplibs_CXX=no
 
12550
  ;;
 
12551
  *)
 
12552
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12553
  ;;
 
12554
  esac
 
12555
 
 
12556
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12557
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12558
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12559
 
 
12560
#
 
12561
# Do we need to explicitly link libc?
 
12562
#
 
12563
case "x$archive_cmds_need_lc_CXX" in
 
12564
x|xyes)
 
12565
  # Assume -lc should be added
 
12566
  archive_cmds_need_lc_CXX=yes
 
12567
 
 
12568
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12569
    case $archive_cmds_CXX in
 
12570
    *'~'*)
 
12571
      # FIXME: we may have to deal with multi-command sequences.
 
12572
      ;;
 
12573
    '$CC '*)
 
12574
      # Test whether the compiler implicitly links with -lc since on some
 
12575
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12576
      # to ld, don't add -lc before -lgcc.
 
12577
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12578
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12579
      $rm conftest*
 
12580
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12581
 
 
12582
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12583
  (eval $ac_compile) 2>&5
 
12584
  ac_status=$?
 
12585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12586
  (exit $ac_status); } 2>conftest.err; then
 
12587
        soname=conftest
 
12588
        lib=conftest
 
12589
        libobjs=conftest.$ac_objext
 
12590
        deplibs=
 
12591
        wl=$lt_prog_compiler_wl_CXX
 
12592
        pic_flag=$lt_prog_compiler_pic_CXX
 
12593
        compiler_flags=-v
 
12594
        linker_flags=-v
 
12595
        verstring=
 
12596
        output_objdir=.
 
12597
        libname=conftest
 
12598
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12599
        allow_undefined_flag_CXX=
 
12600
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12601
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12602
  ac_status=$?
 
12603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12604
  (exit $ac_status); }
 
12605
        then
 
12606
          archive_cmds_need_lc_CXX=no
 
12607
        else
 
12608
          archive_cmds_need_lc_CXX=yes
 
12609
        fi
 
12610
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12611
      else
 
12612
        cat conftest.err 1>&5
 
12613
      fi
 
12614
      $rm conftest*
 
12615
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12616
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12617
      ;;
 
12618
    esac
 
12619
  fi
 
12620
  ;;
 
12621
esac
 
12622
 
 
12623
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12624
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12625
library_names_spec=
 
12626
libname_spec='lib$name'
 
12627
soname_spec=
 
12628
shrext_cmds=".so"
 
12629
postinstall_cmds=
 
12630
postuninstall_cmds=
 
12631
finish_cmds=
 
12632
finish_eval=
 
12633
shlibpath_var=
 
12634
shlibpath_overrides_runpath=unknown
 
12635
version_type=none
 
12636
dynamic_linker="$host_os ld.so"
 
12637
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12638
 
 
12639
need_lib_prefix=unknown
 
12640
hardcode_into_libs=no
 
12641
 
 
12642
# when you set need_version to no, make sure it does not cause -set_version
 
12643
# flags to be left without arguments
 
12644
need_version=unknown
 
12645
 
 
12646
case $host_os in
 
12647
aix3*)
 
12648
  version_type=linux
 
12649
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12650
  shlibpath_var=LIBPATH
 
12651
 
 
12652
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12653
  soname_spec='${libname}${release}${shared_ext}$major'
 
12654
  ;;
 
12655
 
 
12656
aix4* | aix5*)
 
12657
  version_type=linux
 
12658
  need_lib_prefix=no
 
12659
  need_version=no
 
12660
  hardcode_into_libs=yes
 
12661
  if test "$host_cpu" = ia64; then
 
12662
    # AIX 5 supports IA64
 
12663
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12664
    shlibpath_var=LD_LIBRARY_PATH
 
12665
  else
 
12666
    # With GCC up to 2.95.x, collect2 would create an import file
 
12667
    # for dependence libraries.  The import file would start with
 
12668
    # the line `#! .'.  This would cause the generated library to
 
12669
    # depend on `.', always an invalid library.  This was fixed in
 
12670
    # development snapshots of GCC prior to 3.0.
 
12671
    case $host_os in
 
12672
      aix4 | aix4.[01] | aix4.[01].*)
 
12673
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12674
           echo ' yes '
 
12675
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12676
        :
 
12677
      else
 
12678
        can_build_shared=no
 
12679
      fi
 
12680
      ;;
 
12681
    esac
 
12682
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12683
    # soname into executable. Probably we can add versioning support to
 
12684
    # collect2, so additional links can be useful in future.
 
12685
    if test "$aix_use_runtimelinking" = yes; then
 
12686
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12687
      # instead of lib<name>.a to let people know that these are not
 
12688
      # typical AIX shared libraries.
 
12689
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12690
    else
 
12691
      # We preserve .a as extension for shared libraries through AIX4.2
 
12692
      # and later when we are not doing run time linking.
 
12693
      library_names_spec='${libname}${release}.a $libname.a'
 
12694
      soname_spec='${libname}${release}${shared_ext}$major'
 
12695
    fi
 
12696
    shlibpath_var=LIBPATH
 
12697
  fi
 
12698
  ;;
 
12699
 
 
12700
amigaos*)
 
12701
  library_names_spec='$libname.ixlibrary $libname.a'
 
12702
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12703
  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'
 
12704
  ;;
 
12705
 
 
12706
beos*)
 
12707
  library_names_spec='${libname}${shared_ext}'
 
12708
  dynamic_linker="$host_os ld.so"
 
12709
  shlibpath_var=LIBRARY_PATH
 
12710
  ;;
 
12711
 
 
12712
bsdi[45]*)
 
12713
  version_type=linux
 
12714
  need_version=no
 
12715
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12716
  soname_spec='${libname}${release}${shared_ext}$major'
 
12717
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12718
  shlibpath_var=LD_LIBRARY_PATH
 
12719
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12720
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12721
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12722
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12723
  # libtool to hard-code these into programs
 
12724
  ;;
 
12725
 
 
12726
cygwin* | mingw* | pw32*)
 
12727
  version_type=windows
 
12728
  shrext_cmds=".dll"
 
12729
  need_version=no
 
12730
  need_lib_prefix=no
 
12731
 
 
12732
  case $GCC,$host_os in
 
12733
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12734
    library_names_spec='$libname.dll.a'
 
12735
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12736
    postinstall_cmds='base_file=`basename \${file}`~
 
12737
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12738
      dldir=$destdir/`dirname \$dlpath`~
 
12739
      test -d \$dldir || mkdir -p \$dldir~
 
12740
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12741
      chmod a+x \$dldir/$dlname'
 
12742
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12743
      dlpath=$dir/\$dldll~
 
12744
       $rm \$dlpath'
 
12745
    shlibpath_overrides_runpath=yes
 
12746
 
 
12747
    case $host_os in
 
12748
    cygwin*)
 
12749
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12750
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12751
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12752
      ;;
 
12753
    mingw*)
 
12754
      # MinGW DLLs use traditional 'lib' prefix
 
12755
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12756
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12757
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12758
        # It is most probably a Windows format PATH printed by
 
12759
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12760
        # path with ; separators, and with drive letters. We can handle the
 
12761
        # drive letters (cygwin fileutils understands them), so leave them,
 
12762
        # especially as we might pass files found there to a mingw objdump,
 
12763
        # which wouldn't understand a cygwinified path. Ahh.
 
12764
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12765
      else
 
12766
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12767
      fi
 
12768
      ;;
 
12769
    pw32*)
 
12770
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12771
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12772
      ;;
 
12773
    esac
 
12774
    ;;
 
12775
 
 
12776
  *)
 
12777
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12778
    ;;
 
12779
  esac
 
12780
  dynamic_linker='Win32 ld.exe'
 
12781
  # FIXME: first we should search . and the directory the executable is in
 
12782
  shlibpath_var=PATH
 
12783
  ;;
 
12784
 
 
12785
darwin* | rhapsody*)
 
12786
  dynamic_linker="$host_os dyld"
 
12787
  version_type=darwin
 
12788
  need_lib_prefix=no
 
12789
  need_version=no
 
12790
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12791
  soname_spec='${libname}${release}${major}$shared_ext'
 
12792
  shlibpath_overrides_runpath=yes
 
12793
  shlibpath_var=DYLD_LIBRARY_PATH
 
12794
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12795
   
 
12796
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12797
  ;;
 
12798
 
 
12799
dgux*)
 
12800
  version_type=linux
 
12801
  need_lib_prefix=no
 
12802
  need_version=no
 
12803
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12804
  soname_spec='${libname}${release}${shared_ext}$major'
 
12805
  shlibpath_var=LD_LIBRARY_PATH
 
12806
  ;;
 
12807
 
 
12808
freebsd1*)
 
12809
  dynamic_linker=no
 
12810
  ;;
 
12811
 
 
12812
freebsd* | dragonfly*)
 
12813
  # DragonFly does not have aout.  When/if they implement a new
 
12814
  # versioning mechanism, adjust this.
 
12815
  if test -x /usr/bin/objformat; then
 
12816
    objformat=`/usr/bin/objformat`
 
12817
  else
 
12818
    case $host_os in
 
12819
    freebsd[123]*) objformat=aout ;;
 
12820
    *) objformat=elf ;;
 
12821
    esac
 
12822
  fi
 
12823
  version_type=freebsd-$objformat
 
12824
  case $version_type in
 
12825
    freebsd-elf*)
 
12826
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12827
      need_version=no
 
12828
      need_lib_prefix=no
 
12829
      ;;
 
12830
    freebsd-*)
 
12831
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12832
      need_version=yes
 
12833
      ;;
 
12834
  esac
 
12835
  shlibpath_var=LD_LIBRARY_PATH
 
12836
  case $host_os in
 
12837
  freebsd2*)
 
12838
    shlibpath_overrides_runpath=yes
 
12839
    ;;
 
12840
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12841
    shlibpath_overrides_runpath=yes
 
12842
    hardcode_into_libs=yes
 
12843
    ;;
 
12844
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12845
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12846
    shlibpath_overrides_runpath=no
 
12847
    hardcode_into_libs=yes
 
12848
    ;;
 
12849
  *) # from 4.6 on, and DragonFly
 
12850
    shlibpath_overrides_runpath=yes
 
12851
    hardcode_into_libs=yes
 
12852
    ;;
 
12853
  esac
 
12854
  ;;
 
12855
 
 
12856
gnu*)
 
12857
  version_type=linux
 
12858
  need_lib_prefix=no
 
12859
  need_version=no
 
12860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12861
  soname_spec='${libname}${release}${shared_ext}$major'
 
12862
  shlibpath_var=LD_LIBRARY_PATH
 
12863
  hardcode_into_libs=yes
 
12864
  ;;
 
12865
 
 
12866
hpux9* | hpux10* | hpux11*)
 
12867
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12868
  # link against other versions.
 
12869
  version_type=sunos
 
12870
  need_lib_prefix=no
 
12871
  need_version=no
 
12872
  case $host_cpu in
 
12873
  ia64*)
 
12874
    shrext_cmds='.so'
 
12875
    hardcode_into_libs=yes
 
12876
    dynamic_linker="$host_os dld.so"
 
12877
    shlibpath_var=LD_LIBRARY_PATH
 
12878
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12879
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12880
    soname_spec='${libname}${release}${shared_ext}$major'
 
12881
    if test "X$HPUX_IA64_MODE" = X32; then
 
12882
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12883
    else
 
12884
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12885
    fi
 
12886
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12887
    ;;
 
12888
   hppa*64*)
 
12889
     shrext_cmds='.sl'
 
12890
     hardcode_into_libs=yes
 
12891
     dynamic_linker="$host_os dld.sl"
 
12892
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12893
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12894
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12895
     soname_spec='${libname}${release}${shared_ext}$major'
 
12896
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12897
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12898
     ;;
 
12899
   *)
 
12900
    shrext_cmds='.sl'
 
12901
    dynamic_linker="$host_os dld.sl"
 
12902
    shlibpath_var=SHLIB_PATH
 
12903
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12904
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12905
    soname_spec='${libname}${release}${shared_ext}$major'
 
12906
    ;;
 
12907
  esac
 
12908
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12909
  postinstall_cmds='chmod 555 $lib'
 
12910
  ;;
 
12911
 
 
12912
interix[3-9]*)
 
12913
  version_type=linux
 
12914
  need_lib_prefix=no
 
12915
  need_version=no
 
12916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12917
  soname_spec='${libname}${release}${shared_ext}$major'
 
12918
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12919
  shlibpath_var=LD_LIBRARY_PATH
 
12920
  shlibpath_overrides_runpath=no
 
12921
  hardcode_into_libs=yes
 
12922
  ;;
 
12923
 
 
12924
irix5* | irix6* | nonstopux*)
 
12925
  case $host_os in
 
12926
    nonstopux*) version_type=nonstopux ;;
 
12927
    *)
 
12928
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12929
                version_type=linux
 
12930
        else
 
12931
                version_type=irix
 
12932
        fi ;;
 
12933
  esac
 
12934
  need_lib_prefix=no
 
12935
  need_version=no
 
12936
  soname_spec='${libname}${release}${shared_ext}$major'
 
12937
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12938
  case $host_os in
 
12939
  irix5* | nonstopux*)
 
12940
    libsuff= shlibsuff=
 
12941
    ;;
 
12942
  *)
 
12943
    case $LD in # libtool.m4 will add one of these switches to LD
 
12944
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12945
      libsuff= shlibsuff= libmagic=32-bit;;
 
12946
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12947
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12948
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12949
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12950
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12951
    esac
 
12952
    ;;
 
12953
  esac
 
12954
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12955
  shlibpath_overrides_runpath=no
 
12956
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12957
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12958
  hardcode_into_libs=yes
 
12959
  ;;
 
12960
 
 
12961
# No shared lib support for Linux oldld, aout, or coff.
 
12962
linux*oldld* | linux*aout* | linux*coff*)
 
12963
  dynamic_linker=no
 
12964
  ;;
 
12965
 
 
12966
# This must be Linux ELF.
 
12967
linux* | k*bsd*-gnu)
 
12968
  version_type=linux
 
12969
  need_lib_prefix=no
 
12970
  need_version=no
 
12971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12972
  soname_spec='${libname}${release}${shared_ext}$major'
 
12973
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12974
  shlibpath_var=LD_LIBRARY_PATH
 
12975
  shlibpath_overrides_runpath=no
 
12976
  # This implies no fast_install, which is unacceptable.
 
12977
  # Some rework will be needed to allow for fast_install
 
12978
  # before this can be enabled.
 
12979
  hardcode_into_libs=yes
 
12980
 
 
12981
  # Append ld.so.conf contents to the search path
 
12982
  if test -f /etc/ld.so.conf; then
 
12983
    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' ' '`
 
12984
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12985
  fi
 
12986
 
 
12987
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12988
  # powerpc, because MkLinux only supported shared libraries with the
 
12989
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12990
  # most powerpc-linux boxes support dynamic linking these days and
 
12991
  # people can always --disable-shared, the test was removed, and we
 
12992
  # assume the GNU/Linux dynamic linker is in use.
 
12993
  dynamic_linker='GNU/Linux ld.so'
 
12994
  ;;
 
12995
 
 
12996
netbsdelf*-gnu)
 
12997
  version_type=linux
 
12998
  need_lib_prefix=no
 
12999
  need_version=no
 
13000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13001
  soname_spec='${libname}${release}${shared_ext}$major'
 
13002
  shlibpath_var=LD_LIBRARY_PATH
 
13003
  shlibpath_overrides_runpath=no
 
13004
  hardcode_into_libs=yes
 
13005
  dynamic_linker='NetBSD ld.elf_so'
 
13006
  ;;
 
13007
 
 
13008
netbsd*)
 
13009
  version_type=sunos
 
13010
  need_lib_prefix=no
 
13011
  need_version=no
 
13012
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13013
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13014
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13015
    dynamic_linker='NetBSD (a.out) ld.so'
 
13016
  else
 
13017
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13018
    soname_spec='${libname}${release}${shared_ext}$major'
 
13019
    dynamic_linker='NetBSD ld.elf_so'
 
13020
  fi
 
13021
  shlibpath_var=LD_LIBRARY_PATH
 
13022
  shlibpath_overrides_runpath=yes
 
13023
  hardcode_into_libs=yes
 
13024
  ;;
 
13025
 
 
13026
newsos6)
 
13027
  version_type=linux
 
13028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13029
  shlibpath_var=LD_LIBRARY_PATH
 
13030
  shlibpath_overrides_runpath=yes
 
13031
  ;;
 
13032
 
 
13033
nto-qnx*)
 
13034
  version_type=linux
 
13035
  need_lib_prefix=no
 
13036
  need_version=no
 
13037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13038
  soname_spec='${libname}${release}${shared_ext}$major'
 
13039
  shlibpath_var=LD_LIBRARY_PATH
 
13040
  shlibpath_overrides_runpath=yes
 
13041
  ;;
 
13042
 
 
13043
openbsd*)
 
13044
  version_type=sunos
 
13045
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13046
  need_lib_prefix=no
 
13047
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13048
  case $host_os in
 
13049
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13050
    *)                         need_version=no  ;;
 
13051
  esac
 
13052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13053
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13054
  shlibpath_var=LD_LIBRARY_PATH
 
13055
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13056
    case $host_os in
 
13057
      openbsd2.[89] | openbsd2.[89].*)
 
13058
        shlibpath_overrides_runpath=no
 
13059
        ;;
 
13060
      *)
 
13061
        shlibpath_overrides_runpath=yes
 
13062
        ;;
 
13063
      esac
 
13064
  else
 
13065
    shlibpath_overrides_runpath=yes
 
13066
  fi
 
13067
  ;;
 
13068
 
 
13069
os2*)
 
13070
  libname_spec='$name'
 
13071
  shrext_cmds=".dll"
 
13072
  need_lib_prefix=no
 
13073
  library_names_spec='$libname${shared_ext} $libname.a'
 
13074
  dynamic_linker='OS/2 ld.exe'
 
13075
  shlibpath_var=LIBPATH
 
13076
  ;;
 
13077
 
 
13078
osf3* | osf4* | osf5*)
 
13079
  version_type=osf
 
13080
  need_lib_prefix=no
 
13081
  need_version=no
 
13082
  soname_spec='${libname}${release}${shared_ext}$major'
 
13083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13084
  shlibpath_var=LD_LIBRARY_PATH
 
13085
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13086
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13087
  ;;
 
13088
 
 
13089
rdos*)
 
13090
  dynamic_linker=no
 
13091
  ;;
 
13092
 
 
13093
solaris*)
 
13094
  version_type=linux
 
13095
  need_lib_prefix=no
 
13096
  need_version=no
 
13097
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13098
  soname_spec='${libname}${release}${shared_ext}$major'
 
13099
  shlibpath_var=LD_LIBRARY_PATH
 
13100
  shlibpath_overrides_runpath=yes
 
13101
  hardcode_into_libs=yes
 
13102
  # ldd complains unless libraries are executable
 
13103
  postinstall_cmds='chmod +x $lib'
 
13104
  ;;
 
13105
 
 
13106
sunos4*)
 
13107
  version_type=sunos
 
13108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13109
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13110
  shlibpath_var=LD_LIBRARY_PATH
 
13111
  shlibpath_overrides_runpath=yes
 
13112
  if test "$with_gnu_ld" = yes; then
 
13113
    need_lib_prefix=no
 
13114
  fi
 
13115
  need_version=yes
 
13116
  ;;
 
13117
 
 
13118
sysv4 | sysv4.3*)
 
13119
  version_type=linux
 
13120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13121
  soname_spec='${libname}${release}${shared_ext}$major'
 
13122
  shlibpath_var=LD_LIBRARY_PATH
 
13123
  case $host_vendor in
 
13124
    sni)
 
13125
      shlibpath_overrides_runpath=no
 
13126
      need_lib_prefix=no
 
13127
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13128
      runpath_var=LD_RUN_PATH
 
13129
      ;;
 
13130
    siemens)
 
13131
      need_lib_prefix=no
 
13132
      ;;
 
13133
    motorola)
 
13134
      need_lib_prefix=no
 
13135
      need_version=no
 
13136
      shlibpath_overrides_runpath=no
 
13137
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13138
      ;;
 
13139
  esac
 
13140
  ;;
 
13141
 
 
13142
sysv4*MP*)
 
13143
  if test -d /usr/nec ;then
 
13144
    version_type=linux
 
13145
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13146
    soname_spec='$libname${shared_ext}.$major'
 
13147
    shlibpath_var=LD_LIBRARY_PATH
 
13148
  fi
 
13149
  ;;
 
13150
 
 
13151
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13152
  version_type=freebsd-elf
 
13153
  need_lib_prefix=no
 
13154
  need_version=no
 
13155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13156
  soname_spec='${libname}${release}${shared_ext}$major'
 
13157
  shlibpath_var=LD_LIBRARY_PATH
 
13158
  hardcode_into_libs=yes
 
13159
  if test "$with_gnu_ld" = yes; then
 
13160
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13161
    shlibpath_overrides_runpath=no
 
13162
  else
 
13163
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13164
    shlibpath_overrides_runpath=yes
 
13165
    case $host_os in
 
13166
      sco3.2v5*)
 
13167
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13168
        ;;
 
13169
    esac
 
13170
  fi
 
13171
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13172
  ;;
 
13173
 
 
13174
uts4*)
 
13175
  version_type=linux
 
13176
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13177
  soname_spec='${libname}${release}${shared_ext}$major'
 
13178
  shlibpath_var=LD_LIBRARY_PATH
 
13179
  ;;
 
13180
 
 
13181
*)
 
13182
  dynamic_linker=no
 
13183
  ;;
 
13184
esac
 
13185
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13186
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13187
test "$dynamic_linker" = no && can_build_shared=no
 
13188
 
 
13189
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13190
if test "$GCC" = yes; then
 
13191
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13192
fi
 
13193
 
 
13194
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13195
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13196
hardcode_action_CXX=
 
13197
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13198
   test -n "$runpath_var_CXX" || \
 
13199
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13200
 
 
13201
  # We can hardcode non-existant directories.
 
13202
  if test "$hardcode_direct_CXX" != no &&
 
13203
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13204
     # have to relink, otherwise we might link with an installed library
 
13205
     # when we should be linking with a yet-to-be-installed one
 
13206
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13207
     test "$hardcode_minus_L_CXX" != no; then
 
13208
    # Linking always hardcodes the temporary library directory.
 
13209
    hardcode_action_CXX=relink
 
13210
  else
 
13211
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13212
    hardcode_action_CXX=immediate
 
13213
  fi
 
13214
else
 
13215
  # We cannot hardcode anything, or else we can only hardcode existing
 
13216
  # directories.
 
13217
  hardcode_action_CXX=unsupported
 
13218
fi
 
13219
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13220
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13221
 
 
13222
if test "$hardcode_action_CXX" = relink; then
 
13223
  # Fast installation is not supported
 
13224
  enable_fast_install=no
 
13225
elif test "$shlibpath_overrides_runpath" = yes ||
 
13226
     test "$enable_shared" = no; then
 
13227
  # Fast installation is not necessary
 
13228
  enable_fast_install=needless
 
13229
fi
 
13230
 
 
13231
 
 
13232
# The else clause should only fire when bootstrapping the
 
13233
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13234
# with your package, and you will get complaints that there are
 
13235
# no rules to generate ltmain.sh.
 
13236
if test -f "$ltmain"; then
 
13237
  # See if we are running on zsh, and set the options which allow our commands through
 
13238
  # without removal of \ escapes.
 
13239
  if test -n "${ZSH_VERSION+set}" ; then
 
13240
    setopt NO_GLOB_SUBST
 
13241
  fi
 
13242
  # Now quote all the things that may contain metacharacters while being
 
13243
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13244
  # variables and quote the copies for generation of the libtool script.
 
13245
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13246
    SED SHELL STRIP \
 
13247
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13248
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13249
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13250
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13251
    lt_cv_sys_global_symbol_to_c_name_address \
 
13252
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13253
    old_postinstall_cmds old_postuninstall_cmds \
 
13254
    compiler_CXX \
 
13255
    CC_CXX \
 
13256
    LD_CXX \
 
13257
    lt_prog_compiler_wl_CXX \
 
13258
    lt_prog_compiler_pic_CXX \
 
13259
    lt_prog_compiler_static_CXX \
 
13260
    lt_prog_compiler_no_builtin_flag_CXX \
 
13261
    export_dynamic_flag_spec_CXX \
 
13262
    thread_safe_flag_spec_CXX \
 
13263
    whole_archive_flag_spec_CXX \
 
13264
    enable_shared_with_static_runtimes_CXX \
 
13265
    old_archive_cmds_CXX \
 
13266
    old_archive_from_new_cmds_CXX \
 
13267
    predep_objects_CXX \
 
13268
    postdep_objects_CXX \
 
13269
    predeps_CXX \
 
13270
    postdeps_CXX \
 
13271
    compiler_lib_search_path_CXX \
 
13272
    archive_cmds_CXX \
 
13273
    archive_expsym_cmds_CXX \
 
13274
    postinstall_cmds_CXX \
 
13275
    postuninstall_cmds_CXX \
 
13276
    old_archive_from_expsyms_cmds_CXX \
 
13277
    allow_undefined_flag_CXX \
 
13278
    no_undefined_flag_CXX \
 
13279
    export_symbols_cmds_CXX \
 
13280
    hardcode_libdir_flag_spec_CXX \
 
13281
    hardcode_libdir_flag_spec_ld_CXX \
 
13282
    hardcode_libdir_separator_CXX \
 
13283
    hardcode_automatic_CXX \
 
13284
    module_cmds_CXX \
 
13285
    module_expsym_cmds_CXX \
 
13286
    lt_cv_prog_compiler_c_o_CXX \
 
13287
    fix_srcfile_path_CXX \
 
13288
    exclude_expsyms_CXX \
 
13289
    include_expsyms_CXX; do
 
13290
 
 
13291
    case $var in
 
13292
    old_archive_cmds_CXX | \
 
13293
    old_archive_from_new_cmds_CXX | \
 
13294
    archive_cmds_CXX | \
 
13295
    archive_expsym_cmds_CXX | \
 
13296
    module_cmds_CXX | \
 
13297
    module_expsym_cmds_CXX | \
 
13298
    old_archive_from_expsyms_cmds_CXX | \
 
13299
    export_symbols_cmds_CXX | \
 
13300
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13301
    postinstall_cmds | postuninstall_cmds | \
 
13302
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13303
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13304
      # Double-quote double-evaled strings.
 
13305
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13306
      ;;
 
13307
    *)
 
13308
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13309
      ;;
 
13310
    esac
 
13311
  done
 
13312
 
 
13313
  case $lt_echo in
 
13314
  *'\$0 --fallback-echo"')
 
13315
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13316
    ;;
 
13317
  esac
 
13318
 
 
13319
cfgfile="$ofile"
 
13320
 
 
13321
  cat <<__EOF__ >> "$cfgfile"
 
13322
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13323
 
 
13324
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13325
 
 
13326
# Shell to use when invoking shell scripts.
 
13327
SHELL=$lt_SHELL
 
13328
 
 
13329
# Whether or not to build shared libraries.
 
13330
build_libtool_libs=$enable_shared
 
13331
 
 
13332
# Whether or not to build static libraries.
 
13333
build_old_libs=$enable_static
 
13334
 
 
13335
# Whether or not to add -lc for building shared libraries.
 
13336
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13337
 
 
13338
# Whether or not to disallow shared libs when runtime libs are static
 
13339
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13340
 
 
13341
# Whether or not to optimize for fast installation.
 
13342
fast_install=$enable_fast_install
 
13343
 
 
13344
# The host system.
 
13345
host_alias=$host_alias
 
13346
host=$host
 
13347
host_os=$host_os
 
13348
 
 
13349
# The build system.
 
13350
build_alias=$build_alias
 
13351
build=$build
 
13352
build_os=$build_os
 
13353
 
 
13354
# An echo program that does not interpret backslashes.
 
13355
echo=$lt_echo
 
13356
 
 
13357
# The archiver.
 
13358
AR=$lt_AR
 
13359
AR_FLAGS=$lt_AR_FLAGS
 
13360
 
 
13361
# A C compiler.
 
13362
LTCC=$lt_LTCC
 
13363
 
 
13364
# LTCC compiler flags.
 
13365
LTCFLAGS=$lt_LTCFLAGS
 
13366
 
 
13367
# A language-specific compiler.
 
13368
CC=$lt_compiler_CXX
 
13369
 
 
13370
# Is the compiler the GNU C compiler?
 
13371
with_gcc=$GCC_CXX
 
13372
 
 
13373
# An ERE matcher.
 
13374
EGREP=$lt_EGREP
 
13375
 
 
13376
# The linker used to build libraries.
 
13377
LD=$lt_LD_CXX
 
13378
 
 
13379
# Whether we need hard or soft links.
 
13380
LN_S=$lt_LN_S
 
13381
 
 
13382
# A BSD-compatible nm program.
 
13383
NM=$lt_NM
 
13384
 
 
13385
# A symbol stripping program
 
13386
STRIP=$lt_STRIP
 
13387
 
 
13388
# Used to examine libraries when file_magic_cmd begins "file"
 
13389
MAGIC_CMD=$MAGIC_CMD
 
13390
 
 
13391
# Used on cygwin: DLL creation program.
 
13392
DLLTOOL="$DLLTOOL"
 
13393
 
 
13394
# Used on cygwin: object dumper.
 
13395
OBJDUMP="$OBJDUMP"
 
13396
 
 
13397
# Used on cygwin: assembler.
 
13398
AS="$AS"
 
13399
 
 
13400
# The name of the directory that contains temporary libtool files.
 
13401
objdir=$objdir
 
13402
 
 
13403
# How to create reloadable object files.
 
13404
reload_flag=$lt_reload_flag
 
13405
reload_cmds=$lt_reload_cmds
 
13406
 
 
13407
# How to pass a linker flag through the compiler.
 
13408
wl=$lt_lt_prog_compiler_wl_CXX
 
13409
 
 
13410
# Object file suffix (normally "o").
 
13411
objext="$ac_objext"
 
13412
 
 
13413
# Old archive suffix (normally "a").
 
13414
libext="$libext"
 
13415
 
 
13416
# Shared library suffix (normally ".so").
 
13417
shrext_cmds='$shrext_cmds'
 
13418
 
 
13419
# Executable file suffix (normally "").
 
13420
exeext="$exeext"
 
13421
 
 
13422
# Additional compiler flags for building library objects.
 
13423
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13424
pic_mode=$pic_mode
 
13425
 
 
13426
# What is the maximum length of a command?
 
13427
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13428
 
 
13429
# Does compiler simultaneously support -c and -o options?
 
13430
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13431
 
 
13432
# Must we lock files when doing compilation?
 
13433
need_locks=$lt_need_locks
 
13434
 
 
13435
# Do we need the lib prefix for modules?
 
13436
need_lib_prefix=$need_lib_prefix
 
13437
 
 
13438
# Do we need a version for libraries?
 
13439
need_version=$need_version
 
13440
 
 
13441
# Whether dlopen is supported.
 
13442
dlopen_support=$enable_dlopen
 
13443
 
 
13444
# Whether dlopen of programs is supported.
 
13445
dlopen_self=$enable_dlopen_self
 
13446
 
 
13447
# Whether dlopen of statically linked programs is supported.
 
13448
dlopen_self_static=$enable_dlopen_self_static
 
13449
 
 
13450
# Compiler flag to prevent dynamic linking.
 
13451
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13452
 
 
13453
# Compiler flag to turn off builtin functions.
 
13454
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13455
 
 
13456
# Compiler flag to allow reflexive dlopens.
 
13457
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13458
 
 
13459
# Compiler flag to generate shared objects directly from archives.
 
13460
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13461
 
 
13462
# Compiler flag to generate thread-safe objects.
 
13463
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13464
 
 
13465
# Library versioning type.
 
13466
version_type=$version_type
 
13467
 
 
13468
# Format of library name prefix.
 
13469
libname_spec=$lt_libname_spec
 
13470
 
 
13471
# List of archive names.  First name is the real one, the rest are links.
 
13472
# The last name is the one that the linker finds with -lNAME.
 
13473
library_names_spec=$lt_library_names_spec
 
13474
 
 
13475
# The coded name of the library, if different from the real name.
 
13476
soname_spec=$lt_soname_spec
 
13477
 
 
13478
# Commands used to build and install an old-style archive.
 
13479
RANLIB=$lt_RANLIB
 
13480
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13481
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13482
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13483
 
 
13484
# Create an old-style archive from a shared archive.
 
13485
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13486
 
 
13487
# Create a temporary old-style archive to link instead of a shared archive.
 
13488
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13489
 
 
13490
# Commands used to build and install a shared archive.
 
13491
archive_cmds=$lt_archive_cmds_CXX
 
13492
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13493
postinstall_cmds=$lt_postinstall_cmds
 
13494
postuninstall_cmds=$lt_postuninstall_cmds
 
13495
 
 
13496
# Commands used to build a loadable module (assumed same as above if empty)
 
13497
module_cmds=$lt_module_cmds_CXX
 
13498
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13499
 
 
13500
# Commands to strip libraries.
 
13501
old_striplib=$lt_old_striplib
 
13502
striplib=$lt_striplib
 
13503
 
 
13504
# Dependencies to place before the objects being linked to create a
 
13505
# shared library.
 
13506
predep_objects=$lt_predep_objects_CXX
 
13507
 
 
13508
# Dependencies to place after the objects being linked to create a
 
13509
# shared library.
 
13510
postdep_objects=$lt_postdep_objects_CXX
 
13511
 
 
13512
# Dependencies to place before the objects being linked to create a
 
13513
# shared library.
 
13514
predeps=$lt_predeps_CXX
 
13515
 
 
13516
# Dependencies to place after the objects being linked to create a
 
13517
# shared library.
 
13518
postdeps=$lt_postdeps_CXX
 
13519
 
 
13520
# The library search path used internally by the compiler when linking
 
13521
# a shared library.
 
13522
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13523
 
 
13524
# Method to check whether dependent libraries are shared objects.
 
13525
deplibs_check_method=$lt_deplibs_check_method
 
13526
 
 
13527
# Command to use when deplibs_check_method == file_magic.
 
13528
file_magic_cmd=$lt_file_magic_cmd
 
13529
 
 
13530
# Flag that allows shared libraries with undefined symbols to be built.
 
13531
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13532
 
 
13533
# Flag that forces no undefined symbols.
 
13534
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13535
 
 
13536
# Commands used to finish a libtool library installation in a directory.
 
13537
finish_cmds=$lt_finish_cmds
 
13538
 
 
13539
# Same as above, but a single script fragment to be evaled but not shown.
 
13540
finish_eval=$lt_finish_eval
 
13541
 
 
13542
# Take the output of nm and produce a listing of raw symbols and C names.
 
13543
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13544
 
 
13545
# Transform the output of nm in a proper C declaration
 
13546
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13547
 
 
13548
# Transform the output of nm in a C name address pair
 
13549
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13550
 
 
13551
# This is the shared library runtime path variable.
 
13552
runpath_var=$runpath_var
 
13553
 
 
13554
# This is the shared library path variable.
 
13555
shlibpath_var=$shlibpath_var
 
13556
 
 
13557
# Is shlibpath searched before the hard-coded library search path?
 
13558
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13559
 
 
13560
# How to hardcode a shared library path into an executable.
 
13561
hardcode_action=$hardcode_action_CXX
 
13562
 
 
13563
# Whether we should hardcode library paths into libraries.
 
13564
hardcode_into_libs=$hardcode_into_libs
 
13565
 
 
13566
# Flag to hardcode \$libdir into a binary during linking.
 
13567
# This must work even if \$libdir does not exist.
 
13568
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13569
 
 
13570
# If ld is used when linking, flag to hardcode \$libdir into
 
13571
# a binary during linking. This must work even if \$libdir does
 
13572
# not exist.
 
13573
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13574
 
 
13575
# Whether we need a single -rpath flag with a separated argument.
 
13576
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13577
 
 
13578
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13579
# resulting binary.
 
13580
hardcode_direct=$hardcode_direct_CXX
 
13581
 
 
13582
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13583
# resulting binary.
 
13584
hardcode_minus_L=$hardcode_minus_L_CXX
 
13585
 
 
13586
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13587
# the resulting binary.
 
13588
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13589
 
 
13590
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13591
# and all subsequent libraries and executables linked against it.
 
13592
hardcode_automatic=$hardcode_automatic_CXX
 
13593
 
 
13594
# Variables whose values should be saved in libtool wrapper scripts and
 
13595
# restored at relink time.
 
13596
variables_saved_for_relink="$variables_saved_for_relink"
 
13597
 
 
13598
# Whether libtool must link a program against all its dependency libraries.
 
13599
link_all_deplibs=$link_all_deplibs_CXX
 
13600
 
 
13601
# Compile-time system search path for libraries
 
13602
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13603
 
 
13604
# Run-time system search path for libraries
 
13605
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13606
 
 
13607
# Fix the shell variable \$srcfile for the compiler.
 
13608
fix_srcfile_path=$lt_fix_srcfile_path
 
13609
 
 
13610
# Set to yes if exported symbols are required.
 
13611
always_export_symbols=$always_export_symbols_CXX
 
13612
 
 
13613
# The commands to list exported symbols.
 
13614
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13615
 
 
13616
# The commands to extract the exported symbol list from a shared archive.
 
13617
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13618
 
 
13619
# Symbols that should not be listed in the preloaded symbols.
 
13620
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13621
 
 
13622
# Symbols that must always be exported.
 
13623
include_expsyms=$lt_include_expsyms_CXX
 
13624
 
 
13625
# ### END LIBTOOL TAG CONFIG: $tagname
 
13626
 
 
13627
__EOF__
 
13628
 
 
13629
 
 
13630
else
 
13631
  # If there is no Makefile yet, we rely on a make rule to execute
 
13632
  # `config.status --recheck' to rerun these tests and create the
 
13633
  # libtool script then.
 
13634
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13635
  if test -f "$ltmain_in"; then
 
13636
    test -f Makefile && make "$ltmain"
 
13637
  fi
 
13638
fi
 
13639
 
 
13640
 
 
13641
ac_ext=c
 
13642
ac_cpp='$CPP $CPPFLAGS'
 
13643
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13644
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13645
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13646
 
 
13647
CC=$lt_save_CC
 
13648
LDCXX=$LD
 
13649
LD=$lt_save_LD
 
13650
GCC=$lt_save_GCC
 
13651
with_gnu_ldcxx=$with_gnu_ld
 
13652
with_gnu_ld=$lt_save_with_gnu_ld
 
13653
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13654
lt_cv_path_LD=$lt_save_path_LD
 
13655
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13656
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13657
 
 
13658
        else
 
13659
          tagname=""
 
13660
        fi
 
13661
        ;;
 
13662
 
 
13663
      F77)
 
13664
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13665
          
 
13666
ac_ext=f
 
13667
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13668
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13669
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13670
 
 
13671
 
 
13672
archive_cmds_need_lc_F77=no
 
13673
allow_undefined_flag_F77=
 
13674
always_export_symbols_F77=no
 
13675
archive_expsym_cmds_F77=
 
13676
export_dynamic_flag_spec_F77=
 
13677
hardcode_direct_F77=no
 
13678
hardcode_libdir_flag_spec_F77=
 
13679
hardcode_libdir_flag_spec_ld_F77=
 
13680
hardcode_libdir_separator_F77=
 
13681
hardcode_minus_L_F77=no
 
13682
hardcode_automatic_F77=no
 
13683
module_cmds_F77=
 
13684
module_expsym_cmds_F77=
 
13685
link_all_deplibs_F77=unknown
 
13686
old_archive_cmds_F77=$old_archive_cmds
 
13687
no_undefined_flag_F77=
 
13688
whole_archive_flag_spec_F77=
 
13689
enable_shared_with_static_runtimes_F77=no
 
13690
 
 
13691
# Source file extension for f77 test sources.
 
13692
ac_ext=f
 
13693
 
 
13694
# Object file extension for compiled f77 test sources.
 
13695
objext=o
 
13696
objext_F77=$objext
 
13697
 
 
13698
# Code to be used in simple compile tests
 
13699
lt_simple_compile_test_code="\
 
13700
      subroutine t
 
13701
      return
 
13702
      end
 
13703
"
 
13704
 
 
13705
# Code to be used in simple link tests
 
13706
lt_simple_link_test_code="\
 
13707
      program t
 
13708
      end
 
13709
"
 
13710
 
 
13711
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13712
 
 
13713
# If no C compiler was specified, use CC.
 
13714
LTCC=${LTCC-"$CC"}
 
13715
 
 
13716
# If no C compiler flags were specified, use CFLAGS.
 
13717
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13718
 
 
13719
# Allow CC to be a program name with arguments.
 
13720
compiler=$CC
 
13721
 
 
13722
 
 
13723
# save warnings/boilerplate of simple test code
 
13724
ac_outfile=conftest.$ac_objext
 
13725
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13726
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13727
_lt_compiler_boilerplate=`cat conftest.err`
 
13728
$rm conftest*
 
13729
 
 
13730
ac_outfile=conftest.$ac_objext
 
13731
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13732
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13733
_lt_linker_boilerplate=`cat conftest.err`
 
13734
$rm conftest*
 
13735
 
 
13736
 
 
13737
# Allow CC to be a program name with arguments.
 
13738
lt_save_CC="$CC"
 
13739
CC=${F77-"f77"}
 
13740
compiler=$CC
 
13741
compiler_F77=$CC
 
13742
for cc_temp in $compiler""; do
 
13743
  case $cc_temp in
 
13744
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13745
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13746
    \-*) ;;
 
13747
    *) break;;
 
13748
  esac
 
13749
done
 
13750
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13751
 
 
13752
 
 
13753
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13754
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13755
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13756
echo "${ECHO_T}$can_build_shared" >&6; }
 
13757
 
 
13758
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13759
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13760
test "$can_build_shared" = "no" && enable_shared=no
 
13761
 
 
13762
# On AIX, shared libraries and static libraries use the same namespace, and
 
13763
# are all built from PIC.
 
13764
case $host_os in
 
13765
aix3*)
 
13766
  test "$enable_shared" = yes && enable_static=no
 
13767
  if test -n "$RANLIB"; then
 
13768
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13769
    postinstall_cmds='$RANLIB $lib'
 
13770
  fi
 
13771
  ;;
 
13772
aix4* | aix5*)
 
13773
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13774
    test "$enable_shared" = yes && enable_static=no
 
13775
  fi
 
13776
  ;;
 
13777
esac
 
13778
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13779
echo "${ECHO_T}$enable_shared" >&6; }
 
13780
 
 
13781
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13782
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
13783
# Make sure either enable_shared or enable_static is yes.
 
13784
test "$enable_shared" = yes || enable_static=yes
 
13785
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
13786
echo "${ECHO_T}$enable_static" >&6; }
 
13787
 
 
13788
GCC_F77="$G77"
 
13789
LD_F77="$LD"
 
13790
 
 
13791
lt_prog_compiler_wl_F77=
 
13792
lt_prog_compiler_pic_F77=
 
13793
lt_prog_compiler_static_F77=
 
13794
 
 
13795
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13796
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
13797
 
 
13798
  if test "$GCC" = yes; then
 
13799
    lt_prog_compiler_wl_F77='-Wl,'
 
13800
    lt_prog_compiler_static_F77='-static'
 
13801
 
 
13802
    case $host_os in
 
13803
      aix*)
 
13804
      # All AIX code is PIC.
 
13805
      if test "$host_cpu" = ia64; then
 
13806
        # AIX 5 now supports IA64 processor
 
13807
        lt_prog_compiler_static_F77='-Bstatic'
 
13808
      fi
 
13809
      ;;
 
13810
 
 
13811
    amigaos*)
 
13812
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13813
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13814
      # like `-m68040'.
 
13815
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13816
      ;;
 
13817
 
 
13818
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13819
      # PIC is the default for these OSes.
 
13820
      ;;
 
13821
 
 
13822
    mingw* | cygwin* | pw32* | os2*)
 
13823
      # This hack is so that the source file can tell whether it is being
 
13824
      # built for inclusion in a dll (and should export symbols for example).
 
13825
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13826
      # (--disable-auto-import) libraries
 
13827
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13828
      ;;
 
13829
 
 
13830
    darwin* | rhapsody*)
 
13831
      # PIC is the default on this platform
 
13832
      # Common symbols not allowed in MH_DYLIB files
 
13833
      lt_prog_compiler_pic_F77='-fno-common'
 
13834
      ;;
 
13835
 
 
13836
    interix[3-9]*)
 
13837
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13838
      # Instead, we relocate shared libraries at runtime.
 
13839
      ;;
 
13840
 
 
13841
    msdosdjgpp*)
 
13842
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13843
      # on systems that don't support them.
 
13844
      lt_prog_compiler_can_build_shared_F77=no
 
13845
      enable_shared=no
 
13846
      ;;
 
13847
 
 
13848
    sysv4*MP*)
 
13849
      if test -d /usr/nec; then
 
13850
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13851
      fi
 
13852
      ;;
 
13853
 
 
13854
    hpux*)
 
13855
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13856
      # not for PA HP-UX.
 
13857
      case $host_cpu in
 
13858
      hppa*64*|ia64*)
 
13859
        # +Z the default
 
13860
        ;;
 
13861
      *)
 
13862
        lt_prog_compiler_pic_F77='-fPIC'
 
13863
        ;;
 
13864
      esac
 
13865
      ;;
 
13866
 
 
13867
    *)
 
13868
      lt_prog_compiler_pic_F77='-fPIC'
 
13869
      ;;
 
13870
    esac
 
13871
  else
 
13872
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13873
    case $host_os in
 
13874
    aix*)
 
13875
      lt_prog_compiler_wl_F77='-Wl,'
 
13876
      if test "$host_cpu" = ia64; then
 
13877
        # AIX 5 now supports IA64 processor
 
13878
        lt_prog_compiler_static_F77='-Bstatic'
 
13879
      else
 
13880
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13881
      fi
 
13882
      ;;
 
13883
      darwin*)
 
13884
        # PIC is the default on this platform
 
13885
        # Common symbols not allowed in MH_DYLIB files
 
13886
       case $cc_basename in
 
13887
         xlc*)
 
13888
         lt_prog_compiler_pic_F77='-qnocommon'
 
13889
         lt_prog_compiler_wl_F77='-Wl,'
 
13890
         ;;
 
13891
       esac
 
13892
       ;;
 
13893
 
 
13894
    mingw* | cygwin* | pw32* | os2*)
 
13895
      # This hack is so that the source file can tell whether it is being
 
13896
      # built for inclusion in a dll (and should export symbols for example).
 
13897
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13898
      ;;
 
13899
 
 
13900
    hpux9* | hpux10* | hpux11*)
 
13901
      lt_prog_compiler_wl_F77='-Wl,'
 
13902
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13903
      # not for PA HP-UX.
 
13904
      case $host_cpu in
 
13905
      hppa*64*|ia64*)
 
13906
        # +Z the default
 
13907
        ;;
 
13908
      *)
 
13909
        lt_prog_compiler_pic_F77='+Z'
 
13910
        ;;
 
13911
      esac
 
13912
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13913
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13914
      ;;
 
13915
 
 
13916
    irix5* | irix6* | nonstopux*)
 
13917
      lt_prog_compiler_wl_F77='-Wl,'
 
13918
      # PIC (with -KPIC) is the default.
 
13919
      lt_prog_compiler_static_F77='-non_shared'
 
13920
      ;;
 
13921
 
 
13922
    newsos6)
 
13923
      lt_prog_compiler_pic_F77='-KPIC'
 
13924
      lt_prog_compiler_static_F77='-Bstatic'
 
13925
      ;;
 
13926
 
 
13927
    linux* | k*bsd*-gnu)
 
13928
      case $cc_basename in
 
13929
      icc* | ecc*)
 
13930
        lt_prog_compiler_wl_F77='-Wl,'
 
13931
        lt_prog_compiler_pic_F77='-KPIC'
 
13932
        lt_prog_compiler_static_F77='-static'
 
13933
        ;;
 
13934
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13935
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13936
        # which looks to be a dead project)
 
13937
        lt_prog_compiler_wl_F77='-Wl,'
 
13938
        lt_prog_compiler_pic_F77='-fpic'
 
13939
        lt_prog_compiler_static_F77='-Bstatic'
 
13940
        ;;
 
13941
      ccc*)
 
13942
        lt_prog_compiler_wl_F77='-Wl,'
 
13943
        # All Alpha code is PIC.
 
13944
        lt_prog_compiler_static_F77='-non_shared'
 
13945
        ;;
 
13946
      *)
 
13947
        case `$CC -V 2>&1 | sed 5q` in
 
13948
        *Sun\ C*)
 
13949
          # Sun C 5.9
 
13950
          lt_prog_compiler_pic_F77='-KPIC'
 
13951
          lt_prog_compiler_static_F77='-Bstatic'
 
13952
          lt_prog_compiler_wl_F77='-Wl,'
 
13953
          ;;
 
13954
        *Sun\ F*)
 
13955
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
13956
          lt_prog_compiler_pic_F77='-KPIC'
 
13957
          lt_prog_compiler_static_F77='-Bstatic'
 
13958
          lt_prog_compiler_wl_F77=''
 
13959
          ;;
 
13960
        esac
 
13961
        ;;
 
13962
      esac
 
13963
      ;;
 
13964
 
 
13965
    osf3* | osf4* | osf5*)
 
13966
      lt_prog_compiler_wl_F77='-Wl,'
 
13967
      # All OSF/1 code is PIC.
 
13968
      lt_prog_compiler_static_F77='-non_shared'
 
13969
      ;;
 
13970
 
 
13971
    rdos*)
 
13972
      lt_prog_compiler_static_F77='-non_shared'
 
13973
      ;;
 
13974
 
 
13975
    solaris*)
 
13976
      lt_prog_compiler_pic_F77='-KPIC'
 
13977
      lt_prog_compiler_static_F77='-Bstatic'
 
13978
      case $cc_basename in
 
13979
      f77* | f90* | f95*)
 
13980
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13981
      *)
 
13982
        lt_prog_compiler_wl_F77='-Wl,';;
 
13983
      esac
 
13984
      ;;
 
13985
 
 
13986
    sunos4*)
 
13987
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13988
      lt_prog_compiler_pic_F77='-PIC'
 
13989
      lt_prog_compiler_static_F77='-Bstatic'
 
13990
      ;;
 
13991
 
 
13992
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13993
      lt_prog_compiler_wl_F77='-Wl,'
 
13994
      lt_prog_compiler_pic_F77='-KPIC'
 
13995
      lt_prog_compiler_static_F77='-Bstatic'
 
13996
      ;;
 
13997
 
 
13998
    sysv4*MP*)
 
13999
      if test -d /usr/nec ;then
 
14000
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14001
        lt_prog_compiler_static_F77='-Bstatic'
 
14002
      fi
 
14003
      ;;
 
14004
 
 
14005
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14006
      lt_prog_compiler_wl_F77='-Wl,'
 
14007
      lt_prog_compiler_pic_F77='-KPIC'
 
14008
      lt_prog_compiler_static_F77='-Bstatic'
 
14009
      ;;
 
14010
 
 
14011
    unicos*)
 
14012
      lt_prog_compiler_wl_F77='-Wl,'
 
14013
      lt_prog_compiler_can_build_shared_F77=no
 
14014
      ;;
 
14015
 
 
14016
    uts4*)
 
14017
      lt_prog_compiler_pic_F77='-pic'
 
14018
      lt_prog_compiler_static_F77='-Bstatic'
 
14019
      ;;
 
14020
 
 
14021
    *)
 
14022
      lt_prog_compiler_can_build_shared_F77=no
 
14023
      ;;
 
14024
    esac
 
14025
  fi
 
14026
 
 
14027
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14028
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14029
 
 
14030
#
 
14031
# Check to make sure the PIC flag actually works.
 
14032
#
 
14033
if test -n "$lt_prog_compiler_pic_F77"; then
 
14034
  
 
14035
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14036
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14037
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14039
else
 
14040
  lt_prog_compiler_pic_works_F77=no
 
14041
  ac_outfile=conftest.$ac_objext
 
14042
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14043
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14044
   # Insert the option either (1) after the last *FLAGS variable, or
 
14045
   # (2) before a word containing "conftest.", or (3) at the end.
 
14046
   # Note that $ac_compile itself does not contain backslashes and begins
 
14047
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14048
   # The option is referenced via a variable to avoid confusing sed.
 
14049
   lt_compile=`echo "$ac_compile" | $SED \
 
14050
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14051
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14052
   -e 's:$: $lt_compiler_flag:'`
 
14053
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
14054
   (eval "$lt_compile" 2>conftest.err)
 
14055
   ac_status=$?
 
14056
   cat conftest.err >&5
 
14057
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
14058
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14059
     # The compiler can only warn and ignore the option if not recognized
 
14060
     # So say no if there are warnings other than the usual output.
 
14061
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14062
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14063
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14064
       lt_prog_compiler_pic_works_F77=yes
 
14065
     fi
 
14066
   fi
 
14067
   $rm conftest*
 
14068
 
 
14069
fi
 
14070
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14071
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14072
 
 
14073
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14074
    case $lt_prog_compiler_pic_F77 in
 
14075
     "" | " "*) ;;
 
14076
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14077
     esac
 
14078
else
 
14079
    lt_prog_compiler_pic_F77=
 
14080
     lt_prog_compiler_can_build_shared_F77=no
 
14081
fi
 
14082
 
 
14083
fi
 
14084
case $host_os in
 
14085
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14086
  *djgpp*)
 
14087
    lt_prog_compiler_pic_F77=
 
14088
    ;;
 
14089
  *)
 
14090
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14091
    ;;
 
14092
esac
 
14093
 
 
14094
#
 
14095
# Check to make sure the static flag actually works.
 
14096
#
 
14097
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14098
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14099
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14100
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14102
else
 
14103
  lt_prog_compiler_static_works_F77=no
 
14104
   save_LDFLAGS="$LDFLAGS"
 
14105
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14106
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14107
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14108
     # The linker can only warn and ignore the option if not recognized
 
14109
     # So say no if there are warnings
 
14110
     if test -s conftest.err; then
 
14111
       # Append any errors to the config.log.
 
14112
       cat conftest.err 1>&5
 
14113
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14114
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14115
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14116
         lt_prog_compiler_static_works_F77=yes
 
14117
       fi
 
14118
     else
 
14119
       lt_prog_compiler_static_works_F77=yes
 
14120
     fi
 
14121
   fi
 
14122
   $rm conftest*
 
14123
   LDFLAGS="$save_LDFLAGS"
 
14124
 
 
14125
fi
 
14126
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14127
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14128
 
 
14129
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14130
    :
 
14131
else
 
14132
    lt_prog_compiler_static_F77=
 
14133
fi
 
14134
 
 
14135
 
 
14136
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14137
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14138
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14140
else
 
14141
  lt_cv_prog_compiler_c_o_F77=no
 
14142
   $rm -r conftest 2>/dev/null
 
14143
   mkdir conftest
 
14144
   cd conftest
 
14145
   mkdir out
 
14146
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14147
 
 
14148
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14149
   # Insert the option either (1) after the last *FLAGS variable, or
 
14150
   # (2) before a word containing "conftest.", or (3) at the end.
 
14151
   # Note that $ac_compile itself does not contain backslashes and begins
 
14152
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14153
   lt_compile=`echo "$ac_compile" | $SED \
 
14154
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14155
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14156
   -e 's:$: $lt_compiler_flag:'`
 
14157
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
14158
   (eval "$lt_compile" 2>out/conftest.err)
 
14159
   ac_status=$?
 
14160
   cat out/conftest.err >&5
 
14161
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
14162
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14163
   then
 
14164
     # The compiler can only warn and ignore the option if not recognized
 
14165
     # So say no if there are warnings
 
14166
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14167
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14168
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14169
       lt_cv_prog_compiler_c_o_F77=yes
 
14170
     fi
 
14171
   fi
 
14172
   chmod u+w . 2>&5
 
14173
   $rm conftest*
 
14174
   # SGI C++ compiler will create directory out/ii_files/ for
 
14175
   # template instantiation
 
14176
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14177
   $rm out/* && rmdir out
 
14178
   cd ..
 
14179
   rmdir conftest
 
14180
   $rm conftest*
 
14181
 
 
14182
fi
 
14183
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14184
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14185
 
 
14186
 
 
14187
hard_links="nottested"
 
14188
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14189
  # do not overwrite the value of need_locks provided by the user
 
14190
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14191
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14192
  hard_links=yes
 
14193
  $rm conftest*
 
14194
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14195
  touch conftest.a
 
14196
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14197
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14198
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14199
echo "${ECHO_T}$hard_links" >&6; }
 
14200
  if test "$hard_links" = no; then
 
14201
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14202
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14203
    need_locks=warn
 
14204
  fi
 
14205
else
 
14206
  need_locks=no
 
14207
fi
 
14208
 
 
14209
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14210
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14211
 
 
14212
  runpath_var=
 
14213
  allow_undefined_flag_F77=
 
14214
  enable_shared_with_static_runtimes_F77=no
 
14215
  archive_cmds_F77=
 
14216
  archive_expsym_cmds_F77=
 
14217
  old_archive_From_new_cmds_F77=
 
14218
  old_archive_from_expsyms_cmds_F77=
 
14219
  export_dynamic_flag_spec_F77=
 
14220
  whole_archive_flag_spec_F77=
 
14221
  thread_safe_flag_spec_F77=
 
14222
  hardcode_libdir_flag_spec_F77=
 
14223
  hardcode_libdir_flag_spec_ld_F77=
 
14224
  hardcode_libdir_separator_F77=
 
14225
  hardcode_direct_F77=no
 
14226
  hardcode_minus_L_F77=no
 
14227
  hardcode_shlibpath_var_F77=unsupported
 
14228
  link_all_deplibs_F77=unknown
 
14229
  hardcode_automatic_F77=no
 
14230
  module_cmds_F77=
 
14231
  module_expsym_cmds_F77=
 
14232
  always_export_symbols_F77=no
 
14233
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14234
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14235
  # included in the symbol list
 
14236
  include_expsyms_F77=
 
14237
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14238
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14239
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14240
  # as well as any symbol that contains `d'.
 
14241
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14242
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14243
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14244
  # the symbol is explicitly referenced.  Since portable code cannot
 
14245
  # rely on this symbol name, it's probably fine to never include it in
 
14246
  # preloaded symbol tables.
 
14247
  extract_expsyms_cmds=
 
14248
  # Just being paranoid about ensuring that cc_basename is set.
 
14249
  for cc_temp in $compiler""; do
 
14250
  case $cc_temp in
 
14251
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14252
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14253
    \-*) ;;
 
14254
    *) break;;
 
14255
  esac
 
14256
done
 
14257
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14258
 
 
14259
  case $host_os in
 
14260
  cygwin* | mingw* | pw32*)
 
14261
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14262
    # When not using gcc, we currently assume that we are using
 
14263
    # Microsoft Visual C++.
 
14264
    if test "$GCC" != yes; then
 
14265
      with_gnu_ld=no
 
14266
    fi
 
14267
    ;;
 
14268
  interix*)
 
14269
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14270
    with_gnu_ld=yes
 
14271
    ;;
 
14272
  openbsd*)
 
14273
    with_gnu_ld=no
 
14274
    ;;
 
14275
  esac
 
14276
 
 
14277
  ld_shlibs_F77=yes
 
14278
  if test "$with_gnu_ld" = yes; then
 
14279
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14280
    wlarc='${wl}'
 
14281
 
 
14282
    # Set some defaults for GNU ld with shared library support. These
 
14283
    # are reset later if shared libraries are not supported. Putting them
 
14284
    # here allows them to be overridden if necessary.
 
14285
    runpath_var=LD_RUN_PATH
 
14286
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14287
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14288
    # ancient GNU ld didn't support --whole-archive et. al.
 
14289
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14290
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14291
      else
 
14292
        whole_archive_flag_spec_F77=
 
14293
    fi
 
14294
    supports_anon_versioning=no
 
14295
    case `$LD -v 2>/dev/null` in
 
14296
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14297
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14298
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14299
      *\ 2.11.*) ;; # other 2.11 versions
 
14300
      *) supports_anon_versioning=yes ;;
 
14301
    esac
 
14302
 
 
14303
    # See if GNU ld supports shared libraries.
 
14304
    case $host_os in
 
14305
    aix3* | aix4* | aix5*)
 
14306
      # On AIX/PPC, the GNU linker is very broken
 
14307
      if test "$host_cpu" != ia64; then
 
14308
        ld_shlibs_F77=no
 
14309
        cat <<EOF 1>&2
 
14310
 
 
14311
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14312
*** to be unable to reliably create shared libraries on AIX.
 
14313
*** Therefore, libtool is disabling shared libraries support.  If you
 
14314
*** really care for shared libraries, you may want to modify your PATH
 
14315
*** so that a non-GNU linker is found, and then restart.
 
14316
 
 
14317
EOF
 
14318
      fi
 
14319
      ;;
 
14320
 
 
14321
    amigaos*)
 
14322
      archive_cmds_F77='$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)'
 
14323
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14324
      hardcode_minus_L_F77=yes
 
14325
 
 
14326
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14327
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14328
      # to version 4, is to share data among multiple programs linked
 
14329
      # with the same dynamic library.  Since this doesn't match the
 
14330
      # behavior of shared libraries on other platforms, we can't use
 
14331
      # them.
 
14332
      ld_shlibs_F77=no
 
14333
      ;;
 
14334
 
 
14335
    beos*)
 
14336
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14337
        allow_undefined_flag_F77=unsupported
 
14338
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14339
        # support --undefined.  This deserves some investigation.  FIXME
 
14340
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14341
      else
 
14342
        ld_shlibs_F77=no
 
14343
      fi
 
14344
      ;;
 
14345
 
 
14346
    cygwin* | mingw* | pw32*)
 
14347
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14348
      # as there is no search path for DLLs.
 
14349
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14350
      allow_undefined_flag_F77=unsupported
 
14351
      always_export_symbols_F77=no
 
14352
      enable_shared_with_static_runtimes_F77=yes
 
14353
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14354
 
 
14355
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14356
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14357
        # If the export-symbols file already is a .def file (1st line
 
14358
        # is EXPORTS), use it as is; otherwise, prepend...
 
14359
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14360
          cp $export_symbols $output_objdir/$soname.def;
 
14361
        else
 
14362
          echo EXPORTS > $output_objdir/$soname.def;
 
14363
          cat $export_symbols >> $output_objdir/$soname.def;
 
14364
        fi~
 
14365
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14366
      else
 
14367
        ld_shlibs_F77=no
 
14368
      fi
 
14369
      ;;
 
14370
 
 
14371
    interix[3-9]*)
 
14372
      hardcode_direct_F77=no
 
14373
      hardcode_shlibpath_var_F77=no
 
14374
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14375
      export_dynamic_flag_spec_F77='${wl}-E'
 
14376
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14377
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14378
      # default) and relocated if they conflict, which is a slow very memory
 
14379
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14380
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14381
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14382
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14383
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14384
      ;;
 
14385
 
 
14386
    gnu* | linux* | k*bsd*-gnu)
 
14387
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14388
        tmp_addflag=
 
14389
        case $cc_basename,$host_cpu in
 
14390
        pgcc*)                          # Portland Group C compiler
 
14391
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14392
          tmp_addflag=' $pic_flag'
 
14393
          ;;
 
14394
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14395
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14396
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14397
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14398
          tmp_addflag=' -i_dynamic' ;;
 
14399
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14400
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14401
        ifc* | ifort*)                  # Intel Fortran compiler
 
14402
          tmp_addflag=' -nofor_main' ;;
 
14403
        esac
 
14404
        case `$CC -V 2>&1 | sed 5q` in
 
14405
        *Sun\ C*)                       # Sun C 5.9
 
14406
          whole_archive_flag_spec_F77='${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'
 
14407
          tmp_sharedflag='-G' ;;
 
14408
        *Sun\ F*)                       # Sun Fortran 8.3
 
14409
          tmp_sharedflag='-G' ;;
 
14410
        *)
 
14411
          tmp_sharedflag='-shared' ;;
 
14412
        esac
 
14413
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14414
 
 
14415
        if test $supports_anon_versioning = yes; then
 
14416
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14417
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14418
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14419
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14420
        fi
 
14421
        link_all_deplibs_F77=no
 
14422
      else
 
14423
        ld_shlibs_F77=no
 
14424
      fi
 
14425
      ;;
 
14426
 
 
14427
    netbsd* | netbsdelf*-gnu)
 
14428
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14429
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14430
        wlarc=
 
14431
      else
 
14432
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14433
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14434
      fi
 
14435
      ;;
 
14436
 
 
14437
    solaris*)
 
14438
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14439
        ld_shlibs_F77=no
 
14440
        cat <<EOF 1>&2
 
14441
 
 
14442
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14443
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14444
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14445
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14446
*** your PATH or compiler configuration so that the native linker is
 
14447
*** used, and then restart.
 
14448
 
 
14449
EOF
 
14450
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14451
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14452
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14453
      else
 
14454
        ld_shlibs_F77=no
 
14455
      fi
 
14456
      ;;
 
14457
 
 
14458
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14459
      case `$LD -v 2>&1` in
 
14460
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14461
        ld_shlibs_F77=no
 
14462
        cat <<_LT_EOF 1>&2
 
14463
 
 
14464
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14465
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14466
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14467
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14468
*** your PATH or compiler configuration so that the native linker is
 
14469
*** used, and then restart.
 
14470
 
 
14471
_LT_EOF
 
14472
        ;;
 
14473
        *)
 
14474
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14475
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14476
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14477
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14478
          else
 
14479
            ld_shlibs_F77=no
 
14480
          fi
 
14481
        ;;
 
14482
      esac
 
14483
      ;;
 
14484
 
 
14485
    sunos4*)
 
14486
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14487
      wlarc=
 
14488
      hardcode_direct_F77=yes
 
14489
      hardcode_shlibpath_var_F77=no
 
14490
      ;;
 
14491
 
 
14492
    *)
 
14493
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14494
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14495
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14496
      else
 
14497
        ld_shlibs_F77=no
 
14498
      fi
 
14499
      ;;
 
14500
    esac
 
14501
 
 
14502
    if test "$ld_shlibs_F77" = no; then
 
14503
      runpath_var=
 
14504
      hardcode_libdir_flag_spec_F77=
 
14505
      export_dynamic_flag_spec_F77=
 
14506
      whole_archive_flag_spec_F77=
 
14507
    fi
 
14508
  else
 
14509
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14510
    case $host_os in
 
14511
    aix3*)
 
14512
      allow_undefined_flag_F77=unsupported
 
14513
      always_export_symbols_F77=yes
 
14514
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14515
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14516
      # are no directories specified by -L.
 
14517
      hardcode_minus_L_F77=yes
 
14518
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14519
        # Neither direct hardcoding nor static linking is supported with a
 
14520
        # broken collect2.
 
14521
        hardcode_direct_F77=unsupported
 
14522
      fi
 
14523
      ;;
 
14524
 
 
14525
    aix4* | aix5*)
 
14526
      if test "$host_cpu" = ia64; then
 
14527
        # On IA64, the linker does run time linking by default, so we don't
 
14528
        # have to do anything special.
 
14529
        aix_use_runtimelinking=no
 
14530
        exp_sym_flag='-Bexport'
 
14531
        no_entry_flag=""
 
14532
      else
 
14533
        # If we're using GNU nm, then we don't want the "-C" option.
 
14534
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14535
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14536
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14537
        else
 
14538
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14539
        fi
 
14540
        aix_use_runtimelinking=no
 
14541
 
 
14542
        # Test if we are trying to use run time linking or normal
 
14543
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14544
        # need to do runtime linking.
 
14545
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14546
          for ld_flag in $LDFLAGS; do
 
14547
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14548
            aix_use_runtimelinking=yes
 
14549
            break
 
14550
          fi
 
14551
          done
 
14552
          ;;
 
14553
        esac
 
14554
 
 
14555
        exp_sym_flag='-bexport'
 
14556
        no_entry_flag='-bnoentry'
 
14557
      fi
 
14558
 
 
14559
      # When large executables or shared objects are built, AIX ld can
 
14560
      # have problems creating the table of contents.  If linking a library
 
14561
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14562
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14563
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14564
 
 
14565
      archive_cmds_F77=''
 
14566
      hardcode_direct_F77=yes
 
14567
      hardcode_libdir_separator_F77=':'
 
14568
      link_all_deplibs_F77=yes
 
14569
 
 
14570
      if test "$GCC" = yes; then
 
14571
        case $host_os in aix4.[012]|aix4.[012].*)
 
14572
        # We only want to do this on AIX 4.2 and lower, the check
 
14573
        # below for broken collect2 doesn't work under 4.3+
 
14574
          collect2name=`${CC} -print-prog-name=collect2`
 
14575
          if test -f "$collect2name" && \
 
14576
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14577
          then
 
14578
          # We have reworked collect2
 
14579
          :
 
14580
          else
 
14581
          # We have old collect2
 
14582
          hardcode_direct_F77=unsupported
 
14583
          # It fails to find uninstalled libraries when the uninstalled
 
14584
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14585
          # to unsupported forces relinking
 
14586
          hardcode_minus_L_F77=yes
 
14587
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14588
          hardcode_libdir_separator_F77=
 
14589
          fi
 
14590
          ;;
 
14591
        esac
 
14592
        shared_flag='-shared'
 
14593
        if test "$aix_use_runtimelinking" = yes; then
 
14594
          shared_flag="$shared_flag "'${wl}-G'
 
14595
        fi
 
14596
      else
 
14597
        # not using gcc
 
14598
        if test "$host_cpu" = ia64; then
 
14599
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14600
        # chokes on -Wl,-G. The following line is correct:
 
14601
          shared_flag='-G'
 
14602
        else
 
14603
          if test "$aix_use_runtimelinking" = yes; then
 
14604
            shared_flag='${wl}-G'
 
14605
          else
 
14606
            shared_flag='${wl}-bM:SRE'
 
14607
          fi
 
14608
        fi
 
14609
      fi
 
14610
 
 
14611
      # It seems that -bexpall does not export symbols beginning with
 
14612
      # underscore (_), so it is better to generate a list of symbols to export.
 
14613
      always_export_symbols_F77=yes
 
14614
      if test "$aix_use_runtimelinking" = yes; then
 
14615
        # Warning - without using the other runtime loading flags (-brtl),
 
14616
        # -berok will link without error, but may produce a broken library.
 
14617
        allow_undefined_flag_F77='-berok'
 
14618
       # Determine the default libpath from the value encoded in an empty executable.
 
14619
       cat >conftest.$ac_ext <<_ACEOF
 
14620
      program main
 
14621
 
 
14622
      end
 
14623
_ACEOF
 
14624
rm -f conftest.$ac_objext conftest$ac_exeext
 
14625
if { (ac_try="$ac_link"
 
14626
case "(($ac_try" in
 
14627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14628
  *) ac_try_echo=$ac_try;;
 
14629
esac
 
14630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14631
  (eval "$ac_link") 2>conftest.er1
 
14632
  ac_status=$?
 
14633
  grep -v '^ *+' conftest.er1 >conftest.err
 
14634
  rm -f conftest.er1
 
14635
  cat conftest.err >&5
 
14636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14637
  (exit $ac_status); } && {
 
14638
         test -z "$ac_f77_werror_flag" ||
 
14639
         test ! -s conftest.err
 
14640
       } && test -s conftest$ac_exeext &&
 
14641
       $as_test_x conftest$ac_exeext; then
 
14642
  
 
14643
lt_aix_libpath_sed='
 
14644
    /Import File Strings/,/^$/ {
 
14645
        /^0/ {
 
14646
            s/^0  *\(.*\)$/\1/
 
14647
            p
 
14648
        }
 
14649
    }'
 
14650
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14651
# Check for a 64-bit object if we didn't find anything.
 
14652
if test -z "$aix_libpath"; then
 
14653
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14654
fi
 
14655
else
 
14656
  echo "$as_me: failed program was:" >&5
 
14657
sed 's/^/| /' conftest.$ac_ext >&5
 
14658
 
 
14659
        
 
14660
fi
 
14661
 
 
14662
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14663
      conftest$ac_exeext conftest.$ac_ext
 
14664
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14665
 
 
14666
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14667
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14668
       else
 
14669
        if test "$host_cpu" = ia64; then
 
14670
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14671
          allow_undefined_flag_F77="-z nodefs"
 
14672
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
14673
        else
 
14674
         # Determine the default libpath from the value encoded in an empty executable.
 
14675
         cat >conftest.$ac_ext <<_ACEOF
 
14676
      program main
 
14677
 
 
14678
      end
 
14679
_ACEOF
 
14680
rm -f conftest.$ac_objext conftest$ac_exeext
 
14681
if { (ac_try="$ac_link"
 
14682
case "(($ac_try" in
 
14683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14684
  *) ac_try_echo=$ac_try;;
 
14685
esac
 
14686
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14687
  (eval "$ac_link") 2>conftest.er1
 
14688
  ac_status=$?
 
14689
  grep -v '^ *+' conftest.er1 >conftest.err
 
14690
  rm -f conftest.er1
 
14691
  cat conftest.err >&5
 
14692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14693
  (exit $ac_status); } && {
 
14694
         test -z "$ac_f77_werror_flag" ||
 
14695
         test ! -s conftest.err
 
14696
       } && test -s conftest$ac_exeext &&
 
14697
       $as_test_x conftest$ac_exeext; then
 
14698
  
 
14699
lt_aix_libpath_sed='
 
14700
    /Import File Strings/,/^$/ {
 
14701
        /^0/ {
 
14702
            s/^0  *\(.*\)$/\1/
 
14703
            p
 
14704
        }
 
14705
    }'
 
14706
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14707
# Check for a 64-bit object if we didn't find anything.
 
14708
if test -z "$aix_libpath"; then
 
14709
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14710
fi
 
14711
else
 
14712
  echo "$as_me: failed program was:" >&5
 
14713
sed 's/^/| /' conftest.$ac_ext >&5
 
14714
 
 
14715
        
 
14716
fi
 
14717
 
 
14718
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14719
      conftest$ac_exeext conftest.$ac_ext
 
14720
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14721
 
 
14722
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14723
          # Warning - without using the other run time loading flags,
 
14724
          # -berok will link without error, but may produce a broken library.
 
14725
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14726
          allow_undefined_flag_F77=' ${wl}-berok'
 
14727
          # Exported symbols can be pulled into shared objects from archives
 
14728
          whole_archive_flag_spec_F77='$convenience'
 
14729
          archive_cmds_need_lc_F77=yes
 
14730
          # This is similar to how AIX traditionally builds its shared libraries.
 
14731
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14732
        fi
 
14733
      fi
 
14734
      ;;
 
14735
 
 
14736
    amigaos*)
 
14737
      archive_cmds_F77='$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)'
 
14738
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14739
      hardcode_minus_L_F77=yes
 
14740
      # see comment about different semantics on the GNU ld section
 
14741
      ld_shlibs_F77=no
 
14742
      ;;
 
14743
 
 
14744
    bsdi[45]*)
 
14745
      export_dynamic_flag_spec_F77=-rdynamic
 
14746
      ;;
 
14747
 
 
14748
    cygwin* | mingw* | pw32*)
 
14749
      # When not using gcc, we currently assume that we are using
 
14750
      # Microsoft Visual C++.
 
14751
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14752
      # no search path for DLLs.
 
14753
      hardcode_libdir_flag_spec_F77=' '
 
14754
      allow_undefined_flag_F77=unsupported
 
14755
      # Tell ltmain to make .lib files, not .a files.
 
14756
      libext=lib
 
14757
      # Tell ltmain to make .dll files, not .so files.
 
14758
      shrext_cmds=".dll"
 
14759
      # FIXME: Setting linknames here is a bad hack.
 
14760
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14761
      # The linker will automatically build a .lib file if we build a DLL.
 
14762
      old_archive_From_new_cmds_F77='true'
 
14763
      # FIXME: Should let the user specify the lib program.
 
14764
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
14765
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14766
      enable_shared_with_static_runtimes_F77=yes
 
14767
      ;;
 
14768
 
 
14769
    darwin* | rhapsody*)
 
14770
      case $host_os in
 
14771
        rhapsody* | darwin1.[012])
 
14772
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14773
         ;;
 
14774
       *) # Darwin 1.3 on
 
14775
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14776
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14777
         else
 
14778
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14779
             10.[012])
 
14780
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14781
               ;;
 
14782
             10.*)
 
14783
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14784
               ;;
 
14785
           esac
 
14786
         fi
 
14787
         ;;
 
14788
      esac
 
14789
      archive_cmds_need_lc_F77=no
 
14790
      hardcode_direct_F77=no
 
14791
      hardcode_automatic_F77=yes
 
14792
      hardcode_shlibpath_var_F77=unsupported
 
14793
      whole_archive_flag_spec_F77=''
 
14794
      link_all_deplibs_F77=yes
 
14795
    if test "$GCC" = yes ; then
 
14796
        output_verbose_link_cmd='echo'
 
14797
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14798
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14799
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14800
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14801
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14802
    else
 
14803
      case $cc_basename in
 
14804
        xlc*)
 
14805
         output_verbose_link_cmd='echo'
 
14806
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
14807
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14808
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14809
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14810
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14811
          ;;
 
14812
       *)
 
14813
         ld_shlibs_F77=no
 
14814
          ;;
 
14815
      esac
 
14816
    fi
 
14817
      ;;
 
14818
 
 
14819
    dgux*)
 
14820
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14821
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14822
      hardcode_shlibpath_var_F77=no
 
14823
      ;;
 
14824
 
 
14825
    freebsd1*)
 
14826
      ld_shlibs_F77=no
 
14827
      ;;
 
14828
 
 
14829
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14830
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14831
    # does not break anything, and helps significantly (at the cost of a little
 
14832
    # extra space).
 
14833
    freebsd2.2*)
 
14834
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14835
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14836
      hardcode_direct_F77=yes
 
14837
      hardcode_shlibpath_var_F77=no
 
14838
      ;;
 
14839
 
 
14840
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14841
    freebsd2*)
 
14842
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14843
      hardcode_direct_F77=yes
 
14844
      hardcode_minus_L_F77=yes
 
14845
      hardcode_shlibpath_var_F77=no
 
14846
      ;;
 
14847
 
 
14848
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14849
    freebsd* | dragonfly*)
 
14850
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14851
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14852
      hardcode_direct_F77=yes
 
14853
      hardcode_shlibpath_var_F77=no
 
14854
      ;;
 
14855
 
 
14856
    hpux9*)
 
14857
      if test "$GCC" = yes; then
 
14858
        archive_cmds_F77='$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'
 
14859
      else
 
14860
        archive_cmds_F77='$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'
 
14861
      fi
 
14862
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14863
      hardcode_libdir_separator_F77=:
 
14864
      hardcode_direct_F77=yes
 
14865
 
 
14866
      # hardcode_minus_L: Not really in the search PATH,
 
14867
      # but as the default location of the library.
 
14868
      hardcode_minus_L_F77=yes
 
14869
      export_dynamic_flag_spec_F77='${wl}-E'
 
14870
      ;;
 
14871
 
 
14872
    hpux10*)
 
14873
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14874
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14875
      else
 
14876
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14877
      fi
 
14878
      if test "$with_gnu_ld" = no; then
 
14879
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14880
        hardcode_libdir_separator_F77=:
 
14881
 
 
14882
        hardcode_direct_F77=yes
 
14883
        export_dynamic_flag_spec_F77='${wl}-E'
 
14884
 
 
14885
        # hardcode_minus_L: Not really in the search PATH,
 
14886
        # but as the default location of the library.
 
14887
        hardcode_minus_L_F77=yes
 
14888
      fi
 
14889
      ;;
 
14890
 
 
14891
    hpux11*)
 
14892
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14893
        case $host_cpu in
 
14894
        hppa*64*)
 
14895
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14896
          ;;
 
14897
        ia64*)
 
14898
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14899
          ;;
 
14900
        *)
 
14901
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14902
          ;;
 
14903
        esac
 
14904
      else
 
14905
        case $host_cpu in
 
14906
        hppa*64*)
 
14907
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14908
          ;;
 
14909
        ia64*)
 
14910
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14911
          ;;
 
14912
        *)
 
14913
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14914
          ;;
 
14915
        esac
 
14916
      fi
 
14917
      if test "$with_gnu_ld" = no; then
 
14918
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14919
        hardcode_libdir_separator_F77=:
 
14920
 
 
14921
        case $host_cpu in
 
14922
        hppa*64*|ia64*)
 
14923
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14924
          hardcode_direct_F77=no
 
14925
          hardcode_shlibpath_var_F77=no
 
14926
          ;;
 
14927
        *)
 
14928
          hardcode_direct_F77=yes
 
14929
          export_dynamic_flag_spec_F77='${wl}-E'
 
14930
 
 
14931
          # hardcode_minus_L: Not really in the search PATH,
 
14932
          # but as the default location of the library.
 
14933
          hardcode_minus_L_F77=yes
 
14934
          ;;
 
14935
        esac
 
14936
      fi
 
14937
      ;;
 
14938
 
 
14939
    irix5* | irix6* | nonstopux*)
 
14940
      if test "$GCC" = yes; then
 
14941
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14942
      else
 
14943
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14944
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14945
      fi
 
14946
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14947
      hardcode_libdir_separator_F77=:
 
14948
      link_all_deplibs_F77=yes
 
14949
      ;;
 
14950
 
 
14951
    netbsd* | netbsdelf*-gnu)
 
14952
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14953
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14954
      else
 
14955
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14956
      fi
 
14957
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14958
      hardcode_direct_F77=yes
 
14959
      hardcode_shlibpath_var_F77=no
 
14960
      ;;
 
14961
 
 
14962
    newsos6)
 
14963
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14964
      hardcode_direct_F77=yes
 
14965
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14966
      hardcode_libdir_separator_F77=:
 
14967
      hardcode_shlibpath_var_F77=no
 
14968
      ;;
 
14969
 
 
14970
    openbsd*)
 
14971
      if test -f /usr/libexec/ld.so; then
 
14972
        hardcode_direct_F77=yes
 
14973
        hardcode_shlibpath_var_F77=no
 
14974
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14975
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14976
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14977
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14978
          export_dynamic_flag_spec_F77='${wl}-E'
 
14979
        else
 
14980
          case $host_os in
 
14981
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14982
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14983
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
14984
             ;;
 
14985
           *)
 
14986
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14987
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14988
             ;;
 
14989
          esac
 
14990
        fi
 
14991
      else
 
14992
        ld_shlibs_F77=no
 
14993
      fi
 
14994
      ;;
 
14995
 
 
14996
    os2*)
 
14997
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14998
      hardcode_minus_L_F77=yes
 
14999
      allow_undefined_flag_F77=unsupported
 
15000
      archive_cmds_F77='$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'
 
15001
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15002
      ;;
 
15003
 
 
15004
    osf3*)
 
15005
      if test "$GCC" = yes; then
 
15006
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15007
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15008
      else
 
15009
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15010
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15011
      fi
 
15012
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15013
      hardcode_libdir_separator_F77=:
 
15014
      ;;
 
15015
 
 
15016
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15017
      if test "$GCC" = yes; then
 
15018
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15019
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15020
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15021
      else
 
15022
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15023
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15024
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15025
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15026
 
 
15027
        # Both c and cxx compiler support -rpath directly
 
15028
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15029
      fi
 
15030
      hardcode_libdir_separator_F77=:
 
15031
      ;;
 
15032
 
 
15033
    solaris*)
 
15034
      no_undefined_flag_F77=' -z text'
 
15035
      if test "$GCC" = yes; then
 
15036
        wlarc='${wl}'
 
15037
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15038
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15039
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15040
      else
 
15041
        wlarc=''
 
15042
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15043
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15044
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15045
      fi
 
15046
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15047
      hardcode_shlibpath_var_F77=no
 
15048
      case $host_os in
 
15049
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15050
      *)
 
15051
        # The compiler driver will combine and reorder linker options,
 
15052
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15053
        # but is careful enough not to reorder.
 
15054
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15055
        if test "$GCC" = yes; then
 
15056
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15057
        else
 
15058
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15059
        fi
 
15060
        ;;
 
15061
      esac
 
15062
      link_all_deplibs_F77=yes
 
15063
      ;;
 
15064
 
 
15065
    sunos4*)
 
15066
      if test "x$host_vendor" = xsequent; then
 
15067
        # Use $CC to link under sequent, because it throws in some extra .o
 
15068
        # files that make .init and .fini sections work.
 
15069
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15070
      else
 
15071
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15072
      fi
 
15073
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15074
      hardcode_direct_F77=yes
 
15075
      hardcode_minus_L_F77=yes
 
15076
      hardcode_shlibpath_var_F77=no
 
15077
      ;;
 
15078
 
 
15079
    sysv4)
 
15080
      case $host_vendor in
 
15081
        sni)
 
15082
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15083
          hardcode_direct_F77=yes # is this really true???
 
15084
        ;;
 
15085
        siemens)
 
15086
          ## LD is ld it makes a PLAMLIB
 
15087
          ## CC just makes a GrossModule.
 
15088
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15089
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15090
          hardcode_direct_F77=no
 
15091
        ;;
 
15092
        motorola)
 
15093
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15094
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15095
        ;;
 
15096
      esac
 
15097
      runpath_var='LD_RUN_PATH'
 
15098
      hardcode_shlibpath_var_F77=no
 
15099
      ;;
 
15100
 
 
15101
    sysv4.3*)
 
15102
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15103
      hardcode_shlibpath_var_F77=no
 
15104
      export_dynamic_flag_spec_F77='-Bexport'
 
15105
      ;;
 
15106
 
 
15107
    sysv4*MP*)
 
15108
      if test -d /usr/nec; then
 
15109
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15110
        hardcode_shlibpath_var_F77=no
 
15111
        runpath_var=LD_RUN_PATH
 
15112
        hardcode_runpath_var=yes
 
15113
        ld_shlibs_F77=yes
 
15114
      fi
 
15115
      ;;
 
15116
 
 
15117
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15118
      no_undefined_flag_F77='${wl}-z,text'
 
15119
      archive_cmds_need_lc_F77=no
 
15120
      hardcode_shlibpath_var_F77=no
 
15121
      runpath_var='LD_RUN_PATH'
 
15122
 
 
15123
      if test "$GCC" = yes; then
 
15124
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15125
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15126
      else
 
15127
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15128
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15129
      fi
 
15130
      ;;
 
15131
 
 
15132
    sysv5* | sco3.2v5* | sco5v6*)
 
15133
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15134
      # link with -lc, and that would cause any symbols used from libc to
 
15135
      # always be unresolved, which means just about no library would
 
15136
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15137
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15138
      # as -z defs.
 
15139
      no_undefined_flag_F77='${wl}-z,text'
 
15140
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15141
      archive_cmds_need_lc_F77=no
 
15142
      hardcode_shlibpath_var_F77=no
 
15143
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15144
      hardcode_libdir_separator_F77=':'
 
15145
      link_all_deplibs_F77=yes
 
15146
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15147
      runpath_var='LD_RUN_PATH'
 
15148
 
 
15149
      if test "$GCC" = yes; then
 
15150
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15151
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15152
      else
 
15153
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15154
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15155
      fi
 
15156
      ;;
 
15157
 
 
15158
    uts4*)
 
15159
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15160
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15161
      hardcode_shlibpath_var_F77=no
 
15162
      ;;
 
15163
 
 
15164
    *)
 
15165
      ld_shlibs_F77=no
 
15166
      ;;
 
15167
    esac
 
15168
  fi
 
15169
 
 
15170
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15171
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15172
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15173
 
 
15174
#
 
15175
# Do we need to explicitly link libc?
 
15176
#
 
15177
case "x$archive_cmds_need_lc_F77" in
 
15178
x|xyes)
 
15179
  # Assume -lc should be added
 
15180
  archive_cmds_need_lc_F77=yes
 
15181
 
 
15182
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15183
    case $archive_cmds_F77 in
 
15184
    *'~'*)
 
15185
      # FIXME: we may have to deal with multi-command sequences.
 
15186
      ;;
 
15187
    '$CC '*)
 
15188
      # Test whether the compiler implicitly links with -lc since on some
 
15189
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15190
      # to ld, don't add -lc before -lgcc.
 
15191
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15192
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15193
      $rm conftest*
 
15194
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15195
 
 
15196
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15197
  (eval $ac_compile) 2>&5
 
15198
  ac_status=$?
 
15199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15200
  (exit $ac_status); } 2>conftest.err; then
 
15201
        soname=conftest
 
15202
        lib=conftest
 
15203
        libobjs=conftest.$ac_objext
 
15204
        deplibs=
 
15205
        wl=$lt_prog_compiler_wl_F77
 
15206
        pic_flag=$lt_prog_compiler_pic_F77
 
15207
        compiler_flags=-v
 
15208
        linker_flags=-v
 
15209
        verstring=
 
15210
        output_objdir=.
 
15211
        libname=conftest
 
15212
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15213
        allow_undefined_flag_F77=
 
15214
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15215
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15216
  ac_status=$?
 
15217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15218
  (exit $ac_status); }
 
15219
        then
 
15220
          archive_cmds_need_lc_F77=no
 
15221
        else
 
15222
          archive_cmds_need_lc_F77=yes
 
15223
        fi
 
15224
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15225
      else
 
15226
        cat conftest.err 1>&5
 
15227
      fi
 
15228
      $rm conftest*
 
15229
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15230
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15231
      ;;
 
15232
    esac
 
15233
  fi
 
15234
  ;;
 
15235
esac
 
15236
 
 
15237
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15238
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15239
library_names_spec=
 
15240
libname_spec='lib$name'
 
15241
soname_spec=
 
15242
shrext_cmds=".so"
 
15243
postinstall_cmds=
 
15244
postuninstall_cmds=
 
15245
finish_cmds=
 
15246
finish_eval=
 
15247
shlibpath_var=
 
15248
shlibpath_overrides_runpath=unknown
 
15249
version_type=none
 
15250
dynamic_linker="$host_os ld.so"
 
15251
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15252
 
 
15253
need_lib_prefix=unknown
 
15254
hardcode_into_libs=no
 
15255
 
 
15256
# when you set need_version to no, make sure it does not cause -set_version
 
15257
# flags to be left without arguments
 
15258
need_version=unknown
 
15259
 
 
15260
case $host_os in
 
15261
aix3*)
 
15262
  version_type=linux
 
15263
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15264
  shlibpath_var=LIBPATH
 
15265
 
 
15266
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15267
  soname_spec='${libname}${release}${shared_ext}$major'
 
15268
  ;;
 
15269
 
 
15270
aix4* | aix5*)
 
15271
  version_type=linux
 
15272
  need_lib_prefix=no
 
15273
  need_version=no
 
15274
  hardcode_into_libs=yes
 
15275
  if test "$host_cpu" = ia64; then
 
15276
    # AIX 5 supports IA64
 
15277
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15278
    shlibpath_var=LD_LIBRARY_PATH
 
15279
  else
 
15280
    # With GCC up to 2.95.x, collect2 would create an import file
 
15281
    # for dependence libraries.  The import file would start with
 
15282
    # the line `#! .'.  This would cause the generated library to
 
15283
    # depend on `.', always an invalid library.  This was fixed in
 
15284
    # development snapshots of GCC prior to 3.0.
 
15285
    case $host_os in
 
15286
      aix4 | aix4.[01] | aix4.[01].*)
 
15287
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15288
           echo ' yes '
 
15289
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15290
        :
 
15291
      else
 
15292
        can_build_shared=no
 
15293
      fi
 
15294
      ;;
 
15295
    esac
 
15296
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15297
    # soname into executable. Probably we can add versioning support to
 
15298
    # collect2, so additional links can be useful in future.
 
15299
    if test "$aix_use_runtimelinking" = yes; then
 
15300
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15301
      # instead of lib<name>.a to let people know that these are not
 
15302
      # typical AIX shared libraries.
 
15303
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15304
    else
 
15305
      # We preserve .a as extension for shared libraries through AIX4.2
 
15306
      # and later when we are not doing run time linking.
 
15307
      library_names_spec='${libname}${release}.a $libname.a'
 
15308
      soname_spec='${libname}${release}${shared_ext}$major'
 
15309
    fi
 
15310
    shlibpath_var=LIBPATH
 
15311
  fi
 
15312
  ;;
 
15313
 
 
15314
amigaos*)
 
15315
  library_names_spec='$libname.ixlibrary $libname.a'
 
15316
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15317
  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'
 
15318
  ;;
 
15319
 
 
15320
beos*)
 
15321
  library_names_spec='${libname}${shared_ext}'
 
15322
  dynamic_linker="$host_os ld.so"
 
15323
  shlibpath_var=LIBRARY_PATH
 
15324
  ;;
 
15325
 
 
15326
bsdi[45]*)
 
15327
  version_type=linux
 
15328
  need_version=no
 
15329
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15330
  soname_spec='${libname}${release}${shared_ext}$major'
 
15331
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15332
  shlibpath_var=LD_LIBRARY_PATH
 
15333
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15334
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15335
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15336
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15337
  # libtool to hard-code these into programs
 
15338
  ;;
 
15339
 
 
15340
cygwin* | mingw* | pw32*)
 
15341
  version_type=windows
 
15342
  shrext_cmds=".dll"
 
15343
  need_version=no
 
15344
  need_lib_prefix=no
 
15345
 
 
15346
  case $GCC,$host_os in
 
15347
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15348
    library_names_spec='$libname.dll.a'
 
15349
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15350
    postinstall_cmds='base_file=`basename \${file}`~
 
15351
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15352
      dldir=$destdir/`dirname \$dlpath`~
 
15353
      test -d \$dldir || mkdir -p \$dldir~
 
15354
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15355
      chmod a+x \$dldir/$dlname'
 
15356
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15357
      dlpath=$dir/\$dldll~
 
15358
       $rm \$dlpath'
 
15359
    shlibpath_overrides_runpath=yes
 
15360
 
 
15361
    case $host_os in
 
15362
    cygwin*)
 
15363
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15364
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15365
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15366
      ;;
 
15367
    mingw*)
 
15368
      # MinGW DLLs use traditional 'lib' prefix
 
15369
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15370
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15371
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15372
        # It is most probably a Windows format PATH printed by
 
15373
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15374
        # path with ; separators, and with drive letters. We can handle the
 
15375
        # drive letters (cygwin fileutils understands them), so leave them,
 
15376
        # especially as we might pass files found there to a mingw objdump,
 
15377
        # which wouldn't understand a cygwinified path. Ahh.
 
15378
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15379
      else
 
15380
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15381
      fi
 
15382
      ;;
 
15383
    pw32*)
 
15384
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15385
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15386
      ;;
 
15387
    esac
 
15388
    ;;
 
15389
 
 
15390
  *)
 
15391
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15392
    ;;
 
15393
  esac
 
15394
  dynamic_linker='Win32 ld.exe'
 
15395
  # FIXME: first we should search . and the directory the executable is in
 
15396
  shlibpath_var=PATH
 
15397
  ;;
 
15398
 
 
15399
darwin* | rhapsody*)
 
15400
  dynamic_linker="$host_os dyld"
 
15401
  version_type=darwin
 
15402
  need_lib_prefix=no
 
15403
  need_version=no
 
15404
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15405
  soname_spec='${libname}${release}${major}$shared_ext'
 
15406
  shlibpath_overrides_runpath=yes
 
15407
  shlibpath_var=DYLD_LIBRARY_PATH
 
15408
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15409
   
 
15410
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15411
  ;;
 
15412
 
 
15413
dgux*)
 
15414
  version_type=linux
 
15415
  need_lib_prefix=no
 
15416
  need_version=no
 
15417
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15418
  soname_spec='${libname}${release}${shared_ext}$major'
 
15419
  shlibpath_var=LD_LIBRARY_PATH
 
15420
  ;;
 
15421
 
 
15422
freebsd1*)
 
15423
  dynamic_linker=no
 
15424
  ;;
 
15425
 
 
15426
freebsd* | dragonfly*)
 
15427
  # DragonFly does not have aout.  When/if they implement a new
 
15428
  # versioning mechanism, adjust this.
 
15429
  if test -x /usr/bin/objformat; then
 
15430
    objformat=`/usr/bin/objformat`
 
15431
  else
 
15432
    case $host_os in
 
15433
    freebsd[123]*) objformat=aout ;;
 
15434
    *) objformat=elf ;;
 
15435
    esac
 
15436
  fi
 
15437
  version_type=freebsd-$objformat
 
15438
  case $version_type in
 
15439
    freebsd-elf*)
 
15440
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15441
      need_version=no
 
15442
      need_lib_prefix=no
 
15443
      ;;
 
15444
    freebsd-*)
 
15445
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15446
      need_version=yes
 
15447
      ;;
 
15448
  esac
 
15449
  shlibpath_var=LD_LIBRARY_PATH
 
15450
  case $host_os in
 
15451
  freebsd2*)
 
15452
    shlibpath_overrides_runpath=yes
 
15453
    ;;
 
15454
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15455
    shlibpath_overrides_runpath=yes
 
15456
    hardcode_into_libs=yes
 
15457
    ;;
 
15458
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15459
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15460
    shlibpath_overrides_runpath=no
 
15461
    hardcode_into_libs=yes
 
15462
    ;;
 
15463
  *) # from 4.6 on, and DragonFly
 
15464
    shlibpath_overrides_runpath=yes
 
15465
    hardcode_into_libs=yes
 
15466
    ;;
 
15467
  esac
 
15468
  ;;
 
15469
 
 
15470
gnu*)
 
15471
  version_type=linux
 
15472
  need_lib_prefix=no
 
15473
  need_version=no
 
15474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15475
  soname_spec='${libname}${release}${shared_ext}$major'
 
15476
  shlibpath_var=LD_LIBRARY_PATH
 
15477
  hardcode_into_libs=yes
 
15478
  ;;
 
15479
 
 
15480
hpux9* | hpux10* | hpux11*)
 
15481
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15482
  # link against other versions.
 
15483
  version_type=sunos
 
15484
  need_lib_prefix=no
 
15485
  need_version=no
 
15486
  case $host_cpu in
 
15487
  ia64*)
 
15488
    shrext_cmds='.so'
 
15489
    hardcode_into_libs=yes
 
15490
    dynamic_linker="$host_os dld.so"
 
15491
    shlibpath_var=LD_LIBRARY_PATH
 
15492
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15493
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15494
    soname_spec='${libname}${release}${shared_ext}$major'
 
15495
    if test "X$HPUX_IA64_MODE" = X32; then
 
15496
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15497
    else
 
15498
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15499
    fi
 
15500
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15501
    ;;
 
15502
   hppa*64*)
 
15503
     shrext_cmds='.sl'
 
15504
     hardcode_into_libs=yes
 
15505
     dynamic_linker="$host_os dld.sl"
 
15506
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15507
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15508
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15509
     soname_spec='${libname}${release}${shared_ext}$major'
 
15510
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15511
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15512
     ;;
 
15513
   *)
 
15514
    shrext_cmds='.sl'
 
15515
    dynamic_linker="$host_os dld.sl"
 
15516
    shlibpath_var=SHLIB_PATH
 
15517
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15518
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15519
    soname_spec='${libname}${release}${shared_ext}$major'
 
15520
    ;;
 
15521
  esac
 
15522
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15523
  postinstall_cmds='chmod 555 $lib'
 
15524
  ;;
 
15525
 
 
15526
interix[3-9]*)
 
15527
  version_type=linux
 
15528
  need_lib_prefix=no
 
15529
  need_version=no
 
15530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15531
  soname_spec='${libname}${release}${shared_ext}$major'
 
15532
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15533
  shlibpath_var=LD_LIBRARY_PATH
 
15534
  shlibpath_overrides_runpath=no
 
15535
  hardcode_into_libs=yes
 
15536
  ;;
 
15537
 
 
15538
irix5* | irix6* | nonstopux*)
 
15539
  case $host_os in
 
15540
    nonstopux*) version_type=nonstopux ;;
 
15541
    *)
 
15542
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15543
                version_type=linux
 
15544
        else
 
15545
                version_type=irix
 
15546
        fi ;;
 
15547
  esac
 
15548
  need_lib_prefix=no
 
15549
  need_version=no
 
15550
  soname_spec='${libname}${release}${shared_ext}$major'
 
15551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15552
  case $host_os in
 
15553
  irix5* | nonstopux*)
 
15554
    libsuff= shlibsuff=
 
15555
    ;;
 
15556
  *)
 
15557
    case $LD in # libtool.m4 will add one of these switches to LD
 
15558
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15559
      libsuff= shlibsuff= libmagic=32-bit;;
 
15560
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15561
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15562
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15563
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15564
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15565
    esac
 
15566
    ;;
 
15567
  esac
 
15568
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15569
  shlibpath_overrides_runpath=no
 
15570
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15571
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15572
  hardcode_into_libs=yes
 
15573
  ;;
 
15574
 
 
15575
# No shared lib support for Linux oldld, aout, or coff.
 
15576
linux*oldld* | linux*aout* | linux*coff*)
 
15577
  dynamic_linker=no
 
15578
  ;;
 
15579
 
 
15580
# This must be Linux ELF.
 
15581
linux* | k*bsd*-gnu)
 
15582
  version_type=linux
 
15583
  need_lib_prefix=no
 
15584
  need_version=no
 
15585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15586
  soname_spec='${libname}${release}${shared_ext}$major'
 
15587
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15588
  shlibpath_var=LD_LIBRARY_PATH
 
15589
  shlibpath_overrides_runpath=no
 
15590
  # This implies no fast_install, which is unacceptable.
 
15591
  # Some rework will be needed to allow for fast_install
 
15592
  # before this can be enabled.
 
15593
  hardcode_into_libs=yes
 
15594
 
 
15595
  # Append ld.so.conf contents to the search path
 
15596
  if test -f /etc/ld.so.conf; then
 
15597
    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' ' '`
 
15598
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15599
  fi
 
15600
 
 
15601
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15602
  # powerpc, because MkLinux only supported shared libraries with the
 
15603
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15604
  # most powerpc-linux boxes support dynamic linking these days and
 
15605
  # people can always --disable-shared, the test was removed, and we
 
15606
  # assume the GNU/Linux dynamic linker is in use.
 
15607
  dynamic_linker='GNU/Linux ld.so'
 
15608
  ;;
 
15609
 
 
15610
netbsdelf*-gnu)
 
15611
  version_type=linux
 
15612
  need_lib_prefix=no
 
15613
  need_version=no
 
15614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15615
  soname_spec='${libname}${release}${shared_ext}$major'
 
15616
  shlibpath_var=LD_LIBRARY_PATH
 
15617
  shlibpath_overrides_runpath=no
 
15618
  hardcode_into_libs=yes
 
15619
  dynamic_linker='NetBSD ld.elf_so'
 
15620
  ;;
 
15621
 
 
15622
netbsd*)
 
15623
  version_type=sunos
 
15624
  need_lib_prefix=no
 
15625
  need_version=no
 
15626
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15627
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15628
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15629
    dynamic_linker='NetBSD (a.out) ld.so'
 
15630
  else
 
15631
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15632
    soname_spec='${libname}${release}${shared_ext}$major'
 
15633
    dynamic_linker='NetBSD ld.elf_so'
 
15634
  fi
 
15635
  shlibpath_var=LD_LIBRARY_PATH
 
15636
  shlibpath_overrides_runpath=yes
 
15637
  hardcode_into_libs=yes
 
15638
  ;;
 
15639
 
 
15640
newsos6)
 
15641
  version_type=linux
 
15642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15643
  shlibpath_var=LD_LIBRARY_PATH
 
15644
  shlibpath_overrides_runpath=yes
 
15645
  ;;
 
15646
 
 
15647
nto-qnx*)
 
15648
  version_type=linux
 
15649
  need_lib_prefix=no
 
15650
  need_version=no
 
15651
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15652
  soname_spec='${libname}${release}${shared_ext}$major'
 
15653
  shlibpath_var=LD_LIBRARY_PATH
 
15654
  shlibpath_overrides_runpath=yes
 
15655
  ;;
 
15656
 
 
15657
openbsd*)
 
15658
  version_type=sunos
 
15659
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15660
  need_lib_prefix=no
 
15661
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15662
  case $host_os in
 
15663
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15664
    *)                         need_version=no  ;;
 
15665
  esac
 
15666
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15667
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15668
  shlibpath_var=LD_LIBRARY_PATH
 
15669
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15670
    case $host_os in
 
15671
      openbsd2.[89] | openbsd2.[89].*)
 
15672
        shlibpath_overrides_runpath=no
 
15673
        ;;
 
15674
      *)
 
15675
        shlibpath_overrides_runpath=yes
 
15676
        ;;
 
15677
      esac
 
15678
  else
 
15679
    shlibpath_overrides_runpath=yes
 
15680
  fi
 
15681
  ;;
 
15682
 
 
15683
os2*)
 
15684
  libname_spec='$name'
 
15685
  shrext_cmds=".dll"
 
15686
  need_lib_prefix=no
 
15687
  library_names_spec='$libname${shared_ext} $libname.a'
 
15688
  dynamic_linker='OS/2 ld.exe'
 
15689
  shlibpath_var=LIBPATH
 
15690
  ;;
 
15691
 
 
15692
osf3* | osf4* | osf5*)
 
15693
  version_type=osf
 
15694
  need_lib_prefix=no
 
15695
  need_version=no
 
15696
  soname_spec='${libname}${release}${shared_ext}$major'
 
15697
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15698
  shlibpath_var=LD_LIBRARY_PATH
 
15699
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15700
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15701
  ;;
 
15702
 
 
15703
rdos*)
 
15704
  dynamic_linker=no
 
15705
  ;;
 
15706
 
 
15707
solaris*)
 
15708
  version_type=linux
 
15709
  need_lib_prefix=no
 
15710
  need_version=no
 
15711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15712
  soname_spec='${libname}${release}${shared_ext}$major'
 
15713
  shlibpath_var=LD_LIBRARY_PATH
 
15714
  shlibpath_overrides_runpath=yes
 
15715
  hardcode_into_libs=yes
 
15716
  # ldd complains unless libraries are executable
 
15717
  postinstall_cmds='chmod +x $lib'
 
15718
  ;;
 
15719
 
 
15720
sunos4*)
 
15721
  version_type=sunos
 
15722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15723
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15724
  shlibpath_var=LD_LIBRARY_PATH
 
15725
  shlibpath_overrides_runpath=yes
 
15726
  if test "$with_gnu_ld" = yes; then
 
15727
    need_lib_prefix=no
 
15728
  fi
 
15729
  need_version=yes
 
15730
  ;;
 
15731
 
 
15732
sysv4 | sysv4.3*)
 
15733
  version_type=linux
 
15734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15735
  soname_spec='${libname}${release}${shared_ext}$major'
 
15736
  shlibpath_var=LD_LIBRARY_PATH
 
15737
  case $host_vendor in
 
15738
    sni)
 
15739
      shlibpath_overrides_runpath=no
 
15740
      need_lib_prefix=no
 
15741
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15742
      runpath_var=LD_RUN_PATH
 
15743
      ;;
 
15744
    siemens)
 
15745
      need_lib_prefix=no
 
15746
      ;;
 
15747
    motorola)
 
15748
      need_lib_prefix=no
 
15749
      need_version=no
 
15750
      shlibpath_overrides_runpath=no
 
15751
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15752
      ;;
 
15753
  esac
 
15754
  ;;
 
15755
 
 
15756
sysv4*MP*)
 
15757
  if test -d /usr/nec ;then
 
15758
    version_type=linux
 
15759
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15760
    soname_spec='$libname${shared_ext}.$major'
 
15761
    shlibpath_var=LD_LIBRARY_PATH
 
15762
  fi
 
15763
  ;;
 
15764
 
 
15765
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15766
  version_type=freebsd-elf
 
15767
  need_lib_prefix=no
 
15768
  need_version=no
 
15769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15770
  soname_spec='${libname}${release}${shared_ext}$major'
 
15771
  shlibpath_var=LD_LIBRARY_PATH
 
15772
  hardcode_into_libs=yes
 
15773
  if test "$with_gnu_ld" = yes; then
 
15774
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15775
    shlibpath_overrides_runpath=no
 
15776
  else
 
15777
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15778
    shlibpath_overrides_runpath=yes
 
15779
    case $host_os in
 
15780
      sco3.2v5*)
 
15781
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15782
        ;;
 
15783
    esac
 
15784
  fi
 
15785
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15786
  ;;
 
15787
 
 
15788
uts4*)
 
15789
  version_type=linux
 
15790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15791
  soname_spec='${libname}${release}${shared_ext}$major'
 
15792
  shlibpath_var=LD_LIBRARY_PATH
 
15793
  ;;
 
15794
 
 
15795
*)
 
15796
  dynamic_linker=no
 
15797
  ;;
 
15798
esac
 
15799
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15800
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15801
test "$dynamic_linker" = no && can_build_shared=no
 
15802
 
 
15803
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15804
if test "$GCC" = yes; then
 
15805
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15806
fi
 
15807
 
 
15808
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15809
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15810
hardcode_action_F77=
 
15811
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15812
   test -n "$runpath_var_F77" || \
 
15813
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15814
 
 
15815
  # We can hardcode non-existant directories.
 
15816
  if test "$hardcode_direct_F77" != no &&
 
15817
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15818
     # have to relink, otherwise we might link with an installed library
 
15819
     # when we should be linking with a yet-to-be-installed one
 
15820
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15821
     test "$hardcode_minus_L_F77" != no; then
 
15822
    # Linking always hardcodes the temporary library directory.
 
15823
    hardcode_action_F77=relink
 
15824
  else
 
15825
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15826
    hardcode_action_F77=immediate
 
15827
  fi
 
15828
else
 
15829
  # We cannot hardcode anything, or else we can only hardcode existing
 
15830
  # directories.
 
15831
  hardcode_action_F77=unsupported
 
15832
fi
 
15833
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15834
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
15835
 
 
15836
if test "$hardcode_action_F77" = relink; then
 
15837
  # Fast installation is not supported
 
15838
  enable_fast_install=no
 
15839
elif test "$shlibpath_overrides_runpath" = yes ||
 
15840
     test "$enable_shared" = no; then
 
15841
  # Fast installation is not necessary
 
15842
  enable_fast_install=needless
 
15843
fi
 
15844
 
 
15845
 
 
15846
# The else clause should only fire when bootstrapping the
 
15847
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15848
# with your package, and you will get complaints that there are
 
15849
# no rules to generate ltmain.sh.
 
15850
if test -f "$ltmain"; then
 
15851
  # See if we are running on zsh, and set the options which allow our commands through
 
15852
  # without removal of \ escapes.
 
15853
  if test -n "${ZSH_VERSION+set}" ; then
 
15854
    setopt NO_GLOB_SUBST
 
15855
  fi
 
15856
  # Now quote all the things that may contain metacharacters while being
 
15857
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15858
  # variables and quote the copies for generation of the libtool script.
 
15859
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15860
    SED SHELL STRIP \
 
15861
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15862
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15863
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15864
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15865
    lt_cv_sys_global_symbol_to_c_name_address \
 
15866
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15867
    old_postinstall_cmds old_postuninstall_cmds \
 
15868
    compiler_F77 \
 
15869
    CC_F77 \
 
15870
    LD_F77 \
 
15871
    lt_prog_compiler_wl_F77 \
 
15872
    lt_prog_compiler_pic_F77 \
 
15873
    lt_prog_compiler_static_F77 \
 
15874
    lt_prog_compiler_no_builtin_flag_F77 \
 
15875
    export_dynamic_flag_spec_F77 \
 
15876
    thread_safe_flag_spec_F77 \
 
15877
    whole_archive_flag_spec_F77 \
 
15878
    enable_shared_with_static_runtimes_F77 \
 
15879
    old_archive_cmds_F77 \
 
15880
    old_archive_from_new_cmds_F77 \
 
15881
    predep_objects_F77 \
 
15882
    postdep_objects_F77 \
 
15883
    predeps_F77 \
 
15884
    postdeps_F77 \
 
15885
    compiler_lib_search_path_F77 \
 
15886
    archive_cmds_F77 \
 
15887
    archive_expsym_cmds_F77 \
 
15888
    postinstall_cmds_F77 \
 
15889
    postuninstall_cmds_F77 \
 
15890
    old_archive_from_expsyms_cmds_F77 \
 
15891
    allow_undefined_flag_F77 \
 
15892
    no_undefined_flag_F77 \
 
15893
    export_symbols_cmds_F77 \
 
15894
    hardcode_libdir_flag_spec_F77 \
 
15895
    hardcode_libdir_flag_spec_ld_F77 \
 
15896
    hardcode_libdir_separator_F77 \
 
15897
    hardcode_automatic_F77 \
 
15898
    module_cmds_F77 \
 
15899
    module_expsym_cmds_F77 \
 
15900
    lt_cv_prog_compiler_c_o_F77 \
 
15901
    fix_srcfile_path_F77 \
 
15902
    exclude_expsyms_F77 \
 
15903
    include_expsyms_F77; do
 
15904
 
 
15905
    case $var in
 
15906
    old_archive_cmds_F77 | \
 
15907
    old_archive_from_new_cmds_F77 | \
 
15908
    archive_cmds_F77 | \
 
15909
    archive_expsym_cmds_F77 | \
 
15910
    module_cmds_F77 | \
 
15911
    module_expsym_cmds_F77 | \
 
15912
    old_archive_from_expsyms_cmds_F77 | \
 
15913
    export_symbols_cmds_F77 | \
 
15914
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15915
    postinstall_cmds | postuninstall_cmds | \
 
15916
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15917
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15918
      # Double-quote double-evaled strings.
 
15919
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15920
      ;;
 
15921
    *)
 
15922
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15923
      ;;
 
15924
    esac
 
15925
  done
 
15926
 
 
15927
  case $lt_echo in
 
15928
  *'\$0 --fallback-echo"')
 
15929
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15930
    ;;
 
15931
  esac
 
15932
 
 
15933
cfgfile="$ofile"
 
15934
 
 
15935
  cat <<__EOF__ >> "$cfgfile"
 
15936
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15937
 
 
15938
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15939
 
 
15940
# Shell to use when invoking shell scripts.
 
15941
SHELL=$lt_SHELL
 
15942
 
 
15943
# Whether or not to build shared libraries.
 
15944
build_libtool_libs=$enable_shared
 
15945
 
 
15946
# Whether or not to build static libraries.
 
15947
build_old_libs=$enable_static
 
15948
 
 
15949
# Whether or not to add -lc for building shared libraries.
 
15950
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15951
 
 
15952
# Whether or not to disallow shared libs when runtime libs are static
 
15953
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15954
 
 
15955
# Whether or not to optimize for fast installation.
 
15956
fast_install=$enable_fast_install
 
15957
 
 
15958
# The host system.
 
15959
host_alias=$host_alias
 
15960
host=$host
 
15961
host_os=$host_os
 
15962
 
 
15963
# The build system.
 
15964
build_alias=$build_alias
 
15965
build=$build
 
15966
build_os=$build_os
 
15967
 
 
15968
# An echo program that does not interpret backslashes.
 
15969
echo=$lt_echo
 
15970
 
 
15971
# The archiver.
 
15972
AR=$lt_AR
 
15973
AR_FLAGS=$lt_AR_FLAGS
 
15974
 
 
15975
# A C compiler.
 
15976
LTCC=$lt_LTCC
 
15977
 
 
15978
# LTCC compiler flags.
 
15979
LTCFLAGS=$lt_LTCFLAGS
 
15980
 
 
15981
# A language-specific compiler.
 
15982
CC=$lt_compiler_F77
 
15983
 
 
15984
# Is the compiler the GNU C compiler?
 
15985
with_gcc=$GCC_F77
 
15986
 
 
15987
# An ERE matcher.
 
15988
EGREP=$lt_EGREP
 
15989
 
 
15990
# The linker used to build libraries.
 
15991
LD=$lt_LD_F77
 
15992
 
 
15993
# Whether we need hard or soft links.
 
15994
LN_S=$lt_LN_S
 
15995
 
 
15996
# A BSD-compatible nm program.
 
15997
NM=$lt_NM
 
15998
 
 
15999
# A symbol stripping program
 
16000
STRIP=$lt_STRIP
 
16001
 
 
16002
# Used to examine libraries when file_magic_cmd begins "file"
 
16003
MAGIC_CMD=$MAGIC_CMD
 
16004
 
 
16005
# Used on cygwin: DLL creation program.
 
16006
DLLTOOL="$DLLTOOL"
 
16007
 
 
16008
# Used on cygwin: object dumper.
 
16009
OBJDUMP="$OBJDUMP"
 
16010
 
 
16011
# Used on cygwin: assembler.
 
16012
AS="$AS"
 
16013
 
 
16014
# The name of the directory that contains temporary libtool files.
 
16015
objdir=$objdir
 
16016
 
 
16017
# How to create reloadable object files.
 
16018
reload_flag=$lt_reload_flag
 
16019
reload_cmds=$lt_reload_cmds
 
16020
 
 
16021
# How to pass a linker flag through the compiler.
 
16022
wl=$lt_lt_prog_compiler_wl_F77
 
16023
 
 
16024
# Object file suffix (normally "o").
 
16025
objext="$ac_objext"
 
16026
 
 
16027
# Old archive suffix (normally "a").
 
16028
libext="$libext"
 
16029
 
 
16030
# Shared library suffix (normally ".so").
 
16031
shrext_cmds='$shrext_cmds'
 
16032
 
 
16033
# Executable file suffix (normally "").
 
16034
exeext="$exeext"
 
16035
 
 
16036
# Additional compiler flags for building library objects.
 
16037
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16038
pic_mode=$pic_mode
 
16039
 
 
16040
# What is the maximum length of a command?
 
16041
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16042
 
 
16043
# Does compiler simultaneously support -c and -o options?
 
16044
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16045
 
 
16046
# Must we lock files when doing compilation?
 
16047
need_locks=$lt_need_locks
 
16048
 
 
16049
# Do we need the lib prefix for modules?
 
16050
need_lib_prefix=$need_lib_prefix
 
16051
 
 
16052
# Do we need a version for libraries?
 
16053
need_version=$need_version
 
16054
 
 
16055
# Whether dlopen is supported.
 
16056
dlopen_support=$enable_dlopen
 
16057
 
 
16058
# Whether dlopen of programs is supported.
 
16059
dlopen_self=$enable_dlopen_self
 
16060
 
 
16061
# Whether dlopen of statically linked programs is supported.
 
16062
dlopen_self_static=$enable_dlopen_self_static
 
16063
 
 
16064
# Compiler flag to prevent dynamic linking.
 
16065
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16066
 
 
16067
# Compiler flag to turn off builtin functions.
 
16068
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16069
 
 
16070
# Compiler flag to allow reflexive dlopens.
 
16071
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16072
 
 
16073
# Compiler flag to generate shared objects directly from archives.
 
16074
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16075
 
 
16076
# Compiler flag to generate thread-safe objects.
 
16077
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16078
 
 
16079
# Library versioning type.
 
16080
version_type=$version_type
 
16081
 
 
16082
# Format of library name prefix.
 
16083
libname_spec=$lt_libname_spec
 
16084
 
 
16085
# List of archive names.  First name is the real one, the rest are links.
 
16086
# The last name is the one that the linker finds with -lNAME.
 
16087
library_names_spec=$lt_library_names_spec
 
16088
 
 
16089
# The coded name of the library, if different from the real name.
 
16090
soname_spec=$lt_soname_spec
 
16091
 
 
16092
# Commands used to build and install an old-style archive.
 
16093
RANLIB=$lt_RANLIB
 
16094
old_archive_cmds=$lt_old_archive_cmds_F77
 
16095
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16096
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16097
 
 
16098
# Create an old-style archive from a shared archive.
 
16099
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16100
 
 
16101
# Create a temporary old-style archive to link instead of a shared archive.
 
16102
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16103
 
 
16104
# Commands used to build and install a shared archive.
 
16105
archive_cmds=$lt_archive_cmds_F77
 
16106
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16107
postinstall_cmds=$lt_postinstall_cmds
 
16108
postuninstall_cmds=$lt_postuninstall_cmds
 
16109
 
 
16110
# Commands used to build a loadable module (assumed same as above if empty)
 
16111
module_cmds=$lt_module_cmds_F77
 
16112
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16113
 
 
16114
# Commands to strip libraries.
 
16115
old_striplib=$lt_old_striplib
 
16116
striplib=$lt_striplib
 
16117
 
 
16118
# Dependencies to place before the objects being linked to create a
 
16119
# shared library.
 
16120
predep_objects=$lt_predep_objects_F77
 
16121
 
 
16122
# Dependencies to place after the objects being linked to create a
 
16123
# shared library.
 
16124
postdep_objects=$lt_postdep_objects_F77
 
16125
 
 
16126
# Dependencies to place before the objects being linked to create a
 
16127
# shared library.
 
16128
predeps=$lt_predeps_F77
 
16129
 
 
16130
# Dependencies to place after the objects being linked to create a
 
16131
# shared library.
 
16132
postdeps=$lt_postdeps_F77
 
16133
 
 
16134
# The library search path used internally by the compiler when linking
 
16135
# a shared library.
 
16136
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16137
 
 
16138
# Method to check whether dependent libraries are shared objects.
 
16139
deplibs_check_method=$lt_deplibs_check_method
 
16140
 
 
16141
# Command to use when deplibs_check_method == file_magic.
 
16142
file_magic_cmd=$lt_file_magic_cmd
 
16143
 
 
16144
# Flag that allows shared libraries with undefined symbols to be built.
 
16145
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16146
 
 
16147
# Flag that forces no undefined symbols.
 
16148
no_undefined_flag=$lt_no_undefined_flag_F77
 
16149
 
 
16150
# Commands used to finish a libtool library installation in a directory.
 
16151
finish_cmds=$lt_finish_cmds
 
16152
 
 
16153
# Same as above, but a single script fragment to be evaled but not shown.
 
16154
finish_eval=$lt_finish_eval
 
16155
 
 
16156
# Take the output of nm and produce a listing of raw symbols and C names.
 
16157
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16158
 
 
16159
# Transform the output of nm in a proper C declaration
 
16160
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16161
 
 
16162
# Transform the output of nm in a C name address pair
 
16163
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16164
 
 
16165
# This is the shared library runtime path variable.
 
16166
runpath_var=$runpath_var
 
16167
 
 
16168
# This is the shared library path variable.
 
16169
shlibpath_var=$shlibpath_var
 
16170
 
 
16171
# Is shlibpath searched before the hard-coded library search path?
 
16172
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16173
 
 
16174
# How to hardcode a shared library path into an executable.
 
16175
hardcode_action=$hardcode_action_F77
 
16176
 
 
16177
# Whether we should hardcode library paths into libraries.
 
16178
hardcode_into_libs=$hardcode_into_libs
 
16179
 
 
16180
# Flag to hardcode \$libdir into a binary during linking.
 
16181
# This must work even if \$libdir does not exist.
 
16182
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16183
 
 
16184
# If ld is used when linking, flag to hardcode \$libdir into
 
16185
# a binary during linking. This must work even if \$libdir does
 
16186
# not exist.
 
16187
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16188
 
 
16189
# Whether we need a single -rpath flag with a separated argument.
 
16190
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16191
 
 
16192
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16193
# resulting binary.
 
16194
hardcode_direct=$hardcode_direct_F77
 
16195
 
 
16196
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16197
# resulting binary.
 
16198
hardcode_minus_L=$hardcode_minus_L_F77
 
16199
 
 
16200
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16201
# the resulting binary.
 
16202
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16203
 
 
16204
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16205
# and all subsequent libraries and executables linked against it.
 
16206
hardcode_automatic=$hardcode_automatic_F77
 
16207
 
 
16208
# Variables whose values should be saved in libtool wrapper scripts and
 
16209
# restored at relink time.
 
16210
variables_saved_for_relink="$variables_saved_for_relink"
 
16211
 
 
16212
# Whether libtool must link a program against all its dependency libraries.
 
16213
link_all_deplibs=$link_all_deplibs_F77
 
16214
 
 
16215
# Compile-time system search path for libraries
 
16216
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16217
 
 
16218
# Run-time system search path for libraries
 
16219
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16220
 
 
16221
# Fix the shell variable \$srcfile for the compiler.
 
16222
fix_srcfile_path=$lt_fix_srcfile_path
 
16223
 
 
16224
# Set to yes if exported symbols are required.
 
16225
always_export_symbols=$always_export_symbols_F77
 
16226
 
 
16227
# The commands to list exported symbols.
 
16228
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16229
 
 
16230
# The commands to extract the exported symbol list from a shared archive.
 
16231
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16232
 
 
16233
# Symbols that should not be listed in the preloaded symbols.
 
16234
exclude_expsyms=$lt_exclude_expsyms_F77
 
16235
 
 
16236
# Symbols that must always be exported.
 
16237
include_expsyms=$lt_include_expsyms_F77
 
16238
 
 
16239
# ### END LIBTOOL TAG CONFIG: $tagname
 
16240
 
 
16241
__EOF__
 
16242
 
 
16243
 
 
16244
else
 
16245
  # If there is no Makefile yet, we rely on a make rule to execute
 
16246
  # `config.status --recheck' to rerun these tests and create the
 
16247
  # libtool script then.
 
16248
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16249
  if test -f "$ltmain_in"; then
 
16250
    test -f Makefile && make "$ltmain"
 
16251
  fi
 
16252
fi
 
16253
 
 
16254
 
 
16255
ac_ext=c
 
16256
ac_cpp='$CPP $CPPFLAGS'
 
16257
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16258
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16259
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16260
 
 
16261
CC="$lt_save_CC"
 
16262
 
 
16263
        else
 
16264
          tagname=""
 
16265
        fi
 
16266
        ;;
 
16267
 
 
16268
      GCJ)
 
16269
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16270
          
 
16271
 
 
16272
# Source file extension for Java test sources.
 
16273
ac_ext=java
 
16274
 
 
16275
# Object file extension for compiled Java test sources.
 
16276
objext=o
 
16277
objext_GCJ=$objext
 
16278
 
 
16279
# Code to be used in simple compile tests
 
16280
lt_simple_compile_test_code="class foo {}"
 
16281
 
 
16282
# Code to be used in simple link tests
 
16283
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16284
 
 
16285
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16286
 
 
16287
# If no C compiler was specified, use CC.
 
16288
LTCC=${LTCC-"$CC"}
 
16289
 
 
16290
# If no C compiler flags were specified, use CFLAGS.
 
16291
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16292
 
 
16293
# Allow CC to be a program name with arguments.
 
16294
compiler=$CC
 
16295
 
 
16296
 
 
16297
# save warnings/boilerplate of simple test code
 
16298
ac_outfile=conftest.$ac_objext
 
16299
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16300
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16301
_lt_compiler_boilerplate=`cat conftest.err`
 
16302
$rm conftest*
 
16303
 
 
16304
ac_outfile=conftest.$ac_objext
 
16305
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16306
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16307
_lt_linker_boilerplate=`cat conftest.err`
 
16308
$rm conftest*
 
16309
 
 
16310
 
 
16311
# Allow CC to be a program name with arguments.
 
16312
lt_save_CC="$CC"
 
16313
CC=${GCJ-"gcj"}
 
16314
compiler=$CC
 
16315
compiler_GCJ=$CC
 
16316
for cc_temp in $compiler""; do
 
16317
  case $cc_temp in
 
16318
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16319
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16320
    \-*) ;;
 
16321
    *) break;;
 
16322
  esac
 
16323
done
 
16324
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16325
 
 
16326
 
 
16327
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16328
archive_cmds_need_lc_GCJ=no
 
16329
 
 
16330
old_archive_cmds_GCJ=$old_archive_cmds
 
16331
 
 
16332
 
 
16333
lt_prog_compiler_no_builtin_flag_GCJ=
 
16334
 
 
16335
if test "$GCC" = yes; then
 
16336
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16337
 
 
16338
  
 
16339
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16340
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16341
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16343
else
 
16344
  lt_cv_prog_compiler_rtti_exceptions=no
 
16345
  ac_outfile=conftest.$ac_objext
 
16346
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16347
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16348
   # Insert the option either (1) after the last *FLAGS variable, or
 
16349
   # (2) before a word containing "conftest.", or (3) at the end.
 
16350
   # Note that $ac_compile itself does not contain backslashes and begins
 
16351
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16352
   # The option is referenced via a variable to avoid confusing sed.
 
16353
   lt_compile=`echo "$ac_compile" | $SED \
 
16354
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16355
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16356
   -e 's:$: $lt_compiler_flag:'`
 
16357
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16358
   (eval "$lt_compile" 2>conftest.err)
 
16359
   ac_status=$?
 
16360
   cat conftest.err >&5
 
16361
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16362
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16363
     # The compiler can only warn and ignore the option if not recognized
 
16364
     # So say no if there are warnings other than the usual output.
 
16365
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16366
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16367
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16368
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16369
     fi
 
16370
   fi
 
16371
   $rm conftest*
 
16372
 
 
16373
fi
 
16374
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16375
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16376
 
 
16377
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16378
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16379
else
 
16380
    :
 
16381
fi
 
16382
 
 
16383
fi
 
16384
 
 
16385
lt_prog_compiler_wl_GCJ=
 
16386
lt_prog_compiler_pic_GCJ=
 
16387
lt_prog_compiler_static_GCJ=
 
16388
 
 
16389
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16390
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16391
 
 
16392
  if test "$GCC" = yes; then
 
16393
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16394
    lt_prog_compiler_static_GCJ='-static'
 
16395
 
 
16396
    case $host_os in
 
16397
      aix*)
 
16398
      # All AIX code is PIC.
 
16399
      if test "$host_cpu" = ia64; then
 
16400
        # AIX 5 now supports IA64 processor
 
16401
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16402
      fi
 
16403
      ;;
 
16404
 
 
16405
    amigaos*)
 
16406
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16407
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16408
      # like `-m68040'.
 
16409
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16410
      ;;
 
16411
 
 
16412
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16413
      # PIC is the default for these OSes.
 
16414
      ;;
 
16415
 
 
16416
    mingw* | cygwin* | pw32* | os2*)
 
16417
      # This hack is so that the source file can tell whether it is being
 
16418
      # built for inclusion in a dll (and should export symbols for example).
 
16419
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16420
      # (--disable-auto-import) libraries
 
16421
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16422
      ;;
 
16423
 
 
16424
    darwin* | rhapsody*)
 
16425
      # PIC is the default on this platform
 
16426
      # Common symbols not allowed in MH_DYLIB files
 
16427
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16428
      ;;
 
16429
 
 
16430
    interix[3-9]*)
 
16431
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16432
      # Instead, we relocate shared libraries at runtime.
 
16433
      ;;
 
16434
 
 
16435
    msdosdjgpp*)
 
16436
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16437
      # on systems that don't support them.
 
16438
      lt_prog_compiler_can_build_shared_GCJ=no
 
16439
      enable_shared=no
 
16440
      ;;
 
16441
 
 
16442
    sysv4*MP*)
 
16443
      if test -d /usr/nec; then
 
16444
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16445
      fi
 
16446
      ;;
 
16447
 
 
16448
    hpux*)
 
16449
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16450
      # not for PA HP-UX.
 
16451
      case $host_cpu in
 
16452
      hppa*64*|ia64*)
 
16453
        # +Z the default
 
16454
        ;;
 
16455
      *)
 
16456
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16457
        ;;
 
16458
      esac
 
16459
      ;;
 
16460
 
 
16461
    *)
 
16462
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16463
      ;;
 
16464
    esac
 
16465
  else
 
16466
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16467
    case $host_os in
 
16468
    aix*)
 
16469
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16470
      if test "$host_cpu" = ia64; then
 
16471
        # AIX 5 now supports IA64 processor
 
16472
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16473
      else
 
16474
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16475
      fi
 
16476
      ;;
 
16477
      darwin*)
 
16478
        # PIC is the default on this platform
 
16479
        # Common symbols not allowed in MH_DYLIB files
 
16480
       case $cc_basename in
 
16481
         xlc*)
 
16482
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16483
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16484
         ;;
 
16485
       esac
 
16486
       ;;
 
16487
 
 
16488
    mingw* | cygwin* | pw32* | os2*)
 
16489
      # This hack is so that the source file can tell whether it is being
 
16490
      # built for inclusion in a dll (and should export symbols for example).
 
16491
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16492
      ;;
 
16493
 
 
16494
    hpux9* | hpux10* | hpux11*)
 
16495
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16496
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16497
      # not for PA HP-UX.
 
16498
      case $host_cpu in
 
16499
      hppa*64*|ia64*)
 
16500
        # +Z the default
 
16501
        ;;
 
16502
      *)
 
16503
        lt_prog_compiler_pic_GCJ='+Z'
 
16504
        ;;
 
16505
      esac
 
16506
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16507
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16508
      ;;
 
16509
 
 
16510
    irix5* | irix6* | nonstopux*)
 
16511
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16512
      # PIC (with -KPIC) is the default.
 
16513
      lt_prog_compiler_static_GCJ='-non_shared'
 
16514
      ;;
 
16515
 
 
16516
    newsos6)
 
16517
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16518
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16519
      ;;
 
16520
 
 
16521
    linux* | k*bsd*-gnu)
 
16522
      case $cc_basename in
 
16523
      icc* | ecc*)
 
16524
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16525
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16526
        lt_prog_compiler_static_GCJ='-static'
 
16527
        ;;
 
16528
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16529
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16530
        # which looks to be a dead project)
 
16531
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16532
        lt_prog_compiler_pic_GCJ='-fpic'
 
16533
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16534
        ;;
 
16535
      ccc*)
 
16536
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16537
        # All Alpha code is PIC.
 
16538
        lt_prog_compiler_static_GCJ='-non_shared'
 
16539
        ;;
 
16540
      *)
 
16541
        case `$CC -V 2>&1 | sed 5q` in
 
16542
        *Sun\ C*)
 
16543
          # Sun C 5.9
 
16544
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16545
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16546
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16547
          ;;
 
16548
        *Sun\ F*)
 
16549
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16550
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16551
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16552
          lt_prog_compiler_wl_GCJ=''
 
16553
          ;;
 
16554
        esac
 
16555
        ;;
 
16556
      esac
 
16557
      ;;
 
16558
 
 
16559
    osf3* | osf4* | osf5*)
 
16560
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16561
      # All OSF/1 code is PIC.
 
16562
      lt_prog_compiler_static_GCJ='-non_shared'
 
16563
      ;;
 
16564
 
 
16565
    rdos*)
 
16566
      lt_prog_compiler_static_GCJ='-non_shared'
 
16567
      ;;
 
16568
 
 
16569
    solaris*)
 
16570
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16571
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16572
      case $cc_basename in
 
16573
      f77* | f90* | f95*)
 
16574
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16575
      *)
 
16576
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16577
      esac
 
16578
      ;;
 
16579
 
 
16580
    sunos4*)
 
16581
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16582
      lt_prog_compiler_pic_GCJ='-PIC'
 
16583
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16584
      ;;
 
16585
 
 
16586
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16587
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16588
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16589
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16590
      ;;
 
16591
 
 
16592
    sysv4*MP*)
 
16593
      if test -d /usr/nec ;then
 
16594
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16595
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16596
      fi
 
16597
      ;;
 
16598
 
 
16599
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16600
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16601
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16602
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16603
      ;;
 
16604
 
 
16605
    unicos*)
 
16606
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16607
      lt_prog_compiler_can_build_shared_GCJ=no
 
16608
      ;;
 
16609
 
 
16610
    uts4*)
 
16611
      lt_prog_compiler_pic_GCJ='-pic'
 
16612
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16613
      ;;
 
16614
 
 
16615
    *)
 
16616
      lt_prog_compiler_can_build_shared_GCJ=no
 
16617
      ;;
 
16618
    esac
 
16619
  fi
 
16620
 
 
16621
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16622
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16623
 
 
16624
#
 
16625
# Check to make sure the PIC flag actually works.
 
16626
#
 
16627
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16628
  
 
16629
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16630
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16631
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16633
else
 
16634
  lt_prog_compiler_pic_works_GCJ=no
 
16635
  ac_outfile=conftest.$ac_objext
 
16636
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16637
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16638
   # Insert the option either (1) after the last *FLAGS variable, or
 
16639
   # (2) before a word containing "conftest.", or (3) at the end.
 
16640
   # Note that $ac_compile itself does not contain backslashes and begins
 
16641
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16642
   # The option is referenced via a variable to avoid confusing sed.
 
16643
   lt_compile=`echo "$ac_compile" | $SED \
 
16644
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16645
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16646
   -e 's:$: $lt_compiler_flag:'`
 
16647
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16648
   (eval "$lt_compile" 2>conftest.err)
 
16649
   ac_status=$?
 
16650
   cat conftest.err >&5
 
16651
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16652
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16653
     # The compiler can only warn and ignore the option if not recognized
 
16654
     # So say no if there are warnings other than the usual output.
 
16655
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16656
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16657
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16658
       lt_prog_compiler_pic_works_GCJ=yes
 
16659
     fi
 
16660
   fi
 
16661
   $rm conftest*
 
16662
 
 
16663
fi
 
16664
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16665
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16666
 
 
16667
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16668
    case $lt_prog_compiler_pic_GCJ in
 
16669
     "" | " "*) ;;
 
16670
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16671
     esac
 
16672
else
 
16673
    lt_prog_compiler_pic_GCJ=
 
16674
     lt_prog_compiler_can_build_shared_GCJ=no
 
16675
fi
 
16676
 
 
16677
fi
 
16678
case $host_os in
 
16679
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16680
  *djgpp*)
 
16681
    lt_prog_compiler_pic_GCJ=
 
16682
    ;;
 
16683
  *)
 
16684
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16685
    ;;
 
16686
esac
 
16687
 
 
16688
#
 
16689
# Check to make sure the static flag actually works.
 
16690
#
 
16691
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16692
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16693
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16694
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16696
else
 
16697
  lt_prog_compiler_static_works_GCJ=no
 
16698
   save_LDFLAGS="$LDFLAGS"
 
16699
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16700
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16701
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16702
     # The linker can only warn and ignore the option if not recognized
 
16703
     # So say no if there are warnings
 
16704
     if test -s conftest.err; then
 
16705
       # Append any errors to the config.log.
 
16706
       cat conftest.err 1>&5
 
16707
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16708
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16709
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16710
         lt_prog_compiler_static_works_GCJ=yes
 
16711
       fi
 
16712
     else
 
16713
       lt_prog_compiler_static_works_GCJ=yes
 
16714
     fi
 
16715
   fi
 
16716
   $rm conftest*
 
16717
   LDFLAGS="$save_LDFLAGS"
 
16718
 
 
16719
fi
 
16720
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16721
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16722
 
 
16723
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16724
    :
 
16725
else
 
16726
    lt_prog_compiler_static_GCJ=
 
16727
fi
 
16728
 
 
16729
 
 
16730
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16731
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16732
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16734
else
 
16735
  lt_cv_prog_compiler_c_o_GCJ=no
 
16736
   $rm -r conftest 2>/dev/null
 
16737
   mkdir conftest
 
16738
   cd conftest
 
16739
   mkdir out
 
16740
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16741
 
 
16742
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16743
   # Insert the option either (1) after the last *FLAGS variable, or
 
16744
   # (2) before a word containing "conftest.", or (3) at the end.
 
16745
   # Note that $ac_compile itself does not contain backslashes and begins
 
16746
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16747
   lt_compile=`echo "$ac_compile" | $SED \
 
16748
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16749
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16750
   -e 's:$: $lt_compiler_flag:'`
 
16751
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16752
   (eval "$lt_compile" 2>out/conftest.err)
 
16753
   ac_status=$?
 
16754
   cat out/conftest.err >&5
 
16755
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16756
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16757
   then
 
16758
     # The compiler can only warn and ignore the option if not recognized
 
16759
     # So say no if there are warnings
 
16760
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16761
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16762
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16763
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16764
     fi
 
16765
   fi
 
16766
   chmod u+w . 2>&5
 
16767
   $rm conftest*
 
16768
   # SGI C++ compiler will create directory out/ii_files/ for
 
16769
   # template instantiation
 
16770
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16771
   $rm out/* && rmdir out
 
16772
   cd ..
 
16773
   rmdir conftest
 
16774
   $rm conftest*
 
16775
 
 
16776
fi
 
16777
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16778
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16779
 
 
16780
 
 
16781
hard_links="nottested"
 
16782
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16783
  # do not overwrite the value of need_locks provided by the user
 
16784
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16785
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16786
  hard_links=yes
 
16787
  $rm conftest*
 
16788
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16789
  touch conftest.a
 
16790
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16791
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16792
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16793
echo "${ECHO_T}$hard_links" >&6; }
 
16794
  if test "$hard_links" = no; then
 
16795
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16796
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16797
    need_locks=warn
 
16798
  fi
 
16799
else
 
16800
  need_locks=no
 
16801
fi
 
16802
 
 
16803
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16804
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16805
 
 
16806
  runpath_var=
 
16807
  allow_undefined_flag_GCJ=
 
16808
  enable_shared_with_static_runtimes_GCJ=no
 
16809
  archive_cmds_GCJ=
 
16810
  archive_expsym_cmds_GCJ=
 
16811
  old_archive_From_new_cmds_GCJ=
 
16812
  old_archive_from_expsyms_cmds_GCJ=
 
16813
  export_dynamic_flag_spec_GCJ=
 
16814
  whole_archive_flag_spec_GCJ=
 
16815
  thread_safe_flag_spec_GCJ=
 
16816
  hardcode_libdir_flag_spec_GCJ=
 
16817
  hardcode_libdir_flag_spec_ld_GCJ=
 
16818
  hardcode_libdir_separator_GCJ=
 
16819
  hardcode_direct_GCJ=no
 
16820
  hardcode_minus_L_GCJ=no
 
16821
  hardcode_shlibpath_var_GCJ=unsupported
 
16822
  link_all_deplibs_GCJ=unknown
 
16823
  hardcode_automatic_GCJ=no
 
16824
  module_cmds_GCJ=
 
16825
  module_expsym_cmds_GCJ=
 
16826
  always_export_symbols_GCJ=no
 
16827
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16828
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16829
  # included in the symbol list
 
16830
  include_expsyms_GCJ=
 
16831
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16832
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16833
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16834
  # as well as any symbol that contains `d'.
 
16835
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16836
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16837
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16838
  # the symbol is explicitly referenced.  Since portable code cannot
 
16839
  # rely on this symbol name, it's probably fine to never include it in
 
16840
  # preloaded symbol tables.
 
16841
  extract_expsyms_cmds=
 
16842
  # Just being paranoid about ensuring that cc_basename is set.
 
16843
  for cc_temp in $compiler""; do
 
16844
  case $cc_temp in
 
16845
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16846
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16847
    \-*) ;;
 
16848
    *) break;;
 
16849
  esac
 
16850
done
 
16851
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16852
 
 
16853
  case $host_os in
 
16854
  cygwin* | mingw* | pw32*)
 
16855
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16856
    # When not using gcc, we currently assume that we are using
 
16857
    # Microsoft Visual C++.
 
16858
    if test "$GCC" != yes; then
 
16859
      with_gnu_ld=no
 
16860
    fi
 
16861
    ;;
 
16862
  interix*)
 
16863
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16864
    with_gnu_ld=yes
 
16865
    ;;
 
16866
  openbsd*)
 
16867
    with_gnu_ld=no
 
16868
    ;;
 
16869
  esac
 
16870
 
 
16871
  ld_shlibs_GCJ=yes
 
16872
  if test "$with_gnu_ld" = yes; then
 
16873
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16874
    wlarc='${wl}'
 
16875
 
 
16876
    # Set some defaults for GNU ld with shared library support. These
 
16877
    # are reset later if shared libraries are not supported. Putting them
 
16878
    # here allows them to be overridden if necessary.
 
16879
    runpath_var=LD_RUN_PATH
 
16880
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16881
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16882
    # ancient GNU ld didn't support --whole-archive et. al.
 
16883
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16884
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16885
      else
 
16886
        whole_archive_flag_spec_GCJ=
 
16887
    fi
 
16888
    supports_anon_versioning=no
 
16889
    case `$LD -v 2>/dev/null` in
 
16890
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16891
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16892
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16893
      *\ 2.11.*) ;; # other 2.11 versions
 
16894
      *) supports_anon_versioning=yes ;;
 
16895
    esac
 
16896
 
 
16897
    # See if GNU ld supports shared libraries.
 
16898
    case $host_os in
 
16899
    aix3* | aix4* | aix5*)
 
16900
      # On AIX/PPC, the GNU linker is very broken
 
16901
      if test "$host_cpu" != ia64; then
 
16902
        ld_shlibs_GCJ=no
 
16903
        cat <<EOF 1>&2
 
16904
 
 
16905
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16906
*** to be unable to reliably create shared libraries on AIX.
 
16907
*** Therefore, libtool is disabling shared libraries support.  If you
 
16908
*** really care for shared libraries, you may want to modify your PATH
 
16909
*** so that a non-GNU linker is found, and then restart.
 
16910
 
 
16911
EOF
 
16912
      fi
 
16913
      ;;
 
16914
 
 
16915
    amigaos*)
 
16916
      archive_cmds_GCJ='$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)'
 
16917
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16918
      hardcode_minus_L_GCJ=yes
 
16919
 
 
16920
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16921
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16922
      # to version 4, is to share data among multiple programs linked
 
16923
      # with the same dynamic library.  Since this doesn't match the
 
16924
      # behavior of shared libraries on other platforms, we can't use
 
16925
      # them.
 
16926
      ld_shlibs_GCJ=no
 
16927
      ;;
 
16928
 
 
16929
    beos*)
 
16930
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16931
        allow_undefined_flag_GCJ=unsupported
 
16932
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16933
        # support --undefined.  This deserves some investigation.  FIXME
 
16934
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16935
      else
 
16936
        ld_shlibs_GCJ=no
 
16937
      fi
 
16938
      ;;
 
16939
 
 
16940
    cygwin* | mingw* | pw32*)
 
16941
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16942
      # as there is no search path for DLLs.
 
16943
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16944
      allow_undefined_flag_GCJ=unsupported
 
16945
      always_export_symbols_GCJ=no
 
16946
      enable_shared_with_static_runtimes_GCJ=yes
 
16947
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
16948
 
 
16949
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16950
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16951
        # If the export-symbols file already is a .def file (1st line
 
16952
        # is EXPORTS), use it as is; otherwise, prepend...
 
16953
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16954
          cp $export_symbols $output_objdir/$soname.def;
 
16955
        else
 
16956
          echo EXPORTS > $output_objdir/$soname.def;
 
16957
          cat $export_symbols >> $output_objdir/$soname.def;
 
16958
        fi~
 
16959
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16960
      else
 
16961
        ld_shlibs_GCJ=no
 
16962
      fi
 
16963
      ;;
 
16964
 
 
16965
    interix[3-9]*)
 
16966
      hardcode_direct_GCJ=no
 
16967
      hardcode_shlibpath_var_GCJ=no
 
16968
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16969
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16970
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16971
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16972
      # default) and relocated if they conflict, which is a slow very memory
 
16973
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16974
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16975
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16976
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16977
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16978
      ;;
 
16979
 
 
16980
    gnu* | linux* | k*bsd*-gnu)
 
16981
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16982
        tmp_addflag=
 
16983
        case $cc_basename,$host_cpu in
 
16984
        pgcc*)                          # Portland Group C compiler
 
16985
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16986
          tmp_addflag=' $pic_flag'
 
16987
          ;;
 
16988
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16989
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16990
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16991
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16992
          tmp_addflag=' -i_dynamic' ;;
 
16993
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16994
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16995
        ifc* | ifort*)                  # Intel Fortran compiler
 
16996
          tmp_addflag=' -nofor_main' ;;
 
16997
        esac
 
16998
        case `$CC -V 2>&1 | sed 5q` in
 
16999
        *Sun\ C*)                       # Sun C 5.9
 
17000
          whole_archive_flag_spec_GCJ='${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'
 
17001
          tmp_sharedflag='-G' ;;
 
17002
        *Sun\ F*)                       # Sun Fortran 8.3
 
17003
          tmp_sharedflag='-G' ;;
 
17004
        *)
 
17005
          tmp_sharedflag='-shared' ;;
 
17006
        esac
 
17007
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17008
 
 
17009
        if test $supports_anon_versioning = yes; then
 
17010
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17011
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17012
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17013
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17014
        fi
 
17015
        link_all_deplibs_GCJ=no
 
17016
      else
 
17017
        ld_shlibs_GCJ=no
 
17018
      fi
 
17019
      ;;
 
17020
 
 
17021
    netbsd* | netbsdelf*-gnu)
 
17022
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17023
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17024
        wlarc=
 
17025
      else
 
17026
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17027
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17028
      fi
 
17029
      ;;
 
17030
 
 
17031
    solaris*)
 
17032
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17033
        ld_shlibs_GCJ=no
 
17034
        cat <<EOF 1>&2
 
17035
 
 
17036
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17037
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17038
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17039
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17040
*** your PATH or compiler configuration so that the native linker is
 
17041
*** used, and then restart.
 
17042
 
 
17043
EOF
 
17044
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17045
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17046
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17047
      else
 
17048
        ld_shlibs_GCJ=no
 
17049
      fi
 
17050
      ;;
 
17051
 
 
17052
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17053
      case `$LD -v 2>&1` in
 
17054
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17055
        ld_shlibs_GCJ=no
 
17056
        cat <<_LT_EOF 1>&2
 
17057
 
 
17058
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17059
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17060
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17061
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17062
*** your PATH or compiler configuration so that the native linker is
 
17063
*** used, and then restart.
 
17064
 
 
17065
_LT_EOF
 
17066
        ;;
 
17067
        *)
 
17068
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17069
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17070
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17071
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17072
          else
 
17073
            ld_shlibs_GCJ=no
 
17074
          fi
 
17075
        ;;
 
17076
      esac
 
17077
      ;;
 
17078
 
 
17079
    sunos4*)
 
17080
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17081
      wlarc=
 
17082
      hardcode_direct_GCJ=yes
 
17083
      hardcode_shlibpath_var_GCJ=no
 
17084
      ;;
 
17085
 
 
17086
    *)
 
17087
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17088
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17089
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17090
      else
 
17091
        ld_shlibs_GCJ=no
 
17092
      fi
 
17093
      ;;
 
17094
    esac
 
17095
 
 
17096
    if test "$ld_shlibs_GCJ" = no; then
 
17097
      runpath_var=
 
17098
      hardcode_libdir_flag_spec_GCJ=
 
17099
      export_dynamic_flag_spec_GCJ=
 
17100
      whole_archive_flag_spec_GCJ=
 
17101
    fi
 
17102
  else
 
17103
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17104
    case $host_os in
 
17105
    aix3*)
 
17106
      allow_undefined_flag_GCJ=unsupported
 
17107
      always_export_symbols_GCJ=yes
 
17108
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17109
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17110
      # are no directories specified by -L.
 
17111
      hardcode_minus_L_GCJ=yes
 
17112
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17113
        # Neither direct hardcoding nor static linking is supported with a
 
17114
        # broken collect2.
 
17115
        hardcode_direct_GCJ=unsupported
 
17116
      fi
 
17117
      ;;
 
17118
 
 
17119
    aix4* | aix5*)
 
17120
      if test "$host_cpu" = ia64; then
 
17121
        # On IA64, the linker does run time linking by default, so we don't
 
17122
        # have to do anything special.
 
17123
        aix_use_runtimelinking=no
 
17124
        exp_sym_flag='-Bexport'
 
17125
        no_entry_flag=""
 
17126
      else
 
17127
        # If we're using GNU nm, then we don't want the "-C" option.
 
17128
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17129
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17130
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17131
        else
 
17132
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17133
        fi
 
17134
        aix_use_runtimelinking=no
 
17135
 
 
17136
        # Test if we are trying to use run time linking or normal
 
17137
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17138
        # need to do runtime linking.
 
17139
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17140
          for ld_flag in $LDFLAGS; do
 
17141
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17142
            aix_use_runtimelinking=yes
 
17143
            break
 
17144
          fi
 
17145
          done
 
17146
          ;;
 
17147
        esac
 
17148
 
 
17149
        exp_sym_flag='-bexport'
 
17150
        no_entry_flag='-bnoentry'
 
17151
      fi
 
17152
 
 
17153
      # When large executables or shared objects are built, AIX ld can
 
17154
      # have problems creating the table of contents.  If linking a library
 
17155
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17156
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17157
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17158
 
 
17159
      archive_cmds_GCJ=''
 
17160
      hardcode_direct_GCJ=yes
 
17161
      hardcode_libdir_separator_GCJ=':'
 
17162
      link_all_deplibs_GCJ=yes
 
17163
 
 
17164
      if test "$GCC" = yes; then
 
17165
        case $host_os in aix4.[012]|aix4.[012].*)
 
17166
        # We only want to do this on AIX 4.2 and lower, the check
 
17167
        # below for broken collect2 doesn't work under 4.3+
 
17168
          collect2name=`${CC} -print-prog-name=collect2`
 
17169
          if test -f "$collect2name" && \
 
17170
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17171
          then
 
17172
          # We have reworked collect2
 
17173
          :
 
17174
          else
 
17175
          # We have old collect2
 
17176
          hardcode_direct_GCJ=unsupported
 
17177
          # It fails to find uninstalled libraries when the uninstalled
 
17178
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17179
          # to unsupported forces relinking
 
17180
          hardcode_minus_L_GCJ=yes
 
17181
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17182
          hardcode_libdir_separator_GCJ=
 
17183
          fi
 
17184
          ;;
 
17185
        esac
 
17186
        shared_flag='-shared'
 
17187
        if test "$aix_use_runtimelinking" = yes; then
 
17188
          shared_flag="$shared_flag "'${wl}-G'
 
17189
        fi
 
17190
      else
 
17191
        # not using gcc
 
17192
        if test "$host_cpu" = ia64; then
 
17193
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17194
        # chokes on -Wl,-G. The following line is correct:
 
17195
          shared_flag='-G'
 
17196
        else
 
17197
          if test "$aix_use_runtimelinking" = yes; then
 
17198
            shared_flag='${wl}-G'
 
17199
          else
 
17200
            shared_flag='${wl}-bM:SRE'
 
17201
          fi
 
17202
        fi
 
17203
      fi
 
17204
 
 
17205
      # It seems that -bexpall does not export symbols beginning with
 
17206
      # underscore (_), so it is better to generate a list of symbols to export.
 
17207
      always_export_symbols_GCJ=yes
 
17208
      if test "$aix_use_runtimelinking" = yes; then
 
17209
        # Warning - without using the other runtime loading flags (-brtl),
 
17210
        # -berok will link without error, but may produce a broken library.
 
17211
        allow_undefined_flag_GCJ='-berok'
 
17212
       # Determine the default libpath from the value encoded in an empty executable.
 
17213
       cat >conftest.$ac_ext <<_ACEOF
 
17214
/* confdefs.h.  */
 
17215
_ACEOF
 
17216
cat confdefs.h >>conftest.$ac_ext
 
17217
cat >>conftest.$ac_ext <<_ACEOF
 
17218
/* end confdefs.h.  */
 
17219
 
 
17220
int
 
17221
main ()
 
17222
{
 
17223
 
 
17224
  ;
 
17225
  return 0;
 
17226
}
 
17227
_ACEOF
 
17228
rm -f conftest.$ac_objext conftest$ac_exeext
 
17229
if { (ac_try="$ac_link"
 
17230
case "(($ac_try" in
 
17231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17232
  *) ac_try_echo=$ac_try;;
 
17233
esac
 
17234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17235
  (eval "$ac_link") 2>conftest.er1
 
17236
  ac_status=$?
 
17237
  grep -v '^ *+' conftest.er1 >conftest.err
 
17238
  rm -f conftest.er1
 
17239
  cat conftest.err >&5
 
17240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17241
  (exit $ac_status); } && {
 
17242
         test -z "$ac_c_werror_flag" ||
 
17243
         test ! -s conftest.err
 
17244
       } && test -s conftest$ac_exeext &&
 
17245
       $as_test_x conftest$ac_exeext; then
 
17246
  
 
17247
lt_aix_libpath_sed='
 
17248
    /Import File Strings/,/^$/ {
 
17249
        /^0/ {
 
17250
            s/^0  *\(.*\)$/\1/
 
17251
            p
 
17252
        }
 
17253
    }'
 
17254
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17255
# Check for a 64-bit object if we didn't find anything.
 
17256
if test -z "$aix_libpath"; then
 
17257
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17258
fi
 
17259
else
 
17260
  echo "$as_me: failed program was:" >&5
 
17261
sed 's/^/| /' conftest.$ac_ext >&5
 
17262
 
 
17263
        
 
17264
fi
 
17265
 
 
17266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17267
      conftest$ac_exeext conftest.$ac_ext
 
17268
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17269
 
 
17270
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17271
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17272
       else
 
17273
        if test "$host_cpu" = ia64; then
 
17274
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17275
          allow_undefined_flag_GCJ="-z nodefs"
 
17276
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
17277
        else
 
17278
         # Determine the default libpath from the value encoded in an empty executable.
 
17279
         cat >conftest.$ac_ext <<_ACEOF
 
17280
/* confdefs.h.  */
 
17281
_ACEOF
 
17282
cat confdefs.h >>conftest.$ac_ext
 
17283
cat >>conftest.$ac_ext <<_ACEOF
 
17284
/* end confdefs.h.  */
 
17285
 
 
17286
int
 
17287
main ()
 
17288
{
 
17289
 
 
17290
  ;
 
17291
  return 0;
 
17292
}
 
17293
_ACEOF
 
17294
rm -f conftest.$ac_objext conftest$ac_exeext
 
17295
if { (ac_try="$ac_link"
 
17296
case "(($ac_try" in
 
17297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17298
  *) ac_try_echo=$ac_try;;
 
17299
esac
 
17300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17301
  (eval "$ac_link") 2>conftest.er1
 
17302
  ac_status=$?
 
17303
  grep -v '^ *+' conftest.er1 >conftest.err
 
17304
  rm -f conftest.er1
 
17305
  cat conftest.err >&5
 
17306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17307
  (exit $ac_status); } && {
 
17308
         test -z "$ac_c_werror_flag" ||
 
17309
         test ! -s conftest.err
 
17310
       } && test -s conftest$ac_exeext &&
 
17311
       $as_test_x conftest$ac_exeext; then
 
17312
  
 
17313
lt_aix_libpath_sed='
 
17314
    /Import File Strings/,/^$/ {
 
17315
        /^0/ {
 
17316
            s/^0  *\(.*\)$/\1/
 
17317
            p
 
17318
        }
 
17319
    }'
 
17320
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17321
# Check for a 64-bit object if we didn't find anything.
 
17322
if test -z "$aix_libpath"; then
 
17323
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17324
fi
 
17325
else
 
17326
  echo "$as_me: failed program was:" >&5
 
17327
sed 's/^/| /' conftest.$ac_ext >&5
 
17328
 
 
17329
        
 
17330
fi
 
17331
 
 
17332
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17333
      conftest$ac_exeext conftest.$ac_ext
 
17334
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17335
 
 
17336
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17337
          # Warning - without using the other run time loading flags,
 
17338
          # -berok will link without error, but may produce a broken library.
 
17339
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17340
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17341
          # Exported symbols can be pulled into shared objects from archives
 
17342
          whole_archive_flag_spec_GCJ='$convenience'
 
17343
          archive_cmds_need_lc_GCJ=yes
 
17344
          # This is similar to how AIX traditionally builds its shared libraries.
 
17345
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17346
        fi
 
17347
      fi
 
17348
      ;;
 
17349
 
 
17350
    amigaos*)
 
17351
      archive_cmds_GCJ='$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)'
 
17352
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17353
      hardcode_minus_L_GCJ=yes
 
17354
      # see comment about different semantics on the GNU ld section
 
17355
      ld_shlibs_GCJ=no
 
17356
      ;;
 
17357
 
 
17358
    bsdi[45]*)
 
17359
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17360
      ;;
 
17361
 
 
17362
    cygwin* | mingw* | pw32*)
 
17363
      # When not using gcc, we currently assume that we are using
 
17364
      # Microsoft Visual C++.
 
17365
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17366
      # no search path for DLLs.
 
17367
      hardcode_libdir_flag_spec_GCJ=' '
 
17368
      allow_undefined_flag_GCJ=unsupported
 
17369
      # Tell ltmain to make .lib files, not .a files.
 
17370
      libext=lib
 
17371
      # Tell ltmain to make .dll files, not .so files.
 
17372
      shrext_cmds=".dll"
 
17373
      # FIXME: Setting linknames here is a bad hack.
 
17374
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17375
      # The linker will automatically build a .lib file if we build a DLL.
 
17376
      old_archive_From_new_cmds_GCJ='true'
 
17377
      # FIXME: Should let the user specify the lib program.
 
17378
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17379
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17380
      enable_shared_with_static_runtimes_GCJ=yes
 
17381
      ;;
 
17382
 
 
17383
    darwin* | rhapsody*)
 
17384
      case $host_os in
 
17385
        rhapsody* | darwin1.[012])
 
17386
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17387
         ;;
 
17388
       *) # Darwin 1.3 on
 
17389
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17390
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17391
         else
 
17392
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17393
             10.[012])
 
17394
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17395
               ;;
 
17396
             10.*)
 
17397
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17398
               ;;
 
17399
           esac
 
17400
         fi
 
17401
         ;;
 
17402
      esac
 
17403
      archive_cmds_need_lc_GCJ=no
 
17404
      hardcode_direct_GCJ=no
 
17405
      hardcode_automatic_GCJ=yes
 
17406
      hardcode_shlibpath_var_GCJ=unsupported
 
17407
      whole_archive_flag_spec_GCJ=''
 
17408
      link_all_deplibs_GCJ=yes
 
17409
    if test "$GCC" = yes ; then
 
17410
        output_verbose_link_cmd='echo'
 
17411
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17412
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17413
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17414
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17415
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17416
    else
 
17417
      case $cc_basename in
 
17418
        xlc*)
 
17419
         output_verbose_link_cmd='echo'
 
17420
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17421
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17422
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17423
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17424
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17425
          ;;
 
17426
       *)
 
17427
         ld_shlibs_GCJ=no
 
17428
          ;;
 
17429
      esac
 
17430
    fi
 
17431
      ;;
 
17432
 
 
17433
    dgux*)
 
17434
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17435
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17436
      hardcode_shlibpath_var_GCJ=no
 
17437
      ;;
 
17438
 
 
17439
    freebsd1*)
 
17440
      ld_shlibs_GCJ=no
 
17441
      ;;
 
17442
 
 
17443
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17444
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17445
    # does not break anything, and helps significantly (at the cost of a little
 
17446
    # extra space).
 
17447
    freebsd2.2*)
 
17448
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17449
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17450
      hardcode_direct_GCJ=yes
 
17451
      hardcode_shlibpath_var_GCJ=no
 
17452
      ;;
 
17453
 
 
17454
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17455
    freebsd2*)
 
17456
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17457
      hardcode_direct_GCJ=yes
 
17458
      hardcode_minus_L_GCJ=yes
 
17459
      hardcode_shlibpath_var_GCJ=no
 
17460
      ;;
 
17461
 
 
17462
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17463
    freebsd* | dragonfly*)
 
17464
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17465
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17466
      hardcode_direct_GCJ=yes
 
17467
      hardcode_shlibpath_var_GCJ=no
 
17468
      ;;
 
17469
 
 
17470
    hpux9*)
 
17471
      if test "$GCC" = yes; then
 
17472
        archive_cmds_GCJ='$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'
 
17473
      else
 
17474
        archive_cmds_GCJ='$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'
 
17475
      fi
 
17476
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17477
      hardcode_libdir_separator_GCJ=:
 
17478
      hardcode_direct_GCJ=yes
 
17479
 
 
17480
      # hardcode_minus_L: Not really in the search PATH,
 
17481
      # but as the default location of the library.
 
17482
      hardcode_minus_L_GCJ=yes
 
17483
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17484
      ;;
 
17485
 
 
17486
    hpux10*)
 
17487
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17488
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17489
      else
 
17490
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17491
      fi
 
17492
      if test "$with_gnu_ld" = no; then
 
17493
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17494
        hardcode_libdir_separator_GCJ=:
 
17495
 
 
17496
        hardcode_direct_GCJ=yes
 
17497
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17498
 
 
17499
        # hardcode_minus_L: Not really in the search PATH,
 
17500
        # but as the default location of the library.
 
17501
        hardcode_minus_L_GCJ=yes
 
17502
      fi
 
17503
      ;;
 
17504
 
 
17505
    hpux11*)
 
17506
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17507
        case $host_cpu in
 
17508
        hppa*64*)
 
17509
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17510
          ;;
 
17511
        ia64*)
 
17512
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17513
          ;;
 
17514
        *)
 
17515
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17516
          ;;
 
17517
        esac
 
17518
      else
 
17519
        case $host_cpu in
 
17520
        hppa*64*)
 
17521
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17522
          ;;
 
17523
        ia64*)
 
17524
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17525
          ;;
 
17526
        *)
 
17527
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17528
          ;;
 
17529
        esac
 
17530
      fi
 
17531
      if test "$with_gnu_ld" = no; then
 
17532
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17533
        hardcode_libdir_separator_GCJ=:
 
17534
 
 
17535
        case $host_cpu in
 
17536
        hppa*64*|ia64*)
 
17537
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17538
          hardcode_direct_GCJ=no
 
17539
          hardcode_shlibpath_var_GCJ=no
 
17540
          ;;
 
17541
        *)
 
17542
          hardcode_direct_GCJ=yes
 
17543
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17544
 
 
17545
          # hardcode_minus_L: Not really in the search PATH,
 
17546
          # but as the default location of the library.
 
17547
          hardcode_minus_L_GCJ=yes
 
17548
          ;;
 
17549
        esac
 
17550
      fi
 
17551
      ;;
 
17552
 
 
17553
    irix5* | irix6* | nonstopux*)
 
17554
      if test "$GCC" = yes; then
 
17555
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17556
      else
 
17557
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17558
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17559
      fi
 
17560
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17561
      hardcode_libdir_separator_GCJ=:
 
17562
      link_all_deplibs_GCJ=yes
 
17563
      ;;
 
17564
 
 
17565
    netbsd* | netbsdelf*-gnu)
 
17566
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17567
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17568
      else
 
17569
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17570
      fi
 
17571
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17572
      hardcode_direct_GCJ=yes
 
17573
      hardcode_shlibpath_var_GCJ=no
 
17574
      ;;
 
17575
 
 
17576
    newsos6)
 
17577
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17578
      hardcode_direct_GCJ=yes
 
17579
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17580
      hardcode_libdir_separator_GCJ=:
 
17581
      hardcode_shlibpath_var_GCJ=no
 
17582
      ;;
 
17583
 
 
17584
    openbsd*)
 
17585
      if test -f /usr/libexec/ld.so; then
 
17586
        hardcode_direct_GCJ=yes
 
17587
        hardcode_shlibpath_var_GCJ=no
 
17588
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17589
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17590
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17591
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17592
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17593
        else
 
17594
          case $host_os in
 
17595
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17596
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17597
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17598
             ;;
 
17599
           *)
 
17600
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17601
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17602
             ;;
 
17603
          esac
 
17604
        fi
 
17605
      else
 
17606
        ld_shlibs_GCJ=no
 
17607
      fi
 
17608
      ;;
 
17609
 
 
17610
    os2*)
 
17611
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17612
      hardcode_minus_L_GCJ=yes
 
17613
      allow_undefined_flag_GCJ=unsupported
 
17614
      archive_cmds_GCJ='$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'
 
17615
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17616
      ;;
 
17617
 
 
17618
    osf3*)
 
17619
      if test "$GCC" = yes; then
 
17620
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17621
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17622
      else
 
17623
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17624
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17625
      fi
 
17626
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17627
      hardcode_libdir_separator_GCJ=:
 
17628
      ;;
 
17629
 
 
17630
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17631
      if test "$GCC" = yes; then
 
17632
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17633
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17634
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17635
      else
 
17636
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17637
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17638
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17639
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17640
 
 
17641
        # Both c and cxx compiler support -rpath directly
 
17642
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17643
      fi
 
17644
      hardcode_libdir_separator_GCJ=:
 
17645
      ;;
 
17646
 
 
17647
    solaris*)
 
17648
      no_undefined_flag_GCJ=' -z text'
 
17649
      if test "$GCC" = yes; then
 
17650
        wlarc='${wl}'
 
17651
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17652
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17653
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17654
      else
 
17655
        wlarc=''
 
17656
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17657
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17658
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17659
      fi
 
17660
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17661
      hardcode_shlibpath_var_GCJ=no
 
17662
      case $host_os in
 
17663
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17664
      *)
 
17665
        # The compiler driver will combine and reorder linker options,
 
17666
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17667
        # but is careful enough not to reorder.
 
17668
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17669
        if test "$GCC" = yes; then
 
17670
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17671
        else
 
17672
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17673
        fi
 
17674
        ;;
 
17675
      esac
 
17676
      link_all_deplibs_GCJ=yes
 
17677
      ;;
 
17678
 
 
17679
    sunos4*)
 
17680
      if test "x$host_vendor" = xsequent; then
 
17681
        # Use $CC to link under sequent, because it throws in some extra .o
 
17682
        # files that make .init and .fini sections work.
 
17683
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17684
      else
 
17685
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17686
      fi
 
17687
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17688
      hardcode_direct_GCJ=yes
 
17689
      hardcode_minus_L_GCJ=yes
 
17690
      hardcode_shlibpath_var_GCJ=no
 
17691
      ;;
 
17692
 
 
17693
    sysv4)
 
17694
      case $host_vendor in
 
17695
        sni)
 
17696
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17697
          hardcode_direct_GCJ=yes # is this really true???
 
17698
        ;;
 
17699
        siemens)
 
17700
          ## LD is ld it makes a PLAMLIB
 
17701
          ## CC just makes a GrossModule.
 
17702
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17703
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17704
          hardcode_direct_GCJ=no
 
17705
        ;;
 
17706
        motorola)
 
17707
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17708
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17709
        ;;
 
17710
      esac
 
17711
      runpath_var='LD_RUN_PATH'
 
17712
      hardcode_shlibpath_var_GCJ=no
 
17713
      ;;
 
17714
 
 
17715
    sysv4.3*)
 
17716
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17717
      hardcode_shlibpath_var_GCJ=no
 
17718
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17719
      ;;
 
17720
 
 
17721
    sysv4*MP*)
 
17722
      if test -d /usr/nec; then
 
17723
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17724
        hardcode_shlibpath_var_GCJ=no
 
17725
        runpath_var=LD_RUN_PATH
 
17726
        hardcode_runpath_var=yes
 
17727
        ld_shlibs_GCJ=yes
 
17728
      fi
 
17729
      ;;
 
17730
 
 
17731
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
17732
      no_undefined_flag_GCJ='${wl}-z,text'
 
17733
      archive_cmds_need_lc_GCJ=no
 
17734
      hardcode_shlibpath_var_GCJ=no
 
17735
      runpath_var='LD_RUN_PATH'
 
17736
 
 
17737
      if test "$GCC" = yes; then
 
17738
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17739
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17740
      else
 
17741
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17742
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17743
      fi
 
17744
      ;;
 
17745
 
 
17746
    sysv5* | sco3.2v5* | sco5v6*)
 
17747
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17748
      # link with -lc, and that would cause any symbols used from libc to
 
17749
      # always be unresolved, which means just about no library would
 
17750
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17751
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17752
      # as -z defs.
 
17753
      no_undefined_flag_GCJ='${wl}-z,text'
 
17754
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17755
      archive_cmds_need_lc_GCJ=no
 
17756
      hardcode_shlibpath_var_GCJ=no
 
17757
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17758
      hardcode_libdir_separator_GCJ=':'
 
17759
      link_all_deplibs_GCJ=yes
 
17760
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17761
      runpath_var='LD_RUN_PATH'
 
17762
 
 
17763
      if test "$GCC" = yes; then
 
17764
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17765
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17766
      else
 
17767
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17768
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17769
      fi
 
17770
      ;;
 
17771
 
 
17772
    uts4*)
 
17773
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17774
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17775
      hardcode_shlibpath_var_GCJ=no
 
17776
      ;;
 
17777
 
 
17778
    *)
 
17779
      ld_shlibs_GCJ=no
 
17780
      ;;
 
17781
    esac
 
17782
  fi
 
17783
 
 
17784
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17785
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17786
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17787
 
 
17788
#
 
17789
# Do we need to explicitly link libc?
 
17790
#
 
17791
case "x$archive_cmds_need_lc_GCJ" in
 
17792
x|xyes)
 
17793
  # Assume -lc should be added
 
17794
  archive_cmds_need_lc_GCJ=yes
 
17795
 
 
17796
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17797
    case $archive_cmds_GCJ in
 
17798
    *'~'*)
 
17799
      # FIXME: we may have to deal with multi-command sequences.
 
17800
      ;;
 
17801
    '$CC '*)
 
17802
      # Test whether the compiler implicitly links with -lc since on some
 
17803
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17804
      # to ld, don't add -lc before -lgcc.
 
17805
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17806
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17807
      $rm conftest*
 
17808
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17809
 
 
17810
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17811
  (eval $ac_compile) 2>&5
 
17812
  ac_status=$?
 
17813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17814
  (exit $ac_status); } 2>conftest.err; then
 
17815
        soname=conftest
 
17816
        lib=conftest
 
17817
        libobjs=conftest.$ac_objext
 
17818
        deplibs=
 
17819
        wl=$lt_prog_compiler_wl_GCJ
 
17820
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17821
        compiler_flags=-v
 
17822
        linker_flags=-v
 
17823
        verstring=
 
17824
        output_objdir=.
 
17825
        libname=conftest
 
17826
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17827
        allow_undefined_flag_GCJ=
 
17828
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17829
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17830
  ac_status=$?
 
17831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17832
  (exit $ac_status); }
 
17833
        then
 
17834
          archive_cmds_need_lc_GCJ=no
 
17835
        else
 
17836
          archive_cmds_need_lc_GCJ=yes
 
17837
        fi
 
17838
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17839
      else
 
17840
        cat conftest.err 1>&5
 
17841
      fi
 
17842
      $rm conftest*
 
17843
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17844
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
17845
      ;;
 
17846
    esac
 
17847
  fi
 
17848
  ;;
 
17849
esac
 
17850
 
 
17851
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17852
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17853
library_names_spec=
 
17854
libname_spec='lib$name'
 
17855
soname_spec=
 
17856
shrext_cmds=".so"
 
17857
postinstall_cmds=
 
17858
postuninstall_cmds=
 
17859
finish_cmds=
 
17860
finish_eval=
 
17861
shlibpath_var=
 
17862
shlibpath_overrides_runpath=unknown
 
17863
version_type=none
 
17864
dynamic_linker="$host_os ld.so"
 
17865
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17866
 
 
17867
need_lib_prefix=unknown
 
17868
hardcode_into_libs=no
 
17869
 
 
17870
# when you set need_version to no, make sure it does not cause -set_version
 
17871
# flags to be left without arguments
 
17872
need_version=unknown
 
17873
 
 
17874
case $host_os in
 
17875
aix3*)
 
17876
  version_type=linux
 
17877
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17878
  shlibpath_var=LIBPATH
 
17879
 
 
17880
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17881
  soname_spec='${libname}${release}${shared_ext}$major'
 
17882
  ;;
 
17883
 
 
17884
aix4* | aix5*)
 
17885
  version_type=linux
 
17886
  need_lib_prefix=no
 
17887
  need_version=no
 
17888
  hardcode_into_libs=yes
 
17889
  if test "$host_cpu" = ia64; then
 
17890
    # AIX 5 supports IA64
 
17891
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17892
    shlibpath_var=LD_LIBRARY_PATH
 
17893
  else
 
17894
    # With GCC up to 2.95.x, collect2 would create an import file
 
17895
    # for dependence libraries.  The import file would start with
 
17896
    # the line `#! .'.  This would cause the generated library to
 
17897
    # depend on `.', always an invalid library.  This was fixed in
 
17898
    # development snapshots of GCC prior to 3.0.
 
17899
    case $host_os in
 
17900
      aix4 | aix4.[01] | aix4.[01].*)
 
17901
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17902
           echo ' yes '
 
17903
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17904
        :
 
17905
      else
 
17906
        can_build_shared=no
 
17907
      fi
 
17908
      ;;
 
17909
    esac
 
17910
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17911
    # soname into executable. Probably we can add versioning support to
 
17912
    # collect2, so additional links can be useful in future.
 
17913
    if test "$aix_use_runtimelinking" = yes; then
 
17914
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17915
      # instead of lib<name>.a to let people know that these are not
 
17916
      # typical AIX shared libraries.
 
17917
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17918
    else
 
17919
      # We preserve .a as extension for shared libraries through AIX4.2
 
17920
      # and later when we are not doing run time linking.
 
17921
      library_names_spec='${libname}${release}.a $libname.a'
 
17922
      soname_spec='${libname}${release}${shared_ext}$major'
 
17923
    fi
 
17924
    shlibpath_var=LIBPATH
 
17925
  fi
 
17926
  ;;
 
17927
 
 
17928
amigaos*)
 
17929
  library_names_spec='$libname.ixlibrary $libname.a'
 
17930
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17931
  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'
 
17932
  ;;
 
17933
 
 
17934
beos*)
 
17935
  library_names_spec='${libname}${shared_ext}'
 
17936
  dynamic_linker="$host_os ld.so"
 
17937
  shlibpath_var=LIBRARY_PATH
 
17938
  ;;
 
17939
 
 
17940
bsdi[45]*)
 
17941
  version_type=linux
 
17942
  need_version=no
 
17943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17944
  soname_spec='${libname}${release}${shared_ext}$major'
 
17945
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17946
  shlibpath_var=LD_LIBRARY_PATH
 
17947
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17948
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17949
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17950
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17951
  # libtool to hard-code these into programs
 
17952
  ;;
 
17953
 
 
17954
cygwin* | mingw* | pw32*)
 
17955
  version_type=windows
 
17956
  shrext_cmds=".dll"
 
17957
  need_version=no
 
17958
  need_lib_prefix=no
 
17959
 
 
17960
  case $GCC,$host_os in
 
17961
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17962
    library_names_spec='$libname.dll.a'
 
17963
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17964
    postinstall_cmds='base_file=`basename \${file}`~
 
17965
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17966
      dldir=$destdir/`dirname \$dlpath`~
 
17967
      test -d \$dldir || mkdir -p \$dldir~
 
17968
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17969
      chmod a+x \$dldir/$dlname'
 
17970
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17971
      dlpath=$dir/\$dldll~
 
17972
       $rm \$dlpath'
 
17973
    shlibpath_overrides_runpath=yes
 
17974
 
 
17975
    case $host_os in
 
17976
    cygwin*)
 
17977
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17978
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17979
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17980
      ;;
 
17981
    mingw*)
 
17982
      # MinGW DLLs use traditional 'lib' prefix
 
17983
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17984
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17985
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17986
        # It is most probably a Windows format PATH printed by
 
17987
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17988
        # path with ; separators, and with drive letters. We can handle the
 
17989
        # drive letters (cygwin fileutils understands them), so leave them,
 
17990
        # especially as we might pass files found there to a mingw objdump,
 
17991
        # which wouldn't understand a cygwinified path. Ahh.
 
17992
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17993
      else
 
17994
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17995
      fi
 
17996
      ;;
 
17997
    pw32*)
 
17998
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17999
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18000
      ;;
 
18001
    esac
 
18002
    ;;
 
18003
 
 
18004
  *)
 
18005
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18006
    ;;
 
18007
  esac
 
18008
  dynamic_linker='Win32 ld.exe'
 
18009
  # FIXME: first we should search . and the directory the executable is in
 
18010
  shlibpath_var=PATH
 
18011
  ;;
 
18012
 
 
18013
darwin* | rhapsody*)
 
18014
  dynamic_linker="$host_os dyld"
 
18015
  version_type=darwin
 
18016
  need_lib_prefix=no
 
18017
  need_version=no
 
18018
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18019
  soname_spec='${libname}${release}${major}$shared_ext'
 
18020
  shlibpath_overrides_runpath=yes
 
18021
  shlibpath_var=DYLD_LIBRARY_PATH
 
18022
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18023
   
 
18024
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18025
  ;;
 
18026
 
 
18027
dgux*)
 
18028
  version_type=linux
 
18029
  need_lib_prefix=no
 
18030
  need_version=no
 
18031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18032
  soname_spec='${libname}${release}${shared_ext}$major'
 
18033
  shlibpath_var=LD_LIBRARY_PATH
 
18034
  ;;
 
18035
 
 
18036
freebsd1*)
 
18037
  dynamic_linker=no
 
18038
  ;;
 
18039
 
 
18040
freebsd* | dragonfly*)
 
18041
  # DragonFly does not have aout.  When/if they implement a new
 
18042
  # versioning mechanism, adjust this.
 
18043
  if test -x /usr/bin/objformat; then
 
18044
    objformat=`/usr/bin/objformat`
 
18045
  else
 
18046
    case $host_os in
 
18047
    freebsd[123]*) objformat=aout ;;
 
18048
    *) objformat=elf ;;
 
18049
    esac
 
18050
  fi
 
18051
  version_type=freebsd-$objformat
 
18052
  case $version_type in
 
18053
    freebsd-elf*)
 
18054
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18055
      need_version=no
 
18056
      need_lib_prefix=no
 
18057
      ;;
 
18058
    freebsd-*)
 
18059
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18060
      need_version=yes
 
18061
      ;;
 
18062
  esac
 
18063
  shlibpath_var=LD_LIBRARY_PATH
 
18064
  case $host_os in
 
18065
  freebsd2*)
 
18066
    shlibpath_overrides_runpath=yes
 
18067
    ;;
 
18068
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18069
    shlibpath_overrides_runpath=yes
 
18070
    hardcode_into_libs=yes
 
18071
    ;;
 
18072
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18073
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18074
    shlibpath_overrides_runpath=no
 
18075
    hardcode_into_libs=yes
 
18076
    ;;
 
18077
  *) # from 4.6 on, and DragonFly
 
18078
    shlibpath_overrides_runpath=yes
 
18079
    hardcode_into_libs=yes
 
18080
    ;;
 
18081
  esac
 
18082
  ;;
 
18083
 
 
18084
gnu*)
 
18085
  version_type=linux
 
18086
  need_lib_prefix=no
 
18087
  need_version=no
 
18088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18089
  soname_spec='${libname}${release}${shared_ext}$major'
 
18090
  shlibpath_var=LD_LIBRARY_PATH
 
18091
  hardcode_into_libs=yes
 
18092
  ;;
 
18093
 
 
18094
hpux9* | hpux10* | hpux11*)
 
18095
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18096
  # link against other versions.
 
18097
  version_type=sunos
 
18098
  need_lib_prefix=no
 
18099
  need_version=no
 
18100
  case $host_cpu in
 
18101
  ia64*)
 
18102
    shrext_cmds='.so'
 
18103
    hardcode_into_libs=yes
 
18104
    dynamic_linker="$host_os dld.so"
 
18105
    shlibpath_var=LD_LIBRARY_PATH
 
18106
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18107
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18108
    soname_spec='${libname}${release}${shared_ext}$major'
 
18109
    if test "X$HPUX_IA64_MODE" = X32; then
 
18110
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18111
    else
 
18112
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18113
    fi
 
18114
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18115
    ;;
 
18116
   hppa*64*)
 
18117
     shrext_cmds='.sl'
 
18118
     hardcode_into_libs=yes
 
18119
     dynamic_linker="$host_os dld.sl"
 
18120
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18121
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18122
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18123
     soname_spec='${libname}${release}${shared_ext}$major'
 
18124
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18125
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18126
     ;;
 
18127
   *)
 
18128
    shrext_cmds='.sl'
 
18129
    dynamic_linker="$host_os dld.sl"
 
18130
    shlibpath_var=SHLIB_PATH
 
18131
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18132
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18133
    soname_spec='${libname}${release}${shared_ext}$major'
 
18134
    ;;
 
18135
  esac
 
18136
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18137
  postinstall_cmds='chmod 555 $lib'
 
18138
  ;;
 
18139
 
 
18140
interix[3-9]*)
 
18141
  version_type=linux
 
18142
  need_lib_prefix=no
 
18143
  need_version=no
 
18144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18145
  soname_spec='${libname}${release}${shared_ext}$major'
 
18146
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18147
  shlibpath_var=LD_LIBRARY_PATH
 
18148
  shlibpath_overrides_runpath=no
 
18149
  hardcode_into_libs=yes
 
18150
  ;;
 
18151
 
 
18152
irix5* | irix6* | nonstopux*)
 
18153
  case $host_os in
 
18154
    nonstopux*) version_type=nonstopux ;;
 
18155
    *)
 
18156
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18157
                version_type=linux
 
18158
        else
 
18159
                version_type=irix
 
18160
        fi ;;
 
18161
  esac
 
18162
  need_lib_prefix=no
 
18163
  need_version=no
 
18164
  soname_spec='${libname}${release}${shared_ext}$major'
 
18165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18166
  case $host_os in
 
18167
  irix5* | nonstopux*)
 
18168
    libsuff= shlibsuff=
 
18169
    ;;
 
18170
  *)
 
18171
    case $LD in # libtool.m4 will add one of these switches to LD
 
18172
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18173
      libsuff= shlibsuff= libmagic=32-bit;;
 
18174
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18175
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18176
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18177
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18178
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18179
    esac
 
18180
    ;;
 
18181
  esac
 
18182
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18183
  shlibpath_overrides_runpath=no
 
18184
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18185
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18186
  hardcode_into_libs=yes
 
18187
  ;;
 
18188
 
 
18189
# No shared lib support for Linux oldld, aout, or coff.
 
18190
linux*oldld* | linux*aout* | linux*coff*)
 
18191
  dynamic_linker=no
 
18192
  ;;
 
18193
 
 
18194
# This must be Linux ELF.
 
18195
linux* | k*bsd*-gnu)
 
18196
  version_type=linux
 
18197
  need_lib_prefix=no
 
18198
  need_version=no
 
18199
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18200
  soname_spec='${libname}${release}${shared_ext}$major'
 
18201
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18202
  shlibpath_var=LD_LIBRARY_PATH
 
18203
  shlibpath_overrides_runpath=no
 
18204
  # This implies no fast_install, which is unacceptable.
 
18205
  # Some rework will be needed to allow for fast_install
 
18206
  # before this can be enabled.
 
18207
  hardcode_into_libs=yes
 
18208
 
 
18209
  # Append ld.so.conf contents to the search path
 
18210
  if test -f /etc/ld.so.conf; then
 
18211
    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' ' '`
 
18212
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18213
  fi
 
18214
 
 
18215
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18216
  # powerpc, because MkLinux only supported shared libraries with the
 
18217
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18218
  # most powerpc-linux boxes support dynamic linking these days and
 
18219
  # people can always --disable-shared, the test was removed, and we
 
18220
  # assume the GNU/Linux dynamic linker is in use.
 
18221
  dynamic_linker='GNU/Linux ld.so'
 
18222
  ;;
 
18223
 
 
18224
netbsdelf*-gnu)
 
18225
  version_type=linux
 
18226
  need_lib_prefix=no
 
18227
  need_version=no
 
18228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18229
  soname_spec='${libname}${release}${shared_ext}$major'
 
18230
  shlibpath_var=LD_LIBRARY_PATH
 
18231
  shlibpath_overrides_runpath=no
 
18232
  hardcode_into_libs=yes
 
18233
  dynamic_linker='NetBSD ld.elf_so'
 
18234
  ;;
 
18235
 
 
18236
netbsd*)
 
18237
  version_type=sunos
 
18238
  need_lib_prefix=no
 
18239
  need_version=no
 
18240
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18241
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18242
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18243
    dynamic_linker='NetBSD (a.out) ld.so'
 
18244
  else
 
18245
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18246
    soname_spec='${libname}${release}${shared_ext}$major'
 
18247
    dynamic_linker='NetBSD ld.elf_so'
 
18248
  fi
 
18249
  shlibpath_var=LD_LIBRARY_PATH
 
18250
  shlibpath_overrides_runpath=yes
 
18251
  hardcode_into_libs=yes
 
18252
  ;;
 
18253
 
 
18254
newsos6)
 
18255
  version_type=linux
 
18256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18257
  shlibpath_var=LD_LIBRARY_PATH
 
18258
  shlibpath_overrides_runpath=yes
 
18259
  ;;
 
18260
 
 
18261
nto-qnx*)
 
18262
  version_type=linux
 
18263
  need_lib_prefix=no
 
18264
  need_version=no
 
18265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18266
  soname_spec='${libname}${release}${shared_ext}$major'
 
18267
  shlibpath_var=LD_LIBRARY_PATH
 
18268
  shlibpath_overrides_runpath=yes
 
18269
  ;;
 
18270
 
 
18271
openbsd*)
 
18272
  version_type=sunos
 
18273
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18274
  need_lib_prefix=no
 
18275
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18276
  case $host_os in
 
18277
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18278
    *)                         need_version=no  ;;
 
18279
  esac
 
18280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18281
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18282
  shlibpath_var=LD_LIBRARY_PATH
 
18283
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18284
    case $host_os in
 
18285
      openbsd2.[89] | openbsd2.[89].*)
 
18286
        shlibpath_overrides_runpath=no
 
18287
        ;;
 
18288
      *)
 
18289
        shlibpath_overrides_runpath=yes
 
18290
        ;;
 
18291
      esac
 
18292
  else
 
18293
    shlibpath_overrides_runpath=yes
 
18294
  fi
 
18295
  ;;
 
18296
 
 
18297
os2*)
 
18298
  libname_spec='$name'
 
18299
  shrext_cmds=".dll"
 
18300
  need_lib_prefix=no
 
18301
  library_names_spec='$libname${shared_ext} $libname.a'
 
18302
  dynamic_linker='OS/2 ld.exe'
 
18303
  shlibpath_var=LIBPATH
 
18304
  ;;
 
18305
 
 
18306
osf3* | osf4* | osf5*)
 
18307
  version_type=osf
 
18308
  need_lib_prefix=no
 
18309
  need_version=no
 
18310
  soname_spec='${libname}${release}${shared_ext}$major'
 
18311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18312
  shlibpath_var=LD_LIBRARY_PATH
 
18313
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18314
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18315
  ;;
 
18316
 
 
18317
rdos*)
 
18318
  dynamic_linker=no
 
18319
  ;;
 
18320
 
 
18321
solaris*)
 
18322
  version_type=linux
 
18323
  need_lib_prefix=no
 
18324
  need_version=no
 
18325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18326
  soname_spec='${libname}${release}${shared_ext}$major'
 
18327
  shlibpath_var=LD_LIBRARY_PATH
 
18328
  shlibpath_overrides_runpath=yes
 
18329
  hardcode_into_libs=yes
 
18330
  # ldd complains unless libraries are executable
 
18331
  postinstall_cmds='chmod +x $lib'
 
18332
  ;;
 
18333
 
 
18334
sunos4*)
 
18335
  version_type=sunos
 
18336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18337
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18338
  shlibpath_var=LD_LIBRARY_PATH
 
18339
  shlibpath_overrides_runpath=yes
 
18340
  if test "$with_gnu_ld" = yes; then
 
18341
    need_lib_prefix=no
 
18342
  fi
 
18343
  need_version=yes
 
18344
  ;;
 
18345
 
 
18346
sysv4 | sysv4.3*)
 
18347
  version_type=linux
 
18348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18349
  soname_spec='${libname}${release}${shared_ext}$major'
 
18350
  shlibpath_var=LD_LIBRARY_PATH
 
18351
  case $host_vendor in
 
18352
    sni)
 
18353
      shlibpath_overrides_runpath=no
 
18354
      need_lib_prefix=no
 
18355
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18356
      runpath_var=LD_RUN_PATH
 
18357
      ;;
 
18358
    siemens)
 
18359
      need_lib_prefix=no
 
18360
      ;;
 
18361
    motorola)
 
18362
      need_lib_prefix=no
 
18363
      need_version=no
 
18364
      shlibpath_overrides_runpath=no
 
18365
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18366
      ;;
 
18367
  esac
 
18368
  ;;
 
18369
 
 
18370
sysv4*MP*)
 
18371
  if test -d /usr/nec ;then
 
18372
    version_type=linux
 
18373
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18374
    soname_spec='$libname${shared_ext}.$major'
 
18375
    shlibpath_var=LD_LIBRARY_PATH
 
18376
  fi
 
18377
  ;;
 
18378
 
 
18379
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18380
  version_type=freebsd-elf
 
18381
  need_lib_prefix=no
 
18382
  need_version=no
 
18383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18384
  soname_spec='${libname}${release}${shared_ext}$major'
 
18385
  shlibpath_var=LD_LIBRARY_PATH
 
18386
  hardcode_into_libs=yes
 
18387
  if test "$with_gnu_ld" = yes; then
 
18388
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18389
    shlibpath_overrides_runpath=no
 
18390
  else
 
18391
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18392
    shlibpath_overrides_runpath=yes
 
18393
    case $host_os in
 
18394
      sco3.2v5*)
 
18395
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18396
        ;;
 
18397
    esac
 
18398
  fi
 
18399
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18400
  ;;
 
18401
 
 
18402
uts4*)
 
18403
  version_type=linux
 
18404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18405
  soname_spec='${libname}${release}${shared_ext}$major'
 
18406
  shlibpath_var=LD_LIBRARY_PATH
 
18407
  ;;
 
18408
 
 
18409
*)
 
18410
  dynamic_linker=no
 
18411
  ;;
 
18412
esac
 
18413
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18414
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18415
test "$dynamic_linker" = no && can_build_shared=no
 
18416
 
 
18417
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18418
if test "$GCC" = yes; then
 
18419
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18420
fi
 
18421
 
 
18422
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18423
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18424
hardcode_action_GCJ=
 
18425
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18426
   test -n "$runpath_var_GCJ" || \
 
18427
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18428
 
 
18429
  # We can hardcode non-existant directories.
 
18430
  if test "$hardcode_direct_GCJ" != no &&
 
18431
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18432
     # have to relink, otherwise we might link with an installed library
 
18433
     # when we should be linking with a yet-to-be-installed one
 
18434
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18435
     test "$hardcode_minus_L_GCJ" != no; then
 
18436
    # Linking always hardcodes the temporary library directory.
 
18437
    hardcode_action_GCJ=relink
 
18438
  else
 
18439
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18440
    hardcode_action_GCJ=immediate
 
18441
  fi
 
18442
else
 
18443
  # We cannot hardcode anything, or else we can only hardcode existing
 
18444
  # directories.
 
18445
  hardcode_action_GCJ=unsupported
 
18446
fi
 
18447
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18448
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18449
 
 
18450
if test "$hardcode_action_GCJ" = relink; then
 
18451
  # Fast installation is not supported
 
18452
  enable_fast_install=no
 
18453
elif test "$shlibpath_overrides_runpath" = yes ||
 
18454
     test "$enable_shared" = no; then
 
18455
  # Fast installation is not necessary
 
18456
  enable_fast_install=needless
 
18457
fi
 
18458
 
 
18459
 
 
18460
# The else clause should only fire when bootstrapping the
 
18461
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18462
# with your package, and you will get complaints that there are
 
18463
# no rules to generate ltmain.sh.
 
18464
if test -f "$ltmain"; then
 
18465
  # See if we are running on zsh, and set the options which allow our commands through
 
18466
  # without removal of \ escapes.
 
18467
  if test -n "${ZSH_VERSION+set}" ; then
 
18468
    setopt NO_GLOB_SUBST
 
18469
  fi
 
18470
  # Now quote all the things that may contain metacharacters while being
 
18471
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18472
  # variables and quote the copies for generation of the libtool script.
 
18473
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18474
    SED SHELL STRIP \
 
18475
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18476
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18477
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18478
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18479
    lt_cv_sys_global_symbol_to_c_name_address \
 
18480
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18481
    old_postinstall_cmds old_postuninstall_cmds \
 
18482
    compiler_GCJ \
 
18483
    CC_GCJ \
 
18484
    LD_GCJ \
 
18485
    lt_prog_compiler_wl_GCJ \
 
18486
    lt_prog_compiler_pic_GCJ \
 
18487
    lt_prog_compiler_static_GCJ \
 
18488
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18489
    export_dynamic_flag_spec_GCJ \
 
18490
    thread_safe_flag_spec_GCJ \
 
18491
    whole_archive_flag_spec_GCJ \
 
18492
    enable_shared_with_static_runtimes_GCJ \
 
18493
    old_archive_cmds_GCJ \
 
18494
    old_archive_from_new_cmds_GCJ \
 
18495
    predep_objects_GCJ \
 
18496
    postdep_objects_GCJ \
 
18497
    predeps_GCJ \
 
18498
    postdeps_GCJ \
 
18499
    compiler_lib_search_path_GCJ \
 
18500
    archive_cmds_GCJ \
 
18501
    archive_expsym_cmds_GCJ \
 
18502
    postinstall_cmds_GCJ \
 
18503
    postuninstall_cmds_GCJ \
 
18504
    old_archive_from_expsyms_cmds_GCJ \
 
18505
    allow_undefined_flag_GCJ \
 
18506
    no_undefined_flag_GCJ \
 
18507
    export_symbols_cmds_GCJ \
 
18508
    hardcode_libdir_flag_spec_GCJ \
 
18509
    hardcode_libdir_flag_spec_ld_GCJ \
 
18510
    hardcode_libdir_separator_GCJ \
 
18511
    hardcode_automatic_GCJ \
 
18512
    module_cmds_GCJ \
 
18513
    module_expsym_cmds_GCJ \
 
18514
    lt_cv_prog_compiler_c_o_GCJ \
 
18515
    fix_srcfile_path_GCJ \
 
18516
    exclude_expsyms_GCJ \
 
18517
    include_expsyms_GCJ; do
 
18518
 
 
18519
    case $var in
 
18520
    old_archive_cmds_GCJ | \
 
18521
    old_archive_from_new_cmds_GCJ | \
 
18522
    archive_cmds_GCJ | \
 
18523
    archive_expsym_cmds_GCJ | \
 
18524
    module_cmds_GCJ | \
 
18525
    module_expsym_cmds_GCJ | \
 
18526
    old_archive_from_expsyms_cmds_GCJ | \
 
18527
    export_symbols_cmds_GCJ | \
 
18528
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18529
    postinstall_cmds | postuninstall_cmds | \
 
18530
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18531
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18532
      # Double-quote double-evaled strings.
 
18533
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18534
      ;;
 
18535
    *)
 
18536
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18537
      ;;
 
18538
    esac
 
18539
  done
 
18540
 
 
18541
  case $lt_echo in
 
18542
  *'\$0 --fallback-echo"')
 
18543
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18544
    ;;
 
18545
  esac
 
18546
 
 
18547
cfgfile="$ofile"
 
18548
 
 
18549
  cat <<__EOF__ >> "$cfgfile"
 
18550
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18551
 
 
18552
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18553
 
 
18554
# Shell to use when invoking shell scripts.
 
18555
SHELL=$lt_SHELL
 
18556
 
 
18557
# Whether or not to build shared libraries.
 
18558
build_libtool_libs=$enable_shared
 
18559
 
 
18560
# Whether or not to build static libraries.
 
18561
build_old_libs=$enable_static
 
18562
 
 
18563
# Whether or not to add -lc for building shared libraries.
 
18564
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18565
 
 
18566
# Whether or not to disallow shared libs when runtime libs are static
 
18567
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18568
 
 
18569
# Whether or not to optimize for fast installation.
 
18570
fast_install=$enable_fast_install
 
18571
 
 
18572
# The host system.
 
18573
host_alias=$host_alias
 
18574
host=$host
 
18575
host_os=$host_os
 
18576
 
 
18577
# The build system.
 
18578
build_alias=$build_alias
 
18579
build=$build
 
18580
build_os=$build_os
 
18581
 
 
18582
# An echo program that does not interpret backslashes.
 
18583
echo=$lt_echo
 
18584
 
 
18585
# The archiver.
 
18586
AR=$lt_AR
 
18587
AR_FLAGS=$lt_AR_FLAGS
 
18588
 
 
18589
# A C compiler.
 
18590
LTCC=$lt_LTCC
 
18591
 
 
18592
# LTCC compiler flags.
 
18593
LTCFLAGS=$lt_LTCFLAGS
 
18594
 
 
18595
# A language-specific compiler.
 
18596
CC=$lt_compiler_GCJ
 
18597
 
 
18598
# Is the compiler the GNU C compiler?
 
18599
with_gcc=$GCC_GCJ
 
18600
 
 
18601
# An ERE matcher.
 
18602
EGREP=$lt_EGREP
 
18603
 
 
18604
# The linker used to build libraries.
 
18605
LD=$lt_LD_GCJ
 
18606
 
 
18607
# Whether we need hard or soft links.
 
18608
LN_S=$lt_LN_S
 
18609
 
 
18610
# A BSD-compatible nm program.
 
18611
NM=$lt_NM
 
18612
 
 
18613
# A symbol stripping program
 
18614
STRIP=$lt_STRIP
 
18615
 
 
18616
# Used to examine libraries when file_magic_cmd begins "file"
 
18617
MAGIC_CMD=$MAGIC_CMD
 
18618
 
 
18619
# Used on cygwin: DLL creation program.
 
18620
DLLTOOL="$DLLTOOL"
 
18621
 
 
18622
# Used on cygwin: object dumper.
 
18623
OBJDUMP="$OBJDUMP"
 
18624
 
 
18625
# Used on cygwin: assembler.
 
18626
AS="$AS"
 
18627
 
 
18628
# The name of the directory that contains temporary libtool files.
 
18629
objdir=$objdir
 
18630
 
 
18631
# How to create reloadable object files.
 
18632
reload_flag=$lt_reload_flag
 
18633
reload_cmds=$lt_reload_cmds
 
18634
 
 
18635
# How to pass a linker flag through the compiler.
 
18636
wl=$lt_lt_prog_compiler_wl_GCJ
 
18637
 
 
18638
# Object file suffix (normally "o").
 
18639
objext="$ac_objext"
 
18640
 
 
18641
# Old archive suffix (normally "a").
 
18642
libext="$libext"
 
18643
 
 
18644
# Shared library suffix (normally ".so").
 
18645
shrext_cmds='$shrext_cmds'
 
18646
 
 
18647
# Executable file suffix (normally "").
 
18648
exeext="$exeext"
 
18649
 
 
18650
# Additional compiler flags for building library objects.
 
18651
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18652
pic_mode=$pic_mode
 
18653
 
 
18654
# What is the maximum length of a command?
 
18655
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18656
 
 
18657
# Does compiler simultaneously support -c and -o options?
 
18658
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18659
 
 
18660
# Must we lock files when doing compilation?
 
18661
need_locks=$lt_need_locks
 
18662
 
 
18663
# Do we need the lib prefix for modules?
 
18664
need_lib_prefix=$need_lib_prefix
 
18665
 
 
18666
# Do we need a version for libraries?
 
18667
need_version=$need_version
 
18668
 
 
18669
# Whether dlopen is supported.
 
18670
dlopen_support=$enable_dlopen
 
18671
 
 
18672
# Whether dlopen of programs is supported.
 
18673
dlopen_self=$enable_dlopen_self
 
18674
 
 
18675
# Whether dlopen of statically linked programs is supported.
 
18676
dlopen_self_static=$enable_dlopen_self_static
 
18677
 
 
18678
# Compiler flag to prevent dynamic linking.
 
18679
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18680
 
 
18681
# Compiler flag to turn off builtin functions.
 
18682
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18683
 
 
18684
# Compiler flag to allow reflexive dlopens.
 
18685
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18686
 
 
18687
# Compiler flag to generate shared objects directly from archives.
 
18688
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18689
 
 
18690
# Compiler flag to generate thread-safe objects.
 
18691
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18692
 
 
18693
# Library versioning type.
 
18694
version_type=$version_type
 
18695
 
 
18696
# Format of library name prefix.
 
18697
libname_spec=$lt_libname_spec
 
18698
 
 
18699
# List of archive names.  First name is the real one, the rest are links.
 
18700
# The last name is the one that the linker finds with -lNAME.
 
18701
library_names_spec=$lt_library_names_spec
 
18702
 
 
18703
# The coded name of the library, if different from the real name.
 
18704
soname_spec=$lt_soname_spec
 
18705
 
 
18706
# Commands used to build and install an old-style archive.
 
18707
RANLIB=$lt_RANLIB
 
18708
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18709
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18710
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18711
 
 
18712
# Create an old-style archive from a shared archive.
 
18713
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18714
 
 
18715
# Create a temporary old-style archive to link instead of a shared archive.
 
18716
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18717
 
 
18718
# Commands used to build and install a shared archive.
 
18719
archive_cmds=$lt_archive_cmds_GCJ
 
18720
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18721
postinstall_cmds=$lt_postinstall_cmds
 
18722
postuninstall_cmds=$lt_postuninstall_cmds
 
18723
 
 
18724
# Commands used to build a loadable module (assumed same as above if empty)
 
18725
module_cmds=$lt_module_cmds_GCJ
 
18726
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18727
 
 
18728
# Commands to strip libraries.
 
18729
old_striplib=$lt_old_striplib
 
18730
striplib=$lt_striplib
 
18731
 
 
18732
# Dependencies to place before the objects being linked to create a
 
18733
# shared library.
 
18734
predep_objects=$lt_predep_objects_GCJ
 
18735
 
 
18736
# Dependencies to place after the objects being linked to create a
 
18737
# shared library.
 
18738
postdep_objects=$lt_postdep_objects_GCJ
 
18739
 
 
18740
# Dependencies to place before the objects being linked to create a
 
18741
# shared library.
 
18742
predeps=$lt_predeps_GCJ
 
18743
 
 
18744
# Dependencies to place after the objects being linked to create a
 
18745
# shared library.
 
18746
postdeps=$lt_postdeps_GCJ
 
18747
 
 
18748
# The library search path used internally by the compiler when linking
 
18749
# a shared library.
 
18750
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18751
 
 
18752
# Method to check whether dependent libraries are shared objects.
 
18753
deplibs_check_method=$lt_deplibs_check_method
 
18754
 
 
18755
# Command to use when deplibs_check_method == file_magic.
 
18756
file_magic_cmd=$lt_file_magic_cmd
 
18757
 
 
18758
# Flag that allows shared libraries with undefined symbols to be built.
 
18759
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18760
 
 
18761
# Flag that forces no undefined symbols.
 
18762
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18763
 
 
18764
# Commands used to finish a libtool library installation in a directory.
 
18765
finish_cmds=$lt_finish_cmds
 
18766
 
 
18767
# Same as above, but a single script fragment to be evaled but not shown.
 
18768
finish_eval=$lt_finish_eval
 
18769
 
 
18770
# Take the output of nm and produce a listing of raw symbols and C names.
 
18771
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18772
 
 
18773
# Transform the output of nm in a proper C declaration
 
18774
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18775
 
 
18776
# Transform the output of nm in a C name address pair
 
18777
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18778
 
 
18779
# This is the shared library runtime path variable.
 
18780
runpath_var=$runpath_var
 
18781
 
 
18782
# This is the shared library path variable.
 
18783
shlibpath_var=$shlibpath_var
 
18784
 
 
18785
# Is shlibpath searched before the hard-coded library search path?
 
18786
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18787
 
 
18788
# How to hardcode a shared library path into an executable.
 
18789
hardcode_action=$hardcode_action_GCJ
 
18790
 
 
18791
# Whether we should hardcode library paths into libraries.
 
18792
hardcode_into_libs=$hardcode_into_libs
 
18793
 
 
18794
# Flag to hardcode \$libdir into a binary during linking.
 
18795
# This must work even if \$libdir does not exist.
 
18796
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18797
 
 
18798
# If ld is used when linking, flag to hardcode \$libdir into
 
18799
# a binary during linking. This must work even if \$libdir does
 
18800
# not exist.
 
18801
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18802
 
 
18803
# Whether we need a single -rpath flag with a separated argument.
 
18804
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18805
 
 
18806
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18807
# resulting binary.
 
18808
hardcode_direct=$hardcode_direct_GCJ
 
18809
 
 
18810
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18811
# resulting binary.
 
18812
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18813
 
 
18814
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18815
# the resulting binary.
 
18816
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18817
 
 
18818
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18819
# and all subsequent libraries and executables linked against it.
 
18820
hardcode_automatic=$hardcode_automatic_GCJ
 
18821
 
 
18822
# Variables whose values should be saved in libtool wrapper scripts and
 
18823
# restored at relink time.
 
18824
variables_saved_for_relink="$variables_saved_for_relink"
 
18825
 
 
18826
# Whether libtool must link a program against all its dependency libraries.
 
18827
link_all_deplibs=$link_all_deplibs_GCJ
 
18828
 
 
18829
# Compile-time system search path for libraries
 
18830
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18831
 
 
18832
# Run-time system search path for libraries
 
18833
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18834
 
 
18835
# Fix the shell variable \$srcfile for the compiler.
 
18836
fix_srcfile_path=$lt_fix_srcfile_path
 
18837
 
 
18838
# Set to yes if exported symbols are required.
 
18839
always_export_symbols=$always_export_symbols_GCJ
 
18840
 
 
18841
# The commands to list exported symbols.
 
18842
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18843
 
 
18844
# The commands to extract the exported symbol list from a shared archive.
 
18845
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18846
 
 
18847
# Symbols that should not be listed in the preloaded symbols.
 
18848
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18849
 
 
18850
# Symbols that must always be exported.
 
18851
include_expsyms=$lt_include_expsyms_GCJ
 
18852
 
 
18853
# ### END LIBTOOL TAG CONFIG: $tagname
 
18854
 
 
18855
__EOF__
 
18856
 
 
18857
 
 
18858
else
 
18859
  # If there is no Makefile yet, we rely on a make rule to execute
 
18860
  # `config.status --recheck' to rerun these tests and create the
 
18861
  # libtool script then.
 
18862
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18863
  if test -f "$ltmain_in"; then
 
18864
    test -f Makefile && make "$ltmain"
 
18865
  fi
 
18866
fi
 
18867
 
 
18868
 
 
18869
ac_ext=c
 
18870
ac_cpp='$CPP $CPPFLAGS'
 
18871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18874
 
 
18875
CC="$lt_save_CC"
 
18876
 
 
18877
        else
 
18878
          tagname=""
 
18879
        fi
 
18880
        ;;
 
18881
 
 
18882
      RC)
 
18883
        
 
18884
 
 
18885
# Source file extension for RC test sources.
 
18886
ac_ext=rc
 
18887
 
 
18888
# Object file extension for compiled RC test sources.
 
18889
objext=o
 
18890
objext_RC=$objext
 
18891
 
 
18892
# Code to be used in simple compile tests
 
18893
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
18894
 
 
18895
# Code to be used in simple link tests
 
18896
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18897
 
 
18898
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18899
 
 
18900
# If no C compiler was specified, use CC.
 
18901
LTCC=${LTCC-"$CC"}
 
18902
 
 
18903
# If no C compiler flags were specified, use CFLAGS.
 
18904
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18905
 
 
18906
# Allow CC to be a program name with arguments.
 
18907
compiler=$CC
 
18908
 
 
18909
 
 
18910
# save warnings/boilerplate of simple test code
 
18911
ac_outfile=conftest.$ac_objext
 
18912
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18913
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18914
_lt_compiler_boilerplate=`cat conftest.err`
 
18915
$rm conftest*
 
18916
 
 
18917
ac_outfile=conftest.$ac_objext
 
18918
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
18919
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18920
_lt_linker_boilerplate=`cat conftest.err`
 
18921
$rm conftest*
 
18922
 
 
18923
 
 
18924
# Allow CC to be a program name with arguments.
 
18925
lt_save_CC="$CC"
 
18926
CC=${RC-"windres"}
 
18927
compiler=$CC
 
18928
compiler_RC=$CC
 
18929
for cc_temp in $compiler""; do
 
18930
  case $cc_temp in
 
18931
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18932
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18933
    \-*) ;;
 
18934
    *) break;;
 
18935
  esac
 
18936
done
 
18937
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18938
 
 
18939
lt_cv_prog_compiler_c_o_RC=yes
 
18940
 
 
18941
# The else clause should only fire when bootstrapping the
 
18942
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18943
# with your package, and you will get complaints that there are
 
18944
# no rules to generate ltmain.sh.
 
18945
if test -f "$ltmain"; then
 
18946
  # See if we are running on zsh, and set the options which allow our commands through
 
18947
  # without removal of \ escapes.
 
18948
  if test -n "${ZSH_VERSION+set}" ; then
 
18949
    setopt NO_GLOB_SUBST
 
18950
  fi
 
18951
  # Now quote all the things that may contain metacharacters while being
 
18952
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18953
  # variables and quote the copies for generation of the libtool script.
 
18954
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18955
    SED SHELL STRIP \
 
18956
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18957
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18958
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18959
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18960
    lt_cv_sys_global_symbol_to_c_name_address \
 
18961
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18962
    old_postinstall_cmds old_postuninstall_cmds \
 
18963
    compiler_RC \
 
18964
    CC_RC \
 
18965
    LD_RC \
 
18966
    lt_prog_compiler_wl_RC \
 
18967
    lt_prog_compiler_pic_RC \
 
18968
    lt_prog_compiler_static_RC \
 
18969
    lt_prog_compiler_no_builtin_flag_RC \
 
18970
    export_dynamic_flag_spec_RC \
 
18971
    thread_safe_flag_spec_RC \
 
18972
    whole_archive_flag_spec_RC \
 
18973
    enable_shared_with_static_runtimes_RC \
 
18974
    old_archive_cmds_RC \
 
18975
    old_archive_from_new_cmds_RC \
 
18976
    predep_objects_RC \
 
18977
    postdep_objects_RC \
 
18978
    predeps_RC \
 
18979
    postdeps_RC \
 
18980
    compiler_lib_search_path_RC \
 
18981
    archive_cmds_RC \
 
18982
    archive_expsym_cmds_RC \
 
18983
    postinstall_cmds_RC \
 
18984
    postuninstall_cmds_RC \
 
18985
    old_archive_from_expsyms_cmds_RC \
 
18986
    allow_undefined_flag_RC \
 
18987
    no_undefined_flag_RC \
 
18988
    export_symbols_cmds_RC \
 
18989
    hardcode_libdir_flag_spec_RC \
 
18990
    hardcode_libdir_flag_spec_ld_RC \
 
18991
    hardcode_libdir_separator_RC \
 
18992
    hardcode_automatic_RC \
 
18993
    module_cmds_RC \
 
18994
    module_expsym_cmds_RC \
 
18995
    lt_cv_prog_compiler_c_o_RC \
 
18996
    fix_srcfile_path_RC \
 
18997
    exclude_expsyms_RC \
 
18998
    include_expsyms_RC; do
 
18999
 
 
19000
    case $var in
 
19001
    old_archive_cmds_RC | \
 
19002
    old_archive_from_new_cmds_RC | \
 
19003
    archive_cmds_RC | \
 
19004
    archive_expsym_cmds_RC | \
 
19005
    module_cmds_RC | \
 
19006
    module_expsym_cmds_RC | \
 
19007
    old_archive_from_expsyms_cmds_RC | \
 
19008
    export_symbols_cmds_RC | \
 
19009
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19010
    postinstall_cmds | postuninstall_cmds | \
 
19011
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19012
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19013
      # Double-quote double-evaled strings.
 
19014
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19015
      ;;
 
19016
    *)
 
19017
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19018
      ;;
 
19019
    esac
 
19020
  done
 
19021
 
 
19022
  case $lt_echo in
 
19023
  *'\$0 --fallback-echo"')
 
19024
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19025
    ;;
 
19026
  esac
 
19027
 
 
19028
cfgfile="$ofile"
 
19029
 
 
19030
  cat <<__EOF__ >> "$cfgfile"
 
19031
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19032
 
 
19033
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19034
 
 
19035
# Shell to use when invoking shell scripts.
 
19036
SHELL=$lt_SHELL
 
19037
 
 
19038
# Whether or not to build shared libraries.
 
19039
build_libtool_libs=$enable_shared
 
19040
 
 
19041
# Whether or not to build static libraries.
 
19042
build_old_libs=$enable_static
 
19043
 
 
19044
# Whether or not to add -lc for building shared libraries.
 
19045
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19046
 
 
19047
# Whether or not to disallow shared libs when runtime libs are static
 
19048
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19049
 
 
19050
# Whether or not to optimize for fast installation.
 
19051
fast_install=$enable_fast_install
 
19052
 
 
19053
# The host system.
 
19054
host_alias=$host_alias
 
19055
host=$host
 
19056
host_os=$host_os
 
19057
 
 
19058
# The build system.
 
19059
build_alias=$build_alias
 
19060
build=$build
 
19061
build_os=$build_os
 
19062
 
 
19063
# An echo program that does not interpret backslashes.
 
19064
echo=$lt_echo
 
19065
 
 
19066
# The archiver.
 
19067
AR=$lt_AR
 
19068
AR_FLAGS=$lt_AR_FLAGS
 
19069
 
 
19070
# A C compiler.
 
19071
LTCC=$lt_LTCC
 
19072
 
 
19073
# LTCC compiler flags.
 
19074
LTCFLAGS=$lt_LTCFLAGS
 
19075
 
 
19076
# A language-specific compiler.
 
19077
CC=$lt_compiler_RC
 
19078
 
 
19079
# Is the compiler the GNU C compiler?
 
19080
with_gcc=$GCC_RC
 
19081
 
 
19082
# An ERE matcher.
 
19083
EGREP=$lt_EGREP
 
19084
 
 
19085
# The linker used to build libraries.
 
19086
LD=$lt_LD_RC
 
19087
 
 
19088
# Whether we need hard or soft links.
 
19089
LN_S=$lt_LN_S
 
19090
 
 
19091
# A BSD-compatible nm program.
 
19092
NM=$lt_NM
 
19093
 
 
19094
# A symbol stripping program
 
19095
STRIP=$lt_STRIP
 
19096
 
 
19097
# Used to examine libraries when file_magic_cmd begins "file"
 
19098
MAGIC_CMD=$MAGIC_CMD
 
19099
 
 
19100
# Used on cygwin: DLL creation program.
 
19101
DLLTOOL="$DLLTOOL"
 
19102
 
 
19103
# Used on cygwin: object dumper.
 
19104
OBJDUMP="$OBJDUMP"
 
19105
 
 
19106
# Used on cygwin: assembler.
 
19107
AS="$AS"
 
19108
 
 
19109
# The name of the directory that contains temporary libtool files.
 
19110
objdir=$objdir
 
19111
 
 
19112
# How to create reloadable object files.
 
19113
reload_flag=$lt_reload_flag
 
19114
reload_cmds=$lt_reload_cmds
 
19115
 
 
19116
# How to pass a linker flag through the compiler.
 
19117
wl=$lt_lt_prog_compiler_wl_RC
 
19118
 
 
19119
# Object file suffix (normally "o").
 
19120
objext="$ac_objext"
 
19121
 
 
19122
# Old archive suffix (normally "a").
 
19123
libext="$libext"
 
19124
 
 
19125
# Shared library suffix (normally ".so").
 
19126
shrext_cmds='$shrext_cmds'
 
19127
 
 
19128
# Executable file suffix (normally "").
 
19129
exeext="$exeext"
 
19130
 
 
19131
# Additional compiler flags for building library objects.
 
19132
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19133
pic_mode=$pic_mode
 
19134
 
 
19135
# What is the maximum length of a command?
 
19136
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19137
 
 
19138
# Does compiler simultaneously support -c and -o options?
 
19139
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19140
 
 
19141
# Must we lock files when doing compilation?
 
19142
need_locks=$lt_need_locks
 
19143
 
 
19144
# Do we need the lib prefix for modules?
 
19145
need_lib_prefix=$need_lib_prefix
 
19146
 
 
19147
# Do we need a version for libraries?
 
19148
need_version=$need_version
 
19149
 
 
19150
# Whether dlopen is supported.
 
19151
dlopen_support=$enable_dlopen
 
19152
 
 
19153
# Whether dlopen of programs is supported.
 
19154
dlopen_self=$enable_dlopen_self
 
19155
 
 
19156
# Whether dlopen of statically linked programs is supported.
 
19157
dlopen_self_static=$enable_dlopen_self_static
 
19158
 
 
19159
# Compiler flag to prevent dynamic linking.
 
19160
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19161
 
 
19162
# Compiler flag to turn off builtin functions.
 
19163
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19164
 
 
19165
# Compiler flag to allow reflexive dlopens.
 
19166
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19167
 
 
19168
# Compiler flag to generate shared objects directly from archives.
 
19169
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19170
 
 
19171
# Compiler flag to generate thread-safe objects.
 
19172
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19173
 
 
19174
# Library versioning type.
 
19175
version_type=$version_type
 
19176
 
 
19177
# Format of library name prefix.
 
19178
libname_spec=$lt_libname_spec
 
19179
 
 
19180
# List of archive names.  First name is the real one, the rest are links.
 
19181
# The last name is the one that the linker finds with -lNAME.
 
19182
library_names_spec=$lt_library_names_spec
 
19183
 
 
19184
# The coded name of the library, if different from the real name.
 
19185
soname_spec=$lt_soname_spec
 
19186
 
 
19187
# Commands used to build and install an old-style archive.
 
19188
RANLIB=$lt_RANLIB
 
19189
old_archive_cmds=$lt_old_archive_cmds_RC
 
19190
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19191
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19192
 
 
19193
# Create an old-style archive from a shared archive.
 
19194
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19195
 
 
19196
# Create a temporary old-style archive to link instead of a shared archive.
 
19197
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19198
 
 
19199
# Commands used to build and install a shared archive.
 
19200
archive_cmds=$lt_archive_cmds_RC
 
19201
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19202
postinstall_cmds=$lt_postinstall_cmds
 
19203
postuninstall_cmds=$lt_postuninstall_cmds
 
19204
 
 
19205
# Commands used to build a loadable module (assumed same as above if empty)
 
19206
module_cmds=$lt_module_cmds_RC
 
19207
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19208
 
 
19209
# Commands to strip libraries.
 
19210
old_striplib=$lt_old_striplib
 
19211
striplib=$lt_striplib
 
19212
 
 
19213
# Dependencies to place before the objects being linked to create a
 
19214
# shared library.
 
19215
predep_objects=$lt_predep_objects_RC
 
19216
 
 
19217
# Dependencies to place after the objects being linked to create a
 
19218
# shared library.
 
19219
postdep_objects=$lt_postdep_objects_RC
 
19220
 
 
19221
# Dependencies to place before the objects being linked to create a
 
19222
# shared library.
 
19223
predeps=$lt_predeps_RC
 
19224
 
 
19225
# Dependencies to place after the objects being linked to create a
 
19226
# shared library.
 
19227
postdeps=$lt_postdeps_RC
 
19228
 
 
19229
# The library search path used internally by the compiler when linking
 
19230
# a shared library.
 
19231
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19232
 
 
19233
# Method to check whether dependent libraries are shared objects.
 
19234
deplibs_check_method=$lt_deplibs_check_method
 
19235
 
 
19236
# Command to use when deplibs_check_method == file_magic.
 
19237
file_magic_cmd=$lt_file_magic_cmd
 
19238
 
 
19239
# Flag that allows shared libraries with undefined symbols to be built.
 
19240
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19241
 
 
19242
# Flag that forces no undefined symbols.
 
19243
no_undefined_flag=$lt_no_undefined_flag_RC
 
19244
 
 
19245
# Commands used to finish a libtool library installation in a directory.
 
19246
finish_cmds=$lt_finish_cmds
 
19247
 
 
19248
# Same as above, but a single script fragment to be evaled but not shown.
 
19249
finish_eval=$lt_finish_eval
 
19250
 
 
19251
# Take the output of nm and produce a listing of raw symbols and C names.
 
19252
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19253
 
 
19254
# Transform the output of nm in a proper C declaration
 
19255
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19256
 
 
19257
# Transform the output of nm in a C name address pair
 
19258
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19259
 
 
19260
# This is the shared library runtime path variable.
 
19261
runpath_var=$runpath_var
 
19262
 
 
19263
# This is the shared library path variable.
 
19264
shlibpath_var=$shlibpath_var
 
19265
 
 
19266
# Is shlibpath searched before the hard-coded library search path?
 
19267
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19268
 
 
19269
# How to hardcode a shared library path into an executable.
 
19270
hardcode_action=$hardcode_action_RC
 
19271
 
 
19272
# Whether we should hardcode library paths into libraries.
 
19273
hardcode_into_libs=$hardcode_into_libs
 
19274
 
 
19275
# Flag to hardcode \$libdir into a binary during linking.
 
19276
# This must work even if \$libdir does not exist.
 
19277
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19278
 
 
19279
# If ld is used when linking, flag to hardcode \$libdir into
 
19280
# a binary during linking. This must work even if \$libdir does
 
19281
# not exist.
 
19282
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19283
 
 
19284
# Whether we need a single -rpath flag with a separated argument.
 
19285
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19286
 
 
19287
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19288
# resulting binary.
 
19289
hardcode_direct=$hardcode_direct_RC
 
19290
 
 
19291
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19292
# resulting binary.
 
19293
hardcode_minus_L=$hardcode_minus_L_RC
 
19294
 
 
19295
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19296
# the resulting binary.
 
19297
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19298
 
 
19299
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19300
# and all subsequent libraries and executables linked against it.
 
19301
hardcode_automatic=$hardcode_automatic_RC
 
19302
 
 
19303
# Variables whose values should be saved in libtool wrapper scripts and
 
19304
# restored at relink time.
 
19305
variables_saved_for_relink="$variables_saved_for_relink"
 
19306
 
 
19307
# Whether libtool must link a program against all its dependency libraries.
 
19308
link_all_deplibs=$link_all_deplibs_RC
 
19309
 
 
19310
# Compile-time system search path for libraries
 
19311
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19312
 
 
19313
# Run-time system search path for libraries
 
19314
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19315
 
 
19316
# Fix the shell variable \$srcfile for the compiler.
 
19317
fix_srcfile_path=$lt_fix_srcfile_path
 
19318
 
 
19319
# Set to yes if exported symbols are required.
 
19320
always_export_symbols=$always_export_symbols_RC
 
19321
 
 
19322
# The commands to list exported symbols.
 
19323
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19324
 
 
19325
# The commands to extract the exported symbol list from a shared archive.
 
19326
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19327
 
 
19328
# Symbols that should not be listed in the preloaded symbols.
 
19329
exclude_expsyms=$lt_exclude_expsyms_RC
 
19330
 
 
19331
# Symbols that must always be exported.
 
19332
include_expsyms=$lt_include_expsyms_RC
 
19333
 
 
19334
# ### END LIBTOOL TAG CONFIG: $tagname
 
19335
 
 
19336
__EOF__
 
19337
 
 
19338
 
 
19339
else
 
19340
  # If there is no Makefile yet, we rely on a make rule to execute
 
19341
  # `config.status --recheck' to rerun these tests and create the
 
19342
  # libtool script then.
 
19343
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19344
  if test -f "$ltmain_in"; then
 
19345
    test -f Makefile && make "$ltmain"
 
19346
  fi
 
19347
fi
 
19348
 
 
19349
 
 
19350
ac_ext=c
 
19351
ac_cpp='$CPP $CPPFLAGS'
 
19352
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19353
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19354
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19355
 
 
19356
CC="$lt_save_CC"
 
19357
 
 
19358
        ;;
 
19359
 
 
19360
      *)
 
19361
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19362
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19363
   { (exit 1); exit 1; }; }
 
19364
        ;;
 
19365
      esac
 
19366
 
 
19367
      # Append the new tag name to the list of available tags.
 
19368
      if test -n "$tagname" ; then
 
19369
      available_tags="$available_tags $tagname"
 
19370
    fi
 
19371
    fi
 
19372
  done
 
19373
  IFS="$lt_save_ifs"
 
19374
 
 
19375
  # Now substitute the updated list of available tags.
 
19376
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19377
    mv "${ofile}T" "$ofile"
 
19378
    chmod +x "$ofile"
 
19379
  else
 
19380
    rm -f "${ofile}T"
 
19381
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19382
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19383
   { (exit 1); exit 1; }; }
 
19384
  fi
 
19385
fi
 
19386
 
 
19387
 
 
19388
 
 
19389
# This can be used to rebuild libtool when needed
 
19390
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19391
 
 
19392
# Always use our own libtool.
 
19393
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19394
 
 
19395
# Prevent multiple expansion
 
19396
 
 
19397
 
 
19398
 
 
19399
 
 
19400
 
 
19401
 
 
19402
 
 
19403
 
 
19404
 
 
19405
 
 
19406
 
 
19407
  
 
19408
 
 
19409
  
 
19410
 
 
19411
 
 
19412
  
 
19413
       
 
19414
       
 
19415
 
 
19416
 
 
19417
 
 
19418
 
 
19419
case "$am__api_version" in
 
19420
    1.01234)
 
19421
        { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
 
19422
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
 
19423
   { (exit 1); exit 1; }; }
 
19424
    ;;
 
19425
    *)
 
19426
    ;;
 
19427
esac
 
19428
 
 
19429
if test -n "0.35.0"; then
 
19430
    { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
 
19431
echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
 
19432
 
 
19433
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
19434
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
 
19435
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
19436
    
 
19437
    { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
19438
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
 
19439
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
19440
        { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
 
19441
echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
 
19442
   { (exit 1); exit 1; }; }
 
19443
fi
 
19444
 
 
19445
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19446
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19447
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19448
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19449
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
 
19450
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19451
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19452
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19453
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19454
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19455
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19456
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 
 
19457
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19458
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19459
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19460
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19461
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
 
19462
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
19463
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
19464
 
 
19465
 
 
19466
 
 
19467
 
 
19468
 
 
19469
 
 
19470
 
 
19471
 
 
19472
 
 
19473
 
 
19474
 
 
19475
 
 
19476
 
 
19477
 
 
19478
 
 
19479
 
 
19480
 
 
19481
 
 
19482
 
 
19483
 
 
19484
 
 
19485
# Use the tools built into the package, not the ones that are installed.
 
19486
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
 
19487
 
 
19488
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
 
19489
 
 
19490
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
 
19491
 
 
19492
 
 
19493
# Extract the first word of "perl", so it can be a program name with args.
 
19494
set dummy perl; ac_word=$2
 
19495
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19496
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19497
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
 
19498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19499
else
 
19500
  case $INTLTOOL_PERL in
 
19501
  [\\/]* | ?:[\\/]*)
 
19502
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
19503
  ;;
 
19504
  *)
 
19505
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19506
for as_dir in $PATH
 
19507
do
 
19508
  IFS=$as_save_IFS
 
19509
  test -z "$as_dir" && as_dir=.
 
19510
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19511
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19512
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
19513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19514
    break 2
 
19515
  fi
 
19516
done
 
19517
done
 
19518
IFS=$as_save_IFS
 
19519
 
 
19520
  ;;
 
19521
esac
 
19522
fi
 
19523
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
19524
if test -n "$INTLTOOL_PERL"; then
 
19525
  { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
 
19526
echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
 
19527
else
 
19528
  { echo "$as_me:$LINENO: result: no" >&5
 
19529
echo "${ECHO_T}no" >&6; }
 
19530
fi
 
19531
 
 
19532
 
 
19533
if test -z "$INTLTOOL_PERL"; then
 
19534
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
 
19535
echo "$as_me: error: perl not found; required for intltool" >&2;}
 
19536
   { (exit 1); exit 1; }; }
 
19537
fi
 
19538
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
19539
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
 
19540
echo "$as_me: error: perl 5.x required for intltool" >&2;}
 
19541
   { (exit 1); exit 1; }; }
 
19542
fi
 
19543
if test "x" != "xno-xml"; then
 
19544
   { echo "$as_me:$LINENO: checking for XML::Parser" >&5
 
19545
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
 
19546
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
19547
       { echo "$as_me:$LINENO: result: ok" >&5
 
19548
echo "${ECHO_T}ok" >&6; }
 
19549
   else
 
19550
       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
 
19551
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
 
19552
   { (exit 1); exit 1; }; }
 
19553
   fi
 
19554
fi
 
19555
 
 
19556
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
19557
 
 
19558
 
 
19559
# Set DATADIRNAME correctly if it is not set yet
 
19560
# (copied from glib-gettext.m4)
 
19561
if test -z "$DATADIRNAME"; then
 
19562
  cat >conftest.$ac_ext <<_ACEOF
 
19563
/* confdefs.h.  */
 
19564
_ACEOF
 
19565
cat confdefs.h >>conftest.$ac_ext
 
19566
cat >>conftest.$ac_ext <<_ACEOF
 
19567
/* end confdefs.h.  */
 
19568
 
 
19569
int
 
19570
main ()
 
19571
{
 
19572
extern int _nl_msg_cat_cntr;
 
19573
                       return _nl_msg_cat_cntr
 
19574
  ;
 
19575
  return 0;
 
19576
}
 
19577
_ACEOF
 
19578
rm -f conftest.$ac_objext conftest$ac_exeext
 
19579
if { (ac_try="$ac_link"
 
19580
case "(($ac_try" in
 
19581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19582
  *) ac_try_echo=$ac_try;;
 
19583
esac
 
19584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19585
  (eval "$ac_link") 2>conftest.er1
 
19586
  ac_status=$?
 
19587
  grep -v '^ *+' conftest.er1 >conftest.err
 
19588
  rm -f conftest.er1
 
19589
  cat conftest.err >&5
 
19590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19591
  (exit $ac_status); } && {
 
19592
         test -z "$ac_c_werror_flag" ||
 
19593
         test ! -s conftest.err
 
19594
       } && test -s conftest$ac_exeext &&
 
19595
       $as_test_x conftest$ac_exeext; then
 
19596
  DATADIRNAME=share
 
19597
else
 
19598
  echo "$as_me: failed program was:" >&5
 
19599
sed 's/^/| /' conftest.$ac_ext >&5
 
19600
 
 
19601
        case $host in
 
19602
    *-*-solaris*)
 
19603
                        { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
19604
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 
19605
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
19606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19607
else
 
19608
  cat >conftest.$ac_ext <<_ACEOF
 
19609
/* confdefs.h.  */
 
19610
_ACEOF
 
19611
cat confdefs.h >>conftest.$ac_ext
 
19612
cat >>conftest.$ac_ext <<_ACEOF
 
19613
/* end confdefs.h.  */
 
19614
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
19615
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19616
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
19617
 
 
19618
/* System header to define __stub macros and hopefully few prototypes,
 
19619
    which can conflict with char bind_textdomain_codeset (); below.
 
19620
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19621
    <limits.h> exists even on freestanding compilers.  */
 
19622
 
 
19623
#ifdef __STDC__
 
19624
# include <limits.h>
 
19625
#else
 
19626
# include <assert.h>
 
19627
#endif
 
19628
 
 
19629
#undef bind_textdomain_codeset
 
19630
 
 
19631
/* Override any GCC internal prototype to avoid an error.
 
19632
   Use char because int might match the return type of a GCC
 
19633
   builtin and then its argument prototype would still apply.  */
 
19634
#ifdef __cplusplus
 
19635
extern "C"
 
19636
#endif
 
19637
char bind_textdomain_codeset ();
 
19638
/* The GNU C library defines this for functions which it implements
 
19639
    to always fail with ENOSYS.  Some functions are actually named
 
19640
    something starting with __ and the normal name is an alias.  */
 
19641
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 
19642
choke me
 
19643
#endif
 
19644
 
 
19645
int
 
19646
main ()
 
19647
{
 
19648
return bind_textdomain_codeset ();
 
19649
  ;
 
19650
  return 0;
 
19651
}
 
19652
_ACEOF
 
19653
rm -f conftest.$ac_objext conftest$ac_exeext
 
19654
if { (ac_try="$ac_link"
 
19655
case "(($ac_try" in
 
19656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19657
  *) ac_try_echo=$ac_try;;
 
19658
esac
 
19659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19660
  (eval "$ac_link") 2>conftest.er1
 
19661
  ac_status=$?
 
19662
  grep -v '^ *+' conftest.er1 >conftest.err
 
19663
  rm -f conftest.er1
 
19664
  cat conftest.err >&5
 
19665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19666
  (exit $ac_status); } && {
 
19667
         test -z "$ac_c_werror_flag" ||
 
19668
         test ! -s conftest.err
 
19669
       } && test -s conftest$ac_exeext &&
 
19670
       $as_test_x conftest$ac_exeext; then
 
19671
  ac_cv_func_bind_textdomain_codeset=yes
 
19672
else
 
19673
  echo "$as_me: failed program was:" >&5
 
19674
sed 's/^/| /' conftest.$ac_ext >&5
 
19675
 
 
19676
        ac_cv_func_bind_textdomain_codeset=no
 
19677
fi
 
19678
 
 
19679
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19680
      conftest$ac_exeext conftest.$ac_ext
 
19681
fi
 
19682
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
19683
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 
19684
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
19685
  DATADIRNAME=share
 
19686
else
 
19687
  DATADIRNAME=lib
 
19688
fi
 
19689
 
 
19690
    ;;
 
19691
    *)
 
19692
    DATADIRNAME=lib
 
19693
    ;;
 
19694
    esac
 
19695
fi
 
19696
 
 
19697
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19698
      conftest$ac_exeext conftest.$ac_ext
 
19699
fi
 
19700
 
 
19701
 
 
19702
 
 
19703
 
 
19704
 
 
19705
ac_config_commands="$ac_config_commands intltool"
 
19706
 
 
19707
 
 
19708
 
 
19709
 
 
19710
      
 
19711
   
 
19712
for ac_header in locale.h
 
19713
do
 
19714
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19715
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19716
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19717
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19718
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19720
fi
 
19721
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19722
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19723
echo "${ECHO_T}$ac_res" >&6; }
 
19724
else
 
19725
  # Is the header compilable?
 
19726
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19727
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
19728
cat >conftest.$ac_ext <<_ACEOF
 
19729
/* confdefs.h.  */
 
19730
_ACEOF
 
19731
cat confdefs.h >>conftest.$ac_ext
 
19732
cat >>conftest.$ac_ext <<_ACEOF
 
19733
/* end confdefs.h.  */
 
19734
$ac_includes_default
 
19735
@%:@include <$ac_header>
 
19736
_ACEOF
 
19737
rm -f conftest.$ac_objext
 
19738
if { (ac_try="$ac_compile"
 
19739
case "(($ac_try" in
 
19740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19741
  *) ac_try_echo=$ac_try;;
 
19742
esac
 
19743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19744
  (eval "$ac_compile") 2>conftest.er1
 
19745
  ac_status=$?
 
19746
  grep -v '^ *+' conftest.er1 >conftest.err
 
19747
  rm -f conftest.er1
 
19748
  cat conftest.err >&5
 
19749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19750
  (exit $ac_status); } && {
 
19751
         test -z "$ac_c_werror_flag" ||
 
19752
         test ! -s conftest.err
 
19753
       } && test -s conftest.$ac_objext; then
 
19754
  ac_header_compiler=yes
 
19755
else
 
19756
  echo "$as_me: failed program was:" >&5
 
19757
sed 's/^/| /' conftest.$ac_ext >&5
 
19758
 
 
19759
        ac_header_compiler=no
 
19760
fi
 
19761
 
 
19762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19763
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19764
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19765
 
 
19766
# Is the header present?
 
19767
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19768
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
19769
cat >conftest.$ac_ext <<_ACEOF
 
19770
/* confdefs.h.  */
 
19771
_ACEOF
 
19772
cat confdefs.h >>conftest.$ac_ext
 
19773
cat >>conftest.$ac_ext <<_ACEOF
 
19774
/* end confdefs.h.  */
 
19775
@%:@include <$ac_header>
 
19776
_ACEOF
 
19777
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19778
case "(($ac_try" in
 
19779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19780
  *) ac_try_echo=$ac_try;;
 
19781
esac
 
19782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19783
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19784
  ac_status=$?
 
19785
  grep -v '^ *+' conftest.er1 >conftest.err
 
19786
  rm -f conftest.er1
 
19787
  cat conftest.err >&5
 
19788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19789
  (exit $ac_status); } >/dev/null && {
 
19790
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19791
         test ! -s conftest.err
 
19792
       }; then
 
19793
  ac_header_preproc=yes
 
19794
else
 
19795
  echo "$as_me: failed program was:" >&5
 
19796
sed 's/^/| /' conftest.$ac_ext >&5
 
19797
 
 
19798
  ac_header_preproc=no
 
19799
fi
 
19800
 
 
19801
rm -f conftest.err conftest.$ac_ext
 
19802
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19803
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
19804
 
 
19805
# So?  What about this header?
 
19806
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19807
  yes:no: )
 
19808
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19809
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19810
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19811
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19812
    ac_header_preproc=yes
 
19813
    ;;
 
19814
  no:yes:* )
 
19815
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19816
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19817
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19818
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19819
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19820
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19821
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19822
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19823
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19824
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19825
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19826
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19827
    ( cat <<\_ASBOX
 
19828
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
19829
@%:@@%:@ Report this to ChAnGFu (changfu@hollowproject.org) () @%:@@%:@
 
19830
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
19831
_ASBOX
 
19832
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
19833
    ;;
 
19834
esac
 
19835
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19836
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19837
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19839
else
 
19840
  eval "$as_ac_Header=\$ac_header_preproc"
 
19841
fi
 
19842
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19843
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19844
echo "${ECHO_T}$ac_res" >&6; }
 
19845
 
 
19846
fi
 
19847
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19848
  cat >>confdefs.h <<_ACEOF
 
19849
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19850
_ACEOF
 
19851
 
 
19852
fi
 
19853
 
 
19854
done
 
19855
 
 
19856
    if test $ac_cv_header_locale_h = yes; then
 
19857
    { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
19858
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 
19859
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
19860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19861
else
 
19862
  cat >conftest.$ac_ext <<_ACEOF
 
19863
/* confdefs.h.  */
 
19864
_ACEOF
 
19865
cat confdefs.h >>conftest.$ac_ext
 
19866
cat >>conftest.$ac_ext <<_ACEOF
 
19867
/* end confdefs.h.  */
 
19868
#include <locale.h>
 
19869
int
 
19870
main ()
 
19871
{
 
19872
return LC_MESSAGES
 
19873
  ;
 
19874
  return 0;
 
19875
}
 
19876
_ACEOF
 
19877
rm -f conftest.$ac_objext conftest$ac_exeext
 
19878
if { (ac_try="$ac_link"
 
19879
case "(($ac_try" in
 
19880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19881
  *) ac_try_echo=$ac_try;;
 
19882
esac
 
19883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19884
  (eval "$ac_link") 2>conftest.er1
 
19885
  ac_status=$?
 
19886
  grep -v '^ *+' conftest.er1 >conftest.err
 
19887
  rm -f conftest.er1
 
19888
  cat conftest.err >&5
 
19889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19890
  (exit $ac_status); } && {
 
19891
         test -z "$ac_c_werror_flag" ||
 
19892
         test ! -s conftest.err
 
19893
       } && test -s conftest$ac_exeext &&
 
19894
       $as_test_x conftest$ac_exeext; then
 
19895
  am_cv_val_LC_MESSAGES=yes
 
19896
else
 
19897
  echo "$as_me: failed program was:" >&5
 
19898
sed 's/^/| /' conftest.$ac_ext >&5
 
19899
 
 
19900
        am_cv_val_LC_MESSAGES=no
 
19901
fi
 
19902
 
 
19903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19904
      conftest$ac_exeext conftest.$ac_ext
 
19905
fi
 
19906
{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
19907
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 
19908
    if test $am_cv_val_LC_MESSAGES = yes; then
 
19909
      
 
19910
cat >>confdefs.h <<\_ACEOF
 
19911
@%:@define HAVE_LC_MESSAGES 1
 
19912
_ACEOF
 
19913
 
 
19914
    fi
 
19915
  fi
 
19916
         USE_NLS=yes
 
19917
    
 
19918
 
 
19919
    gt_cv_have_gettext=no
 
19920
 
 
19921
    CATOBJEXT=NONE
 
19922
    XGETTEXT=:
 
19923
    INTLLIBS=
 
19924
 
 
19925
    if test "${ac_cv_header_libintl_h+set}" = set; then
 
19926
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
 
19927
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
19928
if test "${ac_cv_header_libintl_h+set}" = set; then
 
19929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19930
fi
 
19931
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
19932
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
19933
else
 
19934
  # Is the header compilable?
 
19935
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
19936
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 
19937
cat >conftest.$ac_ext <<_ACEOF
 
19938
/* confdefs.h.  */
 
19939
_ACEOF
 
19940
cat confdefs.h >>conftest.$ac_ext
 
19941
cat >>conftest.$ac_ext <<_ACEOF
 
19942
/* end confdefs.h.  */
 
19943
$ac_includes_default
 
19944
@%:@include <libintl.h>
 
19945
_ACEOF
 
19946
rm -f conftest.$ac_objext
 
19947
if { (ac_try="$ac_compile"
 
19948
case "(($ac_try" in
 
19949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19950
  *) ac_try_echo=$ac_try;;
 
19951
esac
 
19952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19953
  (eval "$ac_compile") 2>conftest.er1
 
19954
  ac_status=$?
 
19955
  grep -v '^ *+' conftest.er1 >conftest.err
 
19956
  rm -f conftest.er1
 
19957
  cat conftest.err >&5
 
19958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19959
  (exit $ac_status); } && {
 
19960
         test -z "$ac_c_werror_flag" ||
 
19961
         test ! -s conftest.err
 
19962
       } && test -s conftest.$ac_objext; then
 
19963
  ac_header_compiler=yes
 
19964
else
 
19965
  echo "$as_me: failed program was:" >&5
 
19966
sed 's/^/| /' conftest.$ac_ext >&5
 
19967
 
 
19968
        ac_header_compiler=no
 
19969
fi
 
19970
 
 
19971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19972
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19973
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19974
 
 
19975
# Is the header present?
 
19976
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
19977
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 
19978
cat >conftest.$ac_ext <<_ACEOF
 
19979
/* confdefs.h.  */
 
19980
_ACEOF
 
19981
cat confdefs.h >>conftest.$ac_ext
 
19982
cat >>conftest.$ac_ext <<_ACEOF
 
19983
/* end confdefs.h.  */
 
19984
@%:@include <libintl.h>
 
19985
_ACEOF
 
19986
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19987
case "(($ac_try" in
 
19988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19989
  *) ac_try_echo=$ac_try;;
 
19990
esac
 
19991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19992
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19993
  ac_status=$?
 
19994
  grep -v '^ *+' conftest.er1 >conftest.err
 
19995
  rm -f conftest.er1
 
19996
  cat conftest.err >&5
 
19997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19998
  (exit $ac_status); } >/dev/null && {
 
19999
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20000
         test ! -s conftest.err
 
20001
       }; then
 
20002
  ac_header_preproc=yes
 
20003
else
 
20004
  echo "$as_me: failed program was:" >&5
 
20005
sed 's/^/| /' conftest.$ac_ext >&5
 
20006
 
 
20007
  ac_header_preproc=no
 
20008
fi
 
20009
 
 
20010
rm -f conftest.err conftest.$ac_ext
 
20011
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20012
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20013
 
 
20014
# So?  What about this header?
 
20015
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20016
  yes:no: )
 
20017
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20018
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20019
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
20020
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
20021
    ac_header_preproc=yes
 
20022
    ;;
 
20023
  no:yes:* )
 
20024
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
20025
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
20026
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
20027
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
20028
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
20029
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
20030
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20031
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20032
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
20033
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
20034
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
20035
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
20036
    ( cat <<\_ASBOX
 
20037
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
20038
@%:@@%:@ Report this to ChAnGFu (changfu@hollowproject.org) () @%:@@%:@
 
20039
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
20040
_ASBOX
 
20041
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20042
    ;;
 
20043
esac
 
20044
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
 
20045
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
20046
if test "${ac_cv_header_libintl_h+set}" = set; then
 
20047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20048
else
 
20049
  ac_cv_header_libintl_h=$ac_header_preproc
 
20050
fi
 
20051
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
20052
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
20053
 
 
20054
fi
 
20055
if test $ac_cv_header_libintl_h = yes; then
 
20056
  gt_cv_func_dgettext_libintl="no"
 
20057
      libintl_extra_libs=""
 
20058
 
 
20059
      #
 
20060
      # First check in libc
 
20061
      #
 
20062
      { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 
20063
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 
20064
if test "${gt_cv_func_ngettext_libc+set}" = set; then
 
20065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20066
else
 
20067
  cat >conftest.$ac_ext <<_ACEOF
 
20068
/* confdefs.h.  */
 
20069
_ACEOF
 
20070
cat confdefs.h >>conftest.$ac_ext
 
20071
cat >>conftest.$ac_ext <<_ACEOF
 
20072
/* end confdefs.h.  */
 
20073
 
 
20074
#include <libintl.h>
 
20075
 
 
20076
int
 
20077
main ()
 
20078
{
 
20079
return !ngettext ("","", 1)
 
20080
  ;
 
20081
  return 0;
 
20082
}
 
20083
_ACEOF
 
20084
rm -f conftest.$ac_objext conftest$ac_exeext
 
20085
if { (ac_try="$ac_link"
 
20086
case "(($ac_try" in
 
20087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20088
  *) ac_try_echo=$ac_try;;
 
20089
esac
 
20090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20091
  (eval "$ac_link") 2>conftest.er1
 
20092
  ac_status=$?
 
20093
  grep -v '^ *+' conftest.er1 >conftest.err
 
20094
  rm -f conftest.er1
 
20095
  cat conftest.err >&5
 
20096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20097
  (exit $ac_status); } && {
 
20098
         test -z "$ac_c_werror_flag" ||
 
20099
         test ! -s conftest.err
 
20100
       } && test -s conftest$ac_exeext &&
 
20101
       $as_test_x conftest$ac_exeext; then
 
20102
  gt_cv_func_ngettext_libc=yes
 
20103
else
 
20104
  echo "$as_me: failed program was:" >&5
 
20105
sed 's/^/| /' conftest.$ac_ext >&5
 
20106
 
 
20107
        gt_cv_func_ngettext_libc=no
 
20108
fi
 
20109
 
 
20110
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20111
      conftest$ac_exeext conftest.$ac_ext
 
20112
        
 
20113
fi
 
20114
{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 
20115
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 
20116
  
 
20117
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
20118
              { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 
20119
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 
20120
if test "${gt_cv_func_dgettext_libc+set}" = set; then
 
20121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20122
else
 
20123
  cat >conftest.$ac_ext <<_ACEOF
 
20124
/* confdefs.h.  */
 
20125
_ACEOF
 
20126
cat confdefs.h >>conftest.$ac_ext
 
20127
cat >>conftest.$ac_ext <<_ACEOF
 
20128
/* end confdefs.h.  */
 
20129
 
 
20130
#include <libintl.h>
 
20131
 
 
20132
int
 
20133
main ()
 
20134
{
 
20135
return !dgettext ("","")
 
20136
  ;
 
20137
  return 0;
 
20138
}
 
20139
_ACEOF
 
20140
rm -f conftest.$ac_objext conftest$ac_exeext
 
20141
if { (ac_try="$ac_link"
 
20142
case "(($ac_try" in
 
20143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20144
  *) ac_try_echo=$ac_try;;
 
20145
esac
 
20146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20147
  (eval "$ac_link") 2>conftest.er1
 
20148
  ac_status=$?
 
20149
  grep -v '^ *+' conftest.er1 >conftest.err
 
20150
  rm -f conftest.er1
 
20151
  cat conftest.err >&5
 
20152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20153
  (exit $ac_status); } && {
 
20154
         test -z "$ac_c_werror_flag" ||
 
20155
         test ! -s conftest.err
 
20156
       } && test -s conftest$ac_exeext &&
 
20157
       $as_test_x conftest$ac_exeext; then
 
20158
  gt_cv_func_dgettext_libc=yes
 
20159
else
 
20160
  echo "$as_me: failed program was:" >&5
 
20161
sed 's/^/| /' conftest.$ac_ext >&5
 
20162
 
 
20163
        gt_cv_func_dgettext_libc=no
 
20164
fi
 
20165
 
 
20166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20167
      conftest$ac_exeext conftest.$ac_ext
 
20168
                
 
20169
fi
 
20170
{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 
20171
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 
20172
      fi
 
20173
  
 
20174
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
20175
        
 
20176
for ac_func in bind_textdomain_codeset
 
20177
do
 
20178
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20179
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20180
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20181
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
20182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20183
else
 
20184
  cat >conftest.$ac_ext <<_ACEOF
 
20185
/* confdefs.h.  */
 
20186
_ACEOF
 
20187
cat confdefs.h >>conftest.$ac_ext
 
20188
cat >>conftest.$ac_ext <<_ACEOF
 
20189
/* end confdefs.h.  */
 
20190
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20191
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20192
#define $ac_func innocuous_$ac_func
 
20193
 
 
20194
/* System header to define __stub macros and hopefully few prototypes,
 
20195
    which can conflict with char $ac_func (); below.
 
20196
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20197
    <limits.h> exists even on freestanding compilers.  */
 
20198
 
 
20199
#ifdef __STDC__
 
20200
# include <limits.h>
 
20201
#else
 
20202
# include <assert.h>
 
20203
#endif
 
20204
 
 
20205
#undef $ac_func
 
20206
 
 
20207
/* Override any GCC internal prototype to avoid an error.
 
20208
   Use char because int might match the return type of a GCC
 
20209
   builtin and then its argument prototype would still apply.  */
 
20210
#ifdef __cplusplus
 
20211
extern "C"
 
20212
#endif
 
20213
char $ac_func ();
 
20214
/* The GNU C library defines this for functions which it implements
 
20215
    to always fail with ENOSYS.  Some functions are actually named
 
20216
    something starting with __ and the normal name is an alias.  */
 
20217
#if defined __stub_$ac_func || defined __stub___$ac_func
 
20218
choke me
 
20219
#endif
 
20220
 
 
20221
int
 
20222
main ()
 
20223
{
 
20224
return $ac_func ();
 
20225
  ;
 
20226
  return 0;
 
20227
}
 
20228
_ACEOF
 
20229
rm -f conftest.$ac_objext conftest$ac_exeext
 
20230
if { (ac_try="$ac_link"
 
20231
case "(($ac_try" in
 
20232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20233
  *) ac_try_echo=$ac_try;;
 
20234
esac
 
20235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20236
  (eval "$ac_link") 2>conftest.er1
 
20237
  ac_status=$?
 
20238
  grep -v '^ *+' conftest.er1 >conftest.err
 
20239
  rm -f conftest.er1
 
20240
  cat conftest.err >&5
 
20241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20242
  (exit $ac_status); } && {
 
20243
         test -z "$ac_c_werror_flag" ||
 
20244
         test ! -s conftest.err
 
20245
       } && test -s conftest$ac_exeext &&
 
20246
       $as_test_x conftest$ac_exeext; then
 
20247
  eval "$as_ac_var=yes"
 
20248
else
 
20249
  echo "$as_me: failed program was:" >&5
 
20250
sed 's/^/| /' conftest.$ac_ext >&5
 
20251
 
 
20252
        eval "$as_ac_var=no"
 
20253
fi
 
20254
 
 
20255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20256
      conftest$ac_exeext conftest.$ac_ext
 
20257
fi
 
20258
ac_res=`eval echo '${'$as_ac_var'}'`
 
20259
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20260
echo "${ECHO_T}$ac_res" >&6; }
 
20261
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20262
  cat >>confdefs.h <<_ACEOF
 
20263
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20264
_ACEOF
 
20265
 
 
20266
fi
 
20267
done
 
20268
 
 
20269
      fi
 
20270
 
 
20271
      #
 
20272
      # If we don't have everything we want, check in libintl
 
20273
      #
 
20274
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
20275
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
20276
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
20277
        
 
20278
        { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 
20279
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 
20280
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 
20281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20282
else
 
20283
  ac_check_lib_save_LIBS=$LIBS
 
20284
LIBS="-lintl  $LIBS"
 
20285
cat >conftest.$ac_ext <<_ACEOF
 
20286
/* confdefs.h.  */
 
20287
_ACEOF
 
20288
cat confdefs.h >>conftest.$ac_ext
 
20289
cat >>conftest.$ac_ext <<_ACEOF
 
20290
/* end confdefs.h.  */
 
20291
 
 
20292
/* Override any GCC internal prototype to avoid an error.
 
20293
   Use char because int might match the return type of a GCC
 
20294
   builtin and then its argument prototype would still apply.  */
 
20295
#ifdef __cplusplus
 
20296
extern "C"
 
20297
#endif
 
20298
char bindtextdomain ();
 
20299
int
 
20300
main ()
 
20301
{
 
20302
return bindtextdomain ();
 
20303
  ;
 
20304
  return 0;
 
20305
}
 
20306
_ACEOF
 
20307
rm -f conftest.$ac_objext conftest$ac_exeext
 
20308
if { (ac_try="$ac_link"
 
20309
case "(($ac_try" in
 
20310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20311
  *) ac_try_echo=$ac_try;;
 
20312
esac
 
20313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20314
  (eval "$ac_link") 2>conftest.er1
 
20315
  ac_status=$?
 
20316
  grep -v '^ *+' conftest.er1 >conftest.err
 
20317
  rm -f conftest.er1
 
20318
  cat conftest.err >&5
 
20319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20320
  (exit $ac_status); } && {
 
20321
         test -z "$ac_c_werror_flag" ||
 
20322
         test ! -s conftest.err
 
20323
       } && test -s conftest$ac_exeext &&
 
20324
       $as_test_x conftest$ac_exeext; then
 
20325
  ac_cv_lib_intl_bindtextdomain=yes
 
20326
else
 
20327
  echo "$as_me: failed program was:" >&5
 
20328
sed 's/^/| /' conftest.$ac_ext >&5
 
20329
 
 
20330
        ac_cv_lib_intl_bindtextdomain=no
 
20331
fi
 
20332
 
 
20333
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20334
      conftest$ac_exeext conftest.$ac_ext
 
20335
LIBS=$ac_check_lib_save_LIBS
 
20336
fi
 
20337
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
20338
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 
20339
if test $ac_cv_lib_intl_bindtextdomain = yes; then
 
20340
  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
20341
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 
20342
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
20343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20344
else
 
20345
  ac_check_lib_save_LIBS=$LIBS
 
20346
LIBS="-lintl  $LIBS"
 
20347
cat >conftest.$ac_ext <<_ACEOF
 
20348
/* confdefs.h.  */
 
20349
_ACEOF
 
20350
cat confdefs.h >>conftest.$ac_ext
 
20351
cat >>conftest.$ac_ext <<_ACEOF
 
20352
/* end confdefs.h.  */
 
20353
 
 
20354
/* Override any GCC internal prototype to avoid an error.
 
20355
   Use char because int might match the return type of a GCC
 
20356
   builtin and then its argument prototype would still apply.  */
 
20357
#ifdef __cplusplus
 
20358
extern "C"
 
20359
#endif
 
20360
char ngettext ();
 
20361
int
 
20362
main ()
 
20363
{
 
20364
return ngettext ();
 
20365
  ;
 
20366
  return 0;
 
20367
}
 
20368
_ACEOF
 
20369
rm -f conftest.$ac_objext conftest$ac_exeext
 
20370
if { (ac_try="$ac_link"
 
20371
case "(($ac_try" in
 
20372
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20373
  *) ac_try_echo=$ac_try;;
 
20374
esac
 
20375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20376
  (eval "$ac_link") 2>conftest.er1
 
20377
  ac_status=$?
 
20378
  grep -v '^ *+' conftest.er1 >conftest.err
 
20379
  rm -f conftest.er1
 
20380
  cat conftest.err >&5
 
20381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20382
  (exit $ac_status); } && {
 
20383
         test -z "$ac_c_werror_flag" ||
 
20384
         test ! -s conftest.err
 
20385
       } && test -s conftest$ac_exeext &&
 
20386
       $as_test_x conftest$ac_exeext; then
 
20387
  ac_cv_lib_intl_ngettext=yes
 
20388
else
 
20389
  echo "$as_me: failed program was:" >&5
 
20390
sed 's/^/| /' conftest.$ac_ext >&5
 
20391
 
 
20392
        ac_cv_lib_intl_ngettext=no
 
20393
fi
 
20394
 
 
20395
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20396
      conftest$ac_exeext conftest.$ac_ext
 
20397
LIBS=$ac_check_lib_save_LIBS
 
20398
fi
 
20399
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
20400
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 
20401
if test $ac_cv_lib_intl_ngettext = yes; then
 
20402
  { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 
20403
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 
20404
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 
20405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20406
else
 
20407
  ac_check_lib_save_LIBS=$LIBS
 
20408
LIBS="-lintl  $LIBS"
 
20409
cat >conftest.$ac_ext <<_ACEOF
 
20410
/* confdefs.h.  */
 
20411
_ACEOF
 
20412
cat confdefs.h >>conftest.$ac_ext
 
20413
cat >>conftest.$ac_ext <<_ACEOF
 
20414
/* end confdefs.h.  */
 
20415
 
 
20416
/* Override any GCC internal prototype to avoid an error.
 
20417
   Use char because int might match the return type of a GCC
 
20418
   builtin and then its argument prototype would still apply.  */
 
20419
#ifdef __cplusplus
 
20420
extern "C"
 
20421
#endif
 
20422
char dgettext ();
 
20423
int
 
20424
main ()
 
20425
{
 
20426
return dgettext ();
 
20427
  ;
 
20428
  return 0;
 
20429
}
 
20430
_ACEOF
 
20431
rm -f conftest.$ac_objext conftest$ac_exeext
 
20432
if { (ac_try="$ac_link"
 
20433
case "(($ac_try" in
 
20434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20435
  *) ac_try_echo=$ac_try;;
 
20436
esac
 
20437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20438
  (eval "$ac_link") 2>conftest.er1
 
20439
  ac_status=$?
 
20440
  grep -v '^ *+' conftest.er1 >conftest.err
 
20441
  rm -f conftest.er1
 
20442
  cat conftest.err >&5
 
20443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20444
  (exit $ac_status); } && {
 
20445
         test -z "$ac_c_werror_flag" ||
 
20446
         test ! -s conftest.err
 
20447
       } && test -s conftest$ac_exeext &&
 
20448
       $as_test_x conftest$ac_exeext; then
 
20449
  ac_cv_lib_intl_dgettext=yes
 
20450
else
 
20451
  echo "$as_me: failed program was:" >&5
 
20452
sed 's/^/| /' conftest.$ac_ext >&5
 
20453
 
 
20454
        ac_cv_lib_intl_dgettext=no
 
20455
fi
 
20456
 
 
20457
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20458
      conftest$ac_exeext conftest.$ac_ext
 
20459
LIBS=$ac_check_lib_save_LIBS
 
20460
fi
 
20461
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 
20462
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 
20463
if test $ac_cv_lib_intl_dgettext = yes; then
 
20464
  gt_cv_func_dgettext_libintl=yes
 
20465
fi
 
20466
 
 
20467
fi
 
20468
 
 
20469
fi
 
20470
 
 
20471
 
 
20472
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
20473
          { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 
20474
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 
20475
          { echo "$as_me:$LINENO: result: " >&5
 
20476
echo "${ECHO_T}" >&6; }
 
20477
          { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
20478
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 
20479
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
20480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20481
else
 
20482
  ac_check_lib_save_LIBS=$LIBS
 
20483
LIBS="-lintl -liconv $LIBS"
 
20484
cat >conftest.$ac_ext <<_ACEOF
 
20485
/* confdefs.h.  */
 
20486
_ACEOF
 
20487
cat confdefs.h >>conftest.$ac_ext
 
20488
cat >>conftest.$ac_ext <<_ACEOF
 
20489
/* end confdefs.h.  */
 
20490
 
 
20491
/* Override any GCC internal prototype to avoid an error.
 
20492
   Use char because int might match the return type of a GCC
 
20493
   builtin and then its argument prototype would still apply.  */
 
20494
#ifdef __cplusplus
 
20495
extern "C"
 
20496
#endif
 
20497
char ngettext ();
 
20498
int
 
20499
main ()
 
20500
{
 
20501
return ngettext ();
 
20502
  ;
 
20503
  return 0;
 
20504
}
 
20505
_ACEOF
 
20506
rm -f conftest.$ac_objext conftest$ac_exeext
 
20507
if { (ac_try="$ac_link"
 
20508
case "(($ac_try" in
 
20509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20510
  *) ac_try_echo=$ac_try;;
 
20511
esac
 
20512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20513
  (eval "$ac_link") 2>conftest.er1
 
20514
  ac_status=$?
 
20515
  grep -v '^ *+' conftest.er1 >conftest.err
 
20516
  rm -f conftest.er1
 
20517
  cat conftest.err >&5
 
20518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20519
  (exit $ac_status); } && {
 
20520
         test -z "$ac_c_werror_flag" ||
 
20521
         test ! -s conftest.err
 
20522
       } && test -s conftest$ac_exeext &&
 
20523
       $as_test_x conftest$ac_exeext; then
 
20524
  ac_cv_lib_intl_ngettext=yes
 
20525
else
 
20526
  echo "$as_me: failed program was:" >&5
 
20527
sed 's/^/| /' conftest.$ac_ext >&5
 
20528
 
 
20529
        ac_cv_lib_intl_ngettext=no
 
20530
fi
 
20531
 
 
20532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20533
      conftest$ac_exeext conftest.$ac_ext
 
20534
LIBS=$ac_check_lib_save_LIBS
 
20535
fi
 
20536
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
20537
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 
20538
if test $ac_cv_lib_intl_ngettext = yes; then
 
20539
  { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
20540
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 
20541
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 
20542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20543
else
 
20544
  ac_check_lib_save_LIBS=$LIBS
 
20545
LIBS="-lintl -liconv $LIBS"
 
20546
cat >conftest.$ac_ext <<_ACEOF
 
20547
/* confdefs.h.  */
 
20548
_ACEOF
 
20549
cat confdefs.h >>conftest.$ac_ext
 
20550
cat >>conftest.$ac_ext <<_ACEOF
 
20551
/* end confdefs.h.  */
 
20552
 
 
20553
/* Override any GCC internal prototype to avoid an error.
 
20554
   Use char because int might match the return type of a GCC
 
20555
   builtin and then its argument prototype would still apply.  */
 
20556
#ifdef __cplusplus
 
20557
extern "C"
 
20558
#endif
 
20559
char dcgettext ();
 
20560
int
 
20561
main ()
 
20562
{
 
20563
return dcgettext ();
 
20564
  ;
 
20565
  return 0;
 
20566
}
 
20567
_ACEOF
 
20568
rm -f conftest.$ac_objext conftest$ac_exeext
 
20569
if { (ac_try="$ac_link"
 
20570
case "(($ac_try" in
 
20571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20572
  *) ac_try_echo=$ac_try;;
 
20573
esac
 
20574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20575
  (eval "$ac_link") 2>conftest.er1
 
20576
  ac_status=$?
 
20577
  grep -v '^ *+' conftest.er1 >conftest.err
 
20578
  rm -f conftest.er1
 
20579
  cat conftest.err >&5
 
20580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20581
  (exit $ac_status); } && {
 
20582
         test -z "$ac_c_werror_flag" ||
 
20583
         test ! -s conftest.err
 
20584
       } && test -s conftest$ac_exeext &&
 
20585
       $as_test_x conftest$ac_exeext; then
 
20586
  ac_cv_lib_intl_dcgettext=yes
 
20587
else
 
20588
  echo "$as_me: failed program was:" >&5
 
20589
sed 's/^/| /' conftest.$ac_ext >&5
 
20590
 
 
20591
        ac_cv_lib_intl_dcgettext=no
 
20592
fi
 
20593
 
 
20594
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20595
      conftest$ac_exeext conftest.$ac_ext
 
20596
LIBS=$ac_check_lib_save_LIBS
 
20597
fi
 
20598
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 
20599
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 
20600
if test $ac_cv_lib_intl_dcgettext = yes; then
 
20601
  gt_cv_func_dgettext_libintl=yes
 
20602
                        libintl_extra_libs=-liconv
 
20603
else
 
20604
  :
 
20605
fi
 
20606
 
 
20607
else
 
20608
  :
 
20609
fi
 
20610
 
 
20611
        fi
 
20612
 
 
20613
        #
 
20614
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
20615
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
20616
        # and both have dgettext and ngettext
 
20617
        #
 
20618
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
20619
          glib_save_LIBS="$LIBS"
 
20620
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
20621
          unset ac_cv_func_bind_textdomain_codeset
 
20622
          
 
20623
for ac_func in bind_textdomain_codeset
 
20624
do
 
20625
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20626
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20627
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20628
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
20629
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20630
else
 
20631
  cat >conftest.$ac_ext <<_ACEOF
 
20632
/* confdefs.h.  */
 
20633
_ACEOF
 
20634
cat confdefs.h >>conftest.$ac_ext
 
20635
cat >>conftest.$ac_ext <<_ACEOF
 
20636
/* end confdefs.h.  */
 
20637
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20638
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20639
#define $ac_func innocuous_$ac_func
 
20640
 
 
20641
/* System header to define __stub macros and hopefully few prototypes,
 
20642
    which can conflict with char $ac_func (); below.
 
20643
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20644
    <limits.h> exists even on freestanding compilers.  */
 
20645
 
 
20646
#ifdef __STDC__
 
20647
# include <limits.h>
 
20648
#else
 
20649
# include <assert.h>
 
20650
#endif
 
20651
 
 
20652
#undef $ac_func
 
20653
 
 
20654
/* Override any GCC internal prototype to avoid an error.
 
20655
   Use char because int might match the return type of a GCC
 
20656
   builtin and then its argument prototype would still apply.  */
 
20657
#ifdef __cplusplus
 
20658
extern "C"
 
20659
#endif
 
20660
char $ac_func ();
 
20661
/* The GNU C library defines this for functions which it implements
 
20662
    to always fail with ENOSYS.  Some functions are actually named
 
20663
    something starting with __ and the normal name is an alias.  */
 
20664
#if defined __stub_$ac_func || defined __stub___$ac_func
 
20665
choke me
 
20666
#endif
 
20667
 
 
20668
int
 
20669
main ()
 
20670
{
 
20671
return $ac_func ();
 
20672
  ;
 
20673
  return 0;
 
20674
}
 
20675
_ACEOF
 
20676
rm -f conftest.$ac_objext conftest$ac_exeext
 
20677
if { (ac_try="$ac_link"
 
20678
case "(($ac_try" in
 
20679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20680
  *) ac_try_echo=$ac_try;;
 
20681
esac
 
20682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20683
  (eval "$ac_link") 2>conftest.er1
 
20684
  ac_status=$?
 
20685
  grep -v '^ *+' conftest.er1 >conftest.err
 
20686
  rm -f conftest.er1
 
20687
  cat conftest.err >&5
 
20688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20689
  (exit $ac_status); } && {
 
20690
         test -z "$ac_c_werror_flag" ||
 
20691
         test ! -s conftest.err
 
20692
       } && test -s conftest$ac_exeext &&
 
20693
       $as_test_x conftest$ac_exeext; then
 
20694
  eval "$as_ac_var=yes"
 
20695
else
 
20696
  echo "$as_me: failed program was:" >&5
 
20697
sed 's/^/| /' conftest.$ac_ext >&5
 
20698
 
 
20699
        eval "$as_ac_var=no"
 
20700
fi
 
20701
 
 
20702
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20703
      conftest$ac_exeext conftest.$ac_ext
 
20704
fi
 
20705
ac_res=`eval echo '${'$as_ac_var'}'`
 
20706
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20707
echo "${ECHO_T}$ac_res" >&6; }
 
20708
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20709
  cat >>confdefs.h <<_ACEOF
 
20710
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20711
_ACEOF
 
20712
 
 
20713
fi
 
20714
done
 
20715
 
 
20716
          LIBS="$glib_save_LIBS"
 
20717
 
 
20718
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
20719
            gt_cv_func_dgettext_libc=no
 
20720
          else
 
20721
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
20722
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
20723
              gt_cv_func_dgettext_libintl=no
 
20724
            fi
 
20725
          fi
 
20726
        fi
 
20727
      fi
 
20728
 
 
20729
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
20730
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
20731
        gt_cv_have_gettext=yes
 
20732
      fi
 
20733
  
 
20734
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
20735
        INTLLIBS="-lintl $libintl_extra_libs"
 
20736
      fi
 
20737
  
 
20738
      if test "$gt_cv_have_gettext" = "yes"; then
 
20739
        
 
20740
cat >>confdefs.h <<\_ACEOF
 
20741
@%:@define HAVE_GETTEXT 1
 
20742
_ACEOF
 
20743
 
 
20744
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
20745
set dummy msgfmt; ac_word=$2
 
20746
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20748
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
20749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20750
else
 
20751
  case "$MSGFMT" in
 
20752
  /*)
 
20753
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
20754
  ;;
 
20755
  *)
 
20756
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
20757
  for ac_dir in $PATH; do
 
20758
    test -z "$ac_dir" && ac_dir=.
 
20759
    if test -f $ac_dir/$ac_word; then
 
20760
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
20761
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
20762
        break
 
20763
      fi
 
20764
    fi
 
20765
  done
 
20766
  IFS="$ac_save_ifs"
 
20767
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
20768
  ;;
 
20769
esac
 
20770
fi
 
20771
MSGFMT="$ac_cv_path_MSGFMT"
 
20772
if test "$MSGFMT" != "no"; then
 
20773
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
20774
echo "${ECHO_T}$MSGFMT" >&6; }
 
20775
else
 
20776
  { echo "$as_me:$LINENO: result: no" >&5
 
20777
echo "${ECHO_T}no" >&6; }
 
20778
fi
 
20779
        if test "$MSGFMT" != "no"; then
 
20780
          glib_save_LIBS="$LIBS"
 
20781
          LIBS="$LIBS $INTLLIBS"
 
20782
          
 
20783
for ac_func in dcgettext
 
20784
do
 
20785
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20786
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20787
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20788
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
20789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20790
else
 
20791
  cat >conftest.$ac_ext <<_ACEOF
 
20792
/* confdefs.h.  */
 
20793
_ACEOF
 
20794
cat confdefs.h >>conftest.$ac_ext
 
20795
cat >>conftest.$ac_ext <<_ACEOF
 
20796
/* end confdefs.h.  */
 
20797
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20798
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20799
#define $ac_func innocuous_$ac_func
 
20800
 
 
20801
/* System header to define __stub macros and hopefully few prototypes,
 
20802
    which can conflict with char $ac_func (); below.
 
20803
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20804
    <limits.h> exists even on freestanding compilers.  */
 
20805
 
 
20806
#ifdef __STDC__
 
20807
# include <limits.h>
 
20808
#else
 
20809
# include <assert.h>
 
20810
#endif
 
20811
 
 
20812
#undef $ac_func
 
20813
 
 
20814
/* Override any GCC internal prototype to avoid an error.
 
20815
   Use char because int might match the return type of a GCC
 
20816
   builtin and then its argument prototype would still apply.  */
 
20817
#ifdef __cplusplus
 
20818
extern "C"
 
20819
#endif
 
20820
char $ac_func ();
 
20821
/* The GNU C library defines this for functions which it implements
 
20822
    to always fail with ENOSYS.  Some functions are actually named
 
20823
    something starting with __ and the normal name is an alias.  */
 
20824
#if defined __stub_$ac_func || defined __stub___$ac_func
 
20825
choke me
 
20826
#endif
 
20827
 
 
20828
int
 
20829
main ()
 
20830
{
 
20831
return $ac_func ();
 
20832
  ;
 
20833
  return 0;
 
20834
}
 
20835
_ACEOF
 
20836
rm -f conftest.$ac_objext conftest$ac_exeext
 
20837
if { (ac_try="$ac_link"
 
20838
case "(($ac_try" in
 
20839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20840
  *) ac_try_echo=$ac_try;;
 
20841
esac
 
20842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20843
  (eval "$ac_link") 2>conftest.er1
 
20844
  ac_status=$?
 
20845
  grep -v '^ *+' conftest.er1 >conftest.err
 
20846
  rm -f conftest.er1
 
20847
  cat conftest.err >&5
 
20848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20849
  (exit $ac_status); } && {
 
20850
         test -z "$ac_c_werror_flag" ||
 
20851
         test ! -s conftest.err
 
20852
       } && test -s conftest$ac_exeext &&
 
20853
       $as_test_x conftest$ac_exeext; then
 
20854
  eval "$as_ac_var=yes"
 
20855
else
 
20856
  echo "$as_me: failed program was:" >&5
 
20857
sed 's/^/| /' conftest.$ac_ext >&5
 
20858
 
 
20859
        eval "$as_ac_var=no"
 
20860
fi
 
20861
 
 
20862
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20863
      conftest$ac_exeext conftest.$ac_ext
 
20864
fi
 
20865
ac_res=`eval echo '${'$as_ac_var'}'`
 
20866
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20867
echo "${ECHO_T}$ac_res" >&6; }
 
20868
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20869
  cat >>confdefs.h <<_ACEOF
 
20870
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20871
_ACEOF
 
20872
 
 
20873
fi
 
20874
done
 
20875
 
 
20876
          MSGFMT_OPTS=
 
20877
          { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 
20878
echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 
20879
          cat >conftest.foo <<_ACEOF
 
20880
 
 
20881
msgid ""
 
20882
msgstr ""
 
20883
"Content-Type: text/plain; charset=UTF-8\n"
 
20884
"Project-Id-Version: test 1.0\n"
 
20885
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
20886
"Last-Translator: test <foo@bar.xx>\n"
 
20887
"Language-Team: C <LL@li.org>\n"
 
20888
"MIME-Version: 1.0\n"
 
20889
"Content-Transfer-Encoding: 8bit\n"
 
20890
 
 
20891
_ACEOF
 
20892
if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 
20893
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 
20894
  ac_status=$?
 
20895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20896
  (exit $ac_status); }; then
 
20897
  MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 
20898
echo "${ECHO_T}yes" >&6; }
 
20899
else { echo "$as_me:$LINENO: result: no" >&5
 
20900
echo "${ECHO_T}no" >&6; }
 
20901
echo "$as_me: failed input was:" >&5
 
20902
sed 's/^/| /' conftest.foo >&5
 
20903
fi
 
20904
          
 
20905
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
20906
set dummy gmsgfmt; ac_word=$2
 
20907
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20908
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20909
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
20910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20911
else
 
20912
  case $GMSGFMT in
 
20913
  [\\/]* | ?:[\\/]*)
 
20914
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
20915
  ;;
 
20916
  *)
 
20917
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20918
for as_dir in $PATH
 
20919
do
 
20920
  IFS=$as_save_IFS
 
20921
  test -z "$as_dir" && as_dir=.
 
20922
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20923
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20924
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
20925
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20926
    break 2
 
20927
  fi
 
20928
done
 
20929
done
 
20930
IFS=$as_save_IFS
 
20931
 
 
20932
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
20933
  ;;
 
20934
esac
 
20935
fi
 
20936
GMSGFMT=$ac_cv_path_GMSGFMT
 
20937
if test -n "$GMSGFMT"; then
 
20938
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
20939
echo "${ECHO_T}$GMSGFMT" >&6; }
 
20940
else
 
20941
  { echo "$as_me:$LINENO: result: no" >&5
 
20942
echo "${ECHO_T}no" >&6; }
 
20943
fi
 
20944
 
 
20945
 
 
20946
          # Extract the first word of "xgettext", so it can be a program name with args.
 
20947
set dummy xgettext; ac_word=$2
 
20948
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20949
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20950
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
20951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20952
else
 
20953
  case "$XGETTEXT" in
 
20954
  /*)
 
20955
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
20956
  ;;
 
20957
  *)
 
20958
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
20959
  for ac_dir in $PATH; do
 
20960
    test -z "$ac_dir" && ac_dir=.
 
20961
    if test -f $ac_dir/$ac_word; then
 
20962
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
20963
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
20964
        break
 
20965
      fi
 
20966
    fi
 
20967
  done
 
20968
  IFS="$ac_save_ifs"
 
20969
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
20970
  ;;
 
20971
esac
 
20972
fi
 
20973
XGETTEXT="$ac_cv_path_XGETTEXT"
 
20974
if test "$XGETTEXT" != ":"; then
 
20975
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
20976
echo "${ECHO_T}$XGETTEXT" >&6; }
 
20977
else
 
20978
  { echo "$as_me:$LINENO: result: no" >&5
 
20979
echo "${ECHO_T}no" >&6; }
 
20980
fi
 
20981
 
 
20982
          cat >conftest.$ac_ext <<_ACEOF
 
20983
/* confdefs.h.  */
 
20984
_ACEOF
 
20985
cat confdefs.h >>conftest.$ac_ext
 
20986
cat >>conftest.$ac_ext <<_ACEOF
 
20987
/* end confdefs.h.  */
 
20988
 
 
20989
int
 
20990
main ()
 
20991
{
 
20992
extern int _nl_msg_cat_cntr;
 
20993
                         return _nl_msg_cat_cntr
 
20994
  ;
 
20995
  return 0;
 
20996
}
 
20997
_ACEOF
 
20998
rm -f conftest.$ac_objext conftest$ac_exeext
 
20999
if { (ac_try="$ac_link"
 
21000
case "(($ac_try" in
 
21001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21002
  *) ac_try_echo=$ac_try;;
 
21003
esac
 
21004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21005
  (eval "$ac_link") 2>conftest.er1
 
21006
  ac_status=$?
 
21007
  grep -v '^ *+' conftest.er1 >conftest.err
 
21008
  rm -f conftest.er1
 
21009
  cat conftest.err >&5
 
21010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21011
  (exit $ac_status); } && {
 
21012
         test -z "$ac_c_werror_flag" ||
 
21013
         test ! -s conftest.err
 
21014
       } && test -s conftest$ac_exeext &&
 
21015
       $as_test_x conftest$ac_exeext; then
 
21016
  CATOBJEXT=.gmo 
 
21017
             DATADIRNAME=share
 
21018
else
 
21019
  echo "$as_me: failed program was:" >&5
 
21020
sed 's/^/| /' conftest.$ac_ext >&5
 
21021
 
 
21022
        case $host in
 
21023
            *-*-solaris*)
 
21024
                                                                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
21025
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 
21026
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
21027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21028
else
 
21029
  cat >conftest.$ac_ext <<_ACEOF
 
21030
/* confdefs.h.  */
 
21031
_ACEOF
 
21032
cat confdefs.h >>conftest.$ac_ext
 
21033
cat >>conftest.$ac_ext <<_ACEOF
 
21034
/* end confdefs.h.  */
 
21035
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
21036
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21037
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
21038
 
 
21039
/* System header to define __stub macros and hopefully few prototypes,
 
21040
    which can conflict with char bind_textdomain_codeset (); below.
 
21041
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21042
    <limits.h> exists even on freestanding compilers.  */
 
21043
 
 
21044
#ifdef __STDC__
 
21045
# include <limits.h>
 
21046
#else
 
21047
# include <assert.h>
 
21048
#endif
 
21049
 
 
21050
#undef bind_textdomain_codeset
 
21051
 
 
21052
/* Override any GCC internal prototype to avoid an error.
 
21053
   Use char because int might match the return type of a GCC
 
21054
   builtin and then its argument prototype would still apply.  */
 
21055
#ifdef __cplusplus
 
21056
extern "C"
 
21057
#endif
 
21058
char bind_textdomain_codeset ();
 
21059
/* The GNU C library defines this for functions which it implements
 
21060
    to always fail with ENOSYS.  Some functions are actually named
 
21061
    something starting with __ and the normal name is an alias.  */
 
21062
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 
21063
choke me
 
21064
#endif
 
21065
 
 
21066
int
 
21067
main ()
 
21068
{
 
21069
return bind_textdomain_codeset ();
 
21070
  ;
 
21071
  return 0;
 
21072
}
 
21073
_ACEOF
 
21074
rm -f conftest.$ac_objext conftest$ac_exeext
 
21075
if { (ac_try="$ac_link"
 
21076
case "(($ac_try" in
 
21077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21078
  *) ac_try_echo=$ac_try;;
 
21079
esac
 
21080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21081
  (eval "$ac_link") 2>conftest.er1
 
21082
  ac_status=$?
 
21083
  grep -v '^ *+' conftest.er1 >conftest.err
 
21084
  rm -f conftest.er1
 
21085
  cat conftest.err >&5
 
21086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21087
  (exit $ac_status); } && {
 
21088
         test -z "$ac_c_werror_flag" ||
 
21089
         test ! -s conftest.err
 
21090
       } && test -s conftest$ac_exeext &&
 
21091
       $as_test_x conftest$ac_exeext; then
 
21092
  ac_cv_func_bind_textdomain_codeset=yes
 
21093
else
 
21094
  echo "$as_me: failed program was:" >&5
 
21095
sed 's/^/| /' conftest.$ac_ext >&5
 
21096
 
 
21097
        ac_cv_func_bind_textdomain_codeset=no
 
21098
fi
 
21099
 
 
21100
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21101
      conftest$ac_exeext conftest.$ac_ext
 
21102
fi
 
21103
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
21104
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 
21105
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
21106
  CATOBJEXT=.gmo 
 
21107
               DATADIRNAME=share
 
21108
else
 
21109
  CATOBJEXT=.mo
 
21110
               DATADIRNAME=lib
 
21111
fi
 
21112
 
 
21113
            ;;
 
21114
            *)
 
21115
            CATOBJEXT=.mo
 
21116
            DATADIRNAME=lib
 
21117
            ;;
 
21118
            esac
 
21119
fi
 
21120
 
 
21121
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21122
      conftest$ac_exeext conftest.$ac_ext
 
21123
          LIBS="$glib_save_LIBS"
 
21124
          INSTOBJEXT=.mo
 
21125
        else
 
21126
          gt_cv_have_gettext=no
 
21127
        fi
 
21128
      fi
 
21129
    
 
21130
fi
 
21131
 
 
21132
 
 
21133
 
 
21134
    if test "$gt_cv_have_gettext" = "yes" ; then
 
21135
      
 
21136
cat >>confdefs.h <<\_ACEOF
 
21137
@%:@define ENABLE_NLS 1
 
21138
_ACEOF
 
21139
 
 
21140
    fi
 
21141
 
 
21142
        if test "$XGETTEXT" != ":"; then
 
21143
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
21144
        : ;
 
21145
      else
 
21146
        { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
21147
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 
21148
        XGETTEXT=":"
 
21149
      fi
 
21150
    fi
 
21151
 
 
21152
    # We need to process the po/ directory.
 
21153
    POSUB=po
 
21154
 
 
21155
    ac_config_commands="$ac_config_commands default-1"
 
21156
 
 
21157
 
 
21158
                for lang in $ALL_LINGUAS; do
 
21159
      GMOFILES="$GMOFILES $lang.gmo"
 
21160
      POFILES="$POFILES $lang.po"
 
21161
    done
 
21162
 
 
21163
        
 
21164
    
 
21165
    
 
21166
    
 
21167
    
 
21168
    
 
21169
    
 
21170
    
 
21171
    
 
21172
    
 
21173
  
 
21174
 
 
21175
   if test "$gt_cv_have_gettext" = "yes"; then
 
21176
     if test "x$ALL_LINGUAS" = "x"; then
 
21177
       LINGUAS=
 
21178
     else
 
21179
       { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 
21180
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 
21181
       NEW_LINGUAS=
 
21182
       for presentlang in $ALL_LINGUAS; do
 
21183
         useit=no
 
21184
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
21185
           desiredlanguages="$LINGUAS"
 
21186
         else
 
21187
           desiredlanguages="$ALL_LINGUAS"
 
21188
         fi
 
21189
         for desiredlang in $desiredlanguages; do
 
21190
           # Use the presentlang catalog if desiredlang is
 
21191
           #   a. equal to presentlang, or
 
21192
           #   b. a variant of presentlang (because in this case,
 
21193
           #      presentlang can be used as a fallback for messages
 
21194
           #      which are not translated in the desiredlang catalog).
 
21195
           case "$desiredlang" in
 
21196
             "$presentlang"*) useit=yes;;
 
21197
           esac
 
21198
         done
 
21199
         if test $useit = yes; then
 
21200
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
21201
         fi
 
21202
       done
 
21203
       LINGUAS=$NEW_LINGUAS
 
21204
       { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 
21205
echo "${ECHO_T}$LINGUAS" >&6; }
 
21206
     fi
 
21207
 
 
21208
          if test -n "$LINGUAS"; then
 
21209
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
21210
     fi
 
21211
   fi
 
21212
 
 
21213
            MKINSTALLDIRS=
 
21214
   if test -n "$ac_aux_dir"; then
 
21215
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
21216
   fi
 
21217
   if test -z "$MKINSTALLDIRS"; then
 
21218
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
21219
   fi
 
21220
   
 
21221
 
 
21222
         test -d po || mkdir po
 
21223
   if test "x$srcdir" != "x."; then
 
21224
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
21225
       posrcprefix="$srcdir/"
 
21226
     else
 
21227
       posrcprefix="../$srcdir/"
 
21228
     fi
 
21229
   else
 
21230
     posrcprefix="../"
 
21231
   fi
 
21232
   rm -f po/POTFILES
 
21233
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
21234
        < $srcdir/po/POTFILES.in > po/POTFILES
 
21235
  
 
21236
GETTEXT_PACKAGE=cd-compiz-icon
 
21237
 
 
21238
cat >>confdefs.h <<_ACEOF
 
21239
@%:@define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
21240
_ACEOF
 
21241
 
 
21242
 
 
21243
 
 
21244
 
 
21245
pkgdatadir=`pkg-config cairo-dock --variable=pluginsdir`/compiz-icon
 
21246
 
 
21247
 
 
21248
 
 
21249
# Checks for programs.
 
21250
ac_ext=c
 
21251
ac_cpp='$CPP $CPPFLAGS'
 
21252
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21253
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21254
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21255
if test -n "$ac_tool_prefix"; then
 
21256
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
21257
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
21258
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21260
if test "${ac_cv_prog_CC+set}" = set; then
 
21261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21262
else
 
21263
  if test -n "$CC"; then
 
21264
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
21265
else
 
21266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21267
for as_dir in $PATH
 
21268
do
 
21269
  IFS=$as_save_IFS
 
21270
  test -z "$as_dir" && as_dir=.
 
21271
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21272
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21273
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
21274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21275
    break 2
 
21276
  fi
 
21277
done
 
21278
done
 
21279
IFS=$as_save_IFS
 
21280
 
 
21281
fi
 
21282
fi
 
21283
CC=$ac_cv_prog_CC
 
21284
if test -n "$CC"; then
 
21285
  { echo "$as_me:$LINENO: result: $CC" >&5
 
21286
echo "${ECHO_T}$CC" >&6; }
 
21287
else
 
21288
  { echo "$as_me:$LINENO: result: no" >&5
 
21289
echo "${ECHO_T}no" >&6; }
 
21290
fi
 
21291
 
 
21292
 
 
21293
fi
 
21294
if test -z "$ac_cv_prog_CC"; then
 
21295
  ac_ct_CC=$CC
 
21296
  # Extract the first word of "gcc", so it can be a program name with args.
 
21297
set dummy gcc; ac_word=$2
 
21298
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21300
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
21301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21302
else
 
21303
  if test -n "$ac_ct_CC"; then
 
21304
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
21305
else
 
21306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21307
for as_dir in $PATH
 
21308
do
 
21309
  IFS=$as_save_IFS
 
21310
  test -z "$as_dir" && as_dir=.
 
21311
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21312
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21313
    ac_cv_prog_ac_ct_CC="gcc"
 
21314
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21315
    break 2
 
21316
  fi
 
21317
done
 
21318
done
 
21319
IFS=$as_save_IFS
 
21320
 
 
21321
fi
 
21322
fi
 
21323
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
21324
if test -n "$ac_ct_CC"; then
 
21325
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
21326
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
21327
else
 
21328
  { echo "$as_me:$LINENO: result: no" >&5
 
21329
echo "${ECHO_T}no" >&6; }
 
21330
fi
 
21331
 
 
21332
  if test "x$ac_ct_CC" = x; then
 
21333
    CC=""
 
21334
  else
 
21335
    case $cross_compiling:$ac_tool_warned in
 
21336
yes:)
 
21337
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
21338
whose name does not start with the host triplet.  If you think this
 
21339
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
21340
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
21341
whose name does not start with the host triplet.  If you think this
 
21342
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
21343
ac_tool_warned=yes ;;
 
21344
esac
 
21345
    CC=$ac_ct_CC
 
21346
  fi
 
21347
else
 
21348
  CC="$ac_cv_prog_CC"
 
21349
fi
 
21350
 
 
21351
if test -z "$CC"; then
 
21352
          if test -n "$ac_tool_prefix"; then
 
21353
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
21354
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
21355
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21356
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21357
if test "${ac_cv_prog_CC+set}" = set; then
 
21358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21359
else
 
21360
  if test -n "$CC"; then
 
21361
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
21362
else
 
21363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21364
for as_dir in $PATH
 
21365
do
 
21366
  IFS=$as_save_IFS
 
21367
  test -z "$as_dir" && as_dir=.
 
21368
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21369
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21370
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
21371
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21372
    break 2
 
21373
  fi
 
21374
done
 
21375
done
 
21376
IFS=$as_save_IFS
 
21377
 
 
21378
fi
 
21379
fi
 
21380
CC=$ac_cv_prog_CC
 
21381
if test -n "$CC"; then
 
21382
  { echo "$as_me:$LINENO: result: $CC" >&5
 
21383
echo "${ECHO_T}$CC" >&6; }
 
21384
else
 
21385
  { echo "$as_me:$LINENO: result: no" >&5
 
21386
echo "${ECHO_T}no" >&6; }
 
21387
fi
 
21388
 
 
21389
 
 
21390
  fi
 
21391
fi
 
21392
if test -z "$CC"; then
 
21393
  # Extract the first word of "cc", so it can be a program name with args.
 
21394
set dummy cc; ac_word=$2
 
21395
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21397
if test "${ac_cv_prog_CC+set}" = set; then
 
21398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21399
else
 
21400
  if test -n "$CC"; then
 
21401
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
21402
else
 
21403
  ac_prog_rejected=no
 
21404
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21405
for as_dir in $PATH
 
21406
do
 
21407
  IFS=$as_save_IFS
 
21408
  test -z "$as_dir" && as_dir=.
 
21409
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21410
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21411
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
21412
       ac_prog_rejected=yes
 
21413
       continue
 
21414
     fi
 
21415
    ac_cv_prog_CC="cc"
 
21416
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21417
    break 2
 
21418
  fi
 
21419
done
 
21420
done
 
21421
IFS=$as_save_IFS
 
21422
 
 
21423
if test $ac_prog_rejected = yes; then
 
21424
  # We found a bogon in the path, so make sure we never use it.
 
21425
  set dummy $ac_cv_prog_CC
 
21426
  shift
 
21427
  if test $@%:@ != 0; then
 
21428
    # We chose a different compiler from the bogus one.
 
21429
    # However, it has the same basename, so the bogon will be chosen
 
21430
    # first if we set CC to just the basename; use the full file name.
 
21431
    shift
 
21432
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
21433
  fi
 
21434
fi
 
21435
fi
 
21436
fi
 
21437
CC=$ac_cv_prog_CC
 
21438
if test -n "$CC"; then
 
21439
  { echo "$as_me:$LINENO: result: $CC" >&5
 
21440
echo "${ECHO_T}$CC" >&6; }
 
21441
else
 
21442
  { echo "$as_me:$LINENO: result: no" >&5
 
21443
echo "${ECHO_T}no" >&6; }
 
21444
fi
 
21445
 
 
21446
 
 
21447
fi
 
21448
if test -z "$CC"; then
 
21449
  if test -n "$ac_tool_prefix"; then
 
21450
  for ac_prog in cl.exe
 
21451
  do
 
21452
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
21453
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
21454
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21455
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21456
if test "${ac_cv_prog_CC+set}" = set; then
 
21457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21458
else
 
21459
  if test -n "$CC"; then
 
21460
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
21461
else
 
21462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21463
for as_dir in $PATH
 
21464
do
 
21465
  IFS=$as_save_IFS
 
21466
  test -z "$as_dir" && as_dir=.
 
21467
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21468
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21469
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
21470
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21471
    break 2
 
21472
  fi
 
21473
done
 
21474
done
 
21475
IFS=$as_save_IFS
 
21476
 
 
21477
fi
 
21478
fi
 
21479
CC=$ac_cv_prog_CC
 
21480
if test -n "$CC"; then
 
21481
  { echo "$as_me:$LINENO: result: $CC" >&5
 
21482
echo "${ECHO_T}$CC" >&6; }
 
21483
else
 
21484
  { echo "$as_me:$LINENO: result: no" >&5
 
21485
echo "${ECHO_T}no" >&6; }
 
21486
fi
 
21487
 
 
21488
 
 
21489
    test -n "$CC" && break
 
21490
  done
 
21491
fi
 
21492
if test -z "$CC"; then
 
21493
  ac_ct_CC=$CC
 
21494
  for ac_prog in cl.exe
 
21495
do
 
21496
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
21497
set dummy $ac_prog; ac_word=$2
 
21498
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21500
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
21501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21502
else
 
21503
  if test -n "$ac_ct_CC"; then
 
21504
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
21505
else
 
21506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21507
for as_dir in $PATH
 
21508
do
 
21509
  IFS=$as_save_IFS
 
21510
  test -z "$as_dir" && as_dir=.
 
21511
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21512
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21513
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
21514
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21515
    break 2
 
21516
  fi
 
21517
done
 
21518
done
 
21519
IFS=$as_save_IFS
 
21520
 
 
21521
fi
 
21522
fi
 
21523
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
21524
if test -n "$ac_ct_CC"; then
 
21525
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
21526
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
21527
else
 
21528
  { echo "$as_me:$LINENO: result: no" >&5
 
21529
echo "${ECHO_T}no" >&6; }
 
21530
fi
 
21531
 
 
21532
 
 
21533
  test -n "$ac_ct_CC" && break
 
21534
done
 
21535
 
 
21536
  if test "x$ac_ct_CC" = x; then
 
21537
    CC=""
 
21538
  else
 
21539
    case $cross_compiling:$ac_tool_warned in
 
21540
yes:)
 
21541
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
21542
whose name does not start with the host triplet.  If you think this
 
21543
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
21544
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
21545
whose name does not start with the host triplet.  If you think this
 
21546
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
21547
ac_tool_warned=yes ;;
 
21548
esac
 
21549
    CC=$ac_ct_CC
 
21550
  fi
 
21551
fi
 
21552
 
 
21553
fi
 
21554
 
 
21555
 
 
21556
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
21557
See \`config.log' for more details." >&5
 
21558
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
21559
See \`config.log' for more details." >&2;}
 
21560
   { (exit 1); exit 1; }; }
 
21561
 
 
21562
# Provide some information about the compiler.
 
21563
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
21564
ac_compiler=`set X $ac_compile; echo $2`
 
21565
{ (ac_try="$ac_compiler --version >&5"
 
21566
case "(($ac_try" in
 
21567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21568
  *) ac_try_echo=$ac_try;;
 
21569
esac
 
21570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21571
  (eval "$ac_compiler --version >&5") 2>&5
 
21572
  ac_status=$?
 
21573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21574
  (exit $ac_status); }
 
21575
{ (ac_try="$ac_compiler -v >&5"
 
21576
case "(($ac_try" in
 
21577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21578
  *) ac_try_echo=$ac_try;;
 
21579
esac
 
21580
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21581
  (eval "$ac_compiler -v >&5") 2>&5
 
21582
  ac_status=$?
 
21583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21584
  (exit $ac_status); }
 
21585
{ (ac_try="$ac_compiler -V >&5"
 
21586
case "(($ac_try" in
 
21587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21588
  *) ac_try_echo=$ac_try;;
 
21589
esac
 
21590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21591
  (eval "$ac_compiler -V >&5") 2>&5
 
21592
  ac_status=$?
 
21593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21594
  (exit $ac_status); }
 
21595
 
 
21596
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
21597
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
21598
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
21599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21600
else
 
21601
  cat >conftest.$ac_ext <<_ACEOF
 
21602
/* confdefs.h.  */
 
21603
_ACEOF
 
21604
cat confdefs.h >>conftest.$ac_ext
 
21605
cat >>conftest.$ac_ext <<_ACEOF
 
21606
/* end confdefs.h.  */
 
21607
 
 
21608
int
 
21609
main ()
 
21610
{
 
21611
#ifndef __GNUC__
 
21612
       choke me
 
21613
#endif
 
21614
 
 
21615
  ;
 
21616
  return 0;
 
21617
}
 
21618
_ACEOF
 
21619
rm -f conftest.$ac_objext
 
21620
if { (ac_try="$ac_compile"
 
21621
case "(($ac_try" in
 
21622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21623
  *) ac_try_echo=$ac_try;;
 
21624
esac
 
21625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21626
  (eval "$ac_compile") 2>conftest.er1
 
21627
  ac_status=$?
 
21628
  grep -v '^ *+' conftest.er1 >conftest.err
 
21629
  rm -f conftest.er1
 
21630
  cat conftest.err >&5
 
21631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21632
  (exit $ac_status); } && {
 
21633
         test -z "$ac_c_werror_flag" ||
 
21634
         test ! -s conftest.err
 
21635
       } && test -s conftest.$ac_objext; then
 
21636
  ac_compiler_gnu=yes
 
21637
else
 
21638
  echo "$as_me: failed program was:" >&5
 
21639
sed 's/^/| /' conftest.$ac_ext >&5
 
21640
 
 
21641
        ac_compiler_gnu=no
 
21642
fi
 
21643
 
 
21644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21645
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
21646
 
 
21647
fi
 
21648
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
21649
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
21650
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
21651
ac_test_CFLAGS=${CFLAGS+set}
 
21652
ac_save_CFLAGS=$CFLAGS
 
21653
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
21654
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
21655
if test "${ac_cv_prog_cc_g+set}" = set; then
 
21656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21657
else
 
21658
  ac_save_c_werror_flag=$ac_c_werror_flag
 
21659
   ac_c_werror_flag=yes
 
21660
   ac_cv_prog_cc_g=no
 
21661
   CFLAGS="-g"
 
21662
   cat >conftest.$ac_ext <<_ACEOF
 
21663
/* confdefs.h.  */
 
21664
_ACEOF
 
21665
cat confdefs.h >>conftest.$ac_ext
 
21666
cat >>conftest.$ac_ext <<_ACEOF
 
21667
/* end confdefs.h.  */
 
21668
 
 
21669
int
 
21670
main ()
 
21671
{
 
21672
 
 
21673
  ;
 
21674
  return 0;
 
21675
}
 
21676
_ACEOF
 
21677
rm -f conftest.$ac_objext
 
21678
if { (ac_try="$ac_compile"
 
21679
case "(($ac_try" in
 
21680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21681
  *) ac_try_echo=$ac_try;;
 
21682
esac
 
21683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21684
  (eval "$ac_compile") 2>conftest.er1
 
21685
  ac_status=$?
 
21686
  grep -v '^ *+' conftest.er1 >conftest.err
 
21687
  rm -f conftest.er1
 
21688
  cat conftest.err >&5
 
21689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21690
  (exit $ac_status); } && {
 
21691
         test -z "$ac_c_werror_flag" ||
 
21692
         test ! -s conftest.err
 
21693
       } && test -s conftest.$ac_objext; then
 
21694
  ac_cv_prog_cc_g=yes
 
21695
else
 
21696
  echo "$as_me: failed program was:" >&5
 
21697
sed 's/^/| /' conftest.$ac_ext >&5
 
21698
 
 
21699
        CFLAGS=""
 
21700
      cat >conftest.$ac_ext <<_ACEOF
 
21701
/* confdefs.h.  */
 
21702
_ACEOF
 
21703
cat confdefs.h >>conftest.$ac_ext
 
21704
cat >>conftest.$ac_ext <<_ACEOF
 
21705
/* end confdefs.h.  */
 
21706
 
 
21707
int
 
21708
main ()
 
21709
{
 
21710
 
 
21711
  ;
 
21712
  return 0;
 
21713
}
 
21714
_ACEOF
 
21715
rm -f conftest.$ac_objext
 
21716
if { (ac_try="$ac_compile"
 
21717
case "(($ac_try" in
 
21718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21719
  *) ac_try_echo=$ac_try;;
 
21720
esac
 
21721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21722
  (eval "$ac_compile") 2>conftest.er1
 
21723
  ac_status=$?
 
21724
  grep -v '^ *+' conftest.er1 >conftest.err
 
21725
  rm -f conftest.er1
 
21726
  cat conftest.err >&5
 
21727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21728
  (exit $ac_status); } && {
 
21729
         test -z "$ac_c_werror_flag" ||
 
21730
         test ! -s conftest.err
 
21731
       } && test -s conftest.$ac_objext; then
 
21732
  :
 
21733
else
 
21734
  echo "$as_me: failed program was:" >&5
 
21735
sed 's/^/| /' conftest.$ac_ext >&5
 
21736
 
 
21737
        ac_c_werror_flag=$ac_save_c_werror_flag
 
21738
         CFLAGS="-g"
 
21739
         cat >conftest.$ac_ext <<_ACEOF
 
21740
/* confdefs.h.  */
 
21741
_ACEOF
 
21742
cat confdefs.h >>conftest.$ac_ext
 
21743
cat >>conftest.$ac_ext <<_ACEOF
 
21744
/* end confdefs.h.  */
 
21745
 
 
21746
int
 
21747
main ()
 
21748
{
 
21749
 
 
21750
  ;
 
21751
  return 0;
 
21752
}
 
21753
_ACEOF
 
21754
rm -f conftest.$ac_objext
 
21755
if { (ac_try="$ac_compile"
 
21756
case "(($ac_try" in
 
21757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21758
  *) ac_try_echo=$ac_try;;
 
21759
esac
 
21760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21761
  (eval "$ac_compile") 2>conftest.er1
 
21762
  ac_status=$?
 
21763
  grep -v '^ *+' conftest.er1 >conftest.err
 
21764
  rm -f conftest.er1
 
21765
  cat conftest.err >&5
 
21766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21767
  (exit $ac_status); } && {
 
21768
         test -z "$ac_c_werror_flag" ||
 
21769
         test ! -s conftest.err
 
21770
       } && test -s conftest.$ac_objext; then
 
21771
  ac_cv_prog_cc_g=yes
 
21772
else
 
21773
  echo "$as_me: failed program was:" >&5
 
21774
sed 's/^/| /' conftest.$ac_ext >&5
 
21775
 
 
21776
        
 
21777
fi
 
21778
 
 
21779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21780
fi
 
21781
 
 
21782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21783
fi
 
21784
 
 
21785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21786
   ac_c_werror_flag=$ac_save_c_werror_flag
 
21787
fi
 
21788
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
21789
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
21790
if test "$ac_test_CFLAGS" = set; then
 
21791
  CFLAGS=$ac_save_CFLAGS
 
21792
elif test $ac_cv_prog_cc_g = yes; then
 
21793
  if test "$GCC" = yes; then
 
21794
    CFLAGS="-g -O2"
 
21795
  else
 
21796
    CFLAGS="-g"
 
21797
  fi
 
21798
else
 
21799
  if test "$GCC" = yes; then
 
21800
    CFLAGS="-O2"
 
21801
  else
 
21802
    CFLAGS=
 
21803
  fi
 
21804
fi
 
21805
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
21806
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
21807
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
21808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21809
else
 
21810
  ac_cv_prog_cc_c89=no
 
21811
ac_save_CC=$CC
 
21812
cat >conftest.$ac_ext <<_ACEOF
 
21813
/* confdefs.h.  */
 
21814
_ACEOF
 
21815
cat confdefs.h >>conftest.$ac_ext
 
21816
cat >>conftest.$ac_ext <<_ACEOF
 
21817
/* end confdefs.h.  */
 
21818
#include <stdarg.h>
 
21819
#include <stdio.h>
 
21820
#include <sys/types.h>
 
21821
#include <sys/stat.h>
 
21822
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
21823
struct buf { int x; };
 
21824
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
21825
static char *e (p, i)
 
21826
     char **p;
 
21827
     int i;
 
21828
{
 
21829
  return p[i];
 
21830
}
 
21831
static char *f (char * (*g) (char **, int), char **p, ...)
 
21832
{
 
21833
  char *s;
 
21834
  va_list v;
 
21835
  va_start (v,p);
 
21836
  s = g (p, va_arg (v,int));
 
21837
  va_end (v);
 
21838
  return s;
 
21839
}
 
21840
 
 
21841
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
21842
   function prototypes and stuff, but not '\xHH' hex character constants.
 
21843
   These don't provoke an error unfortunately, instead are silently treated
 
21844
   as 'x'.  The following induces an error, until -std is added to get
 
21845
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
21846
   array size at least.  It's necessary to write '\x00'==0 to get something
 
21847
   that's true only with -std.  */
 
21848
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
21849
 
 
21850
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
21851
   inside strings and character constants.  */
 
21852
#define FOO(x) 'x'
 
21853
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
21854
 
 
21855
int test (int i, double x);
 
21856
struct s1 {int (*f) (int a);};
 
21857
struct s2 {int (*f) (double a);};
 
21858
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
21859
int argc;
 
21860
char **argv;
 
21861
int
 
21862
main ()
 
21863
{
 
21864
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
21865
  ;
 
21866
  return 0;
 
21867
}
 
21868
_ACEOF
 
21869
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
21870
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
21871
do
 
21872
  CC="$ac_save_CC $ac_arg"
 
21873
  rm -f conftest.$ac_objext
 
21874
if { (ac_try="$ac_compile"
 
21875
case "(($ac_try" in
 
21876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21877
  *) ac_try_echo=$ac_try;;
 
21878
esac
 
21879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21880
  (eval "$ac_compile") 2>conftest.er1
 
21881
  ac_status=$?
 
21882
  grep -v '^ *+' conftest.er1 >conftest.err
 
21883
  rm -f conftest.er1
 
21884
  cat conftest.err >&5
 
21885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21886
  (exit $ac_status); } && {
 
21887
         test -z "$ac_c_werror_flag" ||
 
21888
         test ! -s conftest.err
 
21889
       } && test -s conftest.$ac_objext; then
 
21890
  ac_cv_prog_cc_c89=$ac_arg
 
21891
else
 
21892
  echo "$as_me: failed program was:" >&5
 
21893
sed 's/^/| /' conftest.$ac_ext >&5
 
21894
 
 
21895
        
 
21896
fi
 
21897
 
 
21898
rm -f core conftest.err conftest.$ac_objext 
 
21899
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
21900
done
 
21901
rm -f conftest.$ac_ext
 
21902
CC=$ac_save_CC
 
21903
 
 
21904
fi
 
21905
# AC_CACHE_VAL
 
21906
case "x$ac_cv_prog_cc_c89" in
 
21907
  x)
 
21908
    { echo "$as_me:$LINENO: result: none needed" >&5
 
21909
echo "${ECHO_T}none needed" >&6; } ;;
 
21910
  xno)
 
21911
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
21912
echo "${ECHO_T}unsupported" >&6; } ;;
 
21913
  *)
 
21914
    CC="$CC $ac_cv_prog_cc_c89"
 
21915
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
21916
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
21917
esac
 
21918
 
 
21919
 
 
21920
ac_ext=c
 
21921
ac_cpp='$CPP $CPPFLAGS'
 
21922
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21923
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21924
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21925
 
 
21926
depcc="$CC"   am_compiler_list=
 
21927
 
 
21928
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
21929
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
21930
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
21931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21932
else
 
21933
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
21934
  # We make a subdir and do the tests there.  Otherwise we can end up
 
21935
  # making bogus files that we don't know about and never remove.  For
 
21936
  # instance it was reported that on HP-UX the gcc test will end up
 
21937
  # making a dummy file named `D' -- because `-MD' means `put the output
 
21938
  # in D'.
 
21939
  mkdir conftest.dir
 
21940
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
21941
  # using a relative directory.
 
21942
  cp "$am_depcomp" conftest.dir
 
21943
  cd conftest.dir
 
21944
  # We will build objects and dependencies in a subdirectory because
 
21945
  # it helps to detect inapplicable dependency modes.  For instance
 
21946
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
21947
  # side effect of compilation, but ICC will put the dependencies in
 
21948
  # the current directory while Tru64 will put them in the object
 
21949
  # directory.
 
21950
  mkdir sub
 
21951
 
 
21952
  am_cv_CC_dependencies_compiler_type=none
 
21953
  if test "$am_compiler_list" = ""; then
 
21954
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
21955
  fi
 
21956
  for depmode in $am_compiler_list; do
 
21957
    # Setup a source with many dependencies, because some compilers
 
21958
    # like to wrap large dependency lists on column 80 (with \), and
 
21959
    # we should not choose a depcomp mode which is confused by this.
 
21960
    #
 
21961
    # We need to recreate these files for each test, as the compiler may
 
21962
    # overwrite some of them when testing with obscure command lines.
 
21963
    # This happens at least with the AIX C compiler.
 
21964
    : > sub/conftest.c
 
21965
    for i in 1 2 3 4 5 6; do
 
21966
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
21967
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
21968
      # Solaris 8's {/usr,}/bin/sh.
 
21969
      touch sub/conftst$i.h
 
21970
    done
 
21971
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
21972
 
 
21973
    case $depmode in
 
21974
    nosideeffect)
 
21975
      # after this tag, mechanisms are not by side-effect, so they'll
 
21976
      # only be used when explicitly requested
 
21977
      if test "x$enable_dependency_tracking" = xyes; then
 
21978
        continue
 
21979
      else
 
21980
        break
 
21981
      fi
 
21982
      ;;
 
21983
    none) break ;;
 
21984
    esac
 
21985
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
21986
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
21987
    # handle `-M -o', and we need to detect this.
 
21988
    if depmode=$depmode \
 
21989
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
21990
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
21991
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
21992
         >/dev/null 2>conftest.err &&
 
21993
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
21994
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
21995
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
21996
      # icc doesn't choke on unknown options, it will just issue warnings
 
21997
      # or remarks (even with -Werror).  So we grep stderr for any message
 
21998
      # that says an option was ignored or not supported.
 
21999
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
22000
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
22001
      # The diagnosis changed in icc 8.0:
 
22002
      #   icc: Command line remark: option '-MP' not supported
 
22003
      if (grep 'ignoring option' conftest.err ||
 
22004
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
22005
        am_cv_CC_dependencies_compiler_type=$depmode
 
22006
        break
 
22007
      fi
 
22008
    fi
 
22009
  done
 
22010
 
 
22011
  cd ..
 
22012
  rm -rf conftest.dir
 
22013
else
 
22014
  am_cv_CC_dependencies_compiler_type=none
 
22015
fi
 
22016
 
 
22017
fi
 
22018
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
22019
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
22020
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
22021
 
 
22022
 
 
22023
 
 
22024
if 
 
22025
  test "x$enable_dependency_tracking" != xno \
 
22026
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
22027
  am__fastdepCC_TRUE=
 
22028
  am__fastdepCC_FALSE='#'
 
22029
else
 
22030
  am__fastdepCC_TRUE='#'
 
22031
  am__fastdepCC_FALSE=
 
22032
fi
 
22033
 
 
22034
 
 
22035
 
 
22036
# Checks for libraries.
 
22037
# FIXME: Replace `main' with a function in `-lpopt':
 
22038
 
 
22039
# Checks for header files.
 
22040
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
22041
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
22042
if test "${ac_cv_header_stdc+set}" = set; then
 
22043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22044
else
 
22045
  cat >conftest.$ac_ext <<_ACEOF
 
22046
/* confdefs.h.  */
 
22047
_ACEOF
 
22048
cat confdefs.h >>conftest.$ac_ext
 
22049
cat >>conftest.$ac_ext <<_ACEOF
 
22050
/* end confdefs.h.  */
 
22051
#include <stdlib.h>
 
22052
#include <stdarg.h>
 
22053
#include <string.h>
 
22054
#include <float.h>
 
22055
 
 
22056
int
 
22057
main ()
 
22058
{
 
22059
 
 
22060
  ;
 
22061
  return 0;
 
22062
}
 
22063
_ACEOF
 
22064
rm -f conftest.$ac_objext
 
22065
if { (ac_try="$ac_compile"
 
22066
case "(($ac_try" in
 
22067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22068
  *) ac_try_echo=$ac_try;;
 
22069
esac
 
22070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22071
  (eval "$ac_compile") 2>conftest.er1
 
22072
  ac_status=$?
 
22073
  grep -v '^ *+' conftest.er1 >conftest.err
 
22074
  rm -f conftest.er1
 
22075
  cat conftest.err >&5
 
22076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22077
  (exit $ac_status); } && {
 
22078
         test -z "$ac_c_werror_flag" ||
 
22079
         test ! -s conftest.err
 
22080
       } && test -s conftest.$ac_objext; then
 
22081
  ac_cv_header_stdc=yes
 
22082
else
 
22083
  echo "$as_me: failed program was:" >&5
 
22084
sed 's/^/| /' conftest.$ac_ext >&5
 
22085
 
 
22086
        ac_cv_header_stdc=no
 
22087
fi
 
22088
 
 
22089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22090
 
 
22091
if test $ac_cv_header_stdc = yes; then
 
22092
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
22093
  cat >conftest.$ac_ext <<_ACEOF
 
22094
/* confdefs.h.  */
 
22095
_ACEOF
 
22096
cat confdefs.h >>conftest.$ac_ext
 
22097
cat >>conftest.$ac_ext <<_ACEOF
 
22098
/* end confdefs.h.  */
 
22099
#include <string.h>
 
22100
 
 
22101
_ACEOF
 
22102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22103
  $EGREP "memchr" >/dev/null 2>&1; then
 
22104
  :
 
22105
else
 
22106
  ac_cv_header_stdc=no
 
22107
fi
 
22108
rm -f conftest*
 
22109
 
 
22110
fi
 
22111
 
 
22112
if test $ac_cv_header_stdc = yes; then
 
22113
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
22114
  cat >conftest.$ac_ext <<_ACEOF
 
22115
/* confdefs.h.  */
 
22116
_ACEOF
 
22117
cat confdefs.h >>conftest.$ac_ext
 
22118
cat >>conftest.$ac_ext <<_ACEOF
 
22119
/* end confdefs.h.  */
 
22120
#include <stdlib.h>
 
22121
 
 
22122
_ACEOF
 
22123
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22124
  $EGREP "free" >/dev/null 2>&1; then
 
22125
  :
 
22126
else
 
22127
  ac_cv_header_stdc=no
 
22128
fi
 
22129
rm -f conftest*
 
22130
 
 
22131
fi
 
22132
 
 
22133
if test $ac_cv_header_stdc = yes; then
 
22134
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
22135
  if test "$cross_compiling" = yes; then
 
22136
  :
 
22137
else
 
22138
  cat >conftest.$ac_ext <<_ACEOF
 
22139
/* confdefs.h.  */
 
22140
_ACEOF
 
22141
cat confdefs.h >>conftest.$ac_ext
 
22142
cat >>conftest.$ac_ext <<_ACEOF
 
22143
/* end confdefs.h.  */
 
22144
#include <ctype.h>
 
22145
#include <stdlib.h>
 
22146
#if ((' ' & 0x0FF) == 0x020)
 
22147
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
22148
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
22149
#else
 
22150
# define ISLOWER(c) \
 
22151
                   (('a' <= (c) && (c) <= 'i') \
 
22152
                     || ('j' <= (c) && (c) <= 'r') \
 
22153
                     || ('s' <= (c) && (c) <= 'z'))
 
22154
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
22155
#endif
 
22156
 
 
22157
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
22158
int
 
22159
main ()
 
22160
{
 
22161
  int i;
 
22162
  for (i = 0; i < 256; i++)
 
22163
    if (XOR (islower (i), ISLOWER (i))
 
22164
        || toupper (i) != TOUPPER (i))
 
22165
      return 2;
 
22166
  return 0;
 
22167
}
 
22168
_ACEOF
 
22169
rm -f conftest$ac_exeext
 
22170
if { (ac_try="$ac_link"
 
22171
case "(($ac_try" in
 
22172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22173
  *) ac_try_echo=$ac_try;;
 
22174
esac
 
22175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22176
  (eval "$ac_link") 2>&5
 
22177
  ac_status=$?
 
22178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22179
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22180
  { (case "(($ac_try" in
 
22181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22182
  *) ac_try_echo=$ac_try;;
 
22183
esac
 
22184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22185
  (eval "$ac_try") 2>&5
 
22186
  ac_status=$?
 
22187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22188
  (exit $ac_status); }; }; then
 
22189
  :
 
22190
else
 
22191
  echo "$as_me: program exited with status $ac_status" >&5
 
22192
echo "$as_me: failed program was:" >&5
 
22193
sed 's/^/| /' conftest.$ac_ext >&5
 
22194
 
 
22195
( exit $ac_status )
 
22196
ac_cv_header_stdc=no
 
22197
fi
 
22198
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22199
fi
 
22200
 
 
22201
 
 
22202
fi
 
22203
fi
 
22204
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
22205
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
22206
if test $ac_cv_header_stdc = yes; then
 
22207
  
 
22208
cat >>confdefs.h <<\_ACEOF
 
22209
@%:@define STDC_HEADERS 1
 
22210
_ACEOF
 
22211
 
 
22212
fi
 
22213
 
 
22214
 
 
22215
 
 
22216
for ac_header in stdlib.h string.h
 
22217
do
 
22218
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22219
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22220
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22221
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22222
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22224
fi
 
22225
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22226
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22227
echo "${ECHO_T}$ac_res" >&6; }
 
22228
else
 
22229
  # Is the header compilable?
 
22230
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22231
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
22232
cat >conftest.$ac_ext <<_ACEOF
 
22233
/* confdefs.h.  */
 
22234
_ACEOF
 
22235
cat confdefs.h >>conftest.$ac_ext
 
22236
cat >>conftest.$ac_ext <<_ACEOF
 
22237
/* end confdefs.h.  */
 
22238
$ac_includes_default
 
22239
@%:@include <$ac_header>
 
22240
_ACEOF
 
22241
rm -f conftest.$ac_objext
 
22242
if { (ac_try="$ac_compile"
 
22243
case "(($ac_try" in
 
22244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22245
  *) ac_try_echo=$ac_try;;
 
22246
esac
 
22247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22248
  (eval "$ac_compile") 2>conftest.er1
 
22249
  ac_status=$?
 
22250
  grep -v '^ *+' conftest.er1 >conftest.err
 
22251
  rm -f conftest.er1
 
22252
  cat conftest.err >&5
 
22253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22254
  (exit $ac_status); } && {
 
22255
         test -z "$ac_c_werror_flag" ||
 
22256
         test ! -s conftest.err
 
22257
       } && test -s conftest.$ac_objext; then
 
22258
  ac_header_compiler=yes
 
22259
else
 
22260
  echo "$as_me: failed program was:" >&5
 
22261
sed 's/^/| /' conftest.$ac_ext >&5
 
22262
 
 
22263
        ac_header_compiler=no
 
22264
fi
 
22265
 
 
22266
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22267
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22268
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22269
 
 
22270
# Is the header present?
 
22271
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22272
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
22273
cat >conftest.$ac_ext <<_ACEOF
 
22274
/* confdefs.h.  */
 
22275
_ACEOF
 
22276
cat confdefs.h >>conftest.$ac_ext
 
22277
cat >>conftest.$ac_ext <<_ACEOF
 
22278
/* end confdefs.h.  */
 
22279
@%:@include <$ac_header>
 
22280
_ACEOF
 
22281
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22282
case "(($ac_try" in
 
22283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22284
  *) ac_try_echo=$ac_try;;
 
22285
esac
 
22286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22287
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22288
  ac_status=$?
 
22289
  grep -v '^ *+' conftest.er1 >conftest.err
 
22290
  rm -f conftest.er1
 
22291
  cat conftest.err >&5
 
22292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22293
  (exit $ac_status); } >/dev/null && {
 
22294
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22295
         test ! -s conftest.err
 
22296
       }; then
 
22297
  ac_header_preproc=yes
 
22298
else
 
22299
  echo "$as_me: failed program was:" >&5
 
22300
sed 's/^/| /' conftest.$ac_ext >&5
 
22301
 
 
22302
  ac_header_preproc=no
 
22303
fi
 
22304
 
 
22305
rm -f conftest.err conftest.$ac_ext
 
22306
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22307
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22308
 
 
22309
# So?  What about this header?
 
22310
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22311
  yes:no: )
 
22312
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22313
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22314
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22315
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22316
    ac_header_preproc=yes
 
22317
    ;;
 
22318
  no:yes:* )
 
22319
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22320
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22321
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22322
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22323
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22324
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22325
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22326
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22327
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22328
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22329
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22330
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22331
    ( cat <<\_ASBOX
 
22332
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
22333
@%:@@%:@ Report this to ChAnGFu (changfu@hollowproject.org) () @%:@@%:@
 
22334
@%:@@%:@ ----------------------------------------------------- @%:@@%:@
 
22335
_ASBOX
 
22336
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22337
    ;;
 
22338
esac
 
22339
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22340
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22341
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22343
else
 
22344
  eval "$as_ac_Header=\$ac_header_preproc"
 
22345
fi
 
22346
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22347
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22348
echo "${ECHO_T}$ac_res" >&6; }
 
22349
 
 
22350
fi
 
22351
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22352
  cat >>confdefs.h <<_ACEOF
 
22353
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22354
_ACEOF
 
22355
 
 
22356
fi
 
22357
 
 
22358
done
 
22359
 
 
22360
 
 
22361
# Checks for typedefs, structures, and compiler characteristics.
 
22362
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
22363
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
22364
if test "${ac_cv_c_const+set}" = set; then
 
22365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22366
else
 
22367
  cat >conftest.$ac_ext <<_ACEOF
 
22368
/* confdefs.h.  */
 
22369
_ACEOF
 
22370
cat confdefs.h >>conftest.$ac_ext
 
22371
cat >>conftest.$ac_ext <<_ACEOF
 
22372
/* end confdefs.h.  */
 
22373
 
 
22374
int
 
22375
main ()
 
22376
{
 
22377
/* FIXME: Include the comments suggested by Paul. */
 
22378
#ifndef __cplusplus
 
22379
  /* Ultrix mips cc rejects this.  */
 
22380
  typedef int charset[2];
 
22381
  const charset cs;
 
22382
  /* SunOS 4.1.1 cc rejects this.  */
 
22383
  char const *const *pcpcc;
 
22384
  char **ppc;
 
22385
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
22386
  struct point {int x, y;};
 
22387
  static struct point const zero = {0,0};
 
22388
  /* AIX XL C 1.02.0.0 rejects this.
 
22389
     It does not let you subtract one const X* pointer from another in
 
22390
     an arm of an if-expression whose if-part is not a constant
 
22391
     expression */
 
22392
  const char *g = "string";
 
22393
  pcpcc = &g + (g ? g-g : 0);
 
22394
  /* HPUX 7.0 cc rejects these. */
 
22395
  ++pcpcc;
 
22396
  ppc = (char**) pcpcc;
 
22397
  pcpcc = (char const *const *) ppc;
 
22398
  { /* SCO 3.2v4 cc rejects this.  */
 
22399
    char *t;
 
22400
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
22401
 
 
22402
    *t++ = 0;
 
22403
    if (s) return 0;
 
22404
  }
 
22405
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
22406
    int x[] = {25, 17};
 
22407
    const int *foo = &x[0];
 
22408
    ++foo;
 
22409
  }
 
22410
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
22411
    typedef const int *iptr;
 
22412
    iptr p = 0;
 
22413
    ++p;
 
22414
  }
 
22415
  { /* AIX XL C 1.02.0.0 rejects this saying
 
22416
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
22417
    struct s { int j; const int *ap[3]; };
 
22418
    struct s *b; b->j = 5;
 
22419
  }
 
22420
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
22421
    const int foo = 10;
 
22422
    if (!foo) return 0;
 
22423
  }
 
22424
  return !cs[0] && !zero.x;
 
22425
#endif
 
22426
 
 
22427
  ;
 
22428
  return 0;
 
22429
}
 
22430
_ACEOF
 
22431
rm -f conftest.$ac_objext
 
22432
if { (ac_try="$ac_compile"
 
22433
case "(($ac_try" in
 
22434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22435
  *) ac_try_echo=$ac_try;;
 
22436
esac
 
22437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22438
  (eval "$ac_compile") 2>conftest.er1
 
22439
  ac_status=$?
 
22440
  grep -v '^ *+' conftest.er1 >conftest.err
 
22441
  rm -f conftest.er1
 
22442
  cat conftest.err >&5
 
22443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22444
  (exit $ac_status); } && {
 
22445
         test -z "$ac_c_werror_flag" ||
 
22446
         test ! -s conftest.err
 
22447
       } && test -s conftest.$ac_objext; then
 
22448
  ac_cv_c_const=yes
 
22449
else
 
22450
  echo "$as_me: failed program was:" >&5
 
22451
sed 's/^/| /' conftest.$ac_ext >&5
 
22452
 
 
22453
        ac_cv_c_const=no
 
22454
fi
 
22455
 
 
22456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22457
fi
 
22458
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
22459
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
22460
if test $ac_cv_c_const = no; then
 
22461
  
 
22462
cat >>confdefs.h <<\_ACEOF
 
22463
@%:@define const 
 
22464
_ACEOF
 
22465
 
 
22466
fi
 
22467
 
 
22468
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
22469
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
22470
if test "${ac_cv_type_pid_t+set}" = set; then
 
22471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22472
else
 
22473
  cat >conftest.$ac_ext <<_ACEOF
 
22474
/* confdefs.h.  */
 
22475
_ACEOF
 
22476
cat confdefs.h >>conftest.$ac_ext
 
22477
cat >>conftest.$ac_ext <<_ACEOF
 
22478
/* end confdefs.h.  */
 
22479
$ac_includes_default
 
22480
typedef pid_t ac__type_new_;
 
22481
int
 
22482
main ()
 
22483
{
 
22484
if ((ac__type_new_ *) 0)
 
22485
  return 0;
 
22486
if (sizeof (ac__type_new_))
 
22487
  return 0;
 
22488
  ;
 
22489
  return 0;
 
22490
}
 
22491
_ACEOF
 
22492
rm -f conftest.$ac_objext
 
22493
if { (ac_try="$ac_compile"
 
22494
case "(($ac_try" in
 
22495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22496
  *) ac_try_echo=$ac_try;;
 
22497
esac
 
22498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22499
  (eval "$ac_compile") 2>conftest.er1
 
22500
  ac_status=$?
 
22501
  grep -v '^ *+' conftest.er1 >conftest.err
 
22502
  rm -f conftest.er1
 
22503
  cat conftest.err >&5
 
22504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22505
  (exit $ac_status); } && {
 
22506
         test -z "$ac_c_werror_flag" ||
 
22507
         test ! -s conftest.err
 
22508
       } && test -s conftest.$ac_objext; then
 
22509
  ac_cv_type_pid_t=yes
 
22510
else
 
22511
  echo "$as_me: failed program was:" >&5
 
22512
sed 's/^/| /' conftest.$ac_ext >&5
 
22513
 
 
22514
        ac_cv_type_pid_t=no
 
22515
fi
 
22516
 
 
22517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22518
fi
 
22519
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
22520
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
22521
if test $ac_cv_type_pid_t = yes; then
 
22522
  :
 
22523
else
 
22524
  
 
22525
cat >>confdefs.h <<_ACEOF
 
22526
@%:@define pid_t int
 
22527
_ACEOF
 
22528
 
 
22529
fi
 
22530
 
 
22531
 
 
22532
# Checks for library functions.
 
22533
 
 
22534
for ac_func in sscanf
 
22535
do
 
22536
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22537
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22538
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
22539
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
22540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22541
else
 
22542
  cat >conftest.$ac_ext <<_ACEOF
 
22543
/* confdefs.h.  */
 
22544
_ACEOF
 
22545
cat confdefs.h >>conftest.$ac_ext
 
22546
cat >>conftest.$ac_ext <<_ACEOF
 
22547
/* end confdefs.h.  */
 
22548
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22549
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22550
#define $ac_func innocuous_$ac_func
 
22551
 
 
22552
/* System header to define __stub macros and hopefully few prototypes,
 
22553
    which can conflict with char $ac_func (); below.
 
22554
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22555
    <limits.h> exists even on freestanding compilers.  */
 
22556
 
 
22557
#ifdef __STDC__
 
22558
# include <limits.h>
 
22559
#else
 
22560
# include <assert.h>
 
22561
#endif
 
22562
 
 
22563
#undef $ac_func
 
22564
 
 
22565
/* Override any GCC internal prototype to avoid an error.
 
22566
   Use char because int might match the return type of a GCC
 
22567
   builtin and then its argument prototype would still apply.  */
 
22568
#ifdef __cplusplus
 
22569
extern "C"
 
22570
#endif
 
22571
char $ac_func ();
 
22572
/* The GNU C library defines this for functions which it implements
 
22573
    to always fail with ENOSYS.  Some functions are actually named
 
22574
    something starting with __ and the normal name is an alias.  */
 
22575
#if defined __stub_$ac_func || defined __stub___$ac_func
 
22576
choke me
 
22577
#endif
 
22578
 
 
22579
int
 
22580
main ()
 
22581
{
 
22582
return $ac_func ();
 
22583
  ;
 
22584
  return 0;
 
22585
}
 
22586
_ACEOF
 
22587
rm -f conftest.$ac_objext conftest$ac_exeext
 
22588
if { (ac_try="$ac_link"
 
22589
case "(($ac_try" in
 
22590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22591
  *) ac_try_echo=$ac_try;;
 
22592
esac
 
22593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22594
  (eval "$ac_link") 2>conftest.er1
 
22595
  ac_status=$?
 
22596
  grep -v '^ *+' conftest.er1 >conftest.err
 
22597
  rm -f conftest.er1
 
22598
  cat conftest.err >&5
 
22599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22600
  (exit $ac_status); } && {
 
22601
         test -z "$ac_c_werror_flag" ||
 
22602
         test ! -s conftest.err
 
22603
       } && test -s conftest$ac_exeext &&
 
22604
       $as_test_x conftest$ac_exeext; then
 
22605
  eval "$as_ac_var=yes"
 
22606
else
 
22607
  echo "$as_me: failed program was:" >&5
 
22608
sed 's/^/| /' conftest.$ac_ext >&5
 
22609
 
 
22610
        eval "$as_ac_var=no"
 
22611
fi
 
22612
 
 
22613
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22614
      conftest$ac_exeext conftest.$ac_ext
 
22615
fi
 
22616
ac_res=`eval echo '${'$as_ac_var'}'`
 
22617
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22618
echo "${ECHO_T}$ac_res" >&6; }
 
22619
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22620
  cat >>confdefs.h <<_ACEOF
 
22621
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22622
_ACEOF
 
22623
 
 
22624
fi
 
22625
done
 
22626
 
 
22627
 
 
22628
 
 
22629
 
 
22630
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
22631
        if test -n "$ac_tool_prefix"; then
 
22632
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
22633
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
22634
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22636
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
22637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22638
else
 
22639
  case $PKG_CONFIG in
 
22640
  [\\/]* | ?:[\\/]*)
 
22641
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
22642
  ;;
 
22643
  *)
 
22644
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22645
for as_dir in $PATH
 
22646
do
 
22647
  IFS=$as_save_IFS
 
22648
  test -z "$as_dir" && as_dir=.
 
22649
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22650
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22651
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22652
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22653
    break 2
 
22654
  fi
 
22655
done
 
22656
done
 
22657
IFS=$as_save_IFS
 
22658
 
 
22659
  ;;
 
22660
esac
 
22661
fi
 
22662
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
22663
if test -n "$PKG_CONFIG"; then
 
22664
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
22665
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
22666
else
 
22667
  { echo "$as_me:$LINENO: result: no" >&5
 
22668
echo "${ECHO_T}no" >&6; }
 
22669
fi
 
22670
 
 
22671
 
 
22672
fi
 
22673
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
22674
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
22675
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
22676
set dummy pkg-config; ac_word=$2
 
22677
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22679
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
22680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22681
else
 
22682
  case $ac_pt_PKG_CONFIG in
 
22683
  [\\/]* | ?:[\\/]*)
 
22684
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
22685
  ;;
 
22686
  *)
 
22687
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22688
for as_dir in $PATH
 
22689
do
 
22690
  IFS=$as_save_IFS
 
22691
  test -z "$as_dir" && as_dir=.
 
22692
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22693
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22694
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22695
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22696
    break 2
 
22697
  fi
 
22698
done
 
22699
done
 
22700
IFS=$as_save_IFS
 
22701
 
 
22702
  ;;
 
22703
esac
 
22704
fi
 
22705
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
22706
if test -n "$ac_pt_PKG_CONFIG"; then
 
22707
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
22708
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
22709
else
 
22710
  { echo "$as_me:$LINENO: result: no" >&5
 
22711
echo "${ECHO_T}no" >&6; }
 
22712
fi
 
22713
 
 
22714
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
22715
    PKG_CONFIG=""
 
22716
  else
 
22717
    case $cross_compiling:$ac_tool_warned in
 
22718
yes:)
 
22719
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
22720
whose name does not start with the host triplet.  If you think this
 
22721
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
22722
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
22723
whose name does not start with the host triplet.  If you think this
 
22724
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
22725
ac_tool_warned=yes ;;
 
22726
esac
 
22727
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
22728
  fi
 
22729
else
 
22730
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
22731
fi
 
22732
 
 
22733
fi
 
22734
if test -n "$PKG_CONFIG"; then
 
22735
        _pkg_min_version=0.9.0
 
22736
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
22737
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
22738
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
22739
                { echo "$as_me:$LINENO: result: yes" >&5
 
22740
echo "${ECHO_T}yes" >&6; }
 
22741
        else
 
22742
                { echo "$as_me:$LINENO: result: no" >&5
 
22743
echo "${ECHO_T}no" >&6; }
 
22744
                PKG_CONFIG=""
 
22745
        fi
 
22746
                
 
22747
fi
 
22748
 
 
22749
pkg_failed=no
 
22750
{ echo "$as_me:$LINENO: checking for PACKAGE" >&5
 
22751
echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
 
22752
 
 
22753
if test -n "$PKG_CONFIG"; then
 
22754
    if test -n "$PACKAGE_CFLAGS"; then
 
22755
        pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
 
22756
    else
 
22757
        if test -n "$PKG_CONFIG" && \
 
22758
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-dock\"") >&5
 
22759
  ($PKG_CONFIG --exists --print-errors "cairo-dock") 2>&5
 
22760
  ac_status=$?
 
22761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22762
  (exit $ac_status); }; then
 
22763
  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "cairo-dock" 2>/dev/null`
 
22764
else
 
22765
  pkg_failed=yes
 
22766
fi
 
22767
    fi
 
22768
else
 
22769
        pkg_failed=untried
 
22770
fi
 
22771
if test -n "$PKG_CONFIG"; then
 
22772
    if test -n "$PACKAGE_LIBS"; then
 
22773
        pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
 
22774
    else
 
22775
        if test -n "$PKG_CONFIG" && \
 
22776
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-dock\"") >&5
 
22777
  ($PKG_CONFIG --exists --print-errors "cairo-dock") 2>&5
 
22778
  ac_status=$?
 
22779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22780
  (exit $ac_status); }; then
 
22781
  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "cairo-dock" 2>/dev/null`
 
22782
else
 
22783
  pkg_failed=yes
 
22784
fi
 
22785
    fi
 
22786
else
 
22787
        pkg_failed=untried
 
22788
fi
 
22789
 
 
22790
 
 
22791
 
 
22792
if test $pkg_failed = yes; then
 
22793
        
 
22794
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22795
        _pkg_short_errors_supported=yes
 
22796
else
 
22797
        _pkg_short_errors_supported=no
 
22798
fi
 
22799
        if test $_pkg_short_errors_supported = yes; then
 
22800
                PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-dock"`
 
22801
        else 
 
22802
                PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-dock"`
 
22803
        fi
 
22804
        # Put the nasty error message in config.log where it belongs
 
22805
        echo "$PACKAGE_PKG_ERRORS" >&5
 
22806
 
 
22807
        { { echo "$as_me:$LINENO: error: Package requirements (cairo-dock) were not met:
 
22808
 
 
22809
$PACKAGE_PKG_ERRORS
 
22810
 
 
22811
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22812
installed software in a non-standard prefix.
 
22813
 
 
22814
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
22815
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
22816
See the pkg-config man page for more details.
 
22817
" >&5
 
22818
echo "$as_me: error: Package requirements (cairo-dock) were not met:
 
22819
 
 
22820
$PACKAGE_PKG_ERRORS
 
22821
 
 
22822
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22823
installed software in a non-standard prefix.
 
22824
 
 
22825
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
22826
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
22827
See the pkg-config man page for more details.
 
22828
" >&2;}
 
22829
   { (exit 1); exit 1; }; }
 
22830
elif test $pkg_failed = untried; then
 
22831
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
22832
is in your PATH or set the PKG_CONFIG environment variable to the full
 
22833
path to pkg-config.
 
22834
 
 
22835
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
22836
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
22837
See the pkg-config man page for more details.
 
22838
 
 
22839
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
22840
See \`config.log' for more details." >&5
 
22841
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
22842
is in your PATH or set the PKG_CONFIG environment variable to the full
 
22843
path to pkg-config.
 
22844
 
 
22845
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
22846
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
22847
See the pkg-config man page for more details.
 
22848
 
 
22849
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
22850
See \`config.log' for more details." >&2;}
 
22851
   { (exit 1); exit 1; }; }
 
22852
else
 
22853
        PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
 
22854
        PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
 
22855
        { echo "$as_me:$LINENO: result: yes" >&5
 
22856
echo "${ECHO_T}yes" >&6; }
 
22857
        :
 
22858
fi
 
22859
 
 
22860
ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in data/Makefile data/readme data/compiz-icon.conf"
 
22861
 
 
22862
cat >confcache <<\_ACEOF
 
22863
# This file is a shell script that caches the results of configure
 
22864
# tests run on this system so they can be shared between configure
 
22865
# scripts and configure runs, see configure's option --config-cache.
 
22866
# It is not useful on other systems.  If it contains results you don't
 
22867
# want to keep, you may remove or edit it.
 
22868
#
 
22869
# config.status only pays attention to the cache file if you give it
 
22870
# the --recheck option to rerun configure.
 
22871
#
 
22872
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22873
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22874
# following values.
 
22875
 
 
22876
_ACEOF
 
22877
 
 
22878
# The following way of writing the cache mishandles newlines in values,
 
22879
# but we know of no workaround that is simple, portable, and efficient.
 
22880
# So, we kill variables containing newlines.
 
22881
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22882
# and sets the high bit in the cache file unless we assign to the vars.
 
22883
(
 
22884
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
22885
    eval ac_val=\$$ac_var
 
22886
    case $ac_val in #(
 
22887
    *${as_nl}*)
 
22888
      case $ac_var in #(
 
22889
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
22890
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
22891
      esac
 
22892
      case $ac_var in #(
 
22893
      _ | IFS | as_nl) ;; #(
 
22894
      *) $as_unset $ac_var ;;
 
22895
      esac ;;
 
22896
    esac
 
22897
  done
 
22898
 
 
22899
  (set) 2>&1 |
 
22900
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
22901
    *${as_nl}ac_space=\ *)
 
22902
      # `set' does not quote correctly, so add quotes (double-quote
 
22903
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22904
      sed -n \
 
22905
        "s/'/'\\\\''/g;
 
22906
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22907
      ;; #(
 
22908
    *)
 
22909
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22910
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22911
      ;;
 
22912
    esac |
 
22913
    sort
 
22914
) |
 
22915
  sed '
 
22916
     /^ac_cv_env_/b end
 
22917
     t clear
 
22918
     :clear
 
22919
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22920
     t end
 
22921
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22922
     :end' >>confcache
 
22923
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
22924
  if test -w "$cache_file"; then
 
22925
    test "x$cache_file" != "x/dev/null" &&
 
22926
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
22927
echo "$as_me: updating cache $cache_file" >&6;}
 
22928
    cat confcache >$cache_file
 
22929
  else
 
22930
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
22931
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22932
  fi
 
22933
fi
 
22934
rm -f confcache
 
22935
 
 
22936
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22937
# Let make expand exec_prefix.
 
22938
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22939
 
 
22940
DEFS=-DHAVE_CONFIG_H
 
22941
 
 
22942
ac_libobjs=
 
22943
ac_ltlibobjs=
 
22944
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
22945
  # 1. Remove the extension, and $U if already installed.
 
22946
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
22947
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
22948
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
22949
  #    will be set to the directory where LIBOBJS objects are built.
 
22950
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22951
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
22952
done
 
22953
LIB@&t@OBJS=$ac_libobjs
 
22954
 
 
22955
LTLIBOBJS=$ac_ltlibobjs
 
22956
 
 
22957
 
 
22958
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22959
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22960
Usually this means the macro was only invoked conditionally." >&5
 
22961
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22962
Usually this means the macro was only invoked conditionally." >&2;}
 
22963
   { (exit 1); exit 1; }; }
 
22964
fi
 
22965
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22966
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22967
Usually this means the macro was only invoked conditionally." >&5
 
22968
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22969
Usually this means the macro was only invoked conditionally." >&2;}
 
22970
   { (exit 1); exit 1; }; }
 
22971
fi
 
22972
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22973
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22974
Usually this means the macro was only invoked conditionally." >&5
 
22975
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22976
Usually this means the macro was only invoked conditionally." >&2;}
 
22977
   { (exit 1); exit 1; }; }
 
22978
fi
 
22979
 
 
22980
  ac_config_commands="$ac_config_commands po/stamp-it"
 
22981
 
 
22982
 
 
22983
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22984
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22985
Usually this means the macro was only invoked conditionally." >&5
 
22986
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22987
Usually this means the macro was only invoked conditionally." >&2;}
 
22988
   { (exit 1); exit 1; }; }
 
22989
fi
 
22990
 
 
22991
: ${CONFIG_STATUS=./config.status}
 
22992
ac_clean_files_save=$ac_clean_files
 
22993
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22994
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22995
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22996
cat >$CONFIG_STATUS <<_ACEOF
 
22997
#! $SHELL
 
22998
# Generated by $as_me.
 
22999
# Run this file to recreate the current configuration.
 
23000
# Compiler output produced by configure, useful for debugging
 
23001
# configure, is in config.log if it exists.
 
23002
 
 
23003
debug=false
 
23004
ac_cs_recheck=false
 
23005
ac_cs_silent=false
 
23006
SHELL=\${CONFIG_SHELL-$SHELL}
 
23007
_ACEOF
 
23008
 
 
23009
cat >>$CONFIG_STATUS <<\_ACEOF
 
23010
## --------------------- ##
 
23011
## M4sh Initialization.  ##
 
23012
## --------------------- ##
 
23013
 
 
23014
# Be more Bourne compatible
 
23015
DUALCASE=1; export DUALCASE # for MKS sh
 
23016
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
23017
  emulate sh
 
23018
  NULLCMD=:
 
23019
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
23020
  # is contrary to our usage.  Disable this feature.
 
23021
  alias -g '${1+"$@"}'='"$@"'
 
23022
  setopt NO_GLOB_SUBST
 
23023
else
 
23024
  case `(set -o) 2>/dev/null` in
 
23025
  *posix*) set -o posix ;;
 
23026
esac
 
23027
 
 
23028
fi
 
23029
 
 
23030
 
 
23031
 
 
23032
 
 
23033
# PATH needs CR
 
23034
# Avoid depending upon Character Ranges.
 
23035
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23036
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23037
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23038
as_cr_digits='0123456789'
 
23039
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23040
 
 
23041
# The user is always right.
 
23042
if test "${PATH_SEPARATOR+set}" != set; then
 
23043
  echo "#! /bin/sh" >conf$$.sh
 
23044
  echo  "exit 0"   >>conf$$.sh
 
23045
  chmod +x conf$$.sh
 
23046
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
23047
    PATH_SEPARATOR=';'
 
23048
  else
 
23049
    PATH_SEPARATOR=:
 
23050
  fi
 
23051
  rm -f conf$$.sh
 
23052
fi
 
23053
 
 
23054
# Support unset when possible.
 
23055
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
23056
  as_unset=unset
 
23057
else
 
23058
  as_unset=false
 
23059
fi
 
23060
 
 
23061
 
 
23062
# IFS
 
23063
# We need space, tab and new line, in precisely that order.  Quoting is
 
23064
# there to prevent editors from complaining about space-tab.
 
23065
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
23066
# splitting by setting IFS to empty value.)
 
23067
as_nl='
 
23068
'
 
23069
IFS=" ""        $as_nl"
 
23070
 
 
23071
# Find who we are.  Look in the path if we contain no directory separator.
 
23072
case $0 in
 
23073
  *[\\/]* ) as_myself=$0 ;;
 
23074
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23075
for as_dir in $PATH
 
23076
do
 
23077
  IFS=$as_save_IFS
 
23078
  test -z "$as_dir" && as_dir=.
 
23079
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23080
done
 
23081
IFS=$as_save_IFS
 
23082
 
 
23083
     ;;
 
23084
esac
 
23085
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
23086
# in which case we are not to be found in the path.
 
23087
if test "x$as_myself" = x; then
 
23088
  as_myself=$0
 
23089
fi
 
23090
if test ! -f "$as_myself"; then
 
23091
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
23092
  { (exit 1); exit 1; }
 
23093
fi
 
23094
 
 
23095
# Work around bugs in pre-3.0 UWIN ksh.
 
23096
for as_var in ENV MAIL MAILPATH
 
23097
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
23098
done
 
23099
PS1='$ '
 
23100
PS2='> '
 
23101
PS4='+ '
 
23102
 
 
23103
# NLS nuisances.
 
23104
for as_var in \
 
23105
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
23106
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
23107
  LC_TELEPHONE LC_TIME
 
23108
do
 
23109
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
23110
    eval $as_var=C; export $as_var
 
23111
  else
 
23112
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
23113
  fi
 
23114
done
 
23115
 
 
23116
# Required to use basename.
 
23117
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23118
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
23119
  as_expr=expr
 
23120
else
 
23121
  as_expr=false
 
23122
fi
 
23123
 
 
23124
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
23125
  as_basename=basename
 
23126
else
 
23127
  as_basename=false
 
23128
fi
 
23129
 
 
23130
 
 
23131
# Name of the executable.
 
23132
as_me=`$as_basename -- "$0" ||
 
23133
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
23134
         X"$0" : 'X\(//\)$' \| \
 
23135
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
23136
echo X/"$0" |
 
23137
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
23138
            s//\1/
 
23139
            q
 
23140
          }
 
23141
          /^X\/\(\/\/\)$/{
 
23142
            s//\1/
 
23143
            q
 
23144
          }
 
23145
          /^X\/\(\/\).*/{
 
23146
            s//\1/
 
23147
            q
 
23148
          }
 
23149
          s/.*/./; q'`
 
23150
 
 
23151
# CDPATH.
 
23152
$as_unset CDPATH
 
23153
 
 
23154
 
 
23155
 
 
23156
  as_lineno_1=$LINENO
 
23157
  as_lineno_2=$LINENO
 
23158
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23159
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
23160
 
 
23161
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
23162
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
23163
  # line-number line after each line using $LINENO; the second 'sed'
 
23164
  # does the real work.  The second script uses 'N' to pair each
 
23165
  # line-number line with the line containing $LINENO, and appends
 
23166
  # trailing '-' during substitution so that $LINENO is not a special
 
23167
  # case at line end.
 
23168
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
23169
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
23170
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
23171
  sed -n '
 
23172
    p
 
23173
    /[$]LINENO/=
 
23174
  ' <$as_myself |
 
23175
    sed '
 
23176
      s/[$]LINENO.*/&-/
 
23177
      t lineno
 
23178
      b
 
23179
      :lineno
 
23180
      N
 
23181
      :loop
 
23182
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
23183
      t loop
 
23184
      s/-\n.*//
 
23185
    ' >$as_me.lineno &&
 
23186
  chmod +x "$as_me.lineno" ||
 
23187
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
23188
   { (exit 1); exit 1; }; }
 
23189
 
 
23190
  # Don't try to exec as it changes $[0], causing all sort of problems
 
23191
  # (the dirname of $[0] is not the place where we might find the
 
23192
  # original and so on.  Autoconf is especially sensitive to this).
 
23193
  . "./$as_me.lineno"
 
23194
  # Exit status is that of the last command.
 
23195
  exit
 
23196
}
 
23197
 
 
23198
 
 
23199
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
23200
  as_dirname=dirname
 
23201
else
 
23202
  as_dirname=false
 
23203
fi
 
23204
 
 
23205
ECHO_C= ECHO_N= ECHO_T=
 
23206
case `echo -n x` in
 
23207
-n*)
 
23208
  case `echo 'x\c'` in
 
23209
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
23210
  *)   ECHO_C='\c';;
 
23211
  esac;;
 
23212
*)
 
23213
  ECHO_N='-n';;
 
23214
esac
 
23215
 
 
23216
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23217
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
23218
  as_expr=expr
 
23219
else
 
23220
  as_expr=false
 
23221
fi
 
23222
 
 
23223
rm -f conf$$ conf$$.exe conf$$.file
 
23224
if test -d conf$$.dir; then
 
23225
  rm -f conf$$.dir/conf$$.file
 
23226
else
 
23227
  rm -f conf$$.dir
 
23228
  mkdir conf$$.dir
 
23229
fi
 
23230
echo >conf$$.file
 
23231
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
23232
  as_ln_s='ln -s'
 
23233
  # ... but there are two gotchas:
 
23234
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
23235
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
23236
  # In both cases, we have to default to `cp -p'.
 
23237
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
23238
    as_ln_s='cp -p'
 
23239
elif ln conf$$.file conf$$ 2>/dev/null; then
 
23240
  as_ln_s=ln
 
23241
else
 
23242
  as_ln_s='cp -p'
 
23243
fi
 
23244
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
23245
rmdir conf$$.dir 2>/dev/null
 
23246
 
 
23247
if mkdir -p . 2>/dev/null; then
 
23248
  as_mkdir_p=:
 
23249
else
 
23250
  test -d ./-p && rmdir ./-p
 
23251
  as_mkdir_p=false
 
23252
fi
 
23253
 
 
23254
if test -x / >/dev/null 2>&1; then
 
23255
  as_test_x='test -x'
 
23256
else
 
23257
  if ls -dL / >/dev/null 2>&1; then
 
23258
    as_ls_L_option=L
 
23259
  else
 
23260
    as_ls_L_option=
 
23261
  fi
 
23262
  as_test_x='
 
23263
    eval sh -c '\''
 
23264
      if test -d "$1"; then
 
23265
        test -d "$1/.";
 
23266
      else
 
23267
        case $1 in
 
23268
        -*)set "./$1";;
 
23269
        esac;
 
23270
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
23271
        ???[sx]*):;;*)false;;esac;fi
 
23272
    '\'' sh
 
23273
  '
 
23274
fi
 
23275
as_executable_p=$as_test_x
 
23276
 
 
23277
# Sed expression to map a string onto a valid CPP name.
 
23278
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
23279
 
 
23280
# Sed expression to map a string onto a valid variable name.
 
23281
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
23282
 
 
23283
 
 
23284
exec 6>&1
 
23285
 
 
23286
# Save the log message, to keep $[0] and so on meaningful, and to
 
23287
# report actual input values of CONFIG_FILES etc. instead of their
 
23288
# values after options handling.
 
23289
ac_log="
 
23290
This file was extended by cd-compiz-icon $as_me 0.0.1, which was
 
23291
generated by GNU Autoconf 2.61.  Invocation command line was
 
23292
 
 
23293
  CONFIG_FILES    = $CONFIG_FILES
 
23294
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23295
  CONFIG_LINKS    = $CONFIG_LINKS
 
23296
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23297
  $ $0 $@
 
23298
 
 
23299
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
23300
"
 
23301
 
 
23302
_ACEOF
 
23303
 
 
23304
cat >>$CONFIG_STATUS <<_ACEOF
 
23305
# Files that config.status was made for.
 
23306
config_files="$ac_config_files"
 
23307
config_headers="$ac_config_headers"
 
23308
config_commands="$ac_config_commands"
 
23309
 
 
23310
_ACEOF
 
23311
 
 
23312
cat >>$CONFIG_STATUS <<\_ACEOF
 
23313
ac_cs_usage="\
 
23314
\`$as_me' instantiates files from templates according to the
 
23315
current configuration.
 
23316
 
 
23317
Usage: $0 [OPTIONS] [FILE]...
 
23318
 
 
23319
  -h, --help       print this help, then exit
 
23320
  -V, --version    print version number and configuration settings, then exit
 
23321
  -q, --quiet      do not print progress messages
 
23322
  -d, --debug      don't remove temporary files
 
23323
      --recheck    update $as_me by reconfiguring in the same conditions
 
23324
  --file=FILE[:TEMPLATE]
 
23325
                   instantiate the configuration file FILE
 
23326
  --header=FILE[:TEMPLATE]
 
23327
                   instantiate the configuration header FILE
 
23328
 
 
23329
Configuration files:
 
23330
$config_files
 
23331
 
 
23332
Configuration headers:
 
23333
$config_headers
 
23334
 
 
23335
Configuration commands:
 
23336
$config_commands
 
23337
 
 
23338
Report bugs to <bug-autoconf@gnu.org>."
 
23339
 
 
23340
_ACEOF
 
23341
cat >>$CONFIG_STATUS <<_ACEOF
 
23342
ac_cs_version="\\
 
23343
cd-compiz-icon config.status 0.0.1
 
23344
configured by $0, generated by GNU Autoconf 2.61,
 
23345
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
23346
 
 
23347
Copyright (C) 2006 Free Software Foundation, Inc.
 
23348
This config.status script is free software; the Free Software Foundation
 
23349
gives unlimited permission to copy, distribute and modify it."
 
23350
 
 
23351
ac_pwd='$ac_pwd'
 
23352
srcdir='$srcdir'
 
23353
INSTALL='$INSTALL'
 
23354
_ACEOF
 
23355
 
 
23356
cat >>$CONFIG_STATUS <<\_ACEOF
 
23357
# If no file are specified by the user, then we need to provide default
 
23358
# value.  By we need to know if files were specified by the user.
 
23359
ac_need_defaults=:
 
23360
while test $# != 0
 
23361
do
 
23362
  case $1 in
 
23363
  --*=*)
 
23364
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
23365
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
23366
    ac_shift=:
 
23367
    ;;
 
23368
  *)
 
23369
    ac_option=$1
 
23370
    ac_optarg=$2
 
23371
    ac_shift=shift
 
23372
    ;;
 
23373
  esac
 
23374
 
 
23375
  case $ac_option in
 
23376
  # Handling of the options.
 
23377
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
23378
    ac_cs_recheck=: ;;
 
23379
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
23380
    echo "$ac_cs_version"; exit ;;
 
23381
  --debug | --debu | --deb | --de | --d | -d )
 
23382
    debug=: ;;
 
23383
  --file | --fil | --fi | --f )
 
23384
    $ac_shift
 
23385
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
23386
    ac_need_defaults=false;;
 
23387
  --header | --heade | --head | --hea )
 
23388
    $ac_shift
 
23389
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
23390
    ac_need_defaults=false;;
 
23391
  --he | --h)
 
23392
    # Conflict between --help and --header
 
23393
    { echo "$as_me: error: ambiguous option: $1
 
23394
Try \`$0 --help' for more information." >&2
 
23395
   { (exit 1); exit 1; }; };;
 
23396
  --help | --hel | -h )
 
23397
    echo "$ac_cs_usage"; exit ;;
 
23398
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23399
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23400
    ac_cs_silent=: ;;
 
23401
 
 
23402
  # This is an error.
 
23403
  -*) { echo "$as_me: error: unrecognized option: $1
 
23404
Try \`$0 --help' for more information." >&2
 
23405
   { (exit 1); exit 1; }; } ;;
 
23406
 
 
23407
  *) ac_config_targets="$ac_config_targets $1"
 
23408
     ac_need_defaults=false ;;
 
23409
 
 
23410
  esac
 
23411
  shift
 
23412
done
 
23413
 
 
23414
ac_configure_extra_args=
 
23415
 
 
23416
if $ac_cs_silent; then
 
23417
  exec 6>/dev/null
 
23418
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23419
fi
 
23420
 
 
23421
_ACEOF
 
23422
cat >>$CONFIG_STATUS <<_ACEOF
 
23423
if \$ac_cs_recheck; then
 
23424
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23425
  CONFIG_SHELL=$SHELL
 
23426
  export CONFIG_SHELL
 
23427
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23428
fi
 
23429
 
 
23430
_ACEOF
 
23431
cat >>$CONFIG_STATUS <<\_ACEOF
 
23432
exec 5>>config.log
 
23433
{
 
23434
  echo
 
23435
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
23436
@%:@@%:@ Running $as_me. @%:@@%:@
 
23437
_ASBOX
 
23438
  echo "$ac_log"
 
23439
} >&5
 
23440
 
 
23441
_ACEOF
 
23442
cat >>$CONFIG_STATUS <<_ACEOF
 
23443
#
 
23444
# INIT-COMMANDS
 
23445
#
 
23446
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23447
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
 
23448
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
 
23449
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
 
23450
 
 
23451
 
 
23452
_ACEOF
 
23453
 
 
23454
cat >>$CONFIG_STATUS <<\_ACEOF
 
23455
 
 
23456
# Handling of arguments.
 
23457
for ac_config_target in $ac_config_targets
 
23458
do
 
23459
  case $ac_config_target in
 
23460
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
23461
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23462
    "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
 
23463
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
23464
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23465
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
23466
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
23467
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
 
23468
    "data/readme") CONFIG_FILES="$CONFIG_FILES data/readme" ;;
 
23469
    "data/compiz-icon.conf") CONFIG_FILES="$CONFIG_FILES data/compiz-icon.conf" ;;
 
23470
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
23471
 
 
23472
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23473
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23474
   { (exit 1); exit 1; }; };;
 
23475
  esac
 
23476
done
 
23477
 
 
23478
 
 
23479
# If the user did not use the arguments to specify the items to instantiate,
 
23480
# then the envvar interface is used.  Set only those that are not.
 
23481
# We use the long form for the default assignment because of an extremely
 
23482
# bizarre bug on SunOS 4.1.3.
 
23483
if $ac_need_defaults; then
 
23484
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23485
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23486
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23487
fi
 
23488
 
 
23489
# Have a temporary directory for convenience.  Make it in the build tree
 
23490
# simply because there is no reason against having it here, and in addition,
 
23491
# creating and moving files from /tmp can sometimes cause problems.
 
23492
# Hook for its removal unless debugging.
 
23493
# Note that there is a small window in which the directory will not be cleaned:
 
23494
# after its creation but before its name has been assigned to `$tmp'.
 
23495
$debug ||
 
23496
{
 
23497
  tmp=
 
23498
  trap 'exit_status=$?
 
23499
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
23500
' 0
 
23501
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23502
}
 
23503
# Create a (secure) tmp directory for tmp files.
 
23504
 
 
23505
{
 
23506
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
23507
  test -n "$tmp" && test -d "$tmp"
 
23508
}  ||
 
23509
{
 
23510
  tmp=./conf$$-$RANDOM
 
23511
  (umask 077 && mkdir "$tmp")
 
23512
} ||
 
23513
{
 
23514
   echo "$me: cannot create a temporary directory in ." >&2
 
23515
   { (exit 1); exit 1; }
 
23516
}
 
23517
 
 
23518
#
 
23519
# Set up the sed scripts for CONFIG_FILES section.
 
23520
#
 
23521
 
 
23522
# No need to generate the scripts if there are no CONFIG_FILES.
 
23523
# This happens for instance when ./config.status config.h
 
23524
if test -n "$CONFIG_FILES"; then
 
23525
 
 
23526
_ACEOF
 
23527
 
 
23528
 
 
23529
 
 
23530
ac_delim='%!_!# '
 
23531
for ac_last_try in false false false false false :; do
 
23532
  cat >conf$$subs.sed <<_ACEOF
 
23533
SHELL!$SHELL$ac_delim
 
23534
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
23535
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
23536
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
23537
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
23538
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
23539
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
23540
exec_prefix!$exec_prefix$ac_delim
 
23541
prefix!$prefix$ac_delim
 
23542
program_transform_name!$program_transform_name$ac_delim
 
23543
bindir!$bindir$ac_delim
 
23544
sbindir!$sbindir$ac_delim
 
23545
libexecdir!$libexecdir$ac_delim
 
23546
datarootdir!$datarootdir$ac_delim
 
23547
datadir!$datadir$ac_delim
 
23548
sysconfdir!$sysconfdir$ac_delim
 
23549
sharedstatedir!$sharedstatedir$ac_delim
 
23550
localstatedir!$localstatedir$ac_delim
 
23551
includedir!$includedir$ac_delim
 
23552
oldincludedir!$oldincludedir$ac_delim
 
23553
docdir!$docdir$ac_delim
 
23554
infodir!$infodir$ac_delim
 
23555
htmldir!$htmldir$ac_delim
 
23556
dvidir!$dvidir$ac_delim
 
23557
pdfdir!$pdfdir$ac_delim
 
23558
psdir!$psdir$ac_delim
 
23559
libdir!$libdir$ac_delim
 
23560
localedir!$localedir$ac_delim
 
23561
mandir!$mandir$ac_delim
 
23562
DEFS!$DEFS$ac_delim
 
23563
ECHO_C!$ECHO_C$ac_delim
 
23564
ECHO_N!$ECHO_N$ac_delim
 
23565
ECHO_T!$ECHO_T$ac_delim
 
23566
LIBS!$LIBS$ac_delim
 
23567
build_alias!$build_alias$ac_delim
 
23568
host_alias!$host_alias$ac_delim
 
23569
target_alias!$target_alias$ac_delim
 
23570
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
23571
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
23572
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
23573
CYGPATH_W!$CYGPATH_W$ac_delim
 
23574
PACKAGE!$PACKAGE$ac_delim
 
23575
VERSION!$VERSION$ac_delim
 
23576
ACLOCAL!$ACLOCAL$ac_delim
 
23577
AUTOCONF!$AUTOCONF$ac_delim
 
23578
AUTOMAKE!$AUTOMAKE$ac_delim
 
23579
AUTOHEADER!$AUTOHEADER$ac_delim
 
23580
MAKEINFO!$MAKEINFO$ac_delim
 
23581
install_sh!$install_sh$ac_delim
 
23582
STRIP!$STRIP$ac_delim
 
23583
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
23584
mkdir_p!$mkdir_p$ac_delim
 
23585
AWK!$AWK$ac_delim
 
23586
SET_MAKE!$SET_MAKE$ac_delim
 
23587
am__leading_dot!$am__leading_dot$ac_delim
 
23588
AMTAR!$AMTAR$ac_delim
 
23589
am__tar!$am__tar$ac_delim
 
23590
am__untar!$am__untar$ac_delim
 
23591
build!$build$ac_delim
 
23592
build_cpu!$build_cpu$ac_delim
 
23593
build_vendor!$build_vendor$ac_delim
 
23594
build_os!$build_os$ac_delim
 
23595
host!$host$ac_delim
 
23596
host_cpu!$host_cpu$ac_delim
 
23597
host_vendor!$host_vendor$ac_delim
 
23598
host_os!$host_os$ac_delim
 
23599
CC!$CC$ac_delim
 
23600
CFLAGS!$CFLAGS$ac_delim
 
23601
LDFLAGS!$LDFLAGS$ac_delim
 
23602
CPPFLAGS!$CPPFLAGS$ac_delim
 
23603
ac_ct_CC!$ac_ct_CC$ac_delim
 
23604
EXEEXT!$EXEEXT$ac_delim
 
23605
OBJEXT!$OBJEXT$ac_delim
 
23606
DEPDIR!$DEPDIR$ac_delim
 
23607
am__include!$am__include$ac_delim
 
23608
am__quote!$am__quote$ac_delim
 
23609
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
23610
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
23611
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
23612
CCDEPMODE!$CCDEPMODE$ac_delim
 
23613
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
23614
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
23615
SED!$SED$ac_delim
 
23616
GREP!$GREP$ac_delim
 
23617
EGREP!$EGREP$ac_delim
 
23618
LN_S!$LN_S$ac_delim
 
23619
ECHO!$ECHO$ac_delim
 
23620
AR!$AR$ac_delim
 
23621
RANLIB!$RANLIB$ac_delim
 
23622
CPP!$CPP$ac_delim
 
23623
CXX!$CXX$ac_delim
 
23624
CXXFLAGS!$CXXFLAGS$ac_delim
 
23625
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
23626
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
23627
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
23628
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
23629
CXXCPP!$CXXCPP$ac_delim
 
23630
_ACEOF
 
23631
 
 
23632
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
23633
    break
 
23634
  elif $ac_last_try; then
 
23635
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23636
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23637
   { (exit 1); exit 1; }; }
 
23638
  else
 
23639
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23640
  fi
 
23641
done
 
23642
 
 
23643
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23644
if test -n "$ac_eof"; then
 
23645
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23646
  ac_eof=`expr $ac_eof + 1`
 
23647
fi
 
23648
 
 
23649
cat >>$CONFIG_STATUS <<_ACEOF
 
23650
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
23651
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23652
_ACEOF
 
23653
sed '
 
23654
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23655
s/^/s,@/; s/!/@,|#_!!_#|/
 
23656
:n
 
23657
t n
 
23658
s/'"$ac_delim"'$/,g/; t
 
23659
s/$/\\/; p
 
23660
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23661
' >>$CONFIG_STATUS <conf$$subs.sed
 
23662
rm -f conf$$subs.sed
 
23663
cat >>$CONFIG_STATUS <<_ACEOF
 
23664
CEOF$ac_eof
 
23665
_ACEOF
 
23666
 
 
23667
 
 
23668
ac_delim='%!_!# '
 
23669
for ac_last_try in false false false false false :; do
 
23670
  cat >conf$$subs.sed <<_ACEOF
 
23671
F77!$F77$ac_delim
 
23672
FFLAGS!$FFLAGS$ac_delim
 
23673
ac_ct_F77!$ac_ct_F77$ac_delim
 
23674
LIBTOOL!$LIBTOOL$ac_delim
 
23675
INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
 
23676
INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
 
23677
INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
 
23678
INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
 
23679
INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
 
23680
INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
 
23681
INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
 
23682
INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
 
23683
INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
 
23684
INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
 
23685
INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
 
23686
INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
 
23687
INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
 
23688
INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
 
23689
INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
 
23690
INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
 
23691
INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
 
23692
INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
 
23693
INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
 
23694
INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
 
23695
INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
 
23696
INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
 
23697
INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
 
23698
ALL_LINGUAS!$ALL_LINGUAS$ac_delim
 
23699
DATADIRNAME!$DATADIRNAME$ac_delim
 
23700
USE_NLS!$USE_NLS$ac_delim
 
23701
MSGFMT!$MSGFMT$ac_delim
 
23702
MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 
23703
GMSGFMT!$GMSGFMT$ac_delim
 
23704
XGETTEXT!$XGETTEXT$ac_delim
 
23705
CATALOGS!$CATALOGS$ac_delim
 
23706
CATOBJEXT!$CATOBJEXT$ac_delim
 
23707
GMOFILES!$GMOFILES$ac_delim
 
23708
INSTOBJEXT!$INSTOBJEXT$ac_delim
 
23709
INTLLIBS!$INTLLIBS$ac_delim
 
23710
PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 
23711
PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 
23712
POFILES!$POFILES$ac_delim
 
23713
POSUB!$POSUB$ac_delim
 
23714
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 
23715
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 
23716
pkgdatadir!$pkgdatadir$ac_delim
 
23717
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
23718
PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
 
23719
PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
 
23720
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
 
23721
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
23722
_ACEOF
 
23723
 
 
23724
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
 
23725
    break
 
23726
  elif $ac_last_try; then
 
23727
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23728
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23729
   { (exit 1); exit 1; }; }
 
23730
  else
 
23731
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23732
  fi
 
23733
done
 
23734
 
 
23735
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23736
if test -n "$ac_eof"; then
 
23737
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23738
  ac_eof=`expr $ac_eof + 1`
 
23739
fi
 
23740
 
 
23741
cat >>$CONFIG_STATUS <<_ACEOF
 
23742
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
23743
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
23744
_ACEOF
 
23745
sed '
 
23746
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23747
s/^/s,@/; s/!/@,|#_!!_#|/
 
23748
:n
 
23749
t n
 
23750
s/'"$ac_delim"'$/,g/; t
 
23751
s/$/\\/; p
 
23752
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23753
' >>$CONFIG_STATUS <conf$$subs.sed
 
23754
rm -f conf$$subs.sed
 
23755
cat >>$CONFIG_STATUS <<_ACEOF
 
23756
:end
 
23757
s/|#_!!_#|//g
 
23758
CEOF$ac_eof
 
23759
_ACEOF
 
23760
 
 
23761
 
 
23762
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
23763
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
23764
# trailing colons and then remove the whole line if VPATH becomes empty
 
23765
# (actually we leave an empty line to preserve line numbers).
 
23766
if test "x$srcdir" = x.; then
 
23767
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
23768
s/:*\$(srcdir):*/:/
 
23769
s/:*\${srcdir}:*/:/
 
23770
s/:*@srcdir@:*/:/
 
23771
s/^\([^=]*=[     ]*\):*/\1/
 
23772
s/:*$//
 
23773
s/^[^=]*=[       ]*$//
 
23774
}'
 
23775
fi
 
23776
 
 
23777
cat >>$CONFIG_STATUS <<\_ACEOF
 
23778
fi # test -n "$CONFIG_FILES"
 
23779
 
 
23780
 
 
23781
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
23782
do
 
23783
  case $ac_tag in
 
23784
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
23785
  esac
 
23786
  case $ac_mode$ac_tag in
 
23787
  :[FHL]*:*);;
 
23788
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
23789
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
23790
   { (exit 1); exit 1; }; };;
 
23791
  :[FH]-) ac_tag=-:-;;
 
23792
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
23793
  esac
 
23794
  ac_save_IFS=$IFS
 
23795
  IFS=:
 
23796
  set x $ac_tag
 
23797
  IFS=$ac_save_IFS
 
23798
  shift
 
23799
  ac_file=$1
 
23800
  shift
 
23801
 
 
23802
  case $ac_mode in
 
23803
  :L) ac_source=$1;;
 
23804
  :[FH])
 
23805
    ac_file_inputs=
 
23806
    for ac_f
 
23807
    do
 
23808
      case $ac_f in
 
23809
      -) ac_f="$tmp/stdin";;
 
23810
      *) # Look for the file first in the build tree, then in the source tree
 
23811
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
23812
         # because $ac_f cannot contain `:'.
 
23813
         test -f "$ac_f" ||
 
23814
           case $ac_f in
 
23815
           [\\/$]*) false;;
 
23816
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
23817
           esac ||
 
23818
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
23819
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
23820
   { (exit 1); exit 1; }; };;
 
23821
      esac
 
23822
      ac_file_inputs="$ac_file_inputs $ac_f"
 
23823
    done
 
23824
 
 
23825
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23826
    # use $as_me), people would be surprised to read:
 
23827
    #    /* config.h.  Generated by config.status.  */
 
23828
    configure_input="Generated from "`IFS=:
 
23829
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
23830
    if test x"$ac_file" != x-; then
 
23831
      configure_input="$ac_file.  $configure_input"
 
23832
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23833
echo "$as_me: creating $ac_file" >&6;}
 
23834
    fi
 
23835
 
 
23836
    case $ac_tag in
 
23837
    *:-:* | *:-) cat >"$tmp/stdin";;
 
23838
    esac
 
23839
    ;;
 
23840
  esac
 
23841
 
 
23842
  ac_dir=`$as_dirname -- "$ac_file" ||
 
23843
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23844
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23845
         X"$ac_file" : 'X\(//\)$' \| \
 
23846
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23847
echo X"$ac_file" |
 
23848
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23849
            s//\1/
 
23850
            q
 
23851
          }
 
23852
          /^X\(\/\/\)[^/].*/{
 
23853
            s//\1/
 
23854
            q
 
23855
          }
 
23856
          /^X\(\/\/\)$/{
 
23857
            s//\1/
 
23858
            q
 
23859
          }
 
23860
          /^X\(\/\).*/{
 
23861
            s//\1/
 
23862
            q
 
23863
          }
 
23864
          s/.*/./; q'`
 
23865
  { as_dir="$ac_dir"
 
23866
  case $as_dir in #(
 
23867
  -*) as_dir=./$as_dir;;
 
23868
  esac
 
23869
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23870
    as_dirs=
 
23871
    while :; do
 
23872
      case $as_dir in #(
 
23873
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
23874
      *) as_qdir=$as_dir;;
 
23875
      esac
 
23876
      as_dirs="'$as_qdir' $as_dirs"
 
23877
      as_dir=`$as_dirname -- "$as_dir" ||
 
23878
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23879
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23880
         X"$as_dir" : 'X\(//\)$' \| \
 
23881
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23882
echo X"$as_dir" |
 
23883
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23884
            s//\1/
 
23885
            q
 
23886
          }
 
23887
          /^X\(\/\/\)[^/].*/{
 
23888
            s//\1/
 
23889
            q
 
23890
          }
 
23891
          /^X\(\/\/\)$/{
 
23892
            s//\1/
 
23893
            q
 
23894
          }
 
23895
          /^X\(\/\).*/{
 
23896
            s//\1/
 
23897
            q
 
23898
          }
 
23899
          s/.*/./; q'`
 
23900
      test -d "$as_dir" && break
 
23901
    done
 
23902
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23903
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23904
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23905
   { (exit 1); exit 1; }; }; }
 
23906
  ac_builddir=.
 
23907
 
 
23908
case "$ac_dir" in
 
23909
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23910
*)
 
23911
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23912
  # A ".." for each directory in $ac_dir_suffix.
 
23913
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
23914
  case $ac_top_builddir_sub in
 
23915
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23916
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23917
  esac ;;
 
23918
esac
 
23919
ac_abs_top_builddir=$ac_pwd
 
23920
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23921
# for backward compatibility:
 
23922
ac_top_builddir=$ac_top_build_prefix
 
23923
 
 
23924
case $srcdir in
 
23925
  .)  # We are building in place.
 
23926
    ac_srcdir=.
 
23927
    ac_top_srcdir=$ac_top_builddir_sub
 
23928
    ac_abs_top_srcdir=$ac_pwd ;;
 
23929
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23930
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23931
    ac_top_srcdir=$srcdir
 
23932
    ac_abs_top_srcdir=$srcdir ;;
 
23933
  *) # Relative name.
 
23934
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23935
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23936
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23937
esac
 
23938
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23939
 
 
23940
 
 
23941
  case $ac_mode in
 
23942
  :F)
 
23943
  #
 
23944
  # CONFIG_FILE
 
23945
  #
 
23946
 
 
23947
  case $INSTALL in
 
23948
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23949
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
23950
  esac
 
23951
_ACEOF
 
23952
 
 
23953
cat >>$CONFIG_STATUS <<\_ACEOF
 
23954
# If the template does not know about datarootdir, expand it.
 
23955
# FIXME: This hack should be removed a few years after 2.60.
 
23956
ac_datarootdir_hack=; ac_datarootdir_seen=
 
23957
 
 
23958
case `sed -n '/datarootdir/ {
 
23959
  p
 
23960
  q
 
23961
}
 
23962
/@datadir@/p
 
23963
/@docdir@/p
 
23964
/@infodir@/p
 
23965
/@localedir@/p
 
23966
/@mandir@/p
 
23967
' $ac_file_inputs` in
 
23968
*datarootdir*) ac_datarootdir_seen=yes;;
 
23969
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
23970
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
23971
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
23972
_ACEOF
 
23973
cat >>$CONFIG_STATUS <<_ACEOF
 
23974
  ac_datarootdir_hack='
 
23975
  s&@datadir@&$datadir&g
 
23976
  s&@docdir@&$docdir&g
 
23977
  s&@infodir@&$infodir&g
 
23978
  s&@localedir@&$localedir&g
 
23979
  s&@mandir@&$mandir&g
 
23980
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
23981
esac
 
23982
_ACEOF
 
23983
 
 
23984
# Neutralize VPATH when `$srcdir' = `.'.
 
23985
# Shell code in configure.ac might set extrasub.
 
23986
# FIXME: do we really want to maintain this feature?
 
23987
cat >>$CONFIG_STATUS <<_ACEOF
 
23988
  sed "$ac_vpsub
 
23989
$extrasub
 
23990
_ACEOF
 
23991
cat >>$CONFIG_STATUS <<\_ACEOF
 
23992
:t
 
23993
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23994
s&@configure_input@&$configure_input&;t t
 
23995
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
23996
s&@srcdir@&$ac_srcdir&;t t
 
23997
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
23998
s&@top_srcdir@&$ac_top_srcdir&;t t
 
23999
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
24000
s&@builddir@&$ac_builddir&;t t
 
24001
s&@abs_builddir@&$ac_abs_builddir&;t t
 
24002
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
24003
s&@INSTALL@&$ac_INSTALL&;t t
 
24004
$ac_datarootdir_hack
 
24005
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
24006
 
 
24007
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
24008
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
24009
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
24010
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24011
which seems to be undefined.  Please make sure it is defined." >&5
 
24012
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24013
which seems to be undefined.  Please make sure it is defined." >&2;}
 
24014
 
 
24015
  rm -f "$tmp/stdin"
 
24016
  case $ac_file in
 
24017
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
24018
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
24019
  esac
 
24020
 ;;
 
24021
  :H)
 
24022
  #
 
24023
  # CONFIG_HEADER
 
24024
  #
 
24025
_ACEOF
 
24026
 
 
24027
# Transform confdefs.h into a sed script `conftest.defines', that
 
24028
# substitutes the proper values into config.h.in to produce config.h.
 
24029
rm -f conftest.defines conftest.tail
 
24030
# First, append a space to every undef/define line, to ease matching.
 
24031
echo 's/$/ /' >conftest.defines
 
24032
# Then, protect against being on the right side of a sed subst, or in
 
24033
# an unquoted here document, in config.status.  If some macros were
 
24034
# called several times there might be several #defines for the same
 
24035
# symbol, which is useless.  But do not sort them, since the last
 
24036
# AC_DEFINE must be honored.
 
24037
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
24038
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
24039
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
24040
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
24041
# just an empty string.
 
24042
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
24043
ac_dB='\\)[      (].*,\\1define\\2'
 
24044
ac_dC=' '
 
24045
ac_dD=' ,'
 
24046
 
 
24047
uniq confdefs.h |
 
24048
  sed -n '
 
24049
        t rset
 
24050
        :rset
 
24051
        s/^[     ]*#[    ]*define[       ][      ]*//
 
24052
        t ok
 
24053
        d
 
24054
        :ok
 
24055
        s/[\\&,]/\\&/g
 
24056
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
24057
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
24058
  ' >>conftest.defines
 
24059
 
 
24060
# Remove the space that was appended to ease matching.
 
24061
# Then replace #undef with comments.  This is necessary, for
 
24062
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
24063
# on some systems where configure will not decide to define it.
 
24064
# (The regexp can be short, since the line contains either #define or #undef.)
 
24065
echo 's/ $//
 
24066
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
24067
 
 
24068
# Break up conftest.defines:
 
24069
ac_max_sed_lines=50
 
24070
 
 
24071
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
24072
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
24073
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
24074
# et cetera.
 
24075
ac_in='$ac_file_inputs'
 
24076
ac_out='"$tmp/out1"'
 
24077
ac_nxt='"$tmp/out2"'
 
24078
 
 
24079
while :
 
24080
do
 
24081
  # Write a here document:
 
24082
    cat >>$CONFIG_STATUS <<_ACEOF
 
24083
    # First, check the format of the line:
 
24084
    cat >"\$tmp/defines.sed" <<\\CEOF
 
24085
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
24086
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
24087
b
 
24088
:def
 
24089
_ACEOF
 
24090
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
24091
  echo 'CEOF
 
24092
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
24093
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
24094
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
24095
  grep . conftest.tail >/dev/null || break
 
24096
  rm -f conftest.defines
 
24097
  mv conftest.tail conftest.defines
 
24098
done
 
24099
rm -f conftest.defines conftest.tail
 
24100
 
 
24101
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
24102
cat >>$CONFIG_STATUS <<\_ACEOF
 
24103
  if test x"$ac_file" != x-; then
 
24104
    echo "/* $configure_input  */" >"$tmp/config.h"
 
24105
    cat "$ac_result" >>"$tmp/config.h"
 
24106
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
24107
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
24108
echo "$as_me: $ac_file is unchanged" >&6;}
 
24109
    else
 
24110
      rm -f $ac_file
 
24111
      mv "$tmp/config.h" $ac_file
 
24112
    fi
 
24113
  else
 
24114
    echo "/* $configure_input  */"
 
24115
    cat "$ac_result"
 
24116
  fi
 
24117
  rm -f "$tmp/out12"
 
24118
# Compute $ac_file's index in $config_headers.
 
24119
_am_stamp_count=1
 
24120
for _am_header in $config_headers :; do
 
24121
  case $_am_header in
 
24122
    $ac_file | $ac_file:* )
 
24123
      break ;;
 
24124
    * )
 
24125
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
24126
  esac
 
24127
done
 
24128
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
24129
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24130
         X$ac_file : 'X\(//\)[^/]' \| \
 
24131
         X$ac_file : 'X\(//\)$' \| \
 
24132
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
24133
echo X$ac_file |
 
24134
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24135
            s//\1/
 
24136
            q
 
24137
          }
 
24138
          /^X\(\/\/\)[^/].*/{
 
24139
            s//\1/
 
24140
            q
 
24141
          }
 
24142
          /^X\(\/\/\)$/{
 
24143
            s//\1/
 
24144
            q
 
24145
          }
 
24146
          /^X\(\/\).*/{
 
24147
            s//\1/
 
24148
            q
 
24149
          }
 
24150
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
24151
 ;;
 
24152
  
 
24153
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
24154
echo "$as_me: executing $ac_file commands" >&6;}
 
24155
 ;;
 
24156
  esac
 
24157
 
 
24158
 
 
24159
  case $ac_file$ac_mode in
 
24160
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
24161
  # Strip MF so we end up with the name of the file.
 
24162
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
24163
  # Check whether this is an Automake generated Makefile or not.
 
24164
  # We used to match only the files named `Makefile.in', but
 
24165
  # some people rename them; so instead we look at the file content.
 
24166
  # Grep'ing the first line is not enough: some people post-process
 
24167
  # each Makefile.in and add a new line on top of each file to say so.
 
24168
  # So let's grep whole file.
 
24169
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
24170
    dirpart=`$as_dirname -- "$mf" ||
 
24171
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24172
         X"$mf" : 'X\(//\)[^/]' \| \
 
24173
         X"$mf" : 'X\(//\)$' \| \
 
24174
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
24175
echo X"$mf" |
 
24176
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24177
            s//\1/
 
24178
            q
 
24179
          }
 
24180
          /^X\(\/\/\)[^/].*/{
 
24181
            s//\1/
 
24182
            q
 
24183
          }
 
24184
          /^X\(\/\/\)$/{
 
24185
            s//\1/
 
24186
            q
 
24187
          }
 
24188
          /^X\(\/\).*/{
 
24189
            s//\1/
 
24190
            q
 
24191
          }
 
24192
          s/.*/./; q'`
 
24193
  else
 
24194
    continue
 
24195
  fi
 
24196
  # Extract the definition of DEPDIR, am__include, and am__quote
 
24197
  # from the Makefile without running `make'.
 
24198
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
24199
  test -z "$DEPDIR" && continue
 
24200
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
24201
  test -z "am__include" && continue
 
24202
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
24203
  # When using ansi2knr, U may be empty or an underscore; expand it
 
24204
  U=`sed -n 's/^U = //p' < "$mf"`
 
24205
  # Find all dependency output files, they are included files with
 
24206
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
24207
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
24208
  # expansion.
 
24209
  for file in `sed -n "
 
24210
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
24211
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
24212
    # Make sure the directory exists.
 
24213
    test -f "$dirpart/$file" && continue
 
24214
    fdir=`$as_dirname -- "$file" ||
 
24215
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24216
         X"$file" : 'X\(//\)[^/]' \| \
 
24217
         X"$file" : 'X\(//\)$' \| \
 
24218
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
24219
echo X"$file" |
 
24220
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24221
            s//\1/
 
24222
            q
 
24223
          }
 
24224
          /^X\(\/\/\)[^/].*/{
 
24225
            s//\1/
 
24226
            q
 
24227
          }
 
24228
          /^X\(\/\/\)$/{
 
24229
            s//\1/
 
24230
            q
 
24231
          }
 
24232
          /^X\(\/\).*/{
 
24233
            s//\1/
 
24234
            q
 
24235
          }
 
24236
          s/.*/./; q'`
 
24237
    { as_dir=$dirpart/$fdir
 
24238
  case $as_dir in #(
 
24239
  -*) as_dir=./$as_dir;;
 
24240
  esac
 
24241
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
24242
    as_dirs=
 
24243
    while :; do
 
24244
      case $as_dir in #(
 
24245
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
24246
      *) as_qdir=$as_dir;;
 
24247
      esac
 
24248
      as_dirs="'$as_qdir' $as_dirs"
 
24249
      as_dir=`$as_dirname -- "$as_dir" ||
 
24250
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24251
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24252
         X"$as_dir" : 'X\(//\)$' \| \
 
24253
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
24254
echo X"$as_dir" |
 
24255
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24256
            s//\1/
 
24257
            q
 
24258
          }
 
24259
          /^X\(\/\/\)[^/].*/{
 
24260
            s//\1/
 
24261
            q
 
24262
          }
 
24263
          /^X\(\/\/\)$/{
 
24264
            s//\1/
 
24265
            q
 
24266
          }
 
24267
          /^X\(\/\).*/{
 
24268
            s//\1/
 
24269
            q
 
24270
          }
 
24271
          s/.*/./; q'`
 
24272
      test -d "$as_dir" && break
 
24273
    done
 
24274
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
24275
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
24276
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
24277
   { (exit 1); exit 1; }; }; }
 
24278
    # echo "creating $dirpart/$file"
 
24279
    echo '# dummy' > "$dirpart/$file"
 
24280
  done
 
24281
done
 
24282
 ;;
 
24283
    "intltool":C) 
 
24284
 
 
24285
for file in intltool-extract intltool-merge intltool-update; do
 
24286
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
 
24287
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
24288
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
 
24289
        < ${ac_aux_dir}/${file}.in > ${file}.out
 
24290
  if cmp -s ${file} ${file}.out 2>/dev/null; then
 
24291
    rm -f ${file}.out
 
24292
  else
 
24293
    mv -f ${file}.out ${file}
 
24294
  fi
 
24295
  chmod ugo+x ${file}
 
24296
  chmod u+w ${file}
 
24297
done
 
24298
 
 
24299
 ;;
 
24300
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
24301
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
24302
      esac ;;
 
24303
    "po/stamp-it":C) 
 
24304
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
24305
    >"po/stamp-it.tmp"
 
24306
    sed '/^#/d
 
24307
         s/^[[].*] *//
 
24308
         /^[    ]*$/d
 
24309
        '"s|^|  $ac_top_srcdir/|" \
 
24310
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
24311
    
 
24312
    if test ! -f "po/Makefile"; then
 
24313
      { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
 
24314
echo "$as_me: error: po/Makefile is not ready." >&2;}
 
24315
   { (exit 1); exit 1; }; }
 
24316
    fi
 
24317
    mv "po/Makefile" "po/Makefile.tmp"
 
24318
    sed '/^POTFILES =/,/[^\\]$/ {
 
24319
                /^POTFILES =/!d
 
24320
                r po/POTFILES
 
24321
          }
 
24322
         ' "po/Makefile.tmp" >"po/Makefile"
 
24323
    rm -f "po/Makefile.tmp"
 
24324
    mv "po/stamp-it.tmp" "po/stamp-it"
 
24325
   ;;
 
24326
 
 
24327
  esac
 
24328
done # for ac_tag
 
24329
 
 
24330
 
 
24331
{ (exit 0); exit 0; }
 
24332
_ACEOF
 
24333
chmod +x $CONFIG_STATUS
 
24334
ac_clean_files=$ac_clean_files_save
 
24335
 
 
24336
 
 
24337
# configure is writing to config.log, and then calls config.status.
 
24338
# config.status does its own redirection, appending to config.log.
 
24339
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24340
# by configure, so config.status won't be able to write to it; its
 
24341
# output is simply discarded.  So we exec the FD to /dev/null,
 
24342
# effectively closing config.log, so it can be properly (re)opened and
 
24343
# appended to by config.status.  When coming back to configure, we
 
24344
# need to make the FD available again.
 
24345
if test "$no_create" != yes; then
 
24346
  ac_cs_success=:
 
24347
  ac_config_status_args=
 
24348
  test "$silent" = yes &&
 
24349
    ac_config_status_args="$ac_config_status_args --quiet"
 
24350
  exec 5>/dev/null
 
24351
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24352
  exec 5>>config.log
 
24353
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24354
  # would make configure fail if this is the last instruction.
 
24355
  $ac_cs_success || { (exit 1); exit 1; }
 
24356
fi
 
24357