~ubuntu-branches/ubuntu/precise/graphviz/precise-security

« back to all changes in this revision

Viewing changes to .pc/50_remove_changelog_in/configure

  • Committer: Bazaar Package Importer
  • Author(s): David Claughton
  • Date: 2010-03-24 22:45:18 UTC
  • mfrom: (1.2.7 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100324224518-do441tthbqjaqjzd
Tags: 2.26.3-4
Add patch to fix segfault in circo. Backported from upstream snapshot
release.  Thanks to Francis Russell for his work on this.
(Closes: #575255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.63 for graphviz 2.26.3.
 
4
#
 
5
# Report bugs to <http://www.graphviz.org/>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
as_nl='
 
43
'
 
44
export as_nl
 
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
# Support unset when possible.
 
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
85
  as_unset=unset
 
86
else
 
87
  as_unset=false
 
88
fi
 
89
 
 
90
 
 
91
# IFS
 
92
# We need space, tab and new line, in precisely that order.  Quoting is
 
93
# there to prevent editors from complaining about space-tab.
 
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
95
# splitting by setting IFS to empty value.)
 
96
IFS=" ""        $as_nl"
 
97
 
 
98
# Find who we are.  Look in the path if we contain no directory separator.
 
99
case $0 in
 
100
  *[\\/]* ) as_myself=$0 ;;
 
101
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
102
for as_dir in $PATH
 
103
do
 
104
  IFS=$as_save_IFS
 
105
  test -z "$as_dir" && as_dir=.
 
106
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
107
done
 
108
IFS=$as_save_IFS
 
109
 
 
110
     ;;
 
111
esac
 
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
113
# in which case we are not to be found in the path.
 
114
if test "x$as_myself" = x; then
 
115
  as_myself=$0
 
116
fi
 
117
if test ! -f "$as_myself"; then
 
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
119
  { (exit 1); exit 1; }
 
120
fi
 
121
 
 
122
# Work around bugs in pre-3.0 UWIN ksh.
 
123
for as_var in ENV MAIL MAILPATH
 
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# Required to use basename.
 
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
138
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
139
  as_expr=expr
 
140
else
 
141
  as_expr=false
 
142
fi
 
143
 
 
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
145
  as_basename=basename
 
146
else
 
147
  as_basename=false
 
148
fi
 
149
 
 
150
 
 
151
# Name of the executable.
 
152
as_me=`$as_basename -- "$0" ||
 
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
154
         X"$0" : 'X\(//\)$' \| \
 
155
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
156
$as_echo X/"$0" |
 
157
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
158
            s//\1/
 
159
            q
 
160
          }
 
161
          /^X\/\(\/\/\)$/{
 
162
            s//\1/
 
163
            q
 
164
          }
 
165
          /^X\/\(\/\).*/{
 
166
            s//\1/
 
167
            q
 
168
          }
 
169
          s/.*/./; q'`
 
170
 
 
171
# CDPATH.
 
172
$as_unset CDPATH
 
173
 
 
174
 
 
175
if test "x$CONFIG_SHELL" = x; then
 
176
  if (eval ":") 2>/dev/null; then
 
177
  as_have_required=yes
 
178
else
 
179
  as_have_required=no
 
180
fi
 
181
 
 
182
  if test $as_have_required = yes &&     (eval ":
 
183
(as_func_return () {
 
184
  (exit \$1)
 
185
}
 
186
as_func_success () {
 
187
  as_func_return 0
 
188
}
 
189
as_func_failure () {
 
190
  as_func_return 1
 
191
}
 
192
as_func_ret_success () {
 
193
  return 0
 
194
}
 
195
as_func_ret_failure () {
 
196
  return 1
 
197
}
 
198
 
 
199
exitcode=0
 
200
if as_func_success; then
 
201
  :
 
202
else
 
203
  exitcode=1
 
204
  echo as_func_success failed.
 
205
fi
 
206
 
 
207
if as_func_failure; then
 
208
  exitcode=1
 
209
  echo as_func_failure succeeded.
 
210
fi
 
211
 
 
212
if as_func_ret_success; then
 
213
  :
 
214
else
 
215
  exitcode=1
 
216
  echo as_func_ret_success failed.
 
217
fi
 
218
 
 
219
if as_func_ret_failure; then
 
220
  exitcode=1
 
221
  echo as_func_ret_failure succeeded.
 
222
fi
 
223
 
 
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
225
  :
 
226
else
 
227
  exitcode=1
 
228
  echo positional parameters were not saved.
 
229
fi
 
230
 
 
231
test \$exitcode = 0) || { (exit 1); exit 1; }
 
232
 
 
233
(
 
234
  as_lineno_1=\$LINENO
 
235
  as_lineno_2=\$LINENO
 
236
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
237
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
238
") 2> /dev/null; then
 
239
  :
 
240
else
 
241
  as_candidate_shells=
 
242
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
244
do
 
245
  IFS=$as_save_IFS
 
246
  test -z "$as_dir" && as_dir=.
 
247
  case $as_dir in
 
248
         /*)
 
249
           for as_base in sh bash ksh sh5; do
 
250
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
251
           done;;
 
252
       esac
 
253
done
 
254
IFS=$as_save_IFS
 
255
 
 
256
 
 
257
      for as_shell in $as_candidate_shells $SHELL; do
 
258
         # Try only shells that exist, to save several forks.
 
259
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
260
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
_ASEOF
 
278
}; then
 
279
  CONFIG_SHELL=$as_shell
 
280
               as_have_required=yes
 
281
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
283
  emulate sh
 
284
  NULLCMD=:
 
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
286
  # is contrary to our usage.  Disable this feature.
 
287
  alias -g '${1+"$@"}'='"$@"'
 
288
  setopt NO_GLOB_SUBST
 
289
else
 
290
  case `(set -o) 2>/dev/null` in
 
291
  *posix*) set -o posix ;;
 
292
esac
 
293
 
 
294
fi
 
295
 
 
296
 
 
297
:
 
298
(as_func_return () {
 
299
  (exit $1)
 
300
}
 
301
as_func_success () {
 
302
  as_func_return 0
 
303
}
 
304
as_func_failure () {
 
305
  as_func_return 1
 
306
}
 
307
as_func_ret_success () {
 
308
  return 0
 
309
}
 
310
as_func_ret_failure () {
 
311
  return 1
 
312
}
 
313
 
 
314
exitcode=0
 
315
if as_func_success; then
 
316
  :
 
317
else
 
318
  exitcode=1
 
319
  echo as_func_success failed.
 
320
fi
 
321
 
 
322
if as_func_failure; then
 
323
  exitcode=1
 
324
  echo as_func_failure succeeded.
 
325
fi
 
326
 
 
327
if as_func_ret_success; then
 
328
  :
 
329
else
 
330
  exitcode=1
 
331
  echo as_func_ret_success failed.
 
332
fi
 
333
 
 
334
if as_func_ret_failure; then
 
335
  exitcode=1
 
336
  echo as_func_ret_failure succeeded.
 
337
fi
 
338
 
 
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
340
  :
 
341
else
 
342
  exitcode=1
 
343
  echo positional parameters were not saved.
 
344
fi
 
345
 
 
346
test $exitcode = 0) || { (exit 1); exit 1; }
 
347
 
 
348
(
 
349
  as_lineno_1=$LINENO
 
350
  as_lineno_2=$LINENO
 
351
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
352
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
353
 
 
354
_ASEOF
 
355
}; then
 
356
  break
 
357
fi
 
358
 
 
359
fi
 
360
 
 
361
      done
 
362
 
 
363
      if test "x$CONFIG_SHELL" != x; then
 
364
  for as_var in BASH_ENV ENV
 
365
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
366
        done
 
367
        export CONFIG_SHELL
 
368
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
369
fi
 
370
 
 
371
 
 
372
    if test $as_have_required = no; then
 
373
  echo This script requires a shell more modern than all the
 
374
      echo shells that I found on your system.  Please install a
 
375
      echo modern shell, or manually run the script under such a
 
376
      echo shell if you do have one.
 
377
      { (exit 1); exit 1; }
 
378
fi
 
379
 
 
380
 
 
381
fi
 
382
 
 
383
fi
 
384
 
 
385
 
 
386
 
 
387
(eval "as_func_return () {
 
388
  (exit \$1)
 
389
}
 
390
as_func_success () {
 
391
  as_func_return 0
 
392
}
 
393
as_func_failure () {
 
394
  as_func_return 1
 
395
}
 
396
as_func_ret_success () {
 
397
  return 0
 
398
}
 
399
as_func_ret_failure () {
 
400
  return 1
 
401
}
 
402
 
 
403
exitcode=0
 
404
if as_func_success; then
 
405
  :
 
406
else
 
407
  exitcode=1
 
408
  echo as_func_success failed.
 
409
fi
 
410
 
 
411
if as_func_failure; then
 
412
  exitcode=1
 
413
  echo as_func_failure succeeded.
 
414
fi
 
415
 
 
416
if as_func_ret_success; then
 
417
  :
 
418
else
 
419
  exitcode=1
 
420
  echo as_func_ret_success failed.
 
421
fi
 
422
 
 
423
if as_func_ret_failure; then
 
424
  exitcode=1
 
425
  echo as_func_ret_failure succeeded.
 
426
fi
 
427
 
 
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
429
  :
 
430
else
 
431
  exitcode=1
 
432
  echo positional parameters were not saved.
 
433
fi
 
434
 
 
435
test \$exitcode = 0") || {
 
436
  echo No shell found that supports shell functions.
 
437
  echo Please tell bug-autoconf@gnu.org about your system,
 
438
  echo including any error possibly output before this message.
 
439
  echo This can help us improve future autoconf versions.
 
440
  echo Configuration will now proceed without shell functions.
 
441
}
 
442
 
 
443
 
 
444
 
 
445
  as_lineno_1=$LINENO
 
446
  as_lineno_2=$LINENO
 
447
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
448
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
449
 
 
450
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
451
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
452
  # line-number line after each line using $LINENO; the second 'sed'
 
453
  # does the real work.  The second script uses 'N' to pair each
 
454
  # line-number line with the line containing $LINENO, and appends
 
455
  # trailing '-' during substitution so that $LINENO is not a special
 
456
  # case at line end.
 
457
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
458
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
459
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
460
  sed -n '
 
461
    p
 
462
    /[$]LINENO/=
 
463
  ' <$as_myself |
 
464
    sed '
 
465
      s/[$]LINENO.*/&-/
 
466
      t lineno
 
467
      b
 
468
      :lineno
 
469
      N
 
470
      :loop
 
471
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
472
      t loop
 
473
      s/-\n.*//
 
474
    ' >$as_me.lineno &&
 
475
  chmod +x "$as_me.lineno" ||
 
476
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
477
   { (exit 1); exit 1; }; }
 
478
 
 
479
  # Don't try to exec as it changes $[0], causing all sort of problems
 
480
  # (the dirname of $[0] is not the place where we might find the
 
481
  # original and so on.  Autoconf is especially sensitive to this).
 
482
  . "./$as_me.lineno"
 
483
  # Exit status is that of the last command.
 
484
  exit
 
485
}
 
486
 
 
487
 
 
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
489
  as_dirname=dirname
 
490
else
 
491
  as_dirname=false
 
492
fi
 
493
 
 
494
ECHO_C= ECHO_N= ECHO_T=
 
495
case `echo -n x` in
 
496
-n*)
 
497
  case `echo 'x\c'` in
 
498
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
499
  *)   ECHO_C='\c';;
 
500
  esac;;
 
501
*)
 
502
  ECHO_N='-n';;
 
503
esac
 
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
505
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
506
  as_expr=expr
 
507
else
 
508
  as_expr=false
 
509
fi
 
510
 
 
511
rm -f conf$$ conf$$.exe conf$$.file
 
512
if test -d conf$$.dir; then
 
513
  rm -f conf$$.dir/conf$$.file
 
514
else
 
515
  rm -f conf$$.dir
 
516
  mkdir conf$$.dir 2>/dev/null
 
517
fi
 
518
if (echo >conf$$.file) 2>/dev/null; then
 
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
520
    as_ln_s='ln -s'
 
521
    # ... but there are two gotchas:
 
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
524
    # In both cases, we have to default to `cp -p'.
 
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
526
      as_ln_s='cp -p'
 
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
528
    as_ln_s=ln
 
529
  else
 
530
    as_ln_s='cp -p'
 
531
  fi
 
532
else
 
533
  as_ln_s='cp -p'
 
534
fi
 
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
536
rmdir conf$$.dir 2>/dev/null
 
537
 
 
538
if mkdir -p . 2>/dev/null; then
 
539
  as_mkdir_p=:
 
540
else
 
541
  test -d ./-p && rmdir ./-p
 
542
  as_mkdir_p=false
 
543
fi
 
544
 
 
545
if test -x / >/dev/null 2>&1; then
 
546
  as_test_x='test -x'
 
547
else
 
548
  if ls -dL / >/dev/null 2>&1; then
 
549
    as_ls_L_option=L
 
550
  else
 
551
    as_ls_L_option=
 
552
  fi
 
553
  as_test_x='
 
554
    eval sh -c '\''
 
555
      if test -d "$1"; then
 
556
        test -d "$1/.";
 
557
      else
 
558
        case $1 in
 
559
        -*)set "./$1";;
 
560
        esac;
 
561
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
562
        ???[sx]*):;;*)false;;esac;fi
 
563
    '\'' sh
 
564
  '
 
565
fi
 
566
as_executable_p=$as_test_x
 
567
 
 
568
# Sed expression to map a string onto a valid CPP name.
 
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
570
 
 
571
# Sed expression to map a string onto a valid variable name.
 
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
573
 
 
574
 
 
575
 
 
576
 
 
577
# Check that we are running under the correct shell.
 
578
SHELL=${CONFIG_SHELL-/bin/sh}
 
579
 
 
580
case X$lt_ECHO in
 
581
X*--fallback-echo)
 
582
  # Remove one level of quotation (which was required for Make).
 
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
584
  ;;
 
585
esac
 
586
 
 
587
ECHO=${lt_ECHO-echo}
 
588
if test "X$1" = X--no-reexec; then
 
589
  # Discard the --no-reexec flag, and continue.
 
590
  shift
 
591
elif test "X$1" = X--fallback-echo; then
 
592
  # Avoid inline document here, it may be left over
 
593
  :
 
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $ECHO works!
 
596
  :
 
597
else
 
598
  # Restart under the correct shell.
 
599
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
600
fi
 
601
 
 
602
if test "X$1" = X--fallback-echo; then
 
603
  # used as fallback echo
 
604
  shift
 
605
  cat <<_LT_EOF
 
606
$*
 
607
_LT_EOF
 
608
  exit 0
 
609
fi
 
610
 
 
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
612
# if CDPATH is set.
 
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
614
 
 
615
if test -z "$lt_ECHO"; then
 
616
  if test "X${echo_test_string+set}" != Xset; then
 
617
    # find a string as large as possible, as long as the shell can cope with it
 
618
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
621
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
622
      then
 
623
        break
 
624
      fi
 
625
    done
 
626
  fi
 
627
 
 
628
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
629
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
630
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
631
    :
 
632
  else
 
633
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
634
    # backslashes.  This makes it impossible to quote backslashes using
 
635
    #   echo "$something" | sed 's/\\/\\\\/g'
 
636
    #
 
637
    # So, first we look for a working echo in the user's PATH.
 
638
 
 
639
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
640
    for dir in $PATH /usr/ucb; do
 
641
      IFS="$lt_save_ifs"
 
642
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
643
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
644
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
645
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
646
        ECHO="$dir/echo"
 
647
        break
 
648
      fi
 
649
    done
 
650
    IFS="$lt_save_ifs"
 
651
 
 
652
    if test "X$ECHO" = Xecho; then
 
653
      # We didn't find a better echo, so look for alternatives.
 
654
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
655
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
656
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
        # This shell has a builtin print -r that does the trick.
 
658
        ECHO='print -r'
 
659
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
660
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
661
        # If we have ksh, try running configure again with it.
 
662
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
663
        export ORIGINAL_CONFIG_SHELL
 
664
        CONFIG_SHELL=/bin/ksh
 
665
        export CONFIG_SHELL
 
666
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
667
      else
 
668
        # Try using printf.
 
669
        ECHO='printf %s\n'
 
670
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
671
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
672
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
673
          # Cool, printf works
 
674
          :
 
675
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
676
             test "X$echo_testing_string" = 'X\t' &&
 
677
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
678
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
679
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
680
          export CONFIG_SHELL
 
681
          SHELL="$CONFIG_SHELL"
 
682
          export SHELL
 
683
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
684
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
685
             test "X$echo_testing_string" = 'X\t' &&
 
686
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
687
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
688
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
689
        else
 
690
          # maybe with a smaller string...
 
691
          prev=:
 
692
 
 
693
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
694
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
695
            then
 
696
              break
 
697
            fi
 
698
            prev="$cmd"
 
699
          done
 
700
 
 
701
          if test "$prev" != 'sed 50q "$0"'; then
 
702
            echo_test_string=`eval $prev`
 
703
            export echo_test_string
 
704
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
705
          else
 
706
            # Oops.  We lost completely, so just stick with echo.
 
707
            ECHO=echo
 
708
          fi
 
709
        fi
 
710
      fi
 
711
    fi
 
712
  fi
 
713
fi
 
714
 
 
715
# Copy echo and quote the copy suitably for passing to libtool from
 
716
# the Makefile, instead of quoting the original, which is used later.
 
717
lt_ECHO=$ECHO
 
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
719
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
720
fi
 
721
 
 
722
 
 
723
 
 
724
 
 
725
lt_ltdl_dir='libltdl'
 
726
 
 
727
lt_dlopen_dir="$lt_ltdl_dir"
 
728
 
 
729
exec 7<&0 </dev/null 6>&1
 
730
 
 
731
# Name of the host.
 
732
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
733
# so uname gets run too.
 
734
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
735
 
 
736
#
 
737
# Initializations.
 
738
#
 
739
ac_default_prefix=/usr/local
 
740
ac_clean_files=
 
741
ac_config_libobj_dir=.
 
742
LIBOBJS=
 
743
cross_compiling=no
 
744
subdirs=
 
745
MFLAGS=
 
746
MAKEFLAGS=
 
747
SHELL=${CONFIG_SHELL-/bin/sh}
 
748
 
 
749
# Identity of this package.
 
750
PACKAGE_NAME='graphviz'
 
751
PACKAGE_TARNAME='graphviz'
 
752
PACKAGE_VERSION='2.26.3'
 
753
PACKAGE_STRING='graphviz 2.26.3'
 
754
PACKAGE_BUGREPORT='http://www.graphviz.org/'
 
755
 
 
756
ac_unique_file="configure.ac"
 
757
ac_default_prefix=/usr/local
 
758
# Factoring default headers for most tests.
 
759
ac_includes_default="\
 
760
#include <stdio.h>
 
761
#ifdef HAVE_SYS_TYPES_H
 
762
# include <sys/types.h>
 
763
#endif
 
764
#ifdef HAVE_SYS_STAT_H
 
765
# include <sys/stat.h>
 
766
#endif
 
767
#ifdef STDC_HEADERS
 
768
# include <stdlib.h>
 
769
# include <stddef.h>
 
770
#else
 
771
# ifdef HAVE_STDLIB_H
 
772
#  include <stdlib.h>
 
773
# endif
 
774
#endif
 
775
#ifdef HAVE_STRING_H
 
776
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
777
#  include <memory.h>
 
778
# endif
 
779
# include <string.h>
 
780
#endif
 
781
#ifdef HAVE_STRINGS_H
 
782
# include <strings.h>
 
783
#endif
 
784
#ifdef HAVE_INTTYPES_H
 
785
# include <inttypes.h>
 
786
#endif
 
787
#ifdef HAVE_STDINT_H
 
788
# include <stdint.h>
 
789
#endif
 
790
#ifdef HAVE_UNISTD_H
 
791
# include <unistd.h>
 
792
#endif"
 
793
 
 
794
enable_option_checking=no
 
795
ac_subst_vars='ltdl_LTLIBOBJS
 
796
ltdl_LIBOBJS
 
797
LTLIBOBJS
 
798
WITH_IPSEPCOLA_FALSE
 
799
WITH_IPSEPCOLA_TRUE
 
800
IPSEPCOLA_LIBS
 
801
IPSEPCOLA_INCLUDES
 
802
WITH_ORTHO_FALSE
 
803
WITH_ORTHO_TRUE
 
804
WITH_CGRAPH_FALSE
 
805
WITH_CGRAPH_TRUE
 
806
WITH_SMYRNA_FALSE
 
807
WITH_SMYRNA_TRUE
 
808
WITH_SFDP_FALSE
 
809
WITH_SFDP_TRUE
 
810
TK_PKGINDEX
 
811
TCL_PKGINDEX_SWIG
 
812
TCL_PKGINDEX_GD
 
813
TCL_PKGINDEX
 
814
TKINT_INCLUDES
 
815
TCLINT_INCLUDES
 
816
JPEG_LIBS
 
817
JPEG_INCLUDES
 
818
PNG_LIBS
 
819
PNG_INCLUDES
 
820
LIBPNG_CONFIG
 
821
ICONV_LIBS
 
822
ICONV_INCLUDES
 
823
LTLIBICONV
 
824
LIBICONV
 
825
GLUT_LIBS
 
826
GLUT_CFLAGS
 
827
WITH_MYLIBGD_FALSE
 
828
WITH_MYLIBGD_TRUE
 
829
WITH_LIBGD_FALSE
 
830
WITH_LIBGD_TRUE
 
831
GD_LIBS
 
832
GD_INCLUDES
 
833
GDLIB_CONFIG
 
834
WITH_GDIPLUS_FALSE
 
835
WITH_GDIPLUS_TRUE
 
836
GDIPLUS_LIBS
 
837
GDIPLUS_CFLAGS
 
838
GDIPLUS_HEADS
 
839
PLATFORMSDKLIB
 
840
PLATFORMSDKINCLUDE_ESCAPED
 
841
PLATFORMSDKINCLUDE
 
842
WITH_QUARTZ_FALSE
 
843
WITH_QUARTZ_TRUE
 
844
QUARTZ_LIBS
 
845
QUARTZ_CFLAGS
 
846
WITH_MING_FALSE
 
847
WITH_MING_TRUE
 
848
MING_LIBS
 
849
MING_CFLAGS
 
850
WITH_GLADE_FALSE
 
851
WITH_GLADE_TRUE
 
852
GLADE_LIBS
 
853
GLADE_CFLAGS
 
854
WITH_GTS_FALSE
 
855
WITH_GTS_TRUE
 
856
GTS_LIBS
 
857
GTS_CFLAGS
 
858
WITH_GTKGLEXT_FALSE
 
859
WITH_GTKGLEXT_TRUE
 
860
GTKGLEXT_LIBS
 
861
GTKGLEXT_CFLAGS
 
862
WITH_GTKGL_FALSE
 
863
WITH_GTKGL_TRUE
 
864
GTKGL_LIBS
 
865
GTKGL_CFLAGS
 
866
WITH_GTK_FALSE
 
867
WITH_GTK_TRUE
 
868
GTK_LIBS
 
869
GTK_CFLAGS
 
870
WITH_GDK_PIXBUF_FALSE
 
871
WITH_GDK_PIXBUF_TRUE
 
872
GDK_PIXBUF_LIBS
 
873
GDK_PIXBUF_CFLAGS
 
874
WITH_FONTCONFIG_FALSE
 
875
WITH_FONTCONFIG_TRUE
 
876
FONTCONFIG_CONFIG
 
877
FONTCONFIG_LIBS
 
878
FONTCONFIG_CFLAGS
 
879
WITH_FREETYPE2_FALSE
 
880
WITH_FREETYPE2_TRUE
 
881
FREETYPE_CONFIG
 
882
FREETYPE2_LIBS
 
883
FREETYPE2_CFLAGS
 
884
WITH_GLITZ_FALSE
 
885
WITH_GLITZ_TRUE
 
886
GLITZ_LIBS
 
887
GLITZ_CFLAGS
 
888
WITH_LASI_FALSE
 
889
WITH_LASI_TRUE
 
890
LASI_LIBS
 
891
LASI_CFLAGS
 
892
WITH_PANGOCAIRO_FALSE
 
893
WITH_PANGOCAIRO_TRUE
 
894
PANGOCAIRO_LIBS
 
895
PANGOCAIRO_CFLAGS
 
896
WITH_VISIO_FALSE
 
897
WITH_VISIO_TRUE
 
898
VISIO_LIBS
 
899
VISIO_CFLAGS
 
900
WITH_GS_FALSE
 
901
WITH_GS_TRUE
 
902
GS_LIBS
 
903
GS_CFLAGS
 
904
WITH_RSVG_FALSE
 
905
WITH_RSVG_TRUE
 
906
RSVG_LIBS
 
907
RSVG_CFLAGS
 
908
Z_LIBS
 
909
Z_INCLUDES
 
910
WITH_XAW_FALSE
 
911
WITH_XAW_TRUE
 
912
XAW_LIBS
 
913
XAW_INCLUDES
 
914
XPM_LIBS
 
915
XPM_INCLUDES
 
916
WITH_DEVIL_FALSE
 
917
WITH_DEVIL_TRUE
 
918
DEVIL_LIBS
 
919
DEVIL_INCLUDES
 
920
EXPAT_LIBS
 
921
EXPAT_INCLUDES
 
922
EXPAT_CONFIG
 
923
SOCKET_LIBS
 
924
TK_STUB_LIB_SPEC
 
925
TK_CFLAGS
 
926
TK_SRC_DIR
 
927
TK_LIB_SPEC
 
928
TK_XINCLUDES
 
929
TK_DEFS
 
930
TK_PATCH_LEVEL
 
931
TK_MINOR_VERSION
 
932
TK_MAJOR_VERSION
 
933
TK_VERSION
 
934
WITH_TK_FALSE
 
935
WITH_TK_TRUE
 
936
TK_INCLUDES
 
937
WISH
 
938
TCL_STUB_LIB_SPEC
 
939
TCL_SRC_DIR
 
940
TCL_SHLIB_SUFFIX
 
941
TCL_LIBS
 
942
TCL_DEFS
 
943
TCL_CFLAGS
 
944
TCL_PATCH_LEVEL
 
945
TCL_MINOR_VERSION
 
946
TCL_MAJOR_VERSION
 
947
TCL_VERSION
 
948
WITH_TCL_FALSE
 
949
WITH_TCL_TRUE
 
950
TCL_INSTALL_DIR
 
951
TCL_INCLUDES
 
952
WITH_RUBY_FALSE
 
953
WITH_RUBY_TRUE
 
954
RUBY_INSTALL_DIR
 
955
RUBY_LIBS
 
956
RUBY_INCLUDES
 
957
RUBY
 
958
WITH_R_FALSE
 
959
WITH_R_TRUE
 
960
R_LIBS
 
961
R_CFLAGS
 
962
WITH_PYTHON26_FALSE
 
963
WITH_PYTHON26_TRUE
 
964
PYTHON26_LIBS
 
965
PYTHON26_INCLUDES
 
966
PYTHON26_INSTALL_DIR
 
967
PYTHON26
 
968
WITH_PYTHON25_FALSE
 
969
WITH_PYTHON25_TRUE
 
970
PYTHON25_LIBS
 
971
PYTHON25_INCLUDES
 
972
PYTHON25_INSTALL_DIR
 
973
PYTHON25
 
974
WITH_PYTHON24_FALSE
 
975
WITH_PYTHON24_TRUE
 
976
PYTHON24_LIBS
 
977
PYTHON24_INCLUDES
 
978
PYTHON24_INSTALL_DIR
 
979
PYTHON24
 
980
WITH_PYTHON23_FALSE
 
981
WITH_PYTHON23_TRUE
 
982
PYTHON23_LIBS
 
983
PYTHON23_INCLUDES
 
984
PYTHON23_INSTALL_DIR
 
985
PYTHON23
 
986
WITH_PYTHON_FALSE
 
987
WITH_PYTHON_TRUE
 
988
PYTHON_LIBS
 
989
PYTHON_INCLUDES
 
990
PYTHON_INSTALL_DIR
 
991
PYTHON
 
992
WITH_PHP_FALSE
 
993
WITH_PHP_TRUE
 
994
PHP_LIBS
 
995
PHP_INCLUDES
 
996
PHP_INSTALL_DIR
 
997
PHP_INSTALL_DATADIR
 
998
PHP
 
999
WITH_PERL_FALSE
 
1000
WITH_PERL_TRUE
 
1001
PERL_INSTALL_DIR
 
1002
PERL_LIBS
 
1003
PERL_INCLUDES
 
1004
PERL
 
1005
WITH_OCAMLOPT_FALSE
 
1006
WITH_OCAMLOPT_TRUE
 
1007
WITH_OCAML_FALSE
 
1008
WITH_OCAML_TRUE
 
1009
OCAML_LIBS
 
1010
OCAML_INCLUDES
 
1011
OCAML_OPT
 
1012
OCAML
 
1013
WITH_LUA_FALSE
 
1014
WITH_LUA_TRUE
 
1015
LUA_INSTALL_DIR
 
1016
LUA_LIBS
 
1017
LUA_INCLUDES
 
1018
LUACONFIG
 
1019
PKGCONFIG
 
1020
LUA
 
1021
WITH_JAVA_FALSE
 
1022
WITH_JAVA_TRUE
 
1023
JAVA_LIBS
 
1024
JAVA_INCLUDES
 
1025
JAVA
 
1026
WITH_IO_FALSE
 
1027
WITH_IO_TRUE
 
1028
IO_LIBS
 
1029
IO_INCLUDES
 
1030
IO
 
1031
WITH_GUILE_FALSE
 
1032
WITH_GUILE_TRUE
 
1033
GUILE_LIBS
 
1034
GUILE_INCLUDES
 
1035
GUILE
 
1036
WITH_SHARP_FALSE
 
1037
WITH_SHARP_TRUE
 
1038
SHARP_LIBS
 
1039
SHARP_INCLUDES
 
1040
MCS
 
1041
WITH_SWIG_FALSE
 
1042
WITH_SWIG_TRUE
 
1043
SWIG
 
1044
WITH_X_FALSE
 
1045
WITH_X_TRUE
 
1046
X_EXTRA_LIBS
 
1047
X_LIBS
 
1048
X_PRE_LIBS
 
1049
X_CFLAGS
 
1050
XMKMF
 
1051
LIBLTDL_LDFLAGS
 
1052
ENABLE_LTDL_FALSE
 
1053
ENABLE_LTDL_TRUE
 
1054
LTDLOPEN
 
1055
LT_CONFIG_H
 
1056
subdirs
 
1057
CONVENIENCE_LTDL_FALSE
 
1058
CONVENIENCE_LTDL_TRUE
 
1059
INSTALL_LTDL_FALSE
 
1060
INSTALL_LTDL_TRUE
 
1061
ARGZ_H
 
1062
sys_symbol_underscore
 
1063
LIBADD_DL
 
1064
LT_DLPREOPEN
 
1065
LIBADD_DLD_LINK
 
1066
LIBADD_SHL_LOAD
 
1067
LIBADD_DLOPEN
 
1068
LT_DLLOADERS
 
1069
INCLTDL
 
1070
LTDLINCL
 
1071
LTDLDEPS
 
1072
LIBLTDL
 
1073
CXXCPP
 
1074
OTOOL64
 
1075
OTOOL
 
1076
LIPO
 
1077
NMEDIT
 
1078
DSYMUTIL
 
1079
lt_ECHO
 
1080
RANLIB
 
1081
AR
 
1082
OBJDUMP
 
1083
NM
 
1084
ac_ct_DUMPBIN
 
1085
DUMPBIN
 
1086
LD
 
1087
FGREP
 
1088
LIBTOOL
 
1089
LIBOBJS
 
1090
ALLOCA
 
1091
LIBGEN_LIBS
 
1092
MATH_LIBS
 
1093
EGREP
 
1094
CPP
 
1095
RC_IS_WINDRES_FALSE
 
1096
RC_IS_WINDRES_TRUE
 
1097
RC_IS_RC_FALSE
 
1098
RC_IS_RC_TRUE
 
1099
RC
 
1100
am__fastdepOBJC_FALSE
 
1101
am__fastdepOBJC_TRUE
 
1102
OBJCDEPMODE
 
1103
ac_ct_OBJC
 
1104
OBJCFLAGS
 
1105
OBJC
 
1106
am__fastdepCXX_FALSE
 
1107
am__fastdepCXX_TRUE
 
1108
CXXDEPMODE
 
1109
ac_ct_CXX
 
1110
CXXFLAGS
 
1111
CXX
 
1112
TCLSH
 
1113
PKG_CONFIG
 
1114
PS2PDF
 
1115
GROFF
 
1116
SORT
 
1117
GREP
 
1118
SED
 
1119
LN_S
 
1120
YFLAGS
 
1121
YACC
 
1122
LEXLIB
 
1123
LEX_OUTPUT_ROOT
 
1124
LEX
 
1125
am__fastdepCC_FALSE
 
1126
am__fastdepCC_TRUE
 
1127
CCDEPMODE
 
1128
AMDEPBACKSLASH
 
1129
AMDEP_FALSE
 
1130
AMDEP_TRUE
 
1131
am__quote
 
1132
am__include
 
1133
DEPDIR
 
1134
OBJEXT
 
1135
EXEEXT
 
1136
ac_ct_CC
 
1137
CPPFLAGS
 
1138
LDFLAGS
 
1139
CFLAGS
 
1140
CC
 
1141
ENABLE_SHARED_FALSE
 
1142
ENABLE_SHARED_TRUE
 
1143
ENABLE_STATIC_FALSE
 
1144
ENABLE_STATIC_TRUE
 
1145
am__untar
 
1146
am__tar
 
1147
AMTAR
 
1148
am__leading_dot
 
1149
SET_MAKE
 
1150
AWK
 
1151
mkdir_p
 
1152
MKDIR_P
 
1153
INSTALL_STRIP_PROGRAM
 
1154
STRIP
 
1155
install_sh
 
1156
MAKEINFO
 
1157
AUTOHEADER
 
1158
AUTOMAKE
 
1159
AUTOCONF
 
1160
ACLOCAL
 
1161
VERSION
 
1162
PACKAGE
 
1163
CYGPATH_W
 
1164
am__isrc
 
1165
INSTALL_DATA
 
1166
INSTALL_SCRIPT
 
1167
INSTALL_PROGRAM
 
1168
WITH_DARWIN9_FALSE
 
1169
WITH_DARWIN9_TRUE
 
1170
WITH_WIN32_FALSE
 
1171
WITH_WIN32_TRUE
 
1172
EXTRA_SMYRNA_LDFLAGS
 
1173
DARWIN9
 
1174
DARWIN
 
1175
MINGW32
 
1176
CYGWIN
 
1177
GRAPHVIZ_VERSION_REVISION
 
1178
GRAPHVIZ_VERSION_BUILD
 
1179
GVPLUGIN_VERSION
 
1180
host_os
 
1181
host_vendor
 
1182
host_cpu
 
1183
host
 
1184
build_os
 
1185
build_vendor
 
1186
build_cpu
 
1187
build
 
1188
GVPLUGIN_VERSION_INFO
 
1189
GVPLUGIN_CONFIG_FILE
 
1190
GRAPHVIZ_SOURCES
 
1191
GRAPHVIZ_COLLECTION
 
1192
VERSION_DATE
 
1193
GRAPHVIZ_VERSION_MICRO
 
1194
GRAPHVIZ_VERSION_MINOR
 
1195
GRAPHVIZ_VERSION_MAJOR
 
1196
target_alias
 
1197
host_alias
 
1198
build_alias
 
1199
LIBS
 
1200
ECHO_T
 
1201
ECHO_N
 
1202
ECHO_C
 
1203
DEFS
 
1204
mandir
 
1205
localedir
 
1206
libdir
 
1207
psdir
 
1208
pdfdir
 
1209
dvidir
 
1210
htmldir
 
1211
infodir
 
1212
docdir
 
1213
oldincludedir
 
1214
includedir
 
1215
localstatedir
 
1216
sharedstatedir
 
1217
sysconfdir
 
1218
datadir
 
1219
datarootdir
 
1220
libexecdir
 
1221
sbindir
 
1222
bindir
 
1223
program_transform_name
 
1224
prefix
 
1225
exec_prefix
 
1226
PACKAGE_BUGREPORT
 
1227
PACKAGE_STRING
 
1228
PACKAGE_VERSION
 
1229
PACKAGE_TARNAME
 
1230
PACKAGE_NAME
 
1231
PATH_SEPARATOR
 
1232
SHELL'
 
1233
ac_subst_files=''
 
1234
ac_user_opts='
 
1235
enable_option_checking
 
1236
enable_static
 
1237
enable_shared
 
1238
enable_dependency_tracking
 
1239
with_tclsh
 
1240
with_pic
 
1241
enable_fast_install
 
1242
with_gnu_ld
 
1243
enable_libtool_lock
 
1244
enable_ltdl
 
1245
with_included_ltdl
 
1246
with_ltdl_include
 
1247
with_ltdl_lib
 
1248
enable_ltdl_install
 
1249
with_efence
 
1250
with_x
 
1251
enable_swig
 
1252
enable_sharp
 
1253
enable_guile
 
1254
enable_io
 
1255
enable_java
 
1256
with_javaincludedir
 
1257
with_javalibdir
 
1258
enable_lua
 
1259
enable_ocaml
 
1260
enable_perl
 
1261
enable_php
 
1262
enable_python
 
1263
enable_python23
 
1264
enable_python24
 
1265
enable_python25
 
1266
enable_python26
 
1267
enable_r
 
1268
enable_ruby
 
1269
enable_tcl
 
1270
with_wish
 
1271
with_extraincludedir
 
1272
with_extralibdir
 
1273
with_expat
 
1274
with_expatincludedir
 
1275
with_expatlibdir
 
1276
with_devil
 
1277
with_devilincludedir
 
1278
with_devillibdir
 
1279
with_Xpmincludedir
 
1280
with_Xpmlibdir
 
1281
with_Xawincludedir
 
1282
with_Xawlibdir
 
1283
with_zincludedir
 
1284
with_zlibdir
 
1285
with_rsvg
 
1286
with_ghostscript
 
1287
with_visio
 
1288
with_pangocairo
 
1289
with_lasi
 
1290
with_glitz
 
1291
with_freetype2
 
1292
with_fontconfig
 
1293
with_gdk_pixbuf
 
1294
with_gtk
 
1295
with_gtkgl
 
1296
with_gtkglext
 
1297
with_gts
 
1298
with_glade
 
1299
with_ming
 
1300
with_quartz
 
1301
with_platformsdkincludedir
 
1302
with_platformsdklibdir
 
1303
with_gdiplus
 
1304
with_libgd
 
1305
with_mylibgd
 
1306
with_gdincludedir
 
1307
with_gdlibdir
 
1308
with_glut
 
1309
with_glutincludedir
 
1310
with_glutlibdir
 
1311
with_iconvincludedir
 
1312
with_iconvlibdir
 
1313
enable_rpath
 
1314
with_libiconv_prefix
 
1315
with_png
 
1316
with_pngincludedir
 
1317
with_pnglibdir
 
1318
with_jpeg
 
1319
with_jpegincludedir
 
1320
with_jpeglibdir
 
1321
with_sfdp
 
1322
with_smyrna
 
1323
with_cgraph
 
1324
with_ortho
 
1325
with_digcola
 
1326
with_ipsepcola
 
1327
'
 
1328
      ac_precious_vars='build_alias
 
1329
host_alias
 
1330
target_alias
 
1331
CC
 
1332
CFLAGS
 
1333
LDFLAGS
 
1334
LIBS
 
1335
CPPFLAGS
 
1336
YACC
 
1337
YFLAGS
 
1338
PKG_CONFIG
 
1339
CXX
 
1340
CXXFLAGS
 
1341
CCC
 
1342
OBJC
 
1343
OBJCFLAGS
 
1344
CPP
 
1345
CXXCPP
 
1346
XMKMF
 
1347
R_CFLAGS
 
1348
R_LIBS
 
1349
RSVG_CFLAGS
 
1350
RSVG_LIBS
 
1351
PANGOCAIRO_CFLAGS
 
1352
PANGOCAIRO_LIBS
 
1353
LASI_CFLAGS
 
1354
LASI_LIBS
 
1355
GLITZ_CFLAGS
 
1356
GLITZ_LIBS
 
1357
FREETYPE2_CFLAGS
 
1358
FREETYPE2_LIBS
 
1359
FONTCONFIG_CFLAGS
 
1360
FONTCONFIG_LIBS
 
1361
GDK_PIXBUF_CFLAGS
 
1362
GDK_PIXBUF_LIBS
 
1363
GTK_CFLAGS
 
1364
GTK_LIBS
 
1365
GTKGL_CFLAGS
 
1366
GTKGL_LIBS
 
1367
GTKGLEXT_CFLAGS
 
1368
GTKGLEXT_LIBS
 
1369
GTS_CFLAGS
 
1370
GTS_LIBS
 
1371
GLADE_CFLAGS
 
1372
GLADE_LIBS
 
1373
MING_CFLAGS
 
1374
MING_LIBS'
 
1375
ac_subdirs_all='libltdl'
 
1376
 
 
1377
# Initialize some variables set by options.
 
1378
ac_init_help=
 
1379
ac_init_version=false
 
1380
ac_unrecognized_opts=
 
1381
ac_unrecognized_sep=
 
1382
# The variables have the same names as the options, with
 
1383
# dashes changed to underlines.
 
1384
cache_file=/dev/null
 
1385
exec_prefix=NONE
 
1386
no_create=
 
1387
no_recursion=
 
1388
prefix=NONE
 
1389
program_prefix=NONE
 
1390
program_suffix=NONE
 
1391
program_transform_name=s,x,x,
 
1392
silent=
 
1393
site=
 
1394
srcdir=
 
1395
verbose=
 
1396
x_includes=NONE
 
1397
x_libraries=NONE
 
1398
 
 
1399
# Installation directory options.
 
1400
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1401
# and all the variables that are supposed to be based on exec_prefix
 
1402
# by default will actually change.
 
1403
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1404
# (The list follows the same order as the GNU Coding Standards.)
 
1405
bindir='${exec_prefix}/bin'
 
1406
sbindir='${exec_prefix}/sbin'
 
1407
libexecdir='${exec_prefix}/libexec'
 
1408
datarootdir='${prefix}/share'
 
1409
datadir='${datarootdir}'
 
1410
sysconfdir='${prefix}/etc'
 
1411
sharedstatedir='${prefix}/com'
 
1412
localstatedir='${prefix}/var'
 
1413
includedir='${prefix}/include'
 
1414
oldincludedir='/usr/include'
 
1415
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1416
infodir='${datarootdir}/info'
 
1417
htmldir='${docdir}'
 
1418
dvidir='${docdir}'
 
1419
pdfdir='${docdir}'
 
1420
psdir='${docdir}'
 
1421
libdir='${exec_prefix}/lib'
 
1422
localedir='${datarootdir}/locale'
 
1423
mandir='${datarootdir}/man'
 
1424
 
 
1425
ac_prev=
 
1426
ac_dashdash=
 
1427
for ac_option
 
1428
do
 
1429
  # If the previous option needs an argument, assign it.
 
1430
  if test -n "$ac_prev"; then
 
1431
    eval $ac_prev=\$ac_option
 
1432
    ac_prev=
 
1433
    continue
 
1434
  fi
 
1435
 
 
1436
  case $ac_option in
 
1437
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1438
  *)    ac_optarg=yes ;;
 
1439
  esac
 
1440
 
 
1441
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1442
 
 
1443
  case $ac_dashdash$ac_option in
 
1444
  --)
 
1445
    ac_dashdash=yes ;;
 
1446
 
 
1447
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1448
    ac_prev=bindir ;;
 
1449
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1450
    bindir=$ac_optarg ;;
 
1451
 
 
1452
  -build | --build | --buil | --bui | --bu)
 
1453
    ac_prev=build_alias ;;
 
1454
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1455
    build_alias=$ac_optarg ;;
 
1456
 
 
1457
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1458
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1459
    ac_prev=cache_file ;;
 
1460
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1461
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1462
    cache_file=$ac_optarg ;;
 
1463
 
 
1464
  --config-cache | -C)
 
1465
    cache_file=config.cache ;;
 
1466
 
 
1467
  -datadir | --datadir | --datadi | --datad)
 
1468
    ac_prev=datadir ;;
 
1469
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1470
    datadir=$ac_optarg ;;
 
1471
 
 
1472
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1473
  | --dataroo | --dataro | --datar)
 
1474
    ac_prev=datarootdir ;;
 
1475
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1476
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1477
    datarootdir=$ac_optarg ;;
 
1478
 
 
1479
  -disable-* | --disable-*)
 
1480
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1481
    # Reject names that are not valid shell variable names.
 
1482
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1483
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1484
   { (exit 1); exit 1; }; }
 
1485
    ac_useropt_orig=$ac_useropt
 
1486
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1487
    case $ac_user_opts in
 
1488
      *"
 
1489
"enable_$ac_useropt"
 
1490
"*) ;;
 
1491
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1492
         ac_unrecognized_sep=', ';;
 
1493
    esac
 
1494
    eval enable_$ac_useropt=no ;;
 
1495
 
 
1496
  -docdir | --docdir | --docdi | --doc | --do)
 
1497
    ac_prev=docdir ;;
 
1498
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1499
    docdir=$ac_optarg ;;
 
1500
 
 
1501
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1502
    ac_prev=dvidir ;;
 
1503
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1504
    dvidir=$ac_optarg ;;
 
1505
 
 
1506
  -enable-* | --enable-*)
 
1507
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1508
    # Reject names that are not valid shell variable names.
 
1509
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1510
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1511
   { (exit 1); exit 1; }; }
 
1512
    ac_useropt_orig=$ac_useropt
 
1513
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1514
    case $ac_user_opts in
 
1515
      *"
 
1516
"enable_$ac_useropt"
 
1517
"*) ;;
 
1518
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1519
         ac_unrecognized_sep=', ';;
 
1520
    esac
 
1521
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1522
 
 
1523
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1524
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1525
  | --exec | --exe | --ex)
 
1526
    ac_prev=exec_prefix ;;
 
1527
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1528
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1529
  | --exec=* | --exe=* | --ex=*)
 
1530
    exec_prefix=$ac_optarg ;;
 
1531
 
 
1532
  -gas | --gas | --ga | --g)
 
1533
    # Obsolete; use --with-gas.
 
1534
    with_gas=yes ;;
 
1535
 
 
1536
  -help | --help | --hel | --he | -h)
 
1537
    ac_init_help=long ;;
 
1538
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1539
    ac_init_help=recursive ;;
 
1540
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1541
    ac_init_help=short ;;
 
1542
 
 
1543
  -host | --host | --hos | --ho)
 
1544
    ac_prev=host_alias ;;
 
1545
  -host=* | --host=* | --hos=* | --ho=*)
 
1546
    host_alias=$ac_optarg ;;
 
1547
 
 
1548
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1549
    ac_prev=htmldir ;;
 
1550
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1551
  | --ht=*)
 
1552
    htmldir=$ac_optarg ;;
 
1553
 
 
1554
  -includedir | --includedir | --includedi | --included | --include \
 
1555
  | --includ | --inclu | --incl | --inc)
 
1556
    ac_prev=includedir ;;
 
1557
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1558
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1559
    includedir=$ac_optarg ;;
 
1560
 
 
1561
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1562
    ac_prev=infodir ;;
 
1563
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1564
    infodir=$ac_optarg ;;
 
1565
 
 
1566
  -libdir | --libdir | --libdi | --libd)
 
1567
    ac_prev=libdir ;;
 
1568
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1569
    libdir=$ac_optarg ;;
 
1570
 
 
1571
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1572
  | --libexe | --libex | --libe)
 
1573
    ac_prev=libexecdir ;;
 
1574
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1575
  | --libexe=* | --libex=* | --libe=*)
 
1576
    libexecdir=$ac_optarg ;;
 
1577
 
 
1578
  -localedir | --localedir | --localedi | --localed | --locale)
 
1579
    ac_prev=localedir ;;
 
1580
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1581
    localedir=$ac_optarg ;;
 
1582
 
 
1583
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1584
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1585
    ac_prev=localstatedir ;;
 
1586
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1587
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1588
    localstatedir=$ac_optarg ;;
 
1589
 
 
1590
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1591
    ac_prev=mandir ;;
 
1592
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1593
    mandir=$ac_optarg ;;
 
1594
 
 
1595
  -nfp | --nfp | --nf)
 
1596
    # Obsolete; use --without-fp.
 
1597
    with_fp=no ;;
 
1598
 
 
1599
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1600
  | --no-cr | --no-c | -n)
 
1601
    no_create=yes ;;
 
1602
 
 
1603
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1604
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1605
    no_recursion=yes ;;
 
1606
 
 
1607
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1608
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1609
  | --oldin | --oldi | --old | --ol | --o)
 
1610
    ac_prev=oldincludedir ;;
 
1611
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1612
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1613
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1614
    oldincludedir=$ac_optarg ;;
 
1615
 
 
1616
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1617
    ac_prev=prefix ;;
 
1618
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1619
    prefix=$ac_optarg ;;
 
1620
 
 
1621
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1622
  | --program-pre | --program-pr | --program-p)
 
1623
    ac_prev=program_prefix ;;
 
1624
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1625
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1626
    program_prefix=$ac_optarg ;;
 
1627
 
 
1628
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1629
  | --program-suf | --program-su | --program-s)
 
1630
    ac_prev=program_suffix ;;
 
1631
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1632
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1633
    program_suffix=$ac_optarg ;;
 
1634
 
 
1635
  -program-transform-name | --program-transform-name \
 
1636
  | --program-transform-nam | --program-transform-na \
 
1637
  | --program-transform-n | --program-transform- \
 
1638
  | --program-transform | --program-transfor \
 
1639
  | --program-transfo | --program-transf \
 
1640
  | --program-trans | --program-tran \
 
1641
  | --progr-tra | --program-tr | --program-t)
 
1642
    ac_prev=program_transform_name ;;
 
1643
  -program-transform-name=* | --program-transform-name=* \
 
1644
  | --program-transform-nam=* | --program-transform-na=* \
 
1645
  | --program-transform-n=* | --program-transform-=* \
 
1646
  | --program-transform=* | --program-transfor=* \
 
1647
  | --program-transfo=* | --program-transf=* \
 
1648
  | --program-trans=* | --program-tran=* \
 
1649
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1650
    program_transform_name=$ac_optarg ;;
 
1651
 
 
1652
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1653
    ac_prev=pdfdir ;;
 
1654
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1655
    pdfdir=$ac_optarg ;;
 
1656
 
 
1657
  -psdir | --psdir | --psdi | --psd | --ps)
 
1658
    ac_prev=psdir ;;
 
1659
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1660
    psdir=$ac_optarg ;;
 
1661
 
 
1662
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1663
  | -silent | --silent | --silen | --sile | --sil)
 
1664
    silent=yes ;;
 
1665
 
 
1666
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1667
    ac_prev=sbindir ;;
 
1668
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1669
  | --sbi=* | --sb=*)
 
1670
    sbindir=$ac_optarg ;;
 
1671
 
 
1672
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1673
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1674
  | --sharedst | --shareds | --shared | --share | --shar \
 
1675
  | --sha | --sh)
 
1676
    ac_prev=sharedstatedir ;;
 
1677
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1678
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1679
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1680
  | --sha=* | --sh=*)
 
1681
    sharedstatedir=$ac_optarg ;;
 
1682
 
 
1683
  -site | --site | --sit)
 
1684
    ac_prev=site ;;
 
1685
  -site=* | --site=* | --sit=*)
 
1686
    site=$ac_optarg ;;
 
1687
 
 
1688
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1689
    ac_prev=srcdir ;;
 
1690
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1691
    srcdir=$ac_optarg ;;
 
1692
 
 
1693
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1694
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1695
    ac_prev=sysconfdir ;;
 
1696
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1697
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1698
    sysconfdir=$ac_optarg ;;
 
1699
 
 
1700
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1701
    ac_prev=target_alias ;;
 
1702
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1703
    target_alias=$ac_optarg ;;
 
1704
 
 
1705
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1706
    verbose=yes ;;
 
1707
 
 
1708
  -version | --version | --versio | --versi | --vers | -V)
 
1709
    ac_init_version=: ;;
 
1710
 
 
1711
  -with-* | --with-*)
 
1712
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1713
    # Reject names that are not valid shell variable names.
 
1714
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1715
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1716
   { (exit 1); exit 1; }; }
 
1717
    ac_useropt_orig=$ac_useropt
 
1718
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1719
    case $ac_user_opts in
 
1720
      *"
 
1721
"with_$ac_useropt"
 
1722
"*) ;;
 
1723
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1724
         ac_unrecognized_sep=', ';;
 
1725
    esac
 
1726
    eval with_$ac_useropt=\$ac_optarg ;;
 
1727
 
 
1728
  -without-* | --without-*)
 
1729
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1730
    # Reject names that are not valid shell variable names.
 
1731
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1732
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1733
   { (exit 1); exit 1; }; }
 
1734
    ac_useropt_orig=$ac_useropt
 
1735
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1736
    case $ac_user_opts in
 
1737
      *"
 
1738
"with_$ac_useropt"
 
1739
"*) ;;
 
1740
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1741
         ac_unrecognized_sep=', ';;
 
1742
    esac
 
1743
    eval with_$ac_useropt=no ;;
 
1744
 
 
1745
  --x)
 
1746
    # Obsolete; use --with-x.
 
1747
    with_x=yes ;;
 
1748
 
 
1749
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1750
  | --x-incl | --x-inc | --x-in | --x-i)
 
1751
    ac_prev=x_includes ;;
 
1752
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1753
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1754
    x_includes=$ac_optarg ;;
 
1755
 
 
1756
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1757
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1758
    ac_prev=x_libraries ;;
 
1759
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1760
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1761
    x_libraries=$ac_optarg ;;
 
1762
 
 
1763
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1764
Try \`$0 --help' for more information." >&2
 
1765
   { (exit 1); exit 1; }; }
 
1766
    ;;
 
1767
 
 
1768
  *=*)
 
1769
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1770
    # Reject names that are not valid shell variable names.
 
1771
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1772
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1773
   { (exit 1); exit 1; }; }
 
1774
    eval $ac_envvar=\$ac_optarg
 
1775
    export $ac_envvar ;;
 
1776
 
 
1777
  *)
 
1778
    # FIXME: should be removed in autoconf 3.0.
 
1779
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1780
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1781
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1782
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1783
    ;;
 
1784
 
 
1785
  esac
 
1786
done
 
1787
 
 
1788
if test -n "$ac_prev"; then
 
1789
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1790
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1791
   { (exit 1); exit 1; }; }
 
1792
fi
 
1793
 
 
1794
if test -n "$ac_unrecognized_opts"; then
 
1795
  case $enable_option_checking in
 
1796
    no) ;;
 
1797
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1798
   { (exit 1); exit 1; }; } ;;
 
1799
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1800
  esac
 
1801
fi
 
1802
 
 
1803
# Check all directory arguments for consistency.
 
1804
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1805
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1806
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1807
                libdir localedir mandir
 
1808
do
 
1809
  eval ac_val=\$$ac_var
 
1810
  # Remove trailing slashes.
 
1811
  case $ac_val in
 
1812
    */ )
 
1813
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1814
      eval $ac_var=\$ac_val;;
 
1815
  esac
 
1816
  # Be sure to have absolute directory names.
 
1817
  case $ac_val in
 
1818
    [\\/$]* | ?:[\\/]* )  continue;;
 
1819
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1820
  esac
 
1821
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1822
   { (exit 1); exit 1; }; }
 
1823
done
 
1824
 
 
1825
# There might be people who depend on the old broken behavior: `$host'
 
1826
# used to hold the argument of --host etc.
 
1827
# FIXME: To remove some day.
 
1828
build=$build_alias
 
1829
host=$host_alias
 
1830
target=$target_alias
 
1831
 
 
1832
# FIXME: To remove some day.
 
1833
if test "x$host_alias" != x; then
 
1834
  if test "x$build_alias" = x; then
 
1835
    cross_compiling=maybe
 
1836
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1837
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1838
  elif test "x$build_alias" != "x$host_alias"; then
 
1839
    cross_compiling=yes
 
1840
  fi
 
1841
fi
 
1842
 
 
1843
ac_tool_prefix=
 
1844
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1845
 
 
1846
test "$silent" = yes && exec 6>/dev/null
 
1847
 
 
1848
 
 
1849
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1850
ac_ls_di=`ls -di .` &&
 
1851
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1852
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1853
   { (exit 1); exit 1; }; }
 
1854
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1855
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1856
   { (exit 1); exit 1; }; }
 
1857
 
 
1858
 
 
1859
# Find the source files, if location was not specified.
 
1860
if test -z "$srcdir"; then
 
1861
  ac_srcdir_defaulted=yes
 
1862
  # Try the directory containing this script, then the parent directory.
 
1863
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1864
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1865
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1866
         X"$as_myself" : 'X\(//\)$' \| \
 
1867
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1868
$as_echo X"$as_myself" |
 
1869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1870
            s//\1/
 
1871
            q
 
1872
          }
 
1873
          /^X\(\/\/\)[^/].*/{
 
1874
            s//\1/
 
1875
            q
 
1876
          }
 
1877
          /^X\(\/\/\)$/{
 
1878
            s//\1/
 
1879
            q
 
1880
          }
 
1881
          /^X\(\/\).*/{
 
1882
            s//\1/
 
1883
            q
 
1884
          }
 
1885
          s/.*/./; q'`
 
1886
  srcdir=$ac_confdir
 
1887
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1888
    srcdir=..
 
1889
  fi
 
1890
else
 
1891
  ac_srcdir_defaulted=no
 
1892
fi
 
1893
if test ! -r "$srcdir/$ac_unique_file"; then
 
1894
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1895
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1896
   { (exit 1); exit 1; }; }
 
1897
fi
 
1898
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1899
ac_abs_confdir=`(
 
1900
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1901
   { (exit 1); exit 1; }; }
 
1902
        pwd)`
 
1903
# When building in place, set srcdir=.
 
1904
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1905
  srcdir=.
 
1906
fi
 
1907
# Remove unnecessary trailing slashes from srcdir.
 
1908
# Double slashes in file names in object file debugging info
 
1909
# mess up M-x gdb in Emacs.
 
1910
case $srcdir in
 
1911
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1912
esac
 
1913
for ac_var in $ac_precious_vars; do
 
1914
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1915
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1916
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1917
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1918
done
 
1919
 
 
1920
#
 
1921
# Report the --help message.
 
1922
#
 
1923
if test "$ac_init_help" = "long"; then
 
1924
  # Omit some internal or obsolete options to make the list less imposing.
 
1925
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1926
  cat <<_ACEOF
 
1927
\`configure' configures graphviz 2.26.3 to adapt to many kinds of systems.
 
1928
 
 
1929
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1930
 
 
1931
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1932
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1933
 
 
1934
Defaults for the options are specified in brackets.
 
1935
 
 
1936
Configuration:
 
1937
  -h, --help              display this help and exit
 
1938
      --help=short        display options specific to this package
 
1939
      --help=recursive    display the short help of all the included packages
 
1940
  -V, --version           display version information and exit
 
1941
  -q, --quiet, --silent   do not print \`checking...' messages
 
1942
      --cache-file=FILE   cache test results in FILE [disabled]
 
1943
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1944
  -n, --no-create         do not create output files
 
1945
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1946
 
 
1947
Installation directories:
 
1948
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1949
                          [$ac_default_prefix]
 
1950
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1951
                          [PREFIX]
 
1952
 
 
1953
By default, \`make install' will install all the files in
 
1954
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1955
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1956
for instance \`--prefix=\$HOME'.
 
1957
 
 
1958
For better control, use the options below.
 
1959
 
 
1960
Fine tuning of the installation directories:
 
1961
  --bindir=DIR            user executables [EPREFIX/bin]
 
1962
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1963
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1964
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1965
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1966
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1967
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1968
  --includedir=DIR        C header files [PREFIX/include]
 
1969
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1970
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1971
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1972
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1973
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1974
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1975
  --docdir=DIR            documentation root [DATAROOTDIR/doc/graphviz]
 
1976
  --htmldir=DIR           html documentation [DOCDIR]
 
1977
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1978
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1979
  --psdir=DIR             ps documentation [DOCDIR]
 
1980
_ACEOF
 
1981
 
 
1982
  cat <<\_ACEOF
 
1983
 
 
1984
Program names:
 
1985
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1986
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1987
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1988
 
 
1989
X features:
 
1990
  --x-includes=DIR    X include files are in DIR
 
1991
  --x-libraries=DIR   X library files are in DIR
 
1992
 
 
1993
System types:
 
1994
  --build=BUILD     configure for building on BUILD [guessed]
 
1995
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1996
_ACEOF
 
1997
fi
 
1998
 
 
1999
if test -n "$ac_init_help"; then
 
2000
  case $ac_init_help in
 
2001
     short | recursive ) echo "Configuration of graphviz 2.26.3:";;
 
2002
   esac
 
2003
  cat <<\_ACEOF
 
2004
 
 
2005
Optional Features:
 
2006
  --disable-option-checking  ignore unrecognized --enable/--with options
 
2007
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
2008
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
2009
  --enable-static         build static executable
 
2010
  --enable-static[=PKGS]  build static libraries [default=yes]
 
2011
  --enable-shared         build shared executable
 
2012
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
2013
  --disable-dependency-tracking  speeds up one-time build
 
2014
  --enable-dependency-tracking   do not reject slow dependency extractors
 
2015
  --enable-fast-install[=PKGS]
 
2016
                          optimize for fast installation [default=yes]
 
2017
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
2018
  --enable-ltdl           support on-demand plugin loading
 
2019
  --enable-ltdl-install   install libltdl
 
2020
  --enable-swig=yes       swig-generated language bindings
 
2021
  --enable-sharp=yes      C# language bindings
 
2022
  --enable-guile=yes      guile language bindings
 
2023
  --enable-io=no          io language bindings
 
2024
  --enable-java=yes       java language bindings
 
2025
  --enable-lua=yes        lua language bindings
 
2026
  --enable-ocaml=yes      ocaml language bindings
 
2027
  --enable-perl=yes       perl language bindings
 
2028
  --enable-php=yes        php language bindings
 
2029
  --enable-python=yes     python language bindings
 
2030
  --enable-python23=no    python23 language bindings
 
2031
  --enable-python24=no    python24 language bindings
 
2032
  --enable-python25=no    python25 language bindings
 
2033
  --enable-python26=no    python26 language bindings
 
2034
  --enable-r=yes          R language bindings
 
2035
  --enable-ruby=yes       ruby language bindings
 
2036
  --enable-tcl=yes        tcl language bindings
 
2037
  --disable-rpath         do not hardcode runtime library paths
 
2038
 
 
2039
Optional Packages:
 
2040
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
2041
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
2042
  --with-tcl=PROG         use a specific tclsh
 
2043
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
2044
                          both]
 
2045
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
2046
  --with-included-ltdl    use the GNU ltdl sources included here
 
2047
  --with-ltdl-include=DIR use the ltdl headers installed in DIR
 
2048
  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
 
2049
  --with-efence=no        use efence for debugging memory use
 
2050
  --with-x                use the X Window System
 
2051
  --with-javaincludedir=DIR
 
2052
                          use JAVA includes from DIR
 
2053
  --with-javalibdir=DIR   use JAVA libraries from DIR
 
2054
  --with-wish=PROG        use a specific wish
 
2055
  --with-extraincludedir=DIR
 
2056
                          use extra includes from DIR
 
2057
  --with-extralibdir=DIR  use extra libraries from DIR
 
2058
  --with-expat=yes        use expat
 
2059
  --with-expatincludedir=DIR
 
2060
                          use EXPAT includes from DIR
 
2061
  --with-expatlibdir=DIR  use EXPAT libraries from DIR
 
2062
  --with-devil=yes        DevIL plugin
 
2063
  --with-devilincludedir=DIR
 
2064
                          use DevIL includes from DIR
 
2065
  --with-devillibdir=DIR  use DevIL libraries from DIR
 
2066
  --with-Xpmincludedir=DIR
 
2067
                          use Xpm includes from DIR
 
2068
  --with-Xpmlibdir=DIR    use Xpm libraries from DIR
 
2069
  --with-Xawincludedir=DIR
 
2070
                          use Xaw includes from DIR
 
2071
  --with-Xawlibdir=DIR    use Xaw libraries from DIR
 
2072
  --with-zincludedir=DIR  use Z includes from DIR
 
2073
  --with-zlibdir=DIR      use Z libraries from DIR
 
2074
  --with-rsvg=yes         rsvg library
 
2075
  --with-ghostscript=yes  ghostscript library
 
2076
  --with-visio=no         visio library
 
2077
  --with-pangocairo=yes   pangocairo library
 
2078
  --with-lasi=yes         lasi library
 
2079
  --with-glitz=no         glitz library
 
2080
  --with-freetype2=yes    freetype2 library
 
2081
  --with-fontconfig=yes   use fontconfig library
 
2082
  --with-gdk-pixbuf=yes   gdk-pixbuf library
 
2083
  --with-gtk=yes          gtk+ library
 
2084
  --with-gtkgl=yes        gtkgl library
 
2085
  --with-gtkglext=yes     gtkglext library
 
2086
  --with-gts=yes          gts library
 
2087
  --with-glade=yes        glade library
 
2088
  --with-ming=no          ming library (plugin for -Tswf)
 
2089
  --with-quartz=no        Quartz framework (Mac OS X)
 
2090
  --with-platformsdkincludedir=DIR
 
2091
                          use Platform SDK (Windows) includes from DIR
 
2092
  --with-platformsdklibdir=DIR
 
2093
                          use Platform SDK (Windows) libraries from DIR
 
2094
  --with-gdiplus=no       GDI+ framework (Windows)
 
2095
  --with-libgd=yes        use gd library
 
2096
  --with-mylibgd=no       use internal gd library in preference to any
 
2097
                          installed libgd
 
2098
  --with-gdincludedir=DIR use GD includes from DIR
 
2099
  --with-gdlibdir=DIR     use GD libraries from DIR
 
2100
  --with-glut=yes         GLUT library
 
2101
  --with-glutincludedir=DIR
 
2102
                          use GLUT includes from DIR
 
2103
  --with-glutlibdir=DIR   use GLUT libraries from DIR
 
2104
  --with-iconvincludedir=DIR
 
2105
                          use ICONV includes from DIR
 
2106
  --with-iconvlibdir=DIR  use ICONV libraries from DIR
 
2107
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
2108
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
 
2109
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
2110
  --with-png=yes          PNG library
 
2111
  --with-pngincludedir=DIR
 
2112
                          use PNG includes from DIR
 
2113
  --with-pnglibdir=DIR    use PNG libraries from DIR
 
2114
  --with-jpeg=yes         JPEG library
 
2115
  --with-jpegincludedir=DIR
 
2116
                          use JPEG includes from DIR
 
2117
  --with-jpeglibdir=DIR   use JPEG libraries from DIR
 
2118
  --with-sfdp=yes         sfdp layout engine
 
2119
  --with-smyrna=no        SMYRNA large graph viewer
 
2120
  --with-cgraph=no        Use CGRAPH library
 
2121
  --with-ortho=no         ORTHO features in neato layout engine
 
2122
  --with-digcola=yes      DIGCOLA features in neato layout engine
 
2123
  --with-ipsepcola=no     IPSEPCOLA features in neato layout engine
 
2124
 
 
2125
Some influential environment variables:
 
2126
  CC          C compiler command
 
2127
  CFLAGS      C compiler flags
 
2128
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
2129
              nonstandard directory <lib dir>
 
2130
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
2131
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
2132
              you have headers in a nonstandard directory <include dir>
 
2133
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
2134
              the first program found out of: `bison -y', `byacc', `yacc'.
 
2135
  YFLAGS      The list of arguments that will be passed by default to $YACC.
 
2136
              This script will default YFLAGS to the empty string to avoid a
 
2137
              default value of `-d' given by some make applications.
 
2138
  PKG_CONFIG  path to pkg-config utility
 
2139
  CXX         C++ compiler command
 
2140
  CXXFLAGS    C++ compiler flags
 
2141
  OBJC        Objective C compiler command
 
2142
  OBJCFLAGS   Objective C compiler flags
 
2143
  CPP         C preprocessor
 
2144
  CXXCPP      C++ preprocessor
 
2145
  XMKMF       Path to xmkmf, Makefile generator for X Window System
 
2146
  R_CFLAGS    C compiler flags for R, overriding pkg-config
 
2147
  R_LIBS      linker flags for R, overriding pkg-config
 
2148
  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
 
2149
  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
 
2150
  PANGOCAIRO_CFLAGS
 
2151
              C compiler flags for PANGOCAIRO, overriding pkg-config
 
2152
  PANGOCAIRO_LIBS
 
2153
              linker flags for PANGOCAIRO, overriding pkg-config
 
2154
  LASI_CFLAGS C compiler flags for LASI, overriding pkg-config
 
2155
  LASI_LIBS   linker flags for LASI, overriding pkg-config
 
2156
  GLITZ_CFLAGS
 
2157
              C compiler flags for GLITZ, overriding pkg-config
 
2158
  GLITZ_LIBS  linker flags for GLITZ, overriding pkg-config
 
2159
  FREETYPE2_CFLAGS
 
2160
              C compiler flags for FREETYPE2, overriding pkg-config
 
2161
  FREETYPE2_LIBS
 
2162
              linker flags for FREETYPE2, overriding pkg-config
 
2163
  FONTCONFIG_CFLAGS
 
2164
              C compiler flags for FONTCONFIG, overriding pkg-config
 
2165
  FONTCONFIG_LIBS
 
2166
              linker flags for FONTCONFIG, overriding pkg-config
 
2167
  GDK_PIXBUF_CFLAGS
 
2168
              C compiler flags for GDK_PIXBUF, overriding pkg-config
 
2169
  GDK_PIXBUF_LIBS
 
2170
              linker flags for GDK_PIXBUF, overriding pkg-config
 
2171
  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
 
2172
  GTK_LIBS    linker flags for GTK, overriding pkg-config
 
2173
  GTKGL_CFLAGS
 
2174
              C compiler flags for GTKGL, overriding pkg-config
 
2175
  GTKGL_LIBS  linker flags for GTKGL, overriding pkg-config
 
2176
  GTKGLEXT_CFLAGS
 
2177
              C compiler flags for GTKGLEXT, overriding pkg-config
 
2178
  GTKGLEXT_LIBS
 
2179
              linker flags for GTKGLEXT, overriding pkg-config
 
2180
  GTS_CFLAGS  C compiler flags for GTS, overriding pkg-config
 
2181
  GTS_LIBS    linker flags for GTS, overriding pkg-config
 
2182
  GLADE_CFLAGS
 
2183
              C compiler flags for GLADE, overriding pkg-config
 
2184
  GLADE_LIBS  linker flags for GLADE, overriding pkg-config
 
2185
  MING_CFLAGS C compiler flags for MING, overriding pkg-config
 
2186
  MING_LIBS   linker flags for MING, overriding pkg-config
 
2187
 
 
2188
Use these variables to override the choices made by `configure' or to help
 
2189
it to find libraries and programs with nonstandard names/locations.
 
2190
 
 
2191
Report bugs to <http://www.graphviz.org/>.
 
2192
_ACEOF
 
2193
ac_status=$?
 
2194
fi
 
2195
 
 
2196
if test "$ac_init_help" = "recursive"; then
 
2197
  # If there are subdirs, report their specific --help.
 
2198
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
2199
    test -d "$ac_dir" ||
 
2200
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
2201
      continue
 
2202
    ac_builddir=.
 
2203
 
 
2204
case "$ac_dir" in
 
2205
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2206
*)
 
2207
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
2208
  # A ".." for each directory in $ac_dir_suffix.
 
2209
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
2210
  case $ac_top_builddir_sub in
 
2211
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2212
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
2213
  esac ;;
 
2214
esac
 
2215
ac_abs_top_builddir=$ac_pwd
 
2216
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
2217
# for backward compatibility:
 
2218
ac_top_builddir=$ac_top_build_prefix
 
2219
 
 
2220
case $srcdir in
 
2221
  .)  # We are building in place.
 
2222
    ac_srcdir=.
 
2223
    ac_top_srcdir=$ac_top_builddir_sub
 
2224
    ac_abs_top_srcdir=$ac_pwd ;;
 
2225
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
2226
    ac_srcdir=$srcdir$ac_dir_suffix;
 
2227
    ac_top_srcdir=$srcdir
 
2228
    ac_abs_top_srcdir=$srcdir ;;
 
2229
  *) # Relative name.
 
2230
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
2231
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
2232
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
2233
esac
 
2234
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
2235
 
 
2236
    cd "$ac_dir" || { ac_status=$?; continue; }
 
2237
    # Check for guested configure.
 
2238
    if test -f "$ac_srcdir/configure.gnu"; then
 
2239
      echo &&
 
2240
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
2241
    elif test -f "$ac_srcdir/configure"; then
 
2242
      echo &&
 
2243
      $SHELL "$ac_srcdir/configure" --help=recursive
 
2244
    else
 
2245
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
2246
    fi || ac_status=$?
 
2247
    cd "$ac_pwd" || { ac_status=$?; break; }
 
2248
  done
 
2249
fi
 
2250
 
 
2251
test -n "$ac_init_help" && exit $ac_status
 
2252
if $ac_init_version; then
 
2253
  cat <<\_ACEOF
 
2254
graphviz configure 2.26.3
 
2255
generated by GNU Autoconf 2.63
 
2256
 
 
2257
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
2258
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
2259
This configure script is free software; the Free Software Foundation
 
2260
gives unlimited permission to copy, distribute and modify it.
 
2261
_ACEOF
 
2262
  exit
 
2263
fi
 
2264
cat >config.log <<_ACEOF
 
2265
This file contains any messages produced by compilers while
 
2266
running configure, to aid debugging if configure makes a mistake.
 
2267
 
 
2268
It was created by graphviz $as_me 2.26.3, which was
 
2269
generated by GNU Autoconf 2.63.  Invocation command line was
 
2270
 
 
2271
  $ $0 $@
 
2272
 
 
2273
_ACEOF
 
2274
exec 5>>config.log
 
2275
{
 
2276
cat <<_ASUNAME
 
2277
## --------- ##
 
2278
## Platform. ##
 
2279
## --------- ##
 
2280
 
 
2281
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2282
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2283
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2284
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2285
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2286
 
 
2287
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2288
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2289
 
 
2290
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2291
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2292
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2293
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2294
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2295
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2296
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2297
 
 
2298
_ASUNAME
 
2299
 
 
2300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2301
for as_dir in $PATH
 
2302
do
 
2303
  IFS=$as_save_IFS
 
2304
  test -z "$as_dir" && as_dir=.
 
2305
  $as_echo "PATH: $as_dir"
 
2306
done
 
2307
IFS=$as_save_IFS
 
2308
 
 
2309
} >&5
 
2310
 
 
2311
cat >&5 <<_ACEOF
 
2312
 
 
2313
 
 
2314
## ----------- ##
 
2315
## Core tests. ##
 
2316
## ----------- ##
 
2317
 
 
2318
_ACEOF
 
2319
 
 
2320
 
 
2321
# Keep a trace of the command line.
 
2322
# Strip out --no-create and --no-recursion so they do not pile up.
 
2323
# Strip out --silent because we don't want to record it for future runs.
 
2324
# Also quote any args containing shell meta-characters.
 
2325
# Make two passes to allow for proper duplicate-argument suppression.
 
2326
ac_configure_args=
 
2327
ac_configure_args0=
 
2328
ac_configure_args1=
 
2329
ac_must_keep_next=false
 
2330
for ac_pass in 1 2
 
2331
do
 
2332
  for ac_arg
 
2333
  do
 
2334
    case $ac_arg in
 
2335
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2336
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2337
    | -silent | --silent | --silen | --sile | --sil)
 
2338
      continue ;;
 
2339
    *\'*)
 
2340
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2341
    esac
 
2342
    case $ac_pass in
 
2343
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2344
    2)
 
2345
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2346
      if test $ac_must_keep_next = true; then
 
2347
        ac_must_keep_next=false # Got value, back to normal.
 
2348
      else
 
2349
        case $ac_arg in
 
2350
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2351
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2352
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2353
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2354
            case "$ac_configure_args0 " in
 
2355
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2356
            esac
 
2357
            ;;
 
2358
          -* ) ac_must_keep_next=true ;;
 
2359
        esac
 
2360
      fi
 
2361
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2362
      ;;
 
2363
    esac
 
2364
  done
 
2365
done
 
2366
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
2367
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2368
 
 
2369
# When interrupted or exit'd, cleanup temporary files, and complete
 
2370
# config.log.  We remove comments because anyway the quotes in there
 
2371
# would cause problems or look ugly.
 
2372
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2373
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2374
trap 'exit_status=$?
 
2375
  # Save into config.log some information that might help in debugging.
 
2376
  {
 
2377
    echo
 
2378
 
 
2379
    cat <<\_ASBOX
 
2380
## ---------------- ##
 
2381
## Cache variables. ##
 
2382
## ---------------- ##
 
2383
_ASBOX
 
2384
    echo
 
2385
    # The following way of writing the cache mishandles newlines in values,
 
2386
(
 
2387
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2388
    eval ac_val=\$$ac_var
 
2389
    case $ac_val in #(
 
2390
    *${as_nl}*)
 
2391
      case $ac_var in #(
 
2392
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
2393
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2394
      esac
 
2395
      case $ac_var in #(
 
2396
      _ | IFS | as_nl) ;; #(
 
2397
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2398
      *) $as_unset $ac_var ;;
 
2399
      esac ;;
 
2400
    esac
 
2401
  done
 
2402
  (set) 2>&1 |
 
2403
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2404
    *${as_nl}ac_space=\ *)
 
2405
      sed -n \
 
2406
        "s/'\''/'\''\\\\'\'''\''/g;
 
2407
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2408
      ;; #(
 
2409
    *)
 
2410
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2411
      ;;
 
2412
    esac |
 
2413
    sort
 
2414
)
 
2415
    echo
 
2416
 
 
2417
    cat <<\_ASBOX
 
2418
## ----------------- ##
 
2419
## Output variables. ##
 
2420
## ----------------- ##
 
2421
_ASBOX
 
2422
    echo
 
2423
    for ac_var in $ac_subst_vars
 
2424
    do
 
2425
      eval ac_val=\$$ac_var
 
2426
      case $ac_val in
 
2427
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2428
      esac
 
2429
      $as_echo "$ac_var='\''$ac_val'\''"
 
2430
    done | sort
 
2431
    echo
 
2432
 
 
2433
    if test -n "$ac_subst_files"; then
 
2434
      cat <<\_ASBOX
 
2435
## ------------------- ##
 
2436
## File substitutions. ##
 
2437
## ------------------- ##
 
2438
_ASBOX
 
2439
      echo
 
2440
      for ac_var in $ac_subst_files
 
2441
      do
 
2442
        eval ac_val=\$$ac_var
 
2443
        case $ac_val in
 
2444
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2445
        esac
 
2446
        $as_echo "$ac_var='\''$ac_val'\''"
 
2447
      done | sort
 
2448
      echo
 
2449
    fi
 
2450
 
 
2451
    if test -s confdefs.h; then
 
2452
      cat <<\_ASBOX
 
2453
## ----------- ##
 
2454
## confdefs.h. ##
 
2455
## ----------- ##
 
2456
_ASBOX
 
2457
      echo
 
2458
      cat confdefs.h
 
2459
      echo
 
2460
    fi
 
2461
    test "$ac_signal" != 0 &&
 
2462
      $as_echo "$as_me: caught signal $ac_signal"
 
2463
    $as_echo "$as_me: exit $exit_status"
 
2464
  } >&5
 
2465
  rm -f core *.core core.conftest.* &&
 
2466
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2467
    exit $exit_status
 
2468
' 0
 
2469
for ac_signal in 1 2 13 15; do
 
2470
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2471
done
 
2472
ac_signal=0
 
2473
 
 
2474
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2475
rm -f -r conftest* confdefs.h
 
2476
 
 
2477
# Predefined preprocessor variables.
 
2478
 
 
2479
cat >>confdefs.h <<_ACEOF
 
2480
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2481
_ACEOF
 
2482
 
 
2483
 
 
2484
cat >>confdefs.h <<_ACEOF
 
2485
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2486
_ACEOF
 
2487
 
 
2488
 
 
2489
cat >>confdefs.h <<_ACEOF
 
2490
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2491
_ACEOF
 
2492
 
 
2493
 
 
2494
cat >>confdefs.h <<_ACEOF
 
2495
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2496
_ACEOF
 
2497
 
 
2498
 
 
2499
cat >>confdefs.h <<_ACEOF
 
2500
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2501
_ACEOF
 
2502
 
 
2503
 
 
2504
# Let the site file select an alternate cache file if it wants to.
 
2505
# Prefer an explicitly selected file to automatically selected ones.
 
2506
ac_site_file1=NONE
 
2507
ac_site_file2=NONE
 
2508
if test -n "$CONFIG_SITE"; then
 
2509
  ac_site_file1=$CONFIG_SITE
 
2510
elif test "x$prefix" != xNONE; then
 
2511
  ac_site_file1=$prefix/share/config.site
 
2512
  ac_site_file2=$prefix/etc/config.site
 
2513
else
 
2514
  ac_site_file1=$ac_default_prefix/share/config.site
 
2515
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2516
fi
 
2517
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2518
do
 
2519
  test "x$ac_site_file" = xNONE && continue
 
2520
  if test -r "$ac_site_file"; then
 
2521
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2522
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2523
    sed 's/^/| /' "$ac_site_file" >&5
 
2524
    . "$ac_site_file"
 
2525
  fi
 
2526
done
 
2527
 
 
2528
if test -r "$cache_file"; then
 
2529
  # Some versions of bash will fail to source /dev/null (special
 
2530
  # files actually), so we avoid doing that.
 
2531
  if test -f "$cache_file"; then
 
2532
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2533
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2534
    case $cache_file in
 
2535
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2536
      *)                      . "./$cache_file";;
 
2537
    esac
 
2538
  fi
 
2539
else
 
2540
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2541
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2542
  >$cache_file
 
2543
fi
 
2544
 
 
2545
# Check that the precious variables saved in the cache have kept the same
 
2546
# value.
 
2547
ac_cache_corrupted=false
 
2548
for ac_var in $ac_precious_vars; do
 
2549
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2550
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2551
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2552
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2553
  case $ac_old_set,$ac_new_set in
 
2554
    set,)
 
2555
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2556
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2557
      ac_cache_corrupted=: ;;
 
2558
    ,set)
 
2559
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2560
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2561
      ac_cache_corrupted=: ;;
 
2562
    ,);;
 
2563
    *)
 
2564
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2565
        # differences in whitespace do not lead to failure.
 
2566
        ac_old_val_w=`echo x $ac_old_val`
 
2567
        ac_new_val_w=`echo x $ac_new_val`
 
2568
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2569
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2570
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2571
          ac_cache_corrupted=:
 
2572
        else
 
2573
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2574
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2575
          eval $ac_var=\$ac_old_val
 
2576
        fi
 
2577
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2578
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2579
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2580
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2581
      fi;;
 
2582
  esac
 
2583
  # Pass precious variables to config.status.
 
2584
  if test "$ac_new_set" = set; then
 
2585
    case $ac_new_val in
 
2586
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2587
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2588
    esac
 
2589
    case " $ac_configure_args " in
 
2590
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2591
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2592
    esac
 
2593
  fi
 
2594
done
 
2595
if $ac_cache_corrupted; then
 
2596
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2597
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2598
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2599
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2600
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2601
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2602
   { (exit 1); exit 1; }; }
 
2603
fi
 
2604
 
 
2605
 
 
2606
 
 
2607
 
 
2608
 
 
2609
 
 
2610
 
 
2611
 
 
2612
 
 
2613
 
 
2614
 
 
2615
 
 
2616
 
 
2617
 
 
2618
 
 
2619
 
 
2620
 
 
2621
 
 
2622
 
 
2623
 
 
2624
 
 
2625
 
 
2626
 
 
2627
 
 
2628
 
 
2629
ac_ext=c
 
2630
ac_cpp='$CPP $CPPFLAGS'
 
2631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2634
 
 
2635
 
 
2636
 
 
2637
GRAPHVIZ_VERSION_MAJOR=2
 
2638
GRAPHVIZ_VERSION_MINOR=26
 
2639
GRAPHVIZ_VERSION_MICRO=3
 
2640
 
 
2641
 
 
2642
 
 
2643
 
 
2644
VERSION_DATE=20100126.1600
 
2645
 
 
2646
 
 
2647
#NB: "development" on the next line gets changed to "stable" when building a release
 
2648
GRAPHVIZ_COLLECTION=development
 
2649
 
 
2650
GRAPHVIZ_SOURCES=graphviz/$GRAPHVIZ_COLLECTION/SOURCES
 
2651
 
 
2652
 
 
2653
 
 
2654
 
 
2655
# libtool shared library version for plugins
 
2656
 
 
2657
# Increment if the interface has additions, changes, removals.
 
2658
GVPLUGIN_CURRENT=6
 
2659
 
 
2660
# Increment any time the source changes; set to
 
2661
# 0 if you increment CURRENT
 
2662
GVPLUGIN_REVISION=0
 
2663
 
 
2664
# Increment if any interfaces have been added; set to 0
 
2665
# if any interfaces have been removed. removal has
 
2666
# precedence over adding, so set to 0 if both happened.
 
2667
GVPLUGIN_AGE=0
 
2668
 
 
2669
GVPLUGIN_CONFIG_FILE="config$GVPLUGIN_CURRENT"
 
2670
 
 
2671
cat >>confdefs.h <<_ACEOF
 
2672
#define GVPLUGIN_CONFIG_FILE "$GVPLUGIN_CONFIG_FILE"
 
2673
_ACEOF
 
2674
 
 
2675
 
 
2676
 
 
2677
GVPLUGIN_VERSION_INFO="$GVPLUGIN_CURRENT:$GVPLUGIN_REVISION:$GVPLUGIN_AGE"
 
2678
 
 
2679
 
 
2680
 
 
2681
 
 
2682
 
 
2683
ac_aux_dir=
 
2684
for ac_dir in config "$srcdir"/config; do
 
2685
  if test -f "$ac_dir/install-sh"; then
 
2686
    ac_aux_dir=$ac_dir
 
2687
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2688
    break
 
2689
  elif test -f "$ac_dir/install.sh"; then
 
2690
    ac_aux_dir=$ac_dir
 
2691
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2692
    break
 
2693
  elif test -f "$ac_dir/shtool"; then
 
2694
    ac_aux_dir=$ac_dir
 
2695
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2696
    break
 
2697
  fi
 
2698
done
 
2699
if test -z "$ac_aux_dir"; then
 
2700
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
 
2701
$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
 
2702
   { (exit 1); exit 1; }; }
 
2703
fi
 
2704
 
 
2705
# These three variables are undocumented and unsupported,
 
2706
# and are intended to be withdrawn in a future Autoconf release.
 
2707
# They can cause serious problems if a builder's source tree is in a directory
 
2708
# whose full name contains unusual characters.
 
2709
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2710
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2711
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2712
 
 
2713
 
 
2714
 
 
2715
 
 
2716
 
 
2717
# Make sure we can run config.sub.
 
2718
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2719
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2720
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2721
   { (exit 1); exit 1; }; }
 
2722
 
 
2723
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2724
$as_echo_n "checking build system type... " >&6; }
 
2725
if test "${ac_cv_build+set}" = set; then
 
2726
  $as_echo_n "(cached) " >&6
 
2727
else
 
2728
  ac_build_alias=$build_alias
 
2729
test "x$ac_build_alias" = x &&
 
2730
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2731
test "x$ac_build_alias" = x &&
 
2732
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2733
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2734
   { (exit 1); exit 1; }; }
 
2735
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2736
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2737
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2738
   { (exit 1); exit 1; }; }
 
2739
 
 
2740
fi
 
2741
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2742
$as_echo "$ac_cv_build" >&6; }
 
2743
case $ac_cv_build in
 
2744
*-*-*) ;;
 
2745
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2746
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
2747
   { (exit 1); exit 1; }; };;
 
2748
esac
 
2749
build=$ac_cv_build
 
2750
ac_save_IFS=$IFS; IFS='-'
 
2751
set x $ac_cv_build
 
2752
shift
 
2753
build_cpu=$1
 
2754
build_vendor=$2
 
2755
shift; shift
 
2756
# Remember, the first character of IFS is used to create $*,
 
2757
# except with old shells:
 
2758
build_os=$*
 
2759
IFS=$ac_save_IFS
 
2760
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2761
 
 
2762
 
 
2763
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2764
$as_echo_n "checking host system type... " >&6; }
 
2765
if test "${ac_cv_host+set}" = set; then
 
2766
  $as_echo_n "(cached) " >&6
 
2767
else
 
2768
  if test "x$host_alias" = x; then
 
2769
  ac_cv_host=$ac_cv_build
 
2770
else
 
2771
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2772
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2773
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2774
   { (exit 1); exit 1; }; }
 
2775
fi
 
2776
 
 
2777
fi
 
2778
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2779
$as_echo "$ac_cv_host" >&6; }
 
2780
case $ac_cv_host in
 
2781
*-*-*) ;;
 
2782
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2783
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
2784
   { (exit 1); exit 1; }; };;
 
2785
esac
 
2786
host=$ac_cv_host
 
2787
ac_save_IFS=$IFS; IFS='-'
 
2788
set x $ac_cv_host
 
2789
shift
 
2790
host_cpu=$1
 
2791
host_vendor=$2
 
2792
shift; shift
 
2793
# Remember, the first character of IFS is used to create $*,
 
2794
# except with old shells:
 
2795
host_os=$*
 
2796
IFS=$ac_save_IFS
 
2797
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2798
 
 
2799
 
 
2800
 
 
2801
# This nonsense drives me crazy!!
 
2802
case "${host_os}" in
 
2803
  *irix* | *nonstopux* )
 
2804
    GVPLUGIN_VERSION=`expr $GVPLUGIN_CURRENT + 1`
 
2805
    ;;
 
2806
  * )
 
2807
    GVPLUGIN_VERSION=$GVPLUGIN_CURRENT
 
2808
    ;;
 
2809
esac
 
2810
 
 
2811
cat >>confdefs.h <<_ACEOF
 
2812
#define GVPLUGIN_VERSION $GVPLUGIN_VERSION
 
2813
_ACEOF
 
2814
 
 
2815
 
 
2816
 
 
2817
GRAPHVIZ_VERSION_BUILD=0
 
2818
GRAPHVIZ_VERSION_REVISION=0
 
2819
case "${host_os}" in
 
2820
  *uwin* | *cygwin* | *mingw32* )
 
2821
        # Windows version numbers
 
2822
        # For the build number: months since Jan 2000, day of month from the timestamp
 
2823
        # For the revision number: hour, minute from the timestamp
 
2824
        if test $GRAPHVIZ_VERSION_MICRO != "0"; then
 
2825
                GRAPHVIZ_VERSION_BUILD=`expr \( ${GRAPHVIZ_VERSION_MICRO:0:4} - 2000 \) \* 12 + ${GRAPHVIZ_VERSION_MICRO:4:2}`${GRAPHVIZ_VERSION_MICRO:6:2}
 
2826
                GRAPHVIZ_VERSION_REVISION=${GRAPHVIZ_VERSION_MICRO:9:4}
 
2827
        fi
 
2828
        ;;
 
2829
esac
 
2830
 
 
2831
 
 
2832
 
 
2833
LIBPOSTFIX=
 
2834
case "${host_os}" in
 
2835
  *linux* )
 
2836
    case "${host_cpu}" in
 
2837
      powerpc64 | s390x | x86_64 )
 
2838
        LIBPOSTFIX="64"
 
2839
        ;;
 
2840
    esac
 
2841
    ;;
 
2842
esac
 
2843
 
 
2844
UWIN=no
 
2845
CYGWIN=no
 
2846
MINGW32=no
 
2847
DARWIN9=no
 
2848
case "${host_os}" in
 
2849
  *uwin* )
 
2850
        UWIN=yes
 
2851
        DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
 
2852
        CFLAGS="${CFLAGS} -DWIN32 -DMSWIN32"
 
2853
        CXXFLAGS="${CXXFLAGS} -DWIN32 -DMSWIN32"
 
2854
        PATHSEPARATOR=";"
 
2855
        NO_POSTSCRIPT_ALIAS=1
 
2856
        BROWSER="xdg-open"
 
2857
        ;;
 
2858
  *cygwin* )
 
2859
        CYGWIN=yes
 
2860
        DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
 
2861
        PATHSEPARATOR=";"
 
2862
        NO_POSTSCRIPT_ALIAS=1
 
2863
 
 
2864
cat >>confdefs.h <<\_ACEOF
 
2865
#define NO_POSTSCRIPT_ALIAS 1
 
2866
_ACEOF
 
2867
 
 
2868
        BROWSER="xdg-open"
 
2869
        ;;
 
2870
  *mingw32* )
 
2871
        MINGW32=yes
 
2872
        DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
 
2873
        PATHSEPARATOR=":"
 
2874
        NO_POSTSCRIPT_ALIAS=1
 
2875
        BROWSER="xdg-open"
 
2876
        ;;
 
2877
  *darwin9* )
 
2878
        DARWIN=yes
 
2879
 
 
2880
cat >>confdefs.h <<_ACEOF
 
2881
#define DARWIN 1
 
2882
_ACEOF
 
2883
 
 
2884
        DARWIN9=yes
 
2885
        DEFAULT_FONTPATH="~/Library/Fonts:/Library/Fonts:/Network/Library/Fonts:/System/Library/Fonts"
 
2886
        PATHSEPARATOR=":"
 
2887
        NO_POSTSCRIPT_ALIAS=1
 
2888
 
 
2889
cat >>confdefs.h <<_ACEOF
 
2890
#define DARWIN_DYLIB "$DARWIN_DYLIB"
 
2891
_ACEOF
 
2892
 
 
2893
        BROWSER="open"
 
2894
        case "${host_os}" in
 
2895
        *darwin9.4* | *darwin9.5* )
 
2896
                EXTRA_SMYRNA_LDFLAGS="-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
 
2897
                ;;
 
2898
        esac
 
2899
        ;;
 
2900
  *darwin* )
 
2901
        DARWIN=yes
 
2902
 
 
2903
cat >>confdefs.h <<_ACEOF
 
2904
#define DARWIN 1
 
2905
_ACEOF
 
2906
 
 
2907
        DEFAULT_FONTPATH="~/Library/Fonts:/Library/Fonts:/Network/Library/Fonts:/System/Library/Fonts"
 
2908
        PATHSEPARATOR=":"
 
2909
        NO_POSTSCRIPT_ALIAS=1
 
2910
        BROWSER="open"
 
2911
 
 
2912
cat >>confdefs.h <<_ACEOF
 
2913
#define DARWIN_DYLIB "$DARWIN_DYLIB"
 
2914
_ACEOF
 
2915
 
 
2916
        ;;
 
2917
  * ) # This sucks!  Whatever happened to standards for file system layout?
 
2918
        DEFAULT_FONTPATH="/usr/share/fonts/default/Type1:/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/common/share/fonts/ttf";
 
2919
        PATHSEPARATOR=":"
 
2920
        NO_POSTSCRIPT_ALIAS=0
 
2921
        BROWSER="xdg-open"
 
2922
        ;;
 
2923
esac
 
2924
 
 
2925
 
 
2926
 
 
2927
 
 
2928
 
 
2929
 
 
2930
cat >>confdefs.h <<_ACEOF
 
2931
#define DEFAULT_FONTPATH "$DEFAULT_FONTPATH"
 
2932
_ACEOF
 
2933
 
 
2934
 
 
2935
cat >>confdefs.h <<_ACEOF
 
2936
#define PATHSEPARATOR "$PATHSEPARATOR"
 
2937
_ACEOF
 
2938
 
 
2939
 
 
2940
cat >>confdefs.h <<_ACEOF
 
2941
#define NO_POSTSCRIPT_ALIAS $NO_POSTSCRIPT_ALIAS
 
2942
_ACEOF
 
2943
 
 
2944
 if test "x$UWIN" = "xyes" -o "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes"; then
 
2945
  WITH_WIN32_TRUE=
 
2946
  WITH_WIN32_FALSE='#'
 
2947
else
 
2948
  WITH_WIN32_TRUE='#'
 
2949
  WITH_WIN32_FALSE=
 
2950
fi
 
2951
 
 
2952
 if test "x$DARWIN9" = "xyes"; then
 
2953
  WITH_DARWIN9_TRUE=
 
2954
  WITH_DARWIN9_FALSE='#'
 
2955
else
 
2956
  WITH_DARWIN9_TRUE='#'
 
2957
  WITH_DARWIN9_FALSE=
 
2958
fi
 
2959
 
 
2960
 
 
2961
DEFAULT_DPI=96
 
2962
 
 
2963
cat >>confdefs.h <<_ACEOF
 
2964
#define DEFAULT_DPI $DEFAULT_DPI
 
2965
_ACEOF
 
2966
 
 
2967
 
 
2968
cat >>confdefs.h <<_ACEOF
 
2969
#define BROWSER "$BROWSER"
 
2970
_ACEOF
 
2971
 
 
2972
 
 
2973
am__api_version='1.10'
 
2974
 
 
2975
# Find a good install program.  We prefer a C program (faster),
 
2976
# so one script is as good as another.  But avoid the broken or
 
2977
# incompatible versions:
 
2978
# SysV /etc/install, /usr/sbin/install
 
2979
# SunOS /usr/etc/install
 
2980
# IRIX /sbin/install
 
2981
# AIX /bin/install
 
2982
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2983
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2984
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2985
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2986
# OS/2's system install, which has a completely different semantic
 
2987
# ./install, which can be erroneously created by make from ./install.sh.
 
2988
# Reject install programs that cannot install multiple files.
 
2989
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2990
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2991
if test -z "$INSTALL"; then
 
2992
if test "${ac_cv_path_install+set}" = set; then
 
2993
  $as_echo_n "(cached) " >&6
 
2994
else
 
2995
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2996
for as_dir in $PATH
 
2997
do
 
2998
  IFS=$as_save_IFS
 
2999
  test -z "$as_dir" && as_dir=.
 
3000
  # Account for people who put trailing slashes in PATH elements.
 
3001
case $as_dir/ in
 
3002
  ./ | .// | /cC/* | \
 
3003
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3004
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3005
  /usr/ucb/* ) ;;
 
3006
  *)
 
3007
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3008
    # Don't use installbsd from OSF since it installs stuff as root
 
3009
    # by default.
 
3010
    for ac_prog in ginstall scoinst install; do
 
3011
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3012
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3013
          if test $ac_prog = install &&
 
3014
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3015
            # AIX install.  It has an incompatible calling convention.
 
3016
            :
 
3017
          elif test $ac_prog = install &&
 
3018
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3019
            # program-specific install script used by HP pwplus--don't use.
 
3020
            :
 
3021
          else
 
3022
            rm -rf conftest.one conftest.two conftest.dir
 
3023
            echo one > conftest.one
 
3024
            echo two > conftest.two
 
3025
            mkdir conftest.dir
 
3026
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3027
              test -s conftest.one && test -s conftest.two &&
 
3028
              test -s conftest.dir/conftest.one &&
 
3029
              test -s conftest.dir/conftest.two
 
3030
            then
 
3031
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3032
              break 3
 
3033
            fi
 
3034
          fi
 
3035
        fi
 
3036
      done
 
3037
    done
 
3038
    ;;
 
3039
esac
 
3040
 
 
3041
done
 
3042
IFS=$as_save_IFS
 
3043
 
 
3044
rm -rf conftest.one conftest.two conftest.dir
 
3045
 
 
3046
fi
 
3047
  if test "${ac_cv_path_install+set}" = set; then
 
3048
    INSTALL=$ac_cv_path_install
 
3049
  else
 
3050
    # As a last resort, use the slow shell script.  Don't cache a
 
3051
    # value for INSTALL within a source directory, because that will
 
3052
    # break other packages using the cache if that directory is
 
3053
    # removed, or if the value is a relative name.
 
3054
    INSTALL=$ac_install_sh
 
3055
  fi
 
3056
fi
 
3057
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3058
$as_echo "$INSTALL" >&6; }
 
3059
 
 
3060
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3061
# It thinks the first close brace ends the variable substitution.
 
3062
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3063
 
 
3064
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3065
 
 
3066
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3067
 
 
3068
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
3069
$as_echo_n "checking whether build environment is sane... " >&6; }
 
3070
# Just in case
 
3071
sleep 1
 
3072
echo timestamp > conftest.file
 
3073
# Do `set' in a subshell so we don't clobber the current shell's
 
3074
# arguments.  Must try -L first in case configure is actually a
 
3075
# symlink; some systems play weird games with the mod time of symlinks
 
3076
# (eg FreeBSD returns the mod time of the symlink's containing
 
3077
# directory).
 
3078
if (
 
3079
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
3080
   if test "$*" = "X"; then
 
3081
      # -L didn't work.
 
3082
      set X `ls -t $srcdir/configure conftest.file`
 
3083
   fi
 
3084
   rm -f conftest.file
 
3085
   if test "$*" != "X $srcdir/configure conftest.file" \
 
3086
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
3087
 
 
3088
      # If neither matched, then we have a broken ls.  This can happen
 
3089
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3090
      # broken ls alias from the environment.  This has actually
 
3091
      # happened.  Such a system could not be considered "sane".
 
3092
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
3093
alias in your environment" >&5
 
3094
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
3095
alias in your environment" >&2;}
 
3096
   { (exit 1); exit 1; }; }
 
3097
   fi
 
3098
 
 
3099
   test "$2" = conftest.file
 
3100
   )
 
3101
then
 
3102
   # Ok.
 
3103
   :
 
3104
else
 
3105
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
3106
Check your system clock" >&5
 
3107
$as_echo "$as_me: error: newly created file is older than distributed files!
 
3108
Check your system clock" >&2;}
 
3109
   { (exit 1); exit 1; }; }
 
3110
fi
 
3111
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3112
$as_echo "yes" >&6; }
 
3113
test "$program_prefix" != NONE &&
 
3114
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
3115
# Use a double $ so make ignores it.
 
3116
test "$program_suffix" != NONE &&
 
3117
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
3118
# Double any \ or $.
 
3119
# By default was `s,x,x', remove it if useless.
 
3120
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
3121
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
3122
 
 
3123
# expand $ac_aux_dir to an absolute path
 
3124
am_aux_dir=`cd $ac_aux_dir && pwd`
 
3125
 
 
3126
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
3127
# Use eval to expand $SHELL
 
3128
if eval "$MISSING --run true"; then
 
3129
  am_missing_run="$MISSING --run "
 
3130
else
 
3131
  am_missing_run=
 
3132
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
3133
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3134
fi
 
3135
 
 
3136
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
3137
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3138
if test -z "$MKDIR_P"; then
 
3139
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3140
  $as_echo_n "(cached) " >&6
 
3141
else
 
3142
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3143
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3144
do
 
3145
  IFS=$as_save_IFS
 
3146
  test -z "$as_dir" && as_dir=.
 
3147
  for ac_prog in mkdir gmkdir; do
 
3148
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3149
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
3150
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3151
             'mkdir (GNU coreutils) '* | \
 
3152
             'mkdir (coreutils) '* | \
 
3153
             'mkdir (fileutils) '4.1*)
 
3154
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3155
               break 3;;
 
3156
           esac
 
3157
         done
 
3158
       done
 
3159
done
 
3160
IFS=$as_save_IFS
 
3161
 
 
3162
fi
 
3163
 
 
3164
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3165
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3166
  else
 
3167
    # As a last resort, use the slow shell script.  Don't cache a
 
3168
    # value for MKDIR_P within a source directory, because that will
 
3169
    # break other packages using the cache if that directory is
 
3170
    # removed, or if the value is a relative name.
 
3171
    test -d ./--version && rmdir ./--version
 
3172
    MKDIR_P="$ac_install_sh -d"
 
3173
  fi
 
3174
fi
 
3175
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
3176
$as_echo "$MKDIR_P" >&6; }
 
3177
 
 
3178
mkdir_p="$MKDIR_P"
 
3179
case $mkdir_p in
 
3180
  [\\/$]* | ?:[\\/]*) ;;
 
3181
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3182
esac
 
3183
 
 
3184
for ac_prog in gawk mawk nawk awk
 
3185
do
 
3186
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3187
set dummy $ac_prog; ac_word=$2
 
3188
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3189
$as_echo_n "checking for $ac_word... " >&6; }
 
3190
if test "${ac_cv_prog_AWK+set}" = set; then
 
3191
  $as_echo_n "(cached) " >&6
 
3192
else
 
3193
  if test -n "$AWK"; then
 
3194
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3195
else
 
3196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3197
for as_dir in $PATH
 
3198
do
 
3199
  IFS=$as_save_IFS
 
3200
  test -z "$as_dir" && as_dir=.
 
3201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3202
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3203
    ac_cv_prog_AWK="$ac_prog"
 
3204
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3205
    break 2
 
3206
  fi
 
3207
done
 
3208
done
 
3209
IFS=$as_save_IFS
 
3210
 
 
3211
fi
 
3212
fi
 
3213
AWK=$ac_cv_prog_AWK
 
3214
if test -n "$AWK"; then
 
3215
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
3216
$as_echo "$AWK" >&6; }
 
3217
else
 
3218
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3219
$as_echo "no" >&6; }
 
3220
fi
 
3221
 
 
3222
 
 
3223
  test -n "$AWK" && break
 
3224
done
 
3225
 
 
3226
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3227
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3228
set x ${MAKE-make}
 
3229
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3230
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3231
  $as_echo_n "(cached) " >&6
 
3232
else
 
3233
  cat >conftest.make <<\_ACEOF
 
3234
SHELL = /bin/sh
 
3235
all:
 
3236
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3237
_ACEOF
 
3238
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3239
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3240
  *@@@%%%=?*=@@@%%%*)
 
3241
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3242
  *)
 
3243
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3244
esac
 
3245
rm -f conftest.make
 
3246
fi
 
3247
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3248
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
3249
$as_echo "yes" >&6; }
 
3250
  SET_MAKE=
 
3251
else
 
3252
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3253
$as_echo "no" >&6; }
 
3254
  SET_MAKE="MAKE=${MAKE-make}"
 
3255
fi
 
3256
 
 
3257
rm -rf .tst 2>/dev/null
 
3258
mkdir .tst 2>/dev/null
 
3259
if test -d .tst; then
 
3260
  am__leading_dot=.
 
3261
else
 
3262
  am__leading_dot=_
 
3263
fi
 
3264
rmdir .tst 2>/dev/null
 
3265
 
 
3266
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3267
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3268
  # is not polluted with repeated "-I."
 
3269
  am__isrc=' -I$(srcdir)'
 
3270
  # test to see if srcdir already configured
 
3271
  if test -f $srcdir/config.status; then
 
3272
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
3273
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
3274
   { (exit 1); exit 1; }; }
 
3275
  fi
 
3276
fi
 
3277
 
 
3278
# test whether we have cygpath
 
3279
if test -z "$CYGPATH_W"; then
 
3280
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3281
    CYGPATH_W='cygpath -w'
 
3282
  else
 
3283
    CYGPATH_W=echo
 
3284
  fi
 
3285
fi
 
3286
 
 
3287
 
 
3288
# Define the identity of the package.
 
3289
 PACKAGE=graphviz
 
3290
 VERSION=2.26.3
 
3291
 
 
3292
 
 
3293
cat >>confdefs.h <<_ACEOF
 
3294
#define PACKAGE "$PACKAGE"
 
3295
_ACEOF
 
3296
 
 
3297
 
 
3298
cat >>confdefs.h <<_ACEOF
 
3299
#define VERSION "$VERSION"
 
3300
_ACEOF
 
3301
 
 
3302
# Some tools Automake needs.
 
3303
 
 
3304
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3305
 
 
3306
 
 
3307
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3308
 
 
3309
 
 
3310
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3311
 
 
3312
 
 
3313
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3314
 
 
3315
 
 
3316
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3317
 
 
3318
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
3319
 
 
3320
# Installed binaries are usually stripped using `strip' when the user
 
3321
# run `make install-strip'.  However `strip' might not be the right
 
3322
# tool to use in cross-compilation environments, therefore Automake
 
3323
# will honor the `STRIP' environment variable to overrule this program.
 
3324
if test "$cross_compiling" != no; then
 
3325
  if test -n "$ac_tool_prefix"; then
 
3326
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3327
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3328
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3329
$as_echo_n "checking for $ac_word... " >&6; }
 
3330
if test "${ac_cv_prog_STRIP+set}" = set; then
 
3331
  $as_echo_n "(cached) " >&6
 
3332
else
 
3333
  if test -n "$STRIP"; then
 
3334
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3335
else
 
3336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3337
for as_dir in $PATH
 
3338
do
 
3339
  IFS=$as_save_IFS
 
3340
  test -z "$as_dir" && as_dir=.
 
3341
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3343
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3344
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3345
    break 2
 
3346
  fi
 
3347
done
 
3348
done
 
3349
IFS=$as_save_IFS
 
3350
 
 
3351
fi
 
3352
fi
 
3353
STRIP=$ac_cv_prog_STRIP
 
3354
if test -n "$STRIP"; then
 
3355
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
3356
$as_echo "$STRIP" >&6; }
 
3357
else
 
3358
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3359
$as_echo "no" >&6; }
 
3360
fi
 
3361
 
 
3362
 
 
3363
fi
 
3364
if test -z "$ac_cv_prog_STRIP"; then
 
3365
  ac_ct_STRIP=$STRIP
 
3366
  # Extract the first word of "strip", so it can be a program name with args.
 
3367
set dummy strip; ac_word=$2
 
3368
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3369
$as_echo_n "checking for $ac_word... " >&6; }
 
3370
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
3371
  $as_echo_n "(cached) " >&6
 
3372
else
 
3373
  if test -n "$ac_ct_STRIP"; then
 
3374
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3375
else
 
3376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3377
for as_dir in $PATH
 
3378
do
 
3379
  IFS=$as_save_IFS
 
3380
  test -z "$as_dir" && as_dir=.
 
3381
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3382
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3383
    ac_cv_prog_ac_ct_STRIP="strip"
 
3384
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3385
    break 2
 
3386
  fi
 
3387
done
 
3388
done
 
3389
IFS=$as_save_IFS
 
3390
 
 
3391
fi
 
3392
fi
 
3393
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3394
if test -n "$ac_ct_STRIP"; then
 
3395
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
3396
$as_echo "$ac_ct_STRIP" >&6; }
 
3397
else
 
3398
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3399
$as_echo "no" >&6; }
 
3400
fi
 
3401
 
 
3402
  if test "x$ac_ct_STRIP" = x; then
 
3403
    STRIP=":"
 
3404
  else
 
3405
    case $cross_compiling:$ac_tool_warned in
 
3406
yes:)
 
3407
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3408
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3409
ac_tool_warned=yes ;;
 
3410
esac
 
3411
    STRIP=$ac_ct_STRIP
 
3412
  fi
 
3413
else
 
3414
  STRIP="$ac_cv_prog_STRIP"
 
3415
fi
 
3416
 
 
3417
fi
 
3418
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3419
 
 
3420
# We need awk for the "check" target.  The system "awk" is bad on
 
3421
# some platforms.
 
3422
# Always define AMTAR for backward compatibility.
 
3423
 
 
3424
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
3425
 
 
3426
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
3427
 
 
3428
 
 
3429
 
 
3430
 
 
3431
 
 
3432
 
 
3433
# Suppress verbose compile lines
 
3434
 
 
3435
 
 
3436
ac_config_headers="$ac_config_headers config.h"
 
3437
 
 
3438
 
 
3439
# put BUILDDATE in its own file so that only targets that use it get rebuilt
 
3440
echo "#define BUILDDATE \"$VERSION_DATE\"" > builddate.h
 
3441
 
 
3442
# only update ast_common.h (for GNU builds) from master if changed
 
3443
if ! `cmp -s $srcdir/ast_common.h.in ast_common.h`; then
 
3444
        cp $srcdir/ast_common.h.in ast_common.h;
 
3445
fi
 
3446
 
 
3447
 
 
3448
if test "x${prefix}" = "xNONE"; then
 
3449
        prefix=${ac_default_prefix}
 
3450
 
 
3451
fi
 
3452
 
 
3453
# automatically check for other dependencies in $prefix first
 
3454
if test "x${prefix}" != "x/usr"; then
 
3455
        CPPFLAGS="$CPPFLAGS -I${prefix}/include"
 
3456
        LDFLAGS="$LDFLAGS -L${prefix}/lib"
 
3457
        PKG_CONFIG_PATH="$prefix/lib/pkgconfig$PATHSEPARATOR$PKG_CONFIG_PATH"
 
3458
        export PKG_CONFIG_PATH
 
3459
fi
 
3460
 
 
3461
# Set of all available languages
 
3462
# ALL_LINGUAS=""
 
3463
 
 
3464
# Static/Shared binaries
 
3465
 
 
3466
# Check whether --enable-static was given.
 
3467
if test "${enable_static+set}" = set; then
 
3468
  enableval=$enable_static;
 
3469
fi
 
3470
 
 
3471
if test "x$enable_static" = "xyes"; then
 
3472
        # Check whether --enable-static was given.
 
3473
if test "${enable_static+set}" = set; then
 
3474
  enableval=$enable_static; p=${PACKAGE-default}
 
3475
    case $enableval in
 
3476
    yes) enable_static=yes ;;
 
3477
    no) enable_static=no ;;
 
3478
    *)
 
3479
     enable_static=no
 
3480
      # Look at the argument we got.  We use all the common list separators.
 
3481
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3482
      for pkg in $enableval; do
 
3483
        IFS="$lt_save_ifs"
 
3484
        if test "X$pkg" = "X$p"; then
 
3485
          enable_static=yes
 
3486
        fi
 
3487
      done
 
3488
      IFS="$lt_save_ifs"
 
3489
      ;;
 
3490
    esac
 
3491
else
 
3492
  enable_static=yes
 
3493
fi
 
3494
 
 
3495
 
 
3496
 
 
3497
 
 
3498
 
 
3499
 
 
3500
 
 
3501
 
 
3502
 
 
3503
        use_static="Yes"
 
3504
else
 
3505
        # Check whether --enable-static was given.
 
3506
if test "${enable_static+set}" = set; then
 
3507
  enableval=$enable_static; p=${PACKAGE-default}
 
3508
    case $enableval in
 
3509
    yes) enable_static=yes ;;
 
3510
    no) enable_static=no ;;
 
3511
    *)
 
3512
     enable_static=no
 
3513
      # Look at the argument we got.  We use all the common list separators.
 
3514
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3515
      for pkg in $enableval; do
 
3516
        IFS="$lt_save_ifs"
 
3517
        if test "X$pkg" = "X$p"; then
 
3518
          enable_static=yes
 
3519
        fi
 
3520
      done
 
3521
      IFS="$lt_save_ifs"
 
3522
      ;;
 
3523
    esac
 
3524
else
 
3525
  enable_static=no
 
3526
fi
 
3527
 
 
3528
 
 
3529
 
 
3530
 
 
3531
 
 
3532
 
 
3533
        use_static="No (disabled by default)"
 
3534
fi
 
3535
 if test "x$enable_static" = "xyes"; then
 
3536
  ENABLE_STATIC_TRUE=
 
3537
  ENABLE_STATIC_FALSE='#'
 
3538
else
 
3539
  ENABLE_STATIC_TRUE='#'
 
3540
  ENABLE_STATIC_FALSE=
 
3541
fi
 
3542
 
 
3543
 
 
3544
# Check whether --enable-shared was given.
 
3545
if test "${enable_shared+set}" = set; then
 
3546
  enableval=$enable_shared;
 
3547
fi
 
3548
 
 
3549
if test "x$enable_shared" != "xno"; then
 
3550
        # Check whether --enable-shared was given.
 
3551
if test "${enable_shared+set}" = set; then
 
3552
  enableval=$enable_shared; p=${PACKAGE-default}
 
3553
    case $enableval in
 
3554
    yes) enable_shared=yes ;;
 
3555
    no) enable_shared=no ;;
 
3556
    *)
 
3557
      enable_shared=no
 
3558
      # Look at the argument we got.  We use all the common list separators.
 
3559
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3560
      for pkg in $enableval; do
 
3561
        IFS="$lt_save_ifs"
 
3562
        if test "X$pkg" = "X$p"; then
 
3563
          enable_shared=yes
 
3564
        fi
 
3565
      done
 
3566
      IFS="$lt_save_ifs"
 
3567
      ;;
 
3568
    esac
 
3569
else
 
3570
  enable_shared=yes
 
3571
fi
 
3572
 
 
3573
 
 
3574
 
 
3575
 
 
3576
 
 
3577
 
 
3578
 
 
3579
 
 
3580
 
 
3581
        use_shared="Yes"
 
3582
        case "${host_os}" in
 
3583
                *uwin* | *cygwin* | *mingw32* )
 
3584
 
 
3585
cat >>confdefs.h <<_ACEOF
 
3586
#define GVDLL 1
 
3587
_ACEOF
 
3588
 
 
3589
                ;;
 
3590
        esac
 
3591
 
 
3592
else
 
3593
        use_shared="No (disabled)"
 
3594
        # Check whether --enable-shared was given.
 
3595
if test "${enable_shared+set}" = set; then
 
3596
  enableval=$enable_shared; p=${PACKAGE-default}
 
3597
    case $enableval in
 
3598
    yes) enable_shared=yes ;;
 
3599
    no) enable_shared=no ;;
 
3600
    *)
 
3601
      enable_shared=no
 
3602
      # Look at the argument we got.  We use all the common list separators.
 
3603
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3604
      for pkg in $enableval; do
 
3605
        IFS="$lt_save_ifs"
 
3606
        if test "X$pkg" = "X$p"; then
 
3607
          enable_shared=yes
 
3608
        fi
 
3609
      done
 
3610
      IFS="$lt_save_ifs"
 
3611
      ;;
 
3612
    esac
 
3613
else
 
3614
  enable_shared=no
 
3615
fi
 
3616
 
 
3617
 
 
3618
 
 
3619
 
 
3620
 
 
3621
 
 
3622
fi
 
3623
 if test "x$enable_shared" = "xyes"; then
 
3624
  ENABLE_SHARED_TRUE=
 
3625
  ENABLE_SHARED_FALSE='#'
 
3626
else
 
3627
  ENABLE_SHARED_TRUE='#'
 
3628
  ENABLE_SHARED_FALSE=
 
3629
fi
 
3630
 
 
3631
 
 
3632
 
 
3633
DEPDIR="${am__leading_dot}deps"
 
3634
 
 
3635
ac_config_commands="$ac_config_commands depfiles"
 
3636
 
 
3637
 
 
3638
am_make=${MAKE-make}
 
3639
cat > confinc << 'END'
 
3640
am__doit:
 
3641
        @echo done
 
3642
.PHONY: am__doit
 
3643
END
 
3644
# If we don't find an include directive, just comment out the code.
 
3645
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3646
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3647
am__include="#"
 
3648
am__quote=
 
3649
_am_result=none
 
3650
# First try GNU make style include.
 
3651
echo "include confinc" > confmf
 
3652
# We grep out `Entering directory' and `Leaving directory'
 
3653
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3654
# In particular we don't look at `^make:' because GNU make might
 
3655
# be invoked under some other name (usually "gmake"), in which
 
3656
# case it prints its new name instead of `make'.
 
3657
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3658
   am__include=include
 
3659
   am__quote=
 
3660
   _am_result=GNU
 
3661
fi
 
3662
# Now try BSD make style include.
 
3663
if test "$am__include" = "#"; then
 
3664
   echo '.include "confinc"' > confmf
 
3665
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3666
      am__include=.include
 
3667
      am__quote="\""
 
3668
      _am_result=BSD
 
3669
   fi
 
3670
fi
 
3671
 
 
3672
 
 
3673
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
3674
$as_echo "$_am_result" >&6; }
 
3675
rm -f confinc confmf
 
3676
 
 
3677
# Check whether --enable-dependency-tracking was given.
 
3678
if test "${enable_dependency_tracking+set}" = set; then
 
3679
  enableval=$enable_dependency_tracking;
 
3680
fi
 
3681
 
 
3682
if test "x$enable_dependency_tracking" != xno; then
 
3683
  am_depcomp="$ac_aux_dir/depcomp"
 
3684
  AMDEPBACKSLASH='\'
 
3685
fi
 
3686
 if test "x$enable_dependency_tracking" != xno; then
 
3687
  AMDEP_TRUE=
 
3688
  AMDEP_FALSE='#'
 
3689
else
 
3690
  AMDEP_TRUE='#'
 
3691
  AMDEP_FALSE=
 
3692
fi
 
3693
 
 
3694
 
 
3695
ac_ext=c
 
3696
ac_cpp='$CPP $CPPFLAGS'
 
3697
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3698
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3699
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3700
if test -n "$ac_tool_prefix"; then
 
3701
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3702
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3703
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3704
$as_echo_n "checking for $ac_word... " >&6; }
 
3705
if test "${ac_cv_prog_CC+set}" = set; then
 
3706
  $as_echo_n "(cached) " >&6
 
3707
else
 
3708
  if test -n "$CC"; then
 
3709
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3710
else
 
3711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3712
for as_dir in $PATH
 
3713
do
 
3714
  IFS=$as_save_IFS
 
3715
  test -z "$as_dir" && as_dir=.
 
3716
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3717
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3718
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3719
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3720
    break 2
 
3721
  fi
 
3722
done
 
3723
done
 
3724
IFS=$as_save_IFS
 
3725
 
 
3726
fi
 
3727
fi
 
3728
CC=$ac_cv_prog_CC
 
3729
if test -n "$CC"; then
 
3730
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3731
$as_echo "$CC" >&6; }
 
3732
else
 
3733
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3734
$as_echo "no" >&6; }
 
3735
fi
 
3736
 
 
3737
 
 
3738
fi
 
3739
if test -z "$ac_cv_prog_CC"; then
 
3740
  ac_ct_CC=$CC
 
3741
  # Extract the first word of "gcc", so it can be a program name with args.
 
3742
set dummy gcc; ac_word=$2
 
3743
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3744
$as_echo_n "checking for $ac_word... " >&6; }
 
3745
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3746
  $as_echo_n "(cached) " >&6
 
3747
else
 
3748
  if test -n "$ac_ct_CC"; then
 
3749
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3750
else
 
3751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3752
for as_dir in $PATH
 
3753
do
 
3754
  IFS=$as_save_IFS
 
3755
  test -z "$as_dir" && as_dir=.
 
3756
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3757
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3758
    ac_cv_prog_ac_ct_CC="gcc"
 
3759
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3760
    break 2
 
3761
  fi
 
3762
done
 
3763
done
 
3764
IFS=$as_save_IFS
 
3765
 
 
3766
fi
 
3767
fi
 
3768
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3769
if test -n "$ac_ct_CC"; then
 
3770
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3771
$as_echo "$ac_ct_CC" >&6; }
 
3772
else
 
3773
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3774
$as_echo "no" >&6; }
 
3775
fi
 
3776
 
 
3777
  if test "x$ac_ct_CC" = x; then
 
3778
    CC=""
 
3779
  else
 
3780
    case $cross_compiling:$ac_tool_warned in
 
3781
yes:)
 
3782
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3783
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3784
ac_tool_warned=yes ;;
 
3785
esac
 
3786
    CC=$ac_ct_CC
 
3787
  fi
 
3788
else
 
3789
  CC="$ac_cv_prog_CC"
 
3790
fi
 
3791
 
 
3792
if test -z "$CC"; then
 
3793
          if test -n "$ac_tool_prefix"; then
 
3794
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3795
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3796
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3797
$as_echo_n "checking for $ac_word... " >&6; }
 
3798
if test "${ac_cv_prog_CC+set}" = set; then
 
3799
  $as_echo_n "(cached) " >&6
 
3800
else
 
3801
  if test -n "$CC"; then
 
3802
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3803
else
 
3804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3805
for as_dir in $PATH
 
3806
do
 
3807
  IFS=$as_save_IFS
 
3808
  test -z "$as_dir" && as_dir=.
 
3809
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3810
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3811
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3812
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3813
    break 2
 
3814
  fi
 
3815
done
 
3816
done
 
3817
IFS=$as_save_IFS
 
3818
 
 
3819
fi
 
3820
fi
 
3821
CC=$ac_cv_prog_CC
 
3822
if test -n "$CC"; then
 
3823
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3824
$as_echo "$CC" >&6; }
 
3825
else
 
3826
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3827
$as_echo "no" >&6; }
 
3828
fi
 
3829
 
 
3830
 
 
3831
  fi
 
3832
fi
 
3833
if test -z "$CC"; then
 
3834
  # Extract the first word of "cc", so it can be a program name with args.
 
3835
set dummy cc; ac_word=$2
 
3836
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3837
$as_echo_n "checking for $ac_word... " >&6; }
 
3838
if test "${ac_cv_prog_CC+set}" = set; then
 
3839
  $as_echo_n "(cached) " >&6
 
3840
else
 
3841
  if test -n "$CC"; then
 
3842
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3843
else
 
3844
  ac_prog_rejected=no
 
3845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3846
for as_dir in $PATH
 
3847
do
 
3848
  IFS=$as_save_IFS
 
3849
  test -z "$as_dir" && as_dir=.
 
3850
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3851
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3852
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3853
       ac_prog_rejected=yes
 
3854
       continue
 
3855
     fi
 
3856
    ac_cv_prog_CC="cc"
 
3857
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3858
    break 2
 
3859
  fi
 
3860
done
 
3861
done
 
3862
IFS=$as_save_IFS
 
3863
 
 
3864
if test $ac_prog_rejected = yes; then
 
3865
  # We found a bogon in the path, so make sure we never use it.
 
3866
  set dummy $ac_cv_prog_CC
 
3867
  shift
 
3868
  if test $# != 0; then
 
3869
    # We chose a different compiler from the bogus one.
 
3870
    # However, it has the same basename, so the bogon will be chosen
 
3871
    # first if we set CC to just the basename; use the full file name.
 
3872
    shift
 
3873
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3874
  fi
 
3875
fi
 
3876
fi
 
3877
fi
 
3878
CC=$ac_cv_prog_CC
 
3879
if test -n "$CC"; then
 
3880
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3881
$as_echo "$CC" >&6; }
 
3882
else
 
3883
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3884
$as_echo "no" >&6; }
 
3885
fi
 
3886
 
 
3887
 
 
3888
fi
 
3889
if test -z "$CC"; then
 
3890
  if test -n "$ac_tool_prefix"; then
 
3891
  for ac_prog in cl.exe
 
3892
  do
 
3893
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3894
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3895
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3896
$as_echo_n "checking for $ac_word... " >&6; }
 
3897
if test "${ac_cv_prog_CC+set}" = set; then
 
3898
  $as_echo_n "(cached) " >&6
 
3899
else
 
3900
  if test -n "$CC"; then
 
3901
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3902
else
 
3903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3904
for as_dir in $PATH
 
3905
do
 
3906
  IFS=$as_save_IFS
 
3907
  test -z "$as_dir" && as_dir=.
 
3908
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3909
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3910
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3911
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3912
    break 2
 
3913
  fi
 
3914
done
 
3915
done
 
3916
IFS=$as_save_IFS
 
3917
 
 
3918
fi
 
3919
fi
 
3920
CC=$ac_cv_prog_CC
 
3921
if test -n "$CC"; then
 
3922
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3923
$as_echo "$CC" >&6; }
 
3924
else
 
3925
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3926
$as_echo "no" >&6; }
 
3927
fi
 
3928
 
 
3929
 
 
3930
    test -n "$CC" && break
 
3931
  done
 
3932
fi
 
3933
if test -z "$CC"; then
 
3934
  ac_ct_CC=$CC
 
3935
  for ac_prog in cl.exe
 
3936
do
 
3937
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3938
set dummy $ac_prog; ac_word=$2
 
3939
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3940
$as_echo_n "checking for $ac_word... " >&6; }
 
3941
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3942
  $as_echo_n "(cached) " >&6
 
3943
else
 
3944
  if test -n "$ac_ct_CC"; then
 
3945
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3946
else
 
3947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3948
for as_dir in $PATH
 
3949
do
 
3950
  IFS=$as_save_IFS
 
3951
  test -z "$as_dir" && as_dir=.
 
3952
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3953
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3954
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3955
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3956
    break 2
 
3957
  fi
 
3958
done
 
3959
done
 
3960
IFS=$as_save_IFS
 
3961
 
 
3962
fi
 
3963
fi
 
3964
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3965
if test -n "$ac_ct_CC"; then
 
3966
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3967
$as_echo "$ac_ct_CC" >&6; }
 
3968
else
 
3969
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3970
$as_echo "no" >&6; }
 
3971
fi
 
3972
 
 
3973
 
 
3974
  test -n "$ac_ct_CC" && break
 
3975
done
 
3976
 
 
3977
  if test "x$ac_ct_CC" = x; then
 
3978
    CC=""
 
3979
  else
 
3980
    case $cross_compiling:$ac_tool_warned in
 
3981
yes:)
 
3982
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3983
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3984
ac_tool_warned=yes ;;
 
3985
esac
 
3986
    CC=$ac_ct_CC
 
3987
  fi
 
3988
fi
 
3989
 
 
3990
fi
 
3991
 
 
3992
 
 
3993
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3994
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3995
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3996
See \`config.log' for more details." >&5
 
3997
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3998
See \`config.log' for more details." >&2;}
 
3999
   { (exit 1); exit 1; }; }; }
 
4000
 
 
4001
# Provide some information about the compiler.
 
4002
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
4003
set X $ac_compile
 
4004
ac_compiler=$2
 
4005
{ (ac_try="$ac_compiler --version >&5"
 
4006
case "(($ac_try" in
 
4007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4008
  *) ac_try_echo=$ac_try;;
 
4009
esac
 
4010
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4011
$as_echo "$ac_try_echo") >&5
 
4012
  (eval "$ac_compiler --version >&5") 2>&5
 
4013
  ac_status=$?
 
4014
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4015
  (exit $ac_status); }
 
4016
{ (ac_try="$ac_compiler -v >&5"
 
4017
case "(($ac_try" in
 
4018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4019
  *) ac_try_echo=$ac_try;;
 
4020
esac
 
4021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4022
$as_echo "$ac_try_echo") >&5
 
4023
  (eval "$ac_compiler -v >&5") 2>&5
 
4024
  ac_status=$?
 
4025
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4026
  (exit $ac_status); }
 
4027
{ (ac_try="$ac_compiler -V >&5"
 
4028
case "(($ac_try" in
 
4029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4030
  *) ac_try_echo=$ac_try;;
 
4031
esac
 
4032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4033
$as_echo "$ac_try_echo") >&5
 
4034
  (eval "$ac_compiler -V >&5") 2>&5
 
4035
  ac_status=$?
 
4036
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4037
  (exit $ac_status); }
 
4038
 
 
4039
cat >conftest.$ac_ext <<_ACEOF
 
4040
/* confdefs.h.  */
 
4041
_ACEOF
 
4042
cat confdefs.h >>conftest.$ac_ext
 
4043
cat >>conftest.$ac_ext <<_ACEOF
 
4044
/* end confdefs.h.  */
 
4045
 
 
4046
int
 
4047
main ()
 
4048
{
 
4049
 
 
4050
  ;
 
4051
  return 0;
 
4052
}
 
4053
_ACEOF
 
4054
ac_clean_files_save=$ac_clean_files
 
4055
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
4056
# Try to create an executable without -o first, disregard a.out.
 
4057
# It will help us diagnose broken compilers, and finding out an intuition
 
4058
# of exeext.
 
4059
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
4060
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4061
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
4062
 
 
4063
# The possible output files:
 
4064
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
4065
 
 
4066
ac_rmfiles=
 
4067
for ac_file in $ac_files
 
4068
do
 
4069
  case $ac_file in
 
4070
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4071
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
4072
  esac
 
4073
done
 
4074
rm -f $ac_rmfiles
 
4075
 
 
4076
if { (ac_try="$ac_link_default"
 
4077
case "(($ac_try" in
 
4078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4079
  *) ac_try_echo=$ac_try;;
 
4080
esac
 
4081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4082
$as_echo "$ac_try_echo") >&5
 
4083
  (eval "$ac_link_default") 2>&5
 
4084
  ac_status=$?
 
4085
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4086
  (exit $ac_status); }; then
 
4087
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
4088
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
4089
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
4090
# so that the user can short-circuit this test for compilers unknown to
 
4091
# Autoconf.
 
4092
for ac_file in $ac_files ''
 
4093
do
 
4094
  test -f "$ac_file" || continue
 
4095
  case $ac_file in
 
4096
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
4097
        ;;
 
4098
    [ab].out )
 
4099
        # We found the default executable, but exeext='' is most
 
4100
        # certainly right.
 
4101
        break;;
 
4102
    *.* )
 
4103
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4104
        then :; else
 
4105
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4106
        fi
 
4107
        # We set ac_cv_exeext here because the later test for it is not
 
4108
        # safe: cross compilers may not add the suffix if given an `-o'
 
4109
        # argument, so we may need to know it at that point already.
 
4110
        # Even if this section looks crufty: it has the advantage of
 
4111
        # actually working.
 
4112
        break;;
 
4113
    * )
 
4114
        break;;
 
4115
  esac
 
4116
done
 
4117
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
4118
 
 
4119
else
 
4120
  ac_file=''
 
4121
fi
 
4122
 
 
4123
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
4124
$as_echo "$ac_file" >&6; }
 
4125
if test -z "$ac_file"; then
 
4126
  $as_echo "$as_me: failed program was:" >&5
 
4127
sed 's/^/| /' conftest.$ac_ext >&5
 
4128
 
 
4129
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4130
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4131
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
4132
See \`config.log' for more details." >&5
 
4133
$as_echo "$as_me: error: C compiler cannot create executables
 
4134
See \`config.log' for more details." >&2;}
 
4135
   { (exit 77); exit 77; }; }; }
 
4136
fi
 
4137
 
 
4138
ac_exeext=$ac_cv_exeext
 
4139
 
 
4140
# Check that the compiler produces executables we can run.  If not, either
 
4141
# the compiler is broken, or we cross compile.
 
4142
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
4143
$as_echo_n "checking whether the C compiler works... " >&6; }
 
4144
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
4145
# If not cross compiling, check that we can run a simple program.
 
4146
if test "$cross_compiling" != yes; then
 
4147
  if { ac_try='./$ac_file'
 
4148
  { (case "(($ac_try" in
 
4149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4150
  *) ac_try_echo=$ac_try;;
 
4151
esac
 
4152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4153
$as_echo "$ac_try_echo") >&5
 
4154
  (eval "$ac_try") 2>&5
 
4155
  ac_status=$?
 
4156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4157
  (exit $ac_status); }; }; then
 
4158
    cross_compiling=no
 
4159
  else
 
4160
    if test "$cross_compiling" = maybe; then
 
4161
        cross_compiling=yes
 
4162
    else
 
4163
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4164
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4165
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
4166
If you meant to cross compile, use \`--host'.
 
4167
See \`config.log' for more details." >&5
 
4168
$as_echo "$as_me: error: cannot run C compiled programs.
 
4169
If you meant to cross compile, use \`--host'.
 
4170
See \`config.log' for more details." >&2;}
 
4171
   { (exit 1); exit 1; }; }; }
 
4172
    fi
 
4173
  fi
 
4174
fi
 
4175
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
4176
$as_echo "yes" >&6; }
 
4177
 
 
4178
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
4179
ac_clean_files=$ac_clean_files_save
 
4180
# Check that the compiler produces executables we can run.  If not, either
 
4181
# the compiler is broken, or we cross compile.
 
4182
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
4183
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4184
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
4185
$as_echo "$cross_compiling" >&6; }
 
4186
 
 
4187
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
4188
$as_echo_n "checking for suffix of executables... " >&6; }
 
4189
if { (ac_try="$ac_link"
 
4190
case "(($ac_try" in
 
4191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4192
  *) ac_try_echo=$ac_try;;
 
4193
esac
 
4194
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4195
$as_echo "$ac_try_echo") >&5
 
4196
  (eval "$ac_link") 2>&5
 
4197
  ac_status=$?
 
4198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4199
  (exit $ac_status); }; then
 
4200
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
4201
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
4202
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
4203
# `rm'.
 
4204
for ac_file in conftest.exe conftest conftest.*; do
 
4205
  test -f "$ac_file" || continue
 
4206
  case $ac_file in
 
4207
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4208
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4209
          break;;
 
4210
    * ) break;;
 
4211
  esac
 
4212
done
 
4213
else
 
4214
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4215
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4216
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
4217
See \`config.log' for more details." >&5
 
4218
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
4219
See \`config.log' for more details." >&2;}
 
4220
   { (exit 1); exit 1; }; }; }
 
4221
fi
 
4222
 
 
4223
rm -f conftest$ac_cv_exeext
 
4224
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
4225
$as_echo "$ac_cv_exeext" >&6; }
 
4226
 
 
4227
rm -f conftest.$ac_ext
 
4228
EXEEXT=$ac_cv_exeext
 
4229
ac_exeext=$EXEEXT
 
4230
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
4231
$as_echo_n "checking for suffix of object files... " >&6; }
 
4232
if test "${ac_cv_objext+set}" = set; then
 
4233
  $as_echo_n "(cached) " >&6
 
4234
else
 
4235
  cat >conftest.$ac_ext <<_ACEOF
 
4236
/* confdefs.h.  */
 
4237
_ACEOF
 
4238
cat confdefs.h >>conftest.$ac_ext
 
4239
cat >>conftest.$ac_ext <<_ACEOF
 
4240
/* end confdefs.h.  */
 
4241
 
 
4242
int
 
4243
main ()
 
4244
{
 
4245
 
 
4246
  ;
 
4247
  return 0;
 
4248
}
 
4249
_ACEOF
 
4250
rm -f conftest.o conftest.obj
 
4251
if { (ac_try="$ac_compile"
 
4252
case "(($ac_try" in
 
4253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4254
  *) ac_try_echo=$ac_try;;
 
4255
esac
 
4256
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4257
$as_echo "$ac_try_echo") >&5
 
4258
  (eval "$ac_compile") 2>&5
 
4259
  ac_status=$?
 
4260
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4261
  (exit $ac_status); }; then
 
4262
  for ac_file in conftest.o conftest.obj conftest.*; do
 
4263
  test -f "$ac_file" || continue;
 
4264
  case $ac_file in
 
4265
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
4266
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
4267
       break;;
 
4268
  esac
 
4269
done
 
4270
else
 
4271
  $as_echo "$as_me: failed program was:" >&5
 
4272
sed 's/^/| /' conftest.$ac_ext >&5
 
4273
 
 
4274
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4275
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4276
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
4277
See \`config.log' for more details." >&5
 
4278
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
4279
See \`config.log' for more details." >&2;}
 
4280
   { (exit 1); exit 1; }; }; }
 
4281
fi
 
4282
 
 
4283
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
4284
fi
 
4285
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
4286
$as_echo "$ac_cv_objext" >&6; }
 
4287
OBJEXT=$ac_cv_objext
 
4288
ac_objext=$OBJEXT
 
4289
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
4290
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4291
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
4292
  $as_echo_n "(cached) " >&6
 
4293
else
 
4294
  cat >conftest.$ac_ext <<_ACEOF
 
4295
/* confdefs.h.  */
 
4296
_ACEOF
 
4297
cat confdefs.h >>conftest.$ac_ext
 
4298
cat >>conftest.$ac_ext <<_ACEOF
 
4299
/* end confdefs.h.  */
 
4300
 
 
4301
int
 
4302
main ()
 
4303
{
 
4304
#ifndef __GNUC__
 
4305
       choke me
 
4306
#endif
 
4307
 
 
4308
  ;
 
4309
  return 0;
 
4310
}
 
4311
_ACEOF
 
4312
rm -f conftest.$ac_objext
 
4313
if { (ac_try="$ac_compile"
 
4314
case "(($ac_try" in
 
4315
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4316
  *) ac_try_echo=$ac_try;;
 
4317
esac
 
4318
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4319
$as_echo "$ac_try_echo") >&5
 
4320
  (eval "$ac_compile") 2>conftest.er1
 
4321
  ac_status=$?
 
4322
  grep -v '^ *+' conftest.er1 >conftest.err
 
4323
  rm -f conftest.er1
 
4324
  cat conftest.err >&5
 
4325
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4326
  (exit $ac_status); } && {
 
4327
         test -z "$ac_c_werror_flag" ||
 
4328
         test ! -s conftest.err
 
4329
       } && test -s conftest.$ac_objext; then
 
4330
  ac_compiler_gnu=yes
 
4331
else
 
4332
  $as_echo "$as_me: failed program was:" >&5
 
4333
sed 's/^/| /' conftest.$ac_ext >&5
 
4334
 
 
4335
        ac_compiler_gnu=no
 
4336
fi
 
4337
 
 
4338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4339
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4340
 
 
4341
fi
 
4342
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
4343
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4344
if test $ac_compiler_gnu = yes; then
 
4345
  GCC=yes
 
4346
else
 
4347
  GCC=
 
4348
fi
 
4349
ac_test_CFLAGS=${CFLAGS+set}
 
4350
ac_save_CFLAGS=$CFLAGS
 
4351
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
4352
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4353
if test "${ac_cv_prog_cc_g+set}" = set; then
 
4354
  $as_echo_n "(cached) " >&6
 
4355
else
 
4356
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4357
   ac_c_werror_flag=yes
 
4358
   ac_cv_prog_cc_g=no
 
4359
   CFLAGS="-g"
 
4360
   cat >conftest.$ac_ext <<_ACEOF
 
4361
/* confdefs.h.  */
 
4362
_ACEOF
 
4363
cat confdefs.h >>conftest.$ac_ext
 
4364
cat >>conftest.$ac_ext <<_ACEOF
 
4365
/* end confdefs.h.  */
 
4366
 
 
4367
int
 
4368
main ()
 
4369
{
 
4370
 
 
4371
  ;
 
4372
  return 0;
 
4373
}
 
4374
_ACEOF
 
4375
rm -f conftest.$ac_objext
 
4376
if { (ac_try="$ac_compile"
 
4377
case "(($ac_try" in
 
4378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4379
  *) ac_try_echo=$ac_try;;
 
4380
esac
 
4381
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4382
$as_echo "$ac_try_echo") >&5
 
4383
  (eval "$ac_compile") 2>conftest.er1
 
4384
  ac_status=$?
 
4385
  grep -v '^ *+' conftest.er1 >conftest.err
 
4386
  rm -f conftest.er1
 
4387
  cat conftest.err >&5
 
4388
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4389
  (exit $ac_status); } && {
 
4390
         test -z "$ac_c_werror_flag" ||
 
4391
         test ! -s conftest.err
 
4392
       } && test -s conftest.$ac_objext; then
 
4393
  ac_cv_prog_cc_g=yes
 
4394
else
 
4395
  $as_echo "$as_me: failed program was:" >&5
 
4396
sed 's/^/| /' conftest.$ac_ext >&5
 
4397
 
 
4398
        CFLAGS=""
 
4399
      cat >conftest.$ac_ext <<_ACEOF
 
4400
/* confdefs.h.  */
 
4401
_ACEOF
 
4402
cat confdefs.h >>conftest.$ac_ext
 
4403
cat >>conftest.$ac_ext <<_ACEOF
 
4404
/* end confdefs.h.  */
 
4405
 
 
4406
int
 
4407
main ()
 
4408
{
 
4409
 
 
4410
  ;
 
4411
  return 0;
 
4412
}
 
4413
_ACEOF
 
4414
rm -f conftest.$ac_objext
 
4415
if { (ac_try="$ac_compile"
 
4416
case "(($ac_try" in
 
4417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4418
  *) ac_try_echo=$ac_try;;
 
4419
esac
 
4420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4421
$as_echo "$ac_try_echo") >&5
 
4422
  (eval "$ac_compile") 2>conftest.er1
 
4423
  ac_status=$?
 
4424
  grep -v '^ *+' conftest.er1 >conftest.err
 
4425
  rm -f conftest.er1
 
4426
  cat conftest.err >&5
 
4427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4428
  (exit $ac_status); } && {
 
4429
         test -z "$ac_c_werror_flag" ||
 
4430
         test ! -s conftest.err
 
4431
       } && test -s conftest.$ac_objext; then
 
4432
  :
 
4433
else
 
4434
  $as_echo "$as_me: failed program was:" >&5
 
4435
sed 's/^/| /' conftest.$ac_ext >&5
 
4436
 
 
4437
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4438
         CFLAGS="-g"
 
4439
         cat >conftest.$ac_ext <<_ACEOF
 
4440
/* confdefs.h.  */
 
4441
_ACEOF
 
4442
cat confdefs.h >>conftest.$ac_ext
 
4443
cat >>conftest.$ac_ext <<_ACEOF
 
4444
/* end confdefs.h.  */
 
4445
 
 
4446
int
 
4447
main ()
 
4448
{
 
4449
 
 
4450
  ;
 
4451
  return 0;
 
4452
}
 
4453
_ACEOF
 
4454
rm -f conftest.$ac_objext
 
4455
if { (ac_try="$ac_compile"
 
4456
case "(($ac_try" in
 
4457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4458
  *) ac_try_echo=$ac_try;;
 
4459
esac
 
4460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4461
$as_echo "$ac_try_echo") >&5
 
4462
  (eval "$ac_compile") 2>conftest.er1
 
4463
  ac_status=$?
 
4464
  grep -v '^ *+' conftest.er1 >conftest.err
 
4465
  rm -f conftest.er1
 
4466
  cat conftest.err >&5
 
4467
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4468
  (exit $ac_status); } && {
 
4469
         test -z "$ac_c_werror_flag" ||
 
4470
         test ! -s conftest.err
 
4471
       } && test -s conftest.$ac_objext; then
 
4472
  ac_cv_prog_cc_g=yes
 
4473
else
 
4474
  $as_echo "$as_me: failed program was:" >&5
 
4475
sed 's/^/| /' conftest.$ac_ext >&5
 
4476
 
 
4477
 
 
4478
fi
 
4479
 
 
4480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4481
fi
 
4482
 
 
4483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4484
fi
 
4485
 
 
4486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4487
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4488
fi
 
4489
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4490
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4491
if test "$ac_test_CFLAGS" = set; then
 
4492
  CFLAGS=$ac_save_CFLAGS
 
4493
elif test $ac_cv_prog_cc_g = yes; then
 
4494
  if test "$GCC" = yes; then
 
4495
    CFLAGS="-g -O2"
 
4496
  else
 
4497
    CFLAGS="-g"
 
4498
  fi
 
4499
else
 
4500
  if test "$GCC" = yes; then
 
4501
    CFLAGS="-O2"
 
4502
  else
 
4503
    CFLAGS=
 
4504
  fi
 
4505
fi
 
4506
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
4507
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4508
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
4509
  $as_echo_n "(cached) " >&6
 
4510
else
 
4511
  ac_cv_prog_cc_c89=no
 
4512
ac_save_CC=$CC
 
4513
cat >conftest.$ac_ext <<_ACEOF
 
4514
/* confdefs.h.  */
 
4515
_ACEOF
 
4516
cat confdefs.h >>conftest.$ac_ext
 
4517
cat >>conftest.$ac_ext <<_ACEOF
 
4518
/* end confdefs.h.  */
 
4519
#include <stdarg.h>
 
4520
#include <stdio.h>
 
4521
#include <sys/types.h>
 
4522
#include <sys/stat.h>
 
4523
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4524
struct buf { int x; };
 
4525
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4526
static char *e (p, i)
 
4527
     char **p;
 
4528
     int i;
 
4529
{
 
4530
  return p[i];
 
4531
}
 
4532
static char *f (char * (*g) (char **, int), char **p, ...)
 
4533
{
 
4534
  char *s;
 
4535
  va_list v;
 
4536
  va_start (v,p);
 
4537
  s = g (p, va_arg (v,int));
 
4538
  va_end (v);
 
4539
  return s;
 
4540
}
 
4541
 
 
4542
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4543
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4544
   These don't provoke an error unfortunately, instead are silently treated
 
4545
   as 'x'.  The following induces an error, until -std is added to get
 
4546
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4547
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4548
   that's true only with -std.  */
 
4549
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4550
 
 
4551
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4552
   inside strings and character constants.  */
 
4553
#define FOO(x) 'x'
 
4554
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4555
 
 
4556
int test (int i, double x);
 
4557
struct s1 {int (*f) (int a);};
 
4558
struct s2 {int (*f) (double a);};
 
4559
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4560
int argc;
 
4561
char **argv;
 
4562
int
 
4563
main ()
 
4564
{
 
4565
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4566
  ;
 
4567
  return 0;
 
4568
}
 
4569
_ACEOF
 
4570
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4571
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4572
do
 
4573
  CC="$ac_save_CC $ac_arg"
 
4574
  rm -f conftest.$ac_objext
 
4575
if { (ac_try="$ac_compile"
 
4576
case "(($ac_try" in
 
4577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4578
  *) ac_try_echo=$ac_try;;
 
4579
esac
 
4580
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4581
$as_echo "$ac_try_echo") >&5
 
4582
  (eval "$ac_compile") 2>conftest.er1
 
4583
  ac_status=$?
 
4584
  grep -v '^ *+' conftest.er1 >conftest.err
 
4585
  rm -f conftest.er1
 
4586
  cat conftest.err >&5
 
4587
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4588
  (exit $ac_status); } && {
 
4589
         test -z "$ac_c_werror_flag" ||
 
4590
         test ! -s conftest.err
 
4591
       } && test -s conftest.$ac_objext; then
 
4592
  ac_cv_prog_cc_c89=$ac_arg
 
4593
else
 
4594
  $as_echo "$as_me: failed program was:" >&5
 
4595
sed 's/^/| /' conftest.$ac_ext >&5
 
4596
 
 
4597
 
 
4598
fi
 
4599
 
 
4600
rm -f core conftest.err conftest.$ac_objext
 
4601
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4602
done
 
4603
rm -f conftest.$ac_ext
 
4604
CC=$ac_save_CC
 
4605
 
 
4606
fi
 
4607
# AC_CACHE_VAL
 
4608
case "x$ac_cv_prog_cc_c89" in
 
4609
  x)
 
4610
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
4611
$as_echo "none needed" >&6; } ;;
 
4612
  xno)
 
4613
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
4614
$as_echo "unsupported" >&6; } ;;
 
4615
  *)
 
4616
    CC="$CC $ac_cv_prog_cc_c89"
 
4617
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4618
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4619
esac
 
4620
 
 
4621
 
 
4622
ac_ext=c
 
4623
ac_cpp='$CPP $CPPFLAGS'
 
4624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4627
 
 
4628
depcc="$CC"   am_compiler_list=
 
4629
 
 
4630
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4631
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4632
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4633
  $as_echo_n "(cached) " >&6
 
4634
else
 
4635
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4636
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4637
  # making bogus files that we don't know about and never remove.  For
 
4638
  # instance it was reported that on HP-UX the gcc test will end up
 
4639
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4640
  # in D'.
 
4641
  mkdir conftest.dir
 
4642
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4643
  # using a relative directory.
 
4644
  cp "$am_depcomp" conftest.dir
 
4645
  cd conftest.dir
 
4646
  # We will build objects and dependencies in a subdirectory because
 
4647
  # it helps to detect inapplicable dependency modes.  For instance
 
4648
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4649
  # side effect of compilation, but ICC will put the dependencies in
 
4650
  # the current directory while Tru64 will put them in the object
 
4651
  # directory.
 
4652
  mkdir sub
 
4653
 
 
4654
  am_cv_CC_dependencies_compiler_type=none
 
4655
  if test "$am_compiler_list" = ""; then
 
4656
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4657
  fi
 
4658
  for depmode in $am_compiler_list; do
 
4659
    # Setup a source with many dependencies, because some compilers
 
4660
    # like to wrap large dependency lists on column 80 (with \), and
 
4661
    # we should not choose a depcomp mode which is confused by this.
 
4662
    #
 
4663
    # We need to recreate these files for each test, as the compiler may
 
4664
    # overwrite some of them when testing with obscure command lines.
 
4665
    # This happens at least with the AIX C compiler.
 
4666
    : > sub/conftest.c
 
4667
    for i in 1 2 3 4 5 6; do
 
4668
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4669
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4670
      # Solaris 8's {/usr,}/bin/sh.
 
4671
      touch sub/conftst$i.h
 
4672
    done
 
4673
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4674
 
 
4675
    case $depmode in
 
4676
    nosideeffect)
 
4677
      # after this tag, mechanisms are not by side-effect, so they'll
 
4678
      # only be used when explicitly requested
 
4679
      if test "x$enable_dependency_tracking" = xyes; then
 
4680
        continue
 
4681
      else
 
4682
        break
 
4683
      fi
 
4684
      ;;
 
4685
    none) break ;;
 
4686
    esac
 
4687
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4688
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4689
    # handle `-M -o', and we need to detect this.
 
4690
    if depmode=$depmode \
 
4691
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4692
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4693
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4694
         >/dev/null 2>conftest.err &&
 
4695
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4696
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4697
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4698
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4699
      # icc doesn't choke on unknown options, it will just issue warnings
 
4700
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4701
      # that says an option was ignored or not supported.
 
4702
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4703
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4704
      # The diagnosis changed in icc 8.0:
 
4705
      #   icc: Command line remark: option '-MP' not supported
 
4706
      if (grep 'ignoring option' conftest.err ||
 
4707
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4708
        am_cv_CC_dependencies_compiler_type=$depmode
 
4709
        break
 
4710
      fi
 
4711
    fi
 
4712
  done
 
4713
 
 
4714
  cd ..
 
4715
  rm -rf conftest.dir
 
4716
else
 
4717
  am_cv_CC_dependencies_compiler_type=none
 
4718
fi
 
4719
 
 
4720
fi
 
4721
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4722
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4723
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4724
 
 
4725
 if
 
4726
  test "x$enable_dependency_tracking" != xno \
 
4727
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4728
  am__fastdepCC_TRUE=
 
4729
  am__fastdepCC_FALSE='#'
 
4730
else
 
4731
  am__fastdepCC_TRUE='#'
 
4732
  am__fastdepCC_FALSE=
 
4733
fi
 
4734
 
 
4735
 
 
4736
 
 
4737
{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
4738
$as_echo_n "checking for library containing strerror... " >&6; }
 
4739
if test "${ac_cv_search_strerror+set}" = set; then
 
4740
  $as_echo_n "(cached) " >&6
 
4741
else
 
4742
  ac_func_search_save_LIBS=$LIBS
 
4743
cat >conftest.$ac_ext <<_ACEOF
 
4744
/* confdefs.h.  */
 
4745
_ACEOF
 
4746
cat confdefs.h >>conftest.$ac_ext
 
4747
cat >>conftest.$ac_ext <<_ACEOF
 
4748
/* end confdefs.h.  */
 
4749
 
 
4750
/* Override any GCC internal prototype to avoid an error.
 
4751
   Use char because int might match the return type of a GCC
 
4752
   builtin and then its argument prototype would still apply.  */
 
4753
#ifdef __cplusplus
 
4754
extern "C"
 
4755
#endif
 
4756
char strerror ();
 
4757
int
 
4758
main ()
 
4759
{
 
4760
return strerror ();
 
4761
  ;
 
4762
  return 0;
 
4763
}
 
4764
_ACEOF
 
4765
for ac_lib in '' cposix; do
 
4766
  if test -z "$ac_lib"; then
 
4767
    ac_res="none required"
 
4768
  else
 
4769
    ac_res=-l$ac_lib
 
4770
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4771
  fi
 
4772
  rm -f conftest.$ac_objext conftest$ac_exeext
 
4773
if { (ac_try="$ac_link"
 
4774
case "(($ac_try" in
 
4775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4776
  *) ac_try_echo=$ac_try;;
 
4777
esac
 
4778
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4779
$as_echo "$ac_try_echo") >&5
 
4780
  (eval "$ac_link") 2>conftest.er1
 
4781
  ac_status=$?
 
4782
  grep -v '^ *+' conftest.er1 >conftest.err
 
4783
  rm -f conftest.er1
 
4784
  cat conftest.err >&5
 
4785
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4786
  (exit $ac_status); } && {
 
4787
         test -z "$ac_c_werror_flag" ||
 
4788
         test ! -s conftest.err
 
4789
       } && test -s conftest$ac_exeext && {
 
4790
         test "$cross_compiling" = yes ||
 
4791
         $as_test_x conftest$ac_exeext
 
4792
       }; then
 
4793
  ac_cv_search_strerror=$ac_res
 
4794
else
 
4795
  $as_echo "$as_me: failed program was:" >&5
 
4796
sed 's/^/| /' conftest.$ac_ext >&5
 
4797
 
 
4798
 
 
4799
fi
 
4800
 
 
4801
rm -rf conftest.dSYM
 
4802
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4803
      conftest$ac_exeext
 
4804
  if test "${ac_cv_search_strerror+set}" = set; then
 
4805
  break
 
4806
fi
 
4807
done
 
4808
if test "${ac_cv_search_strerror+set}" = set; then
 
4809
  :
 
4810
else
 
4811
  ac_cv_search_strerror=no
 
4812
fi
 
4813
rm conftest.$ac_ext
 
4814
LIBS=$ac_func_search_save_LIBS
 
4815
fi
 
4816
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
4817
$as_echo "$ac_cv_search_strerror" >&6; }
 
4818
ac_res=$ac_cv_search_strerror
 
4819
if test "$ac_res" != no; then
 
4820
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4821
 
 
4822
fi
 
4823
 
 
4824
for ac_prog in flex lex
 
4825
do
 
4826
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4827
set dummy $ac_prog; ac_word=$2
 
4828
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4829
$as_echo_n "checking for $ac_word... " >&6; }
 
4830
if test "${ac_cv_prog_LEX+set}" = set; then
 
4831
  $as_echo_n "(cached) " >&6
 
4832
else
 
4833
  if test -n "$LEX"; then
 
4834
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
4835
else
 
4836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4837
for as_dir in $PATH
 
4838
do
 
4839
  IFS=$as_save_IFS
 
4840
  test -z "$as_dir" && as_dir=.
 
4841
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4842
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4843
    ac_cv_prog_LEX="$ac_prog"
 
4844
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4845
    break 2
 
4846
  fi
 
4847
done
 
4848
done
 
4849
IFS=$as_save_IFS
 
4850
 
 
4851
fi
 
4852
fi
 
4853
LEX=$ac_cv_prog_LEX
 
4854
if test -n "$LEX"; then
 
4855
  { $as_echo "$as_me:$LINENO: result: $LEX" >&5
 
4856
$as_echo "$LEX" >&6; }
 
4857
else
 
4858
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4859
$as_echo "no" >&6; }
 
4860
fi
 
4861
 
 
4862
 
 
4863
  test -n "$LEX" && break
 
4864
done
 
4865
test -n "$LEX" || LEX=":"
 
4866
 
 
4867
if test "x$LEX" != "x:"; then
 
4868
  cat >conftest.l <<_ACEOF
 
4869
%%
 
4870
a { ECHO; }
 
4871
b { REJECT; }
 
4872
c { yymore (); }
 
4873
d { yyless (1); }
 
4874
e { yyless (input () != 0); }
 
4875
f { unput (yytext[0]); }
 
4876
. { BEGIN INITIAL; }
 
4877
%%
 
4878
#ifdef YYTEXT_POINTER
 
4879
extern char *yytext;
 
4880
#endif
 
4881
int
 
4882
main (void)
 
4883
{
 
4884
  return ! yylex () + ! yywrap ();
 
4885
}
 
4886
_ACEOF
 
4887
{ (ac_try="$LEX conftest.l"
 
4888
case "(($ac_try" in
 
4889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4890
  *) ac_try_echo=$ac_try;;
 
4891
esac
 
4892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4893
$as_echo "$ac_try_echo") >&5
 
4894
  (eval "$LEX conftest.l") 2>&5
 
4895
  ac_status=$?
 
4896
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4897
  (exit $ac_status); }
 
4898
{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
 
4899
$as_echo_n "checking lex output file root... " >&6; }
 
4900
if test "${ac_cv_prog_lex_root+set}" = set; then
 
4901
  $as_echo_n "(cached) " >&6
 
4902
else
 
4903
 
 
4904
if test -f lex.yy.c; then
 
4905
  ac_cv_prog_lex_root=lex.yy
 
4906
elif test -f lexyy.c; then
 
4907
  ac_cv_prog_lex_root=lexyy
 
4908
else
 
4909
  { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
4910
$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
4911
   { (exit 1); exit 1; }; }
 
4912
fi
 
4913
fi
 
4914
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
4915
$as_echo "$ac_cv_prog_lex_root" >&6; }
 
4916
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
4917
 
 
4918
if test -z "${LEXLIB+set}"; then
 
4919
  { $as_echo "$as_me:$LINENO: checking lex library" >&5
 
4920
$as_echo_n "checking lex library... " >&6; }
 
4921
if test "${ac_cv_lib_lex+set}" = set; then
 
4922
  $as_echo_n "(cached) " >&6
 
4923
else
 
4924
 
 
4925
    ac_save_LIBS=$LIBS
 
4926
    ac_cv_lib_lex='none needed'
 
4927
    for ac_lib in '' -lfl -ll; do
 
4928
      LIBS="$ac_lib $ac_save_LIBS"
 
4929
      cat >conftest.$ac_ext <<_ACEOF
 
4930
`cat $LEX_OUTPUT_ROOT.c`
 
4931
_ACEOF
 
4932
rm -f conftest.$ac_objext conftest$ac_exeext
 
4933
if { (ac_try="$ac_link"
 
4934
case "(($ac_try" in
 
4935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4936
  *) ac_try_echo=$ac_try;;
 
4937
esac
 
4938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4939
$as_echo "$ac_try_echo") >&5
 
4940
  (eval "$ac_link") 2>conftest.er1
 
4941
  ac_status=$?
 
4942
  grep -v '^ *+' conftest.er1 >conftest.err
 
4943
  rm -f conftest.er1
 
4944
  cat conftest.err >&5
 
4945
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4946
  (exit $ac_status); } && {
 
4947
         test -z "$ac_c_werror_flag" ||
 
4948
         test ! -s conftest.err
 
4949
       } && test -s conftest$ac_exeext && {
 
4950
         test "$cross_compiling" = yes ||
 
4951
         $as_test_x conftest$ac_exeext
 
4952
       }; then
 
4953
  ac_cv_lib_lex=$ac_lib
 
4954
else
 
4955
  $as_echo "$as_me: failed program was:" >&5
 
4956
sed 's/^/| /' conftest.$ac_ext >&5
 
4957
 
 
4958
 
 
4959
fi
 
4960
 
 
4961
rm -rf conftest.dSYM
 
4962
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4963
      conftest$ac_exeext conftest.$ac_ext
 
4964
      test "$ac_cv_lib_lex" != 'none needed' && break
 
4965
    done
 
4966
    LIBS=$ac_save_LIBS
 
4967
 
 
4968
fi
 
4969
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
 
4970
$as_echo "$ac_cv_lib_lex" >&6; }
 
4971
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
4972
fi
 
4973
 
 
4974
 
 
4975
{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
4976
$as_echo_n "checking whether yytext is a pointer... " >&6; }
 
4977
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
4978
  $as_echo_n "(cached) " >&6
 
4979
else
 
4980
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
4981
# default is implementation-dependent.  Figure out which it is, since
 
4982
# not all implementations provide the %pointer and %array declarations.
 
4983
ac_cv_prog_lex_yytext_pointer=no
 
4984
ac_save_LIBS=$LIBS
 
4985
LIBS="$LEXLIB $ac_save_LIBS"
 
4986
cat >conftest.$ac_ext <<_ACEOF
 
4987
#define YYTEXT_POINTER 1
 
4988
`cat $LEX_OUTPUT_ROOT.c`
 
4989
_ACEOF
 
4990
rm -f conftest.$ac_objext conftest$ac_exeext
 
4991
if { (ac_try="$ac_link"
 
4992
case "(($ac_try" in
 
4993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4994
  *) ac_try_echo=$ac_try;;
 
4995
esac
 
4996
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4997
$as_echo "$ac_try_echo") >&5
 
4998
  (eval "$ac_link") 2>conftest.er1
 
4999
  ac_status=$?
 
5000
  grep -v '^ *+' conftest.er1 >conftest.err
 
5001
  rm -f conftest.er1
 
5002
  cat conftest.err >&5
 
5003
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5004
  (exit $ac_status); } && {
 
5005
         test -z "$ac_c_werror_flag" ||
 
5006
         test ! -s conftest.err
 
5007
       } && test -s conftest$ac_exeext && {
 
5008
         test "$cross_compiling" = yes ||
 
5009
         $as_test_x conftest$ac_exeext
 
5010
       }; then
 
5011
  ac_cv_prog_lex_yytext_pointer=yes
 
5012
else
 
5013
  $as_echo "$as_me: failed program was:" >&5
 
5014
sed 's/^/| /' conftest.$ac_ext >&5
 
5015
 
 
5016
 
 
5017
fi
 
5018
 
 
5019
rm -rf conftest.dSYM
 
5020
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5021
      conftest$ac_exeext conftest.$ac_ext
 
5022
LIBS=$ac_save_LIBS
 
5023
 
 
5024
fi
 
5025
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
5026
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 
5027
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
5028
 
 
5029
cat >>confdefs.h <<\_ACEOF
 
5030
#define YYTEXT_POINTER 1
 
5031
_ACEOF
 
5032
 
 
5033
fi
 
5034
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
5035
 
 
5036
fi
 
5037
if test "$LEX" = :; then
 
5038
  LEX=${am_missing_run}flex
 
5039
fi
 
5040
for ac_prog in 'bison -y' byacc
 
5041
do
 
5042
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5043
set dummy $ac_prog; ac_word=$2
 
5044
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5045
$as_echo_n "checking for $ac_word... " >&6; }
 
5046
if test "${ac_cv_prog_YACC+set}" = set; then
 
5047
  $as_echo_n "(cached) " >&6
 
5048
else
 
5049
  if test -n "$YACC"; then
 
5050
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
5051
else
 
5052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5053
for as_dir in $PATH
 
5054
do
 
5055
  IFS=$as_save_IFS
 
5056
  test -z "$as_dir" && as_dir=.
 
5057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5058
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5059
    ac_cv_prog_YACC="$ac_prog"
 
5060
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5061
    break 2
 
5062
  fi
 
5063
done
 
5064
done
 
5065
IFS=$as_save_IFS
 
5066
 
 
5067
fi
 
5068
fi
 
5069
YACC=$ac_cv_prog_YACC
 
5070
if test -n "$YACC"; then
 
5071
  { $as_echo "$as_me:$LINENO: result: $YACC" >&5
 
5072
$as_echo "$YACC" >&6; }
 
5073
else
 
5074
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5075
$as_echo "no" >&6; }
 
5076
fi
 
5077
 
 
5078
 
 
5079
  test -n "$YACC" && break
 
5080
done
 
5081
test -n "$YACC" || YACC="yacc"
 
5082
 
 
5083
for ac_prog in gawk mawk nawk awk
 
5084
do
 
5085
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5086
set dummy $ac_prog; ac_word=$2
 
5087
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5088
$as_echo_n "checking for $ac_word... " >&6; }
 
5089
if test "${ac_cv_prog_AWK+set}" = set; then
 
5090
  $as_echo_n "(cached) " >&6
 
5091
else
 
5092
  if test -n "$AWK"; then
 
5093
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
5094
else
 
5095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5096
for as_dir in $PATH
 
5097
do
 
5098
  IFS=$as_save_IFS
 
5099
  test -z "$as_dir" && as_dir=.
 
5100
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5102
    ac_cv_prog_AWK="$ac_prog"
 
5103
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5104
    break 2
 
5105
  fi
 
5106
done
 
5107
done
 
5108
IFS=$as_save_IFS
 
5109
 
 
5110
fi
 
5111
fi
 
5112
AWK=$ac_cv_prog_AWK
 
5113
if test -n "$AWK"; then
 
5114
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
5115
$as_echo "$AWK" >&6; }
 
5116
else
 
5117
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5118
$as_echo "no" >&6; }
 
5119
fi
 
5120
 
 
5121
 
 
5122
  test -n "$AWK" && break
 
5123
done
 
5124
 
 
5125
# Find a good install program.  We prefer a C program (faster),
 
5126
# so one script is as good as another.  But avoid the broken or
 
5127
# incompatible versions:
 
5128
# SysV /etc/install, /usr/sbin/install
 
5129
# SunOS /usr/etc/install
 
5130
# IRIX /sbin/install
 
5131
# AIX /bin/install
 
5132
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
5133
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
5134
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
5135
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
5136
# OS/2's system install, which has a completely different semantic
 
5137
# ./install, which can be erroneously created by make from ./install.sh.
 
5138
# Reject install programs that cannot install multiple files.
 
5139
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
5140
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
5141
if test -z "$INSTALL"; then
 
5142
if test "${ac_cv_path_install+set}" = set; then
 
5143
  $as_echo_n "(cached) " >&6
 
5144
else
 
5145
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5146
for as_dir in $PATH
 
5147
do
 
5148
  IFS=$as_save_IFS
 
5149
  test -z "$as_dir" && as_dir=.
 
5150
  # Account for people who put trailing slashes in PATH elements.
 
5151
case $as_dir/ in
 
5152
  ./ | .// | /cC/* | \
 
5153
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
5154
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
5155
  /usr/ucb/* ) ;;
 
5156
  *)
 
5157
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
5158
    # Don't use installbsd from OSF since it installs stuff as root
 
5159
    # by default.
 
5160
    for ac_prog in ginstall scoinst install; do
 
5161
      for ac_exec_ext in '' $ac_executable_extensions; do
 
5162
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
5163
          if test $ac_prog = install &&
 
5164
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
5165
            # AIX install.  It has an incompatible calling convention.
 
5166
            :
 
5167
          elif test $ac_prog = install &&
 
5168
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
5169
            # program-specific install script used by HP pwplus--don't use.
 
5170
            :
 
5171
          else
 
5172
            rm -rf conftest.one conftest.two conftest.dir
 
5173
            echo one > conftest.one
 
5174
            echo two > conftest.two
 
5175
            mkdir conftest.dir
 
5176
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
5177
              test -s conftest.one && test -s conftest.two &&
 
5178
              test -s conftest.dir/conftest.one &&
 
5179
              test -s conftest.dir/conftest.two
 
5180
            then
 
5181
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
5182
              break 3
 
5183
            fi
 
5184
          fi
 
5185
        fi
 
5186
      done
 
5187
    done
 
5188
    ;;
 
5189
esac
 
5190
 
 
5191
done
 
5192
IFS=$as_save_IFS
 
5193
 
 
5194
rm -rf conftest.one conftest.two conftest.dir
 
5195
 
 
5196
fi
 
5197
  if test "${ac_cv_path_install+set}" = set; then
 
5198
    INSTALL=$ac_cv_path_install
 
5199
  else
 
5200
    # As a last resort, use the slow shell script.  Don't cache a
 
5201
    # value for INSTALL within a source directory, because that will
 
5202
    # break other packages using the cache if that directory is
 
5203
    # removed, or if the value is a relative name.
 
5204
    INSTALL=$ac_install_sh
 
5205
  fi
 
5206
fi
 
5207
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
5208
$as_echo "$INSTALL" >&6; }
 
5209
 
 
5210
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
5211
# It thinks the first close brace ends the variable substitution.
 
5212
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
5213
 
 
5214
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
5215
 
 
5216
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
5217
 
 
5218
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5219
$as_echo_n "checking whether ln -s works... " >&6; }
 
5220
LN_S=$as_ln_s
 
5221
if test "$LN_S" = "ln -s"; then
 
5222
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
5223
$as_echo "yes" >&6; }
 
5224
else
 
5225
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5226
$as_echo "no, using $LN_S" >&6; }
 
5227
fi
 
5228
 
 
5229
# Extract the first word of "sed", so it can be a program name with args.
 
5230
set dummy sed; ac_word=$2
 
5231
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5232
$as_echo_n "checking for $ac_word... " >&6; }
 
5233
if test "${ac_cv_prog_SED+set}" = set; then
 
5234
  $as_echo_n "(cached) " >&6
 
5235
else
 
5236
  if test -n "$SED"; then
 
5237
  ac_cv_prog_SED="$SED" # Let the user override the test.
 
5238
else
 
5239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5240
for as_dir in $PATH
 
5241
do
 
5242
  IFS=$as_save_IFS
 
5243
  test -z "$as_dir" && as_dir=.
 
5244
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5245
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5246
    ac_cv_prog_SED="sed"
 
5247
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5248
    break 2
 
5249
  fi
 
5250
done
 
5251
done
 
5252
IFS=$as_save_IFS
 
5253
 
 
5254
  test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
 
5255
fi
 
5256
fi
 
5257
SED=$ac_cv_prog_SED
 
5258
if test -n "$SED"; then
 
5259
  { $as_echo "$as_me:$LINENO: result: $SED" >&5
 
5260
$as_echo "$SED" >&6; }
 
5261
else
 
5262
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5263
$as_echo "no" >&6; }
 
5264
fi
 
5265
 
 
5266
 
 
5267
# Extract the first word of "grep", so it can be a program name with args.
 
5268
set dummy grep; ac_word=$2
 
5269
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5270
$as_echo_n "checking for $ac_word... " >&6; }
 
5271
if test "${ac_cv_prog_GREP+set}" = set; then
 
5272
  $as_echo_n "(cached) " >&6
 
5273
else
 
5274
  if test -n "$GREP"; then
 
5275
  ac_cv_prog_GREP="$GREP" # Let the user override the test.
 
5276
else
 
5277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5278
for as_dir in $PATH
 
5279
do
 
5280
  IFS=$as_save_IFS
 
5281
  test -z "$as_dir" && as_dir=.
 
5282
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5283
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5284
    ac_cv_prog_GREP="grep"
 
5285
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5286
    break 2
 
5287
  fi
 
5288
done
 
5289
done
 
5290
IFS=$as_save_IFS
 
5291
 
 
5292
  test -z "$ac_cv_prog_GREP" && ac_cv_prog_GREP="false"
 
5293
fi
 
5294
fi
 
5295
GREP=$ac_cv_prog_GREP
 
5296
if test -n "$GREP"; then
 
5297
  { $as_echo "$as_me:$LINENO: result: $GREP" >&5
 
5298
$as_echo "$GREP" >&6; }
 
5299
else
 
5300
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5301
$as_echo "no" >&6; }
 
5302
fi
 
5303
 
 
5304
 
 
5305
# Extract the first word of "sort", so it can be a program name with args.
 
5306
set dummy sort; ac_word=$2
 
5307
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5308
$as_echo_n "checking for $ac_word... " >&6; }
 
5309
if test "${ac_cv_prog_SORT+set}" = set; then
 
5310
  $as_echo_n "(cached) " >&6
 
5311
else
 
5312
  if test -n "$SORT"; then
 
5313
  ac_cv_prog_SORT="$SORT" # Let the user override the test.
 
5314
else
 
5315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5316
for as_dir in $PATH
 
5317
do
 
5318
  IFS=$as_save_IFS
 
5319
  test -z "$as_dir" && as_dir=.
 
5320
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5321
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5322
    ac_cv_prog_SORT="sort"
 
5323
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5324
    break 2
 
5325
  fi
 
5326
done
 
5327
done
 
5328
IFS=$as_save_IFS
 
5329
 
 
5330
  test -z "$ac_cv_prog_SORT" && ac_cv_prog_SORT="false"
 
5331
fi
 
5332
fi
 
5333
SORT=$ac_cv_prog_SORT
 
5334
if test -n "$SORT"; then
 
5335
  { $as_echo "$as_me:$LINENO: result: $SORT" >&5
 
5336
$as_echo "$SORT" >&6; }
 
5337
else
 
5338
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5339
$as_echo "no" >&6; }
 
5340
fi
 
5341
 
 
5342
 
 
5343
# Extract the first word of "groff", so it can be a program name with args.
 
5344
set dummy groff; ac_word=$2
 
5345
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5346
$as_echo_n "checking for $ac_word... " >&6; }
 
5347
if test "${ac_cv_prog_GROFF+set}" = set; then
 
5348
  $as_echo_n "(cached) " >&6
 
5349
else
 
5350
  if test -n "$GROFF"; then
 
5351
  ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
 
5352
else
 
5353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5354
for as_dir in $PATH
 
5355
do
 
5356
  IFS=$as_save_IFS
 
5357
  test -z "$as_dir" && as_dir=.
 
5358
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5360
    ac_cv_prog_GROFF="groff"
 
5361
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5362
    break 2
 
5363
  fi
 
5364
done
 
5365
done
 
5366
IFS=$as_save_IFS
 
5367
 
 
5368
  test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="false"
 
5369
fi
 
5370
fi
 
5371
GROFF=$ac_cv_prog_GROFF
 
5372
if test -n "$GROFF"; then
 
5373
  { $as_echo "$as_me:$LINENO: result: $GROFF" >&5
 
5374
$as_echo "$GROFF" >&6; }
 
5375
else
 
5376
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5377
$as_echo "no" >&6; }
 
5378
fi
 
5379
 
 
5380
 
 
5381
# Extract the first word of "ps2pdf", so it can be a program name with args.
 
5382
set dummy ps2pdf; ac_word=$2
 
5383
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5384
$as_echo_n "checking for $ac_word... " >&6; }
 
5385
if test "${ac_cv_prog_PS2PDF+set}" = set; then
 
5386
  $as_echo_n "(cached) " >&6
 
5387
else
 
5388
  if test -n "$PS2PDF"; then
 
5389
  ac_cv_prog_PS2PDF="$PS2PDF" # Let the user override the test.
 
5390
else
 
5391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5392
for as_dir in $PATH
 
5393
do
 
5394
  IFS=$as_save_IFS
 
5395
  test -z "$as_dir" && as_dir=.
 
5396
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5397
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5398
    ac_cv_prog_PS2PDF="ps2pdf"
 
5399
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5400
    break 2
 
5401
  fi
 
5402
done
 
5403
done
 
5404
IFS=$as_save_IFS
 
5405
 
 
5406
  test -z "$ac_cv_prog_PS2PDF" && ac_cv_prog_PS2PDF="false"
 
5407
fi
 
5408
fi
 
5409
PS2PDF=$ac_cv_prog_PS2PDF
 
5410
if test -n "$PS2PDF"; then
 
5411
  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
 
5412
$as_echo "$PS2PDF" >&6; }
 
5413
else
 
5414
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5415
$as_echo "no" >&6; }
 
5416
fi
 
5417
 
 
5418
 
 
5419
# Extract the first word of "pstopdf", so it can be a program name with args.
 
5420
set dummy pstopdf; ac_word=$2
 
5421
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5422
$as_echo_n "checking for $ac_word... " >&6; }
 
5423
if test "${ac_cv_prog_PS2PDF+set}" = set; then
 
5424
  $as_echo_n "(cached) " >&6
 
5425
else
 
5426
  if test -n "$PS2PDF"; then
 
5427
  ac_cv_prog_PS2PDF="$PS2PDF" # Let the user override the test.
 
5428
else
 
5429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5430
for as_dir in $PATH
 
5431
do
 
5432
  IFS=$as_save_IFS
 
5433
  test -z "$as_dir" && as_dir=.
 
5434
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5436
    ac_cv_prog_PS2PDF="pstopdf"
 
5437
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5438
    break 2
 
5439
  fi
 
5440
done
 
5441
done
 
5442
IFS=$as_save_IFS
 
5443
 
 
5444
  test -z "$ac_cv_prog_PS2PDF" && ac_cv_prog_PS2PDF="false"
 
5445
fi
 
5446
fi
 
5447
PS2PDF=$ac_cv_prog_PS2PDF
 
5448
if test -n "$PS2PDF"; then
 
5449
  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
 
5450
$as_echo "$PS2PDF" >&6; }
 
5451
else
 
5452
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5453
$as_echo "no" >&6; }
 
5454
fi
 
5455
 
 
5456
 
 
5457
 
 
5458
 
 
5459
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
5460
        if test -n "$ac_tool_prefix"; then
 
5461
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
5462
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
5463
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5464
$as_echo_n "checking for $ac_word... " >&6; }
 
5465
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
5466
  $as_echo_n "(cached) " >&6
 
5467
else
 
5468
  case $PKG_CONFIG in
 
5469
  [\\/]* | ?:[\\/]*)
 
5470
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
5471
  ;;
 
5472
  *)
 
5473
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5474
for as_dir in $PATH
 
5475
do
 
5476
  IFS=$as_save_IFS
 
5477
  test -z "$as_dir" && as_dir=.
 
5478
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5479
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5480
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5481
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5482
    break 2
 
5483
  fi
 
5484
done
 
5485
done
 
5486
IFS=$as_save_IFS
 
5487
 
 
5488
  ;;
 
5489
esac
 
5490
fi
 
5491
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
5492
if test -n "$PKG_CONFIG"; then
 
5493
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
5494
$as_echo "$PKG_CONFIG" >&6; }
 
5495
else
 
5496
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5497
$as_echo "no" >&6; }
 
5498
fi
 
5499
 
 
5500
 
 
5501
fi
 
5502
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
5503
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
5504
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
5505
set dummy pkg-config; ac_word=$2
 
5506
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5507
$as_echo_n "checking for $ac_word... " >&6; }
 
5508
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
5509
  $as_echo_n "(cached) " >&6
 
5510
else
 
5511
  case $ac_pt_PKG_CONFIG in
 
5512
  [\\/]* | ?:[\\/]*)
 
5513
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
5514
  ;;
 
5515
  *)
 
5516
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5517
for as_dir in $PATH
 
5518
do
 
5519
  IFS=$as_save_IFS
 
5520
  test -z "$as_dir" && as_dir=.
 
5521
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5522
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5523
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5524
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5525
    break 2
 
5526
  fi
 
5527
done
 
5528
done
 
5529
IFS=$as_save_IFS
 
5530
 
 
5531
  ;;
 
5532
esac
 
5533
fi
 
5534
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
5535
if test -n "$ac_pt_PKG_CONFIG"; then
 
5536
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
5537
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
5538
else
 
5539
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5540
$as_echo "no" >&6; }
 
5541
fi
 
5542
 
 
5543
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
5544
    PKG_CONFIG=""
 
5545
  else
 
5546
    case $cross_compiling:$ac_tool_warned in
 
5547
yes:)
 
5548
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5549
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5550
ac_tool_warned=yes ;;
 
5551
esac
 
5552
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
5553
  fi
 
5554
else
 
5555
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
5556
fi
 
5557
 
 
5558
fi
 
5559
if test -n "$PKG_CONFIG"; then
 
5560
        _pkg_min_version=0.9.0
 
5561
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
5562
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
5563
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
5564
                { $as_echo "$as_me:$LINENO: result: yes" >&5
 
5565
$as_echo "yes" >&6; }
 
5566
        else
 
5567
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
5568
$as_echo "no" >&6; }
 
5569
                PKG_CONFIG=""
 
5570
        fi
 
5571
 
 
5572
fi
 
5573
 
 
5574
 
 
5575
# Check whether --with-tclsh was given.
 
5576
if test "${with_tclsh+set}" = set; then
 
5577
  withval=$with_tclsh; TCLSH=$withval
 
5578
fi
 
5579
 
 
5580
 
 
5581
if test "x$TCLSH" = "x"; then
 
5582
  for ac_prog in tclsh8.6 tclsh8.5 tclsh8.4 tclsh8.3 tclsh
 
5583
do
 
5584
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5585
set dummy $ac_prog; ac_word=$2
 
5586
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5587
$as_echo_n "checking for $ac_word... " >&6; }
 
5588
if test "${ac_cv_path_TCLSH+set}" = set; then
 
5589
  $as_echo_n "(cached) " >&6
 
5590
else
 
5591
  case $TCLSH in
 
5592
  [\\/]* | ?:[\\/]*)
 
5593
  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
 
5594
  ;;
 
5595
  *)
 
5596
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5597
for as_dir in $PATH
 
5598
do
 
5599
  IFS=$as_save_IFS
 
5600
  test -z "$as_dir" && as_dir=.
 
5601
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5603
    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
 
5604
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5605
    break 2
 
5606
  fi
 
5607
done
 
5608
done
 
5609
IFS=$as_save_IFS
 
5610
 
 
5611
  ;;
 
5612
esac
 
5613
fi
 
5614
TCLSH=$ac_cv_path_TCLSH
 
5615
if test -n "$TCLSH"; then
 
5616
  { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
 
5617
$as_echo "$TCLSH" >&6; }
 
5618
else
 
5619
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5620
$as_echo "no" >&6; }
 
5621
fi
 
5622
 
 
5623
 
 
5624
  test -n "$TCLSH" && break
 
5625
done
 
5626
 
 
5627
#  if test "x$TCLSH" = "x"; then
 
5628
#    AC_MSG_ERROR([Unable to find a tclsh. Tclsh is a required program for building graphviz, independent of wether tcl-based graphviz products are built])
 
5629
#    use_tcl="No (tclsh unavailable)"
 
5630
#  fi
 
5631
fi
 
5632
 
 
5633
 
 
5634
if test "x$CC" != xcc; then
 
5635
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
5636
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
5637
else
 
5638
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
5639
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
5640
fi
 
5641
set dummy $CC; ac_cc=`$as_echo "$2" |
 
5642
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
5643
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
5644
  $as_echo_n "(cached) " >&6
 
5645
else
 
5646
  cat >conftest.$ac_ext <<_ACEOF
 
5647
/* confdefs.h.  */
 
5648
_ACEOF
 
5649
cat confdefs.h >>conftest.$ac_ext
 
5650
cat >>conftest.$ac_ext <<_ACEOF
 
5651
/* end confdefs.h.  */
 
5652
 
 
5653
int
 
5654
main ()
 
5655
{
 
5656
 
 
5657
  ;
 
5658
  return 0;
 
5659
}
 
5660
_ACEOF
 
5661
# Make sure it works both with $CC and with simple cc.
 
5662
# We do the test twice because some compilers refuse to overwrite an
 
5663
# existing .o file with -o, though they will create one.
 
5664
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
5665
rm -f conftest2.*
 
5666
if { (case "(($ac_try" in
 
5667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5668
  *) ac_try_echo=$ac_try;;
 
5669
esac
 
5670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5671
$as_echo "$ac_try_echo") >&5
 
5672
  (eval "$ac_try") 2>&5
 
5673
  ac_status=$?
 
5674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5675
  (exit $ac_status); } &&
 
5676
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
5677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5678
  *) ac_try_echo=$ac_try;;
 
5679
esac
 
5680
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5681
$as_echo "$ac_try_echo") >&5
 
5682
  (eval "$ac_try") 2>&5
 
5683
  ac_status=$?
 
5684
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5685
  (exit $ac_status); };
 
5686
then
 
5687
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
5688
  if test "x$CC" != xcc; then
 
5689
    # Test first that cc exists at all.
 
5690
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
5691
  { (case "(($ac_try" in
 
5692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5693
  *) ac_try_echo=$ac_try;;
 
5694
esac
 
5695
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5696
$as_echo "$ac_try_echo") >&5
 
5697
  (eval "$ac_try") 2>&5
 
5698
  ac_status=$?
 
5699
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5700
  (exit $ac_status); }; }; then
 
5701
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
5702
      rm -f conftest2.*
 
5703
      if { (case "(($ac_try" in
 
5704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5705
  *) ac_try_echo=$ac_try;;
 
5706
esac
 
5707
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5708
$as_echo "$ac_try_echo") >&5
 
5709
  (eval "$ac_try") 2>&5
 
5710
  ac_status=$?
 
5711
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5712
  (exit $ac_status); } &&
 
5713
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
5714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5715
  *) ac_try_echo=$ac_try;;
 
5716
esac
 
5717
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5718
$as_echo "$ac_try_echo") >&5
 
5719
  (eval "$ac_try") 2>&5
 
5720
  ac_status=$?
 
5721
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5722
  (exit $ac_status); };
 
5723
      then
 
5724
        # cc works too.
 
5725
        :
 
5726
      else
 
5727
        # cc exists but doesn't like -o.
 
5728
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
5729
      fi
 
5730
    fi
 
5731
  fi
 
5732
else
 
5733
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
5734
fi
 
5735
rm -f core conftest*
 
5736
 
 
5737
fi
 
5738
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
5739
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
5740
$as_echo "yes" >&6; }
 
5741
else
 
5742
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5743
$as_echo "no" >&6; }
 
5744
 
 
5745
cat >>confdefs.h <<\_ACEOF
 
5746
#define NO_MINUS_C_MINUS_O 1
 
5747
_ACEOF
 
5748
 
 
5749
fi
 
5750
 
 
5751
# FIXME: we rely on the cache variable name because
 
5752
# there is no other way.
 
5753
set dummy $CC
 
5754
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
5755
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
5756
if test "$am_t" != yes; then
 
5757
   # Losing compiler, so override with the script.
 
5758
   # FIXME: It is wrong to rewrite CC.
 
5759
   # But if we don't then we get into trouble of one sort or another.
 
5760
   # A longer-term fix would be to have automake use am__CC in this case,
 
5761
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
5762
   CC="$am_aux_dir/compile $CC"
 
5763
fi
 
5764
 
 
5765
 
 
5766
#AC_PROG_CC
 
5767
ac_ext=cpp
 
5768
ac_cpp='$CXXCPP $CPPFLAGS'
 
5769
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5770
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5771
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5772
if test -z "$CXX"; then
 
5773
  if test -n "$CCC"; then
 
5774
    CXX=$CCC
 
5775
  else
 
5776
    if test -n "$ac_tool_prefix"; then
 
5777
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5778
  do
 
5779
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5780
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5781
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5782
$as_echo_n "checking for $ac_word... " >&6; }
 
5783
if test "${ac_cv_prog_CXX+set}" = set; then
 
5784
  $as_echo_n "(cached) " >&6
 
5785
else
 
5786
  if test -n "$CXX"; then
 
5787
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5788
else
 
5789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5790
for as_dir in $PATH
 
5791
do
 
5792
  IFS=$as_save_IFS
 
5793
  test -z "$as_dir" && as_dir=.
 
5794
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5795
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5796
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5797
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5798
    break 2
 
5799
  fi
 
5800
done
 
5801
done
 
5802
IFS=$as_save_IFS
 
5803
 
 
5804
fi
 
5805
fi
 
5806
CXX=$ac_cv_prog_CXX
 
5807
if test -n "$CXX"; then
 
5808
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
5809
$as_echo "$CXX" >&6; }
 
5810
else
 
5811
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5812
$as_echo "no" >&6; }
 
5813
fi
 
5814
 
 
5815
 
 
5816
    test -n "$CXX" && break
 
5817
  done
 
5818
fi
 
5819
if test -z "$CXX"; then
 
5820
  ac_ct_CXX=$CXX
 
5821
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5822
do
 
5823
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5824
set dummy $ac_prog; ac_word=$2
 
5825
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5826
$as_echo_n "checking for $ac_word... " >&6; }
 
5827
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5828
  $as_echo_n "(cached) " >&6
 
5829
else
 
5830
  if test -n "$ac_ct_CXX"; then
 
5831
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5832
else
 
5833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5834
for as_dir in $PATH
 
5835
do
 
5836
  IFS=$as_save_IFS
 
5837
  test -z "$as_dir" && as_dir=.
 
5838
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5839
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5840
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5841
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5842
    break 2
 
5843
  fi
 
5844
done
 
5845
done
 
5846
IFS=$as_save_IFS
 
5847
 
 
5848
fi
 
5849
fi
 
5850
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5851
if test -n "$ac_ct_CXX"; then
 
5852
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5853
$as_echo "$ac_ct_CXX" >&6; }
 
5854
else
 
5855
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5856
$as_echo "no" >&6; }
 
5857
fi
 
5858
 
 
5859
 
 
5860
  test -n "$ac_ct_CXX" && break
 
5861
done
 
5862
 
 
5863
  if test "x$ac_ct_CXX" = x; then
 
5864
    CXX="g++"
 
5865
  else
 
5866
    case $cross_compiling:$ac_tool_warned in
 
5867
yes:)
 
5868
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5869
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5870
ac_tool_warned=yes ;;
 
5871
esac
 
5872
    CXX=$ac_ct_CXX
 
5873
  fi
 
5874
fi
 
5875
 
 
5876
  fi
 
5877
fi
 
5878
# Provide some information about the compiler.
 
5879
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5880
set X $ac_compile
 
5881
ac_compiler=$2
 
5882
{ (ac_try="$ac_compiler --version >&5"
 
5883
case "(($ac_try" in
 
5884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5885
  *) ac_try_echo=$ac_try;;
 
5886
esac
 
5887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5888
$as_echo "$ac_try_echo") >&5
 
5889
  (eval "$ac_compiler --version >&5") 2>&5
 
5890
  ac_status=$?
 
5891
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5892
  (exit $ac_status); }
 
5893
{ (ac_try="$ac_compiler -v >&5"
 
5894
case "(($ac_try" in
 
5895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5896
  *) ac_try_echo=$ac_try;;
 
5897
esac
 
5898
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5899
$as_echo "$ac_try_echo") >&5
 
5900
  (eval "$ac_compiler -v >&5") 2>&5
 
5901
  ac_status=$?
 
5902
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5903
  (exit $ac_status); }
 
5904
{ (ac_try="$ac_compiler -V >&5"
 
5905
case "(($ac_try" in
 
5906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5907
  *) ac_try_echo=$ac_try;;
 
5908
esac
 
5909
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5910
$as_echo "$ac_try_echo") >&5
 
5911
  (eval "$ac_compiler -V >&5") 2>&5
 
5912
  ac_status=$?
 
5913
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5914
  (exit $ac_status); }
 
5915
 
 
5916
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5917
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
5918
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5919
  $as_echo_n "(cached) " >&6
 
5920
else
 
5921
  cat >conftest.$ac_ext <<_ACEOF
 
5922
/* confdefs.h.  */
 
5923
_ACEOF
 
5924
cat confdefs.h >>conftest.$ac_ext
 
5925
cat >>conftest.$ac_ext <<_ACEOF
 
5926
/* end confdefs.h.  */
 
5927
 
 
5928
int
 
5929
main ()
 
5930
{
 
5931
#ifndef __GNUC__
 
5932
       choke me
 
5933
#endif
 
5934
 
 
5935
  ;
 
5936
  return 0;
 
5937
}
 
5938
_ACEOF
 
5939
rm -f conftest.$ac_objext
 
5940
if { (ac_try="$ac_compile"
 
5941
case "(($ac_try" in
 
5942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5943
  *) ac_try_echo=$ac_try;;
 
5944
esac
 
5945
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5946
$as_echo "$ac_try_echo") >&5
 
5947
  (eval "$ac_compile") 2>conftest.er1
 
5948
  ac_status=$?
 
5949
  grep -v '^ *+' conftest.er1 >conftest.err
 
5950
  rm -f conftest.er1
 
5951
  cat conftest.err >&5
 
5952
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5953
  (exit $ac_status); } && {
 
5954
         test -z "$ac_cxx_werror_flag" ||
 
5955
         test ! -s conftest.err
 
5956
       } && test -s conftest.$ac_objext; then
 
5957
  ac_compiler_gnu=yes
 
5958
else
 
5959
  $as_echo "$as_me: failed program was:" >&5
 
5960
sed 's/^/| /' conftest.$ac_ext >&5
 
5961
 
 
5962
        ac_compiler_gnu=no
 
5963
fi
 
5964
 
 
5965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5966
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5967
 
 
5968
fi
 
5969
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5970
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
5971
if test $ac_compiler_gnu = yes; then
 
5972
  GXX=yes
 
5973
else
 
5974
  GXX=
 
5975
fi
 
5976
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5977
ac_save_CXXFLAGS=$CXXFLAGS
 
5978
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5979
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
5980
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5981
  $as_echo_n "(cached) " >&6
 
5982
else
 
5983
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5984
   ac_cxx_werror_flag=yes
 
5985
   ac_cv_prog_cxx_g=no
 
5986
   CXXFLAGS="-g"
 
5987
   cat >conftest.$ac_ext <<_ACEOF
 
5988
/* confdefs.h.  */
 
5989
_ACEOF
 
5990
cat confdefs.h >>conftest.$ac_ext
 
5991
cat >>conftest.$ac_ext <<_ACEOF
 
5992
/* end confdefs.h.  */
 
5993
 
 
5994
int
 
5995
main ()
 
5996
{
 
5997
 
 
5998
  ;
 
5999
  return 0;
 
6000
}
 
6001
_ACEOF
 
6002
rm -f conftest.$ac_objext
 
6003
if { (ac_try="$ac_compile"
 
6004
case "(($ac_try" in
 
6005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6006
  *) ac_try_echo=$ac_try;;
 
6007
esac
 
6008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6009
$as_echo "$ac_try_echo") >&5
 
6010
  (eval "$ac_compile") 2>conftest.er1
 
6011
  ac_status=$?
 
6012
  grep -v '^ *+' conftest.er1 >conftest.err
 
6013
  rm -f conftest.er1
 
6014
  cat conftest.err >&5
 
6015
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6016
  (exit $ac_status); } && {
 
6017
         test -z "$ac_cxx_werror_flag" ||
 
6018
         test ! -s conftest.err
 
6019
       } && test -s conftest.$ac_objext; then
 
6020
  ac_cv_prog_cxx_g=yes
 
6021
else
 
6022
  $as_echo "$as_me: failed program was:" >&5
 
6023
sed 's/^/| /' conftest.$ac_ext >&5
 
6024
 
 
6025
        CXXFLAGS=""
 
6026
      cat >conftest.$ac_ext <<_ACEOF
 
6027
/* confdefs.h.  */
 
6028
_ACEOF
 
6029
cat confdefs.h >>conftest.$ac_ext
 
6030
cat >>conftest.$ac_ext <<_ACEOF
 
6031
/* end confdefs.h.  */
 
6032
 
 
6033
int
 
6034
main ()
 
6035
{
 
6036
 
 
6037
  ;
 
6038
  return 0;
 
6039
}
 
6040
_ACEOF
 
6041
rm -f conftest.$ac_objext
 
6042
if { (ac_try="$ac_compile"
 
6043
case "(($ac_try" in
 
6044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6045
  *) ac_try_echo=$ac_try;;
 
6046
esac
 
6047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6048
$as_echo "$ac_try_echo") >&5
 
6049
  (eval "$ac_compile") 2>conftest.er1
 
6050
  ac_status=$?
 
6051
  grep -v '^ *+' conftest.er1 >conftest.err
 
6052
  rm -f conftest.er1
 
6053
  cat conftest.err >&5
 
6054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6055
  (exit $ac_status); } && {
 
6056
         test -z "$ac_cxx_werror_flag" ||
 
6057
         test ! -s conftest.err
 
6058
       } && test -s conftest.$ac_objext; then
 
6059
  :
 
6060
else
 
6061
  $as_echo "$as_me: failed program was:" >&5
 
6062
sed 's/^/| /' conftest.$ac_ext >&5
 
6063
 
 
6064
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6065
         CXXFLAGS="-g"
 
6066
         cat >conftest.$ac_ext <<_ACEOF
 
6067
/* confdefs.h.  */
 
6068
_ACEOF
 
6069
cat confdefs.h >>conftest.$ac_ext
 
6070
cat >>conftest.$ac_ext <<_ACEOF
 
6071
/* end confdefs.h.  */
 
6072
 
 
6073
int
 
6074
main ()
 
6075
{
 
6076
 
 
6077
  ;
 
6078
  return 0;
 
6079
}
 
6080
_ACEOF
 
6081
rm -f conftest.$ac_objext
 
6082
if { (ac_try="$ac_compile"
 
6083
case "(($ac_try" in
 
6084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6085
  *) ac_try_echo=$ac_try;;
 
6086
esac
 
6087
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6088
$as_echo "$ac_try_echo") >&5
 
6089
  (eval "$ac_compile") 2>conftest.er1
 
6090
  ac_status=$?
 
6091
  grep -v '^ *+' conftest.er1 >conftest.err
 
6092
  rm -f conftest.er1
 
6093
  cat conftest.err >&5
 
6094
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6095
  (exit $ac_status); } && {
 
6096
         test -z "$ac_cxx_werror_flag" ||
 
6097
         test ! -s conftest.err
 
6098
       } && test -s conftest.$ac_objext; then
 
6099
  ac_cv_prog_cxx_g=yes
 
6100
else
 
6101
  $as_echo "$as_me: failed program was:" >&5
 
6102
sed 's/^/| /' conftest.$ac_ext >&5
 
6103
 
 
6104
 
 
6105
fi
 
6106
 
 
6107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6108
fi
 
6109
 
 
6110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6111
fi
 
6112
 
 
6113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6114
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6115
fi
 
6116
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6117
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
6118
if test "$ac_test_CXXFLAGS" = set; then
 
6119
  CXXFLAGS=$ac_save_CXXFLAGS
 
6120
elif test $ac_cv_prog_cxx_g = yes; then
 
6121
  if test "$GXX" = yes; then
 
6122
    CXXFLAGS="-g -O2"
 
6123
  else
 
6124
    CXXFLAGS="-g"
 
6125
  fi
 
6126
else
 
6127
  if test "$GXX" = yes; then
 
6128
    CXXFLAGS="-O2"
 
6129
  else
 
6130
    CXXFLAGS=
 
6131
  fi
 
6132
fi
 
6133
ac_ext=c
 
6134
ac_cpp='$CPP $CPPFLAGS'
 
6135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6138
 
 
6139
depcc="$CXX"  am_compiler_list=
 
6140
 
 
6141
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6142
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6143
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6144
  $as_echo_n "(cached) " >&6
 
6145
else
 
6146
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6147
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6148
  # making bogus files that we don't know about and never remove.  For
 
6149
  # instance it was reported that on HP-UX the gcc test will end up
 
6150
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6151
  # in D'.
 
6152
  mkdir conftest.dir
 
6153
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6154
  # using a relative directory.
 
6155
  cp "$am_depcomp" conftest.dir
 
6156
  cd conftest.dir
 
6157
  # We will build objects and dependencies in a subdirectory because
 
6158
  # it helps to detect inapplicable dependency modes.  For instance
 
6159
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6160
  # side effect of compilation, but ICC will put the dependencies in
 
6161
  # the current directory while Tru64 will put them in the object
 
6162
  # directory.
 
6163
  mkdir sub
 
6164
 
 
6165
  am_cv_CXX_dependencies_compiler_type=none
 
6166
  if test "$am_compiler_list" = ""; then
 
6167
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6168
  fi
 
6169
  for depmode in $am_compiler_list; do
 
6170
    # Setup a source with many dependencies, because some compilers
 
6171
    # like to wrap large dependency lists on column 80 (with \), and
 
6172
    # we should not choose a depcomp mode which is confused by this.
 
6173
    #
 
6174
    # We need to recreate these files for each test, as the compiler may
 
6175
    # overwrite some of them when testing with obscure command lines.
 
6176
    # This happens at least with the AIX C compiler.
 
6177
    : > sub/conftest.c
 
6178
    for i in 1 2 3 4 5 6; do
 
6179
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6180
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6181
      # Solaris 8's {/usr,}/bin/sh.
 
6182
      touch sub/conftst$i.h
 
6183
    done
 
6184
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6185
 
 
6186
    case $depmode in
 
6187
    nosideeffect)
 
6188
      # after this tag, mechanisms are not by side-effect, so they'll
 
6189
      # only be used when explicitly requested
 
6190
      if test "x$enable_dependency_tracking" = xyes; then
 
6191
        continue
 
6192
      else
 
6193
        break
 
6194
      fi
 
6195
      ;;
 
6196
    none) break ;;
 
6197
    esac
 
6198
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6199
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6200
    # handle `-M -o', and we need to detect this.
 
6201
    if depmode=$depmode \
 
6202
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6203
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6204
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6205
         >/dev/null 2>conftest.err &&
 
6206
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6207
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6208
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6209
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6210
      # icc doesn't choke on unknown options, it will just issue warnings
 
6211
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6212
      # that says an option was ignored or not supported.
 
6213
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6214
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6215
      # The diagnosis changed in icc 8.0:
 
6216
      #   icc: Command line remark: option '-MP' not supported
 
6217
      if (grep 'ignoring option' conftest.err ||
 
6218
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6219
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6220
        break
 
6221
      fi
 
6222
    fi
 
6223
  done
 
6224
 
 
6225
  cd ..
 
6226
  rm -rf conftest.dir
 
6227
else
 
6228
  am_cv_CXX_dependencies_compiler_type=none
 
6229
fi
 
6230
 
 
6231
fi
 
6232
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6233
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6234
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6235
 
 
6236
 if
 
6237
  test "x$enable_dependency_tracking" != xno \
 
6238
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6239
  am__fastdepCXX_TRUE=
 
6240
  am__fastdepCXX_FALSE='#'
 
6241
else
 
6242
  am__fastdepCXX_TRUE='#'
 
6243
  am__fastdepCXX_FALSE=
 
6244
fi
 
6245
 
 
6246
 
 
6247
ac_ext=m
 
6248
ac_cpp='$OBJCPP $CPPFLAGS'
 
6249
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6250
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6251
ac_compiler_gnu=$ac_cv_objc_compiler_gnu
 
6252
if test -n "$ac_tool_prefix"; then
 
6253
  for ac_prog in gcc objcc objc cc CC
 
6254
  do
 
6255
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6256
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6257
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6258
$as_echo_n "checking for $ac_word... " >&6; }
 
6259
if test "${ac_cv_prog_OBJC+set}" = set; then
 
6260
  $as_echo_n "(cached) " >&6
 
6261
else
 
6262
  if test -n "$OBJC"; then
 
6263
  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
 
6264
else
 
6265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6266
for as_dir in $PATH
 
6267
do
 
6268
  IFS=$as_save_IFS
 
6269
  test -z "$as_dir" && as_dir=.
 
6270
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6271
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6272
    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
 
6273
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6274
    break 2
 
6275
  fi
 
6276
done
 
6277
done
 
6278
IFS=$as_save_IFS
 
6279
 
 
6280
fi
 
6281
fi
 
6282
OBJC=$ac_cv_prog_OBJC
 
6283
if test -n "$OBJC"; then
 
6284
  { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
 
6285
$as_echo "$OBJC" >&6; }
 
6286
else
 
6287
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6288
$as_echo "no" >&6; }
 
6289
fi
 
6290
 
 
6291
 
 
6292
    test -n "$OBJC" && break
 
6293
  done
 
6294
fi
 
6295
if test -z "$OBJC"; then
 
6296
  ac_ct_OBJC=$OBJC
 
6297
  for ac_prog in gcc objcc objc cc CC
 
6298
do
 
6299
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6300
set dummy $ac_prog; ac_word=$2
 
6301
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6302
$as_echo_n "checking for $ac_word... " >&6; }
 
6303
if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
 
6304
  $as_echo_n "(cached) " >&6
 
6305
else
 
6306
  if test -n "$ac_ct_OBJC"; then
 
6307
  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
 
6308
else
 
6309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6310
for as_dir in $PATH
 
6311
do
 
6312
  IFS=$as_save_IFS
 
6313
  test -z "$as_dir" && as_dir=.
 
6314
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6315
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6316
    ac_cv_prog_ac_ct_OBJC="$ac_prog"
 
6317
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6318
    break 2
 
6319
  fi
 
6320
done
 
6321
done
 
6322
IFS=$as_save_IFS
 
6323
 
 
6324
fi
 
6325
fi
 
6326
ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
 
6327
if test -n "$ac_ct_OBJC"; then
 
6328
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
 
6329
$as_echo "$ac_ct_OBJC" >&6; }
 
6330
else
 
6331
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6332
$as_echo "no" >&6; }
 
6333
fi
 
6334
 
 
6335
 
 
6336
  test -n "$ac_ct_OBJC" && break
 
6337
done
 
6338
 
 
6339
  if test "x$ac_ct_OBJC" = x; then
 
6340
    OBJC="gcc"
 
6341
  else
 
6342
    case $cross_compiling:$ac_tool_warned in
 
6343
yes:)
 
6344
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6345
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6346
ac_tool_warned=yes ;;
 
6347
esac
 
6348
    OBJC=$ac_ct_OBJC
 
6349
  fi
 
6350
fi
 
6351
 
 
6352
# Provide some information about the compiler.
 
6353
$as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
 
6354
set X $ac_compile
 
6355
ac_compiler=$2
 
6356
{ (ac_try="$ac_compiler --version >&5"
 
6357
case "(($ac_try" in
 
6358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6359
  *) ac_try_echo=$ac_try;;
 
6360
esac
 
6361
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6362
$as_echo "$ac_try_echo") >&5
 
6363
  (eval "$ac_compiler --version >&5") 2>&5
 
6364
  ac_status=$?
 
6365
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6366
  (exit $ac_status); }
 
6367
{ (ac_try="$ac_compiler -v >&5"
 
6368
case "(($ac_try" in
 
6369
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6370
  *) ac_try_echo=$ac_try;;
 
6371
esac
 
6372
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6373
$as_echo "$ac_try_echo") >&5
 
6374
  (eval "$ac_compiler -v >&5") 2>&5
 
6375
  ac_status=$?
 
6376
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6377
  (exit $ac_status); }
 
6378
{ (ac_try="$ac_compiler -V >&5"
 
6379
case "(($ac_try" in
 
6380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6381
  *) ac_try_echo=$ac_try;;
 
6382
esac
 
6383
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6384
$as_echo "$ac_try_echo") >&5
 
6385
  (eval "$ac_compiler -V >&5") 2>&5
 
6386
  ac_status=$?
 
6387
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6388
  (exit $ac_status); }
 
6389
 
 
6390
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
 
6391
$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
 
6392
if test "${ac_cv_objc_compiler_gnu+set}" = set; then
 
6393
  $as_echo_n "(cached) " >&6
 
6394
else
 
6395
  cat >conftest.$ac_ext <<_ACEOF
 
6396
/* confdefs.h.  */
 
6397
_ACEOF
 
6398
cat confdefs.h >>conftest.$ac_ext
 
6399
cat >>conftest.$ac_ext <<_ACEOF
 
6400
/* end confdefs.h.  */
 
6401
 
 
6402
int
 
6403
main ()
 
6404
{
 
6405
#ifndef __GNUC__
 
6406
       choke me
 
6407
#endif
 
6408
 
 
6409
  ;
 
6410
  return 0;
 
6411
}
 
6412
_ACEOF
 
6413
rm -f conftest.$ac_objext
 
6414
if { (ac_try="$ac_compile"
 
6415
case "(($ac_try" in
 
6416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6417
  *) ac_try_echo=$ac_try;;
 
6418
esac
 
6419
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6420
$as_echo "$ac_try_echo") >&5
 
6421
  (eval "$ac_compile") 2>conftest.er1
 
6422
  ac_status=$?
 
6423
  grep -v '^ *+' conftest.er1 >conftest.err
 
6424
  rm -f conftest.er1
 
6425
  cat conftest.err >&5
 
6426
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6427
  (exit $ac_status); } && {
 
6428
         test -z "$ac_objc_werror_flag" ||
 
6429
         test ! -s conftest.err
 
6430
       } && test -s conftest.$ac_objext; then
 
6431
  ac_compiler_gnu=yes
 
6432
else
 
6433
  $as_echo "$as_me: failed program was:" >&5
 
6434
sed 's/^/| /' conftest.$ac_ext >&5
 
6435
 
 
6436
        ac_compiler_gnu=no
 
6437
fi
 
6438
 
 
6439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6440
ac_cv_objc_compiler_gnu=$ac_compiler_gnu
 
6441
 
 
6442
fi
 
6443
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
 
6444
$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
 
6445
if test $ac_compiler_gnu = yes; then
 
6446
  GOBJC=yes
 
6447
else
 
6448
  GOBJC=
 
6449
fi
 
6450
ac_test_OBJCFLAGS=${OBJCFLAGS+set}
 
6451
ac_save_OBJCFLAGS=$OBJCFLAGS
 
6452
{ $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
 
6453
$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
 
6454
if test "${ac_cv_prog_objc_g+set}" = set; then
 
6455
  $as_echo_n "(cached) " >&6
 
6456
else
 
6457
  ac_save_objc_werror_flag=$ac_objc_werror_flag
 
6458
   ac_objc_werror_flag=yes
 
6459
   ac_cv_prog_objc_g=no
 
6460
   OBJCFLAGS="-g"
 
6461
   cat >conftest.$ac_ext <<_ACEOF
 
6462
/* confdefs.h.  */
 
6463
_ACEOF
 
6464
cat confdefs.h >>conftest.$ac_ext
 
6465
cat >>conftest.$ac_ext <<_ACEOF
 
6466
/* end confdefs.h.  */
 
6467
 
 
6468
int
 
6469
main ()
 
6470
{
 
6471
 
 
6472
  ;
 
6473
  return 0;
 
6474
}
 
6475
_ACEOF
 
6476
rm -f conftest.$ac_objext
 
6477
if { (ac_try="$ac_compile"
 
6478
case "(($ac_try" in
 
6479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6480
  *) ac_try_echo=$ac_try;;
 
6481
esac
 
6482
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6483
$as_echo "$ac_try_echo") >&5
 
6484
  (eval "$ac_compile") 2>conftest.er1
 
6485
  ac_status=$?
 
6486
  grep -v '^ *+' conftest.er1 >conftest.err
 
6487
  rm -f conftest.er1
 
6488
  cat conftest.err >&5
 
6489
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6490
  (exit $ac_status); } && {
 
6491
         test -z "$ac_objc_werror_flag" ||
 
6492
         test ! -s conftest.err
 
6493
       } && test -s conftest.$ac_objext; then
 
6494
  ac_cv_prog_objc_g=yes
 
6495
else
 
6496
  $as_echo "$as_me: failed program was:" >&5
 
6497
sed 's/^/| /' conftest.$ac_ext >&5
 
6498
 
 
6499
        OBJCFLAGS=""
 
6500
      cat >conftest.$ac_ext <<_ACEOF
 
6501
/* confdefs.h.  */
 
6502
_ACEOF
 
6503
cat confdefs.h >>conftest.$ac_ext
 
6504
cat >>conftest.$ac_ext <<_ACEOF
 
6505
/* end confdefs.h.  */
 
6506
 
 
6507
int
 
6508
main ()
 
6509
{
 
6510
 
 
6511
  ;
 
6512
  return 0;
 
6513
}
 
6514
_ACEOF
 
6515
rm -f conftest.$ac_objext
 
6516
if { (ac_try="$ac_compile"
 
6517
case "(($ac_try" in
 
6518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6519
  *) ac_try_echo=$ac_try;;
 
6520
esac
 
6521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6522
$as_echo "$ac_try_echo") >&5
 
6523
  (eval "$ac_compile") 2>conftest.er1
 
6524
  ac_status=$?
 
6525
  grep -v '^ *+' conftest.er1 >conftest.err
 
6526
  rm -f conftest.er1
 
6527
  cat conftest.err >&5
 
6528
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6529
  (exit $ac_status); } && {
 
6530
         test -z "$ac_objc_werror_flag" ||
 
6531
         test ! -s conftest.err
 
6532
       } && test -s conftest.$ac_objext; then
 
6533
  :
 
6534
else
 
6535
  $as_echo "$as_me: failed program was:" >&5
 
6536
sed 's/^/| /' conftest.$ac_ext >&5
 
6537
 
 
6538
        ac_objc_werror_flag=$ac_save_objc_werror_flag
 
6539
         OBJCFLAGS="-g"
 
6540
         cat >conftest.$ac_ext <<_ACEOF
 
6541
/* confdefs.h.  */
 
6542
_ACEOF
 
6543
cat confdefs.h >>conftest.$ac_ext
 
6544
cat >>conftest.$ac_ext <<_ACEOF
 
6545
/* end confdefs.h.  */
 
6546
 
 
6547
int
 
6548
main ()
 
6549
{
 
6550
 
 
6551
  ;
 
6552
  return 0;
 
6553
}
 
6554
_ACEOF
 
6555
rm -f conftest.$ac_objext
 
6556
if { (ac_try="$ac_compile"
 
6557
case "(($ac_try" in
 
6558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6559
  *) ac_try_echo=$ac_try;;
 
6560
esac
 
6561
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6562
$as_echo "$ac_try_echo") >&5
 
6563
  (eval "$ac_compile") 2>conftest.er1
 
6564
  ac_status=$?
 
6565
  grep -v '^ *+' conftest.er1 >conftest.err
 
6566
  rm -f conftest.er1
 
6567
  cat conftest.err >&5
 
6568
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6569
  (exit $ac_status); } && {
 
6570
         test -z "$ac_objc_werror_flag" ||
 
6571
         test ! -s conftest.err
 
6572
       } && test -s conftest.$ac_objext; then
 
6573
  ac_cv_prog_objc_g=yes
 
6574
else
 
6575
  $as_echo "$as_me: failed program was:" >&5
 
6576
sed 's/^/| /' conftest.$ac_ext >&5
 
6577
 
 
6578
 
 
6579
fi
 
6580
 
 
6581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6582
fi
 
6583
 
 
6584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6585
fi
 
6586
 
 
6587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6588
   ac_objc_werror_flag=$ac_save_objc_werror_flag
 
6589
fi
 
6590
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
 
6591
$as_echo "$ac_cv_prog_objc_g" >&6; }
 
6592
if test "$ac_test_OBJCFLAGS" = set; then
 
6593
  OBJCFLAGS=$ac_save_OBJCFLAGS
 
6594
elif test $ac_cv_prog_objc_g = yes; then
 
6595
  if test "$GOBJC" = yes; then
 
6596
    OBJCFLAGS="-g -O2"
 
6597
  else
 
6598
    OBJCFLAGS="-g"
 
6599
  fi
 
6600
else
 
6601
  if test "$GOBJC" = yes; then
 
6602
    OBJCFLAGS="-O2"
 
6603
  else
 
6604
    OBJCFLAGS=
 
6605
  fi
 
6606
fi
 
6607
ac_ext=c
 
6608
ac_cpp='$CPP $CPPFLAGS'
 
6609
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6610
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6611
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6612
 
 
6613
depcc="$OBJC" am_compiler_list='gcc3 gcc'
 
6614
 
 
6615
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6616
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6617
if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
 
6618
  $as_echo_n "(cached) " >&6
 
6619
else
 
6620
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6621
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6622
  # making bogus files that we don't know about and never remove.  For
 
6623
  # instance it was reported that on HP-UX the gcc test will end up
 
6624
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6625
  # in D'.
 
6626
  mkdir conftest.dir
 
6627
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6628
  # using a relative directory.
 
6629
  cp "$am_depcomp" conftest.dir
 
6630
  cd conftest.dir
 
6631
  # We will build objects and dependencies in a subdirectory because
 
6632
  # it helps to detect inapplicable dependency modes.  For instance
 
6633
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6634
  # side effect of compilation, but ICC will put the dependencies in
 
6635
  # the current directory while Tru64 will put them in the object
 
6636
  # directory.
 
6637
  mkdir sub
 
6638
 
 
6639
  am_cv_OBJC_dependencies_compiler_type=none
 
6640
  if test "$am_compiler_list" = ""; then
 
6641
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6642
  fi
 
6643
  for depmode in $am_compiler_list; do
 
6644
    # Setup a source with many dependencies, because some compilers
 
6645
    # like to wrap large dependency lists on column 80 (with \), and
 
6646
    # we should not choose a depcomp mode which is confused by this.
 
6647
    #
 
6648
    # We need to recreate these files for each test, as the compiler may
 
6649
    # overwrite some of them when testing with obscure command lines.
 
6650
    # This happens at least with the AIX C compiler.
 
6651
    : > sub/conftest.c
 
6652
    for i in 1 2 3 4 5 6; do
 
6653
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6654
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6655
      # Solaris 8's {/usr,}/bin/sh.
 
6656
      touch sub/conftst$i.h
 
6657
    done
 
6658
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6659
 
 
6660
    case $depmode in
 
6661
    nosideeffect)
 
6662
      # after this tag, mechanisms are not by side-effect, so they'll
 
6663
      # only be used when explicitly requested
 
6664
      if test "x$enable_dependency_tracking" = xyes; then
 
6665
        continue
 
6666
      else
 
6667
        break
 
6668
      fi
 
6669
      ;;
 
6670
    none) break ;;
 
6671
    esac
 
6672
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6673
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6674
    # handle `-M -o', and we need to detect this.
 
6675
    if depmode=$depmode \
 
6676
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6677
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6678
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6679
         >/dev/null 2>conftest.err &&
 
6680
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6681
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6682
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6683
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6684
      # icc doesn't choke on unknown options, it will just issue warnings
 
6685
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6686
      # that says an option was ignored or not supported.
 
6687
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6688
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6689
      # The diagnosis changed in icc 8.0:
 
6690
      #   icc: Command line remark: option '-MP' not supported
 
6691
      if (grep 'ignoring option' conftest.err ||
 
6692
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6693
        am_cv_OBJC_dependencies_compiler_type=$depmode
 
6694
        break
 
6695
      fi
 
6696
    fi
 
6697
  done
 
6698
 
 
6699
  cd ..
 
6700
  rm -rf conftest.dir
 
6701
else
 
6702
  am_cv_OBJC_dependencies_compiler_type=none
 
6703
fi
 
6704
 
 
6705
fi
 
6706
{ $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
 
6707
$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
 
6708
OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
 
6709
 
 
6710
 if
 
6711
  test "x$enable_dependency_tracking" != xno \
 
6712
  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
 
6713
  am__fastdepOBJC_TRUE=
 
6714
  am__fastdepOBJC_FALSE='#'
 
6715
else
 
6716
  am__fastdepOBJC_TRUE='#'
 
6717
  am__fastdepOBJC_FALSE=
 
6718
fi
 
6719
 
 
6720
 
 
6721
 
 
6722
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
6723
$as_echo_n "checking for inline... " >&6; }
 
6724
if test "${ac_cv_c_inline+set}" = set; then
 
6725
  $as_echo_n "(cached) " >&6
 
6726
else
 
6727
  ac_cv_c_inline=no
 
6728
for ac_kw in inline __inline__ __inline; do
 
6729
  cat >conftest.$ac_ext <<_ACEOF
 
6730
/* confdefs.h.  */
 
6731
_ACEOF
 
6732
cat confdefs.h >>conftest.$ac_ext
 
6733
cat >>conftest.$ac_ext <<_ACEOF
 
6734
/* end confdefs.h.  */
 
6735
#ifndef __cplusplus
 
6736
typedef int foo_t;
 
6737
static $ac_kw foo_t static_foo () {return 0; }
 
6738
$ac_kw foo_t foo () {return 0; }
 
6739
#endif
 
6740
 
 
6741
_ACEOF
 
6742
rm -f conftest.$ac_objext
 
6743
if { (ac_try="$ac_compile"
 
6744
case "(($ac_try" in
 
6745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6746
  *) ac_try_echo=$ac_try;;
 
6747
esac
 
6748
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6749
$as_echo "$ac_try_echo") >&5
 
6750
  (eval "$ac_compile") 2>conftest.er1
 
6751
  ac_status=$?
 
6752
  grep -v '^ *+' conftest.er1 >conftest.err
 
6753
  rm -f conftest.er1
 
6754
  cat conftest.err >&5
 
6755
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6756
  (exit $ac_status); } && {
 
6757
         test -z "$ac_c_werror_flag" ||
 
6758
         test ! -s conftest.err
 
6759
       } && test -s conftest.$ac_objext; then
 
6760
  ac_cv_c_inline=$ac_kw
 
6761
else
 
6762
  $as_echo "$as_me: failed program was:" >&5
 
6763
sed 's/^/| /' conftest.$ac_ext >&5
 
6764
 
 
6765
 
 
6766
fi
 
6767
 
 
6768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6769
  test "$ac_cv_c_inline" != no && break
 
6770
done
 
6771
 
 
6772
fi
 
6773
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
6774
$as_echo "$ac_cv_c_inline" >&6; }
 
6775
 
 
6776
 
 
6777
case $ac_cv_c_inline in
 
6778
  inline | yes) ;;
 
6779
  *)
 
6780
    case $ac_cv_c_inline in
 
6781
      no) ac_val=;;
 
6782
      *) ac_val=$ac_cv_c_inline;;
 
6783
    esac
 
6784
    cat >>confdefs.h <<_ACEOF
 
6785
#ifndef __cplusplus
 
6786
#define inline $ac_val
 
6787
#endif
 
6788
_ACEOF
 
6789
    ;;
 
6790
esac
 
6791
 
 
6792
 
 
6793
# Workaround for native compilers
 
6794
#  HP  : http://bugs.gnome.org/db/31/3163.html
 
6795
#  DEC : Enable NaN/Inf
 
6796
 
 
6797
if test "${GCC}" != "yes" ; then
 
6798
    for ac_prog in rc
 
6799
do
 
6800
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6801
set dummy $ac_prog; ac_word=$2
 
6802
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6803
$as_echo_n "checking for $ac_word... " >&6; }
 
6804
if test "${ac_cv_prog_RC+set}" = set; then
 
6805
  $as_echo_n "(cached) " >&6
 
6806
else
 
6807
  if test -n "$RC"; then
 
6808
  ac_cv_prog_RC="$RC" # Let the user override the test.
 
6809
else
 
6810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6811
for as_dir in $PATH
 
6812
do
 
6813
  IFS=$as_save_IFS
 
6814
  test -z "$as_dir" && as_dir=.
 
6815
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6816
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6817
    ac_cv_prog_RC="$ac_prog"
 
6818
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6819
    break 2
 
6820
  fi
 
6821
done
 
6822
done
 
6823
IFS=$as_save_IFS
 
6824
 
 
6825
fi
 
6826
fi
 
6827
RC=$ac_cv_prog_RC
 
6828
if test -n "$RC"; then
 
6829
  { $as_echo "$as_me:$LINENO: result: $RC" >&5
 
6830
$as_echo "$RC" >&6; }
 
6831
else
 
6832
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6833
$as_echo "no" >&6; }
 
6834
fi
 
6835
 
 
6836
 
 
6837
  test -n "$RC" && break
 
6838
done
 
6839
test -n "$RC" || RC="false"
 
6840
 
 
6841
    case "${build}" in
 
6842
        *-*-hpux* )
 
6843
            CFLAGS="${CFLAGS} -Wp,-H30000"
 
6844
            ;;
 
6845
        *-dec-osf* )
 
6846
            CFLAGS="${CFLAGS} -ieee"
 
6847
            ;;
 
6848
        *-apple-darwin* )
 
6849
            CFLAGS="${CFLAGS} -fno-common"
 
6850
            ;;
 
6851
        *-sgi-irix* )
 
6852
            ;;
 
6853
    esac
 
6854
else
 
6855
    for ac_prog in windres
 
6856
do
 
6857
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6858
set dummy $ac_prog; ac_word=$2
 
6859
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6860
$as_echo_n "checking for $ac_word... " >&6; }
 
6861
if test "${ac_cv_prog_RC+set}" = set; then
 
6862
  $as_echo_n "(cached) " >&6
 
6863
else
 
6864
  if test -n "$RC"; then
 
6865
  ac_cv_prog_RC="$RC" # Let the user override the test.
 
6866
else
 
6867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6868
for as_dir in $PATH
 
6869
do
 
6870
  IFS=$as_save_IFS
 
6871
  test -z "$as_dir" && as_dir=.
 
6872
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6873
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6874
    ac_cv_prog_RC="$ac_prog"
 
6875
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6876
    break 2
 
6877
  fi
 
6878
done
 
6879
done
 
6880
IFS=$as_save_IFS
 
6881
 
 
6882
fi
 
6883
fi
 
6884
RC=$ac_cv_prog_RC
 
6885
if test -n "$RC"; then
 
6886
  { $as_echo "$as_me:$LINENO: result: $RC" >&5
 
6887
$as_echo "$RC" >&6; }
 
6888
else
 
6889
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6890
$as_echo "no" >&6; }
 
6891
fi
 
6892
 
 
6893
 
 
6894
  test -n "$RC" && break
 
6895
done
 
6896
test -n "$RC" || RC="false"
 
6897
 
 
6898
    case "${CC}" in
 
6899
        *icc* )
 
6900
            # -Wall causes relocation errors with icc
 
6901
            CFLAGS="${CFLAGS} -wd269"
 
6902
            # icc doesn't like -pipe
 
6903
            CFLAGS=`echo ${CFLAGS} | sed 's/ -pipe//'`
 
6904
            # icc doesn't like -ffast-math
 
6905
            CFLAGS=`echo ${CFLAGS} | sed 's/ -ffast-math//'`
 
6906
            # icc doesn't like -O2
 
6907
            CFLAGS=`echo ${CFLAGS} | sed 's/ -O2/ -O0/'`
 
6908
            ;;
 
6909
        * )
 
6910
            case "${build}" in
 
6911
                *-dec-osf* )
 
6912
                    CFLAGS="${CFLAGS} -mieee -Wall"
 
6913
                    ;;
 
6914
                *alpha*-*-linux* )
 
6915
                    CFLAGS="${CFLAGS} -mieee -Wall"
 
6916
                    ;;
 
6917
                *-apple-darwin* )
 
6918
                    CFLAGS="${CFLAGS} -fno-common -Wall"
 
6919
                    ;;
 
6920
                *-freebsd* )
 
6921
                    CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"
 
6922
                    ;;
 
6923
                * )
 
6924
                    # -Wno-unused-parameter only needed for bug in gcc3
 
6925
                    # this test from: http://cvs.auriga.wearlab.de/cgi-bin/cvsweb.cgi/dillo/configure.in?rev=1.90;content-type=text%2Fplain;cvsroot=dillo
 
6926
                    if test "`$CC -v 2>&1 | $GREP 'version 3'`" != ""; then
 
6927
                        CFLAGS="${CFLAGS} -Wno-unused-parameter"
 
6928
                    fi
 
6929
                    CFLAGS="${CFLAGS} -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"
 
6930
                    ;;
 
6931
            esac
 
6932
            ;;
 
6933
    esac
 
6934
fi
 
6935
# -ffast-math is incompatible with FP error trapping
 
6936
#     ref: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175793
 
6937
if `echo ${CFLAGS} | $GREP ffast-math >/dev/null`; then
 
6938
 
 
6939
cat >>confdefs.h <<_ACEOF
 
6940
#define NO_FPERR 1
 
6941
_ACEOF
 
6942
 
 
6943
fi
 
6944
 
 
6945
 if test "x$RC" = "xrc"; then
 
6946
  RC_IS_RC_TRUE=
 
6947
  RC_IS_RC_FALSE='#'
 
6948
else
 
6949
  RC_IS_RC_TRUE='#'
 
6950
  RC_IS_RC_FALSE=
 
6951
fi
 
6952
 
 
6953
 if test "x$RC" = "xwindres"; then
 
6954
  RC_IS_WINDRES_TRUE=
 
6955
  RC_IS_WINDRES_FALSE='#'
 
6956
else
 
6957
  RC_IS_WINDRES_TRUE='#'
 
6958
  RC_IS_WINDRES_FALSE=
 
6959
fi
 
6960
 
 
6961
 
 
6962
 
 
6963
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
6964
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
6965
if test "${ac_cv_c_const+set}" = set; then
 
6966
  $as_echo_n "(cached) " >&6
 
6967
else
 
6968
  cat >conftest.$ac_ext <<_ACEOF
 
6969
/* confdefs.h.  */
 
6970
_ACEOF
 
6971
cat confdefs.h >>conftest.$ac_ext
 
6972
cat >>conftest.$ac_ext <<_ACEOF
 
6973
/* end confdefs.h.  */
 
6974
 
 
6975
int
 
6976
main ()
 
6977
{
 
6978
/* FIXME: Include the comments suggested by Paul. */
 
6979
#ifndef __cplusplus
 
6980
  /* Ultrix mips cc rejects this.  */
 
6981
  typedef int charset[2];
 
6982
  const charset cs;
 
6983
  /* SunOS 4.1.1 cc rejects this.  */
 
6984
  char const *const *pcpcc;
 
6985
  char **ppc;
 
6986
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
6987
  struct point {int x, y;};
 
6988
  static struct point const zero = {0,0};
 
6989
  /* AIX XL C 1.02.0.0 rejects this.
 
6990
     It does not let you subtract one const X* pointer from another in
 
6991
     an arm of an if-expression whose if-part is not a constant
 
6992
     expression */
 
6993
  const char *g = "string";
 
6994
  pcpcc = &g + (g ? g-g : 0);
 
6995
  /* HPUX 7.0 cc rejects these. */
 
6996
  ++pcpcc;
 
6997
  ppc = (char**) pcpcc;
 
6998
  pcpcc = (char const *const *) ppc;
 
6999
  { /* SCO 3.2v4 cc rejects this.  */
 
7000
    char *t;
 
7001
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
7002
 
 
7003
    *t++ = 0;
 
7004
    if (s) return 0;
 
7005
  }
 
7006
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
7007
    int x[] = {25, 17};
 
7008
    const int *foo = &x[0];
 
7009
    ++foo;
 
7010
  }
 
7011
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
7012
    typedef const int *iptr;
 
7013
    iptr p = 0;
 
7014
    ++p;
 
7015
  }
 
7016
  { /* AIX XL C 1.02.0.0 rejects this saying
 
7017
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
7018
    struct s { int j; const int *ap[3]; };
 
7019
    struct s *b; b->j = 5;
 
7020
  }
 
7021
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
7022
    const int foo = 10;
 
7023
    if (!foo) return 0;
 
7024
  }
 
7025
  return !cs[0] && !zero.x;
 
7026
#endif
 
7027
 
 
7028
  ;
 
7029
  return 0;
 
7030
}
 
7031
_ACEOF
 
7032
rm -f conftest.$ac_objext
 
7033
if { (ac_try="$ac_compile"
 
7034
case "(($ac_try" in
 
7035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7036
  *) ac_try_echo=$ac_try;;
 
7037
esac
 
7038
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7039
$as_echo "$ac_try_echo") >&5
 
7040
  (eval "$ac_compile") 2>conftest.er1
 
7041
  ac_status=$?
 
7042
  grep -v '^ *+' conftest.er1 >conftest.err
 
7043
  rm -f conftest.er1
 
7044
  cat conftest.err >&5
 
7045
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7046
  (exit $ac_status); } && {
 
7047
         test -z "$ac_c_werror_flag" ||
 
7048
         test ! -s conftest.err
 
7049
       } && test -s conftest.$ac_objext; then
 
7050
  ac_cv_c_const=yes
 
7051
else
 
7052
  $as_echo "$as_me: failed program was:" >&5
 
7053
sed 's/^/| /' conftest.$ac_ext >&5
 
7054
 
 
7055
        ac_cv_c_const=no
 
7056
fi
 
7057
 
 
7058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7059
fi
 
7060
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
7061
$as_echo "$ac_cv_c_const" >&6; }
 
7062
if test $ac_cv_c_const = no; then
 
7063
 
 
7064
cat >>confdefs.h <<\_ACEOF
 
7065
#define const /**/
 
7066
_ACEOF
 
7067
 
 
7068
fi
 
7069
 
 
7070
ac_ext=c
 
7071
ac_cpp='$CPP $CPPFLAGS'
 
7072
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7073
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7074
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7075
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
7076
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7077
# On Suns, sometimes $CPP names a directory.
 
7078
if test -n "$CPP" && test -d "$CPP"; then
 
7079
  CPP=
 
7080
fi
 
7081
if test -z "$CPP"; then
 
7082
  if test "${ac_cv_prog_CPP+set}" = set; then
 
7083
  $as_echo_n "(cached) " >&6
 
7084
else
 
7085
      # Double quotes because CPP needs to be expanded
 
7086
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7087
    do
 
7088
      ac_preproc_ok=false
 
7089
for ac_c_preproc_warn_flag in '' yes
 
7090
do
 
7091
  # Use a header file that comes with gcc, so configuring glibc
 
7092
  # with a fresh cross-compiler works.
 
7093
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7094
  # <limits.h> exists even on freestanding compilers.
 
7095
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7096
  # not just through cpp. "Syntax error" is here to catch this case.
 
7097
  cat >conftest.$ac_ext <<_ACEOF
 
7098
/* confdefs.h.  */
 
7099
_ACEOF
 
7100
cat confdefs.h >>conftest.$ac_ext
 
7101
cat >>conftest.$ac_ext <<_ACEOF
 
7102
/* end confdefs.h.  */
 
7103
#ifdef __STDC__
 
7104
# include <limits.h>
 
7105
#else
 
7106
# include <assert.h>
 
7107
#endif
 
7108
                     Syntax error
 
7109
_ACEOF
 
7110
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7111
case "(($ac_try" in
 
7112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7113
  *) ac_try_echo=$ac_try;;
 
7114
esac
 
7115
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7116
$as_echo "$ac_try_echo") >&5
 
7117
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7118
  ac_status=$?
 
7119
  grep -v '^ *+' conftest.er1 >conftest.err
 
7120
  rm -f conftest.er1
 
7121
  cat conftest.err >&5
 
7122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7123
  (exit $ac_status); } >/dev/null && {
 
7124
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7125
         test ! -s conftest.err
 
7126
       }; then
 
7127
  :
 
7128
else
 
7129
  $as_echo "$as_me: failed program was:" >&5
 
7130
sed 's/^/| /' conftest.$ac_ext >&5
 
7131
 
 
7132
  # Broken: fails on valid input.
 
7133
continue
 
7134
fi
 
7135
 
 
7136
rm -f conftest.err conftest.$ac_ext
 
7137
 
 
7138
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7139
  # can be detected and how.
 
7140
  cat >conftest.$ac_ext <<_ACEOF
 
7141
/* confdefs.h.  */
 
7142
_ACEOF
 
7143
cat confdefs.h >>conftest.$ac_ext
 
7144
cat >>conftest.$ac_ext <<_ACEOF
 
7145
/* end confdefs.h.  */
 
7146
#include <ac_nonexistent.h>
 
7147
_ACEOF
 
7148
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7149
case "(($ac_try" in
 
7150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7151
  *) ac_try_echo=$ac_try;;
 
7152
esac
 
7153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7154
$as_echo "$ac_try_echo") >&5
 
7155
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7156
  ac_status=$?
 
7157
  grep -v '^ *+' conftest.er1 >conftest.err
 
7158
  rm -f conftest.er1
 
7159
  cat conftest.err >&5
 
7160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7161
  (exit $ac_status); } >/dev/null && {
 
7162
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7163
         test ! -s conftest.err
 
7164
       }; then
 
7165
  # Broken: success on invalid input.
 
7166
continue
 
7167
else
 
7168
  $as_echo "$as_me: failed program was:" >&5
 
7169
sed 's/^/| /' conftest.$ac_ext >&5
 
7170
 
 
7171
  # Passes both tests.
 
7172
ac_preproc_ok=:
 
7173
break
 
7174
fi
 
7175
 
 
7176
rm -f conftest.err conftest.$ac_ext
 
7177
 
 
7178
done
 
7179
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7180
rm -f conftest.err conftest.$ac_ext
 
7181
if $ac_preproc_ok; then
 
7182
  break
 
7183
fi
 
7184
 
 
7185
    done
 
7186
    ac_cv_prog_CPP=$CPP
 
7187
 
 
7188
fi
 
7189
  CPP=$ac_cv_prog_CPP
 
7190
else
 
7191
  ac_cv_prog_CPP=$CPP
 
7192
fi
 
7193
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
7194
$as_echo "$CPP" >&6; }
 
7195
ac_preproc_ok=false
 
7196
for ac_c_preproc_warn_flag in '' yes
 
7197
do
 
7198
  # Use a header file that comes with gcc, so configuring glibc
 
7199
  # with a fresh cross-compiler works.
 
7200
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7201
  # <limits.h> exists even on freestanding compilers.
 
7202
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7203
  # not just through cpp. "Syntax error" is here to catch this case.
 
7204
  cat >conftest.$ac_ext <<_ACEOF
 
7205
/* confdefs.h.  */
 
7206
_ACEOF
 
7207
cat confdefs.h >>conftest.$ac_ext
 
7208
cat >>conftest.$ac_ext <<_ACEOF
 
7209
/* end confdefs.h.  */
 
7210
#ifdef __STDC__
 
7211
# include <limits.h>
 
7212
#else
 
7213
# include <assert.h>
 
7214
#endif
 
7215
                     Syntax error
 
7216
_ACEOF
 
7217
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7218
case "(($ac_try" in
 
7219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7220
  *) ac_try_echo=$ac_try;;
 
7221
esac
 
7222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7223
$as_echo "$ac_try_echo") >&5
 
7224
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7225
  ac_status=$?
 
7226
  grep -v '^ *+' conftest.er1 >conftest.err
 
7227
  rm -f conftest.er1
 
7228
  cat conftest.err >&5
 
7229
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7230
  (exit $ac_status); } >/dev/null && {
 
7231
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7232
         test ! -s conftest.err
 
7233
       }; then
 
7234
  :
 
7235
else
 
7236
  $as_echo "$as_me: failed program was:" >&5
 
7237
sed 's/^/| /' conftest.$ac_ext >&5
 
7238
 
 
7239
  # Broken: fails on valid input.
 
7240
continue
 
7241
fi
 
7242
 
 
7243
rm -f conftest.err conftest.$ac_ext
 
7244
 
 
7245
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7246
  # can be detected and how.
 
7247
  cat >conftest.$ac_ext <<_ACEOF
 
7248
/* confdefs.h.  */
 
7249
_ACEOF
 
7250
cat confdefs.h >>conftest.$ac_ext
 
7251
cat >>conftest.$ac_ext <<_ACEOF
 
7252
/* end confdefs.h.  */
 
7253
#include <ac_nonexistent.h>
 
7254
_ACEOF
 
7255
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7256
case "(($ac_try" in
 
7257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7258
  *) ac_try_echo=$ac_try;;
 
7259
esac
 
7260
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7261
$as_echo "$ac_try_echo") >&5
 
7262
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7263
  ac_status=$?
 
7264
  grep -v '^ *+' conftest.er1 >conftest.err
 
7265
  rm -f conftest.er1
 
7266
  cat conftest.err >&5
 
7267
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7268
  (exit $ac_status); } >/dev/null && {
 
7269
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7270
         test ! -s conftest.err
 
7271
       }; then
 
7272
  # Broken: success on invalid input.
 
7273
continue
 
7274
else
 
7275
  $as_echo "$as_me: failed program was:" >&5
 
7276
sed 's/^/| /' conftest.$ac_ext >&5
 
7277
 
 
7278
  # Passes both tests.
 
7279
ac_preproc_ok=:
 
7280
break
 
7281
fi
 
7282
 
 
7283
rm -f conftest.err conftest.$ac_ext
 
7284
 
 
7285
done
 
7286
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7287
rm -f conftest.err conftest.$ac_ext
 
7288
if $ac_preproc_ok; then
 
7289
  :
 
7290
else
 
7291
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
7292
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7293
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
7294
See \`config.log' for more details." >&5
 
7295
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
7296
See \`config.log' for more details." >&2;}
 
7297
   { (exit 1); exit 1; }; }; }
 
7298
fi
 
7299
 
 
7300
ac_ext=c
 
7301
ac_cpp='$CPP $CPPFLAGS'
 
7302
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7303
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7304
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7305
 
 
7306
 
 
7307
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
7308
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
7309
if test "${ac_cv_path_GREP+set}" = set; then
 
7310
  $as_echo_n "(cached) " >&6
 
7311
else
 
7312
  if test -z "$GREP"; then
 
7313
  ac_path_GREP_found=false
 
7314
  # Loop through the user's path and test for each of PROGNAME-LIST
 
7315
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7316
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
7317
do
 
7318
  IFS=$as_save_IFS
 
7319
  test -z "$as_dir" && as_dir=.
 
7320
  for ac_prog in grep ggrep; do
 
7321
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7322
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
7323
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
7324
# Check for GNU ac_path_GREP and select it if it is found.
 
7325
  # Check for GNU $ac_path_GREP
 
7326
case `"$ac_path_GREP" --version 2>&1` in
 
7327
*GNU*)
 
7328
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
7329
*)
 
7330
  ac_count=0
 
7331
  $as_echo_n 0123456789 >"conftest.in"
 
7332
  while :
 
7333
  do
 
7334
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
7335
    mv "conftest.tmp" "conftest.in"
 
7336
    cp "conftest.in" "conftest.nl"
 
7337
    $as_echo 'GREP' >> "conftest.nl"
 
7338
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
7339
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
7340
    ac_count=`expr $ac_count + 1`
 
7341
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
7342
      # Best one so far, save it but keep looking for a better one
 
7343
      ac_cv_path_GREP="$ac_path_GREP"
 
7344
      ac_path_GREP_max=$ac_count
 
7345
    fi
 
7346
    # 10*(2^10) chars as input seems more than enough
 
7347
    test $ac_count -gt 10 && break
 
7348
  done
 
7349
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
7350
esac
 
7351
 
 
7352
      $ac_path_GREP_found && break 3
 
7353
    done
 
7354
  done
 
7355
done
 
7356
IFS=$as_save_IFS
 
7357
  if test -z "$ac_cv_path_GREP"; then
 
7358
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
7359
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
7360
   { (exit 1); exit 1; }; }
 
7361
  fi
 
7362
else
 
7363
  ac_cv_path_GREP=$GREP
 
7364
fi
 
7365
 
 
7366
fi
 
7367
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
7368
$as_echo "$ac_cv_path_GREP" >&6; }
 
7369
 GREP="$ac_cv_path_GREP"
 
7370
 
 
7371
 
 
7372
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
7373
$as_echo_n "checking for egrep... " >&6; }
 
7374
if test "${ac_cv_path_EGREP+set}" = set; then
 
7375
  $as_echo_n "(cached) " >&6
 
7376
else
 
7377
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
7378
   then ac_cv_path_EGREP="$GREP -E"
 
7379
   else
 
7380
     if test -z "$EGREP"; then
 
7381
  ac_path_EGREP_found=false
 
7382
  # Loop through the user's path and test for each of PROGNAME-LIST
 
7383
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7384
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
7385
do
 
7386
  IFS=$as_save_IFS
 
7387
  test -z "$as_dir" && as_dir=.
 
7388
  for ac_prog in egrep; do
 
7389
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7390
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
7391
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
7392
# Check for GNU ac_path_EGREP and select it if it is found.
 
7393
  # Check for GNU $ac_path_EGREP
 
7394
case `"$ac_path_EGREP" --version 2>&1` in
 
7395
*GNU*)
 
7396
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
7397
*)
 
7398
  ac_count=0
 
7399
  $as_echo_n 0123456789 >"conftest.in"
 
7400
  while :
 
7401
  do
 
7402
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
7403
    mv "conftest.tmp" "conftest.in"
 
7404
    cp "conftest.in" "conftest.nl"
 
7405
    $as_echo 'EGREP' >> "conftest.nl"
 
7406
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
7407
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
7408
    ac_count=`expr $ac_count + 1`
 
7409
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
7410
      # Best one so far, save it but keep looking for a better one
 
7411
      ac_cv_path_EGREP="$ac_path_EGREP"
 
7412
      ac_path_EGREP_max=$ac_count
 
7413
    fi
 
7414
    # 10*(2^10) chars as input seems more than enough
 
7415
    test $ac_count -gt 10 && break
 
7416
  done
 
7417
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
7418
esac
 
7419
 
 
7420
      $ac_path_EGREP_found && break 3
 
7421
    done
 
7422
  done
 
7423
done
 
7424
IFS=$as_save_IFS
 
7425
  if test -z "$ac_cv_path_EGREP"; then
 
7426
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
7427
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
7428
   { (exit 1); exit 1; }; }
 
7429
  fi
 
7430
else
 
7431
  ac_cv_path_EGREP=$EGREP
 
7432
fi
 
7433
 
 
7434
   fi
 
7435
fi
 
7436
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
7437
$as_echo "$ac_cv_path_EGREP" >&6; }
 
7438
 EGREP="$ac_cv_path_EGREP"
 
7439
 
 
7440
 
 
7441
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7442
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7443
if test "${ac_cv_header_stdc+set}" = set; then
 
7444
  $as_echo_n "(cached) " >&6
 
7445
else
 
7446
  cat >conftest.$ac_ext <<_ACEOF
 
7447
/* confdefs.h.  */
 
7448
_ACEOF
 
7449
cat confdefs.h >>conftest.$ac_ext
 
7450
cat >>conftest.$ac_ext <<_ACEOF
 
7451
/* end confdefs.h.  */
 
7452
#include <stdlib.h>
 
7453
#include <stdarg.h>
 
7454
#include <string.h>
 
7455
#include <float.h>
 
7456
 
 
7457
int
 
7458
main ()
 
7459
{
 
7460
 
 
7461
  ;
 
7462
  return 0;
 
7463
}
 
7464
_ACEOF
 
7465
rm -f conftest.$ac_objext
 
7466
if { (ac_try="$ac_compile"
 
7467
case "(($ac_try" in
 
7468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7469
  *) ac_try_echo=$ac_try;;
 
7470
esac
 
7471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7472
$as_echo "$ac_try_echo") >&5
 
7473
  (eval "$ac_compile") 2>conftest.er1
 
7474
  ac_status=$?
 
7475
  grep -v '^ *+' conftest.er1 >conftest.err
 
7476
  rm -f conftest.er1
 
7477
  cat conftest.err >&5
 
7478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7479
  (exit $ac_status); } && {
 
7480
         test -z "$ac_c_werror_flag" ||
 
7481
         test ! -s conftest.err
 
7482
       } && test -s conftest.$ac_objext; then
 
7483
  ac_cv_header_stdc=yes
 
7484
else
 
7485
  $as_echo "$as_me: failed program was:" >&5
 
7486
sed 's/^/| /' conftest.$ac_ext >&5
 
7487
 
 
7488
        ac_cv_header_stdc=no
 
7489
fi
 
7490
 
 
7491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7492
 
 
7493
if test $ac_cv_header_stdc = yes; then
 
7494
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7495
  cat >conftest.$ac_ext <<_ACEOF
 
7496
/* confdefs.h.  */
 
7497
_ACEOF
 
7498
cat confdefs.h >>conftest.$ac_ext
 
7499
cat >>conftest.$ac_ext <<_ACEOF
 
7500
/* end confdefs.h.  */
 
7501
#include <string.h>
 
7502
 
 
7503
_ACEOF
 
7504
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7505
  $EGREP "memchr" >/dev/null 2>&1; then
 
7506
  :
 
7507
else
 
7508
  ac_cv_header_stdc=no
 
7509
fi
 
7510
rm -f conftest*
 
7511
 
 
7512
fi
 
7513
 
 
7514
if test $ac_cv_header_stdc = yes; then
 
7515
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7516
  cat >conftest.$ac_ext <<_ACEOF
 
7517
/* confdefs.h.  */
 
7518
_ACEOF
 
7519
cat confdefs.h >>conftest.$ac_ext
 
7520
cat >>conftest.$ac_ext <<_ACEOF
 
7521
/* end confdefs.h.  */
 
7522
#include <stdlib.h>
 
7523
 
 
7524
_ACEOF
 
7525
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7526
  $EGREP "free" >/dev/null 2>&1; then
 
7527
  :
 
7528
else
 
7529
  ac_cv_header_stdc=no
 
7530
fi
 
7531
rm -f conftest*
 
7532
 
 
7533
fi
 
7534
 
 
7535
if test $ac_cv_header_stdc = yes; then
 
7536
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7537
  if test "$cross_compiling" = yes; then
 
7538
  :
 
7539
else
 
7540
  cat >conftest.$ac_ext <<_ACEOF
 
7541
/* confdefs.h.  */
 
7542
_ACEOF
 
7543
cat confdefs.h >>conftest.$ac_ext
 
7544
cat >>conftest.$ac_ext <<_ACEOF
 
7545
/* end confdefs.h.  */
 
7546
#include <ctype.h>
 
7547
#include <stdlib.h>
 
7548
#if ((' ' & 0x0FF) == 0x020)
 
7549
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7550
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7551
#else
 
7552
# define ISLOWER(c) \
 
7553
                   (('a' <= (c) && (c) <= 'i') \
 
7554
                     || ('j' <= (c) && (c) <= 'r') \
 
7555
                     || ('s' <= (c) && (c) <= 'z'))
 
7556
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7557
#endif
 
7558
 
 
7559
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7560
int
 
7561
main ()
 
7562
{
 
7563
  int i;
 
7564
  for (i = 0; i < 256; i++)
 
7565
    if (XOR (islower (i), ISLOWER (i))
 
7566
        || toupper (i) != TOUPPER (i))
 
7567
      return 2;
 
7568
  return 0;
 
7569
}
 
7570
_ACEOF
 
7571
rm -f conftest$ac_exeext
 
7572
if { (ac_try="$ac_link"
 
7573
case "(($ac_try" in
 
7574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7575
  *) ac_try_echo=$ac_try;;
 
7576
esac
 
7577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7578
$as_echo "$ac_try_echo") >&5
 
7579
  (eval "$ac_link") 2>&5
 
7580
  ac_status=$?
 
7581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7582
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7583
  { (case "(($ac_try" in
 
7584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7585
  *) ac_try_echo=$ac_try;;
 
7586
esac
 
7587
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7588
$as_echo "$ac_try_echo") >&5
 
7589
  (eval "$ac_try") 2>&5
 
7590
  ac_status=$?
 
7591
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7592
  (exit $ac_status); }; }; then
 
7593
  :
 
7594
else
 
7595
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
7596
$as_echo "$as_me: failed program was:" >&5
 
7597
sed 's/^/| /' conftest.$ac_ext >&5
 
7598
 
 
7599
( exit $ac_status )
 
7600
ac_cv_header_stdc=no
 
7601
fi
 
7602
rm -rf conftest.dSYM
 
7603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7604
fi
 
7605
 
 
7606
 
 
7607
fi
 
7608
fi
 
7609
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7610
$as_echo "$ac_cv_header_stdc" >&6; }
 
7611
if test $ac_cv_header_stdc = yes; then
 
7612
 
 
7613
cat >>confdefs.h <<\_ACEOF
 
7614
#define STDC_HEADERS 1
 
7615
_ACEOF
 
7616
 
 
7617
fi
 
7618
 
 
7619
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7620
 
 
7621
 
 
7622
 
 
7623
 
 
7624
 
 
7625
 
 
7626
 
 
7627
 
 
7628
 
 
7629
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7630
                  inttypes.h stdint.h unistd.h
 
7631
do
 
7632
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7633
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7634
$as_echo_n "checking for $ac_header... " >&6; }
 
7635
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7636
  $as_echo_n "(cached) " >&6
 
7637
else
 
7638
  cat >conftest.$ac_ext <<_ACEOF
 
7639
/* confdefs.h.  */
 
7640
_ACEOF
 
7641
cat confdefs.h >>conftest.$ac_ext
 
7642
cat >>conftest.$ac_ext <<_ACEOF
 
7643
/* end confdefs.h.  */
 
7644
$ac_includes_default
 
7645
 
 
7646
#include <$ac_header>
 
7647
_ACEOF
 
7648
rm -f conftest.$ac_objext
 
7649
if { (ac_try="$ac_compile"
 
7650
case "(($ac_try" in
 
7651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7652
  *) ac_try_echo=$ac_try;;
 
7653
esac
 
7654
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7655
$as_echo "$ac_try_echo") >&5
 
7656
  (eval "$ac_compile") 2>conftest.er1
 
7657
  ac_status=$?
 
7658
  grep -v '^ *+' conftest.er1 >conftest.err
 
7659
  rm -f conftest.er1
 
7660
  cat conftest.err >&5
 
7661
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7662
  (exit $ac_status); } && {
 
7663
         test -z "$ac_c_werror_flag" ||
 
7664
         test ! -s conftest.err
 
7665
       } && test -s conftest.$ac_objext; then
 
7666
  eval "$as_ac_Header=yes"
 
7667
else
 
7668
  $as_echo "$as_me: failed program was:" >&5
 
7669
sed 's/^/| /' conftest.$ac_ext >&5
 
7670
 
 
7671
        eval "$as_ac_Header=no"
 
7672
fi
 
7673
 
 
7674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7675
fi
 
7676
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7677
                 $as_echo "$as_val"'`
 
7678
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7679
$as_echo "$ac_res" >&6; }
 
7680
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7681
                 $as_echo "$as_val"'`
 
7682
   if test "x$as_val" = x""yes; then
 
7683
  cat >>confdefs.h <<_ACEOF
 
7684
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7685
_ACEOF
 
7686
 
 
7687
fi
 
7688
 
 
7689
done
 
7690
 
 
7691
 
 
7692
{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
 
7693
$as_echo_n "checking for mode_t... " >&6; }
 
7694
if test "${ac_cv_type_mode_t+set}" = set; then
 
7695
  $as_echo_n "(cached) " >&6
 
7696
else
 
7697
  ac_cv_type_mode_t=no
 
7698
cat >conftest.$ac_ext <<_ACEOF
 
7699
/* confdefs.h.  */
 
7700
_ACEOF
 
7701
cat confdefs.h >>conftest.$ac_ext
 
7702
cat >>conftest.$ac_ext <<_ACEOF
 
7703
/* end confdefs.h.  */
 
7704
$ac_includes_default
 
7705
int
 
7706
main ()
 
7707
{
 
7708
if (sizeof (mode_t))
 
7709
       return 0;
 
7710
  ;
 
7711
  return 0;
 
7712
}
 
7713
_ACEOF
 
7714
rm -f conftest.$ac_objext
 
7715
if { (ac_try="$ac_compile"
 
7716
case "(($ac_try" in
 
7717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7718
  *) ac_try_echo=$ac_try;;
 
7719
esac
 
7720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7721
$as_echo "$ac_try_echo") >&5
 
7722
  (eval "$ac_compile") 2>conftest.er1
 
7723
  ac_status=$?
 
7724
  grep -v '^ *+' conftest.er1 >conftest.err
 
7725
  rm -f conftest.er1
 
7726
  cat conftest.err >&5
 
7727
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7728
  (exit $ac_status); } && {
 
7729
         test -z "$ac_c_werror_flag" ||
 
7730
         test ! -s conftest.err
 
7731
       } && test -s conftest.$ac_objext; then
 
7732
  cat >conftest.$ac_ext <<_ACEOF
 
7733
/* confdefs.h.  */
 
7734
_ACEOF
 
7735
cat confdefs.h >>conftest.$ac_ext
 
7736
cat >>conftest.$ac_ext <<_ACEOF
 
7737
/* end confdefs.h.  */
 
7738
$ac_includes_default
 
7739
int
 
7740
main ()
 
7741
{
 
7742
if (sizeof ((mode_t)))
 
7743
          return 0;
 
7744
  ;
 
7745
  return 0;
 
7746
}
 
7747
_ACEOF
 
7748
rm -f conftest.$ac_objext
 
7749
if { (ac_try="$ac_compile"
 
7750
case "(($ac_try" in
 
7751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7752
  *) ac_try_echo=$ac_try;;
 
7753
esac
 
7754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7755
$as_echo "$ac_try_echo") >&5
 
7756
  (eval "$ac_compile") 2>conftest.er1
 
7757
  ac_status=$?
 
7758
  grep -v '^ *+' conftest.er1 >conftest.err
 
7759
  rm -f conftest.er1
 
7760
  cat conftest.err >&5
 
7761
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7762
  (exit $ac_status); } && {
 
7763
         test -z "$ac_c_werror_flag" ||
 
7764
         test ! -s conftest.err
 
7765
       } && test -s conftest.$ac_objext; then
 
7766
  :
 
7767
else
 
7768
  $as_echo "$as_me: failed program was:" >&5
 
7769
sed 's/^/| /' conftest.$ac_ext >&5
 
7770
 
 
7771
        ac_cv_type_mode_t=yes
 
7772
fi
 
7773
 
 
7774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7775
else
 
7776
  $as_echo "$as_me: failed program was:" >&5
 
7777
sed 's/^/| /' conftest.$ac_ext >&5
 
7778
 
 
7779
 
 
7780
fi
 
7781
 
 
7782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7783
fi
 
7784
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
7785
$as_echo "$ac_cv_type_mode_t" >&6; }
 
7786
if test "x$ac_cv_type_mode_t" = x""yes; then
 
7787
  :
 
7788
else
 
7789
 
 
7790
cat >>confdefs.h <<_ACEOF
 
7791
#define mode_t int
 
7792
_ACEOF
 
7793
 
 
7794
fi
 
7795
 
 
7796
{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
 
7797
$as_echo_n "checking for pid_t... " >&6; }
 
7798
if test "${ac_cv_type_pid_t+set}" = set; then
 
7799
  $as_echo_n "(cached) " >&6
 
7800
else
 
7801
  ac_cv_type_pid_t=no
 
7802
cat >conftest.$ac_ext <<_ACEOF
 
7803
/* confdefs.h.  */
 
7804
_ACEOF
 
7805
cat confdefs.h >>conftest.$ac_ext
 
7806
cat >>conftest.$ac_ext <<_ACEOF
 
7807
/* end confdefs.h.  */
 
7808
$ac_includes_default
 
7809
int
 
7810
main ()
 
7811
{
 
7812
if (sizeof (pid_t))
 
7813
       return 0;
 
7814
  ;
 
7815
  return 0;
 
7816
}
 
7817
_ACEOF
 
7818
rm -f conftest.$ac_objext
 
7819
if { (ac_try="$ac_compile"
 
7820
case "(($ac_try" in
 
7821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7822
  *) ac_try_echo=$ac_try;;
 
7823
esac
 
7824
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7825
$as_echo "$ac_try_echo") >&5
 
7826
  (eval "$ac_compile") 2>conftest.er1
 
7827
  ac_status=$?
 
7828
  grep -v '^ *+' conftest.er1 >conftest.err
 
7829
  rm -f conftest.er1
 
7830
  cat conftest.err >&5
 
7831
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7832
  (exit $ac_status); } && {
 
7833
         test -z "$ac_c_werror_flag" ||
 
7834
         test ! -s conftest.err
 
7835
       } && test -s conftest.$ac_objext; then
 
7836
  cat >conftest.$ac_ext <<_ACEOF
 
7837
/* confdefs.h.  */
 
7838
_ACEOF
 
7839
cat confdefs.h >>conftest.$ac_ext
 
7840
cat >>conftest.$ac_ext <<_ACEOF
 
7841
/* end confdefs.h.  */
 
7842
$ac_includes_default
 
7843
int
 
7844
main ()
 
7845
{
 
7846
if (sizeof ((pid_t)))
 
7847
          return 0;
 
7848
  ;
 
7849
  return 0;
 
7850
}
 
7851
_ACEOF
 
7852
rm -f conftest.$ac_objext
 
7853
if { (ac_try="$ac_compile"
 
7854
case "(($ac_try" in
 
7855
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7856
  *) ac_try_echo=$ac_try;;
 
7857
esac
 
7858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7859
$as_echo "$ac_try_echo") >&5
 
7860
  (eval "$ac_compile") 2>conftest.er1
 
7861
  ac_status=$?
 
7862
  grep -v '^ *+' conftest.er1 >conftest.err
 
7863
  rm -f conftest.er1
 
7864
  cat conftest.err >&5
 
7865
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7866
  (exit $ac_status); } && {
 
7867
         test -z "$ac_c_werror_flag" ||
 
7868
         test ! -s conftest.err
 
7869
       } && test -s conftest.$ac_objext; then
 
7870
  :
 
7871
else
 
7872
  $as_echo "$as_me: failed program was:" >&5
 
7873
sed 's/^/| /' conftest.$ac_ext >&5
 
7874
 
 
7875
        ac_cv_type_pid_t=yes
 
7876
fi
 
7877
 
 
7878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7879
else
 
7880
  $as_echo "$as_me: failed program was:" >&5
 
7881
sed 's/^/| /' conftest.$ac_ext >&5
 
7882
 
 
7883
 
 
7884
fi
 
7885
 
 
7886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7887
fi
 
7888
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
7889
$as_echo "$ac_cv_type_pid_t" >&6; }
 
7890
if test "x$ac_cv_type_pid_t" = x""yes; then
 
7891
  :
 
7892
else
 
7893
 
 
7894
cat >>confdefs.h <<_ACEOF
 
7895
#define pid_t int
 
7896
_ACEOF
 
7897
 
 
7898
fi
 
7899
 
 
7900
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
 
7901
$as_echo_n "checking for size_t... " >&6; }
 
7902
if test "${ac_cv_type_size_t+set}" = set; then
 
7903
  $as_echo_n "(cached) " >&6
 
7904
else
 
7905
  ac_cv_type_size_t=no
 
7906
cat >conftest.$ac_ext <<_ACEOF
 
7907
/* confdefs.h.  */
 
7908
_ACEOF
 
7909
cat confdefs.h >>conftest.$ac_ext
 
7910
cat >>conftest.$ac_ext <<_ACEOF
 
7911
/* end confdefs.h.  */
 
7912
$ac_includes_default
 
7913
int
 
7914
main ()
 
7915
{
 
7916
if (sizeof (size_t))
 
7917
       return 0;
 
7918
  ;
 
7919
  return 0;
 
7920
}
 
7921
_ACEOF
 
7922
rm -f conftest.$ac_objext
 
7923
if { (ac_try="$ac_compile"
 
7924
case "(($ac_try" in
 
7925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7926
  *) ac_try_echo=$ac_try;;
 
7927
esac
 
7928
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7929
$as_echo "$ac_try_echo") >&5
 
7930
  (eval "$ac_compile") 2>conftest.er1
 
7931
  ac_status=$?
 
7932
  grep -v '^ *+' conftest.er1 >conftest.err
 
7933
  rm -f conftest.er1
 
7934
  cat conftest.err >&5
 
7935
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7936
  (exit $ac_status); } && {
 
7937
         test -z "$ac_c_werror_flag" ||
 
7938
         test ! -s conftest.err
 
7939
       } && test -s conftest.$ac_objext; then
 
7940
  cat >conftest.$ac_ext <<_ACEOF
 
7941
/* confdefs.h.  */
 
7942
_ACEOF
 
7943
cat confdefs.h >>conftest.$ac_ext
 
7944
cat >>conftest.$ac_ext <<_ACEOF
 
7945
/* end confdefs.h.  */
 
7946
$ac_includes_default
 
7947
int
 
7948
main ()
 
7949
{
 
7950
if (sizeof ((size_t)))
 
7951
          return 0;
 
7952
  ;
 
7953
  return 0;
 
7954
}
 
7955
_ACEOF
 
7956
rm -f conftest.$ac_objext
 
7957
if { (ac_try="$ac_compile"
 
7958
case "(($ac_try" in
 
7959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7960
  *) ac_try_echo=$ac_try;;
 
7961
esac
 
7962
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7963
$as_echo "$ac_try_echo") >&5
 
7964
  (eval "$ac_compile") 2>conftest.er1
 
7965
  ac_status=$?
 
7966
  grep -v '^ *+' conftest.er1 >conftest.err
 
7967
  rm -f conftest.er1
 
7968
  cat conftest.err >&5
 
7969
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7970
  (exit $ac_status); } && {
 
7971
         test -z "$ac_c_werror_flag" ||
 
7972
         test ! -s conftest.err
 
7973
       } && test -s conftest.$ac_objext; then
 
7974
  :
 
7975
else
 
7976
  $as_echo "$as_me: failed program was:" >&5
 
7977
sed 's/^/| /' conftest.$ac_ext >&5
 
7978
 
 
7979
        ac_cv_type_size_t=yes
 
7980
fi
 
7981
 
 
7982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7983
else
 
7984
  $as_echo "$as_me: failed program was:" >&5
 
7985
sed 's/^/| /' conftest.$ac_ext >&5
 
7986
 
 
7987
 
 
7988
fi
 
7989
 
 
7990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7991
fi
 
7992
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
7993
$as_echo "$ac_cv_type_size_t" >&6; }
 
7994
if test "x$ac_cv_type_size_t" = x""yes; then
 
7995
  :
 
7996
else
 
7997
 
 
7998
cat >>confdefs.h <<_ACEOF
 
7999
#define size_t unsigned int
 
8000
_ACEOF
 
8001
 
 
8002
fi
 
8003
 
 
8004
{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
 
8005
$as_echo_n "checking for ssize_t... " >&6; }
 
8006
if test "${ac_cv_type_ssize_t+set}" = set; then
 
8007
  $as_echo_n "(cached) " >&6
 
8008
else
 
8009
  ac_cv_type_ssize_t=no
 
8010
cat >conftest.$ac_ext <<_ACEOF
 
8011
/* confdefs.h.  */
 
8012
_ACEOF
 
8013
cat confdefs.h >>conftest.$ac_ext
 
8014
cat >>conftest.$ac_ext <<_ACEOF
 
8015
/* end confdefs.h.  */
 
8016
$ac_includes_default
 
8017
int
 
8018
main ()
 
8019
{
 
8020
if (sizeof (ssize_t))
 
8021
       return 0;
 
8022
  ;
 
8023
  return 0;
 
8024
}
 
8025
_ACEOF
 
8026
rm -f conftest.$ac_objext
 
8027
if { (ac_try="$ac_compile"
 
8028
case "(($ac_try" in
 
8029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8030
  *) ac_try_echo=$ac_try;;
 
8031
esac
 
8032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8033
$as_echo "$ac_try_echo") >&5
 
8034
  (eval "$ac_compile") 2>conftest.er1
 
8035
  ac_status=$?
 
8036
  grep -v '^ *+' conftest.er1 >conftest.err
 
8037
  rm -f conftest.er1
 
8038
  cat conftest.err >&5
 
8039
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8040
  (exit $ac_status); } && {
 
8041
         test -z "$ac_c_werror_flag" ||
 
8042
         test ! -s conftest.err
 
8043
       } && test -s conftest.$ac_objext; then
 
8044
  cat >conftest.$ac_ext <<_ACEOF
 
8045
/* confdefs.h.  */
 
8046
_ACEOF
 
8047
cat confdefs.h >>conftest.$ac_ext
 
8048
cat >>conftest.$ac_ext <<_ACEOF
 
8049
/* end confdefs.h.  */
 
8050
$ac_includes_default
 
8051
int
 
8052
main ()
 
8053
{
 
8054
if (sizeof ((ssize_t)))
 
8055
          return 0;
 
8056
  ;
 
8057
  return 0;
 
8058
}
 
8059
_ACEOF
 
8060
rm -f conftest.$ac_objext
 
8061
if { (ac_try="$ac_compile"
 
8062
case "(($ac_try" in
 
8063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8064
  *) ac_try_echo=$ac_try;;
 
8065
esac
 
8066
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8067
$as_echo "$ac_try_echo") >&5
 
8068
  (eval "$ac_compile") 2>conftest.er1
 
8069
  ac_status=$?
 
8070
  grep -v '^ *+' conftest.er1 >conftest.err
 
8071
  rm -f conftest.er1
 
8072
  cat conftest.err >&5
 
8073
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8074
  (exit $ac_status); } && {
 
8075
         test -z "$ac_c_werror_flag" ||
 
8076
         test ! -s conftest.err
 
8077
       } && test -s conftest.$ac_objext; then
 
8078
  :
 
8079
else
 
8080
  $as_echo "$as_me: failed program was:" >&5
 
8081
sed 's/^/| /' conftest.$ac_ext >&5
 
8082
 
 
8083
        ac_cv_type_ssize_t=yes
 
8084
fi
 
8085
 
 
8086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8087
else
 
8088
  $as_echo "$as_me: failed program was:" >&5
 
8089
sed 's/^/| /' conftest.$ac_ext >&5
 
8090
 
 
8091
 
 
8092
fi
 
8093
 
 
8094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8095
fi
 
8096
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
 
8097
$as_echo "$ac_cv_type_ssize_t" >&6; }
 
8098
if test "x$ac_cv_type_ssize_t" = x""yes; then
 
8099
  :
 
8100
else
 
8101
 
 
8102
cat >>confdefs.h <<_ACEOF
 
8103
#define ssize_t int
 
8104
_ACEOF
 
8105
 
 
8106
fi
 
8107
 
 
8108
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
8109
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
 
8110
if test "${ac_cv_type_uid_t+set}" = set; then
 
8111
  $as_echo_n "(cached) " >&6
 
8112
else
 
8113
  cat >conftest.$ac_ext <<_ACEOF
 
8114
/* confdefs.h.  */
 
8115
_ACEOF
 
8116
cat confdefs.h >>conftest.$ac_ext
 
8117
cat >>conftest.$ac_ext <<_ACEOF
 
8118
/* end confdefs.h.  */
 
8119
#include <sys/types.h>
 
8120
 
 
8121
_ACEOF
 
8122
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8123
  $EGREP "uid_t" >/dev/null 2>&1; then
 
8124
  ac_cv_type_uid_t=yes
 
8125
else
 
8126
  ac_cv_type_uid_t=no
 
8127
fi
 
8128
rm -f conftest*
 
8129
 
 
8130
fi
 
8131
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
8132
$as_echo "$ac_cv_type_uid_t" >&6; }
 
8133
if test $ac_cv_type_uid_t = no; then
 
8134
 
 
8135
cat >>confdefs.h <<\_ACEOF
 
8136
#define uid_t int
 
8137
_ACEOF
 
8138
 
 
8139
 
 
8140
cat >>confdefs.h <<\_ACEOF
 
8141
#define gid_t int
 
8142
_ACEOF
 
8143
 
 
8144
fi
 
8145
 
 
8146
 
 
8147
 
 
8148
# AC_HEADER_STDC
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
 
 
8155
 
 
8156
 
 
8157
 
 
8158
 
 
8159
 
 
8160
 
 
8161
 
 
8162
 
 
8163
 
 
8164
 
 
8165
 
 
8166
 
 
8167
 
 
8168
 
 
8169
 
 
8170
 
 
8171
 
 
8172
 
 
8173
 
 
8174
 
 
8175
 
 
8176
 
 
8177
 
 
8178
 
 
8179
 
 
8180
 
 
8181
 
 
8182
 
 
8183
 
 
8184
 
 
8185
for ac_header in stdarg.h stddef.h stddef.h stdlib.h stdint.h malloc.h \
 
8186
        fcntl.h search.h getopt.h pthread.h values.h float.h limits.h termios.h \
 
8187
        errno.h time.h unistd.h fenv.h string.h strings.h inttypes.h setjmp.h \
 
8188
        sys/time.h sys/times.h sys/types.h sys/select.h fpu_control.h \
 
8189
        sys/fpu.h sys/socket.h sys/stat.h sys/mman.h \
 
8190
        sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h
 
8191
do
 
8192
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8193
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8194
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8195
$as_echo_n "checking for $ac_header... " >&6; }
 
8196
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8197
  $as_echo_n "(cached) " >&6
 
8198
fi
 
8199
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
8200
                 $as_echo "$as_val"'`
 
8201
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
8202
$as_echo "$ac_res" >&6; }
 
8203
else
 
8204
  # Is the header compilable?
 
8205
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8206
$as_echo_n "checking $ac_header usability... " >&6; }
 
8207
cat >conftest.$ac_ext <<_ACEOF
 
8208
/* confdefs.h.  */
 
8209
_ACEOF
 
8210
cat confdefs.h >>conftest.$ac_ext
 
8211
cat >>conftest.$ac_ext <<_ACEOF
 
8212
/* end confdefs.h.  */
 
8213
$ac_includes_default
 
8214
#include <$ac_header>
 
8215
_ACEOF
 
8216
rm -f conftest.$ac_objext
 
8217
if { (ac_try="$ac_compile"
 
8218
case "(($ac_try" in
 
8219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8220
  *) ac_try_echo=$ac_try;;
 
8221
esac
 
8222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8223
$as_echo "$ac_try_echo") >&5
 
8224
  (eval "$ac_compile") 2>conftest.er1
 
8225
  ac_status=$?
 
8226
  grep -v '^ *+' conftest.er1 >conftest.err
 
8227
  rm -f conftest.er1
 
8228
  cat conftest.err >&5
 
8229
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8230
  (exit $ac_status); } && {
 
8231
         test -z "$ac_c_werror_flag" ||
 
8232
         test ! -s conftest.err
 
8233
       } && test -s conftest.$ac_objext; then
 
8234
  ac_header_compiler=yes
 
8235
else
 
8236
  $as_echo "$as_me: failed program was:" >&5
 
8237
sed 's/^/| /' conftest.$ac_ext >&5
 
8238
 
 
8239
        ac_header_compiler=no
 
8240
fi
 
8241
 
 
8242
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8243
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8244
$as_echo "$ac_header_compiler" >&6; }
 
8245
 
 
8246
# Is the header present?
 
8247
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8248
$as_echo_n "checking $ac_header presence... " >&6; }
 
8249
cat >conftest.$ac_ext <<_ACEOF
 
8250
/* confdefs.h.  */
 
8251
_ACEOF
 
8252
cat confdefs.h >>conftest.$ac_ext
 
8253
cat >>conftest.$ac_ext <<_ACEOF
 
8254
/* end confdefs.h.  */
 
8255
#include <$ac_header>
 
8256
_ACEOF
 
8257
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8258
case "(($ac_try" in
 
8259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8260
  *) ac_try_echo=$ac_try;;
 
8261
esac
 
8262
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8263
$as_echo "$ac_try_echo") >&5
 
8264
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8265
  ac_status=$?
 
8266
  grep -v '^ *+' conftest.er1 >conftest.err
 
8267
  rm -f conftest.er1
 
8268
  cat conftest.err >&5
 
8269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8270
  (exit $ac_status); } >/dev/null && {
 
8271
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
8272
         test ! -s conftest.err
 
8273
       }; then
 
8274
  ac_header_preproc=yes
 
8275
else
 
8276
  $as_echo "$as_me: failed program was:" >&5
 
8277
sed 's/^/| /' conftest.$ac_ext >&5
 
8278
 
 
8279
  ac_header_preproc=no
 
8280
fi
 
8281
 
 
8282
rm -f conftest.err conftest.$ac_ext
 
8283
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8284
$as_echo "$ac_header_preproc" >&6; }
 
8285
 
 
8286
# So?  What about this header?
 
8287
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8288
  yes:no: )
 
8289
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8290
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8291
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8292
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8293
    ac_header_preproc=yes
 
8294
    ;;
 
8295
  no:yes:* )
 
8296
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8297
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8298
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8299
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8300
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8301
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8302
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8303
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8304
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8305
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8306
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8307
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8308
    ( cat <<\_ASBOX
 
8309
## --------------------------------------- ##
 
8310
## Report this to http://www.graphviz.org/ ##
 
8311
## --------------------------------------- ##
 
8312
_ASBOX
 
8313
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
8314
    ;;
 
8315
esac
 
8316
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8317
$as_echo_n "checking for $ac_header... " >&6; }
 
8318
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8319
  $as_echo_n "(cached) " >&6
 
8320
else
 
8321
  eval "$as_ac_Header=\$ac_header_preproc"
 
8322
fi
 
8323
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
8324
                 $as_echo "$as_val"'`
 
8325
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
8326
$as_echo "$ac_res" >&6; }
 
8327
 
 
8328
fi
 
8329
as_val=`eval 'as_val=${'$as_ac_Header'}
 
8330
                 $as_echo "$as_val"'`
 
8331
   if test "x$as_val" = x""yes; then
 
8332
  cat >>confdefs.h <<_ACEOF
 
8333
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8334
_ACEOF
 
8335
 
 
8336
fi
 
8337
 
 
8338
done
 
8339
 
 
8340
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
8341
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
8342
if test "${ac_cv_header_time+set}" = set; then
 
8343
  $as_echo_n "(cached) " >&6
 
8344
else
 
8345
  cat >conftest.$ac_ext <<_ACEOF
 
8346
/* confdefs.h.  */
 
8347
_ACEOF
 
8348
cat confdefs.h >>conftest.$ac_ext
 
8349
cat >>conftest.$ac_ext <<_ACEOF
 
8350
/* end confdefs.h.  */
 
8351
#include <sys/types.h>
 
8352
#include <sys/time.h>
 
8353
#include <time.h>
 
8354
 
 
8355
int
 
8356
main ()
 
8357
{
 
8358
if ((struct tm *) 0)
 
8359
return 0;
 
8360
  ;
 
8361
  return 0;
 
8362
}
 
8363
_ACEOF
 
8364
rm -f conftest.$ac_objext
 
8365
if { (ac_try="$ac_compile"
 
8366
case "(($ac_try" in
 
8367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8368
  *) ac_try_echo=$ac_try;;
 
8369
esac
 
8370
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8371
$as_echo "$ac_try_echo") >&5
 
8372
  (eval "$ac_compile") 2>conftest.er1
 
8373
  ac_status=$?
 
8374
  grep -v '^ *+' conftest.er1 >conftest.err
 
8375
  rm -f conftest.er1
 
8376
  cat conftest.err >&5
 
8377
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8378
  (exit $ac_status); } && {
 
8379
         test -z "$ac_c_werror_flag" ||
 
8380
         test ! -s conftest.err
 
8381
       } && test -s conftest.$ac_objext; then
 
8382
  ac_cv_header_time=yes
 
8383
else
 
8384
  $as_echo "$as_me: failed program was:" >&5
 
8385
sed 's/^/| /' conftest.$ac_ext >&5
 
8386
 
 
8387
        ac_cv_header_time=no
 
8388
fi
 
8389
 
 
8390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8391
fi
 
8392
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
8393
$as_echo "$ac_cv_header_time" >&6; }
 
8394
if test $ac_cv_header_time = yes; then
 
8395
 
 
8396
cat >>confdefs.h <<\_ACEOF
 
8397
#define TIME_WITH_SYS_TIME 1
 
8398
_ACEOF
 
8399
 
 
8400
fi
 
8401
 
 
8402
 
 
8403
 
 
8404
 
 
8405
 
 
8406
 
 
8407
ac_header_dirent=no
 
8408
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
8409
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
8410
{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
8411
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
8412
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8413
  $as_echo_n "(cached) " >&6
 
8414
else
 
8415
  cat >conftest.$ac_ext <<_ACEOF
 
8416
/* confdefs.h.  */
 
8417
_ACEOF
 
8418
cat confdefs.h >>conftest.$ac_ext
 
8419
cat >>conftest.$ac_ext <<_ACEOF
 
8420
/* end confdefs.h.  */
 
8421
#include <sys/types.h>
 
8422
#include <$ac_hdr>
 
8423
 
 
8424
int
 
8425
main ()
 
8426
{
 
8427
if ((DIR *) 0)
 
8428
return 0;
 
8429
  ;
 
8430
  return 0;
 
8431
}
 
8432
_ACEOF
 
8433
rm -f conftest.$ac_objext
 
8434
if { (ac_try="$ac_compile"
 
8435
case "(($ac_try" in
 
8436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8437
  *) ac_try_echo=$ac_try;;
 
8438
esac
 
8439
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8440
$as_echo "$ac_try_echo") >&5
 
8441
  (eval "$ac_compile") 2>conftest.er1
 
8442
  ac_status=$?
 
8443
  grep -v '^ *+' conftest.er1 >conftest.err
 
8444
  rm -f conftest.er1
 
8445
  cat conftest.err >&5
 
8446
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8447
  (exit $ac_status); } && {
 
8448
         test -z "$ac_c_werror_flag" ||
 
8449
         test ! -s conftest.err
 
8450
       } && test -s conftest.$ac_objext; then
 
8451
  eval "$as_ac_Header=yes"
 
8452
else
 
8453
  $as_echo "$as_me: failed program was:" >&5
 
8454
sed 's/^/| /' conftest.$ac_ext >&5
 
8455
 
 
8456
        eval "$as_ac_Header=no"
 
8457
fi
 
8458
 
 
8459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8460
fi
 
8461
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
8462
                 $as_echo "$as_val"'`
 
8463
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
8464
$as_echo "$ac_res" >&6; }
 
8465
as_val=`eval 'as_val=${'$as_ac_Header'}
 
8466
                 $as_echo "$as_val"'`
 
8467
   if test "x$as_val" = x""yes; then
 
8468
  cat >>confdefs.h <<_ACEOF
 
8469
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
8470
_ACEOF
 
8471
 
 
8472
ac_header_dirent=$ac_hdr; break
 
8473
fi
 
8474
 
 
8475
done
 
8476
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
8477
if test $ac_header_dirent = dirent.h; then
 
8478
  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
8479
$as_echo_n "checking for library containing opendir... " >&6; }
 
8480
if test "${ac_cv_search_opendir+set}" = set; then
 
8481
  $as_echo_n "(cached) " >&6
 
8482
else
 
8483
  ac_func_search_save_LIBS=$LIBS
 
8484
cat >conftest.$ac_ext <<_ACEOF
 
8485
/* confdefs.h.  */
 
8486
_ACEOF
 
8487
cat confdefs.h >>conftest.$ac_ext
 
8488
cat >>conftest.$ac_ext <<_ACEOF
 
8489
/* end confdefs.h.  */
 
8490
 
 
8491
/* Override any GCC internal prototype to avoid an error.
 
8492
   Use char because int might match the return type of a GCC
 
8493
   builtin and then its argument prototype would still apply.  */
 
8494
#ifdef __cplusplus
 
8495
extern "C"
 
8496
#endif
 
8497
char opendir ();
 
8498
int
 
8499
main ()
 
8500
{
 
8501
return opendir ();
 
8502
  ;
 
8503
  return 0;
 
8504
}
 
8505
_ACEOF
 
8506
for ac_lib in '' dir; do
 
8507
  if test -z "$ac_lib"; then
 
8508
    ac_res="none required"
 
8509
  else
 
8510
    ac_res=-l$ac_lib
 
8511
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8512
  fi
 
8513
  rm -f conftest.$ac_objext conftest$ac_exeext
 
8514
if { (ac_try="$ac_link"
 
8515
case "(($ac_try" in
 
8516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8517
  *) ac_try_echo=$ac_try;;
 
8518
esac
 
8519
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8520
$as_echo "$ac_try_echo") >&5
 
8521
  (eval "$ac_link") 2>conftest.er1
 
8522
  ac_status=$?
 
8523
  grep -v '^ *+' conftest.er1 >conftest.err
 
8524
  rm -f conftest.er1
 
8525
  cat conftest.err >&5
 
8526
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8527
  (exit $ac_status); } && {
 
8528
         test -z "$ac_c_werror_flag" ||
 
8529
         test ! -s conftest.err
 
8530
       } && test -s conftest$ac_exeext && {
 
8531
         test "$cross_compiling" = yes ||
 
8532
         $as_test_x conftest$ac_exeext
 
8533
       }; then
 
8534
  ac_cv_search_opendir=$ac_res
 
8535
else
 
8536
  $as_echo "$as_me: failed program was:" >&5
 
8537
sed 's/^/| /' conftest.$ac_ext >&5
 
8538
 
 
8539
 
 
8540
fi
 
8541
 
 
8542
rm -rf conftest.dSYM
 
8543
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8544
      conftest$ac_exeext
 
8545
  if test "${ac_cv_search_opendir+set}" = set; then
 
8546
  break
 
8547
fi
 
8548
done
 
8549
if test "${ac_cv_search_opendir+set}" = set; then
 
8550
  :
 
8551
else
 
8552
  ac_cv_search_opendir=no
 
8553
fi
 
8554
rm conftest.$ac_ext
 
8555
LIBS=$ac_func_search_save_LIBS
 
8556
fi
 
8557
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
8558
$as_echo "$ac_cv_search_opendir" >&6; }
 
8559
ac_res=$ac_cv_search_opendir
 
8560
if test "$ac_res" != no; then
 
8561
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8562
 
 
8563
fi
 
8564
 
 
8565
else
 
8566
  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
8567
$as_echo_n "checking for library containing opendir... " >&6; }
 
8568
if test "${ac_cv_search_opendir+set}" = set; then
 
8569
  $as_echo_n "(cached) " >&6
 
8570
else
 
8571
  ac_func_search_save_LIBS=$LIBS
 
8572
cat >conftest.$ac_ext <<_ACEOF
 
8573
/* confdefs.h.  */
 
8574
_ACEOF
 
8575
cat confdefs.h >>conftest.$ac_ext
 
8576
cat >>conftest.$ac_ext <<_ACEOF
 
8577
/* end confdefs.h.  */
 
8578
 
 
8579
/* Override any GCC internal prototype to avoid an error.
 
8580
   Use char because int might match the return type of a GCC
 
8581
   builtin and then its argument prototype would still apply.  */
 
8582
#ifdef __cplusplus
 
8583
extern "C"
 
8584
#endif
 
8585
char opendir ();
 
8586
int
 
8587
main ()
 
8588
{
 
8589
return opendir ();
 
8590
  ;
 
8591
  return 0;
 
8592
}
 
8593
_ACEOF
 
8594
for ac_lib in '' x; do
 
8595
  if test -z "$ac_lib"; then
 
8596
    ac_res="none required"
 
8597
  else
 
8598
    ac_res=-l$ac_lib
 
8599
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8600
  fi
 
8601
  rm -f conftest.$ac_objext conftest$ac_exeext
 
8602
if { (ac_try="$ac_link"
 
8603
case "(($ac_try" in
 
8604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8605
  *) ac_try_echo=$ac_try;;
 
8606
esac
 
8607
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8608
$as_echo "$ac_try_echo") >&5
 
8609
  (eval "$ac_link") 2>conftest.er1
 
8610
  ac_status=$?
 
8611
  grep -v '^ *+' conftest.er1 >conftest.err
 
8612
  rm -f conftest.er1
 
8613
  cat conftest.err >&5
 
8614
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8615
  (exit $ac_status); } && {
 
8616
         test -z "$ac_c_werror_flag" ||
 
8617
         test ! -s conftest.err
 
8618
       } && test -s conftest$ac_exeext && {
 
8619
         test "$cross_compiling" = yes ||
 
8620
         $as_test_x conftest$ac_exeext
 
8621
       }; then
 
8622
  ac_cv_search_opendir=$ac_res
 
8623
else
 
8624
  $as_echo "$as_me: failed program was:" >&5
 
8625
sed 's/^/| /' conftest.$ac_ext >&5
 
8626
 
 
8627
 
 
8628
fi
 
8629
 
 
8630
rm -rf conftest.dSYM
 
8631
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8632
      conftest$ac_exeext
 
8633
  if test "${ac_cv_search_opendir+set}" = set; then
 
8634
  break
 
8635
fi
 
8636
done
 
8637
if test "${ac_cv_search_opendir+set}" = set; then
 
8638
  :
 
8639
else
 
8640
  ac_cv_search_opendir=no
 
8641
fi
 
8642
rm conftest.$ac_ext
 
8643
LIBS=$ac_func_search_save_LIBS
 
8644
fi
 
8645
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
8646
$as_echo "$ac_cv_search_opendir" >&6; }
 
8647
ac_res=$ac_cv_search_opendir
 
8648
if test "$ac_res" != no; then
 
8649
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8650
 
 
8651
fi
 
8652
 
 
8653
fi
 
8654
 
 
8655
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
8656
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
8657
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
8658
  $as_echo_n "(cached) " >&6
 
8659
else
 
8660
  cat >conftest.$ac_ext <<_ACEOF
 
8661
/* confdefs.h.  */
 
8662
_ACEOF
 
8663
cat confdefs.h >>conftest.$ac_ext
 
8664
cat >>conftest.$ac_ext <<_ACEOF
 
8665
/* end confdefs.h.  */
 
8666
 
 
8667
#include <stdbool.h>
 
8668
#ifndef bool
 
8669
 "error: bool is not defined"
 
8670
#endif
 
8671
#ifndef false
 
8672
 "error: false is not defined"
 
8673
#endif
 
8674
#if false
 
8675
 "error: false is not 0"
 
8676
#endif
 
8677
#ifndef true
 
8678
 "error: true is not defined"
 
8679
#endif
 
8680
#if true != 1
 
8681
 "error: true is not 1"
 
8682
#endif
 
8683
#ifndef __bool_true_false_are_defined
 
8684
 "error: __bool_true_false_are_defined is not defined"
 
8685
#endif
 
8686
 
 
8687
        struct s { _Bool s: 1; _Bool t; } s;
 
8688
 
 
8689
        char a[true == 1 ? 1 : -1];
 
8690
        char b[false == 0 ? 1 : -1];
 
8691
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
8692
        char d[(bool) 0.5 == true ? 1 : -1];
 
8693
        bool e = &s;
 
8694
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
8695
        char g[true];
 
8696
        char h[sizeof (_Bool)];
 
8697
        char i[sizeof s.t];
 
8698
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
8699
        /* The following fails for
 
8700
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
8701
        _Bool n[m];
 
8702
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
8703
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
8704
#       if defined __xlc__ || defined __GNUC__
 
8705
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
8706
            reported by James Lemley on 2005-10-05; see
 
8707
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
8708
            This test is not quite right, since xlc is allowed to
 
8709
            reject this program, as the initializer for xlcbug is
 
8710
            not one of the forms that C requires support for.
 
8711
            However, doing the test right would require a runtime
 
8712
            test, and that would make cross-compilation harder.
 
8713
            Let us hope that IBM fixes the xlc bug, and also adds
 
8714
            support for this kind of constant expression.  In the
 
8715
            meantime, this test will reject xlc, which is OK, since
 
8716
            our stdbool.h substitute should suffice.  We also test
 
8717
            this with GCC, where it should work, to detect more
 
8718
            quickly whether someone messes up the test in the
 
8719
            future.  */
 
8720
         char digs[] = "0123456789";
 
8721
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
8722
#       endif
 
8723
        /* Catch a bug in an HP-UX C compiler.  See
 
8724
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
8725
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
8726
         */
 
8727
        _Bool q = true;
 
8728
        _Bool *pq = &q;
 
8729
 
 
8730
int
 
8731
main ()
 
8732
{
 
8733
 
 
8734
        *pq |= q;
 
8735
        *pq |= ! q;
 
8736
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
8737
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
8738
                + !m + !n + !o + !p + !q + !pq);
 
8739
 
 
8740
  ;
 
8741
  return 0;
 
8742
}
 
8743
_ACEOF
 
8744
rm -f conftest.$ac_objext
 
8745
if { (ac_try="$ac_compile"
 
8746
case "(($ac_try" in
 
8747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8748
  *) ac_try_echo=$ac_try;;
 
8749
esac
 
8750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8751
$as_echo "$ac_try_echo") >&5
 
8752
  (eval "$ac_compile") 2>conftest.er1
 
8753
  ac_status=$?
 
8754
  grep -v '^ *+' conftest.er1 >conftest.err
 
8755
  rm -f conftest.er1
 
8756
  cat conftest.err >&5
 
8757
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8758
  (exit $ac_status); } && {
 
8759
         test -z "$ac_c_werror_flag" ||
 
8760
         test ! -s conftest.err
 
8761
       } && test -s conftest.$ac_objext; then
 
8762
  ac_cv_header_stdbool_h=yes
 
8763
else
 
8764
  $as_echo "$as_me: failed program was:" >&5
 
8765
sed 's/^/| /' conftest.$ac_ext >&5
 
8766
 
 
8767
        ac_cv_header_stdbool_h=no
 
8768
fi
 
8769
 
 
8770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8771
fi
 
8772
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
8773
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
8774
{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
 
8775
$as_echo_n "checking for _Bool... " >&6; }
 
8776
if test "${ac_cv_type__Bool+set}" = set; then
 
8777
  $as_echo_n "(cached) " >&6
 
8778
else
 
8779
  ac_cv_type__Bool=no
 
8780
cat >conftest.$ac_ext <<_ACEOF
 
8781
/* confdefs.h.  */
 
8782
_ACEOF
 
8783
cat confdefs.h >>conftest.$ac_ext
 
8784
cat >>conftest.$ac_ext <<_ACEOF
 
8785
/* end confdefs.h.  */
 
8786
$ac_includes_default
 
8787
int
 
8788
main ()
 
8789
{
 
8790
if (sizeof (_Bool))
 
8791
       return 0;
 
8792
  ;
 
8793
  return 0;
 
8794
}
 
8795
_ACEOF
 
8796
rm -f conftest.$ac_objext
 
8797
if { (ac_try="$ac_compile"
 
8798
case "(($ac_try" in
 
8799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8800
  *) ac_try_echo=$ac_try;;
 
8801
esac
 
8802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8803
$as_echo "$ac_try_echo") >&5
 
8804
  (eval "$ac_compile") 2>conftest.er1
 
8805
  ac_status=$?
 
8806
  grep -v '^ *+' conftest.er1 >conftest.err
 
8807
  rm -f conftest.er1
 
8808
  cat conftest.err >&5
 
8809
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8810
  (exit $ac_status); } && {
 
8811
         test -z "$ac_c_werror_flag" ||
 
8812
         test ! -s conftest.err
 
8813
       } && test -s conftest.$ac_objext; then
 
8814
  cat >conftest.$ac_ext <<_ACEOF
 
8815
/* confdefs.h.  */
 
8816
_ACEOF
 
8817
cat confdefs.h >>conftest.$ac_ext
 
8818
cat >>conftest.$ac_ext <<_ACEOF
 
8819
/* end confdefs.h.  */
 
8820
$ac_includes_default
 
8821
int
 
8822
main ()
 
8823
{
 
8824
if (sizeof ((_Bool)))
 
8825
          return 0;
 
8826
  ;
 
8827
  return 0;
 
8828
}
 
8829
_ACEOF
 
8830
rm -f conftest.$ac_objext
 
8831
if { (ac_try="$ac_compile"
 
8832
case "(($ac_try" in
 
8833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8834
  *) ac_try_echo=$ac_try;;
 
8835
esac
 
8836
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8837
$as_echo "$ac_try_echo") >&5
 
8838
  (eval "$ac_compile") 2>conftest.er1
 
8839
  ac_status=$?
 
8840
  grep -v '^ *+' conftest.er1 >conftest.err
 
8841
  rm -f conftest.er1
 
8842
  cat conftest.err >&5
 
8843
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8844
  (exit $ac_status); } && {
 
8845
         test -z "$ac_c_werror_flag" ||
 
8846
         test ! -s conftest.err
 
8847
       } && test -s conftest.$ac_objext; then
 
8848
  :
 
8849
else
 
8850
  $as_echo "$as_me: failed program was:" >&5
 
8851
sed 's/^/| /' conftest.$ac_ext >&5
 
8852
 
 
8853
        ac_cv_type__Bool=yes
 
8854
fi
 
8855
 
 
8856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8857
else
 
8858
  $as_echo "$as_me: failed program was:" >&5
 
8859
sed 's/^/| /' conftest.$ac_ext >&5
 
8860
 
 
8861
 
 
8862
fi
 
8863
 
 
8864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8865
fi
 
8866
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
8867
$as_echo "$ac_cv_type__Bool" >&6; }
 
8868
if test "x$ac_cv_type__Bool" = x""yes; then
 
8869
 
 
8870
cat >>confdefs.h <<_ACEOF
 
8871
#define HAVE__BOOL 1
 
8872
_ACEOF
 
8873
 
 
8874
 
 
8875
fi
 
8876
 
 
8877
if test $ac_cv_header_stdbool_h = yes; then
 
8878
 
 
8879
cat >>confdefs.h <<\_ACEOF
 
8880
#define HAVE_STDBOOL_H 1
 
8881
_ACEOF
 
8882
 
 
8883
fi
 
8884
 
 
8885
 
 
8886
# Internationalization macros
 
8887
# AM_GNU_GETTEXT
 
8888
 
 
8889
# Check for socklen_t
 
8890
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
 
8891
$as_echo_n "checking for socklen_t... " >&6; }
 
8892
if test "${ac_cv_type_socklen_t+set}" = set; then
 
8893
  $as_echo_n "(cached) " >&6
 
8894
else
 
8895
  cat >conftest.$ac_ext <<_ACEOF
 
8896
/* confdefs.h.  */
 
8897
_ACEOF
 
8898
cat confdefs.h >>conftest.$ac_ext
 
8899
cat >>conftest.$ac_ext <<_ACEOF
 
8900
/* end confdefs.h.  */
 
8901
 
 
8902
    #include <sys/types.h>
 
8903
    #include <sys/socket.h>
 
8904
    #if STDC_HEADERS
 
8905
    #include <stdlib.h>
 
8906
    #include <stddef.h>
 
8907
    #endif
 
8908
 
 
8909
_ACEOF
 
8910
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8911
  $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
8912
  ac_cv_type_socklen_t=yes
 
8913
else
 
8914
  ac_cv_type_socklen_t=no
 
8915
fi
 
8916
rm -f conftest*
 
8917
 
 
8918
fi
 
8919
 
 
8920
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
 
8921
$as_echo "$ac_cv_type_socklen_t" >&6; }
 
8922
if test $ac_cv_type_socklen_t = no; then
 
8923
 
 
8924
cat >>confdefs.h <<\_ACEOF
 
8925
#define socklen_t unsigned
 
8926
_ACEOF
 
8927
 
 
8928
fi
 
8929
 
 
8930
# -----------------------------------
 
8931
# Test if compiler supports bool
 
8932
{ $as_echo "$as_me:$LINENO: checking for bool" >&5
 
8933
$as_echo_n "checking for bool... " >&6; }
 
8934
cat >conftest.$ac_ext <<_ACEOF
 
8935
/* confdefs.h.  */
 
8936
_ACEOF
 
8937
cat confdefs.h >>conftest.$ac_ext
 
8938
cat >>conftest.$ac_ext <<_ACEOF
 
8939
/* end confdefs.h.  */
 
8940
 
 
8941
    #ifdef HAVE_STDBOOL_H>
 
8942
    #include <stdbool.h>
 
8943
    #endif
 
8944
 
 
8945
int
 
8946
main ()
 
8947
{
 
8948
 
 
8949
    bool foo = true, bar = false;
 
8950
 
 
8951
  ;
 
8952
  return 0;
 
8953
}
 
8954
_ACEOF
 
8955
rm -f conftest.$ac_objext
 
8956
if { (ac_try="$ac_compile"
 
8957
case "(($ac_try" in
 
8958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8959
  *) ac_try_echo=$ac_try;;
 
8960
esac
 
8961
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8962
$as_echo "$ac_try_echo") >&5
 
8963
  (eval "$ac_compile") 2>conftest.er1
 
8964
  ac_status=$?
 
8965
  grep -v '^ *+' conftest.er1 >conftest.err
 
8966
  rm -f conftest.er1
 
8967
  cat conftest.err >&5
 
8968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8969
  (exit $ac_status); } && {
 
8970
         test -z "$ac_c_werror_flag" ||
 
8971
         test ! -s conftest.err
 
8972
       } && test -s conftest.$ac_objext; then
 
8973
 
 
8974
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
8975
$as_echo "yes" >&6; }
 
8976
 
 
8977
cat >>confdefs.h <<\_ACEOF
 
8978
#define HAVE_BOOL 1
 
8979
_ACEOF
 
8980
 
 
8981
 
 
8982
else
 
8983
  $as_echo "$as_me: failed program was:" >&5
 
8984
sed 's/^/| /' conftest.$ac_ext >&5
 
8985
 
 
8986
 
 
8987
{ $as_echo "$as_me:$LINENO: result: no" >&5
 
8988
$as_echo "no" >&6; }
 
8989
fi
 
8990
 
 
8991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8992
 
 
8993
# -----------------------------------
 
8994
# Test for direct I/O
 
8995
{ $as_echo "$as_me:$LINENO: checking for struct dioattr" >&5
 
8996
$as_echo_n "checking for struct dioattr... " >&6; }
 
8997
cat >conftest.$ac_ext <<_ACEOF
 
8998
/* confdefs.h.  */
 
8999
_ACEOF
 
9000
cat confdefs.h >>conftest.$ac_ext
 
9001
cat >>conftest.$ac_ext <<_ACEOF
 
9002
/* end confdefs.h.  */
 
9003
#include <sys/types.h>
 
9004
#include <fcntl.h>
 
9005
#include <stdio.h>
 
9006
int
 
9007
main ()
 
9008
{
 
9009
 
 
9010
struct dioattr dio;
 
9011
  ;
 
9012
  return 0;
 
9013
}
 
9014
_ACEOF
 
9015
rm -f conftest.$ac_objext
 
9016
if { (ac_try="$ac_compile"
 
9017
case "(($ac_try" in
 
9018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9019
  *) ac_try_echo=$ac_try;;
 
9020
esac
 
9021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9022
$as_echo "$ac_try_echo") >&5
 
9023
  (eval "$ac_compile") 2>conftest.er1
 
9024
  ac_status=$?
 
9025
  grep -v '^ *+' conftest.er1 >conftest.err
 
9026
  rm -f conftest.er1
 
9027
  cat conftest.err >&5
 
9028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9029
  (exit $ac_status); } && {
 
9030
         test -z "$ac_c_werror_flag" ||
 
9031
         test ! -s conftest.err
 
9032
       } && test -s conftest.$ac_objext; then
 
9033
 
 
9034
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
9035
$as_echo "yes" >&6; }
 
9036
 
 
9037
cat >>confdefs.h <<\_ACEOF
 
9038
#define HAVE_STRUCT_DIOATTR 1
 
9039
_ACEOF
 
9040
 
 
9041
else
 
9042
  $as_echo "$as_me: failed program was:" >&5
 
9043
sed 's/^/| /' conftest.$ac_ext >&5
 
9044
 
 
9045
 
 
9046
{ $as_echo "$as_me:$LINENO: result: no" >&5
 
9047
$as_echo "no" >&6; }
 
9048
fi
 
9049
 
 
9050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9051
 
 
9052
 
 
9053
save_LIBS=$LIBS
 
9054
{ $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
 
9055
$as_echo_n "checking for main in -lm... " >&6; }
 
9056
if test "${ac_cv_lib_m_main+set}" = set; then
 
9057
  $as_echo_n "(cached) " >&6
 
9058
else
 
9059
  ac_check_lib_save_LIBS=$LIBS
 
9060
LIBS="-lm  $LIBS"
 
9061
cat >conftest.$ac_ext <<_ACEOF
 
9062
/* confdefs.h.  */
 
9063
_ACEOF
 
9064
cat confdefs.h >>conftest.$ac_ext
 
9065
cat >>conftest.$ac_ext <<_ACEOF
 
9066
/* end confdefs.h.  */
 
9067
 
 
9068
 
 
9069
int
 
9070
main ()
 
9071
{
 
9072
return main ();
 
9073
  ;
 
9074
  return 0;
 
9075
}
 
9076
_ACEOF
 
9077
rm -f conftest.$ac_objext conftest$ac_exeext
 
9078
if { (ac_try="$ac_link"
 
9079
case "(($ac_try" in
 
9080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9081
  *) ac_try_echo=$ac_try;;
 
9082
esac
 
9083
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9084
$as_echo "$ac_try_echo") >&5
 
9085
  (eval "$ac_link") 2>conftest.er1
 
9086
  ac_status=$?
 
9087
  grep -v '^ *+' conftest.er1 >conftest.err
 
9088
  rm -f conftest.er1
 
9089
  cat conftest.err >&5
 
9090
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9091
  (exit $ac_status); } && {
 
9092
         test -z "$ac_c_werror_flag" ||
 
9093
         test ! -s conftest.err
 
9094
       } && test -s conftest$ac_exeext && {
 
9095
         test "$cross_compiling" = yes ||
 
9096
         $as_test_x conftest$ac_exeext
 
9097
       }; then
 
9098
  ac_cv_lib_m_main=yes
 
9099
else
 
9100
  $as_echo "$as_me: failed program was:" >&5
 
9101
sed 's/^/| /' conftest.$ac_ext >&5
 
9102
 
 
9103
        ac_cv_lib_m_main=no
 
9104
fi
 
9105
 
 
9106
rm -rf conftest.dSYM
 
9107
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9108
      conftest$ac_exeext conftest.$ac_ext
 
9109
LIBS=$ac_check_lib_save_LIBS
 
9110
fi
 
9111
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
9112
$as_echo "$ac_cv_lib_m_main" >&6; }
 
9113
if test "x$ac_cv_lib_m_main" = x""yes; then
 
9114
  MATH_LIBS="-lm"
 
9115
fi
 
9116
 
 
9117
 
 
9118
 
 
9119
# Check for functions that might need -lm
 
9120
LIBS="$LIBS $MATH_LIBS"
 
9121
 
 
9122
 
 
9123
for ac_func in feenableexcept fesetenv
 
9124
do
 
9125
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9126
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9127
$as_echo_n "checking for $ac_func... " >&6; }
 
9128
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
9129
  $as_echo_n "(cached) " >&6
 
9130
else
 
9131
  cat >conftest.$ac_ext <<_ACEOF
 
9132
/* confdefs.h.  */
 
9133
_ACEOF
 
9134
cat confdefs.h >>conftest.$ac_ext
 
9135
cat >>conftest.$ac_ext <<_ACEOF
 
9136
/* end confdefs.h.  */
 
9137
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9138
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9139
#define $ac_func innocuous_$ac_func
 
9140
 
 
9141
/* System header to define __stub macros and hopefully few prototypes,
 
9142
    which can conflict with char $ac_func (); below.
 
9143
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9144
    <limits.h> exists even on freestanding compilers.  */
 
9145
 
 
9146
#ifdef __STDC__
 
9147
# include <limits.h>
 
9148
#else
 
9149
# include <assert.h>
 
9150
#endif
 
9151
 
 
9152
#undef $ac_func
 
9153
 
 
9154
/* Override any GCC internal prototype to avoid an error.
 
9155
   Use char because int might match the return type of a GCC
 
9156
   builtin and then its argument prototype would still apply.  */
 
9157
#ifdef __cplusplus
 
9158
extern "C"
 
9159
#endif
 
9160
char $ac_func ();
 
9161
/* The GNU C library defines this for functions which it implements
 
9162
    to always fail with ENOSYS.  Some functions are actually named
 
9163
    something starting with __ and the normal name is an alias.  */
 
9164
#if defined __stub_$ac_func || defined __stub___$ac_func
 
9165
choke me
 
9166
#endif
 
9167
 
 
9168
int
 
9169
main ()
 
9170
{
 
9171
return $ac_func ();
 
9172
  ;
 
9173
  return 0;
 
9174
}
 
9175
_ACEOF
 
9176
rm -f conftest.$ac_objext conftest$ac_exeext
 
9177
if { (ac_try="$ac_link"
 
9178
case "(($ac_try" in
 
9179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9180
  *) ac_try_echo=$ac_try;;
 
9181
esac
 
9182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9183
$as_echo "$ac_try_echo") >&5
 
9184
  (eval "$ac_link") 2>conftest.er1
 
9185
  ac_status=$?
 
9186
  grep -v '^ *+' conftest.er1 >conftest.err
 
9187
  rm -f conftest.er1
 
9188
  cat conftest.err >&5
 
9189
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9190
  (exit $ac_status); } && {
 
9191
         test -z "$ac_c_werror_flag" ||
 
9192
         test ! -s conftest.err
 
9193
       } && test -s conftest$ac_exeext && {
 
9194
         test "$cross_compiling" = yes ||
 
9195
         $as_test_x conftest$ac_exeext
 
9196
       }; then
 
9197
  eval "$as_ac_var=yes"
 
9198
else
 
9199
  $as_echo "$as_me: failed program was:" >&5
 
9200
sed 's/^/| /' conftest.$ac_ext >&5
 
9201
 
 
9202
        eval "$as_ac_var=no"
 
9203
fi
 
9204
 
 
9205
rm -rf conftest.dSYM
 
9206
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9207
      conftest$ac_exeext conftest.$ac_ext
 
9208
fi
 
9209
ac_res=`eval 'as_val=${'$as_ac_var'}
 
9210
                 $as_echo "$as_val"'`
 
9211
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9212
$as_echo "$ac_res" >&6; }
 
9213
as_val=`eval 'as_val=${'$as_ac_var'}
 
9214
                 $as_echo "$as_val"'`
 
9215
   if test "x$as_val" = x""yes; then
 
9216
  cat >>confdefs.h <<_ACEOF
 
9217
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9218
_ACEOF
 
9219
 
 
9220
fi
 
9221
done
 
9222
 
 
9223
 
 
9224
LIBS=$save_LIBS
 
9225
 
 
9226
 
 
9227
save_CPPFLAGS=$CPPFLAGS
 
9228
save_LDFLAGS=$LDFLAGS
 
9229
if test "${ac_cv_header_libgen_h+set}" = set; then
 
9230
  { $as_echo "$as_me:$LINENO: checking for libgen.h" >&5
 
9231
$as_echo_n "checking for libgen.h... " >&6; }
 
9232
if test "${ac_cv_header_libgen_h+set}" = set; then
 
9233
  $as_echo_n "(cached) " >&6
 
9234
fi
 
9235
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libgen_h" >&5
 
9236
$as_echo "$ac_cv_header_libgen_h" >&6; }
 
9237
else
 
9238
  # Is the header compilable?
 
9239
{ $as_echo "$as_me:$LINENO: checking libgen.h usability" >&5
 
9240
$as_echo_n "checking libgen.h usability... " >&6; }
 
9241
cat >conftest.$ac_ext <<_ACEOF
 
9242
/* confdefs.h.  */
 
9243
_ACEOF
 
9244
cat confdefs.h >>conftest.$ac_ext
 
9245
cat >>conftest.$ac_ext <<_ACEOF
 
9246
/* end confdefs.h.  */
 
9247
$ac_includes_default
 
9248
#include <libgen.h>
 
9249
_ACEOF
 
9250
rm -f conftest.$ac_objext
 
9251
if { (ac_try="$ac_compile"
 
9252
case "(($ac_try" in
 
9253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9254
  *) ac_try_echo=$ac_try;;
 
9255
esac
 
9256
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9257
$as_echo "$ac_try_echo") >&5
 
9258
  (eval "$ac_compile") 2>conftest.er1
 
9259
  ac_status=$?
 
9260
  grep -v '^ *+' conftest.er1 >conftest.err
 
9261
  rm -f conftest.er1
 
9262
  cat conftest.err >&5
 
9263
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9264
  (exit $ac_status); } && {
 
9265
         test -z "$ac_c_werror_flag" ||
 
9266
         test ! -s conftest.err
 
9267
       } && test -s conftest.$ac_objext; then
 
9268
  ac_header_compiler=yes
 
9269
else
 
9270
  $as_echo "$as_me: failed program was:" >&5
 
9271
sed 's/^/| /' conftest.$ac_ext >&5
 
9272
 
 
9273
        ac_header_compiler=no
 
9274
fi
 
9275
 
 
9276
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9277
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9278
$as_echo "$ac_header_compiler" >&6; }
 
9279
 
 
9280
# Is the header present?
 
9281
{ $as_echo "$as_me:$LINENO: checking libgen.h presence" >&5
 
9282
$as_echo_n "checking libgen.h presence... " >&6; }
 
9283
cat >conftest.$ac_ext <<_ACEOF
 
9284
/* confdefs.h.  */
 
9285
_ACEOF
 
9286
cat confdefs.h >>conftest.$ac_ext
 
9287
cat >>conftest.$ac_ext <<_ACEOF
 
9288
/* end confdefs.h.  */
 
9289
#include <libgen.h>
 
9290
_ACEOF
 
9291
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9292
case "(($ac_try" in
 
9293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9294
  *) ac_try_echo=$ac_try;;
 
9295
esac
 
9296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9297
$as_echo "$ac_try_echo") >&5
 
9298
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9299
  ac_status=$?
 
9300
  grep -v '^ *+' conftest.er1 >conftest.err
 
9301
  rm -f conftest.er1
 
9302
  cat conftest.err >&5
 
9303
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9304
  (exit $ac_status); } >/dev/null && {
 
9305
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
9306
         test ! -s conftest.err
 
9307
       }; then
 
9308
  ac_header_preproc=yes
 
9309
else
 
9310
  $as_echo "$as_me: failed program was:" >&5
 
9311
sed 's/^/| /' conftest.$ac_ext >&5
 
9312
 
 
9313
  ac_header_preproc=no
 
9314
fi
 
9315
 
 
9316
rm -f conftest.err conftest.$ac_ext
 
9317
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9318
$as_echo "$ac_header_preproc" >&6; }
 
9319
 
 
9320
# So?  What about this header?
 
9321
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9322
  yes:no: )
 
9323
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
9324
$as_echo "$as_me: WARNING: libgen.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9325
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h: proceeding with the compiler's result" >&5
 
9326
$as_echo "$as_me: WARNING: libgen.h: proceeding with the compiler's result" >&2;}
 
9327
    ac_header_preproc=yes
 
9328
    ;;
 
9329
  no:yes:* )
 
9330
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h: present but cannot be compiled" >&5
 
9331
$as_echo "$as_me: WARNING: libgen.h: present but cannot be compiled" >&2;}
 
9332
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h:     check for missing prerequisite headers?" >&5
 
9333
$as_echo "$as_me: WARNING: libgen.h:     check for missing prerequisite headers?" >&2;}
 
9334
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h: see the Autoconf documentation" >&5
 
9335
$as_echo "$as_me: WARNING: libgen.h: see the Autoconf documentation" >&2;}
 
9336
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h:     section \"Present But Cannot Be Compiled\"" >&5
 
9337
$as_echo "$as_me: WARNING: libgen.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9338
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h: proceeding with the preprocessor's result" >&5
 
9339
$as_echo "$as_me: WARNING: libgen.h: proceeding with the preprocessor's result" >&2;}
 
9340
    { $as_echo "$as_me:$LINENO: WARNING: libgen.h: in the future, the compiler will take precedence" >&5
 
9341
$as_echo "$as_me: WARNING: libgen.h: in the future, the compiler will take precedence" >&2;}
 
9342
    ( cat <<\_ASBOX
 
9343
## --------------------------------------- ##
 
9344
## Report this to http://www.graphviz.org/ ##
 
9345
## --------------------------------------- ##
 
9346
_ASBOX
 
9347
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
9348
    ;;
 
9349
esac
 
9350
{ $as_echo "$as_me:$LINENO: checking for libgen.h" >&5
 
9351
$as_echo_n "checking for libgen.h... " >&6; }
 
9352
if test "${ac_cv_header_libgen_h+set}" = set; then
 
9353
  $as_echo_n "(cached) " >&6
 
9354
else
 
9355
  ac_cv_header_libgen_h=$ac_header_preproc
 
9356
fi
 
9357
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libgen_h" >&5
 
9358
$as_echo "$ac_cv_header_libgen_h" >&6; }
 
9359
 
 
9360
fi
 
9361
if test "x$ac_cv_header_libgen_h" = x""yes; then
 
9362
  { $as_echo "$as_me:$LINENO: checking for basename in -lgen" >&5
 
9363
$as_echo_n "checking for basename in -lgen... " >&6; }
 
9364
if test "${ac_cv_lib_gen_basename+set}" = set; then
 
9365
  $as_echo_n "(cached) " >&6
 
9366
else
 
9367
  ac_check_lib_save_LIBS=$LIBS
 
9368
LIBS="-lgen  $LIBS"
 
9369
cat >conftest.$ac_ext <<_ACEOF
 
9370
/* confdefs.h.  */
 
9371
_ACEOF
 
9372
cat confdefs.h >>conftest.$ac_ext
 
9373
cat >>conftest.$ac_ext <<_ACEOF
 
9374
/* end confdefs.h.  */
 
9375
 
 
9376
/* Override any GCC internal prototype to avoid an error.
 
9377
   Use char because int might match the return type of a GCC
 
9378
   builtin and then its argument prototype would still apply.  */
 
9379
#ifdef __cplusplus
 
9380
extern "C"
 
9381
#endif
 
9382
char basename ();
 
9383
int
 
9384
main ()
 
9385
{
 
9386
return basename ();
 
9387
  ;
 
9388
  return 0;
 
9389
}
 
9390
_ACEOF
 
9391
rm -f conftest.$ac_objext conftest$ac_exeext
 
9392
if { (ac_try="$ac_link"
 
9393
case "(($ac_try" in
 
9394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9395
  *) ac_try_echo=$ac_try;;
 
9396
esac
 
9397
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9398
$as_echo "$ac_try_echo") >&5
 
9399
  (eval "$ac_link") 2>conftest.er1
 
9400
  ac_status=$?
 
9401
  grep -v '^ *+' conftest.er1 >conftest.err
 
9402
  rm -f conftest.er1
 
9403
  cat conftest.err >&5
 
9404
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9405
  (exit $ac_status); } && {
 
9406
         test -z "$ac_c_werror_flag" ||
 
9407
         test ! -s conftest.err
 
9408
       } && test -s conftest$ac_exeext && {
 
9409
         test "$cross_compiling" = yes ||
 
9410
         $as_test_x conftest$ac_exeext
 
9411
       }; then
 
9412
  ac_cv_lib_gen_basename=yes
 
9413
else
 
9414
  $as_echo "$as_me: failed program was:" >&5
 
9415
sed 's/^/| /' conftest.$ac_ext >&5
 
9416
 
 
9417
        ac_cv_lib_gen_basename=no
 
9418
fi
 
9419
 
 
9420
rm -rf conftest.dSYM
 
9421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9422
      conftest$ac_exeext conftest.$ac_ext
 
9423
LIBS=$ac_check_lib_save_LIBS
 
9424
fi
 
9425
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_basename" >&5
 
9426
$as_echo "$ac_cv_lib_gen_basename" >&6; }
 
9427
if test "x$ac_cv_lib_gen_basename" = x""yes; then
 
9428
  LIBGEN_LIBS="-lgen"
 
9429
 
 
9430
cat >>confdefs.h <<_ACEOF
 
9431
#define HAVE_LIBGEN 1
 
9432
_ACEOF
 
9433
 
 
9434
fi
 
9435
 
 
9436
else
 
9437
  { $as_echo "$as_me:$LINENO: WARNING: libgen.h header not available" >&5
 
9438
$as_echo "$as_me: WARNING: libgen.h header not available" >&2;}
 
9439
fi
 
9440
 
 
9441
 
 
9442
LDFLAGS=$save_LDFLAGS
 
9443
CPPFLAGS=$save_CPPFLAGS
 
9444
 
 
9445
 
 
9446
# -----------------------------------
 
9447
 
 
9448
# Checks for library functions
 
9449
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
9450
# for constant arguments.  Useless!
 
9451
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
9452
$as_echo_n "checking for working alloca.h... " >&6; }
 
9453
if test "${ac_cv_working_alloca_h+set}" = set; then
 
9454
  $as_echo_n "(cached) " >&6
 
9455
else
 
9456
  cat >conftest.$ac_ext <<_ACEOF
 
9457
/* confdefs.h.  */
 
9458
_ACEOF
 
9459
cat confdefs.h >>conftest.$ac_ext
 
9460
cat >>conftest.$ac_ext <<_ACEOF
 
9461
/* end confdefs.h.  */
 
9462
#include <alloca.h>
 
9463
int
 
9464
main ()
 
9465
{
 
9466
char *p = (char *) alloca (2 * sizeof (int));
 
9467
                          if (p) return 0;
 
9468
  ;
 
9469
  return 0;
 
9470
}
 
9471
_ACEOF
 
9472
rm -f conftest.$ac_objext conftest$ac_exeext
 
9473
if { (ac_try="$ac_link"
 
9474
case "(($ac_try" in
 
9475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9476
  *) ac_try_echo=$ac_try;;
 
9477
esac
 
9478
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9479
$as_echo "$ac_try_echo") >&5
 
9480
  (eval "$ac_link") 2>conftest.er1
 
9481
  ac_status=$?
 
9482
  grep -v '^ *+' conftest.er1 >conftest.err
 
9483
  rm -f conftest.er1
 
9484
  cat conftest.err >&5
 
9485
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9486
  (exit $ac_status); } && {
 
9487
         test -z "$ac_c_werror_flag" ||
 
9488
         test ! -s conftest.err
 
9489
       } && test -s conftest$ac_exeext && {
 
9490
         test "$cross_compiling" = yes ||
 
9491
         $as_test_x conftest$ac_exeext
 
9492
       }; then
 
9493
  ac_cv_working_alloca_h=yes
 
9494
else
 
9495
  $as_echo "$as_me: failed program was:" >&5
 
9496
sed 's/^/| /' conftest.$ac_ext >&5
 
9497
 
 
9498
        ac_cv_working_alloca_h=no
 
9499
fi
 
9500
 
 
9501
rm -rf conftest.dSYM
 
9502
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9503
      conftest$ac_exeext conftest.$ac_ext
 
9504
fi
 
9505
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
9506
$as_echo "$ac_cv_working_alloca_h" >&6; }
 
9507
if test $ac_cv_working_alloca_h = yes; then
 
9508
 
 
9509
cat >>confdefs.h <<\_ACEOF
 
9510
#define HAVE_ALLOCA_H 1
 
9511
_ACEOF
 
9512
 
 
9513
fi
 
9514
 
 
9515
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
 
9516
$as_echo_n "checking for alloca... " >&6; }
 
9517
if test "${ac_cv_func_alloca_works+set}" = set; then
 
9518
  $as_echo_n "(cached) " >&6
 
9519
else
 
9520
  cat >conftest.$ac_ext <<_ACEOF
 
9521
/* confdefs.h.  */
 
9522
_ACEOF
 
9523
cat confdefs.h >>conftest.$ac_ext
 
9524
cat >>conftest.$ac_ext <<_ACEOF
 
9525
/* end confdefs.h.  */
 
9526
#ifdef __GNUC__
 
9527
# define alloca __builtin_alloca
 
9528
#else
 
9529
# ifdef _MSC_VER
 
9530
#  include <malloc.h>
 
9531
#  define alloca _alloca
 
9532
# else
 
9533
#  ifdef HAVE_ALLOCA_H
 
9534
#   include <alloca.h>
 
9535
#  else
 
9536
#   ifdef _AIX
 
9537
 #pragma alloca
 
9538
#   else
 
9539
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
9540
char *alloca ();
 
9541
#    endif
 
9542
#   endif
 
9543
#  endif
 
9544
# endif
 
9545
#endif
 
9546
 
 
9547
int
 
9548
main ()
 
9549
{
 
9550
char *p = (char *) alloca (1);
 
9551
                                    if (p) return 0;
 
9552
  ;
 
9553
  return 0;
 
9554
}
 
9555
_ACEOF
 
9556
rm -f conftest.$ac_objext conftest$ac_exeext
 
9557
if { (ac_try="$ac_link"
 
9558
case "(($ac_try" in
 
9559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9560
  *) ac_try_echo=$ac_try;;
 
9561
esac
 
9562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9563
$as_echo "$ac_try_echo") >&5
 
9564
  (eval "$ac_link") 2>conftest.er1
 
9565
  ac_status=$?
 
9566
  grep -v '^ *+' conftest.er1 >conftest.err
 
9567
  rm -f conftest.er1
 
9568
  cat conftest.err >&5
 
9569
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9570
  (exit $ac_status); } && {
 
9571
         test -z "$ac_c_werror_flag" ||
 
9572
         test ! -s conftest.err
 
9573
       } && test -s conftest$ac_exeext && {
 
9574
         test "$cross_compiling" = yes ||
 
9575
         $as_test_x conftest$ac_exeext
 
9576
       }; then
 
9577
  ac_cv_func_alloca_works=yes
 
9578
else
 
9579
  $as_echo "$as_me: failed program was:" >&5
 
9580
sed 's/^/| /' conftest.$ac_ext >&5
 
9581
 
 
9582
        ac_cv_func_alloca_works=no
 
9583
fi
 
9584
 
 
9585
rm -rf conftest.dSYM
 
9586
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9587
      conftest$ac_exeext conftest.$ac_ext
 
9588
fi
 
9589
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
9590
$as_echo "$ac_cv_func_alloca_works" >&6; }
 
9591
 
 
9592
if test $ac_cv_func_alloca_works = yes; then
 
9593
 
 
9594
cat >>confdefs.h <<\_ACEOF
 
9595
#define HAVE_ALLOCA 1
 
9596
_ACEOF
 
9597
 
 
9598
else
 
9599
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
9600
# that cause trouble.  Some versions do not even contain alloca or
 
9601
# contain a buggy version.  If you still want to use their alloca,
 
9602
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
9603
 
 
9604
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
9605
 
 
9606
cat >>confdefs.h <<\_ACEOF
 
9607
#define C_ALLOCA 1
 
9608
_ACEOF
 
9609
 
 
9610
 
 
9611
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
9612
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
9613
if test "${ac_cv_os_cray+set}" = set; then
 
9614
  $as_echo_n "(cached) " >&6
 
9615
else
 
9616
  cat >conftest.$ac_ext <<_ACEOF
 
9617
/* confdefs.h.  */
 
9618
_ACEOF
 
9619
cat confdefs.h >>conftest.$ac_ext
 
9620
cat >>conftest.$ac_ext <<_ACEOF
 
9621
/* end confdefs.h.  */
 
9622
#if defined CRAY && ! defined CRAY2
 
9623
webecray
 
9624
#else
 
9625
wenotbecray
 
9626
#endif
 
9627
 
 
9628
_ACEOF
 
9629
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9630
  $EGREP "webecray" >/dev/null 2>&1; then
 
9631
  ac_cv_os_cray=yes
 
9632
else
 
9633
  ac_cv_os_cray=no
 
9634
fi
 
9635
rm -f conftest*
 
9636
 
 
9637
fi
 
9638
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
9639
$as_echo "$ac_cv_os_cray" >&6; }
 
9640
if test $ac_cv_os_cray = yes; then
 
9641
  for ac_func in _getb67 GETB67 getb67; do
 
9642
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9643
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9644
$as_echo_n "checking for $ac_func... " >&6; }
 
9645
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
9646
  $as_echo_n "(cached) " >&6
 
9647
else
 
9648
  cat >conftest.$ac_ext <<_ACEOF
 
9649
/* confdefs.h.  */
 
9650
_ACEOF
 
9651
cat confdefs.h >>conftest.$ac_ext
 
9652
cat >>conftest.$ac_ext <<_ACEOF
 
9653
/* end confdefs.h.  */
 
9654
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9655
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9656
#define $ac_func innocuous_$ac_func
 
9657
 
 
9658
/* System header to define __stub macros and hopefully few prototypes,
 
9659
    which can conflict with char $ac_func (); below.
 
9660
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9661
    <limits.h> exists even on freestanding compilers.  */
 
9662
 
 
9663
#ifdef __STDC__
 
9664
# include <limits.h>
 
9665
#else
 
9666
# include <assert.h>
 
9667
#endif
 
9668
 
 
9669
#undef $ac_func
 
9670
 
 
9671
/* Override any GCC internal prototype to avoid an error.
 
9672
   Use char because int might match the return type of a GCC
 
9673
   builtin and then its argument prototype would still apply.  */
 
9674
#ifdef __cplusplus
 
9675
extern "C"
 
9676
#endif
 
9677
char $ac_func ();
 
9678
/* The GNU C library defines this for functions which it implements
 
9679
    to always fail with ENOSYS.  Some functions are actually named
 
9680
    something starting with __ and the normal name is an alias.  */
 
9681
#if defined __stub_$ac_func || defined __stub___$ac_func
 
9682
choke me
 
9683
#endif
 
9684
 
 
9685
int
 
9686
main ()
 
9687
{
 
9688
return $ac_func ();
 
9689
  ;
 
9690
  return 0;
 
9691
}
 
9692
_ACEOF
 
9693
rm -f conftest.$ac_objext conftest$ac_exeext
 
9694
if { (ac_try="$ac_link"
 
9695
case "(($ac_try" in
 
9696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9697
  *) ac_try_echo=$ac_try;;
 
9698
esac
 
9699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9700
$as_echo "$ac_try_echo") >&5
 
9701
  (eval "$ac_link") 2>conftest.er1
 
9702
  ac_status=$?
 
9703
  grep -v '^ *+' conftest.er1 >conftest.err
 
9704
  rm -f conftest.er1
 
9705
  cat conftest.err >&5
 
9706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9707
  (exit $ac_status); } && {
 
9708
         test -z "$ac_c_werror_flag" ||
 
9709
         test ! -s conftest.err
 
9710
       } && test -s conftest$ac_exeext && {
 
9711
         test "$cross_compiling" = yes ||
 
9712
         $as_test_x conftest$ac_exeext
 
9713
       }; then
 
9714
  eval "$as_ac_var=yes"
 
9715
else
 
9716
  $as_echo "$as_me: failed program was:" >&5
 
9717
sed 's/^/| /' conftest.$ac_ext >&5
 
9718
 
 
9719
        eval "$as_ac_var=no"
 
9720
fi
 
9721
 
 
9722
rm -rf conftest.dSYM
 
9723
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9724
      conftest$ac_exeext conftest.$ac_ext
 
9725
fi
 
9726
ac_res=`eval 'as_val=${'$as_ac_var'}
 
9727
                 $as_echo "$as_val"'`
 
9728
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9729
$as_echo "$ac_res" >&6; }
 
9730
as_val=`eval 'as_val=${'$as_ac_var'}
 
9731
                 $as_echo "$as_val"'`
 
9732
   if test "x$as_val" = x""yes; then
 
9733
 
 
9734
cat >>confdefs.h <<_ACEOF
 
9735
#define CRAY_STACKSEG_END $ac_func
 
9736
_ACEOF
 
9737
 
 
9738
    break
 
9739
fi
 
9740
 
 
9741
  done
 
9742
fi
 
9743
 
 
9744
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
9745
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
9746
if test "${ac_cv_c_stack_direction+set}" = set; then
 
9747
  $as_echo_n "(cached) " >&6
 
9748
else
 
9749
  if test "$cross_compiling" = yes; then
 
9750
  ac_cv_c_stack_direction=0
 
9751
else
 
9752
  cat >conftest.$ac_ext <<_ACEOF
 
9753
/* confdefs.h.  */
 
9754
_ACEOF
 
9755
cat confdefs.h >>conftest.$ac_ext
 
9756
cat >>conftest.$ac_ext <<_ACEOF
 
9757
/* end confdefs.h.  */
 
9758
$ac_includes_default
 
9759
int
 
9760
find_stack_direction ()
 
9761
{
 
9762
  static char *addr = 0;
 
9763
  auto char dummy;
 
9764
  if (addr == 0)
 
9765
    {
 
9766
      addr = &dummy;
 
9767
      return find_stack_direction ();
 
9768
    }
 
9769
  else
 
9770
    return (&dummy > addr) ? 1 : -1;
 
9771
}
 
9772
 
 
9773
int
 
9774
main ()
 
9775
{
 
9776
  return find_stack_direction () < 0;
 
9777
}
 
9778
_ACEOF
 
9779
rm -f conftest$ac_exeext
 
9780
if { (ac_try="$ac_link"
 
9781
case "(($ac_try" in
 
9782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9783
  *) ac_try_echo=$ac_try;;
 
9784
esac
 
9785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9786
$as_echo "$ac_try_echo") >&5
 
9787
  (eval "$ac_link") 2>&5
 
9788
  ac_status=$?
 
9789
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9790
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9791
  { (case "(($ac_try" in
 
9792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9793
  *) ac_try_echo=$ac_try;;
 
9794
esac
 
9795
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9796
$as_echo "$ac_try_echo") >&5
 
9797
  (eval "$ac_try") 2>&5
 
9798
  ac_status=$?
 
9799
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9800
  (exit $ac_status); }; }; then
 
9801
  ac_cv_c_stack_direction=1
 
9802
else
 
9803
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
9804
$as_echo "$as_me: failed program was:" >&5
 
9805
sed 's/^/| /' conftest.$ac_ext >&5
 
9806
 
 
9807
( exit $ac_status )
 
9808
ac_cv_c_stack_direction=-1
 
9809
fi
 
9810
rm -rf conftest.dSYM
 
9811
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9812
fi
 
9813
 
 
9814
 
 
9815
fi
 
9816
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
9817
$as_echo "$ac_cv_c_stack_direction" >&6; }
 
9818
 
 
9819
cat >>confdefs.h <<_ACEOF
 
9820
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
9821
_ACEOF
 
9822
 
 
9823
 
 
9824
fi
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
 
 
9830
 
 
9831
 
 
9832
 
 
9833
 
 
9834
 
 
9835
 
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
 
 
9841
 
 
9842
 
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
for ac_func in lrand48 drand48 srand48 setmode setenv getenv \
 
9854
        __freadable _sysconf getrusage strerror cbrt lsqrt vsnprintf \
 
9855
        strtoul strtoll strtoull uname memset nl_langinfo pow sqrt \
 
9856
        strchr strdup strerror strstr _NSGetEnviron
 
9857
do
 
9858
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9859
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9860
$as_echo_n "checking for $ac_func... " >&6; }
 
9861
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
9862
  $as_echo_n "(cached) " >&6
 
9863
else
 
9864
  cat >conftest.$ac_ext <<_ACEOF
 
9865
/* confdefs.h.  */
 
9866
_ACEOF
 
9867
cat confdefs.h >>conftest.$ac_ext
 
9868
cat >>conftest.$ac_ext <<_ACEOF
 
9869
/* end confdefs.h.  */
 
9870
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9871
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9872
#define $ac_func innocuous_$ac_func
 
9873
 
 
9874
/* System header to define __stub macros and hopefully few prototypes,
 
9875
    which can conflict with char $ac_func (); below.
 
9876
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9877
    <limits.h> exists even on freestanding compilers.  */
 
9878
 
 
9879
#ifdef __STDC__
 
9880
# include <limits.h>
 
9881
#else
 
9882
# include <assert.h>
 
9883
#endif
 
9884
 
 
9885
#undef $ac_func
 
9886
 
 
9887
/* Override any GCC internal prototype to avoid an error.
 
9888
   Use char because int might match the return type of a GCC
 
9889
   builtin and then its argument prototype would still apply.  */
 
9890
#ifdef __cplusplus
 
9891
extern "C"
 
9892
#endif
 
9893
char $ac_func ();
 
9894
/* The GNU C library defines this for functions which it implements
 
9895
    to always fail with ENOSYS.  Some functions are actually named
 
9896
    something starting with __ and the normal name is an alias.  */
 
9897
#if defined __stub_$ac_func || defined __stub___$ac_func
 
9898
choke me
 
9899
#endif
 
9900
 
 
9901
int
 
9902
main ()
 
9903
{
 
9904
return $ac_func ();
 
9905
  ;
 
9906
  return 0;
 
9907
}
 
9908
_ACEOF
 
9909
rm -f conftest.$ac_objext conftest$ac_exeext
 
9910
if { (ac_try="$ac_link"
 
9911
case "(($ac_try" in
 
9912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9913
  *) ac_try_echo=$ac_try;;
 
9914
esac
 
9915
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9916
$as_echo "$ac_try_echo") >&5
 
9917
  (eval "$ac_link") 2>conftest.er1
 
9918
  ac_status=$?
 
9919
  grep -v '^ *+' conftest.er1 >conftest.err
 
9920
  rm -f conftest.er1
 
9921
  cat conftest.err >&5
 
9922
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9923
  (exit $ac_status); } && {
 
9924
         test -z "$ac_c_werror_flag" ||
 
9925
         test ! -s conftest.err
 
9926
       } && test -s conftest$ac_exeext && {
 
9927
         test "$cross_compiling" = yes ||
 
9928
         $as_test_x conftest$ac_exeext
 
9929
       }; then
 
9930
  eval "$as_ac_var=yes"
 
9931
else
 
9932
  $as_echo "$as_me: failed program was:" >&5
 
9933
sed 's/^/| /' conftest.$ac_ext >&5
 
9934
 
 
9935
        eval "$as_ac_var=no"
 
9936
fi
 
9937
 
 
9938
rm -rf conftest.dSYM
 
9939
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9940
      conftest$ac_exeext conftest.$ac_ext
 
9941
fi
 
9942
ac_res=`eval 'as_val=${'$as_ac_var'}
 
9943
                 $as_echo "$as_val"'`
 
9944
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9945
$as_echo "$ac_res" >&6; }
 
9946
as_val=`eval 'as_val=${'$as_ac_var'}
 
9947
                 $as_echo "$as_val"'`
 
9948
   if test "x$as_val" = x""yes; then
 
9949
  cat >>confdefs.h <<_ACEOF
 
9950
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9951
_ACEOF
 
9952
 
 
9953
fi
 
9954
done
 
9955
 
 
9956
 
 
9957
 
 
9958
 
 
9959
for ac_func in strcasecmp strncasecmp
 
9960
do
 
9961
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9962
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9963
$as_echo_n "checking for $ac_func... " >&6; }
 
9964
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
9965
  $as_echo_n "(cached) " >&6
 
9966
else
 
9967
  cat >conftest.$ac_ext <<_ACEOF
 
9968
/* confdefs.h.  */
 
9969
_ACEOF
 
9970
cat confdefs.h >>conftest.$ac_ext
 
9971
cat >>conftest.$ac_ext <<_ACEOF
 
9972
/* end confdefs.h.  */
 
9973
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9974
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9975
#define $ac_func innocuous_$ac_func
 
9976
 
 
9977
/* System header to define __stub macros and hopefully few prototypes,
 
9978
    which can conflict with char $ac_func (); below.
 
9979
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9980
    <limits.h> exists even on freestanding compilers.  */
 
9981
 
 
9982
#ifdef __STDC__
 
9983
# include <limits.h>
 
9984
#else
 
9985
# include <assert.h>
 
9986
#endif
 
9987
 
 
9988
#undef $ac_func
 
9989
 
 
9990
/* Override any GCC internal prototype to avoid an error.
 
9991
   Use char because int might match the return type of a GCC
 
9992
   builtin and then its argument prototype would still apply.  */
 
9993
#ifdef __cplusplus
 
9994
extern "C"
 
9995
#endif
 
9996
char $ac_func ();
 
9997
/* The GNU C library defines this for functions which it implements
 
9998
    to always fail with ENOSYS.  Some functions are actually named
 
9999
    something starting with __ and the normal name is an alias.  */
 
10000
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10001
choke me
 
10002
#endif
 
10003
 
 
10004
int
 
10005
main ()
 
10006
{
 
10007
return $ac_func ();
 
10008
  ;
 
10009
  return 0;
 
10010
}
 
10011
_ACEOF
 
10012
rm -f conftest.$ac_objext conftest$ac_exeext
 
10013
if { (ac_try="$ac_link"
 
10014
case "(($ac_try" in
 
10015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10016
  *) ac_try_echo=$ac_try;;
 
10017
esac
 
10018
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10019
$as_echo "$ac_try_echo") >&5
 
10020
  (eval "$ac_link") 2>conftest.er1
 
10021
  ac_status=$?
 
10022
  grep -v '^ *+' conftest.er1 >conftest.err
 
10023
  rm -f conftest.er1
 
10024
  cat conftest.err >&5
 
10025
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10026
  (exit $ac_status); } && {
 
10027
         test -z "$ac_c_werror_flag" ||
 
10028
         test ! -s conftest.err
 
10029
       } && test -s conftest$ac_exeext && {
 
10030
         test "$cross_compiling" = yes ||
 
10031
         $as_test_x conftest$ac_exeext
 
10032
       }; then
 
10033
  eval "$as_ac_var=yes"
 
10034
else
 
10035
  $as_echo "$as_me: failed program was:" >&5
 
10036
sed 's/^/| /' conftest.$ac_ext >&5
 
10037
 
 
10038
        eval "$as_ac_var=no"
 
10039
fi
 
10040
 
 
10041
rm -rf conftest.dSYM
 
10042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10043
      conftest$ac_exeext conftest.$ac_ext
 
10044
fi
 
10045
ac_res=`eval 'as_val=${'$as_ac_var'}
 
10046
                 $as_echo "$as_val"'`
 
10047
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
10048
$as_echo "$ac_res" >&6; }
 
10049
as_val=`eval 'as_val=${'$as_ac_var'}
 
10050
                 $as_echo "$as_val"'`
 
10051
   if test "x$as_val" = x""yes; then
 
10052
  cat >>confdefs.h <<_ACEOF
 
10053
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10054
_ACEOF
 
10055
 
 
10056
else
 
10057
  case " $LIBOBJS " in
 
10058
  *" $ac_func.$ac_objext "* ) ;;
 
10059
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
10060
 ;;
 
10061
esac
 
10062
 
 
10063
fi
 
10064
done
 
10065
 
 
10066
 
 
10067
 
 
10068
 
 
10069
 #code that is for Libtool 2.x
 
10070
case `pwd` in
 
10071
  *\ * | *\     *)
 
10072
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
10073
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
10074
esac
 
10075
 
 
10076
 
 
10077
 
 
10078
macro_version='2.2.6'
 
10079
macro_revision='1.3012'
 
10080
 
 
10081
 
 
10082
 
 
10083
 
 
10084
 
 
10085
 
 
10086
 
 
10087
 
 
10088
 
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
ltmain="$ac_aux_dir/ltmain.sh"
 
10094
 
 
10095
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
10096
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
10097
if test "${ac_cv_path_SED+set}" = set; then
 
10098
  $as_echo_n "(cached) " >&6
 
10099
else
 
10100
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
10101
     for ac_i in 1 2 3 4 5 6 7; do
 
10102
       ac_script="$ac_script$as_nl$ac_script"
 
10103
     done
 
10104
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
10105
     $as_unset ac_script || ac_script=
 
10106
     if test -z "$SED"; then
 
10107
  ac_path_SED_found=false
 
10108
  # Loop through the user's path and test for each of PROGNAME-LIST
 
10109
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10110
for as_dir in $PATH
 
10111
do
 
10112
  IFS=$as_save_IFS
 
10113
  test -z "$as_dir" && as_dir=.
 
10114
  for ac_prog in sed gsed; do
 
10115
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10116
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
10117
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
10118
# Check for GNU ac_path_SED and select it if it is found.
 
10119
  # Check for GNU $ac_path_SED
 
10120
case `"$ac_path_SED" --version 2>&1` in
 
10121
*GNU*)
 
10122
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
10123
*)
 
10124
  ac_count=0
 
10125
  $as_echo_n 0123456789 >"conftest.in"
 
10126
  while :
 
10127
  do
 
10128
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
10129
    mv "conftest.tmp" "conftest.in"
 
10130
    cp "conftest.in" "conftest.nl"
 
10131
    $as_echo '' >> "conftest.nl"
 
10132
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
10133
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
10134
    ac_count=`expr $ac_count + 1`
 
10135
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
10136
      # Best one so far, save it but keep looking for a better one
 
10137
      ac_cv_path_SED="$ac_path_SED"
 
10138
      ac_path_SED_max=$ac_count
 
10139
    fi
 
10140
    # 10*(2^10) chars as input seems more than enough
 
10141
    test $ac_count -gt 10 && break
 
10142
  done
 
10143
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
10144
esac
 
10145
 
 
10146
      $ac_path_SED_found && break 3
 
10147
    done
 
10148
  done
 
10149
done
 
10150
IFS=$as_save_IFS
 
10151
  if test -z "$ac_cv_path_SED"; then
 
10152
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
10153
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
10154
   { (exit 1); exit 1; }; }
 
10155
  fi
 
10156
else
 
10157
  ac_cv_path_SED=$SED
 
10158
fi
 
10159
 
 
10160
fi
 
10161
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
10162
$as_echo "$ac_cv_path_SED" >&6; }
 
10163
 SED="$ac_cv_path_SED"
 
10164
  rm -f conftest.sed
 
10165
 
 
10166
test -z "$SED" && SED=sed
 
10167
Xsed="$SED -e 1s/^X//"
 
10168
 
 
10169
 
 
10170
 
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
10180
$as_echo_n "checking for fgrep... " >&6; }
 
10181
if test "${ac_cv_path_FGREP+set}" = set; then
 
10182
  $as_echo_n "(cached) " >&6
 
10183
else
 
10184
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
10185
   then ac_cv_path_FGREP="$GREP -F"
 
10186
   else
 
10187
     if test -z "$FGREP"; then
 
10188
  ac_path_FGREP_found=false
 
10189
  # Loop through the user's path and test for each of PROGNAME-LIST
 
10190
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10191
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
10192
do
 
10193
  IFS=$as_save_IFS
 
10194
  test -z "$as_dir" && as_dir=.
 
10195
  for ac_prog in fgrep; do
 
10196
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10197
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
10198
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
10199
# Check for GNU ac_path_FGREP and select it if it is found.
 
10200
  # Check for GNU $ac_path_FGREP
 
10201
case `"$ac_path_FGREP" --version 2>&1` in
 
10202
*GNU*)
 
10203
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
10204
*)
 
10205
  ac_count=0
 
10206
  $as_echo_n 0123456789 >"conftest.in"
 
10207
  while :
 
10208
  do
 
10209
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
10210
    mv "conftest.tmp" "conftest.in"
 
10211
    cp "conftest.in" "conftest.nl"
 
10212
    $as_echo 'FGREP' >> "conftest.nl"
 
10213
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
10214
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
10215
    ac_count=`expr $ac_count + 1`
 
10216
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
10217
      # Best one so far, save it but keep looking for a better one
 
10218
      ac_cv_path_FGREP="$ac_path_FGREP"
 
10219
      ac_path_FGREP_max=$ac_count
 
10220
    fi
 
10221
    # 10*(2^10) chars as input seems more than enough
 
10222
    test $ac_count -gt 10 && break
 
10223
  done
 
10224
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
10225
esac
 
10226
 
 
10227
      $ac_path_FGREP_found && break 3
 
10228
    done
 
10229
  done
 
10230
done
 
10231
IFS=$as_save_IFS
 
10232
  if test -z "$ac_cv_path_FGREP"; then
 
10233
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
10234
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
10235
   { (exit 1); exit 1; }; }
 
10236
  fi
 
10237
else
 
10238
  ac_cv_path_FGREP=$FGREP
 
10239
fi
 
10240
 
 
10241
   fi
 
10242
fi
 
10243
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
10244
$as_echo "$ac_cv_path_FGREP" >&6; }
 
10245
 FGREP="$ac_cv_path_FGREP"
 
10246
 
 
10247
 
 
10248
test -z "$GREP" && GREP=grep
 
10249
 
 
10250
 
 
10251
 
 
10252
 
 
10253
 
 
10254
 
 
10255
 
 
10256
 
 
10257
 
 
10258
 
 
10259
 
 
10260
 
 
10261
 
 
10262
 
 
10263
 
 
10264
 
 
10265
 
 
10266
 
 
10267
 
 
10268
# Check whether --with-gnu-ld was given.
 
10269
if test "${with_gnu_ld+set}" = set; then
 
10270
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10271
else
 
10272
  with_gnu_ld=no
 
10273
fi
 
10274
 
 
10275
ac_prog=ld
 
10276
if test "$GCC" = yes; then
 
10277
  # Check if gcc -print-prog-name=ld gives a path.
 
10278
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10279
$as_echo_n "checking for ld used by $CC... " >&6; }
 
10280
  case $host in
 
10281
  *-*-mingw*)
 
10282
    # gcc leaves a trailing carriage return which upsets mingw
 
10283
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10284
  *)
 
10285
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10286
  esac
 
10287
  case $ac_prog in
 
10288
    # Accept absolute paths.
 
10289
    [\\/]* | ?:[\\/]*)
 
10290
      re_direlt='/[^/][^/]*/\.\./'
 
10291
      # Canonicalize the pathname of ld
 
10292
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
10293
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
10294
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
10295
      done
 
10296
      test -z "$LD" && LD="$ac_prog"
 
10297
      ;;
 
10298
  "")
 
10299
    # If it fails, then pretend we aren't using GCC.
 
10300
    ac_prog=ld
 
10301
    ;;
 
10302
  *)
 
10303
    # If it is relative, then search for the first ld in PATH.
 
10304
    with_gnu_ld=unknown
 
10305
    ;;
 
10306
  esac
 
10307
elif test "$with_gnu_ld" = yes; then
 
10308
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10309
$as_echo_n "checking for GNU ld... " >&6; }
 
10310
else
 
10311
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10312
$as_echo_n "checking for non-GNU ld... " >&6; }
 
10313
fi
 
10314
if test "${lt_cv_path_LD+set}" = set; then
 
10315
  $as_echo_n "(cached) " >&6
 
10316
else
 
10317
  if test -z "$LD"; then
 
10318
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10319
  for ac_dir in $PATH; do
 
10320
    IFS="$lt_save_ifs"
 
10321
    test -z "$ac_dir" && ac_dir=.
 
10322
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10323
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10324
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10325
      # but apparently some variants of GNU ld only accept -v.
 
10326
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10327
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10328
      *GNU* | *'with BFD'*)
 
10329
        test "$with_gnu_ld" != no && break
 
10330
        ;;
 
10331
      *)
 
10332
        test "$with_gnu_ld" != yes && break
 
10333
        ;;
 
10334
      esac
 
10335
    fi
 
10336
  done
 
10337
  IFS="$lt_save_ifs"
 
10338
else
 
10339
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10340
fi
 
10341
fi
 
10342
 
 
10343
LD="$lt_cv_path_LD"
 
10344
if test -n "$LD"; then
 
10345
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
10346
$as_echo "$LD" >&6; }
 
10347
else
 
10348
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10349
$as_echo "no" >&6; }
 
10350
fi
 
10351
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10352
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10353
   { (exit 1); exit 1; }; }
 
10354
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10355
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
10356
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10357
  $as_echo_n "(cached) " >&6
 
10358
else
 
10359
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10360
case `$LD -v 2>&1 </dev/null` in
 
10361
*GNU* | *'with BFD'*)
 
10362
  lt_cv_prog_gnu_ld=yes
 
10363
  ;;
 
10364
*)
 
10365
  lt_cv_prog_gnu_ld=no
 
10366
  ;;
 
10367
esac
 
10368
fi
 
10369
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10370
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
10371
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
10382
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
10383
if test "${lt_cv_path_NM+set}" = set; then
 
10384
  $as_echo_n "(cached) " >&6
 
10385
else
 
10386
  if test -n "$NM"; then
 
10387
  # Let the user override the test.
 
10388
  lt_cv_path_NM="$NM"
 
10389
else
 
10390
  lt_nm_to_check="${ac_tool_prefix}nm"
 
10391
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
10392
    lt_nm_to_check="$lt_nm_to_check nm"
 
10393
  fi
 
10394
  for lt_tmp_nm in $lt_nm_to_check; do
 
10395
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10396
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
10397
      IFS="$lt_save_ifs"
 
10398
      test -z "$ac_dir" && ac_dir=.
 
10399
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
10400
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
10401
        # Check to see if the nm accepts a BSD-compat flag.
 
10402
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
10403
        #   nm: unknown option "B" ignored
 
10404
        # Tru64's nm complains that /dev/null is an invalid object file
 
10405
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
10406
        */dev/null* | *'Invalid file or object type'*)
 
10407
          lt_cv_path_NM="$tmp_nm -B"
 
10408
          break
 
10409
          ;;
 
10410
        *)
 
10411
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
10412
          */dev/null*)
 
10413
            lt_cv_path_NM="$tmp_nm -p"
 
10414
            break
 
10415
            ;;
 
10416
          *)
 
10417
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
10418
            continue # so that we can try to find one that supports BSD flags
 
10419
            ;;
 
10420
          esac
 
10421
          ;;
 
10422
        esac
 
10423
      fi
 
10424
    done
 
10425
    IFS="$lt_save_ifs"
 
10426
  done
 
10427
  : ${lt_cv_path_NM=no}
 
10428
fi
 
10429
fi
 
10430
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
10431
$as_echo "$lt_cv_path_NM" >&6; }
 
10432
if test "$lt_cv_path_NM" != "no"; then
 
10433
  NM="$lt_cv_path_NM"
 
10434
else
 
10435
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
10436
  if test -n "$ac_tool_prefix"; then
 
10437
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
10438
  do
 
10439
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
10440
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
10441
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10442
$as_echo_n "checking for $ac_word... " >&6; }
 
10443
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
10444
  $as_echo_n "(cached) " >&6
 
10445
else
 
10446
  if test -n "$DUMPBIN"; then
 
10447
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
10448
else
 
10449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10450
for as_dir in $PATH
 
10451
do
 
10452
  IFS=$as_save_IFS
 
10453
  test -z "$as_dir" && as_dir=.
 
10454
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10455
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10456
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
10457
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10458
    break 2
 
10459
  fi
 
10460
done
 
10461
done
 
10462
IFS=$as_save_IFS
 
10463
 
 
10464
fi
 
10465
fi
 
10466
DUMPBIN=$ac_cv_prog_DUMPBIN
 
10467
if test -n "$DUMPBIN"; then
 
10468
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
10469
$as_echo "$DUMPBIN" >&6; }
 
10470
else
 
10471
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10472
$as_echo "no" >&6; }
 
10473
fi
 
10474
 
 
10475
 
 
10476
    test -n "$DUMPBIN" && break
 
10477
  done
 
10478
fi
 
10479
if test -z "$DUMPBIN"; then
 
10480
  ac_ct_DUMPBIN=$DUMPBIN
 
10481
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
10482
do
 
10483
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
10484
set dummy $ac_prog; ac_word=$2
 
10485
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10486
$as_echo_n "checking for $ac_word... " >&6; }
 
10487
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
10488
  $as_echo_n "(cached) " >&6
 
10489
else
 
10490
  if test -n "$ac_ct_DUMPBIN"; then
 
10491
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
10492
else
 
10493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10494
for as_dir in $PATH
 
10495
do
 
10496
  IFS=$as_save_IFS
 
10497
  test -z "$as_dir" && as_dir=.
 
10498
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10499
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10500
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
10501
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10502
    break 2
 
10503
  fi
 
10504
done
 
10505
done
 
10506
IFS=$as_save_IFS
 
10507
 
 
10508
fi
 
10509
fi
 
10510
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
10511
if test -n "$ac_ct_DUMPBIN"; then
 
10512
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
10513
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
10514
else
 
10515
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10516
$as_echo "no" >&6; }
 
10517
fi
 
10518
 
 
10519
 
 
10520
  test -n "$ac_ct_DUMPBIN" && break
 
10521
done
 
10522
 
 
10523
  if test "x$ac_ct_DUMPBIN" = x; then
 
10524
    DUMPBIN=":"
 
10525
  else
 
10526
    case $cross_compiling:$ac_tool_warned in
 
10527
yes:)
 
10528
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
10529
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
10530
ac_tool_warned=yes ;;
 
10531
esac
 
10532
    DUMPBIN=$ac_ct_DUMPBIN
 
10533
  fi
 
10534
fi
 
10535
 
 
10536
 
 
10537
  if test "$DUMPBIN" != ":"; then
 
10538
    NM="$DUMPBIN"
 
10539
  fi
 
10540
fi
 
10541
test -z "$NM" && NM=nm
 
10542
 
 
10543
 
 
10544
 
 
10545
 
 
10546
 
 
10547
 
 
10548
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
10549
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
10550
if test "${lt_cv_nm_interface+set}" = set; then
 
10551
  $as_echo_n "(cached) " >&6
 
10552
else
 
10553
  lt_cv_nm_interface="BSD nm"
 
10554
  echo "int some_variable = 0;" > conftest.$ac_ext
 
10555
  (eval echo "\"\$as_me:10555: $ac_compile\"" >&5)
 
10556
  (eval "$ac_compile" 2>conftest.err)
 
10557
  cat conftest.err >&5
 
10558
  (eval echo "\"\$as_me:10558: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
10559
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
10560
  cat conftest.err >&5
 
10561
  (eval echo "\"\$as_me:10561: output\"" >&5)
 
10562
  cat conftest.out >&5
 
10563
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
10564
    lt_cv_nm_interface="MS dumpbin"
 
10565
  fi
 
10566
  rm -f conftest*
 
10567
fi
 
10568
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
10569
$as_echo "$lt_cv_nm_interface" >&6; }
 
10570
 
 
10571
# find the maximum length of command line arguments
 
10572
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
10573
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
10574
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
10575
  $as_echo_n "(cached) " >&6
 
10576
else
 
10577
    i=0
 
10578
  teststring="ABCD"
 
10579
 
 
10580
  case $build_os in
 
10581
  msdosdjgpp*)
 
10582
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
10583
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
10584
    # during glob expansion).  Even if it were fixed, the result of this
 
10585
    # check would be larger than it should be.
 
10586
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
10587
    ;;
 
10588
 
 
10589
  gnu*)
 
10590
    # Under GNU Hurd, this test is not required because there is
 
10591
    # no limit to the length of command line arguments.
 
10592
    # Libtool will interpret -1 as no limit whatsoever
 
10593
    lt_cv_sys_max_cmd_len=-1;
 
10594
    ;;
 
10595
 
 
10596
  cygwin* | mingw* | cegcc*)
 
10597
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
10598
    # about 5 minutes as the teststring grows exponentially.
 
10599
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
10600
    # you end up with a "frozen" computer, even though with patience
 
10601
    # the test eventually succeeds (with a max line length of 256k).
 
10602
    # Instead, let's just punt: use the minimum linelength reported by
 
10603
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
10604
    lt_cv_sys_max_cmd_len=8192;
 
10605
    ;;
 
10606
 
 
10607
  amigaos*)
 
10608
    # On AmigaOS with pdksh, this test takes hours, literally.
 
10609
    # So we just punt and use a minimum line length of 8192.
 
10610
    lt_cv_sys_max_cmd_len=8192;
 
10611
    ;;
 
10612
 
 
10613
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
10614
    # This has been around since 386BSD, at least.  Likely further.
 
10615
    if test -x /sbin/sysctl; then
 
10616
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
10617
    elif test -x /usr/sbin/sysctl; then
 
10618
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
10619
    else
 
10620
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
10621
    fi
 
10622
    # And add a safety zone
 
10623
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
10624
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
10625
    ;;
 
10626
 
 
10627
  interix*)
 
10628
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
10629
    lt_cv_sys_max_cmd_len=196608
 
10630
    ;;
 
10631
 
 
10632
  osf*)
 
10633
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
10634
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
10635
    # nice to cause kernel panics so lets avoid the loop below.
 
10636
    # First set a reasonable default.
 
10637
    lt_cv_sys_max_cmd_len=16384
 
10638
    #
 
10639
    if test -x /sbin/sysconfig; then
 
10640
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
10641
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
10642
      esac
 
10643
    fi
 
10644
    ;;
 
10645
  sco3.2v5*)
 
10646
    lt_cv_sys_max_cmd_len=102400
 
10647
    ;;
 
10648
  sysv5* | sco5v6* | sysv4.2uw2*)
 
10649
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
10650
    if test -n "$kargmax"; then
 
10651
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
10652
    else
 
10653
      lt_cv_sys_max_cmd_len=32768
 
10654
    fi
 
10655
    ;;
 
10656
  *)
 
10657
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
10658
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
10659
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
10660
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
10661
    else
 
10662
      # Make teststring a little bigger before we do anything with it.
 
10663
      # a 1K string should be a reasonable start.
 
10664
      for i in 1 2 3 4 5 6 7 8 ; do
 
10665
        teststring=$teststring$teststring
 
10666
      done
 
10667
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
10668
      # If test is not a shell built-in, we'll probably end up computing a
 
10669
      # maximum length that is only half of the actual maximum length, but
 
10670
      # we can't tell.
 
10671
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
10672
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
10673
              test $i != 17 # 1/2 MB should be enough
 
10674
      do
 
10675
        i=`expr $i + 1`
 
10676
        teststring=$teststring$teststring
 
10677
      done
 
10678
      # Only check the string length outside the loop.
 
10679
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
10680
      teststring=
 
10681
      # Add a significant safety factor because C++ compilers can tack on
 
10682
      # massive amounts of additional arguments before passing them to the
 
10683
      # linker.  It appears as though 1/2 is a usable value.
 
10684
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
10685
    fi
 
10686
    ;;
 
10687
  esac
 
10688
 
 
10689
fi
 
10690
 
 
10691
if test -n $lt_cv_sys_max_cmd_len ; then
 
10692
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
10693
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
10694
else
 
10695
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
10696
$as_echo "none" >&6; }
 
10697
fi
 
10698
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
: ${CP="cp -f"}
 
10706
: ${MV="mv -f"}
 
10707
: ${RM="rm -f"}
 
10708
 
 
10709
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
10710
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
10711
# Try some XSI features
 
10712
xsi_shell=no
 
10713
( _lt_dummy="a/b/c"
 
10714
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
10715
      = c,a/b,, \
 
10716
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
10717
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
10718
  && xsi_shell=yes
 
10719
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
10720
$as_echo "$xsi_shell" >&6; }
 
10721
 
 
10722
 
 
10723
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
10724
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
10725
lt_shell_append=no
 
10726
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
10727
    >/dev/null 2>&1 \
 
10728
  && lt_shell_append=yes
 
10729
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
10730
$as_echo "$lt_shell_append" >&6; }
 
10731
 
 
10732
 
 
10733
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
10734
  lt_unset=unset
 
10735
else
 
10736
  lt_unset=false
 
10737
fi
 
10738
 
 
10739
 
 
10740
 
 
10741
 
 
10742
 
 
10743
# test EBCDIC or ASCII
 
10744
case `echo X|tr X '\101'` in
 
10745
 A) # ASCII based system
 
10746
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
10747
  lt_SP2NL='tr \040 \012'
 
10748
  lt_NL2SP='tr \015\012 \040\040'
 
10749
  ;;
 
10750
 *) # EBCDIC based system
 
10751
  lt_SP2NL='tr \100 \n'
 
10752
  lt_NL2SP='tr \r\n \100\100'
 
10753
  ;;
 
10754
esac
 
10755
 
 
10756
 
 
10757
 
 
10758
 
 
10759
 
 
10760
 
 
10761
 
 
10762
 
 
10763
 
 
10764
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
10765
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
10766
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
10767
  $as_echo_n "(cached) " >&6
 
10768
else
 
10769
  lt_cv_ld_reload_flag='-r'
 
10770
fi
 
10771
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
10772
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
10773
reload_flag=$lt_cv_ld_reload_flag
 
10774
case $reload_flag in
 
10775
"" | " "*) ;;
 
10776
*) reload_flag=" $reload_flag" ;;
 
10777
esac
 
10778
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
10779
case $host_os in
 
10780
  darwin*)
 
10781
    if test "$GCC" = yes; then
 
10782
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
10783
    else
 
10784
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
10785
    fi
 
10786
    ;;
 
10787
esac
 
10788
 
 
10789
 
 
10790
 
 
10791
 
 
10792
 
 
10793
 
 
10794
 
 
10795
 
 
10796
 
 
10797
if test -n "$ac_tool_prefix"; then
 
10798
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
10799
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
10800
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10801
$as_echo_n "checking for $ac_word... " >&6; }
 
10802
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
10803
  $as_echo_n "(cached) " >&6
 
10804
else
 
10805
  if test -n "$OBJDUMP"; then
 
10806
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
10807
else
 
10808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10809
for as_dir in $PATH
 
10810
do
 
10811
  IFS=$as_save_IFS
 
10812
  test -z "$as_dir" && as_dir=.
 
10813
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10814
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10815
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
10816
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10817
    break 2
 
10818
  fi
 
10819
done
 
10820
done
 
10821
IFS=$as_save_IFS
 
10822
 
 
10823
fi
 
10824
fi
 
10825
OBJDUMP=$ac_cv_prog_OBJDUMP
 
10826
if test -n "$OBJDUMP"; then
 
10827
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
10828
$as_echo "$OBJDUMP" >&6; }
 
10829
else
 
10830
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10831
$as_echo "no" >&6; }
 
10832
fi
 
10833
 
 
10834
 
 
10835
fi
 
10836
if test -z "$ac_cv_prog_OBJDUMP"; then
 
10837
  ac_ct_OBJDUMP=$OBJDUMP
 
10838
  # Extract the first word of "objdump", so it can be a program name with args.
 
10839
set dummy objdump; ac_word=$2
 
10840
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10841
$as_echo_n "checking for $ac_word... " >&6; }
 
10842
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
10843
  $as_echo_n "(cached) " >&6
 
10844
else
 
10845
  if test -n "$ac_ct_OBJDUMP"; then
 
10846
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
10847
else
 
10848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10849
for as_dir in $PATH
 
10850
do
 
10851
  IFS=$as_save_IFS
 
10852
  test -z "$as_dir" && as_dir=.
 
10853
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10854
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10855
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
10856
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10857
    break 2
 
10858
  fi
 
10859
done
 
10860
done
 
10861
IFS=$as_save_IFS
 
10862
 
 
10863
fi
 
10864
fi
 
10865
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
10866
if test -n "$ac_ct_OBJDUMP"; then
 
10867
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
10868
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
10869
else
 
10870
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10871
$as_echo "no" >&6; }
 
10872
fi
 
10873
 
 
10874
  if test "x$ac_ct_OBJDUMP" = x; then
 
10875
    OBJDUMP="false"
 
10876
  else
 
10877
    case $cross_compiling:$ac_tool_warned in
 
10878
yes:)
 
10879
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
10880
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
10881
ac_tool_warned=yes ;;
 
10882
esac
 
10883
    OBJDUMP=$ac_ct_OBJDUMP
 
10884
  fi
 
10885
else
 
10886
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
10887
fi
 
10888
 
 
10889
test -z "$OBJDUMP" && OBJDUMP=objdump
 
10890
 
 
10891
 
 
10892
 
 
10893
 
 
10894
 
 
10895
 
 
10896
 
 
10897
 
 
10898
 
 
10899
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
10900
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
10901
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
10902
  $as_echo_n "(cached) " >&6
 
10903
else
 
10904
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
10905
lt_cv_file_magic_test_file=
 
10906
lt_cv_deplibs_check_method='unknown'
 
10907
# Need to set the preceding variable on all platforms that support
 
10908
# interlibrary dependencies.
 
10909
# 'none' -- dependencies not supported.
 
10910
# `unknown' -- same as none, but documents that we really don't know.
 
10911
# 'pass_all' -- all dependencies passed with no checks.
 
10912
# 'test_compile' -- check by making test program.
 
10913
# 'file_magic [[regex]]' -- check by looking for files in library path
 
10914
# which responds to the $file_magic_cmd with a given extended regex.
 
10915
# If you have `file' or equivalent on your system and you're not sure
 
10916
# whether `pass_all' will *always* work, you probably want this one.
 
10917
 
 
10918
case $host_os in
 
10919
aix[4-9]*)
 
10920
  lt_cv_deplibs_check_method=pass_all
 
10921
  ;;
 
10922
 
 
10923
beos*)
 
10924
  lt_cv_deplibs_check_method=pass_all
 
10925
  ;;
 
10926
 
 
10927
bsdi[45]*)
 
10928
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
10929
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
10930
  lt_cv_file_magic_test_file=/shlib/libc.so
 
10931
  ;;
 
10932
 
 
10933
cygwin*)
 
10934
  # func_win32_libid is a shell function defined in ltmain.sh
 
10935
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
10936
  lt_cv_file_magic_cmd='func_win32_libid'
 
10937
  ;;
 
10938
 
 
10939
mingw* | pw32*)
 
10940
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
10941
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
10942
  # unless we find 'file', for example because we are cross-compiling.
 
10943
  if ( file / ) >/dev/null 2>&1; then
 
10944
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
10945
    lt_cv_file_magic_cmd='func_win32_libid'
 
10946
  else
 
10947
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
10948
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
10949
  fi
 
10950
  ;;
 
10951
 
 
10952
cegcc)
 
10953
  # use the weaker test based on 'objdump'. See mingw*.
 
10954
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
10955
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
10956
  ;;
 
10957
 
 
10958
darwin* | rhapsody*)
 
10959
  lt_cv_deplibs_check_method=pass_all
 
10960
  ;;
 
10961
 
 
10962
freebsd* | dragonfly*)
 
10963
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
10964
    case $host_cpu in
 
10965
    i*86 )
 
10966
      # Not sure whether the presence of OpenBSD here was a mistake.
 
10967
      # Let's accept both of them until this is cleared up.
 
10968
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
10969
      lt_cv_file_magic_cmd=/usr/bin/file
 
10970
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
10971
      ;;
 
10972
    esac
 
10973
  else
 
10974
    lt_cv_deplibs_check_method=pass_all
 
10975
  fi
 
10976
  ;;
 
10977
 
 
10978
gnu*)
 
10979
  lt_cv_deplibs_check_method=pass_all
 
10980
  ;;
 
10981
 
 
10982
hpux10.20* | hpux11*)
 
10983
  lt_cv_file_magic_cmd=/usr/bin/file
 
10984
  case $host_cpu in
 
10985
  ia64*)
 
10986
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
10987
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
10988
    ;;
 
10989
  hppa*64*)
 
10990
    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]'
 
10991
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
10992
    ;;
 
10993
  *)
 
10994
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
10995
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
10996
    ;;
 
10997
  esac
 
10998
  ;;
 
10999
 
 
11000
interix[3-9]*)
 
11001
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
11002
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
11003
  ;;
 
11004
 
 
11005
irix5* | irix6* | nonstopux*)
 
11006
  case $LD in
 
11007
  *-32|*"-32 ") libmagic=32-bit;;
 
11008
  *-n32|*"-n32 ") libmagic=N32;;
 
11009
  *-64|*"-64 ") libmagic=64-bit;;
 
11010
  *) libmagic=never-match;;
 
11011
  esac
 
11012
  lt_cv_deplibs_check_method=pass_all
 
11013
  ;;
 
11014
 
 
11015
# This must be Linux ELF.
 
11016
linux* | k*bsd*-gnu)
 
11017
  lt_cv_deplibs_check_method=pass_all
 
11018
  ;;
 
11019
 
 
11020
netbsd*)
 
11021
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
11022
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
11023
  else
 
11024
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
11025
  fi
 
11026
  ;;
 
11027
 
 
11028
newos6*)
 
11029
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
11030
  lt_cv_file_magic_cmd=/usr/bin/file
 
11031
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
11032
  ;;
 
11033
 
 
11034
*nto* | *qnx*)
 
11035
  lt_cv_deplibs_check_method=pass_all
 
11036
  ;;
 
11037
 
 
11038
openbsd*)
 
11039
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11040
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
11041
  else
 
11042
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
11043
  fi
 
11044
  ;;
 
11045
 
 
11046
osf3* | osf4* | osf5*)
 
11047
  lt_cv_deplibs_check_method=pass_all
 
11048
  ;;
 
11049
 
 
11050
rdos*)
 
11051
  lt_cv_deplibs_check_method=pass_all
 
11052
  ;;
 
11053
 
 
11054
solaris*)
 
11055
  lt_cv_deplibs_check_method=pass_all
 
11056
  ;;
 
11057
 
 
11058
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11059
  lt_cv_deplibs_check_method=pass_all
 
11060
  ;;
 
11061
 
 
11062
sysv4 | sysv4.3*)
 
11063
  case $host_vendor in
 
11064
  motorola)
 
11065
    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]'
 
11066
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
11067
    ;;
 
11068
  ncr)
 
11069
    lt_cv_deplibs_check_method=pass_all
 
11070
    ;;
 
11071
  sequent)
 
11072
    lt_cv_file_magic_cmd='/bin/file'
 
11073
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
11074
    ;;
 
11075
  sni)
 
11076
    lt_cv_file_magic_cmd='/bin/file'
 
11077
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
11078
    lt_cv_file_magic_test_file=/lib/libc.so
 
11079
    ;;
 
11080
  siemens)
 
11081
    lt_cv_deplibs_check_method=pass_all
 
11082
    ;;
 
11083
  pc)
 
11084
    lt_cv_deplibs_check_method=pass_all
 
11085
    ;;
 
11086
  esac
 
11087
  ;;
 
11088
 
 
11089
tpf*)
 
11090
  lt_cv_deplibs_check_method=pass_all
 
11091
  ;;
 
11092
esac
 
11093
 
 
11094
fi
 
11095
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
11096
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
11097
file_magic_cmd=$lt_cv_file_magic_cmd
 
11098
deplibs_check_method=$lt_cv_deplibs_check_method
 
11099
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
11100
 
 
11101
 
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
 
11109
 
 
11110
 
 
11111
 
 
11112
if test -n "$ac_tool_prefix"; then
 
11113
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
11114
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
11115
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11116
$as_echo_n "checking for $ac_word... " >&6; }
 
11117
if test "${ac_cv_prog_AR+set}" = set; then
 
11118
  $as_echo_n "(cached) " >&6
 
11119
else
 
11120
  if test -n "$AR"; then
 
11121
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
11122
else
 
11123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11124
for as_dir in $PATH
 
11125
do
 
11126
  IFS=$as_save_IFS
 
11127
  test -z "$as_dir" && as_dir=.
 
11128
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11129
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11130
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
11131
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11132
    break 2
 
11133
  fi
 
11134
done
 
11135
done
 
11136
IFS=$as_save_IFS
 
11137
 
 
11138
fi
 
11139
fi
 
11140
AR=$ac_cv_prog_AR
 
11141
if test -n "$AR"; then
 
11142
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
11143
$as_echo "$AR" >&6; }
 
11144
else
 
11145
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11146
$as_echo "no" >&6; }
 
11147
fi
 
11148
 
 
11149
 
 
11150
fi
 
11151
if test -z "$ac_cv_prog_AR"; then
 
11152
  ac_ct_AR=$AR
 
11153
  # Extract the first word of "ar", so it can be a program name with args.
 
11154
set dummy ar; ac_word=$2
 
11155
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11156
$as_echo_n "checking for $ac_word... " >&6; }
 
11157
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
11158
  $as_echo_n "(cached) " >&6
 
11159
else
 
11160
  if test -n "$ac_ct_AR"; then
 
11161
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
11162
else
 
11163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11164
for as_dir in $PATH
 
11165
do
 
11166
  IFS=$as_save_IFS
 
11167
  test -z "$as_dir" && as_dir=.
 
11168
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11169
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11170
    ac_cv_prog_ac_ct_AR="ar"
 
11171
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11172
    break 2
 
11173
  fi
 
11174
done
 
11175
done
 
11176
IFS=$as_save_IFS
 
11177
 
 
11178
fi
 
11179
fi
 
11180
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
11181
if test -n "$ac_ct_AR"; then
 
11182
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
11183
$as_echo "$ac_ct_AR" >&6; }
 
11184
else
 
11185
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11186
$as_echo "no" >&6; }
 
11187
fi
 
11188
 
 
11189
  if test "x$ac_ct_AR" = x; then
 
11190
    AR="false"
 
11191
  else
 
11192
    case $cross_compiling:$ac_tool_warned in
 
11193
yes:)
 
11194
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11195
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11196
ac_tool_warned=yes ;;
 
11197
esac
 
11198
    AR=$ac_ct_AR
 
11199
  fi
 
11200
else
 
11201
  AR="$ac_cv_prog_AR"
 
11202
fi
 
11203
 
 
11204
test -z "$AR" && AR=ar
 
11205
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
 
 
11216
 
 
11217
if test -n "$ac_tool_prefix"; then
 
11218
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
11219
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
11220
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11221
$as_echo_n "checking for $ac_word... " >&6; }
 
11222
if test "${ac_cv_prog_STRIP+set}" = set; then
 
11223
  $as_echo_n "(cached) " >&6
 
11224
else
 
11225
  if test -n "$STRIP"; then
 
11226
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
11227
else
 
11228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11229
for as_dir in $PATH
 
11230
do
 
11231
  IFS=$as_save_IFS
 
11232
  test -z "$as_dir" && as_dir=.
 
11233
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11234
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11235
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
11236
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11237
    break 2
 
11238
  fi
 
11239
done
 
11240
done
 
11241
IFS=$as_save_IFS
 
11242
 
 
11243
fi
 
11244
fi
 
11245
STRIP=$ac_cv_prog_STRIP
 
11246
if test -n "$STRIP"; then
 
11247
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
11248
$as_echo "$STRIP" >&6; }
 
11249
else
 
11250
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11251
$as_echo "no" >&6; }
 
11252
fi
 
11253
 
 
11254
 
 
11255
fi
 
11256
if test -z "$ac_cv_prog_STRIP"; then
 
11257
  ac_ct_STRIP=$STRIP
 
11258
  # Extract the first word of "strip", so it can be a program name with args.
 
11259
set dummy strip; ac_word=$2
 
11260
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11261
$as_echo_n "checking for $ac_word... " >&6; }
 
11262
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
11263
  $as_echo_n "(cached) " >&6
 
11264
else
 
11265
  if test -n "$ac_ct_STRIP"; then
 
11266
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
11267
else
 
11268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11269
for as_dir in $PATH
 
11270
do
 
11271
  IFS=$as_save_IFS
 
11272
  test -z "$as_dir" && as_dir=.
 
11273
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11274
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11275
    ac_cv_prog_ac_ct_STRIP="strip"
 
11276
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11277
    break 2
 
11278
  fi
 
11279
done
 
11280
done
 
11281
IFS=$as_save_IFS
 
11282
 
 
11283
fi
 
11284
fi
 
11285
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
11286
if test -n "$ac_ct_STRIP"; then
 
11287
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
11288
$as_echo "$ac_ct_STRIP" >&6; }
 
11289
else
 
11290
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11291
$as_echo "no" >&6; }
 
11292
fi
 
11293
 
 
11294
  if test "x$ac_ct_STRIP" = x; then
 
11295
    STRIP=":"
 
11296
  else
 
11297
    case $cross_compiling:$ac_tool_warned in
 
11298
yes:)
 
11299
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11300
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11301
ac_tool_warned=yes ;;
 
11302
esac
 
11303
    STRIP=$ac_ct_STRIP
 
11304
  fi
 
11305
else
 
11306
  STRIP="$ac_cv_prog_STRIP"
 
11307
fi
 
11308
 
 
11309
test -z "$STRIP" && STRIP=:
 
11310
 
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
if test -n "$ac_tool_prefix"; then
 
11317
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
11318
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
11319
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11320
$as_echo_n "checking for $ac_word... " >&6; }
 
11321
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
11322
  $as_echo_n "(cached) " >&6
 
11323
else
 
11324
  if test -n "$RANLIB"; then
 
11325
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
11326
else
 
11327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11328
for as_dir in $PATH
 
11329
do
 
11330
  IFS=$as_save_IFS
 
11331
  test -z "$as_dir" && as_dir=.
 
11332
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11333
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11334
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
11335
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11336
    break 2
 
11337
  fi
 
11338
done
 
11339
done
 
11340
IFS=$as_save_IFS
 
11341
 
 
11342
fi
 
11343
fi
 
11344
RANLIB=$ac_cv_prog_RANLIB
 
11345
if test -n "$RANLIB"; then
 
11346
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
11347
$as_echo "$RANLIB" >&6; }
 
11348
else
 
11349
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11350
$as_echo "no" >&6; }
 
11351
fi
 
11352
 
 
11353
 
 
11354
fi
 
11355
if test -z "$ac_cv_prog_RANLIB"; then
 
11356
  ac_ct_RANLIB=$RANLIB
 
11357
  # Extract the first word of "ranlib", so it can be a program name with args.
 
11358
set dummy ranlib; ac_word=$2
 
11359
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11360
$as_echo_n "checking for $ac_word... " >&6; }
 
11361
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
11362
  $as_echo_n "(cached) " >&6
 
11363
else
 
11364
  if test -n "$ac_ct_RANLIB"; then
 
11365
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
11366
else
 
11367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11368
for as_dir in $PATH
 
11369
do
 
11370
  IFS=$as_save_IFS
 
11371
  test -z "$as_dir" && as_dir=.
 
11372
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11373
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11374
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
11375
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11376
    break 2
 
11377
  fi
 
11378
done
 
11379
done
 
11380
IFS=$as_save_IFS
 
11381
 
 
11382
fi
 
11383
fi
 
11384
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
11385
if test -n "$ac_ct_RANLIB"; then
 
11386
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
11387
$as_echo "$ac_ct_RANLIB" >&6; }
 
11388
else
 
11389
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11390
$as_echo "no" >&6; }
 
11391
fi
 
11392
 
 
11393
  if test "x$ac_ct_RANLIB" = x; then
 
11394
    RANLIB=":"
 
11395
  else
 
11396
    case $cross_compiling:$ac_tool_warned in
 
11397
yes:)
 
11398
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11399
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11400
ac_tool_warned=yes ;;
 
11401
esac
 
11402
    RANLIB=$ac_ct_RANLIB
 
11403
  fi
 
11404
else
 
11405
  RANLIB="$ac_cv_prog_RANLIB"
 
11406
fi
 
11407
 
 
11408
test -z "$RANLIB" && RANLIB=:
 
11409
 
 
11410
 
 
11411
 
 
11412
 
 
11413
 
 
11414
 
 
11415
# Determine commands to create old-style static archives.
 
11416
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
11417
old_postinstall_cmds='chmod 644 $oldlib'
 
11418
old_postuninstall_cmds=
 
11419
 
 
11420
if test -n "$RANLIB"; then
 
11421
  case $host_os in
 
11422
  openbsd*)
 
11423
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
11424
    ;;
 
11425
  *)
 
11426
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
11427
    ;;
 
11428
  esac
 
11429
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
11430
fi
 
11431
 
 
11432
 
 
11433
 
 
11434
 
 
11435
 
 
11436
 
 
11437
 
 
11438
 
 
11439
 
 
11440
 
 
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
 
11446
 
 
11447
 
 
11448
 
 
11449
 
 
11450
 
 
11451
 
 
11452
 
 
11453
 
 
11454
 
 
11455
 
 
11456
 
 
11457
 
 
11458
 
 
11459
 
 
11460
 
 
11461
 
 
11462
 
 
11463
 
 
11464
 
 
11465
# If no C compiler was specified, use CC.
 
11466
LTCC=${LTCC-"$CC"}
 
11467
 
 
11468
# If no C compiler flags were specified, use CFLAGS.
 
11469
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11470
 
 
11471
# Allow CC to be a program name with arguments.
 
11472
compiler=$CC
 
11473
 
 
11474
 
 
11475
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
11476
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
11477
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
11478
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
11479
  $as_echo_n "(cached) " >&6
 
11480
else
 
11481
 
 
11482
# These are sane defaults that work on at least a few old systems.
 
11483
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
11484
 
 
11485
# Character class describing NM global symbol codes.
 
11486
symcode='[BCDEGRST]'
 
11487
 
 
11488
# Regexp to match symbols that can be accessed directly from C.
 
11489
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
11490
 
 
11491
# Define system-specific variables.
 
11492
case $host_os in
 
11493
aix*)
 
11494
  symcode='[BCDT]'
 
11495
  ;;
 
11496
cygwin* | mingw* | pw32* | cegcc*)
 
11497
  symcode='[ABCDGISTW]'
 
11498
  ;;
 
11499
hpux*)
 
11500
  if test "$host_cpu" = ia64; then
 
11501
    symcode='[ABCDEGRST]'
 
11502
  fi
 
11503
  ;;
 
11504
irix* | nonstopux*)
 
11505
  symcode='[BCDEGRST]'
 
11506
  ;;
 
11507
osf*)
 
11508
  symcode='[BCDEGQRST]'
 
11509
  ;;
 
11510
solaris*)
 
11511
  symcode='[BDRT]'
 
11512
  ;;
 
11513
sco3.2v5*)
 
11514
  symcode='[DT]'
 
11515
  ;;
 
11516
sysv4.2uw2*)
 
11517
  symcode='[DT]'
 
11518
  ;;
 
11519
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
11520
  symcode='[ABDT]'
 
11521
  ;;
 
11522
sysv4)
 
11523
  symcode='[DFNSTU]'
 
11524
  ;;
 
11525
esac
 
11526
 
 
11527
# If we're using GNU nm, then use its standard symbol codes.
 
11528
case `$NM -V 2>&1` in
 
11529
*GNU* | *'with BFD'*)
 
11530
  symcode='[ABCDGIRSTW]' ;;
 
11531
esac
 
11532
 
 
11533
# Transform an extracted symbol line into a proper C declaration.
 
11534
# Some systems (esp. on ia64) link data and code symbols differently,
 
11535
# so use this general approach.
 
11536
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
11537
 
 
11538
# Transform an extracted symbol line into symbol name and symbol address
 
11539
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
11540
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
11541
 
 
11542
# Handle CRLF in mingw tool chain
 
11543
opt_cr=
 
11544
case $build_os in
 
11545
mingw*)
 
11546
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
11547
  ;;
 
11548
esac
 
11549
 
 
11550
# Try without a prefix underscore, then with it.
 
11551
for ac_symprfx in "" "_"; do
 
11552
 
 
11553
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
11554
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
11555
 
 
11556
  # Write the raw and C identifiers.
 
11557
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
11558
    # Fake it for dumpbin and say T for any non-static function
 
11559
    # and D for any global variable.
 
11560
    # Also find C++ and __fastcall symbols from MSVC++,
 
11561
    # which start with @ or ?.
 
11562
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
11563
"     {last_section=section; section=\$ 3};"\
 
11564
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
11565
"     \$ 0!~/External *\|/{next};"\
 
11566
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
11567
"     {if(hide[section]) next};"\
 
11568
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
11569
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
11570
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
11571
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
11572
"     ' prfx=^$ac_symprfx"
 
11573
  else
 
11574
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
11575
  fi
 
11576
 
 
11577
  # Check to see that the pipe works correctly.
 
11578
  pipe_works=no
 
11579
 
 
11580
  rm -f conftest*
 
11581
  cat > conftest.$ac_ext <<_LT_EOF
 
11582
#ifdef __cplusplus
 
11583
extern "C" {
 
11584
#endif
 
11585
char nm_test_var;
 
11586
void nm_test_func(void);
 
11587
void nm_test_func(void){}
 
11588
#ifdef __cplusplus
 
11589
}
 
11590
#endif
 
11591
int main(){nm_test_var='a';nm_test_func();return(0);}
 
11592
_LT_EOF
 
11593
 
 
11594
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11595
  (eval $ac_compile) 2>&5
 
11596
  ac_status=$?
 
11597
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11598
  (exit $ac_status); }; then
 
11599
    # Now try to grab the symbols.
 
11600
    nlist=conftest.nm
 
11601
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
11602
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
11603
  ac_status=$?
 
11604
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11605
  (exit $ac_status); } && test -s "$nlist"; then
 
11606
      # Try sorting and uniquifying the output.
 
11607
      if sort "$nlist" | uniq > "$nlist"T; then
 
11608
        mv -f "$nlist"T "$nlist"
 
11609
      else
 
11610
        rm -f "$nlist"T
 
11611
      fi
 
11612
 
 
11613
      # Make sure that we snagged all the symbols we need.
 
11614
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
11615
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
11616
          cat <<_LT_EOF > conftest.$ac_ext
 
11617
#ifdef __cplusplus
 
11618
extern "C" {
 
11619
#endif
 
11620
 
 
11621
_LT_EOF
 
11622
          # Now generate the symbol file.
 
11623
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
11624
 
 
11625
          cat <<_LT_EOF >> conftest.$ac_ext
 
11626
 
 
11627
/* The mapping between symbol names and symbols.  */
 
11628
const struct {
 
11629
  const char *name;
 
11630
  void       *address;
 
11631
}
 
11632
lt__PROGRAM__LTX_preloaded_symbols[] =
 
11633
{
 
11634
  { "@PROGRAM@", (void *) 0 },
 
11635
_LT_EOF
 
11636
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
11637
          cat <<\_LT_EOF >> conftest.$ac_ext
 
11638
  {0, (void *) 0}
 
11639
};
 
11640
 
 
11641
/* This works around a problem in FreeBSD linker */
 
11642
#ifdef FREEBSD_WORKAROUND
 
11643
static const void *lt_preloaded_setup() {
 
11644
  return lt__PROGRAM__LTX_preloaded_symbols;
 
11645
}
 
11646
#endif
 
11647
 
 
11648
#ifdef __cplusplus
 
11649
}
 
11650
#endif
 
11651
_LT_EOF
 
11652
          # Now try linking the two files.
 
11653
          mv conftest.$ac_objext conftstm.$ac_objext
 
11654
          lt_save_LIBS="$LIBS"
 
11655
          lt_save_CFLAGS="$CFLAGS"
 
11656
          LIBS="conftstm.$ac_objext"
 
11657
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
11658
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11659
  (eval $ac_link) 2>&5
 
11660
  ac_status=$?
 
11661
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11662
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
11663
            pipe_works=yes
 
11664
          fi
 
11665
          LIBS="$lt_save_LIBS"
 
11666
          CFLAGS="$lt_save_CFLAGS"
 
11667
        else
 
11668
          echo "cannot find nm_test_func in $nlist" >&5
 
11669
        fi
 
11670
      else
 
11671
        echo "cannot find nm_test_var in $nlist" >&5
 
11672
      fi
 
11673
    else
 
11674
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
11675
    fi
 
11676
  else
 
11677
    echo "$progname: failed program was:" >&5
 
11678
    cat conftest.$ac_ext >&5
 
11679
  fi
 
11680
  rm -rf conftest* conftst*
 
11681
 
 
11682
  # Do not use the global_symbol_pipe unless it works.
 
11683
  if test "$pipe_works" = yes; then
 
11684
    break
 
11685
  else
 
11686
    lt_cv_sys_global_symbol_pipe=
 
11687
  fi
 
11688
done
 
11689
 
 
11690
fi
 
11691
 
 
11692
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
11693
  lt_cv_sys_global_symbol_to_cdecl=
 
11694
fi
 
11695
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
11696
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
11697
$as_echo "failed" >&6; }
 
11698
else
 
11699
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
11700
$as_echo "ok" >&6; }
 
11701
fi
 
11702
 
 
11703
 
 
11704
 
 
11705
 
 
11706
 
 
11707
 
 
11708
 
 
11709
 
 
11710
 
 
11711
 
 
11712
 
 
11713
 
 
11714
 
 
11715
 
 
11716
 
 
11717
 
 
11718
 
 
11719
 
 
11720
 
 
11721
 
 
11722
 
 
11723
 
 
11724
# Check whether --enable-libtool-lock was given.
 
11725
if test "${enable_libtool_lock+set}" = set; then
 
11726
  enableval=$enable_libtool_lock;
 
11727
fi
 
11728
 
 
11729
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
11730
 
 
11731
# Some flags need to be propagated to the compiler or linker for good
 
11732
# libtool support.
 
11733
case $host in
 
11734
ia64-*-hpux*)
 
11735
  # Find out which ABI we are using.
 
11736
  echo 'int i;' > conftest.$ac_ext
 
11737
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11738
  (eval $ac_compile) 2>&5
 
11739
  ac_status=$?
 
11740
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11741
  (exit $ac_status); }; then
 
11742
    case `/usr/bin/file conftest.$ac_objext` in
 
11743
      *ELF-32*)
 
11744
        HPUX_IA64_MODE="32"
 
11745
        ;;
 
11746
      *ELF-64*)
 
11747
        HPUX_IA64_MODE="64"
 
11748
        ;;
 
11749
    esac
 
11750
  fi
 
11751
  rm -rf conftest*
 
11752
  ;;
 
11753
*-*-irix6*)
 
11754
  # Find out which ABI we are using.
 
11755
  echo '#line 11755 "configure"' > conftest.$ac_ext
 
11756
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11757
  (eval $ac_compile) 2>&5
 
11758
  ac_status=$?
 
11759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11760
  (exit $ac_status); }; then
 
11761
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
11762
      case `/usr/bin/file conftest.$ac_objext` in
 
11763
        *32-bit*)
 
11764
          LD="${LD-ld} -melf32bsmip"
 
11765
          ;;
 
11766
        *N32*)
 
11767
          LD="${LD-ld} -melf32bmipn32"
 
11768
          ;;
 
11769
        *64-bit*)
 
11770
          LD="${LD-ld} -melf64bmip"
 
11771
        ;;
 
11772
      esac
 
11773
    else
 
11774
      case `/usr/bin/file conftest.$ac_objext` in
 
11775
        *32-bit*)
 
11776
          LD="${LD-ld} -32"
 
11777
          ;;
 
11778
        *N32*)
 
11779
          LD="${LD-ld} -n32"
 
11780
          ;;
 
11781
        *64-bit*)
 
11782
          LD="${LD-ld} -64"
 
11783
          ;;
 
11784
      esac
 
11785
    fi
 
11786
  fi
 
11787
  rm -rf conftest*
 
11788
  ;;
 
11789
 
 
11790
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
11791
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
11792
  # Find out which ABI we are using.
 
11793
  echo 'int i;' > conftest.$ac_ext
 
11794
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11795
  (eval $ac_compile) 2>&5
 
11796
  ac_status=$?
 
11797
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11798
  (exit $ac_status); }; then
 
11799
    case `/usr/bin/file conftest.o` in
 
11800
      *32-bit*)
 
11801
        case $host in
 
11802
          x86_64-*kfreebsd*-gnu)
 
11803
            LD="${LD-ld} -m elf_i386_fbsd"
 
11804
            ;;
 
11805
          x86_64-*linux*)
 
11806
            LD="${LD-ld} -m elf_i386"
 
11807
            ;;
 
11808
          ppc64-*linux*|powerpc64-*linux*)
 
11809
            LD="${LD-ld} -m elf32ppclinux"
 
11810
            ;;
 
11811
          s390x-*linux*)
 
11812
            LD="${LD-ld} -m elf_s390"
 
11813
            ;;
 
11814
          sparc64-*linux*)
 
11815
            LD="${LD-ld} -m elf32_sparc"
 
11816
            ;;
 
11817
        esac
 
11818
        ;;
 
11819
      *64-bit*)
 
11820
        case $host in
 
11821
          x86_64-*kfreebsd*-gnu)
 
11822
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
11823
            ;;
 
11824
          x86_64-*linux*)
 
11825
            LD="${LD-ld} -m elf_x86_64"
 
11826
            ;;
 
11827
          ppc*-*linux*|powerpc*-*linux*)
 
11828
            LD="${LD-ld} -m elf64ppc"
 
11829
            ;;
 
11830
          s390*-*linux*|s390*-*tpf*)
 
11831
            LD="${LD-ld} -m elf64_s390"
 
11832
            ;;
 
11833
          sparc*-*linux*)
 
11834
            LD="${LD-ld} -m elf64_sparc"
 
11835
            ;;
 
11836
        esac
 
11837
        ;;
 
11838
    esac
 
11839
  fi
 
11840
  rm -rf conftest*
 
11841
  ;;
 
11842
 
 
11843
*-*-sco3.2v5*)
 
11844
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
11845
  SAVE_CFLAGS="$CFLAGS"
 
11846
  CFLAGS="$CFLAGS -belf"
 
11847
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
11848
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
11849
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
11850
  $as_echo_n "(cached) " >&6
 
11851
else
 
11852
  ac_ext=c
 
11853
ac_cpp='$CPP $CPPFLAGS'
 
11854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11857
 
 
11858
     cat >conftest.$ac_ext <<_ACEOF
 
11859
/* confdefs.h.  */
 
11860
_ACEOF
 
11861
cat confdefs.h >>conftest.$ac_ext
 
11862
cat >>conftest.$ac_ext <<_ACEOF
 
11863
/* end confdefs.h.  */
 
11864
 
 
11865
int
 
11866
main ()
 
11867
{
 
11868
 
 
11869
  ;
 
11870
  return 0;
 
11871
}
 
11872
_ACEOF
 
11873
rm -f conftest.$ac_objext conftest$ac_exeext
 
11874
if { (ac_try="$ac_link"
 
11875
case "(($ac_try" in
 
11876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11877
  *) ac_try_echo=$ac_try;;
 
11878
esac
 
11879
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11880
$as_echo "$ac_try_echo") >&5
 
11881
  (eval "$ac_link") 2>conftest.er1
 
11882
  ac_status=$?
 
11883
  grep -v '^ *+' conftest.er1 >conftest.err
 
11884
  rm -f conftest.er1
 
11885
  cat conftest.err >&5
 
11886
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11887
  (exit $ac_status); } && {
 
11888
         test -z "$ac_c_werror_flag" ||
 
11889
         test ! -s conftest.err
 
11890
       } && test -s conftest$ac_exeext && {
 
11891
         test "$cross_compiling" = yes ||
 
11892
         $as_test_x conftest$ac_exeext
 
11893
       }; then
 
11894
  lt_cv_cc_needs_belf=yes
 
11895
else
 
11896
  $as_echo "$as_me: failed program was:" >&5
 
11897
sed 's/^/| /' conftest.$ac_ext >&5
 
11898
 
 
11899
        lt_cv_cc_needs_belf=no
 
11900
fi
 
11901
 
 
11902
rm -rf conftest.dSYM
 
11903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11904
      conftest$ac_exeext conftest.$ac_ext
 
11905
     ac_ext=c
 
11906
ac_cpp='$CPP $CPPFLAGS'
 
11907
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11908
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11909
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11910
 
 
11911
fi
 
11912
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
11913
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
11914
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
11915
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
11916
    CFLAGS="$SAVE_CFLAGS"
 
11917
  fi
 
11918
  ;;
 
11919
sparc*-*solaris*)
 
11920
  # Find out which ABI we are using.
 
11921
  echo 'int i;' > conftest.$ac_ext
 
11922
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11923
  (eval $ac_compile) 2>&5
 
11924
  ac_status=$?
 
11925
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11926
  (exit $ac_status); }; then
 
11927
    case `/usr/bin/file conftest.o` in
 
11928
    *64-bit*)
 
11929
      case $lt_cv_prog_gnu_ld in
 
11930
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
11931
      *)
 
11932
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
11933
          LD="${LD-ld} -64"
 
11934
        fi
 
11935
        ;;
 
11936
      esac
 
11937
      ;;
 
11938
    esac
 
11939
  fi
 
11940
  rm -rf conftest*
 
11941
  ;;
 
11942
esac
 
11943
 
 
11944
need_locks="$enable_libtool_lock"
 
11945
 
 
11946
 
 
11947
  case $host_os in
 
11948
    rhapsody* | darwin*)
 
11949
    if test -n "$ac_tool_prefix"; then
 
11950
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
11951
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
11952
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11953
$as_echo_n "checking for $ac_word... " >&6; }
 
11954
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
11955
  $as_echo_n "(cached) " >&6
 
11956
else
 
11957
  if test -n "$DSYMUTIL"; then
 
11958
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
11959
else
 
11960
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11961
for as_dir in $PATH
 
11962
do
 
11963
  IFS=$as_save_IFS
 
11964
  test -z "$as_dir" && as_dir=.
 
11965
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11966
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11967
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
11968
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11969
    break 2
 
11970
  fi
 
11971
done
 
11972
done
 
11973
IFS=$as_save_IFS
 
11974
 
 
11975
fi
 
11976
fi
 
11977
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
11978
if test -n "$DSYMUTIL"; then
 
11979
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
11980
$as_echo "$DSYMUTIL" >&6; }
 
11981
else
 
11982
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11983
$as_echo "no" >&6; }
 
11984
fi
 
11985
 
 
11986
 
 
11987
fi
 
11988
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
11989
  ac_ct_DSYMUTIL=$DSYMUTIL
 
11990
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
11991
set dummy dsymutil; ac_word=$2
 
11992
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11993
$as_echo_n "checking for $ac_word... " >&6; }
 
11994
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
11995
  $as_echo_n "(cached) " >&6
 
11996
else
 
11997
  if test -n "$ac_ct_DSYMUTIL"; then
 
11998
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
11999
else
 
12000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12001
for as_dir in $PATH
 
12002
do
 
12003
  IFS=$as_save_IFS
 
12004
  test -z "$as_dir" && as_dir=.
 
12005
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12006
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12007
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
12008
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12009
    break 2
 
12010
  fi
 
12011
done
 
12012
done
 
12013
IFS=$as_save_IFS
 
12014
 
 
12015
fi
 
12016
fi
 
12017
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
12018
if test -n "$ac_ct_DSYMUTIL"; then
 
12019
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
12020
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
12021
else
 
12022
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12023
$as_echo "no" >&6; }
 
12024
fi
 
12025
 
 
12026
  if test "x$ac_ct_DSYMUTIL" = x; then
 
12027
    DSYMUTIL=":"
 
12028
  else
 
12029
    case $cross_compiling:$ac_tool_warned in
 
12030
yes:)
 
12031
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
12032
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12033
ac_tool_warned=yes ;;
 
12034
esac
 
12035
    DSYMUTIL=$ac_ct_DSYMUTIL
 
12036
  fi
 
12037
else
 
12038
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
12039
fi
 
12040
 
 
12041
    if test -n "$ac_tool_prefix"; then
 
12042
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
12043
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
12044
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12045
$as_echo_n "checking for $ac_word... " >&6; }
 
12046
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
12047
  $as_echo_n "(cached) " >&6
 
12048
else
 
12049
  if test -n "$NMEDIT"; then
 
12050
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
12051
else
 
12052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12053
for as_dir in $PATH
 
12054
do
 
12055
  IFS=$as_save_IFS
 
12056
  test -z "$as_dir" && as_dir=.
 
12057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12058
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12059
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
12060
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12061
    break 2
 
12062
  fi
 
12063
done
 
12064
done
 
12065
IFS=$as_save_IFS
 
12066
 
 
12067
fi
 
12068
fi
 
12069
NMEDIT=$ac_cv_prog_NMEDIT
 
12070
if test -n "$NMEDIT"; then
 
12071
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
12072
$as_echo "$NMEDIT" >&6; }
 
12073
else
 
12074
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12075
$as_echo "no" >&6; }
 
12076
fi
 
12077
 
 
12078
 
 
12079
fi
 
12080
if test -z "$ac_cv_prog_NMEDIT"; then
 
12081
  ac_ct_NMEDIT=$NMEDIT
 
12082
  # Extract the first word of "nmedit", so it can be a program name with args.
 
12083
set dummy nmedit; ac_word=$2
 
12084
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12085
$as_echo_n "checking for $ac_word... " >&6; }
 
12086
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
12087
  $as_echo_n "(cached) " >&6
 
12088
else
 
12089
  if test -n "$ac_ct_NMEDIT"; then
 
12090
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
12091
else
 
12092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12093
for as_dir in $PATH
 
12094
do
 
12095
  IFS=$as_save_IFS
 
12096
  test -z "$as_dir" && as_dir=.
 
12097
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12098
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12099
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
12100
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12101
    break 2
 
12102
  fi
 
12103
done
 
12104
done
 
12105
IFS=$as_save_IFS
 
12106
 
 
12107
fi
 
12108
fi
 
12109
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
12110
if test -n "$ac_ct_NMEDIT"; then
 
12111
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
12112
$as_echo "$ac_ct_NMEDIT" >&6; }
 
12113
else
 
12114
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12115
$as_echo "no" >&6; }
 
12116
fi
 
12117
 
 
12118
  if test "x$ac_ct_NMEDIT" = x; then
 
12119
    NMEDIT=":"
 
12120
  else
 
12121
    case $cross_compiling:$ac_tool_warned in
 
12122
yes:)
 
12123
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
12124
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12125
ac_tool_warned=yes ;;
 
12126
esac
 
12127
    NMEDIT=$ac_ct_NMEDIT
 
12128
  fi
 
12129
else
 
12130
  NMEDIT="$ac_cv_prog_NMEDIT"
 
12131
fi
 
12132
 
 
12133
    if test -n "$ac_tool_prefix"; then
 
12134
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
12135
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
12136
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12137
$as_echo_n "checking for $ac_word... " >&6; }
 
12138
if test "${ac_cv_prog_LIPO+set}" = set; then
 
12139
  $as_echo_n "(cached) " >&6
 
12140
else
 
12141
  if test -n "$LIPO"; then
 
12142
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
12143
else
 
12144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12145
for as_dir in $PATH
 
12146
do
 
12147
  IFS=$as_save_IFS
 
12148
  test -z "$as_dir" && as_dir=.
 
12149
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12150
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12151
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
12152
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12153
    break 2
 
12154
  fi
 
12155
done
 
12156
done
 
12157
IFS=$as_save_IFS
 
12158
 
 
12159
fi
 
12160
fi
 
12161
LIPO=$ac_cv_prog_LIPO
 
12162
if test -n "$LIPO"; then
 
12163
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
12164
$as_echo "$LIPO" >&6; }
 
12165
else
 
12166
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12167
$as_echo "no" >&6; }
 
12168
fi
 
12169
 
 
12170
 
 
12171
fi
 
12172
if test -z "$ac_cv_prog_LIPO"; then
 
12173
  ac_ct_LIPO=$LIPO
 
12174
  # Extract the first word of "lipo", so it can be a program name with args.
 
12175
set dummy lipo; ac_word=$2
 
12176
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12177
$as_echo_n "checking for $ac_word... " >&6; }
 
12178
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
12179
  $as_echo_n "(cached) " >&6
 
12180
else
 
12181
  if test -n "$ac_ct_LIPO"; then
 
12182
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
12183
else
 
12184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12185
for as_dir in $PATH
 
12186
do
 
12187
  IFS=$as_save_IFS
 
12188
  test -z "$as_dir" && as_dir=.
 
12189
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12190
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12191
    ac_cv_prog_ac_ct_LIPO="lipo"
 
12192
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12193
    break 2
 
12194
  fi
 
12195
done
 
12196
done
 
12197
IFS=$as_save_IFS
 
12198
 
 
12199
fi
 
12200
fi
 
12201
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
12202
if test -n "$ac_ct_LIPO"; then
 
12203
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
12204
$as_echo "$ac_ct_LIPO" >&6; }
 
12205
else
 
12206
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12207
$as_echo "no" >&6; }
 
12208
fi
 
12209
 
 
12210
  if test "x$ac_ct_LIPO" = x; then
 
12211
    LIPO=":"
 
12212
  else
 
12213
    case $cross_compiling:$ac_tool_warned in
 
12214
yes:)
 
12215
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
12216
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12217
ac_tool_warned=yes ;;
 
12218
esac
 
12219
    LIPO=$ac_ct_LIPO
 
12220
  fi
 
12221
else
 
12222
  LIPO="$ac_cv_prog_LIPO"
 
12223
fi
 
12224
 
 
12225
    if test -n "$ac_tool_prefix"; then
 
12226
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
12227
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
12228
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12229
$as_echo_n "checking for $ac_word... " >&6; }
 
12230
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
12231
  $as_echo_n "(cached) " >&6
 
12232
else
 
12233
  if test -n "$OTOOL"; then
 
12234
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
12235
else
 
12236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12237
for as_dir in $PATH
 
12238
do
 
12239
  IFS=$as_save_IFS
 
12240
  test -z "$as_dir" && as_dir=.
 
12241
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12242
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12243
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
12244
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12245
    break 2
 
12246
  fi
 
12247
done
 
12248
done
 
12249
IFS=$as_save_IFS
 
12250
 
 
12251
fi
 
12252
fi
 
12253
OTOOL=$ac_cv_prog_OTOOL
 
12254
if test -n "$OTOOL"; then
 
12255
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
12256
$as_echo "$OTOOL" >&6; }
 
12257
else
 
12258
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12259
$as_echo "no" >&6; }
 
12260
fi
 
12261
 
 
12262
 
 
12263
fi
 
12264
if test -z "$ac_cv_prog_OTOOL"; then
 
12265
  ac_ct_OTOOL=$OTOOL
 
12266
  # Extract the first word of "otool", so it can be a program name with args.
 
12267
set dummy otool; ac_word=$2
 
12268
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12269
$as_echo_n "checking for $ac_word... " >&6; }
 
12270
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
12271
  $as_echo_n "(cached) " >&6
 
12272
else
 
12273
  if test -n "$ac_ct_OTOOL"; then
 
12274
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
12275
else
 
12276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12277
for as_dir in $PATH
 
12278
do
 
12279
  IFS=$as_save_IFS
 
12280
  test -z "$as_dir" && as_dir=.
 
12281
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12283
    ac_cv_prog_ac_ct_OTOOL="otool"
 
12284
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12285
    break 2
 
12286
  fi
 
12287
done
 
12288
done
 
12289
IFS=$as_save_IFS
 
12290
 
 
12291
fi
 
12292
fi
 
12293
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
12294
if test -n "$ac_ct_OTOOL"; then
 
12295
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
12296
$as_echo "$ac_ct_OTOOL" >&6; }
 
12297
else
 
12298
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12299
$as_echo "no" >&6; }
 
12300
fi
 
12301
 
 
12302
  if test "x$ac_ct_OTOOL" = x; then
 
12303
    OTOOL=":"
 
12304
  else
 
12305
    case $cross_compiling:$ac_tool_warned in
 
12306
yes:)
 
12307
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
12308
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12309
ac_tool_warned=yes ;;
 
12310
esac
 
12311
    OTOOL=$ac_ct_OTOOL
 
12312
  fi
 
12313
else
 
12314
  OTOOL="$ac_cv_prog_OTOOL"
 
12315
fi
 
12316
 
 
12317
    if test -n "$ac_tool_prefix"; then
 
12318
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
12319
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
12320
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12321
$as_echo_n "checking for $ac_word... " >&6; }
 
12322
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
12323
  $as_echo_n "(cached) " >&6
 
12324
else
 
12325
  if test -n "$OTOOL64"; then
 
12326
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
12327
else
 
12328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12329
for as_dir in $PATH
 
12330
do
 
12331
  IFS=$as_save_IFS
 
12332
  test -z "$as_dir" && as_dir=.
 
12333
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12334
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12335
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
12336
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12337
    break 2
 
12338
  fi
 
12339
done
 
12340
done
 
12341
IFS=$as_save_IFS
 
12342
 
 
12343
fi
 
12344
fi
 
12345
OTOOL64=$ac_cv_prog_OTOOL64
 
12346
if test -n "$OTOOL64"; then
 
12347
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
12348
$as_echo "$OTOOL64" >&6; }
 
12349
else
 
12350
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12351
$as_echo "no" >&6; }
 
12352
fi
 
12353
 
 
12354
 
 
12355
fi
 
12356
if test -z "$ac_cv_prog_OTOOL64"; then
 
12357
  ac_ct_OTOOL64=$OTOOL64
 
12358
  # Extract the first word of "otool64", so it can be a program name with args.
 
12359
set dummy otool64; ac_word=$2
 
12360
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12361
$as_echo_n "checking for $ac_word... " >&6; }
 
12362
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
12363
  $as_echo_n "(cached) " >&6
 
12364
else
 
12365
  if test -n "$ac_ct_OTOOL64"; then
 
12366
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
12367
else
 
12368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12369
for as_dir in $PATH
 
12370
do
 
12371
  IFS=$as_save_IFS
 
12372
  test -z "$as_dir" && as_dir=.
 
12373
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12374
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12375
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
12376
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12377
    break 2
 
12378
  fi
 
12379
done
 
12380
done
 
12381
IFS=$as_save_IFS
 
12382
 
 
12383
fi
 
12384
fi
 
12385
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
12386
if test -n "$ac_ct_OTOOL64"; then
 
12387
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
12388
$as_echo "$ac_ct_OTOOL64" >&6; }
 
12389
else
 
12390
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12391
$as_echo "no" >&6; }
 
12392
fi
 
12393
 
 
12394
  if test "x$ac_ct_OTOOL64" = x; then
 
12395
    OTOOL64=":"
 
12396
  else
 
12397
    case $cross_compiling:$ac_tool_warned in
 
12398
yes:)
 
12399
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
12400
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12401
ac_tool_warned=yes ;;
 
12402
esac
 
12403
    OTOOL64=$ac_ct_OTOOL64
 
12404
  fi
 
12405
else
 
12406
  OTOOL64="$ac_cv_prog_OTOOL64"
 
12407
fi
 
12408
 
 
12409
 
 
12410
 
 
12411
 
 
12412
 
 
12413
 
 
12414
 
 
12415
 
 
12416
 
 
12417
 
 
12418
 
 
12419
 
 
12420
 
 
12421
 
 
12422
 
 
12423
 
 
12424
 
 
12425
 
 
12426
 
 
12427
 
 
12428
 
 
12429
 
 
12430
 
 
12431
 
 
12432
 
 
12433
 
 
12434
 
 
12435
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
12436
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
12437
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
12438
  $as_echo_n "(cached) " >&6
 
12439
else
 
12440
  lt_cv_apple_cc_single_mod=no
 
12441
      if test -z "${LT_MULTI_MODULE}"; then
 
12442
        # By default we will add the -single_module flag. You can override
 
12443
        # by either setting the environment variable LT_MULTI_MODULE
 
12444
        # non-empty at configure time, or by adding -multi_module to the
 
12445
        # link flags.
 
12446
        rm -rf libconftest.dylib*
 
12447
        echo "int foo(void){return 1;}" > conftest.c
 
12448
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
12449
-dynamiclib -Wl,-single_module conftest.c" >&5
 
12450
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
12451
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
12452
        _lt_result=$?
 
12453
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
12454
          lt_cv_apple_cc_single_mod=yes
 
12455
        else
 
12456
          cat conftest.err >&5
 
12457
        fi
 
12458
        rm -rf libconftest.dylib*
 
12459
        rm -f conftest.*
 
12460
      fi
 
12461
fi
 
12462
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
12463
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
12464
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
12465
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
12466
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
12467
  $as_echo_n "(cached) " >&6
 
12468
else
 
12469
  lt_cv_ld_exported_symbols_list=no
 
12470
      save_LDFLAGS=$LDFLAGS
 
12471
      echo "_main" > conftest.sym
 
12472
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
12473
      cat >conftest.$ac_ext <<_ACEOF
 
12474
/* confdefs.h.  */
 
12475
_ACEOF
 
12476
cat confdefs.h >>conftest.$ac_ext
 
12477
cat >>conftest.$ac_ext <<_ACEOF
 
12478
/* end confdefs.h.  */
 
12479
 
 
12480
int
 
12481
main ()
 
12482
{
 
12483
 
 
12484
  ;
 
12485
  return 0;
 
12486
}
 
12487
_ACEOF
 
12488
rm -f conftest.$ac_objext conftest$ac_exeext
 
12489
if { (ac_try="$ac_link"
 
12490
case "(($ac_try" in
 
12491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12492
  *) ac_try_echo=$ac_try;;
 
12493
esac
 
12494
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12495
$as_echo "$ac_try_echo") >&5
 
12496
  (eval "$ac_link") 2>conftest.er1
 
12497
  ac_status=$?
 
12498
  grep -v '^ *+' conftest.er1 >conftest.err
 
12499
  rm -f conftest.er1
 
12500
  cat conftest.err >&5
 
12501
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12502
  (exit $ac_status); } && {
 
12503
         test -z "$ac_c_werror_flag" ||
 
12504
         test ! -s conftest.err
 
12505
       } && test -s conftest$ac_exeext && {
 
12506
         test "$cross_compiling" = yes ||
 
12507
         $as_test_x conftest$ac_exeext
 
12508
       }; then
 
12509
  lt_cv_ld_exported_symbols_list=yes
 
12510
else
 
12511
  $as_echo "$as_me: failed program was:" >&5
 
12512
sed 's/^/| /' conftest.$ac_ext >&5
 
12513
 
 
12514
        lt_cv_ld_exported_symbols_list=no
 
12515
fi
 
12516
 
 
12517
rm -rf conftest.dSYM
 
12518
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12519
      conftest$ac_exeext conftest.$ac_ext
 
12520
        LDFLAGS="$save_LDFLAGS"
 
12521
 
 
12522
fi
 
12523
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
12524
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
12525
    case $host_os in
 
12526
    rhapsody* | darwin1.[012])
 
12527
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
12528
    darwin1.*)
 
12529
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
12530
    darwin*) # darwin 5.x on
 
12531
      # if running on 10.5 or later, the deployment target defaults
 
12532
      # to the OS version, if on x86, and 10.4, the deployment
 
12533
      # target defaults to 10.4. Don't you love it?
 
12534
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
12535
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
12536
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
12537
        10.[012]*)
 
12538
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
12539
        10.*)
 
12540
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
12541
      esac
 
12542
    ;;
 
12543
  esac
 
12544
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
12545
      _lt_dar_single_mod='$single_module'
 
12546
    fi
 
12547
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
12548
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
12549
    else
 
12550
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12551
    fi
 
12552
    if test "$DSYMUTIL" != ":"; then
 
12553
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
12554
    else
 
12555
      _lt_dsymutil=
 
12556
    fi
 
12557
    ;;
 
12558
  esac
 
12559
 
 
12560
 
 
12561
for ac_header in dlfcn.h
 
12562
do
 
12563
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12564
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12565
$as_echo_n "checking for $ac_header... " >&6; }
 
12566
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12567
  $as_echo_n "(cached) " >&6
 
12568
else
 
12569
  cat >conftest.$ac_ext <<_ACEOF
 
12570
/* confdefs.h.  */
 
12571
_ACEOF
 
12572
cat confdefs.h >>conftest.$ac_ext
 
12573
cat >>conftest.$ac_ext <<_ACEOF
 
12574
/* end confdefs.h.  */
 
12575
$ac_includes_default
 
12576
 
 
12577
#include <$ac_header>
 
12578
_ACEOF
 
12579
rm -f conftest.$ac_objext
 
12580
if { (ac_try="$ac_compile"
 
12581
case "(($ac_try" in
 
12582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12583
  *) ac_try_echo=$ac_try;;
 
12584
esac
 
12585
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12586
$as_echo "$ac_try_echo") >&5
 
12587
  (eval "$ac_compile") 2>conftest.er1
 
12588
  ac_status=$?
 
12589
  grep -v '^ *+' conftest.er1 >conftest.err
 
12590
  rm -f conftest.er1
 
12591
  cat conftest.err >&5
 
12592
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12593
  (exit $ac_status); } && {
 
12594
         test -z "$ac_c_werror_flag" ||
 
12595
         test ! -s conftest.err
 
12596
       } && test -s conftest.$ac_objext; then
 
12597
  eval "$as_ac_Header=yes"
 
12598
else
 
12599
  $as_echo "$as_me: failed program was:" >&5
 
12600
sed 's/^/| /' conftest.$ac_ext >&5
 
12601
 
 
12602
        eval "$as_ac_Header=no"
 
12603
fi
 
12604
 
 
12605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12606
fi
 
12607
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12608
                 $as_echo "$as_val"'`
 
12609
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12610
$as_echo "$ac_res" >&6; }
 
12611
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12612
                 $as_echo "$as_val"'`
 
12613
   if test "x$as_val" = x""yes; then
 
12614
  cat >>confdefs.h <<_ACEOF
 
12615
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12616
_ACEOF
 
12617
 
 
12618
fi
 
12619
 
 
12620
done
 
12621
 
 
12622
 
 
12623
 
 
12624
ac_ext=cpp
 
12625
ac_cpp='$CXXCPP $CPPFLAGS'
 
12626
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12627
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12628
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12629
if test -z "$CXX"; then
 
12630
  if test -n "$CCC"; then
 
12631
    CXX=$CCC
 
12632
  else
 
12633
    if test -n "$ac_tool_prefix"; then
 
12634
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
12635
  do
 
12636
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
12637
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
12638
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12639
$as_echo_n "checking for $ac_word... " >&6; }
 
12640
if test "${ac_cv_prog_CXX+set}" = set; then
 
12641
  $as_echo_n "(cached) " >&6
 
12642
else
 
12643
  if test -n "$CXX"; then
 
12644
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
12645
else
 
12646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12647
for as_dir in $PATH
 
12648
do
 
12649
  IFS=$as_save_IFS
 
12650
  test -z "$as_dir" && as_dir=.
 
12651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12652
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12653
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
12654
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12655
    break 2
 
12656
  fi
 
12657
done
 
12658
done
 
12659
IFS=$as_save_IFS
 
12660
 
 
12661
fi
 
12662
fi
 
12663
CXX=$ac_cv_prog_CXX
 
12664
if test -n "$CXX"; then
 
12665
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
12666
$as_echo "$CXX" >&6; }
 
12667
else
 
12668
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12669
$as_echo "no" >&6; }
 
12670
fi
 
12671
 
 
12672
 
 
12673
    test -n "$CXX" && break
 
12674
  done
 
12675
fi
 
12676
if test -z "$CXX"; then
 
12677
  ac_ct_CXX=$CXX
 
12678
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
12679
do
 
12680
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12681
set dummy $ac_prog; ac_word=$2
 
12682
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12683
$as_echo_n "checking for $ac_word... " >&6; }
 
12684
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
12685
  $as_echo_n "(cached) " >&6
 
12686
else
 
12687
  if test -n "$ac_ct_CXX"; then
 
12688
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
12689
else
 
12690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12691
for as_dir in $PATH
 
12692
do
 
12693
  IFS=$as_save_IFS
 
12694
  test -z "$as_dir" && as_dir=.
 
12695
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12696
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12697
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
12698
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12699
    break 2
 
12700
  fi
 
12701
done
 
12702
done
 
12703
IFS=$as_save_IFS
 
12704
 
 
12705
fi
 
12706
fi
 
12707
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
12708
if test -n "$ac_ct_CXX"; then
 
12709
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
12710
$as_echo "$ac_ct_CXX" >&6; }
 
12711
else
 
12712
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12713
$as_echo "no" >&6; }
 
12714
fi
 
12715
 
 
12716
 
 
12717
  test -n "$ac_ct_CXX" && break
 
12718
done
 
12719
 
 
12720
  if test "x$ac_ct_CXX" = x; then
 
12721
    CXX="g++"
 
12722
  else
 
12723
    case $cross_compiling:$ac_tool_warned in
 
12724
yes:)
 
12725
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
12726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12727
ac_tool_warned=yes ;;
 
12728
esac
 
12729
    CXX=$ac_ct_CXX
 
12730
  fi
 
12731
fi
 
12732
 
 
12733
  fi
 
12734
fi
 
12735
# Provide some information about the compiler.
 
12736
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
12737
set X $ac_compile
 
12738
ac_compiler=$2
 
12739
{ (ac_try="$ac_compiler --version >&5"
 
12740
case "(($ac_try" in
 
12741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12742
  *) ac_try_echo=$ac_try;;
 
12743
esac
 
12744
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12745
$as_echo "$ac_try_echo") >&5
 
12746
  (eval "$ac_compiler --version >&5") 2>&5
 
12747
  ac_status=$?
 
12748
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12749
  (exit $ac_status); }
 
12750
{ (ac_try="$ac_compiler -v >&5"
 
12751
case "(($ac_try" in
 
12752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12753
  *) ac_try_echo=$ac_try;;
 
12754
esac
 
12755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12756
$as_echo "$ac_try_echo") >&5
 
12757
  (eval "$ac_compiler -v >&5") 2>&5
 
12758
  ac_status=$?
 
12759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12760
  (exit $ac_status); }
 
12761
{ (ac_try="$ac_compiler -V >&5"
 
12762
case "(($ac_try" in
 
12763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12764
  *) ac_try_echo=$ac_try;;
 
12765
esac
 
12766
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12767
$as_echo "$ac_try_echo") >&5
 
12768
  (eval "$ac_compiler -V >&5") 2>&5
 
12769
  ac_status=$?
 
12770
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12771
  (exit $ac_status); }
 
12772
 
 
12773
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
12774
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
12775
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
12776
  $as_echo_n "(cached) " >&6
 
12777
else
 
12778
  cat >conftest.$ac_ext <<_ACEOF
 
12779
/* confdefs.h.  */
 
12780
_ACEOF
 
12781
cat confdefs.h >>conftest.$ac_ext
 
12782
cat >>conftest.$ac_ext <<_ACEOF
 
12783
/* end confdefs.h.  */
 
12784
 
 
12785
int
 
12786
main ()
 
12787
{
 
12788
#ifndef __GNUC__
 
12789
       choke me
 
12790
#endif
 
12791
 
 
12792
  ;
 
12793
  return 0;
 
12794
}
 
12795
_ACEOF
 
12796
rm -f conftest.$ac_objext
 
12797
if { (ac_try="$ac_compile"
 
12798
case "(($ac_try" in
 
12799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12800
  *) ac_try_echo=$ac_try;;
 
12801
esac
 
12802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12803
$as_echo "$ac_try_echo") >&5
 
12804
  (eval "$ac_compile") 2>conftest.er1
 
12805
  ac_status=$?
 
12806
  grep -v '^ *+' conftest.er1 >conftest.err
 
12807
  rm -f conftest.er1
 
12808
  cat conftest.err >&5
 
12809
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12810
  (exit $ac_status); } && {
 
12811
         test -z "$ac_cxx_werror_flag" ||
 
12812
         test ! -s conftest.err
 
12813
       } && test -s conftest.$ac_objext; then
 
12814
  ac_compiler_gnu=yes
 
12815
else
 
12816
  $as_echo "$as_me: failed program was:" >&5
 
12817
sed 's/^/| /' conftest.$ac_ext >&5
 
12818
 
 
12819
        ac_compiler_gnu=no
 
12820
fi
 
12821
 
 
12822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12823
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
12824
 
 
12825
fi
 
12826
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
12827
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
12828
if test $ac_compiler_gnu = yes; then
 
12829
  GXX=yes
 
12830
else
 
12831
  GXX=
 
12832
fi
 
12833
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
12834
ac_save_CXXFLAGS=$CXXFLAGS
 
12835
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
12836
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
12837
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
12838
  $as_echo_n "(cached) " >&6
 
12839
else
 
12840
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
12841
   ac_cxx_werror_flag=yes
 
12842
   ac_cv_prog_cxx_g=no
 
12843
   CXXFLAGS="-g"
 
12844
   cat >conftest.$ac_ext <<_ACEOF
 
12845
/* confdefs.h.  */
 
12846
_ACEOF
 
12847
cat confdefs.h >>conftest.$ac_ext
 
12848
cat >>conftest.$ac_ext <<_ACEOF
 
12849
/* end confdefs.h.  */
 
12850
 
 
12851
int
 
12852
main ()
 
12853
{
 
12854
 
 
12855
  ;
 
12856
  return 0;
 
12857
}
 
12858
_ACEOF
 
12859
rm -f conftest.$ac_objext
 
12860
if { (ac_try="$ac_compile"
 
12861
case "(($ac_try" in
 
12862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12863
  *) ac_try_echo=$ac_try;;
 
12864
esac
 
12865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12866
$as_echo "$ac_try_echo") >&5
 
12867
  (eval "$ac_compile") 2>conftest.er1
 
12868
  ac_status=$?
 
12869
  grep -v '^ *+' conftest.er1 >conftest.err
 
12870
  rm -f conftest.er1
 
12871
  cat conftest.err >&5
 
12872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12873
  (exit $ac_status); } && {
 
12874
         test -z "$ac_cxx_werror_flag" ||
 
12875
         test ! -s conftest.err
 
12876
       } && test -s conftest.$ac_objext; then
 
12877
  ac_cv_prog_cxx_g=yes
 
12878
else
 
12879
  $as_echo "$as_me: failed program was:" >&5
 
12880
sed 's/^/| /' conftest.$ac_ext >&5
 
12881
 
 
12882
        CXXFLAGS=""
 
12883
      cat >conftest.$ac_ext <<_ACEOF
 
12884
/* confdefs.h.  */
 
12885
_ACEOF
 
12886
cat confdefs.h >>conftest.$ac_ext
 
12887
cat >>conftest.$ac_ext <<_ACEOF
 
12888
/* end confdefs.h.  */
 
12889
 
 
12890
int
 
12891
main ()
 
12892
{
 
12893
 
 
12894
  ;
 
12895
  return 0;
 
12896
}
 
12897
_ACEOF
 
12898
rm -f conftest.$ac_objext
 
12899
if { (ac_try="$ac_compile"
 
12900
case "(($ac_try" in
 
12901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12902
  *) ac_try_echo=$ac_try;;
 
12903
esac
 
12904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12905
$as_echo "$ac_try_echo") >&5
 
12906
  (eval "$ac_compile") 2>conftest.er1
 
12907
  ac_status=$?
 
12908
  grep -v '^ *+' conftest.er1 >conftest.err
 
12909
  rm -f conftest.er1
 
12910
  cat conftest.err >&5
 
12911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12912
  (exit $ac_status); } && {
 
12913
         test -z "$ac_cxx_werror_flag" ||
 
12914
         test ! -s conftest.err
 
12915
       } && test -s conftest.$ac_objext; then
 
12916
  :
 
12917
else
 
12918
  $as_echo "$as_me: failed program was:" >&5
 
12919
sed 's/^/| /' conftest.$ac_ext >&5
 
12920
 
 
12921
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12922
         CXXFLAGS="-g"
 
12923
         cat >conftest.$ac_ext <<_ACEOF
 
12924
/* confdefs.h.  */
 
12925
_ACEOF
 
12926
cat confdefs.h >>conftest.$ac_ext
 
12927
cat >>conftest.$ac_ext <<_ACEOF
 
12928
/* end confdefs.h.  */
 
12929
 
 
12930
int
 
12931
main ()
 
12932
{
 
12933
 
 
12934
  ;
 
12935
  return 0;
 
12936
}
 
12937
_ACEOF
 
12938
rm -f conftest.$ac_objext
 
12939
if { (ac_try="$ac_compile"
 
12940
case "(($ac_try" in
 
12941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12942
  *) ac_try_echo=$ac_try;;
 
12943
esac
 
12944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12945
$as_echo "$ac_try_echo") >&5
 
12946
  (eval "$ac_compile") 2>conftest.er1
 
12947
  ac_status=$?
 
12948
  grep -v '^ *+' conftest.er1 >conftest.err
 
12949
  rm -f conftest.er1
 
12950
  cat conftest.err >&5
 
12951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12952
  (exit $ac_status); } && {
 
12953
         test -z "$ac_cxx_werror_flag" ||
 
12954
         test ! -s conftest.err
 
12955
       } && test -s conftest.$ac_objext; then
 
12956
  ac_cv_prog_cxx_g=yes
 
12957
else
 
12958
  $as_echo "$as_me: failed program was:" >&5
 
12959
sed 's/^/| /' conftest.$ac_ext >&5
 
12960
 
 
12961
 
 
12962
fi
 
12963
 
 
12964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12965
fi
 
12966
 
 
12967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12968
fi
 
12969
 
 
12970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12971
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12972
fi
 
12973
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
12974
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
12975
if test "$ac_test_CXXFLAGS" = set; then
 
12976
  CXXFLAGS=$ac_save_CXXFLAGS
 
12977
elif test $ac_cv_prog_cxx_g = yes; then
 
12978
  if test "$GXX" = yes; then
 
12979
    CXXFLAGS="-g -O2"
 
12980
  else
 
12981
    CXXFLAGS="-g"
 
12982
  fi
 
12983
else
 
12984
  if test "$GXX" = yes; then
 
12985
    CXXFLAGS="-O2"
 
12986
  else
 
12987
    CXXFLAGS=
 
12988
  fi
 
12989
fi
 
12990
ac_ext=c
 
12991
ac_cpp='$CPP $CPPFLAGS'
 
12992
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12993
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12994
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12995
 
 
12996
depcc="$CXX"  am_compiler_list=
 
12997
 
 
12998
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
12999
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
13000
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
13001
  $as_echo_n "(cached) " >&6
 
13002
else
 
13003
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
13004
  # We make a subdir and do the tests there.  Otherwise we can end up
 
13005
  # making bogus files that we don't know about and never remove.  For
 
13006
  # instance it was reported that on HP-UX the gcc test will end up
 
13007
  # making a dummy file named `D' -- because `-MD' means `put the output
 
13008
  # in D'.
 
13009
  mkdir conftest.dir
 
13010
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
13011
  # using a relative directory.
 
13012
  cp "$am_depcomp" conftest.dir
 
13013
  cd conftest.dir
 
13014
  # We will build objects and dependencies in a subdirectory because
 
13015
  # it helps to detect inapplicable dependency modes.  For instance
 
13016
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
13017
  # side effect of compilation, but ICC will put the dependencies in
 
13018
  # the current directory while Tru64 will put them in the object
 
13019
  # directory.
 
13020
  mkdir sub
 
13021
 
 
13022
  am_cv_CXX_dependencies_compiler_type=none
 
13023
  if test "$am_compiler_list" = ""; then
 
13024
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
13025
  fi
 
13026
  for depmode in $am_compiler_list; do
 
13027
    # Setup a source with many dependencies, because some compilers
 
13028
    # like to wrap large dependency lists on column 80 (with \), and
 
13029
    # we should not choose a depcomp mode which is confused by this.
 
13030
    #
 
13031
    # We need to recreate these files for each test, as the compiler may
 
13032
    # overwrite some of them when testing with obscure command lines.
 
13033
    # This happens at least with the AIX C compiler.
 
13034
    : > sub/conftest.c
 
13035
    for i in 1 2 3 4 5 6; do
 
13036
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
13037
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
13038
      # Solaris 8's {/usr,}/bin/sh.
 
13039
      touch sub/conftst$i.h
 
13040
    done
 
13041
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
13042
 
 
13043
    case $depmode in
 
13044
    nosideeffect)
 
13045
      # after this tag, mechanisms are not by side-effect, so they'll
 
13046
      # only be used when explicitly requested
 
13047
      if test "x$enable_dependency_tracking" = xyes; then
 
13048
        continue
 
13049
      else
 
13050
        break
 
13051
      fi
 
13052
      ;;
 
13053
    none) break ;;
 
13054
    esac
 
13055
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
13056
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
13057
    # handle `-M -o', and we need to detect this.
 
13058
    if depmode=$depmode \
 
13059
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
13060
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
13061
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
13062
         >/dev/null 2>conftest.err &&
 
13063
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
13064
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
13065
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
13066
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
13067
      # icc doesn't choke on unknown options, it will just issue warnings
 
13068
      # or remarks (even with -Werror).  So we grep stderr for any message
 
13069
      # that says an option was ignored or not supported.
 
13070
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
13071
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
13072
      # The diagnosis changed in icc 8.0:
 
13073
      #   icc: Command line remark: option '-MP' not supported
 
13074
      if (grep 'ignoring option' conftest.err ||
 
13075
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
13076
        am_cv_CXX_dependencies_compiler_type=$depmode
 
13077
        break
 
13078
      fi
 
13079
    fi
 
13080
  done
 
13081
 
 
13082
  cd ..
 
13083
  rm -rf conftest.dir
 
13084
else
 
13085
  am_cv_CXX_dependencies_compiler_type=none
 
13086
fi
 
13087
 
 
13088
fi
 
13089
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
13090
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
13091
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
13092
 
 
13093
 if
 
13094
  test "x$enable_dependency_tracking" != xno \
 
13095
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
13096
  am__fastdepCXX_TRUE=
 
13097
  am__fastdepCXX_FALSE='#'
 
13098
else
 
13099
  am__fastdepCXX_TRUE='#'
 
13100
  am__fastdepCXX_FALSE=
 
13101
fi
 
13102
 
 
13103
 
 
13104
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
13105
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
13106
    (test "X$CXX" != "Xg++"))) ; then
 
13107
  ac_ext=cpp
 
13108
ac_cpp='$CXXCPP $CPPFLAGS'
 
13109
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13110
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13111
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
13112
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
13113
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
13114
if test -z "$CXXCPP"; then
 
13115
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
13116
  $as_echo_n "(cached) " >&6
 
13117
else
 
13118
      # Double quotes because CXXCPP needs to be expanded
 
13119
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
13120
    do
 
13121
      ac_preproc_ok=false
 
13122
for ac_cxx_preproc_warn_flag in '' yes
 
13123
do
 
13124
  # Use a header file that comes with gcc, so configuring glibc
 
13125
  # with a fresh cross-compiler works.
 
13126
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13127
  # <limits.h> exists even on freestanding compilers.
 
13128
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
13129
  # not just through cpp. "Syntax error" is here to catch this case.
 
13130
  cat >conftest.$ac_ext <<_ACEOF
 
13131
/* confdefs.h.  */
 
13132
_ACEOF
 
13133
cat confdefs.h >>conftest.$ac_ext
 
13134
cat >>conftest.$ac_ext <<_ACEOF
 
13135
/* end confdefs.h.  */
 
13136
#ifdef __STDC__
 
13137
# include <limits.h>
 
13138
#else
 
13139
# include <assert.h>
 
13140
#endif
 
13141
                     Syntax error
 
13142
_ACEOF
 
13143
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13144
case "(($ac_try" in
 
13145
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13146
  *) ac_try_echo=$ac_try;;
 
13147
esac
 
13148
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13149
$as_echo "$ac_try_echo") >&5
 
13150
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13151
  ac_status=$?
 
13152
  grep -v '^ *+' conftest.er1 >conftest.err
 
13153
  rm -f conftest.er1
 
13154
  cat conftest.err >&5
 
13155
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13156
  (exit $ac_status); } >/dev/null && {
 
13157
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
13158
         test ! -s conftest.err
 
13159
       }; then
 
13160
  :
 
13161
else
 
13162
  $as_echo "$as_me: failed program was:" >&5
 
13163
sed 's/^/| /' conftest.$ac_ext >&5
 
13164
 
 
13165
  # Broken: fails on valid input.
 
13166
continue
 
13167
fi
 
13168
 
 
13169
rm -f conftest.err conftest.$ac_ext
 
13170
 
 
13171
  # OK, works on sane cases.  Now check whether nonexistent headers
 
13172
  # can be detected and how.
 
13173
  cat >conftest.$ac_ext <<_ACEOF
 
13174
/* confdefs.h.  */
 
13175
_ACEOF
 
13176
cat confdefs.h >>conftest.$ac_ext
 
13177
cat >>conftest.$ac_ext <<_ACEOF
 
13178
/* end confdefs.h.  */
 
13179
#include <ac_nonexistent.h>
 
13180
_ACEOF
 
13181
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13182
case "(($ac_try" in
 
13183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13184
  *) ac_try_echo=$ac_try;;
 
13185
esac
 
13186
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13187
$as_echo "$ac_try_echo") >&5
 
13188
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13189
  ac_status=$?
 
13190
  grep -v '^ *+' conftest.er1 >conftest.err
 
13191
  rm -f conftest.er1
 
13192
  cat conftest.err >&5
 
13193
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13194
  (exit $ac_status); } >/dev/null && {
 
13195
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
13196
         test ! -s conftest.err
 
13197
       }; then
 
13198
  # Broken: success on invalid input.
 
13199
continue
 
13200
else
 
13201
  $as_echo "$as_me: failed program was:" >&5
 
13202
sed 's/^/| /' conftest.$ac_ext >&5
 
13203
 
 
13204
  # Passes both tests.
 
13205
ac_preproc_ok=:
 
13206
break
 
13207
fi
 
13208
 
 
13209
rm -f conftest.err conftest.$ac_ext
 
13210
 
 
13211
done
 
13212
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
13213
rm -f conftest.err conftest.$ac_ext
 
13214
if $ac_preproc_ok; then
 
13215
  break
 
13216
fi
 
13217
 
 
13218
    done
 
13219
    ac_cv_prog_CXXCPP=$CXXCPP
 
13220
 
 
13221
fi
 
13222
  CXXCPP=$ac_cv_prog_CXXCPP
 
13223
else
 
13224
  ac_cv_prog_CXXCPP=$CXXCPP
 
13225
fi
 
13226
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
13227
$as_echo "$CXXCPP" >&6; }
 
13228
ac_preproc_ok=false
 
13229
for ac_cxx_preproc_warn_flag in '' yes
 
13230
do
 
13231
  # Use a header file that comes with gcc, so configuring glibc
 
13232
  # with a fresh cross-compiler works.
 
13233
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13234
  # <limits.h> exists even on freestanding compilers.
 
13235
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
13236
  # not just through cpp. "Syntax error" is here to catch this case.
 
13237
  cat >conftest.$ac_ext <<_ACEOF
 
13238
/* confdefs.h.  */
 
13239
_ACEOF
 
13240
cat confdefs.h >>conftest.$ac_ext
 
13241
cat >>conftest.$ac_ext <<_ACEOF
 
13242
/* end confdefs.h.  */
 
13243
#ifdef __STDC__
 
13244
# include <limits.h>
 
13245
#else
 
13246
# include <assert.h>
 
13247
#endif
 
13248
                     Syntax error
 
13249
_ACEOF
 
13250
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13251
case "(($ac_try" in
 
13252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13253
  *) ac_try_echo=$ac_try;;
 
13254
esac
 
13255
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13256
$as_echo "$ac_try_echo") >&5
 
13257
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13258
  ac_status=$?
 
13259
  grep -v '^ *+' conftest.er1 >conftest.err
 
13260
  rm -f conftest.er1
 
13261
  cat conftest.err >&5
 
13262
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13263
  (exit $ac_status); } >/dev/null && {
 
13264
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
13265
         test ! -s conftest.err
 
13266
       }; then
 
13267
  :
 
13268
else
 
13269
  $as_echo "$as_me: failed program was:" >&5
 
13270
sed 's/^/| /' conftest.$ac_ext >&5
 
13271
 
 
13272
  # Broken: fails on valid input.
 
13273
continue
 
13274
fi
 
13275
 
 
13276
rm -f conftest.err conftest.$ac_ext
 
13277
 
 
13278
  # OK, works on sane cases.  Now check whether nonexistent headers
 
13279
  # can be detected and how.
 
13280
  cat >conftest.$ac_ext <<_ACEOF
 
13281
/* confdefs.h.  */
 
13282
_ACEOF
 
13283
cat confdefs.h >>conftest.$ac_ext
 
13284
cat >>conftest.$ac_ext <<_ACEOF
 
13285
/* end confdefs.h.  */
 
13286
#include <ac_nonexistent.h>
 
13287
_ACEOF
 
13288
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13289
case "(($ac_try" in
 
13290
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13291
  *) ac_try_echo=$ac_try;;
 
13292
esac
 
13293
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13294
$as_echo "$ac_try_echo") >&5
 
13295
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13296
  ac_status=$?
 
13297
  grep -v '^ *+' conftest.er1 >conftest.err
 
13298
  rm -f conftest.er1
 
13299
  cat conftest.err >&5
 
13300
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13301
  (exit $ac_status); } >/dev/null && {
 
13302
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
13303
         test ! -s conftest.err
 
13304
       }; then
 
13305
  # Broken: success on invalid input.
 
13306
continue
 
13307
else
 
13308
  $as_echo "$as_me: failed program was:" >&5
 
13309
sed 's/^/| /' conftest.$ac_ext >&5
 
13310
 
 
13311
  # Passes both tests.
 
13312
ac_preproc_ok=:
 
13313
break
 
13314
fi
 
13315
 
 
13316
rm -f conftest.err conftest.$ac_ext
 
13317
 
 
13318
done
 
13319
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
13320
rm -f conftest.err conftest.$ac_ext
 
13321
if $ac_preproc_ok; then
 
13322
  :
 
13323
else
 
13324
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
13325
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13326
_lt_caught_CXX_error=yes; }
 
13327
fi
 
13328
 
 
13329
ac_ext=c
 
13330
ac_cpp='$CPP $CPPFLAGS'
 
13331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13334
 
 
13335
else
 
13336
  _lt_caught_CXX_error=yes
 
13337
fi
 
13338
 
 
13339
 
 
13340
 
 
13341
 
 
13342
 
 
13343
# Set options
 
13344
 
 
13345
 
 
13346
 
 
13347
        enable_dlopen=no
 
13348
 
 
13349
 
 
13350
  enable_win32_dll=no
 
13351
 
 
13352
 
 
13353
 
 
13354
 
 
13355
 
 
13356
# Check whether --with-pic was given.
 
13357
if test "${with_pic+set}" = set; then
 
13358
  withval=$with_pic; pic_mode="$withval"
 
13359
else
 
13360
  pic_mode=default
 
13361
fi
 
13362
 
 
13363
 
 
13364
test -z "$pic_mode" && pic_mode=default
 
13365
 
 
13366
 
 
13367
 
 
13368
 
 
13369
 
 
13370
 
 
13371
 
 
13372
  # Check whether --enable-fast-install was given.
 
13373
if test "${enable_fast_install+set}" = set; then
 
13374
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
13375
    case $enableval in
 
13376
    yes) enable_fast_install=yes ;;
 
13377
    no) enable_fast_install=no ;;
 
13378
    *)
 
13379
      enable_fast_install=no
 
13380
      # Look at the argument we got.  We use all the common list separators.
 
13381
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
13382
      for pkg in $enableval; do
 
13383
        IFS="$lt_save_ifs"
 
13384
        if test "X$pkg" = "X$p"; then
 
13385
          enable_fast_install=yes
 
13386
        fi
 
13387
      done
 
13388
      IFS="$lt_save_ifs"
 
13389
      ;;
 
13390
    esac
 
13391
else
 
13392
  enable_fast_install=yes
 
13393
fi
 
13394
 
 
13395
 
 
13396
 
 
13397
 
 
13398
 
 
13399
 
 
13400
 
 
13401
 
 
13402
 
 
13403
 
 
13404
 
 
13405
# This can be used to rebuild libtool when needed
 
13406
LIBTOOL_DEPS="$ltmain"
 
13407
 
 
13408
# Always use our own libtool.
 
13409
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
13410
 
 
13411
 
 
13412
 
 
13413
 
 
13414
 
 
13415
 
 
13416
 
 
13417
 
 
13418
 
 
13419
 
 
13420
 
 
13421
 
 
13422
 
 
13423
 
 
13424
 
 
13425
 
 
13426
 
 
13427
 
 
13428
 
 
13429
 
 
13430
 
 
13431
 
 
13432
 
 
13433
 
 
13434
 
 
13435
test -z "$LN_S" && LN_S="ln -s"
 
13436
 
 
13437
 
 
13438
 
 
13439
 
 
13440
 
 
13441
 
 
13442
 
 
13443
 
 
13444
 
 
13445
 
 
13446
 
 
13447
 
 
13448
 
 
13449
 
 
13450
if test -n "${ZSH_VERSION+set}" ; then
 
13451
   setopt NO_GLOB_SUBST
 
13452
fi
 
13453
 
 
13454
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
13455
$as_echo_n "checking for objdir... " >&6; }
 
13456
if test "${lt_cv_objdir+set}" = set; then
 
13457
  $as_echo_n "(cached) " >&6
 
13458
else
 
13459
  rm -f .libs 2>/dev/null
 
13460
mkdir .libs 2>/dev/null
 
13461
if test -d .libs; then
 
13462
  lt_cv_objdir=.libs
 
13463
else
 
13464
  # MS-DOS does not allow filenames that begin with a dot.
 
13465
  lt_cv_objdir=_libs
 
13466
fi
 
13467
rmdir .libs 2>/dev/null
 
13468
fi
 
13469
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
13470
$as_echo "$lt_cv_objdir" >&6; }
 
13471
objdir=$lt_cv_objdir
 
13472
 
 
13473
 
 
13474
 
 
13475
 
 
13476
 
 
13477
cat >>confdefs.h <<_ACEOF
 
13478
#define LT_OBJDIR "$lt_cv_objdir/"
 
13479
_ACEOF
 
13480
 
 
13481
 
 
13482
 
 
13483
 
 
13484
 
 
13485
 
 
13486
 
 
13487
 
 
13488
 
 
13489
 
 
13490
 
 
13491
 
 
13492
 
 
13493
 
 
13494
 
 
13495
 
 
13496
 
 
13497
case $host_os in
 
13498
aix3*)
 
13499
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
13500
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
13501
  # vanish in a puff of smoke.
 
13502
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
13503
    COLLECT_NAMES=
 
13504
    export COLLECT_NAMES
 
13505
  fi
 
13506
  ;;
 
13507
esac
 
13508
 
 
13509
# Sed substitution that helps us do robust quoting.  It backslashifies
 
13510
# metacharacters that are still active within double-quoted strings.
 
13511
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
13512
 
 
13513
# Same as above, but do not quote variable references.
 
13514
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
13515
 
 
13516
# Sed substitution to delay expansion of an escaped shell variable in a
 
13517
# double_quote_subst'ed string.
 
13518
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
13519
 
 
13520
# Sed substitution to delay expansion of an escaped single quote.
 
13521
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
13522
 
 
13523
# Sed substitution to avoid accidental globbing in evaled expressions
 
13524
no_glob_subst='s/\*/\\\*/g'
 
13525
 
 
13526
# Global variables:
 
13527
ofile=libtool
 
13528
can_build_shared=yes
 
13529
 
 
13530
# All known linkers require a `.a' archive for static linking (except MSVC,
 
13531
# which needs '.lib').
 
13532
libext=a
 
13533
 
 
13534
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
13535
 
 
13536
old_CC="$CC"
 
13537
old_CFLAGS="$CFLAGS"
 
13538
 
 
13539
# Set sane defaults for various variables
 
13540
test -z "$CC" && CC=cc
 
13541
test -z "$LTCC" && LTCC=$CC
 
13542
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
13543
test -z "$LD" && LD=ld
 
13544
test -z "$ac_objext" && ac_objext=o
 
13545
 
 
13546
for cc_temp in $compiler""; do
 
13547
  case $cc_temp in
 
13548
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13549
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13550
    \-*) ;;
 
13551
    *) break;;
 
13552
  esac
 
13553
done
 
13554
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13555
 
 
13556
 
 
13557
# Only perform the check for file, if the check method requires it
 
13558
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
13559
case $deplibs_check_method in
 
13560
file_magic*)
 
13561
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
13562
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
13563
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
13564
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
13565
  $as_echo_n "(cached) " >&6
 
13566
else
 
13567
  case $MAGIC_CMD in
 
13568
[\\/*] |  ?:[\\/]*)
 
13569
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
13570
  ;;
 
13571
*)
 
13572
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
13573
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13574
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
13575
  for ac_dir in $ac_dummy; do
 
13576
    IFS="$lt_save_ifs"
 
13577
    test -z "$ac_dir" && ac_dir=.
 
13578
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
13579
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
13580
      if test -n "$file_magic_test_file"; then
 
13581
        case $deplibs_check_method in
 
13582
        "file_magic "*)
 
13583
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
13584
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
13585
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
13586
            $EGREP "$file_magic_regex" > /dev/null; then
 
13587
            :
 
13588
          else
 
13589
            cat <<_LT_EOF 1>&2
 
13590
 
 
13591
*** Warning: the command libtool uses to detect shared libraries,
 
13592
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
13593
*** The result is that libtool may fail to recognize shared libraries
 
13594
*** as such.  This will affect the creation of libtool libraries that
 
13595
*** depend on shared libraries, but programs linked with such libtool
 
13596
*** libraries will work regardless of this problem.  Nevertheless, you
 
13597
*** may want to report the problem to your system manager and/or to
 
13598
*** bug-libtool@gnu.org
 
13599
 
 
13600
_LT_EOF
 
13601
          fi ;;
 
13602
        esac
 
13603
      fi
 
13604
      break
 
13605
    fi
 
13606
  done
 
13607
  IFS="$lt_save_ifs"
 
13608
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
13609
  ;;
 
13610
esac
 
13611
fi
 
13612
 
 
13613
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
13614
if test -n "$MAGIC_CMD"; then
 
13615
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
13616
$as_echo "$MAGIC_CMD" >&6; }
 
13617
else
 
13618
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13619
$as_echo "no" >&6; }
 
13620
fi
 
13621
 
 
13622
 
 
13623
 
 
13624
 
 
13625
 
 
13626
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
13627
  if test -n "$ac_tool_prefix"; then
 
13628
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
13629
$as_echo_n "checking for file... " >&6; }
 
13630
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
13631
  $as_echo_n "(cached) " >&6
 
13632
else
 
13633
  case $MAGIC_CMD in
 
13634
[\\/*] |  ?:[\\/]*)
 
13635
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
13636
  ;;
 
13637
*)
 
13638
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
13639
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13640
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
13641
  for ac_dir in $ac_dummy; do
 
13642
    IFS="$lt_save_ifs"
 
13643
    test -z "$ac_dir" && ac_dir=.
 
13644
    if test -f $ac_dir/file; then
 
13645
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
13646
      if test -n "$file_magic_test_file"; then
 
13647
        case $deplibs_check_method in
 
13648
        "file_magic "*)
 
13649
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
13650
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
13651
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
13652
            $EGREP "$file_magic_regex" > /dev/null; then
 
13653
            :
 
13654
          else
 
13655
            cat <<_LT_EOF 1>&2
 
13656
 
 
13657
*** Warning: the command libtool uses to detect shared libraries,
 
13658
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
13659
*** The result is that libtool may fail to recognize shared libraries
 
13660
*** as such.  This will affect the creation of libtool libraries that
 
13661
*** depend on shared libraries, but programs linked with such libtool
 
13662
*** libraries will work regardless of this problem.  Nevertheless, you
 
13663
*** may want to report the problem to your system manager and/or to
 
13664
*** bug-libtool@gnu.org
 
13665
 
 
13666
_LT_EOF
 
13667
          fi ;;
 
13668
        esac
 
13669
      fi
 
13670
      break
 
13671
    fi
 
13672
  done
 
13673
  IFS="$lt_save_ifs"
 
13674
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
13675
  ;;
 
13676
esac
 
13677
fi
 
13678
 
 
13679
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
13680
if test -n "$MAGIC_CMD"; then
 
13681
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
13682
$as_echo "$MAGIC_CMD" >&6; }
 
13683
else
 
13684
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13685
$as_echo "no" >&6; }
 
13686
fi
 
13687
 
 
13688
 
 
13689
  else
 
13690
    MAGIC_CMD=:
 
13691
  fi
 
13692
fi
 
13693
 
 
13694
  fi
 
13695
  ;;
 
13696
esac
 
13697
 
 
13698
# Use C for the default configuration in the libtool script
 
13699
 
 
13700
lt_save_CC="$CC"
 
13701
ac_ext=c
 
13702
ac_cpp='$CPP $CPPFLAGS'
 
13703
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13704
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13705
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13706
 
 
13707
 
 
13708
# Source file extension for C test sources.
 
13709
ac_ext=c
 
13710
 
 
13711
# Object file extension for compiled C test sources.
 
13712
objext=o
 
13713
objext=$objext
 
13714
 
 
13715
# Code to be used in simple compile tests
 
13716
lt_simple_compile_test_code="int some_variable = 0;"
 
13717
 
 
13718
# Code to be used in simple link tests
 
13719
lt_simple_link_test_code='int main(){return(0);}'
 
13720
 
 
13721
 
 
13722
 
 
13723
 
 
13724
 
 
13725
 
 
13726
 
 
13727
# If no C compiler was specified, use CC.
 
13728
LTCC=${LTCC-"$CC"}
 
13729
 
 
13730
# If no C compiler flags were specified, use CFLAGS.
 
13731
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13732
 
 
13733
# Allow CC to be a program name with arguments.
 
13734
compiler=$CC
 
13735
 
 
13736
# Save the default compiler, since it gets overwritten when the other
 
13737
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
13738
compiler_DEFAULT=$CC
 
13739
 
 
13740
# save warnings/boilerplate of simple test code
 
13741
ac_outfile=conftest.$ac_objext
 
13742
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13743
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13744
_lt_compiler_boilerplate=`cat conftest.err`
 
13745
$RM conftest*
 
13746
 
 
13747
ac_outfile=conftest.$ac_objext
 
13748
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13749
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13750
_lt_linker_boilerplate=`cat conftest.err`
 
13751
$RM -r conftest*
 
13752
 
 
13753
 
 
13754
## CAVEAT EMPTOR:
 
13755
## There is no encapsulation within the following macros, do not change
 
13756
## the running order or otherwise move them around unless you know exactly
 
13757
## what you are doing...
 
13758
if test -n "$compiler"; then
 
13759
 
 
13760
lt_prog_compiler_no_builtin_flag=
 
13761
 
 
13762
if test "$GCC" = yes; then
 
13763
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
13764
 
 
13765
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
13766
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
13767
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
13768
  $as_echo_n "(cached) " >&6
 
13769
else
 
13770
  lt_cv_prog_compiler_rtti_exceptions=no
 
13771
   ac_outfile=conftest.$ac_objext
 
13772
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13773
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
13774
   # Insert the option either (1) after the last *FLAGS variable, or
 
13775
   # (2) before a word containing "conftest.", or (3) at the end.
 
13776
   # Note that $ac_compile itself does not contain backslashes and begins
 
13777
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13778
   # The option is referenced via a variable to avoid confusing sed.
 
13779
   lt_compile=`echo "$ac_compile" | $SED \
 
13780
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13781
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13782
   -e 's:$: $lt_compiler_flag:'`
 
13783
   (eval echo "\"\$as_me:13783: $lt_compile\"" >&5)
 
13784
   (eval "$lt_compile" 2>conftest.err)
 
13785
   ac_status=$?
 
13786
   cat conftest.err >&5
 
13787
   echo "$as_me:13787: \$? = $ac_status" >&5
 
13788
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13789
     # The compiler can only warn and ignore the option if not recognized
 
13790
     # So say no if there are warnings other than the usual output.
 
13791
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13792
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13793
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13794
       lt_cv_prog_compiler_rtti_exceptions=yes
 
13795
     fi
 
13796
   fi
 
13797
   $RM conftest*
 
13798
 
 
13799
fi
 
13800
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
13801
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
13802
 
 
13803
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
13804
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
13805
else
 
13806
    :
 
13807
fi
 
13808
 
 
13809
fi
 
13810
 
 
13811
 
 
13812
 
 
13813
 
 
13814
 
 
13815
 
 
13816
  lt_prog_compiler_wl=
 
13817
lt_prog_compiler_pic=
 
13818
lt_prog_compiler_static=
 
13819
 
 
13820
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13821
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
13822
 
 
13823
  if test "$GCC" = yes; then
 
13824
    lt_prog_compiler_wl='-Wl,'
 
13825
    lt_prog_compiler_static='-static'
 
13826
 
 
13827
    case $host_os in
 
13828
      aix*)
 
13829
      # All AIX code is PIC.
 
13830
      if test "$host_cpu" = ia64; then
 
13831
        # AIX 5 now supports IA64 processor
 
13832
        lt_prog_compiler_static='-Bstatic'
 
13833
      fi
 
13834
      ;;
 
13835
 
 
13836
    amigaos*)
 
13837
      case $host_cpu in
 
13838
      powerpc)
 
13839
            # see comment about AmigaOS4 .so support
 
13840
            lt_prog_compiler_pic='-fPIC'
 
13841
        ;;
 
13842
      m68k)
 
13843
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13844
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13845
            # like `-m68040'.
 
13846
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
13847
        ;;
 
13848
      esac
 
13849
      ;;
 
13850
 
 
13851
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13852
      # PIC is the default for these OSes.
 
13853
      ;;
 
13854
 
 
13855
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
13856
      # This hack is so that the source file can tell whether it is being
 
13857
      # built for inclusion in a dll (and should export symbols for example).
 
13858
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13859
      # (--disable-auto-import) libraries
 
13860
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
13861
      ;;
 
13862
 
 
13863
    darwin* | rhapsody*)
 
13864
      # PIC is the default on this platform
 
13865
      # Common symbols not allowed in MH_DYLIB files
 
13866
      lt_prog_compiler_pic='-fno-common'
 
13867
      ;;
 
13868
 
 
13869
    hpux*)
 
13870
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13871
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13872
      # sets the default TLS model and affects inlining.
 
13873
      case $host_cpu in
 
13874
      hppa*64*)
 
13875
        # +Z the default
 
13876
        ;;
 
13877
      *)
 
13878
        lt_prog_compiler_pic='-fPIC'
 
13879
        ;;
 
13880
      esac
 
13881
      ;;
 
13882
 
 
13883
    interix[3-9]*)
 
13884
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13885
      # Instead, we relocate shared libraries at runtime.
 
13886
      ;;
 
13887
 
 
13888
    msdosdjgpp*)
 
13889
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13890
      # on systems that don't support them.
 
13891
      lt_prog_compiler_can_build_shared=no
 
13892
      enable_shared=no
 
13893
      ;;
 
13894
 
 
13895
    *nto* | *qnx*)
 
13896
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13897
      # it will coredump.
 
13898
      lt_prog_compiler_pic='-fPIC -shared'
 
13899
      ;;
 
13900
 
 
13901
    sysv4*MP*)
 
13902
      if test -d /usr/nec; then
 
13903
        lt_prog_compiler_pic=-Kconform_pic
 
13904
      fi
 
13905
      ;;
 
13906
 
 
13907
    *)
 
13908
      lt_prog_compiler_pic='-fPIC'
 
13909
      ;;
 
13910
    esac
 
13911
  else
 
13912
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13913
    case $host_os in
 
13914
    aix*)
 
13915
      lt_prog_compiler_wl='-Wl,'
 
13916
      if test "$host_cpu" = ia64; then
 
13917
        # AIX 5 now supports IA64 processor
 
13918
        lt_prog_compiler_static='-Bstatic'
 
13919
      else
 
13920
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
13921
      fi
 
13922
      ;;
 
13923
 
 
13924
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
13925
      # This hack is so that the source file can tell whether it is being
 
13926
      # built for inclusion in a dll (and should export symbols for example).
 
13927
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
13928
      ;;
 
13929
 
 
13930
    hpux9* | hpux10* | hpux11*)
 
13931
      lt_prog_compiler_wl='-Wl,'
 
13932
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13933
      # not for PA HP-UX.
 
13934
      case $host_cpu in
 
13935
      hppa*64*|ia64*)
 
13936
        # +Z the default
 
13937
        ;;
 
13938
      *)
 
13939
        lt_prog_compiler_pic='+Z'
 
13940
        ;;
 
13941
      esac
 
13942
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13943
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
13944
      ;;
 
13945
 
 
13946
    irix5* | irix6* | nonstopux*)
 
13947
      lt_prog_compiler_wl='-Wl,'
 
13948
      # PIC (with -KPIC) is the default.
 
13949
      lt_prog_compiler_static='-non_shared'
 
13950
      ;;
 
13951
 
 
13952
    linux* | k*bsd*-gnu)
 
13953
      case $cc_basename in
 
13954
      # old Intel for x86_64 which still supported -KPIC.
 
13955
      ecc*)
 
13956
        lt_prog_compiler_wl='-Wl,'
 
13957
        lt_prog_compiler_pic='-KPIC'
 
13958
        lt_prog_compiler_static='-static'
 
13959
        ;;
 
13960
      # icc used to be incompatible with GCC.
 
13961
      # ICC 10 doesn't accept -KPIC any more.
 
13962
      icc* | ifort*)
 
13963
        lt_prog_compiler_wl='-Wl,'
 
13964
        lt_prog_compiler_pic='-fPIC'
 
13965
        lt_prog_compiler_static='-static'
 
13966
        ;;
 
13967
      # Lahey Fortran 8.1.
 
13968
      lf95*)
 
13969
        lt_prog_compiler_wl='-Wl,'
 
13970
        lt_prog_compiler_pic='--shared'
 
13971
        lt_prog_compiler_static='--static'
 
13972
        ;;
 
13973
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13974
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13975
        # which looks to be a dead project)
 
13976
        lt_prog_compiler_wl='-Wl,'
 
13977
        lt_prog_compiler_pic='-fpic'
 
13978
        lt_prog_compiler_static='-Bstatic'
 
13979
        ;;
 
13980
      ccc*)
 
13981
        lt_prog_compiler_wl='-Wl,'
 
13982
        # All Alpha code is PIC.
 
13983
        lt_prog_compiler_static='-non_shared'
 
13984
        ;;
 
13985
      xl*)
 
13986
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
13987
        lt_prog_compiler_wl='-Wl,'
 
13988
        lt_prog_compiler_pic='-qpic'
 
13989
        lt_prog_compiler_static='-qstaticlink'
 
13990
        ;;
 
13991
      *)
 
13992
        case `$CC -V 2>&1 | sed 5q` in
 
13993
        *Sun\ C*)
 
13994
          # Sun C 5.9
 
13995
          lt_prog_compiler_pic='-KPIC'
 
13996
          lt_prog_compiler_static='-Bstatic'
 
13997
          lt_prog_compiler_wl='-Wl,'
 
13998
          ;;
 
13999
        *Sun\ F*)
 
14000
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14001
          lt_prog_compiler_pic='-KPIC'
 
14002
          lt_prog_compiler_static='-Bstatic'
 
14003
          lt_prog_compiler_wl=''
 
14004
          ;;
 
14005
        esac
 
14006
        ;;
 
14007
      esac
 
14008
      ;;
 
14009
 
 
14010
    newsos6)
 
14011
      lt_prog_compiler_pic='-KPIC'
 
14012
      lt_prog_compiler_static='-Bstatic'
 
14013
      ;;
 
14014
 
 
14015
    *nto* | *qnx*)
 
14016
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14017
      # it will coredump.
 
14018
      lt_prog_compiler_pic='-fPIC -shared'
 
14019
      ;;
 
14020
 
 
14021
    osf3* | osf4* | osf5*)
 
14022
      lt_prog_compiler_wl='-Wl,'
 
14023
      # All OSF/1 code is PIC.
 
14024
      lt_prog_compiler_static='-non_shared'
 
14025
      ;;
 
14026
 
 
14027
    rdos*)
 
14028
      lt_prog_compiler_static='-non_shared'
 
14029
      ;;
 
14030
 
 
14031
    solaris*)
 
14032
      lt_prog_compiler_pic='-KPIC'
 
14033
      lt_prog_compiler_static='-Bstatic'
 
14034
      case $cc_basename in
 
14035
      f77* | f90* | f95*)
 
14036
        lt_prog_compiler_wl='-Qoption ld ';;
 
14037
      *)
 
14038
        lt_prog_compiler_wl='-Wl,';;
 
14039
      esac
 
14040
      ;;
 
14041
 
 
14042
    sunos4*)
 
14043
      lt_prog_compiler_wl='-Qoption ld '
 
14044
      lt_prog_compiler_pic='-PIC'
 
14045
      lt_prog_compiler_static='-Bstatic'
 
14046
      ;;
 
14047
 
 
14048
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14049
      lt_prog_compiler_wl='-Wl,'
 
14050
      lt_prog_compiler_pic='-KPIC'
 
14051
      lt_prog_compiler_static='-Bstatic'
 
14052
      ;;
 
14053
 
 
14054
    sysv4*MP*)
 
14055
      if test -d /usr/nec ;then
 
14056
        lt_prog_compiler_pic='-Kconform_pic'
 
14057
        lt_prog_compiler_static='-Bstatic'
 
14058
      fi
 
14059
      ;;
 
14060
 
 
14061
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14062
      lt_prog_compiler_wl='-Wl,'
 
14063
      lt_prog_compiler_pic='-KPIC'
 
14064
      lt_prog_compiler_static='-Bstatic'
 
14065
      ;;
 
14066
 
 
14067
    unicos*)
 
14068
      lt_prog_compiler_wl='-Wl,'
 
14069
      lt_prog_compiler_can_build_shared=no
 
14070
      ;;
 
14071
 
 
14072
    uts4*)
 
14073
      lt_prog_compiler_pic='-pic'
 
14074
      lt_prog_compiler_static='-Bstatic'
 
14075
      ;;
 
14076
 
 
14077
    *)
 
14078
      lt_prog_compiler_can_build_shared=no
 
14079
      ;;
 
14080
    esac
 
14081
  fi
 
14082
 
 
14083
case $host_os in
 
14084
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14085
  *djgpp*)
 
14086
    lt_prog_compiler_pic=
 
14087
    ;;
 
14088
  *)
 
14089
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
14090
    ;;
 
14091
esac
 
14092
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
14093
$as_echo "$lt_prog_compiler_pic" >&6; }
 
14094
 
 
14095
 
 
14096
 
 
14097
 
 
14098
 
 
14099
 
 
14100
#
 
14101
# Check to make sure the PIC flag actually works.
 
14102
#
 
14103
if test -n "$lt_prog_compiler_pic"; then
 
14104
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
14105
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
14106
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
14107
  $as_echo_n "(cached) " >&6
 
14108
else
 
14109
  lt_cv_prog_compiler_pic_works=no
 
14110
   ac_outfile=conftest.$ac_objext
 
14111
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14112
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
14113
   # Insert the option either (1) after the last *FLAGS variable, or
 
14114
   # (2) before a word containing "conftest.", or (3) at the end.
 
14115
   # Note that $ac_compile itself does not contain backslashes and begins
 
14116
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14117
   # The option is referenced via a variable to avoid confusing sed.
 
14118
   lt_compile=`echo "$ac_compile" | $SED \
 
14119
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14120
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14121
   -e 's:$: $lt_compiler_flag:'`
 
14122
   (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
 
14123
   (eval "$lt_compile" 2>conftest.err)
 
14124
   ac_status=$?
 
14125
   cat conftest.err >&5
 
14126
   echo "$as_me:14126: \$? = $ac_status" >&5
 
14127
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14128
     # The compiler can only warn and ignore the option if not recognized
 
14129
     # So say no if there are warnings other than the usual output.
 
14130
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14131
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14132
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14133
       lt_cv_prog_compiler_pic_works=yes
 
14134
     fi
 
14135
   fi
 
14136
   $RM conftest*
 
14137
 
 
14138
fi
 
14139
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
14140
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
14141
 
 
14142
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
14143
    case $lt_prog_compiler_pic in
 
14144
     "" | " "*) ;;
 
14145
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
14146
     esac
 
14147
else
 
14148
    lt_prog_compiler_pic=
 
14149
     lt_prog_compiler_can_build_shared=no
 
14150
fi
 
14151
 
 
14152
fi
 
14153
 
 
14154
 
 
14155
 
 
14156
 
 
14157
 
 
14158
 
 
14159
#
 
14160
# Check to make sure the static flag actually works.
 
14161
#
 
14162
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
14163
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14164
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14165
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
14166
  $as_echo_n "(cached) " >&6
 
14167
else
 
14168
  lt_cv_prog_compiler_static_works=no
 
14169
   save_LDFLAGS="$LDFLAGS"
 
14170
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14171
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14172
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14173
     # The linker can only warn and ignore the option if not recognized
 
14174
     # So say no if there are warnings
 
14175
     if test -s conftest.err; then
 
14176
       # Append any errors to the config.log.
 
14177
       cat conftest.err 1>&5
 
14178
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14179
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14180
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14181
         lt_cv_prog_compiler_static_works=yes
 
14182
       fi
 
14183
     else
 
14184
       lt_cv_prog_compiler_static_works=yes
 
14185
     fi
 
14186
   fi
 
14187
   $RM -r conftest*
 
14188
   LDFLAGS="$save_LDFLAGS"
 
14189
 
 
14190
fi
 
14191
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
14192
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
14193
 
 
14194
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
14195
    :
 
14196
else
 
14197
    lt_prog_compiler_static=
 
14198
fi
 
14199
 
 
14200
 
 
14201
 
 
14202
 
 
14203
 
 
14204
 
 
14205
 
 
14206
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14207
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14208
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
14209
  $as_echo_n "(cached) " >&6
 
14210
else
 
14211
  lt_cv_prog_compiler_c_o=no
 
14212
   $RM -r conftest 2>/dev/null
 
14213
   mkdir conftest
 
14214
   cd conftest
 
14215
   mkdir out
 
14216
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14217
 
 
14218
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14219
   # Insert the option either (1) after the last *FLAGS variable, or
 
14220
   # (2) before a word containing "conftest.", or (3) at the end.
 
14221
   # Note that $ac_compile itself does not contain backslashes and begins
 
14222
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14223
   lt_compile=`echo "$ac_compile" | $SED \
 
14224
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14225
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14226
   -e 's:$: $lt_compiler_flag:'`
 
14227
   (eval echo "\"\$as_me:14227: $lt_compile\"" >&5)
 
14228
   (eval "$lt_compile" 2>out/conftest.err)
 
14229
   ac_status=$?
 
14230
   cat out/conftest.err >&5
 
14231
   echo "$as_me:14231: \$? = $ac_status" >&5
 
14232
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14233
   then
 
14234
     # The compiler can only warn and ignore the option if not recognized
 
14235
     # So say no if there are warnings
 
14236
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14237
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14238
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14239
       lt_cv_prog_compiler_c_o=yes
 
14240
     fi
 
14241
   fi
 
14242
   chmod u+w . 2>&5
 
14243
   $RM conftest*
 
14244
   # SGI C++ compiler will create directory out/ii_files/ for
 
14245
   # template instantiation
 
14246
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14247
   $RM out/* && rmdir out
 
14248
   cd ..
 
14249
   $RM -r conftest
 
14250
   $RM conftest*
 
14251
 
 
14252
fi
 
14253
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
14254
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
14255
 
 
14256
 
 
14257
 
 
14258
 
 
14259
 
 
14260
 
 
14261
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14262
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14263
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
14264
  $as_echo_n "(cached) " >&6
 
14265
else
 
14266
  lt_cv_prog_compiler_c_o=no
 
14267
   $RM -r conftest 2>/dev/null
 
14268
   mkdir conftest
 
14269
   cd conftest
 
14270
   mkdir out
 
14271
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14272
 
 
14273
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14274
   # Insert the option either (1) after the last *FLAGS variable, or
 
14275
   # (2) before a word containing "conftest.", or (3) at the end.
 
14276
   # Note that $ac_compile itself does not contain backslashes and begins
 
14277
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14278
   lt_compile=`echo "$ac_compile" | $SED \
 
14279
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14280
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14281
   -e 's:$: $lt_compiler_flag:'`
 
14282
   (eval echo "\"\$as_me:14282: $lt_compile\"" >&5)
 
14283
   (eval "$lt_compile" 2>out/conftest.err)
 
14284
   ac_status=$?
 
14285
   cat out/conftest.err >&5
 
14286
   echo "$as_me:14286: \$? = $ac_status" >&5
 
14287
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14288
   then
 
14289
     # The compiler can only warn and ignore the option if not recognized
 
14290
     # So say no if there are warnings
 
14291
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14292
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14293
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14294
       lt_cv_prog_compiler_c_o=yes
 
14295
     fi
 
14296
   fi
 
14297
   chmod u+w . 2>&5
 
14298
   $RM conftest*
 
14299
   # SGI C++ compiler will create directory out/ii_files/ for
 
14300
   # template instantiation
 
14301
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14302
   $RM out/* && rmdir out
 
14303
   cd ..
 
14304
   $RM -r conftest
 
14305
   $RM conftest*
 
14306
 
 
14307
fi
 
14308
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
14309
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
14310
 
 
14311
 
 
14312
 
 
14313
 
 
14314
hard_links="nottested"
 
14315
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
14316
  # do not overwrite the value of need_locks provided by the user
 
14317
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14318
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14319
  hard_links=yes
 
14320
  $RM conftest*
 
14321
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14322
  touch conftest.a
 
14323
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14324
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14325
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
14326
$as_echo "$hard_links" >&6; }
 
14327
  if test "$hard_links" = no; then
 
14328
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14329
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14330
    need_locks=warn
 
14331
  fi
 
14332
else
 
14333
  need_locks=no
 
14334
fi
 
14335
 
 
14336
 
 
14337
 
 
14338
 
 
14339
 
 
14340
 
 
14341
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14342
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14343
 
 
14344
  runpath_var=
 
14345
  allow_undefined_flag=
 
14346
  always_export_symbols=no
 
14347
  archive_cmds=
 
14348
  archive_expsym_cmds=
 
14349
  compiler_needs_object=no
 
14350
  enable_shared_with_static_runtimes=no
 
14351
  export_dynamic_flag_spec=
 
14352
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14353
  hardcode_automatic=no
 
14354
  hardcode_direct=no
 
14355
  hardcode_direct_absolute=no
 
14356
  hardcode_libdir_flag_spec=
 
14357
  hardcode_libdir_flag_spec_ld=
 
14358
  hardcode_libdir_separator=
 
14359
  hardcode_minus_L=no
 
14360
  hardcode_shlibpath_var=unsupported
 
14361
  inherit_rpath=no
 
14362
  link_all_deplibs=unknown
 
14363
  module_cmds=
 
14364
  module_expsym_cmds=
 
14365
  old_archive_from_new_cmds=
 
14366
  old_archive_from_expsyms_cmds=
 
14367
  thread_safe_flag_spec=
 
14368
  whole_archive_flag_spec=
 
14369
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14370
  # included in the symbol list
 
14371
  include_expsyms=
 
14372
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14373
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14374
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14375
  # as well as any symbol that contains `d'.
 
14376
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14377
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14378
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14379
  # the symbol is explicitly referenced.  Since portable code cannot
 
14380
  # rely on this symbol name, it's probably fine to never include it in
 
14381
  # preloaded symbol tables.
 
14382
  # Exclude shared library initialization/finalization symbols.
 
14383
  extract_expsyms_cmds=
 
14384
 
 
14385
  case $host_os in
 
14386
  cygwin* | mingw* | pw32* | cegcc*)
 
14387
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14388
    # When not using gcc, we currently assume that we are using
 
14389
    # Microsoft Visual C++.
 
14390
    if test "$GCC" != yes; then
 
14391
      with_gnu_ld=no
 
14392
    fi
 
14393
    ;;
 
14394
  interix*)
 
14395
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14396
    with_gnu_ld=yes
 
14397
    ;;
 
14398
  openbsd*)
 
14399
    with_gnu_ld=no
 
14400
    ;;
 
14401
  esac
 
14402
 
 
14403
  ld_shlibs=yes
 
14404
  if test "$with_gnu_ld" = yes; then
 
14405
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14406
    wlarc='${wl}'
 
14407
 
 
14408
    # Set some defaults for GNU ld with shared library support. These
 
14409
    # are reset later if shared libraries are not supported. Putting them
 
14410
    # here allows them to be overridden if necessary.
 
14411
    runpath_var=LD_RUN_PATH
 
14412
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
14413
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
14414
    # ancient GNU ld didn't support --whole-archive et. al.
 
14415
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
14416
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14417
    else
 
14418
      whole_archive_flag_spec=
 
14419
    fi
 
14420
    supports_anon_versioning=no
 
14421
    case `$LD -v 2>&1` in
 
14422
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14423
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14424
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14425
      *\ 2.11.*) ;; # other 2.11 versions
 
14426
      *) supports_anon_versioning=yes ;;
 
14427
    esac
 
14428
 
 
14429
    # See if GNU ld supports shared libraries.
 
14430
    case $host_os in
 
14431
    aix[3-9]*)
 
14432
      # On AIX/PPC, the GNU linker is very broken
 
14433
      if test "$host_cpu" != ia64; then
 
14434
        ld_shlibs=no
 
14435
        cat <<_LT_EOF 1>&2
 
14436
 
 
14437
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14438
*** to be unable to reliably create shared libraries on AIX.
 
14439
*** Therefore, libtool is disabling shared libraries support.  If you
 
14440
*** really care for shared libraries, you may want to modify your PATH
 
14441
*** so that a non-GNU linker is found, and then restart.
 
14442
 
 
14443
_LT_EOF
 
14444
      fi
 
14445
      ;;
 
14446
 
 
14447
    amigaos*)
 
14448
      case $host_cpu in
 
14449
      powerpc)
 
14450
            # see comment about AmigaOS4 .so support
 
14451
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14452
            archive_expsym_cmds=''
 
14453
        ;;
 
14454
      m68k)
 
14455
            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)'
 
14456
            hardcode_libdir_flag_spec='-L$libdir'
 
14457
            hardcode_minus_L=yes
 
14458
        ;;
 
14459
      esac
 
14460
      ;;
 
14461
 
 
14462
    beos*)
 
14463
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
14464
        allow_undefined_flag=unsupported
 
14465
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14466
        # support --undefined.  This deserves some investigation.  FIXME
 
14467
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14468
      else
 
14469
        ld_shlibs=no
 
14470
      fi
 
14471
      ;;
 
14472
 
 
14473
    cygwin* | mingw* | pw32* | cegcc*)
 
14474
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
14475
      # as there is no search path for DLLs.
 
14476
      hardcode_libdir_flag_spec='-L$libdir'
 
14477
      allow_undefined_flag=unsupported
 
14478
      always_export_symbols=no
 
14479
      enable_shared_with_static_runtimes=yes
 
14480
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14481
 
 
14482
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
14483
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14484
        # If the export-symbols file already is a .def file (1st line
 
14485
        # is EXPORTS), use it as is; otherwise, prepend...
 
14486
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14487
          cp $export_symbols $output_objdir/$soname.def;
 
14488
        else
 
14489
          echo EXPORTS > $output_objdir/$soname.def;
 
14490
          cat $export_symbols >> $output_objdir/$soname.def;
 
14491
        fi~
 
14492
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14493
      else
 
14494
        ld_shlibs=no
 
14495
      fi
 
14496
      ;;
 
14497
 
 
14498
    interix[3-9]*)
 
14499
      hardcode_direct=no
 
14500
      hardcode_shlibpath_var=no
 
14501
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
14502
      export_dynamic_flag_spec='${wl}-E'
 
14503
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14504
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14505
      # default) and relocated if they conflict, which is a slow very memory
 
14506
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14507
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14508
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14509
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14510
      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'
 
14511
      ;;
 
14512
 
 
14513
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
14514
      tmp_diet=no
 
14515
      if test "$host_os" = linux-dietlibc; then
 
14516
        case $cc_basename in
 
14517
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
14518
        esac
 
14519
      fi
 
14520
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
14521
         && test "$tmp_diet" = no
 
14522
      then
 
14523
        tmp_addflag=
 
14524
        tmp_sharedflag='-shared'
 
14525
        case $cc_basename,$host_cpu in
 
14526
        pgcc*)                          # Portland Group C compiler
 
14527
          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'
 
14528
          tmp_addflag=' $pic_flag'
 
14529
          ;;
 
14530
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14531
          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'
 
14532
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14533
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
14534
          tmp_addflag=' -i_dynamic' ;;
 
14535
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14536
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14537
        ifc* | ifort*)                  # Intel Fortran compiler
 
14538
          tmp_addflag=' -nofor_main' ;;
 
14539
        lf95*)                          # Lahey Fortran 8.1
 
14540
          whole_archive_flag_spec=
 
14541
          tmp_sharedflag='--shared' ;;
 
14542
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
14543
          tmp_sharedflag='-qmkshrobj'
 
14544
          tmp_addflag= ;;
 
14545
        esac
 
14546
        case `$CC -V 2>&1 | sed 5q` in
 
14547
        *Sun\ C*)                       # Sun C 5.9
 
14548
          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'
 
14549
          compiler_needs_object=yes
 
14550
          tmp_sharedflag='-G' ;;
 
14551
        *Sun\ F*)                       # Sun Fortran 8.3
 
14552
          tmp_sharedflag='-G' ;;
 
14553
        esac
 
14554
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14555
 
 
14556
        if test "x$supports_anon_versioning" = xyes; then
 
14557
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
14558
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14559
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
14560
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14561
        fi
 
14562
 
 
14563
        case $cc_basename in
 
14564
        xlf*)
 
14565
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
14566
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
14567
          hardcode_libdir_flag_spec=
 
14568
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
14569
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
14570
          if test "x$supports_anon_versioning" = xyes; then
 
14571
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
14572
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14573
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
14574
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
14575
          fi
 
14576
          ;;
 
14577
        esac
 
14578
      else
 
14579
        ld_shlibs=no
 
14580
      fi
 
14581
      ;;
 
14582
 
 
14583
    netbsd*)
 
14584
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
14585
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14586
        wlarc=
 
14587
      else
 
14588
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14589
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14590
      fi
 
14591
      ;;
 
14592
 
 
14593
    solaris*)
 
14594
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
14595
        ld_shlibs=no
 
14596
        cat <<_LT_EOF 1>&2
 
14597
 
 
14598
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14599
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14600
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14601
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14602
*** your PATH or compiler configuration so that the native linker is
 
14603
*** used, and then restart.
 
14604
 
 
14605
_LT_EOF
 
14606
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
14607
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14608
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14609
      else
 
14610
        ld_shlibs=no
 
14611
      fi
 
14612
      ;;
 
14613
 
 
14614
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14615
      case `$LD -v 2>&1` in
 
14616
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14617
        ld_shlibs=no
 
14618
        cat <<_LT_EOF 1>&2
 
14619
 
 
14620
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14621
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14622
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14623
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14624
*** your PATH or compiler configuration so that the native linker is
 
14625
*** used, and then restart.
 
14626
 
 
14627
_LT_EOF
 
14628
        ;;
 
14629
        *)
 
14630
          # For security reasons, it is highly recommended that you always
 
14631
          # use absolute paths for naming shared libraries, and exclude the
 
14632
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
14633
          # requires that you compile everything twice, which is a pain.
 
14634
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
14635
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
14636
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14637
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14638
          else
 
14639
            ld_shlibs=no
 
14640
          fi
 
14641
        ;;
 
14642
      esac
 
14643
      ;;
 
14644
 
 
14645
    sunos4*)
 
14646
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14647
      wlarc=
 
14648
      hardcode_direct=yes
 
14649
      hardcode_shlibpath_var=no
 
14650
      ;;
 
14651
 
 
14652
    *)
 
14653
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
14654
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14655
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14656
      else
 
14657
        ld_shlibs=no
 
14658
      fi
 
14659
      ;;
 
14660
    esac
 
14661
 
 
14662
    if test "$ld_shlibs" = no; then
 
14663
      runpath_var=
 
14664
      hardcode_libdir_flag_spec=
 
14665
      export_dynamic_flag_spec=
 
14666
      whole_archive_flag_spec=
 
14667
    fi
 
14668
  else
 
14669
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14670
    case $host_os in
 
14671
    aix3*)
 
14672
      allow_undefined_flag=unsupported
 
14673
      always_export_symbols=yes
 
14674
      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'
 
14675
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14676
      # are no directories specified by -L.
 
14677
      hardcode_minus_L=yes
 
14678
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14679
        # Neither direct hardcoding nor static linking is supported with a
 
14680
        # broken collect2.
 
14681
        hardcode_direct=unsupported
 
14682
      fi
 
14683
      ;;
 
14684
 
 
14685
    aix[4-9]*)
 
14686
      if test "$host_cpu" = ia64; then
 
14687
        # On IA64, the linker does run time linking by default, so we don't
 
14688
        # have to do anything special.
 
14689
        aix_use_runtimelinking=no
 
14690
        exp_sym_flag='-Bexport'
 
14691
        no_entry_flag=""
 
14692
      else
 
14693
        # If we're using GNU nm, then we don't want the "-C" option.
 
14694
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14695
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14696
          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'
 
14697
        else
 
14698
          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'
 
14699
        fi
 
14700
        aix_use_runtimelinking=no
 
14701
 
 
14702
        # Test if we are trying to use run time linking or normal
 
14703
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14704
        # need to do runtime linking.
 
14705
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
14706
          for ld_flag in $LDFLAGS; do
 
14707
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14708
            aix_use_runtimelinking=yes
 
14709
            break
 
14710
          fi
 
14711
          done
 
14712
          ;;
 
14713
        esac
 
14714
 
 
14715
        exp_sym_flag='-bexport'
 
14716
        no_entry_flag='-bnoentry'
 
14717
      fi
 
14718
 
 
14719
      # When large executables or shared objects are built, AIX ld can
 
14720
      # have problems creating the table of contents.  If linking a library
 
14721
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14722
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14723
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14724
 
 
14725
      archive_cmds=''
 
14726
      hardcode_direct=yes
 
14727
      hardcode_direct_absolute=yes
 
14728
      hardcode_libdir_separator=':'
 
14729
      link_all_deplibs=yes
 
14730
      file_list_spec='${wl}-f,'
 
14731
 
 
14732
      if test "$GCC" = yes; then
 
14733
        case $host_os in aix4.[012]|aix4.[012].*)
 
14734
        # We only want to do this on AIX 4.2 and lower, the check
 
14735
        # below for broken collect2 doesn't work under 4.3+
 
14736
          collect2name=`${CC} -print-prog-name=collect2`
 
14737
          if test -f "$collect2name" &&
 
14738
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
14739
          then
 
14740
          # We have reworked collect2
 
14741
          :
 
14742
          else
 
14743
          # We have old collect2
 
14744
          hardcode_direct=unsupported
 
14745
          # It fails to find uninstalled libraries when the uninstalled
 
14746
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14747
          # to unsupported forces relinking
 
14748
          hardcode_minus_L=yes
 
14749
          hardcode_libdir_flag_spec='-L$libdir'
 
14750
          hardcode_libdir_separator=
 
14751
          fi
 
14752
          ;;
 
14753
        esac
 
14754
        shared_flag='-shared'
 
14755
        if test "$aix_use_runtimelinking" = yes; then
 
14756
          shared_flag="$shared_flag "'${wl}-G'
 
14757
        fi
 
14758
      else
 
14759
        # not using gcc
 
14760
        if test "$host_cpu" = ia64; then
 
14761
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14762
        # chokes on -Wl,-G. The following line is correct:
 
14763
          shared_flag='-G'
 
14764
        else
 
14765
          if test "$aix_use_runtimelinking" = yes; then
 
14766
            shared_flag='${wl}-G'
 
14767
          else
 
14768
            shared_flag='${wl}-bM:SRE'
 
14769
          fi
 
14770
        fi
 
14771
      fi
 
14772
 
 
14773
      export_dynamic_flag_spec='${wl}-bexpall'
 
14774
      # It seems that -bexpall does not export symbols beginning with
 
14775
      # underscore (_), so it is better to generate a list of symbols to export.
 
14776
      always_export_symbols=yes
 
14777
      if test "$aix_use_runtimelinking" = yes; then
 
14778
        # Warning - without using the other runtime loading flags (-brtl),
 
14779
        # -berok will link without error, but may produce a broken library.
 
14780
        allow_undefined_flag='-berok'
 
14781
        # Determine the default libpath from the value encoded in an
 
14782
        # empty executable.
 
14783
        cat >conftest.$ac_ext <<_ACEOF
 
14784
/* confdefs.h.  */
 
14785
_ACEOF
 
14786
cat confdefs.h >>conftest.$ac_ext
 
14787
cat >>conftest.$ac_ext <<_ACEOF
 
14788
/* end confdefs.h.  */
 
14789
 
 
14790
int
 
14791
main ()
 
14792
{
 
14793
 
 
14794
  ;
 
14795
  return 0;
 
14796
}
 
14797
_ACEOF
 
14798
rm -f conftest.$ac_objext conftest$ac_exeext
 
14799
if { (ac_try="$ac_link"
 
14800
case "(($ac_try" in
 
14801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14802
  *) ac_try_echo=$ac_try;;
 
14803
esac
 
14804
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14805
$as_echo "$ac_try_echo") >&5
 
14806
  (eval "$ac_link") 2>conftest.er1
 
14807
  ac_status=$?
 
14808
  grep -v '^ *+' conftest.er1 >conftest.err
 
14809
  rm -f conftest.er1
 
14810
  cat conftest.err >&5
 
14811
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14812
  (exit $ac_status); } && {
 
14813
         test -z "$ac_c_werror_flag" ||
 
14814
         test ! -s conftest.err
 
14815
       } && test -s conftest$ac_exeext && {
 
14816
         test "$cross_compiling" = yes ||
 
14817
         $as_test_x conftest$ac_exeext
 
14818
       }; then
 
14819
 
 
14820
lt_aix_libpath_sed='
 
14821
    /Import File Strings/,/^$/ {
 
14822
        /^0/ {
 
14823
            s/^0  *\(.*\)$/\1/
 
14824
            p
 
14825
        }
 
14826
    }'
 
14827
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14828
# Check for a 64-bit object if we didn't find anything.
 
14829
if test -z "$aix_libpath"; then
 
14830
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14831
fi
 
14832
else
 
14833
  $as_echo "$as_me: failed program was:" >&5
 
14834
sed 's/^/| /' conftest.$ac_ext >&5
 
14835
 
 
14836
 
 
14837
fi
 
14838
 
 
14839
rm -rf conftest.dSYM
 
14840
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14841
      conftest$ac_exeext conftest.$ac_ext
 
14842
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14843
 
 
14844
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14845
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14846
      else
 
14847
        if test "$host_cpu" = ia64; then
 
14848
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
14849
          allow_undefined_flag="-z nodefs"
 
14850
          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"
 
14851
        else
 
14852
         # Determine the default libpath from the value encoded in an
 
14853
         # empty executable.
 
14854
         cat >conftest.$ac_ext <<_ACEOF
 
14855
/* confdefs.h.  */
 
14856
_ACEOF
 
14857
cat confdefs.h >>conftest.$ac_ext
 
14858
cat >>conftest.$ac_ext <<_ACEOF
 
14859
/* end confdefs.h.  */
 
14860
 
 
14861
int
 
14862
main ()
 
14863
{
 
14864
 
 
14865
  ;
 
14866
  return 0;
 
14867
}
 
14868
_ACEOF
 
14869
rm -f conftest.$ac_objext conftest$ac_exeext
 
14870
if { (ac_try="$ac_link"
 
14871
case "(($ac_try" in
 
14872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14873
  *) ac_try_echo=$ac_try;;
 
14874
esac
 
14875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14876
$as_echo "$ac_try_echo") >&5
 
14877
  (eval "$ac_link") 2>conftest.er1
 
14878
  ac_status=$?
 
14879
  grep -v '^ *+' conftest.er1 >conftest.err
 
14880
  rm -f conftest.er1
 
14881
  cat conftest.err >&5
 
14882
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14883
  (exit $ac_status); } && {
 
14884
         test -z "$ac_c_werror_flag" ||
 
14885
         test ! -s conftest.err
 
14886
       } && test -s conftest$ac_exeext && {
 
14887
         test "$cross_compiling" = yes ||
 
14888
         $as_test_x conftest$ac_exeext
 
14889
       }; then
 
14890
 
 
14891
lt_aix_libpath_sed='
 
14892
    /Import File Strings/,/^$/ {
 
14893
        /^0/ {
 
14894
            s/^0  *\(.*\)$/\1/
 
14895
            p
 
14896
        }
 
14897
    }'
 
14898
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14899
# Check for a 64-bit object if we didn't find anything.
 
14900
if test -z "$aix_libpath"; then
 
14901
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14902
fi
 
14903
else
 
14904
  $as_echo "$as_me: failed program was:" >&5
 
14905
sed 's/^/| /' conftest.$ac_ext >&5
 
14906
 
 
14907
 
 
14908
fi
 
14909
 
 
14910
rm -rf conftest.dSYM
 
14911
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14912
      conftest$ac_exeext conftest.$ac_ext
 
14913
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14914
 
 
14915
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14916
          # Warning - without using the other run time loading flags,
 
14917
          # -berok will link without error, but may produce a broken library.
 
14918
          no_undefined_flag=' ${wl}-bernotok'
 
14919
          allow_undefined_flag=' ${wl}-berok'
 
14920
          # Exported symbols can be pulled into shared objects from archives
 
14921
          whole_archive_flag_spec='$convenience'
 
14922
          archive_cmds_need_lc=yes
 
14923
          # This is similar to how AIX traditionally builds its shared libraries.
 
14924
          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'
 
14925
        fi
 
14926
      fi
 
14927
      ;;
 
14928
 
 
14929
    amigaos*)
 
14930
      case $host_cpu in
 
14931
      powerpc)
 
14932
            # see comment about AmigaOS4 .so support
 
14933
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14934
            archive_expsym_cmds=''
 
14935
        ;;
 
14936
      m68k)
 
14937
            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)'
 
14938
            hardcode_libdir_flag_spec='-L$libdir'
 
14939
            hardcode_minus_L=yes
 
14940
        ;;
 
14941
      esac
 
14942
      ;;
 
14943
 
 
14944
    bsdi[45]*)
 
14945
      export_dynamic_flag_spec=-rdynamic
 
14946
      ;;
 
14947
 
 
14948
    cygwin* | mingw* | pw32* | cegcc*)
 
14949
      # When not using gcc, we currently assume that we are using
 
14950
      # Microsoft Visual C++.
 
14951
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14952
      # no search path for DLLs.
 
14953
      hardcode_libdir_flag_spec=' '
 
14954
      allow_undefined_flag=unsupported
 
14955
      # Tell ltmain to make .lib files, not .a files.
 
14956
      libext=lib
 
14957
      # Tell ltmain to make .dll files, not .so files.
 
14958
      shrext_cmds=".dll"
 
14959
      # FIXME: Setting linknames here is a bad hack.
 
14960
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14961
      # The linker will automatically build a .lib file if we build a DLL.
 
14962
      old_archive_from_new_cmds='true'
 
14963
      # FIXME: Should let the user specify the lib program.
 
14964
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
14965
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14966
      enable_shared_with_static_runtimes=yes
 
14967
      ;;
 
14968
 
 
14969
    darwin* | rhapsody*)
 
14970
 
 
14971
 
 
14972
  archive_cmds_need_lc=no
 
14973
  hardcode_direct=no
 
14974
  hardcode_automatic=yes
 
14975
  hardcode_shlibpath_var=unsupported
 
14976
  whole_archive_flag_spec=''
 
14977
  link_all_deplibs=yes
 
14978
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
14979
  case $cc_basename in
 
14980
     ifort*) _lt_dar_can_shared=yes ;;
 
14981
     *) _lt_dar_can_shared=$GCC ;;
 
14982
  esac
 
14983
  if test "$_lt_dar_can_shared" = "yes"; then
 
14984
    output_verbose_link_cmd=echo
 
14985
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
14986
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
14987
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
14988
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
14989
 
 
14990
  else
 
14991
  ld_shlibs=no
 
14992
  fi
 
14993
 
 
14994
      ;;
 
14995
 
 
14996
    dgux*)
 
14997
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14998
      hardcode_libdir_flag_spec='-L$libdir'
 
14999
      hardcode_shlibpath_var=no
 
15000
      ;;
 
15001
 
 
15002
    freebsd1*)
 
15003
      ld_shlibs=no
 
15004
      ;;
 
15005
 
 
15006
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15007
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15008
    # does not break anything, and helps significantly (at the cost of a little
 
15009
    # extra space).
 
15010
    freebsd2.2*)
 
15011
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15012
      hardcode_libdir_flag_spec='-R$libdir'
 
15013
      hardcode_direct=yes
 
15014
      hardcode_shlibpath_var=no
 
15015
      ;;
 
15016
 
 
15017
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15018
    freebsd2*)
 
15019
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15020
      hardcode_direct=yes
 
15021
      hardcode_minus_L=yes
 
15022
      hardcode_shlibpath_var=no
 
15023
      ;;
 
15024
 
 
15025
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15026
    freebsd* | dragonfly*)
 
15027
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15028
      hardcode_libdir_flag_spec='-R$libdir'
 
15029
      hardcode_direct=yes
 
15030
      hardcode_shlibpath_var=no
 
15031
      ;;
 
15032
 
 
15033
    hpux9*)
 
15034
      if test "$GCC" = yes; then
 
15035
        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'
 
15036
      else
 
15037
        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'
 
15038
      fi
 
15039
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
15040
      hardcode_libdir_separator=:
 
15041
      hardcode_direct=yes
 
15042
 
 
15043
      # hardcode_minus_L: Not really in the search PATH,
 
15044
      # but as the default location of the library.
 
15045
      hardcode_minus_L=yes
 
15046
      export_dynamic_flag_spec='${wl}-E'
 
15047
      ;;
 
15048
 
 
15049
    hpux10*)
 
15050
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15051
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15052
      else
 
15053
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15054
      fi
 
15055
      if test "$with_gnu_ld" = no; then
 
15056
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
15057
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
15058
        hardcode_libdir_separator=:
 
15059
        hardcode_direct=yes
 
15060
        hardcode_direct_absolute=yes
 
15061
        export_dynamic_flag_spec='${wl}-E'
 
15062
        # hardcode_minus_L: Not really in the search PATH,
 
15063
        # but as the default location of the library.
 
15064
        hardcode_minus_L=yes
 
15065
      fi
 
15066
      ;;
 
15067
 
 
15068
    hpux11*)
 
15069
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15070
        case $host_cpu in
 
15071
        hppa*64*)
 
15072
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15073
          ;;
 
15074
        ia64*)
 
15075
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15076
          ;;
 
15077
        *)
 
15078
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15079
          ;;
 
15080
        esac
 
15081
      else
 
15082
        case $host_cpu in
 
15083
        hppa*64*)
 
15084
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15085
          ;;
 
15086
        ia64*)
 
15087
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15088
          ;;
 
15089
        *)
 
15090
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15091
          ;;
 
15092
        esac
 
15093
      fi
 
15094
      if test "$with_gnu_ld" = no; then
 
15095
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
15096
        hardcode_libdir_separator=:
 
15097
 
 
15098
        case $host_cpu in
 
15099
        hppa*64*|ia64*)
 
15100
          hardcode_direct=no
 
15101
          hardcode_shlibpath_var=no
 
15102
          ;;
 
15103
        *)
 
15104
          hardcode_direct=yes
 
15105
          hardcode_direct_absolute=yes
 
15106
          export_dynamic_flag_spec='${wl}-E'
 
15107
 
 
15108
          # hardcode_minus_L: Not really in the search PATH,
 
15109
          # but as the default location of the library.
 
15110
          hardcode_minus_L=yes
 
15111
          ;;
 
15112
        esac
 
15113
      fi
 
15114
      ;;
 
15115
 
 
15116
    irix5* | irix6* | nonstopux*)
 
15117
      if test "$GCC" = yes; then
 
15118
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15119
        # Try to use the -exported_symbol ld option, if it does not
 
15120
        # work, assume that -exports_file does not work either and
 
15121
        # implicitly export all symbols.
 
15122
        save_LDFLAGS="$LDFLAGS"
 
15123
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
15124
        cat >conftest.$ac_ext <<_ACEOF
 
15125
int foo(void) {}
 
15126
_ACEOF
 
15127
rm -f conftest.$ac_objext conftest$ac_exeext
 
15128
if { (ac_try="$ac_link"
 
15129
case "(($ac_try" in
 
15130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15131
  *) ac_try_echo=$ac_try;;
 
15132
esac
 
15133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15134
$as_echo "$ac_try_echo") >&5
 
15135
  (eval "$ac_link") 2>conftest.er1
 
15136
  ac_status=$?
 
15137
  grep -v '^ *+' conftest.er1 >conftest.err
 
15138
  rm -f conftest.er1
 
15139
  cat conftest.err >&5
 
15140
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15141
  (exit $ac_status); } && {
 
15142
         test -z "$ac_c_werror_flag" ||
 
15143
         test ! -s conftest.err
 
15144
       } && test -s conftest$ac_exeext && {
 
15145
         test "$cross_compiling" = yes ||
 
15146
         $as_test_x conftest$ac_exeext
 
15147
       }; then
 
15148
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
15149
 
 
15150
else
 
15151
  $as_echo "$as_me: failed program was:" >&5
 
15152
sed 's/^/| /' conftest.$ac_ext >&5
 
15153
 
 
15154
 
 
15155
fi
 
15156
 
 
15157
rm -rf conftest.dSYM
 
15158
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15159
      conftest$ac_exeext conftest.$ac_ext
 
15160
        LDFLAGS="$save_LDFLAGS"
 
15161
      else
 
15162
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
15163
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
15164
      fi
 
15165
      archive_cmds_need_lc='no'
 
15166
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15167
      hardcode_libdir_separator=:
 
15168
      inherit_rpath=yes
 
15169
      link_all_deplibs=yes
 
15170
      ;;
 
15171
 
 
15172
    netbsd*)
 
15173
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15174
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15175
      else
 
15176
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15177
      fi
 
15178
      hardcode_libdir_flag_spec='-R$libdir'
 
15179
      hardcode_direct=yes
 
15180
      hardcode_shlibpath_var=no
 
15181
      ;;
 
15182
 
 
15183
    newsos6)
 
15184
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15185
      hardcode_direct=yes
 
15186
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15187
      hardcode_libdir_separator=:
 
15188
      hardcode_shlibpath_var=no
 
15189
      ;;
 
15190
 
 
15191
    *nto* | *qnx*)
 
15192
      ;;
 
15193
 
 
15194
    openbsd*)
 
15195
      if test -f /usr/libexec/ld.so; then
 
15196
        hardcode_direct=yes
 
15197
        hardcode_shlibpath_var=no
 
15198
        hardcode_direct_absolute=yes
 
15199
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15200
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15201
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15202
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
15203
          export_dynamic_flag_spec='${wl}-E'
 
15204
        else
 
15205
          case $host_os in
 
15206
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15207
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15208
             hardcode_libdir_flag_spec='-R$libdir'
 
15209
             ;;
 
15210
           *)
 
15211
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15212
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
15213
             ;;
 
15214
          esac
 
15215
        fi
 
15216
      else
 
15217
        ld_shlibs=no
 
15218
      fi
 
15219
      ;;
 
15220
 
 
15221
    os2*)
 
15222
      hardcode_libdir_flag_spec='-L$libdir'
 
15223
      hardcode_minus_L=yes
 
15224
      allow_undefined_flag=unsupported
 
15225
      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'
 
15226
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15227
      ;;
 
15228
 
 
15229
    osf3*)
 
15230
      if test "$GCC" = yes; then
 
15231
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
15232
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15233
      else
 
15234
        allow_undefined_flag=' -expect_unresolved \*'
 
15235
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
15236
      fi
 
15237
      archive_cmds_need_lc='no'
 
15238
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15239
      hardcode_libdir_separator=:
 
15240
      ;;
 
15241
 
 
15242
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15243
      if test "$GCC" = yes; then
 
15244
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
15245
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15246
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
15247
      else
 
15248
        allow_undefined_flag=' -expect_unresolved \*'
 
15249
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
15250
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
15251
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
15252
 
 
15253
        # Both c and cxx compiler support -rpath directly
 
15254
        hardcode_libdir_flag_spec='-rpath $libdir'
 
15255
      fi
 
15256
      archive_cmds_need_lc='no'
 
15257
      hardcode_libdir_separator=:
 
15258
      ;;
 
15259
 
 
15260
    solaris*)
 
15261
      no_undefined_flag=' -z defs'
 
15262
      if test "$GCC" = yes; then
 
15263
        wlarc='${wl}'
 
15264
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15265
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
15266
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
15267
      else
 
15268
        case `$CC -V 2>&1` in
 
15269
        *"Compilers 5.0"*)
 
15270
          wlarc=''
 
15271
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15272
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
15273
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
15274
          ;;
 
15275
        *)
 
15276
          wlarc='${wl}'
 
15277
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15278
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
15279
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
15280
          ;;
 
15281
        esac
 
15282
      fi
 
15283
      hardcode_libdir_flag_spec='-R$libdir'
 
15284
      hardcode_shlibpath_var=no
 
15285
      case $host_os in
 
15286
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15287
      *)
 
15288
        # The compiler driver will combine and reorder linker options,
 
15289
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15290
        # but is careful enough not to reorder.
 
15291
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15292
        if test "$GCC" = yes; then
 
15293
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15294
        else
 
15295
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
15296
        fi
 
15297
        ;;
 
15298
      esac
 
15299
      link_all_deplibs=yes
 
15300
      ;;
 
15301
 
 
15302
    sunos4*)
 
15303
      if test "x$host_vendor" = xsequent; then
 
15304
        # Use $CC to link under sequent, because it throws in some extra .o
 
15305
        # files that make .init and .fini sections work.
 
15306
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15307
      else
 
15308
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15309
      fi
 
15310
      hardcode_libdir_flag_spec='-L$libdir'
 
15311
      hardcode_direct=yes
 
15312
      hardcode_minus_L=yes
 
15313
      hardcode_shlibpath_var=no
 
15314
      ;;
 
15315
 
 
15316
    sysv4)
 
15317
      case $host_vendor in
 
15318
        sni)
 
15319
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15320
          hardcode_direct=yes # is this really true???
 
15321
        ;;
 
15322
        siemens)
 
15323
          ## LD is ld it makes a PLAMLIB
 
15324
          ## CC just makes a GrossModule.
 
15325
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15326
          reload_cmds='$CC -r -o $output$reload_objs'
 
15327
          hardcode_direct=no
 
15328
        ;;
 
15329
        motorola)
 
15330
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15331
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
15332
        ;;
 
15333
      esac
 
15334
      runpath_var='LD_RUN_PATH'
 
15335
      hardcode_shlibpath_var=no
 
15336
      ;;
 
15337
 
 
15338
    sysv4.3*)
 
15339
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15340
      hardcode_shlibpath_var=no
 
15341
      export_dynamic_flag_spec='-Bexport'
 
15342
      ;;
 
15343
 
 
15344
    sysv4*MP*)
 
15345
      if test -d /usr/nec; then
 
15346
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15347
        hardcode_shlibpath_var=no
 
15348
        runpath_var=LD_RUN_PATH
 
15349
        hardcode_runpath_var=yes
 
15350
        ld_shlibs=yes
 
15351
      fi
 
15352
      ;;
 
15353
 
 
15354
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15355
      no_undefined_flag='${wl}-z,text'
 
15356
      archive_cmds_need_lc=no
 
15357
      hardcode_shlibpath_var=no
 
15358
      runpath_var='LD_RUN_PATH'
 
15359
 
 
15360
      if test "$GCC" = yes; then
 
15361
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15362
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15363
      else
 
15364
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15365
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15366
      fi
 
15367
      ;;
 
15368
 
 
15369
    sysv5* | sco3.2v5* | sco5v6*)
 
15370
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15371
      # link with -lc, and that would cause any symbols used from libc to
 
15372
      # always be unresolved, which means just about no library would
 
15373
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15374
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15375
      # as -z defs.
 
15376
      no_undefined_flag='${wl}-z,text'
 
15377
      allow_undefined_flag='${wl}-z,nodefs'
 
15378
      archive_cmds_need_lc=no
 
15379
      hardcode_shlibpath_var=no
 
15380
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
15381
      hardcode_libdir_separator=':'
 
15382
      link_all_deplibs=yes
 
15383
      export_dynamic_flag_spec='${wl}-Bexport'
 
15384
      runpath_var='LD_RUN_PATH'
 
15385
 
 
15386
      if test "$GCC" = yes; then
 
15387
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15388
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15389
      else
 
15390
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15391
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15392
      fi
 
15393
      ;;
 
15394
 
 
15395
    uts4*)
 
15396
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15397
      hardcode_libdir_flag_spec='-L$libdir'
 
15398
      hardcode_shlibpath_var=no
 
15399
      ;;
 
15400
 
 
15401
    *)
 
15402
      ld_shlibs=no
 
15403
      ;;
 
15404
    esac
 
15405
 
 
15406
    if test x$host_vendor = xsni; then
 
15407
      case $host in
 
15408
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15409
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15410
        ;;
 
15411
      esac
 
15412
    fi
 
15413
  fi
 
15414
 
 
15415
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
15416
$as_echo "$ld_shlibs" >&6; }
 
15417
test "$ld_shlibs" = no && can_build_shared=no
 
15418
 
 
15419
with_gnu_ld=$with_gnu_ld
 
15420
 
 
15421
 
 
15422
 
 
15423
 
 
15424
 
 
15425
 
 
15426
 
 
15427
 
 
15428
 
 
15429
 
 
15430
 
 
15431
 
 
15432
 
 
15433
 
 
15434
 
 
15435
#
 
15436
# Do we need to explicitly link libc?
 
15437
#
 
15438
case "x$archive_cmds_need_lc" in
 
15439
x|xyes)
 
15440
  # Assume -lc should be added
 
15441
  archive_cmds_need_lc=yes
 
15442
 
 
15443
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15444
    case $archive_cmds in
 
15445
    *'~'*)
 
15446
      # FIXME: we may have to deal with multi-command sequences.
 
15447
      ;;
 
15448
    '$CC '*)
 
15449
      # Test whether the compiler implicitly links with -lc since on some
 
15450
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15451
      # to ld, don't add -lc before -lgcc.
 
15452
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15453
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15454
      $RM conftest*
 
15455
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15456
 
 
15457
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15458
  (eval $ac_compile) 2>&5
 
15459
  ac_status=$?
 
15460
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15461
  (exit $ac_status); } 2>conftest.err; then
 
15462
        soname=conftest
 
15463
        lib=conftest
 
15464
        libobjs=conftest.$ac_objext
 
15465
        deplibs=
 
15466
        wl=$lt_prog_compiler_wl
 
15467
        pic_flag=$lt_prog_compiler_pic
 
15468
        compiler_flags=-v
 
15469
        linker_flags=-v
 
15470
        verstring=
 
15471
        output_objdir=.
 
15472
        libname=conftest
 
15473
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
15474
        allow_undefined_flag=
 
15475
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15476
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15477
  ac_status=$?
 
15478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15479
  (exit $ac_status); }
 
15480
        then
 
15481
          archive_cmds_need_lc=no
 
15482
        else
 
15483
          archive_cmds_need_lc=yes
 
15484
        fi
 
15485
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
15486
      else
 
15487
        cat conftest.err 1>&5
 
15488
      fi
 
15489
      $RM conftest*
 
15490
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
15491
$as_echo "$archive_cmds_need_lc" >&6; }
 
15492
      ;;
 
15493
    esac
 
15494
  fi
 
15495
  ;;
 
15496
esac
 
15497
 
 
15498
 
 
15499
 
 
15500
 
 
15501
 
 
15502
 
 
15503
 
 
15504
 
 
15505
 
 
15506
 
 
15507
 
 
15508
 
 
15509
 
 
15510
 
 
15511
 
 
15512
 
 
15513
 
 
15514
 
 
15515
 
 
15516
 
 
15517
 
 
15518
 
 
15519
 
 
15520
 
 
15521
 
 
15522
 
 
15523
 
 
15524
 
 
15525
 
 
15526
 
 
15527
 
 
15528
 
 
15529
 
 
15530
 
 
15531
 
 
15532
 
 
15533
 
 
15534
 
 
15535
 
 
15536
 
 
15537
 
 
15538
 
 
15539
 
 
15540
 
 
15541
 
 
15542
 
 
15543
 
 
15544
 
 
15545
 
 
15546
 
 
15547
 
 
15548
 
 
15549
 
 
15550
 
 
15551
 
 
15552
 
 
15553
 
 
15554
 
 
15555
 
 
15556
 
 
15557
 
 
15558
 
 
15559
 
 
15560
 
 
15561
 
 
15562
 
 
15563
 
 
15564
 
 
15565
 
 
15566
 
 
15567
 
 
15568
 
 
15569
 
 
15570
 
 
15571
 
 
15572
 
 
15573
 
 
15574
 
 
15575
 
 
15576
 
 
15577
 
 
15578
 
 
15579
 
 
15580
 
 
15581
 
 
15582
 
 
15583
 
 
15584
 
 
15585
 
 
15586
 
 
15587
 
 
15588
 
 
15589
 
 
15590
 
 
15591
 
 
15592
 
 
15593
 
 
15594
 
 
15595
 
 
15596
 
 
15597
 
 
15598
 
 
15599
 
 
15600
 
 
15601
 
 
15602
 
 
15603
 
 
15604
 
 
15605
 
 
15606
 
 
15607
 
 
15608
 
 
15609
 
 
15610
 
 
15611
 
 
15612
 
 
15613
 
 
15614
 
 
15615
 
 
15616
 
 
15617
 
 
15618
 
 
15619
 
 
15620
 
 
15621
 
 
15622
 
 
15623
 
 
15624
 
 
15625
 
 
15626
 
 
15627
 
 
15628
 
 
15629
 
 
15630
 
 
15631
 
 
15632
 
 
15633
 
 
15634
 
 
15635
 
 
15636
 
 
15637
 
 
15638
 
 
15639
 
 
15640
 
 
15641
 
 
15642
 
 
15643
 
 
15644
 
 
15645
 
 
15646
 
 
15647
 
 
15648
 
 
15649
 
 
15650
 
 
15651
 
 
15652
 
 
15653
 
 
15654
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15655
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15656
 
 
15657
if test "$GCC" = yes; then
 
15658
  case $host_os in
 
15659
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
15660
    *) lt_awk_arg="/^libraries:/" ;;
 
15661
  esac
 
15662
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15663
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
15664
    # if the path contains ";" then we assume it to be the separator
 
15665
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15666
    # assumed that no part of a normal pathname contains ";" but that should
 
15667
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15668
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
15669
  else
 
15670
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15671
  fi
 
15672
  # Ok, now we have the path, separated by spaces, we can step through it
 
15673
  # and add multilib dir if necessary.
 
15674
  lt_tmp_lt_search_path_spec=
 
15675
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
15676
  for lt_sys_path in $lt_search_path_spec; do
 
15677
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
15678
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
15679
    else
 
15680
      test -d "$lt_sys_path" && \
 
15681
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
15682
    fi
 
15683
  done
 
15684
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
15685
BEGIN {RS=" "; FS="/|\n";} {
 
15686
  lt_foo="";
 
15687
  lt_count=0;
 
15688
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
15689
    if ($lt_i != "" && $lt_i != ".") {
 
15690
      if ($lt_i == "..") {
 
15691
        lt_count++;
 
15692
      } else {
 
15693
        if (lt_count == 0) {
 
15694
          lt_foo="/" $lt_i lt_foo;
 
15695
        } else {
 
15696
          lt_count--;
 
15697
        }
 
15698
      }
 
15699
    }
 
15700
  }
 
15701
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
15702
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
15703
}'`
 
15704
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
15705
else
 
15706
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15707
fi
 
15708
library_names_spec=
 
15709
libname_spec='lib$name'
 
15710
soname_spec=
 
15711
shrext_cmds=".so"
 
15712
postinstall_cmds=
 
15713
postuninstall_cmds=
 
15714
finish_cmds=
 
15715
finish_eval=
 
15716
shlibpath_var=
 
15717
shlibpath_overrides_runpath=unknown
 
15718
version_type=none
 
15719
dynamic_linker="$host_os ld.so"
 
15720
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15721
need_lib_prefix=unknown
 
15722
hardcode_into_libs=no
 
15723
 
 
15724
# when you set need_version to no, make sure it does not cause -set_version
 
15725
# flags to be left without arguments
 
15726
need_version=unknown
 
15727
 
 
15728
case $host_os in
 
15729
aix3*)
 
15730
  version_type=linux
 
15731
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15732
  shlibpath_var=LIBPATH
 
15733
 
 
15734
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15735
  soname_spec='${libname}${release}${shared_ext}$major'
 
15736
  ;;
 
15737
 
 
15738
aix[4-9]*)
 
15739
  version_type=linux
 
15740
  need_lib_prefix=no
 
15741
  need_version=no
 
15742
  hardcode_into_libs=yes
 
15743
  if test "$host_cpu" = ia64; then
 
15744
    # AIX 5 supports IA64
 
15745
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15746
    shlibpath_var=LD_LIBRARY_PATH
 
15747
  else
 
15748
    # With GCC up to 2.95.x, collect2 would create an import file
 
15749
    # for dependence libraries.  The import file would start with
 
15750
    # the line `#! .'.  This would cause the generated library to
 
15751
    # depend on `.', always an invalid library.  This was fixed in
 
15752
    # development snapshots of GCC prior to 3.0.
 
15753
    case $host_os in
 
15754
      aix4 | aix4.[01] | aix4.[01].*)
 
15755
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15756
           echo ' yes '
 
15757
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
15758
        :
 
15759
      else
 
15760
        can_build_shared=no
 
15761
      fi
 
15762
      ;;
 
15763
    esac
 
15764
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15765
    # soname into executable. Probably we can add versioning support to
 
15766
    # collect2, so additional links can be useful in future.
 
15767
    if test "$aix_use_runtimelinking" = yes; then
 
15768
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15769
      # instead of lib<name>.a to let people know that these are not
 
15770
      # typical AIX shared libraries.
 
15771
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15772
    else
 
15773
      # We preserve .a as extension for shared libraries through AIX4.2
 
15774
      # and later when we are not doing run time linking.
 
15775
      library_names_spec='${libname}${release}.a $libname.a'
 
15776
      soname_spec='${libname}${release}${shared_ext}$major'
 
15777
    fi
 
15778
    shlibpath_var=LIBPATH
 
15779
  fi
 
15780
  ;;
 
15781
 
 
15782
amigaos*)
 
15783
  case $host_cpu in
 
15784
  powerpc)
 
15785
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
15786
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
15787
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15788
    ;;
 
15789
  m68k)
 
15790
    library_names_spec='$libname.ixlibrary $libname.a'
 
15791
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15792
    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'
 
15793
    ;;
 
15794
  esac
 
15795
  ;;
 
15796
 
 
15797
beos*)
 
15798
  library_names_spec='${libname}${shared_ext}'
 
15799
  dynamic_linker="$host_os ld.so"
 
15800
  shlibpath_var=LIBRARY_PATH
 
15801
  ;;
 
15802
 
 
15803
bsdi[45]*)
 
15804
  version_type=linux
 
15805
  need_version=no
 
15806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15807
  soname_spec='${libname}${release}${shared_ext}$major'
 
15808
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15809
  shlibpath_var=LD_LIBRARY_PATH
 
15810
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15811
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15812
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15813
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15814
  # libtool to hard-code these into programs
 
15815
  ;;
 
15816
 
 
15817
cygwin* | mingw* | pw32* | cegcc*)
 
15818
  version_type=windows
 
15819
  shrext_cmds=".dll"
 
15820
  need_version=no
 
15821
  need_lib_prefix=no
 
15822
 
 
15823
  case $GCC,$host_os in
 
15824
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
15825
    library_names_spec='$libname.dll.a'
 
15826
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15827
    postinstall_cmds='base_file=`basename \${file}`~
 
15828
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15829
      dldir=$destdir/`dirname \$dlpath`~
 
15830
      test -d \$dldir || mkdir -p \$dldir~
 
15831
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15832
      chmod a+x \$dldir/$dlname~
 
15833
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
15834
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
15835
      fi'
 
15836
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15837
      dlpath=$dir/\$dldll~
 
15838
       $RM \$dlpath'
 
15839
    shlibpath_overrides_runpath=yes
 
15840
 
 
15841
    case $host_os in
 
15842
    cygwin*)
 
15843
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15844
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15845
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15846
      ;;
 
15847
    mingw* | cegcc*)
 
15848
      # MinGW DLLs use traditional 'lib' prefix
 
15849
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15850
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15851
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15852
        # It is most probably a Windows format PATH printed by
 
15853
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15854
        # path with ; separators, and with drive letters. We can handle the
 
15855
        # drive letters (cygwin fileutils understands them), so leave them,
 
15856
        # especially as we might pass files found there to a mingw objdump,
 
15857
        # which wouldn't understand a cygwinified path. Ahh.
 
15858
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15859
      else
 
15860
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15861
      fi
 
15862
      ;;
 
15863
    pw32*)
 
15864
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15865
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15866
      ;;
 
15867
    esac
 
15868
    ;;
 
15869
 
 
15870
  *)
 
15871
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15872
    ;;
 
15873
  esac
 
15874
  dynamic_linker='Win32 ld.exe'
 
15875
  # FIXME: first we should search . and the directory the executable is in
 
15876
  shlibpath_var=PATH
 
15877
  ;;
 
15878
 
 
15879
darwin* | rhapsody*)
 
15880
  dynamic_linker="$host_os dyld"
 
15881
  version_type=darwin
 
15882
  need_lib_prefix=no
 
15883
  need_version=no
 
15884
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15885
  soname_spec='${libname}${release}${major}$shared_ext'
 
15886
  shlibpath_overrides_runpath=yes
 
15887
  shlibpath_var=DYLD_LIBRARY_PATH
 
15888
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15889
 
 
15890
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
15891
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15892
  ;;
 
15893
 
 
15894
dgux*)
 
15895
  version_type=linux
 
15896
  need_lib_prefix=no
 
15897
  need_version=no
 
15898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15899
  soname_spec='${libname}${release}${shared_ext}$major'
 
15900
  shlibpath_var=LD_LIBRARY_PATH
 
15901
  ;;
 
15902
 
 
15903
freebsd1*)
 
15904
  dynamic_linker=no
 
15905
  ;;
 
15906
 
 
15907
freebsd* | dragonfly*)
 
15908
  # DragonFly does not have aout.  When/if they implement a new
 
15909
  # versioning mechanism, adjust this.
 
15910
  if test -x /usr/bin/objformat; then
 
15911
    objformat=`/usr/bin/objformat`
 
15912
  else
 
15913
    case $host_os in
 
15914
    freebsd[123]*) objformat=aout ;;
 
15915
    *) objformat=elf ;;
 
15916
    esac
 
15917
  fi
 
15918
  version_type=freebsd-$objformat
 
15919
  case $version_type in
 
15920
    freebsd-elf*)
 
15921
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15922
      need_version=no
 
15923
      need_lib_prefix=no
 
15924
      ;;
 
15925
    freebsd-*)
 
15926
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15927
      need_version=yes
 
15928
      ;;
 
15929
  esac
 
15930
  shlibpath_var=LD_LIBRARY_PATH
 
15931
  case $host_os in
 
15932
  freebsd2*)
 
15933
    shlibpath_overrides_runpath=yes
 
15934
    ;;
 
15935
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15936
    shlibpath_overrides_runpath=yes
 
15937
    hardcode_into_libs=yes
 
15938
    ;;
 
15939
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15940
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15941
    shlibpath_overrides_runpath=no
 
15942
    hardcode_into_libs=yes
 
15943
    ;;
 
15944
  *) # from 4.6 on, and DragonFly
 
15945
    shlibpath_overrides_runpath=yes
 
15946
    hardcode_into_libs=yes
 
15947
    ;;
 
15948
  esac
 
15949
  ;;
 
15950
 
 
15951
gnu*)
 
15952
  version_type=linux
 
15953
  need_lib_prefix=no
 
15954
  need_version=no
 
15955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15956
  soname_spec='${libname}${release}${shared_ext}$major'
 
15957
  shlibpath_var=LD_LIBRARY_PATH
 
15958
  hardcode_into_libs=yes
 
15959
  ;;
 
15960
 
 
15961
hpux9* | hpux10* | hpux11*)
 
15962
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15963
  # link against other versions.
 
15964
  version_type=sunos
 
15965
  need_lib_prefix=no
 
15966
  need_version=no
 
15967
  case $host_cpu in
 
15968
  ia64*)
 
15969
    shrext_cmds='.so'
 
15970
    hardcode_into_libs=yes
 
15971
    dynamic_linker="$host_os dld.so"
 
15972
    shlibpath_var=LD_LIBRARY_PATH
 
15973
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15974
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15975
    soname_spec='${libname}${release}${shared_ext}$major'
 
15976
    if test "X$HPUX_IA64_MODE" = X32; then
 
15977
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15978
    else
 
15979
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15980
    fi
 
15981
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15982
    ;;
 
15983
  hppa*64*)
 
15984
    shrext_cmds='.sl'
 
15985
    hardcode_into_libs=yes
 
15986
    dynamic_linker="$host_os dld.sl"
 
15987
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15988
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15989
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15990
    soname_spec='${libname}${release}${shared_ext}$major'
 
15991
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15992
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15993
    ;;
 
15994
  *)
 
15995
    shrext_cmds='.sl'
 
15996
    dynamic_linker="$host_os dld.sl"
 
15997
    shlibpath_var=SHLIB_PATH
 
15998
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15999
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16000
    soname_spec='${libname}${release}${shared_ext}$major'
 
16001
    ;;
 
16002
  esac
 
16003
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16004
  postinstall_cmds='chmod 555 $lib'
 
16005
  ;;
 
16006
 
 
16007
interix[3-9]*)
 
16008
  version_type=linux
 
16009
  need_lib_prefix=no
 
16010
  need_version=no
 
16011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16012
  soname_spec='${libname}${release}${shared_ext}$major'
 
16013
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16014
  shlibpath_var=LD_LIBRARY_PATH
 
16015
  shlibpath_overrides_runpath=no
 
16016
  hardcode_into_libs=yes
 
16017
  ;;
 
16018
 
 
16019
irix5* | irix6* | nonstopux*)
 
16020
  case $host_os in
 
16021
    nonstopux*) version_type=nonstopux ;;
 
16022
    *)
 
16023
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16024
                version_type=linux
 
16025
        else
 
16026
                version_type=irix
 
16027
        fi ;;
 
16028
  esac
 
16029
  need_lib_prefix=no
 
16030
  need_version=no
 
16031
  soname_spec='${libname}${release}${shared_ext}$major'
 
16032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16033
  case $host_os in
 
16034
  irix5* | nonstopux*)
 
16035
    libsuff= shlibsuff=
 
16036
    ;;
 
16037
  *)
 
16038
    case $LD in # libtool.m4 will add one of these switches to LD
 
16039
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16040
      libsuff= shlibsuff= libmagic=32-bit;;
 
16041
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16042
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16043
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16044
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16045
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16046
    esac
 
16047
    ;;
 
16048
  esac
 
16049
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16050
  shlibpath_overrides_runpath=no
 
16051
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16052
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16053
  hardcode_into_libs=yes
 
16054
  ;;
 
16055
 
 
16056
# No shared lib support for Linux oldld, aout, or coff.
 
16057
linux*oldld* | linux*aout* | linux*coff*)
 
16058
  dynamic_linker=no
 
16059
  ;;
 
16060
 
 
16061
# This must be Linux ELF.
 
16062
linux* | k*bsd*-gnu)
 
16063
  version_type=linux
 
16064
  need_lib_prefix=no
 
16065
  need_version=no
 
16066
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16067
  soname_spec='${libname}${release}${shared_ext}$major'
 
16068
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16069
  shlibpath_var=LD_LIBRARY_PATH
 
16070
  shlibpath_overrides_runpath=no
 
16071
  # Some binutils ld are patched to set DT_RUNPATH
 
16072
  save_LDFLAGS=$LDFLAGS
 
16073
  save_libdir=$libdir
 
16074
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
16075
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
16076
  cat >conftest.$ac_ext <<_ACEOF
 
16077
/* confdefs.h.  */
 
16078
_ACEOF
 
16079
cat confdefs.h >>conftest.$ac_ext
 
16080
cat >>conftest.$ac_ext <<_ACEOF
 
16081
/* end confdefs.h.  */
 
16082
 
 
16083
int
 
16084
main ()
 
16085
{
 
16086
 
 
16087
  ;
 
16088
  return 0;
 
16089
}
 
16090
_ACEOF
 
16091
rm -f conftest.$ac_objext conftest$ac_exeext
 
16092
if { (ac_try="$ac_link"
 
16093
case "(($ac_try" in
 
16094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16095
  *) ac_try_echo=$ac_try;;
 
16096
esac
 
16097
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16098
$as_echo "$ac_try_echo") >&5
 
16099
  (eval "$ac_link") 2>conftest.er1
 
16100
  ac_status=$?
 
16101
  grep -v '^ *+' conftest.er1 >conftest.err
 
16102
  rm -f conftest.er1
 
16103
  cat conftest.err >&5
 
16104
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16105
  (exit $ac_status); } && {
 
16106
         test -z "$ac_c_werror_flag" ||
 
16107
         test ! -s conftest.err
 
16108
       } && test -s conftest$ac_exeext && {
 
16109
         test "$cross_compiling" = yes ||
 
16110
         $as_test_x conftest$ac_exeext
 
16111
       }; then
 
16112
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
16113
  shlibpath_overrides_runpath=yes
 
16114
fi
 
16115
 
 
16116
else
 
16117
  $as_echo "$as_me: failed program was:" >&5
 
16118
sed 's/^/| /' conftest.$ac_ext >&5
 
16119
 
 
16120
 
 
16121
fi
 
16122
 
 
16123
rm -rf conftest.dSYM
 
16124
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16125
      conftest$ac_exeext conftest.$ac_ext
 
16126
  LDFLAGS=$save_LDFLAGS
 
16127
  libdir=$save_libdir
 
16128
 
 
16129
  # This implies no fast_install, which is unacceptable.
 
16130
  # Some rework will be needed to allow for fast_install
 
16131
  # before this can be enabled.
 
16132
  hardcode_into_libs=yes
 
16133
 
 
16134
  # Add ABI-specific directories to the system library path.
 
16135
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
16136
 
 
16137
  # Append ld.so.conf contents to the search path
 
16138
  if test -f /etc/ld.so.conf; then
 
16139
    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' ' '`
 
16140
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
16141
  fi
 
16142
 
 
16143
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16144
  # powerpc, because MkLinux only supported shared libraries with the
 
16145
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16146
  # most powerpc-linux boxes support dynamic linking these days and
 
16147
  # people can always --disable-shared, the test was removed, and we
 
16148
  # assume the GNU/Linux dynamic linker is in use.
 
16149
  dynamic_linker='GNU/Linux ld.so'
 
16150
  ;;
 
16151
 
 
16152
netbsd*)
 
16153
  version_type=sunos
 
16154
  need_lib_prefix=no
 
16155
  need_version=no
 
16156
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
16157
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16158
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16159
    dynamic_linker='NetBSD (a.out) ld.so'
 
16160
  else
 
16161
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16162
    soname_spec='${libname}${release}${shared_ext}$major'
 
16163
    dynamic_linker='NetBSD ld.elf_so'
 
16164
  fi
 
16165
  shlibpath_var=LD_LIBRARY_PATH
 
16166
  shlibpath_overrides_runpath=yes
 
16167
  hardcode_into_libs=yes
 
16168
  ;;
 
16169
 
 
16170
newsos6)
 
16171
  version_type=linux
 
16172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16173
  shlibpath_var=LD_LIBRARY_PATH
 
16174
  shlibpath_overrides_runpath=yes
 
16175
  ;;
 
16176
 
 
16177
*nto* | *qnx*)
 
16178
  version_type=qnx
 
16179
  need_lib_prefix=no
 
16180
  need_version=no
 
16181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16182
  soname_spec='${libname}${release}${shared_ext}$major'
 
16183
  shlibpath_var=LD_LIBRARY_PATH
 
16184
  shlibpath_overrides_runpath=no
 
16185
  hardcode_into_libs=yes
 
16186
  dynamic_linker='ldqnx.so'
 
16187
  ;;
 
16188
 
 
16189
openbsd*)
 
16190
  version_type=sunos
 
16191
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16192
  need_lib_prefix=no
 
16193
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16194
  case $host_os in
 
16195
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
16196
    *)                          need_version=no  ;;
 
16197
  esac
 
16198
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16199
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16200
  shlibpath_var=LD_LIBRARY_PATH
 
16201
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16202
    case $host_os in
 
16203
      openbsd2.[89] | openbsd2.[89].*)
 
16204
        shlibpath_overrides_runpath=no
 
16205
        ;;
 
16206
      *)
 
16207
        shlibpath_overrides_runpath=yes
 
16208
        ;;
 
16209
      esac
 
16210
  else
 
16211
    shlibpath_overrides_runpath=yes
 
16212
  fi
 
16213
  ;;
 
16214
 
 
16215
os2*)
 
16216
  libname_spec='$name'
 
16217
  shrext_cmds=".dll"
 
16218
  need_lib_prefix=no
 
16219
  library_names_spec='$libname${shared_ext} $libname.a'
 
16220
  dynamic_linker='OS/2 ld.exe'
 
16221
  shlibpath_var=LIBPATH
 
16222
  ;;
 
16223
 
 
16224
osf3* | osf4* | osf5*)
 
16225
  version_type=osf
 
16226
  need_lib_prefix=no
 
16227
  need_version=no
 
16228
  soname_spec='${libname}${release}${shared_ext}$major'
 
16229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16230
  shlibpath_var=LD_LIBRARY_PATH
 
16231
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16232
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16233
  ;;
 
16234
 
 
16235
rdos*)
 
16236
  dynamic_linker=no
 
16237
  ;;
 
16238
 
 
16239
solaris*)
 
16240
  version_type=linux
 
16241
  need_lib_prefix=no
 
16242
  need_version=no
 
16243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16244
  soname_spec='${libname}${release}${shared_ext}$major'
 
16245
  shlibpath_var=LD_LIBRARY_PATH
 
16246
  shlibpath_overrides_runpath=yes
 
16247
  hardcode_into_libs=yes
 
16248
  # ldd complains unless libraries are executable
 
16249
  postinstall_cmds='chmod +x $lib'
 
16250
  ;;
 
16251
 
 
16252
sunos4*)
 
16253
  version_type=sunos
 
16254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16255
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16256
  shlibpath_var=LD_LIBRARY_PATH
 
16257
  shlibpath_overrides_runpath=yes
 
16258
  if test "$with_gnu_ld" = yes; then
 
16259
    need_lib_prefix=no
 
16260
  fi
 
16261
  need_version=yes
 
16262
  ;;
 
16263
 
 
16264
sysv4 | sysv4.3*)
 
16265
  version_type=linux
 
16266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16267
  soname_spec='${libname}${release}${shared_ext}$major'
 
16268
  shlibpath_var=LD_LIBRARY_PATH
 
16269
  case $host_vendor in
 
16270
    sni)
 
16271
      shlibpath_overrides_runpath=no
 
16272
      need_lib_prefix=no
 
16273
      runpath_var=LD_RUN_PATH
 
16274
      ;;
 
16275
    siemens)
 
16276
      need_lib_prefix=no
 
16277
      ;;
 
16278
    motorola)
 
16279
      need_lib_prefix=no
 
16280
      need_version=no
 
16281
      shlibpath_overrides_runpath=no
 
16282
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16283
      ;;
 
16284
  esac
 
16285
  ;;
 
16286
 
 
16287
sysv4*MP*)
 
16288
  if test -d /usr/nec ;then
 
16289
    version_type=linux
 
16290
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16291
    soname_spec='$libname${shared_ext}.$major'
 
16292
    shlibpath_var=LD_LIBRARY_PATH
 
16293
  fi
 
16294
  ;;
 
16295
 
 
16296
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16297
  version_type=freebsd-elf
 
16298
  need_lib_prefix=no
 
16299
  need_version=no
 
16300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16301
  soname_spec='${libname}${release}${shared_ext}$major'
 
16302
  shlibpath_var=LD_LIBRARY_PATH
 
16303
  shlibpath_overrides_runpath=yes
 
16304
  hardcode_into_libs=yes
 
16305
  if test "$with_gnu_ld" = yes; then
 
16306
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16307
  else
 
16308
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16309
    case $host_os in
 
16310
      sco3.2v5*)
 
16311
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16312
        ;;
 
16313
    esac
 
16314
  fi
 
16315
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16316
  ;;
 
16317
 
 
16318
tpf*)
 
16319
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
16320
  version_type=linux
 
16321
  need_lib_prefix=no
 
16322
  need_version=no
 
16323
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16324
  shlibpath_var=LD_LIBRARY_PATH
 
16325
  shlibpath_overrides_runpath=no
 
16326
  hardcode_into_libs=yes
 
16327
  ;;
 
16328
 
 
16329
uts4*)
 
16330
  version_type=linux
 
16331
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16332
  soname_spec='${libname}${release}${shared_ext}$major'
 
16333
  shlibpath_var=LD_LIBRARY_PATH
 
16334
  ;;
 
16335
 
 
16336
*)
 
16337
  dynamic_linker=no
 
16338
  ;;
 
16339
esac
 
16340
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16341
$as_echo "$dynamic_linker" >&6; }
 
16342
test "$dynamic_linker" = no && can_build_shared=no
 
16343
 
 
16344
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16345
if test "$GCC" = yes; then
 
16346
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16347
fi
 
16348
 
 
16349
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16350
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16351
fi
 
16352
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16353
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16354
fi
 
16355
 
 
16356
 
 
16357
 
 
16358
 
 
16359
 
 
16360
 
 
16361
 
 
16362
 
 
16363
 
 
16364
 
 
16365
 
 
16366
 
 
16367
 
 
16368
 
 
16369
 
 
16370
 
 
16371
 
 
16372
 
 
16373
 
 
16374
 
 
16375
 
 
16376
 
 
16377
 
 
16378
 
 
16379
 
 
16380
 
 
16381
 
 
16382
 
 
16383
 
 
16384
 
 
16385
 
 
16386
 
 
16387
 
 
16388
 
 
16389
 
 
16390
 
 
16391
 
 
16392
 
 
16393
 
 
16394
 
 
16395
 
 
16396
 
 
16397
 
 
16398
 
 
16399
 
 
16400
 
 
16401
 
 
16402
 
 
16403
 
 
16404
 
 
16405
 
 
16406
 
 
16407
 
 
16408
 
 
16409
 
 
16410
 
 
16411
 
 
16412
 
 
16413
 
 
16414
 
 
16415
 
 
16416
 
 
16417
 
 
16418
 
 
16419
 
 
16420
 
 
16421
 
 
16422
 
 
16423
 
 
16424
 
 
16425
 
 
16426
 
 
16427
 
 
16428
 
 
16429
 
 
16430
 
 
16431
 
 
16432
 
 
16433
 
 
16434
 
 
16435
 
 
16436
 
 
16437
 
 
16438
 
 
16439
 
 
16440
 
 
16441
 
 
16442
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16443
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16444
hardcode_action=
 
16445
if test -n "$hardcode_libdir_flag_spec" ||
 
16446
   test -n "$runpath_var" ||
 
16447
   test "X$hardcode_automatic" = "Xyes" ; then
 
16448
 
 
16449
  # We can hardcode non-existent directories.
 
16450
  if test "$hardcode_direct" != no &&
 
16451
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16452
     # have to relink, otherwise we might link with an installed library
 
16453
     # when we should be linking with a yet-to-be-installed one
 
16454
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
16455
     test "$hardcode_minus_L" != no; then
 
16456
    # Linking always hardcodes the temporary library directory.
 
16457
    hardcode_action=relink
 
16458
  else
 
16459
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16460
    hardcode_action=immediate
 
16461
  fi
 
16462
else
 
16463
  # We cannot hardcode anything, or else we can only hardcode existing
 
16464
  # directories.
 
16465
  hardcode_action=unsupported
 
16466
fi
 
16467
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
16468
$as_echo "$hardcode_action" >&6; }
 
16469
 
 
16470
if test "$hardcode_action" = relink ||
 
16471
   test "$inherit_rpath" = yes; then
 
16472
  # Fast installation is not supported
 
16473
  enable_fast_install=no
 
16474
elif test "$shlibpath_overrides_runpath" = yes ||
 
16475
     test "$enable_shared" = no; then
 
16476
  # Fast installation is not necessary
 
16477
  enable_fast_install=needless
 
16478
fi
 
16479
 
 
16480
 
 
16481
 
 
16482
 
 
16483
 
 
16484
 
 
16485
  if test "x$enable_dlopen" != xyes; then
 
16486
  enable_dlopen=unknown
 
16487
  enable_dlopen_self=unknown
 
16488
  enable_dlopen_self_static=unknown
 
16489
else
 
16490
  lt_cv_dlopen=no
 
16491
  lt_cv_dlopen_libs=
 
16492
 
 
16493
  case $host_os in
 
16494
  beos*)
 
16495
    lt_cv_dlopen="load_add_on"
 
16496
    lt_cv_dlopen_libs=
 
16497
    lt_cv_dlopen_self=yes
 
16498
    ;;
 
16499
 
 
16500
  mingw* | pw32* | cegcc*)
 
16501
    lt_cv_dlopen="LoadLibrary"
 
16502
    lt_cv_dlopen_libs=
 
16503
    ;;
 
16504
 
 
16505
  cygwin*)
 
16506
    lt_cv_dlopen="dlopen"
 
16507
    lt_cv_dlopen_libs=
 
16508
    ;;
 
16509
 
 
16510
  darwin*)
 
16511
  # if libdl is installed we need to link against it
 
16512
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16513
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
16514
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16515
  $as_echo_n "(cached) " >&6
 
16516
else
 
16517
  ac_check_lib_save_LIBS=$LIBS
 
16518
LIBS="-ldl  $LIBS"
 
16519
cat >conftest.$ac_ext <<_ACEOF
 
16520
/* confdefs.h.  */
 
16521
_ACEOF
 
16522
cat confdefs.h >>conftest.$ac_ext
 
16523
cat >>conftest.$ac_ext <<_ACEOF
 
16524
/* end confdefs.h.  */
 
16525
 
 
16526
/* Override any GCC internal prototype to avoid an error.
 
16527
   Use char because int might match the return type of a GCC
 
16528
   builtin and then its argument prototype would still apply.  */
 
16529
#ifdef __cplusplus
 
16530
extern "C"
 
16531
#endif
 
16532
char dlopen ();
 
16533
int
 
16534
main ()
 
16535
{
 
16536
return dlopen ();
 
16537
  ;
 
16538
  return 0;
 
16539
}
 
16540
_ACEOF
 
16541
rm -f conftest.$ac_objext conftest$ac_exeext
 
16542
if { (ac_try="$ac_link"
 
16543
case "(($ac_try" in
 
16544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16545
  *) ac_try_echo=$ac_try;;
 
16546
esac
 
16547
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16548
$as_echo "$ac_try_echo") >&5
 
16549
  (eval "$ac_link") 2>conftest.er1
 
16550
  ac_status=$?
 
16551
  grep -v '^ *+' conftest.er1 >conftest.err
 
16552
  rm -f conftest.er1
 
16553
  cat conftest.err >&5
 
16554
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16555
  (exit $ac_status); } && {
 
16556
         test -z "$ac_c_werror_flag" ||
 
16557
         test ! -s conftest.err
 
16558
       } && test -s conftest$ac_exeext && {
 
16559
         test "$cross_compiling" = yes ||
 
16560
         $as_test_x conftest$ac_exeext
 
16561
       }; then
 
16562
  ac_cv_lib_dl_dlopen=yes
 
16563
else
 
16564
  $as_echo "$as_me: failed program was:" >&5
 
16565
sed 's/^/| /' conftest.$ac_ext >&5
 
16566
 
 
16567
        ac_cv_lib_dl_dlopen=no
 
16568
fi
 
16569
 
 
16570
rm -rf conftest.dSYM
 
16571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16572
      conftest$ac_exeext conftest.$ac_ext
 
16573
LIBS=$ac_check_lib_save_LIBS
 
16574
fi
 
16575
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16576
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
16577
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
16578
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16579
else
 
16580
 
 
16581
    lt_cv_dlopen="dyld"
 
16582
    lt_cv_dlopen_libs=
 
16583
    lt_cv_dlopen_self=yes
 
16584
 
 
16585
fi
 
16586
 
 
16587
    ;;
 
16588
 
 
16589
  *)
 
16590
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
16591
$as_echo_n "checking for shl_load... " >&6; }
 
16592
if test "${ac_cv_func_shl_load+set}" = set; then
 
16593
  $as_echo_n "(cached) " >&6
 
16594
else
 
16595
  cat >conftest.$ac_ext <<_ACEOF
 
16596
/* confdefs.h.  */
 
16597
_ACEOF
 
16598
cat confdefs.h >>conftest.$ac_ext
 
16599
cat >>conftest.$ac_ext <<_ACEOF
 
16600
/* end confdefs.h.  */
 
16601
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
16602
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16603
#define shl_load innocuous_shl_load
 
16604
 
 
16605
/* System header to define __stub macros and hopefully few prototypes,
 
16606
    which can conflict with char shl_load (); below.
 
16607
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16608
    <limits.h> exists even on freestanding compilers.  */
 
16609
 
 
16610
#ifdef __STDC__
 
16611
# include <limits.h>
 
16612
#else
 
16613
# include <assert.h>
 
16614
#endif
 
16615
 
 
16616
#undef shl_load
 
16617
 
 
16618
/* Override any GCC internal prototype to avoid an error.
 
16619
   Use char because int might match the return type of a GCC
 
16620
   builtin and then its argument prototype would still apply.  */
 
16621
#ifdef __cplusplus
 
16622
extern "C"
 
16623
#endif
 
16624
char shl_load ();
 
16625
/* The GNU C library defines this for functions which it implements
 
16626
    to always fail with ENOSYS.  Some functions are actually named
 
16627
    something starting with __ and the normal name is an alias.  */
 
16628
#if defined __stub_shl_load || defined __stub___shl_load
 
16629
choke me
 
16630
#endif
 
16631
 
 
16632
int
 
16633
main ()
 
16634
{
 
16635
return shl_load ();
 
16636
  ;
 
16637
  return 0;
 
16638
}
 
16639
_ACEOF
 
16640
rm -f conftest.$ac_objext conftest$ac_exeext
 
16641
if { (ac_try="$ac_link"
 
16642
case "(($ac_try" in
 
16643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16644
  *) ac_try_echo=$ac_try;;
 
16645
esac
 
16646
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16647
$as_echo "$ac_try_echo") >&5
 
16648
  (eval "$ac_link") 2>conftest.er1
 
16649
  ac_status=$?
 
16650
  grep -v '^ *+' conftest.er1 >conftest.err
 
16651
  rm -f conftest.er1
 
16652
  cat conftest.err >&5
 
16653
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16654
  (exit $ac_status); } && {
 
16655
         test -z "$ac_c_werror_flag" ||
 
16656
         test ! -s conftest.err
 
16657
       } && test -s conftest$ac_exeext && {
 
16658
         test "$cross_compiling" = yes ||
 
16659
         $as_test_x conftest$ac_exeext
 
16660
       }; then
 
16661
  ac_cv_func_shl_load=yes
 
16662
else
 
16663
  $as_echo "$as_me: failed program was:" >&5
 
16664
sed 's/^/| /' conftest.$ac_ext >&5
 
16665
 
 
16666
        ac_cv_func_shl_load=no
 
16667
fi
 
16668
 
 
16669
rm -rf conftest.dSYM
 
16670
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16671
      conftest$ac_exeext conftest.$ac_ext
 
16672
fi
 
16673
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
16674
$as_echo "$ac_cv_func_shl_load" >&6; }
 
16675
if test "x$ac_cv_func_shl_load" = x""yes; then
 
16676
  lt_cv_dlopen="shl_load"
 
16677
else
 
16678
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
16679
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
16680
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
16681
  $as_echo_n "(cached) " >&6
 
16682
else
 
16683
  ac_check_lib_save_LIBS=$LIBS
 
16684
LIBS="-ldld  $LIBS"
 
16685
cat >conftest.$ac_ext <<_ACEOF
 
16686
/* confdefs.h.  */
 
16687
_ACEOF
 
16688
cat confdefs.h >>conftest.$ac_ext
 
16689
cat >>conftest.$ac_ext <<_ACEOF
 
16690
/* end confdefs.h.  */
 
16691
 
 
16692
/* Override any GCC internal prototype to avoid an error.
 
16693
   Use char because int might match the return type of a GCC
 
16694
   builtin and then its argument prototype would still apply.  */
 
16695
#ifdef __cplusplus
 
16696
extern "C"
 
16697
#endif
 
16698
char shl_load ();
 
16699
int
 
16700
main ()
 
16701
{
 
16702
return shl_load ();
 
16703
  ;
 
16704
  return 0;
 
16705
}
 
16706
_ACEOF
 
16707
rm -f conftest.$ac_objext conftest$ac_exeext
 
16708
if { (ac_try="$ac_link"
 
16709
case "(($ac_try" in
 
16710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16711
  *) ac_try_echo=$ac_try;;
 
16712
esac
 
16713
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16714
$as_echo "$ac_try_echo") >&5
 
16715
  (eval "$ac_link") 2>conftest.er1
 
16716
  ac_status=$?
 
16717
  grep -v '^ *+' conftest.er1 >conftest.err
 
16718
  rm -f conftest.er1
 
16719
  cat conftest.err >&5
 
16720
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16721
  (exit $ac_status); } && {
 
16722
         test -z "$ac_c_werror_flag" ||
 
16723
         test ! -s conftest.err
 
16724
       } && test -s conftest$ac_exeext && {
 
16725
         test "$cross_compiling" = yes ||
 
16726
         $as_test_x conftest$ac_exeext
 
16727
       }; then
 
16728
  ac_cv_lib_dld_shl_load=yes
 
16729
else
 
16730
  $as_echo "$as_me: failed program was:" >&5
 
16731
sed 's/^/| /' conftest.$ac_ext >&5
 
16732
 
 
16733
        ac_cv_lib_dld_shl_load=no
 
16734
fi
 
16735
 
 
16736
rm -rf conftest.dSYM
 
16737
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16738
      conftest$ac_exeext conftest.$ac_ext
 
16739
LIBS=$ac_check_lib_save_LIBS
 
16740
fi
 
16741
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
16742
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
16743
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
16744
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
16745
else
 
16746
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
16747
$as_echo_n "checking for dlopen... " >&6; }
 
16748
if test "${ac_cv_func_dlopen+set}" = set; then
 
16749
  $as_echo_n "(cached) " >&6
 
16750
else
 
16751
  cat >conftest.$ac_ext <<_ACEOF
 
16752
/* confdefs.h.  */
 
16753
_ACEOF
 
16754
cat confdefs.h >>conftest.$ac_ext
 
16755
cat >>conftest.$ac_ext <<_ACEOF
 
16756
/* end confdefs.h.  */
 
16757
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
16758
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16759
#define dlopen innocuous_dlopen
 
16760
 
 
16761
/* System header to define __stub macros and hopefully few prototypes,
 
16762
    which can conflict with char dlopen (); below.
 
16763
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16764
    <limits.h> exists even on freestanding compilers.  */
 
16765
 
 
16766
#ifdef __STDC__
 
16767
# include <limits.h>
 
16768
#else
 
16769
# include <assert.h>
 
16770
#endif
 
16771
 
 
16772
#undef dlopen
 
16773
 
 
16774
/* Override any GCC internal prototype to avoid an error.
 
16775
   Use char because int might match the return type of a GCC
 
16776
   builtin and then its argument prototype would still apply.  */
 
16777
#ifdef __cplusplus
 
16778
extern "C"
 
16779
#endif
 
16780
char dlopen ();
 
16781
/* The GNU C library defines this for functions which it implements
 
16782
    to always fail with ENOSYS.  Some functions are actually named
 
16783
    something starting with __ and the normal name is an alias.  */
 
16784
#if defined __stub_dlopen || defined __stub___dlopen
 
16785
choke me
 
16786
#endif
 
16787
 
 
16788
int
 
16789
main ()
 
16790
{
 
16791
return dlopen ();
 
16792
  ;
 
16793
  return 0;
 
16794
}
 
16795
_ACEOF
 
16796
rm -f conftest.$ac_objext conftest$ac_exeext
 
16797
if { (ac_try="$ac_link"
 
16798
case "(($ac_try" in
 
16799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16800
  *) ac_try_echo=$ac_try;;
 
16801
esac
 
16802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16803
$as_echo "$ac_try_echo") >&5
 
16804
  (eval "$ac_link") 2>conftest.er1
 
16805
  ac_status=$?
 
16806
  grep -v '^ *+' conftest.er1 >conftest.err
 
16807
  rm -f conftest.er1
 
16808
  cat conftest.err >&5
 
16809
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16810
  (exit $ac_status); } && {
 
16811
         test -z "$ac_c_werror_flag" ||
 
16812
         test ! -s conftest.err
 
16813
       } && test -s conftest$ac_exeext && {
 
16814
         test "$cross_compiling" = yes ||
 
16815
         $as_test_x conftest$ac_exeext
 
16816
       }; then
 
16817
  ac_cv_func_dlopen=yes
 
16818
else
 
16819
  $as_echo "$as_me: failed program was:" >&5
 
16820
sed 's/^/| /' conftest.$ac_ext >&5
 
16821
 
 
16822
        ac_cv_func_dlopen=no
 
16823
fi
 
16824
 
 
16825
rm -rf conftest.dSYM
 
16826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16827
      conftest$ac_exeext conftest.$ac_ext
 
16828
fi
 
16829
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
16830
$as_echo "$ac_cv_func_dlopen" >&6; }
 
16831
if test "x$ac_cv_func_dlopen" = x""yes; then
 
16832
  lt_cv_dlopen="dlopen"
 
16833
else
 
16834
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16835
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
16836
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16837
  $as_echo_n "(cached) " >&6
 
16838
else
 
16839
  ac_check_lib_save_LIBS=$LIBS
 
16840
LIBS="-ldl  $LIBS"
 
16841
cat >conftest.$ac_ext <<_ACEOF
 
16842
/* confdefs.h.  */
 
16843
_ACEOF
 
16844
cat confdefs.h >>conftest.$ac_ext
 
16845
cat >>conftest.$ac_ext <<_ACEOF
 
16846
/* end confdefs.h.  */
 
16847
 
 
16848
/* Override any GCC internal prototype to avoid an error.
 
16849
   Use char because int might match the return type of a GCC
 
16850
   builtin and then its argument prototype would still apply.  */
 
16851
#ifdef __cplusplus
 
16852
extern "C"
 
16853
#endif
 
16854
char dlopen ();
 
16855
int
 
16856
main ()
 
16857
{
 
16858
return dlopen ();
 
16859
  ;
 
16860
  return 0;
 
16861
}
 
16862
_ACEOF
 
16863
rm -f conftest.$ac_objext conftest$ac_exeext
 
16864
if { (ac_try="$ac_link"
 
16865
case "(($ac_try" in
 
16866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16867
  *) ac_try_echo=$ac_try;;
 
16868
esac
 
16869
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16870
$as_echo "$ac_try_echo") >&5
 
16871
  (eval "$ac_link") 2>conftest.er1
 
16872
  ac_status=$?
 
16873
  grep -v '^ *+' conftest.er1 >conftest.err
 
16874
  rm -f conftest.er1
 
16875
  cat conftest.err >&5
 
16876
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16877
  (exit $ac_status); } && {
 
16878
         test -z "$ac_c_werror_flag" ||
 
16879
         test ! -s conftest.err
 
16880
       } && test -s conftest$ac_exeext && {
 
16881
         test "$cross_compiling" = yes ||
 
16882
         $as_test_x conftest$ac_exeext
 
16883
       }; then
 
16884
  ac_cv_lib_dl_dlopen=yes
 
16885
else
 
16886
  $as_echo "$as_me: failed program was:" >&5
 
16887
sed 's/^/| /' conftest.$ac_ext >&5
 
16888
 
 
16889
        ac_cv_lib_dl_dlopen=no
 
16890
fi
 
16891
 
 
16892
rm -rf conftest.dSYM
 
16893
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16894
      conftest$ac_exeext conftest.$ac_ext
 
16895
LIBS=$ac_check_lib_save_LIBS
 
16896
fi
 
16897
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16898
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
16899
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
16900
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16901
else
 
16902
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
16903
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
16904
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
16905
  $as_echo_n "(cached) " >&6
 
16906
else
 
16907
  ac_check_lib_save_LIBS=$LIBS
 
16908
LIBS="-lsvld  $LIBS"
 
16909
cat >conftest.$ac_ext <<_ACEOF
 
16910
/* confdefs.h.  */
 
16911
_ACEOF
 
16912
cat confdefs.h >>conftest.$ac_ext
 
16913
cat >>conftest.$ac_ext <<_ACEOF
 
16914
/* end confdefs.h.  */
 
16915
 
 
16916
/* Override any GCC internal prototype to avoid an error.
 
16917
   Use char because int might match the return type of a GCC
 
16918
   builtin and then its argument prototype would still apply.  */
 
16919
#ifdef __cplusplus
 
16920
extern "C"
 
16921
#endif
 
16922
char dlopen ();
 
16923
int
 
16924
main ()
 
16925
{
 
16926
return dlopen ();
 
16927
  ;
 
16928
  return 0;
 
16929
}
 
16930
_ACEOF
 
16931
rm -f conftest.$ac_objext conftest$ac_exeext
 
16932
if { (ac_try="$ac_link"
 
16933
case "(($ac_try" in
 
16934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16935
  *) ac_try_echo=$ac_try;;
 
16936
esac
 
16937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16938
$as_echo "$ac_try_echo") >&5
 
16939
  (eval "$ac_link") 2>conftest.er1
 
16940
  ac_status=$?
 
16941
  grep -v '^ *+' conftest.er1 >conftest.err
 
16942
  rm -f conftest.er1
 
16943
  cat conftest.err >&5
 
16944
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16945
  (exit $ac_status); } && {
 
16946
         test -z "$ac_c_werror_flag" ||
 
16947
         test ! -s conftest.err
 
16948
       } && test -s conftest$ac_exeext && {
 
16949
         test "$cross_compiling" = yes ||
 
16950
         $as_test_x conftest$ac_exeext
 
16951
       }; then
 
16952
  ac_cv_lib_svld_dlopen=yes
 
16953
else
 
16954
  $as_echo "$as_me: failed program was:" >&5
 
16955
sed 's/^/| /' conftest.$ac_ext >&5
 
16956
 
 
16957
        ac_cv_lib_svld_dlopen=no
 
16958
fi
 
16959
 
 
16960
rm -rf conftest.dSYM
 
16961
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16962
      conftest$ac_exeext conftest.$ac_ext
 
16963
LIBS=$ac_check_lib_save_LIBS
 
16964
fi
 
16965
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
16966
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
16967
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
16968
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
16969
else
 
16970
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
16971
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
16972
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
16973
  $as_echo_n "(cached) " >&6
 
16974
else
 
16975
  ac_check_lib_save_LIBS=$LIBS
 
16976
LIBS="-ldld  $LIBS"
 
16977
cat >conftest.$ac_ext <<_ACEOF
 
16978
/* confdefs.h.  */
 
16979
_ACEOF
 
16980
cat confdefs.h >>conftest.$ac_ext
 
16981
cat >>conftest.$ac_ext <<_ACEOF
 
16982
/* end confdefs.h.  */
 
16983
 
 
16984
/* Override any GCC internal prototype to avoid an error.
 
16985
   Use char because int might match the return type of a GCC
 
16986
   builtin and then its argument prototype would still apply.  */
 
16987
#ifdef __cplusplus
 
16988
extern "C"
 
16989
#endif
 
16990
char dld_link ();
 
16991
int
 
16992
main ()
 
16993
{
 
16994
return dld_link ();
 
16995
  ;
 
16996
  return 0;
 
16997
}
 
16998
_ACEOF
 
16999
rm -f conftest.$ac_objext conftest$ac_exeext
 
17000
if { (ac_try="$ac_link"
 
17001
case "(($ac_try" in
 
17002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17003
  *) ac_try_echo=$ac_try;;
 
17004
esac
 
17005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17006
$as_echo "$ac_try_echo") >&5
 
17007
  (eval "$ac_link") 2>conftest.er1
 
17008
  ac_status=$?
 
17009
  grep -v '^ *+' conftest.er1 >conftest.err
 
17010
  rm -f conftest.er1
 
17011
  cat conftest.err >&5
 
17012
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17013
  (exit $ac_status); } && {
 
17014
         test -z "$ac_c_werror_flag" ||
 
17015
         test ! -s conftest.err
 
17016
       } && test -s conftest$ac_exeext && {
 
17017
         test "$cross_compiling" = yes ||
 
17018
         $as_test_x conftest$ac_exeext
 
17019
       }; then
 
17020
  ac_cv_lib_dld_dld_link=yes
 
17021
else
 
17022
  $as_echo "$as_me: failed program was:" >&5
 
17023
sed 's/^/| /' conftest.$ac_ext >&5
 
17024
 
 
17025
        ac_cv_lib_dld_dld_link=no
 
17026
fi
 
17027
 
 
17028
rm -rf conftest.dSYM
 
17029
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17030
      conftest$ac_exeext conftest.$ac_ext
 
17031
LIBS=$ac_check_lib_save_LIBS
 
17032
fi
 
17033
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17034
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
17035
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
17036
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
17037
fi
 
17038
 
 
17039
 
 
17040
fi
 
17041
 
 
17042
 
 
17043
fi
 
17044
 
 
17045
 
 
17046
fi
 
17047
 
 
17048
 
 
17049
fi
 
17050
 
 
17051
 
 
17052
fi
 
17053
 
 
17054
    ;;
 
17055
  esac
 
17056
 
 
17057
  if test "x$lt_cv_dlopen" != xno; then
 
17058
    enable_dlopen=yes
 
17059
  else
 
17060
    enable_dlopen=no
 
17061
  fi
 
17062
 
 
17063
  case $lt_cv_dlopen in
 
17064
  dlopen)
 
17065
    save_CPPFLAGS="$CPPFLAGS"
 
17066
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17067
 
 
17068
    save_LDFLAGS="$LDFLAGS"
 
17069
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17070
 
 
17071
    save_LIBS="$LIBS"
 
17072
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17073
 
 
17074
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17075
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
17076
if test "${lt_cv_dlopen_self+set}" = set; then
 
17077
  $as_echo_n "(cached) " >&6
 
17078
else
 
17079
          if test "$cross_compiling" = yes; then :
 
17080
  lt_cv_dlopen_self=cross
 
17081
else
 
17082
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17083
  lt_status=$lt_dlunknown
 
17084
  cat > conftest.$ac_ext <<_LT_EOF
 
17085
#line 17085 "configure"
 
17086
#include "confdefs.h"
 
17087
 
 
17088
#if HAVE_DLFCN_H
 
17089
#include <dlfcn.h>
 
17090
#endif
 
17091
 
 
17092
#include <stdio.h>
 
17093
 
 
17094
#ifdef RTLD_GLOBAL
 
17095
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17096
#else
 
17097
#  ifdef DL_GLOBAL
 
17098
#    define LT_DLGLOBAL         DL_GLOBAL
 
17099
#  else
 
17100
#    define LT_DLGLOBAL         0
 
17101
#  endif
 
17102
#endif
 
17103
 
 
17104
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17105
   find out it does not work in some platform. */
 
17106
#ifndef LT_DLLAZY_OR_NOW
 
17107
#  ifdef RTLD_LAZY
 
17108
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17109
#  else
 
17110
#    ifdef DL_LAZY
 
17111
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17112
#    else
 
17113
#      ifdef RTLD_NOW
 
17114
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17115
#      else
 
17116
#        ifdef DL_NOW
 
17117
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17118
#        else
 
17119
#          define LT_DLLAZY_OR_NOW      0
 
17120
#        endif
 
17121
#      endif
 
17122
#    endif
 
17123
#  endif
 
17124
#endif
 
17125
 
 
17126
void fnord() { int i=42;}
 
17127
int main ()
 
17128
{
 
17129
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17130
  int status = $lt_dlunknown;
 
17131
 
 
17132
  if (self)
 
17133
    {
 
17134
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17135
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17136
      /* dlclose (self); */
 
17137
    }
 
17138
  else
 
17139
    puts (dlerror ());
 
17140
 
 
17141
  return status;
 
17142
}
 
17143
_LT_EOF
 
17144
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17145
  (eval $ac_link) 2>&5
 
17146
  ac_status=$?
 
17147
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17148
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17149
    (./conftest; exit; ) >&5 2>/dev/null
 
17150
    lt_status=$?
 
17151
    case x$lt_status in
 
17152
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17153
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17154
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
17155
    esac
 
17156
  else :
 
17157
    # compilation failed
 
17158
    lt_cv_dlopen_self=no
 
17159
  fi
 
17160
fi
 
17161
rm -fr conftest*
 
17162
 
 
17163
 
 
17164
fi
 
17165
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17166
$as_echo "$lt_cv_dlopen_self" >&6; }
 
17167
 
 
17168
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17169
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
17170
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17171
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
17172
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17173
  $as_echo_n "(cached) " >&6
 
17174
else
 
17175
          if test "$cross_compiling" = yes; then :
 
17176
  lt_cv_dlopen_self_static=cross
 
17177
else
 
17178
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17179
  lt_status=$lt_dlunknown
 
17180
  cat > conftest.$ac_ext <<_LT_EOF
 
17181
#line 17181 "configure"
 
17182
#include "confdefs.h"
 
17183
 
 
17184
#if HAVE_DLFCN_H
 
17185
#include <dlfcn.h>
 
17186
#endif
 
17187
 
 
17188
#include <stdio.h>
 
17189
 
 
17190
#ifdef RTLD_GLOBAL
 
17191
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17192
#else
 
17193
#  ifdef DL_GLOBAL
 
17194
#    define LT_DLGLOBAL         DL_GLOBAL
 
17195
#  else
 
17196
#    define LT_DLGLOBAL         0
 
17197
#  endif
 
17198
#endif
 
17199
 
 
17200
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17201
   find out it does not work in some platform. */
 
17202
#ifndef LT_DLLAZY_OR_NOW
 
17203
#  ifdef RTLD_LAZY
 
17204
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17205
#  else
 
17206
#    ifdef DL_LAZY
 
17207
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17208
#    else
 
17209
#      ifdef RTLD_NOW
 
17210
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17211
#      else
 
17212
#        ifdef DL_NOW
 
17213
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17214
#        else
 
17215
#          define LT_DLLAZY_OR_NOW      0
 
17216
#        endif
 
17217
#      endif
 
17218
#    endif
 
17219
#  endif
 
17220
#endif
 
17221
 
 
17222
void fnord() { int i=42;}
 
17223
int main ()
 
17224
{
 
17225
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17226
  int status = $lt_dlunknown;
 
17227
 
 
17228
  if (self)
 
17229
    {
 
17230
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17231
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17232
      /* dlclose (self); */
 
17233
    }
 
17234
  else
 
17235
    puts (dlerror ());
 
17236
 
 
17237
  return status;
 
17238
}
 
17239
_LT_EOF
 
17240
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17241
  (eval $ac_link) 2>&5
 
17242
  ac_status=$?
 
17243
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17244
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17245
    (./conftest; exit; ) >&5 2>/dev/null
 
17246
    lt_status=$?
 
17247
    case x$lt_status in
 
17248
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17249
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17250
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
17251
    esac
 
17252
  else :
 
17253
    # compilation failed
 
17254
    lt_cv_dlopen_self_static=no
 
17255
  fi
 
17256
fi
 
17257
rm -fr conftest*
 
17258
 
 
17259
 
 
17260
fi
 
17261
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
17262
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
17263
    fi
 
17264
 
 
17265
    CPPFLAGS="$save_CPPFLAGS"
 
17266
    LDFLAGS="$save_LDFLAGS"
 
17267
    LIBS="$save_LIBS"
 
17268
    ;;
 
17269
  esac
 
17270
 
 
17271
  case $lt_cv_dlopen_self in
 
17272
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17273
  *) enable_dlopen_self=unknown ;;
 
17274
  esac
 
17275
 
 
17276
  case $lt_cv_dlopen_self_static in
 
17277
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17278
  *) enable_dlopen_self_static=unknown ;;
 
17279
  esac
 
17280
fi
 
17281
 
 
17282
 
 
17283
 
 
17284
 
 
17285
 
 
17286
 
 
17287
 
 
17288
 
 
17289
 
 
17290
 
 
17291
 
 
17292
 
 
17293
 
 
17294
 
 
17295
 
 
17296
 
 
17297
 
 
17298
striplib=
 
17299
old_striplib=
 
17300
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17301
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
17302
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
17303
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17304
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17305
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
17306
$as_echo "yes" >&6; }
 
17307
else
 
17308
# FIXME - insert some real tests, host_os isn't really good enough
 
17309
  case $host_os in
 
17310
  darwin*)
 
17311
    if test -n "$STRIP" ; then
 
17312
      striplib="$STRIP -x"
 
17313
      old_striplib="$STRIP -S"
 
17314
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
17315
$as_echo "yes" >&6; }
 
17316
    else
 
17317
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
17318
$as_echo "no" >&6; }
 
17319
    fi
 
17320
    ;;
 
17321
  *)
 
17322
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
17323
$as_echo "no" >&6; }
 
17324
    ;;
 
17325
  esac
 
17326
fi
 
17327
 
 
17328
 
 
17329
 
 
17330
 
 
17331
 
 
17332
 
 
17333
 
 
17334
 
 
17335
 
 
17336
 
 
17337
 
 
17338
 
 
17339
  # Report which library types will actually be built
 
17340
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
17341
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
17342
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
17343
$as_echo "$can_build_shared" >&6; }
 
17344
 
 
17345
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
17346
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
17347
  test "$can_build_shared" = "no" && enable_shared=no
 
17348
 
 
17349
  # On AIX, shared libraries and static libraries use the same namespace, and
 
17350
  # are all built from PIC.
 
17351
  case $host_os in
 
17352
  aix3*)
 
17353
    test "$enable_shared" = yes && enable_static=no
 
17354
    if test -n "$RANLIB"; then
 
17355
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
17356
      postinstall_cmds='$RANLIB $lib'
 
17357
    fi
 
17358
    ;;
 
17359
 
 
17360
  aix[4-9]*)
 
17361
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
17362
      test "$enable_shared" = yes && enable_static=no
 
17363
    fi
 
17364
    ;;
 
17365
  esac
 
17366
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
17367
$as_echo "$enable_shared" >&6; }
 
17368
 
 
17369
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
17370
$as_echo_n "checking whether to build static libraries... " >&6; }
 
17371
  # Make sure either enable_shared or enable_static is yes.
 
17372
  test "$enable_shared" = yes || enable_static=yes
 
17373
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
17374
$as_echo "$enable_static" >&6; }
 
17375
 
 
17376
 
 
17377
 
 
17378
 
 
17379
fi
 
17380
ac_ext=c
 
17381
ac_cpp='$CPP $CPPFLAGS'
 
17382
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17383
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17384
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17385
 
 
17386
CC="$lt_save_CC"
 
17387
 
 
17388
 
 
17389
ac_ext=cpp
 
17390
ac_cpp='$CXXCPP $CPPFLAGS'
 
17391
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17392
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17393
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
17394
 
 
17395
archive_cmds_need_lc_CXX=no
 
17396
allow_undefined_flag_CXX=
 
17397
always_export_symbols_CXX=no
 
17398
archive_expsym_cmds_CXX=
 
17399
compiler_needs_object_CXX=no
 
17400
export_dynamic_flag_spec_CXX=
 
17401
hardcode_direct_CXX=no
 
17402
hardcode_direct_absolute_CXX=no
 
17403
hardcode_libdir_flag_spec_CXX=
 
17404
hardcode_libdir_flag_spec_ld_CXX=
 
17405
hardcode_libdir_separator_CXX=
 
17406
hardcode_minus_L_CXX=no
 
17407
hardcode_shlibpath_var_CXX=unsupported
 
17408
hardcode_automatic_CXX=no
 
17409
inherit_rpath_CXX=no
 
17410
module_cmds_CXX=
 
17411
module_expsym_cmds_CXX=
 
17412
link_all_deplibs_CXX=unknown
 
17413
old_archive_cmds_CXX=$old_archive_cmds
 
17414
no_undefined_flag_CXX=
 
17415
whole_archive_flag_spec_CXX=
 
17416
enable_shared_with_static_runtimes_CXX=no
 
17417
 
 
17418
# Source file extension for C++ test sources.
 
17419
ac_ext=cpp
 
17420
 
 
17421
# Object file extension for compiled C++ test sources.
 
17422
objext=o
 
17423
objext_CXX=$objext
 
17424
 
 
17425
# No sense in running all these tests if we already determined that
 
17426
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
17427
# are currently assumed to apply to all compilers on this platform,
 
17428
# and will be corrupted by setting them based on a non-working compiler.
 
17429
if test "$_lt_caught_CXX_error" != yes; then
 
17430
  # Code to be used in simple compile tests
 
17431
  lt_simple_compile_test_code="int some_variable = 0;"
 
17432
 
 
17433
  # Code to be used in simple link tests
 
17434
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
17435
 
 
17436
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17437
 
 
17438
 
 
17439
 
 
17440
 
 
17441
 
 
17442
 
 
17443
# If no C compiler was specified, use CC.
 
17444
LTCC=${LTCC-"$CC"}
 
17445
 
 
17446
# If no C compiler flags were specified, use CFLAGS.
 
17447
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17448
 
 
17449
# Allow CC to be a program name with arguments.
 
17450
compiler=$CC
 
17451
 
 
17452
 
 
17453
  # save warnings/boilerplate of simple test code
 
17454
  ac_outfile=conftest.$ac_objext
 
17455
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17456
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17457
_lt_compiler_boilerplate=`cat conftest.err`
 
17458
$RM conftest*
 
17459
 
 
17460
  ac_outfile=conftest.$ac_objext
 
17461
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17462
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17463
_lt_linker_boilerplate=`cat conftest.err`
 
17464
$RM -r conftest*
 
17465
 
 
17466
 
 
17467
  # Allow CC to be a program name with arguments.
 
17468
  lt_save_CC=$CC
 
17469
  lt_save_LD=$LD
 
17470
  lt_save_GCC=$GCC
 
17471
  GCC=$GXX
 
17472
  lt_save_with_gnu_ld=$with_gnu_ld
 
17473
  lt_save_path_LD=$lt_cv_path_LD
 
17474
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
17475
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
17476
  else
 
17477
    $as_unset lt_cv_prog_gnu_ld
 
17478
  fi
 
17479
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
17480
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
17481
  else
 
17482
    $as_unset lt_cv_path_LD
 
17483
  fi
 
17484
  test -z "${LDCXX+set}" || LD=$LDCXX
 
17485
  CC=${CXX-"c++"}
 
17486
  compiler=$CC
 
17487
  compiler_CXX=$CC
 
17488
  for cc_temp in $compiler""; do
 
17489
  case $cc_temp in
 
17490
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17491
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17492
    \-*) ;;
 
17493
    *) break;;
 
17494
  esac
 
17495
done
 
17496
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17497
 
 
17498
 
 
17499
  if test -n "$compiler"; then
 
17500
    # We don't want -fno-exception when compiling C++ code, so set the
 
17501
    # no_builtin_flag separately
 
17502
    if test "$GXX" = yes; then
 
17503
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
17504
    else
 
17505
      lt_prog_compiler_no_builtin_flag_CXX=
 
17506
    fi
 
17507
 
 
17508
    if test "$GXX" = yes; then
 
17509
      # Set up default GNU C++ configuration
 
17510
 
 
17511
 
 
17512
 
 
17513
# Check whether --with-gnu-ld was given.
 
17514
if test "${with_gnu_ld+set}" = set; then
 
17515
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
17516
else
 
17517
  with_gnu_ld=no
 
17518
fi
 
17519
 
 
17520
ac_prog=ld
 
17521
if test "$GCC" = yes; then
 
17522
  # Check if gcc -print-prog-name=ld gives a path.
 
17523
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
17524
$as_echo_n "checking for ld used by $CC... " >&6; }
 
17525
  case $host in
 
17526
  *-*-mingw*)
 
17527
    # gcc leaves a trailing carriage return which upsets mingw
 
17528
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
17529
  *)
 
17530
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
17531
  esac
 
17532
  case $ac_prog in
 
17533
    # Accept absolute paths.
 
17534
    [\\/]* | ?:[\\/]*)
 
17535
      re_direlt='/[^/][^/]*/\.\./'
 
17536
      # Canonicalize the pathname of ld
 
17537
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
17538
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
17539
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
17540
      done
 
17541
      test -z "$LD" && LD="$ac_prog"
 
17542
      ;;
 
17543
  "")
 
17544
    # If it fails, then pretend we aren't using GCC.
 
17545
    ac_prog=ld
 
17546
    ;;
 
17547
  *)
 
17548
    # If it is relative, then search for the first ld in PATH.
 
17549
    with_gnu_ld=unknown
 
17550
    ;;
 
17551
  esac
 
17552
elif test "$with_gnu_ld" = yes; then
 
17553
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
17554
$as_echo_n "checking for GNU ld... " >&6; }
 
17555
else
 
17556
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
17557
$as_echo_n "checking for non-GNU ld... " >&6; }
 
17558
fi
 
17559
if test "${lt_cv_path_LD+set}" = set; then
 
17560
  $as_echo_n "(cached) " >&6
 
17561
else
 
17562
  if test -z "$LD"; then
 
17563
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
17564
  for ac_dir in $PATH; do
 
17565
    IFS="$lt_save_ifs"
 
17566
    test -z "$ac_dir" && ac_dir=.
 
17567
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
17568
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
17569
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
17570
      # but apparently some variants of GNU ld only accept -v.
 
17571
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
17572
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
17573
      *GNU* | *'with BFD'*)
 
17574
        test "$with_gnu_ld" != no && break
 
17575
        ;;
 
17576
      *)
 
17577
        test "$with_gnu_ld" != yes && break
 
17578
        ;;
 
17579
      esac
 
17580
    fi
 
17581
  done
 
17582
  IFS="$lt_save_ifs"
 
17583
else
 
17584
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
17585
fi
 
17586
fi
 
17587
 
 
17588
LD="$lt_cv_path_LD"
 
17589
if test -n "$LD"; then
 
17590
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
17591
$as_echo "$LD" >&6; }
 
17592
else
 
17593
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
17594
$as_echo "no" >&6; }
 
17595
fi
 
17596
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
17597
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
17598
   { (exit 1); exit 1; }; }
 
17599
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
17600
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
17601
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
17602
  $as_echo_n "(cached) " >&6
 
17603
else
 
17604
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
17605
case `$LD -v 2>&1 </dev/null` in
 
17606
*GNU* | *'with BFD'*)
 
17607
  lt_cv_prog_gnu_ld=yes
 
17608
  ;;
 
17609
*)
 
17610
  lt_cv_prog_gnu_ld=no
 
17611
  ;;
 
17612
esac
 
17613
fi
 
17614
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
17615
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
17616
with_gnu_ld=$lt_cv_prog_gnu_ld
 
17617
 
 
17618
 
 
17619
 
 
17620
 
 
17621
 
 
17622
 
 
17623
 
 
17624
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
17625
      # archiving commands below assume that GNU ld is being used.
 
17626
      if test "$with_gnu_ld" = yes; then
 
17627
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17628
        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'
 
17629
 
 
17630
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
17631
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
17632
 
 
17633
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
17634
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
17635
        #     investigate it a little bit more. (MM)
 
17636
        wlarc='${wl}'
 
17637
 
 
17638
        # ancient GNU ld didn't support --whole-archive et. al.
 
17639
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
17640
          $GREP 'no-whole-archive' > /dev/null; then
 
17641
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17642
        else
 
17643
          whole_archive_flag_spec_CXX=
 
17644
        fi
 
17645
      else
 
17646
        with_gnu_ld=no
 
17647
        wlarc=
 
17648
 
 
17649
        # A generic and very simple default shared library creation
 
17650
        # command for GNU C++ for the case where it uses the native
 
17651
        # linker, instead of GNU ld.  If possible, this setting should
 
17652
        # overridden to take advantage of the native linker features on
 
17653
        # the platform it is being used on.
 
17654
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
17655
      fi
 
17656
 
 
17657
      # Commands to make compiler produce verbose output that lists
 
17658
      # what "hidden" libraries, object files and flags are used when
 
17659
      # linking a shared library.
 
17660
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
17661
 
 
17662
    else
 
17663
      GXX=no
 
17664
      with_gnu_ld=no
 
17665
      wlarc=
 
17666
    fi
 
17667
 
 
17668
    # PORTME: fill in a description of your system's C++ link characteristics
 
17669
    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17670
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17671
    ld_shlibs_CXX=yes
 
17672
    case $host_os in
 
17673
      aix3*)
 
17674
        # FIXME: insert proper C++ library support
 
17675
        ld_shlibs_CXX=no
 
17676
        ;;
 
17677
      aix[4-9]*)
 
17678
        if test "$host_cpu" = ia64; then
 
17679
          # On IA64, the linker does run time linking by default, so we don't
 
17680
          # have to do anything special.
 
17681
          aix_use_runtimelinking=no
 
17682
          exp_sym_flag='-Bexport'
 
17683
          no_entry_flag=""
 
17684
        else
 
17685
          aix_use_runtimelinking=no
 
17686
 
 
17687
          # Test if we are trying to use run time linking or normal
 
17688
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17689
          # need to do runtime linking.
 
17690
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17691
            for ld_flag in $LDFLAGS; do
 
17692
              case $ld_flag in
 
17693
              *-brtl*)
 
17694
                aix_use_runtimelinking=yes
 
17695
                break
 
17696
                ;;
 
17697
              esac
 
17698
            done
 
17699
            ;;
 
17700
          esac
 
17701
 
 
17702
          exp_sym_flag='-bexport'
 
17703
          no_entry_flag='-bnoentry'
 
17704
        fi
 
17705
 
 
17706
        # When large executables or shared objects are built, AIX ld can
 
17707
        # have problems creating the table of contents.  If linking a library
 
17708
        # or program results in "error TOC overflow" add -mminimal-toc to
 
17709
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17710
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17711
 
 
17712
        archive_cmds_CXX=''
 
17713
        hardcode_direct_CXX=yes
 
17714
        hardcode_direct_absolute_CXX=yes
 
17715
        hardcode_libdir_separator_CXX=':'
 
17716
        link_all_deplibs_CXX=yes
 
17717
        file_list_spec_CXX='${wl}-f,'
 
17718
 
 
17719
        if test "$GXX" = yes; then
 
17720
          case $host_os in aix4.[012]|aix4.[012].*)
 
17721
          # We only want to do this on AIX 4.2 and lower, the check
 
17722
          # below for broken collect2 doesn't work under 4.3+
 
17723
          collect2name=`${CC} -print-prog-name=collect2`
 
17724
          if test -f "$collect2name" &&
 
17725
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
17726
          then
 
17727
            # We have reworked collect2
 
17728
            :
 
17729
          else
 
17730
            # We have old collect2
 
17731
            hardcode_direct_CXX=unsupported
 
17732
            # It fails to find uninstalled libraries when the uninstalled
 
17733
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
17734
            # to unsupported forces relinking
 
17735
            hardcode_minus_L_CXX=yes
 
17736
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
17737
            hardcode_libdir_separator_CXX=
 
17738
          fi
 
17739
          esac
 
17740
          shared_flag='-shared'
 
17741
          if test "$aix_use_runtimelinking" = yes; then
 
17742
            shared_flag="$shared_flag "'${wl}-G'
 
17743
          fi
 
17744
        else
 
17745
          # not using gcc
 
17746
          if test "$host_cpu" = ia64; then
 
17747
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17748
          # chokes on -Wl,-G. The following line is correct:
 
17749
          shared_flag='-G'
 
17750
          else
 
17751
            if test "$aix_use_runtimelinking" = yes; then
 
17752
              shared_flag='${wl}-G'
 
17753
            else
 
17754
              shared_flag='${wl}-bM:SRE'
 
17755
            fi
 
17756
          fi
 
17757
        fi
 
17758
 
 
17759
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
17760
        # It seems that -bexpall does not export symbols beginning with
 
17761
        # underscore (_), so it is better to generate a list of symbols to
 
17762
        # export.
 
17763
        always_export_symbols_CXX=yes
 
17764
        if test "$aix_use_runtimelinking" = yes; then
 
17765
          # Warning - without using the other runtime loading flags (-brtl),
 
17766
          # -berok will link without error, but may produce a broken library.
 
17767
          allow_undefined_flag_CXX='-berok'
 
17768
          # Determine the default libpath from the value encoded in an empty
 
17769
          # executable.
 
17770
          cat >conftest.$ac_ext <<_ACEOF
 
17771
/* confdefs.h.  */
 
17772
_ACEOF
 
17773
cat confdefs.h >>conftest.$ac_ext
 
17774
cat >>conftest.$ac_ext <<_ACEOF
 
17775
/* end confdefs.h.  */
 
17776
 
 
17777
int
 
17778
main ()
 
17779
{
 
17780
 
 
17781
  ;
 
17782
  return 0;
 
17783
}
 
17784
_ACEOF
 
17785
rm -f conftest.$ac_objext conftest$ac_exeext
 
17786
if { (ac_try="$ac_link"
 
17787
case "(($ac_try" in
 
17788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17789
  *) ac_try_echo=$ac_try;;
 
17790
esac
 
17791
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17792
$as_echo "$ac_try_echo") >&5
 
17793
  (eval "$ac_link") 2>conftest.er1
 
17794
  ac_status=$?
 
17795
  grep -v '^ *+' conftest.er1 >conftest.err
 
17796
  rm -f conftest.er1
 
17797
  cat conftest.err >&5
 
17798
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17799
  (exit $ac_status); } && {
 
17800
         test -z "$ac_cxx_werror_flag" ||
 
17801
         test ! -s conftest.err
 
17802
       } && test -s conftest$ac_exeext && {
 
17803
         test "$cross_compiling" = yes ||
 
17804
         $as_test_x conftest$ac_exeext
 
17805
       }; then
 
17806
 
 
17807
lt_aix_libpath_sed='
 
17808
    /Import File Strings/,/^$/ {
 
17809
        /^0/ {
 
17810
            s/^0  *\(.*\)$/\1/
 
17811
            p
 
17812
        }
 
17813
    }'
 
17814
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17815
# Check for a 64-bit object if we didn't find anything.
 
17816
if test -z "$aix_libpath"; then
 
17817
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17818
fi
 
17819
else
 
17820
  $as_echo "$as_me: failed program was:" >&5
 
17821
sed 's/^/| /' conftest.$ac_ext >&5
 
17822
 
 
17823
 
 
17824
fi
 
17825
 
 
17826
rm -rf conftest.dSYM
 
17827
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17828
      conftest$ac_exeext conftest.$ac_ext
 
17829
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17830
 
 
17831
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17832
 
 
17833
          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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17834
        else
 
17835
          if test "$host_cpu" = ia64; then
 
17836
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
17837
            allow_undefined_flag_CXX="-z nodefs"
 
17838
            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"
 
17839
          else
 
17840
            # Determine the default libpath from the value encoded in an
 
17841
            # empty executable.
 
17842
            cat >conftest.$ac_ext <<_ACEOF
 
17843
/* confdefs.h.  */
 
17844
_ACEOF
 
17845
cat confdefs.h >>conftest.$ac_ext
 
17846
cat >>conftest.$ac_ext <<_ACEOF
 
17847
/* end confdefs.h.  */
 
17848
 
 
17849
int
 
17850
main ()
 
17851
{
 
17852
 
 
17853
  ;
 
17854
  return 0;
 
17855
}
 
17856
_ACEOF
 
17857
rm -f conftest.$ac_objext conftest$ac_exeext
 
17858
if { (ac_try="$ac_link"
 
17859
case "(($ac_try" in
 
17860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17861
  *) ac_try_echo=$ac_try;;
 
17862
esac
 
17863
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17864
$as_echo "$ac_try_echo") >&5
 
17865
  (eval "$ac_link") 2>conftest.er1
 
17866
  ac_status=$?
 
17867
  grep -v '^ *+' conftest.er1 >conftest.err
 
17868
  rm -f conftest.er1
 
17869
  cat conftest.err >&5
 
17870
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17871
  (exit $ac_status); } && {
 
17872
         test -z "$ac_cxx_werror_flag" ||
 
17873
         test ! -s conftest.err
 
17874
       } && test -s conftest$ac_exeext && {
 
17875
         test "$cross_compiling" = yes ||
 
17876
         $as_test_x conftest$ac_exeext
 
17877
       }; then
 
17878
 
 
17879
lt_aix_libpath_sed='
 
17880
    /Import File Strings/,/^$/ {
 
17881
        /^0/ {
 
17882
            s/^0  *\(.*\)$/\1/
 
17883
            p
 
17884
        }
 
17885
    }'
 
17886
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17887
# Check for a 64-bit object if we didn't find anything.
 
17888
if test -z "$aix_libpath"; then
 
17889
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17890
fi
 
17891
else
 
17892
  $as_echo "$as_me: failed program was:" >&5
 
17893
sed 's/^/| /' conftest.$ac_ext >&5
 
17894
 
 
17895
 
 
17896
fi
 
17897
 
 
17898
rm -rf conftest.dSYM
 
17899
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17900
      conftest$ac_exeext conftest.$ac_ext
 
17901
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17902
 
 
17903
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17904
            # Warning - without using the other run time loading flags,
 
17905
            # -berok will link without error, but may produce a broken library.
 
17906
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
17907
            allow_undefined_flag_CXX=' ${wl}-berok'
 
17908
            # Exported symbols can be pulled into shared objects from archives
 
17909
            whole_archive_flag_spec_CXX='$convenience'
 
17910
            archive_cmds_need_lc_CXX=yes
 
17911
            # This is similar to how AIX traditionally builds its shared
 
17912
            # libraries.
 
17913
            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'
 
17914
          fi
 
17915
        fi
 
17916
        ;;
 
17917
 
 
17918
      beos*)
 
17919
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
17920
          allow_undefined_flag_CXX=unsupported
 
17921
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17922
          # support --undefined.  This deserves some investigation.  FIXME
 
17923
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17924
        else
 
17925
          ld_shlibs_CXX=no
 
17926
        fi
 
17927
        ;;
 
17928
 
 
17929
      chorus*)
 
17930
        case $cc_basename in
 
17931
          *)
 
17932
          # FIXME: insert proper C++ library support
 
17933
          ld_shlibs_CXX=no
 
17934
          ;;
 
17935
        esac
 
17936
        ;;
 
17937
 
 
17938
      cygwin* | mingw* | pw32* | cegcc*)
 
17939
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
17940
        # as there is no search path for DLLs.
 
17941
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
17942
        allow_undefined_flag_CXX=unsupported
 
17943
        always_export_symbols_CXX=no
 
17944
        enable_shared_with_static_runtimes_CXX=yes
 
17945
 
 
17946
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
17947
          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'
 
17948
          # If the export-symbols file already is a .def file (1st line
 
17949
          # is EXPORTS), use it as is; otherwise, prepend...
 
17950
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17951
            cp $export_symbols $output_objdir/$soname.def;
 
17952
          else
 
17953
            echo EXPORTS > $output_objdir/$soname.def;
 
17954
            cat $export_symbols >> $output_objdir/$soname.def;
 
17955
          fi~
 
17956
          $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'
 
17957
        else
 
17958
          ld_shlibs_CXX=no
 
17959
        fi
 
17960
        ;;
 
17961
      darwin* | rhapsody*)
 
17962
 
 
17963
 
 
17964
  archive_cmds_need_lc_CXX=no
 
17965
  hardcode_direct_CXX=no
 
17966
  hardcode_automatic_CXX=yes
 
17967
  hardcode_shlibpath_var_CXX=unsupported
 
17968
  whole_archive_flag_spec_CXX=''
 
17969
  link_all_deplibs_CXX=yes
 
17970
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
17971
  case $cc_basename in
 
17972
     ifort*) _lt_dar_can_shared=yes ;;
 
17973
     *) _lt_dar_can_shared=$GCC ;;
 
17974
  esac
 
17975
  if test "$_lt_dar_can_shared" = "yes"; then
 
17976
    output_verbose_link_cmd=echo
 
17977
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
17978
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17979
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
17980
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
17981
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
17982
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
17983
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
17984
    fi
 
17985
 
 
17986
  else
 
17987
  ld_shlibs_CXX=no
 
17988
  fi
 
17989
 
 
17990
        ;;
 
17991
 
 
17992
      dgux*)
 
17993
        case $cc_basename in
 
17994
          ec++*)
 
17995
            # FIXME: insert proper C++ library support
 
17996
            ld_shlibs_CXX=no
 
17997
            ;;
 
17998
          ghcx*)
 
17999
            # Green Hills C++ Compiler
 
18000
            # FIXME: insert proper C++ library support
 
18001
            ld_shlibs_CXX=no
 
18002
            ;;
 
18003
          *)
 
18004
            # FIXME: insert proper C++ library support
 
18005
            ld_shlibs_CXX=no
 
18006
            ;;
 
18007
        esac
 
18008
        ;;
 
18009
 
 
18010
      freebsd[12]*)
 
18011
        # C++ shared libraries reported to be fairly broken before
 
18012
        # switch to ELF
 
18013
        ld_shlibs_CXX=no
 
18014
        ;;
 
18015
 
 
18016
      freebsd-elf*)
 
18017
        archive_cmds_need_lc_CXX=no
 
18018
        ;;
 
18019
 
 
18020
      freebsd* | dragonfly*)
 
18021
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
18022
        # conventions
 
18023
        ld_shlibs_CXX=yes
 
18024
        ;;
 
18025
 
 
18026
      gnu*)
 
18027
        ;;
 
18028
 
 
18029
      hpux9*)
 
18030
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
18031
        hardcode_libdir_separator_CXX=:
 
18032
        export_dynamic_flag_spec_CXX='${wl}-E'
 
18033
        hardcode_direct_CXX=yes
 
18034
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
18035
                                             # but as the default
 
18036
                                             # location of the library.
 
18037
 
 
18038
        case $cc_basename in
 
18039
          CC*)
 
18040
            # FIXME: insert proper C++ library support
 
18041
            ld_shlibs_CXX=no
 
18042
            ;;
 
18043
          aCC*)
 
18044
            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'
 
18045
            # Commands to make compiler produce verbose output that lists
 
18046
            # what "hidden" libraries, object files and flags are used when
 
18047
            # linking a shared library.
 
18048
            #
 
18049
            # There doesn't appear to be a way to prevent this compiler from
 
18050
            # explicitly linking system object files so we need to strip them
 
18051
            # from the output so that they don't get included in the library
 
18052
            # dependencies.
 
18053
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
18054
            ;;
 
18055
          *)
 
18056
            if test "$GXX" = yes; then
 
18057
              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'
 
18058
            else
 
18059
              # FIXME: insert proper C++ library support
 
18060
              ld_shlibs_CXX=no
 
18061
            fi
 
18062
            ;;
 
18063
        esac
 
18064
        ;;
 
18065
 
 
18066
      hpux10*|hpux11*)
 
18067
        if test $with_gnu_ld = no; then
 
18068
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
18069
          hardcode_libdir_separator_CXX=:
 
18070
 
 
18071
          case $host_cpu in
 
18072
            hppa*64*|ia64*)
 
18073
              ;;
 
18074
            *)
 
18075
              export_dynamic_flag_spec_CXX='${wl}-E'
 
18076
              ;;
 
18077
          esac
 
18078
        fi
 
18079
        case $host_cpu in
 
18080
          hppa*64*|ia64*)
 
18081
            hardcode_direct_CXX=no
 
18082
            hardcode_shlibpath_var_CXX=no
 
18083
            ;;
 
18084
          *)
 
18085
            hardcode_direct_CXX=yes
 
18086
            hardcode_direct_absolute_CXX=yes
 
18087
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
18088
                                                 # but as the default
 
18089
                                                 # location of the library.
 
18090
            ;;
 
18091
        esac
 
18092
 
 
18093
        case $cc_basename in
 
18094
          CC*)
 
18095
            # FIXME: insert proper C++ library support
 
18096
            ld_shlibs_CXX=no
 
18097
            ;;
 
18098
          aCC*)
 
18099
            case $host_cpu in
 
18100
              hppa*64*)
 
18101
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
18102
                ;;
 
18103
              ia64*)
 
18104
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
18105
                ;;
 
18106
              *)
 
18107
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
18108
                ;;
 
18109
            esac
 
18110
            # Commands to make compiler produce verbose output that lists
 
18111
            # what "hidden" libraries, object files and flags are used when
 
18112
            # linking a shared library.
 
18113
            #
 
18114
            # There doesn't appear to be a way to prevent this compiler from
 
18115
            # explicitly linking system object files so we need to strip them
 
18116
            # from the output so that they don't get included in the library
 
18117
            # dependencies.
 
18118
            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 "X$list" | $Xsed'
 
18119
            ;;
 
18120
          *)
 
18121
            if test "$GXX" = yes; then
 
18122
              if test $with_gnu_ld = no; then
 
18123
                case $host_cpu in
 
18124
                  hppa*64*)
 
18125
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
18126
                    ;;
 
18127
                  ia64*)
 
18128
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
18129
                    ;;
 
18130
                  *)
 
18131
                    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'
 
18132
                    ;;
 
18133
                esac
 
18134
              fi
 
18135
            else
 
18136
              # FIXME: insert proper C++ library support
 
18137
              ld_shlibs_CXX=no
 
18138
            fi
 
18139
            ;;
 
18140
        esac
 
18141
        ;;
 
18142
 
 
18143
      interix[3-9]*)
 
18144
        hardcode_direct_CXX=no
 
18145
        hardcode_shlibpath_var_CXX=no
 
18146
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
18147
        export_dynamic_flag_spec_CXX='${wl}-E'
 
18148
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
18149
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
18150
        # default) and relocated if they conflict, which is a slow very memory
 
18151
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
18152
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
18153
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
18154
        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'
 
18155
        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'
 
18156
        ;;
 
18157
      irix5* | irix6*)
 
18158
        case $cc_basename in
 
18159
          CC*)
 
18160
            # SGI C++
 
18161
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
18162
 
 
18163
            # Archives containing C++ object files must be created using
 
18164
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
18165
            # necessary to make sure instantiated templates are included
 
18166
            # in the archive.
 
18167
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
18168
            ;;
 
18169
          *)
 
18170
            if test "$GXX" = yes; then
 
18171
              if test "$with_gnu_ld" = no; then
 
18172
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18173
              else
 
18174
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
18175
              fi
 
18176
            fi
 
18177
            link_all_deplibs_CXX=yes
 
18178
            ;;
 
18179
        esac
 
18180
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
18181
        hardcode_libdir_separator_CXX=:
 
18182
        inherit_rpath_CXX=yes
 
18183
        ;;
 
18184
 
 
18185
      linux* | k*bsd*-gnu)
 
18186
        case $cc_basename in
 
18187
          KCC*)
 
18188
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
18189
 
 
18190
            # KCC will only create a shared library if the output file
 
18191
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
18192
            # to its proper name (with version) after linking.
 
18193
            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'
 
18194
            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'
 
18195
            # Commands to make compiler produce verbose output that lists
 
18196
            # what "hidden" libraries, object files and flags are used when
 
18197
            # linking a shared library.
 
18198
            #
 
18199
            # There doesn't appear to be a way to prevent this compiler from
 
18200
            # explicitly linking system object files so we need to strip them
 
18201
            # from the output so that they don't get included in the library
 
18202
            # dependencies.
 
18203
            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 "X$list" | $Xsed'
 
18204
 
 
18205
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
18206
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
18207
 
 
18208
            # Archives containing C++ object files must be created using
 
18209
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
18210
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
18211
            ;;
 
18212
          icpc* | ecpc* )
 
18213
            # Intel C++
 
18214
            with_gnu_ld=yes
 
18215
            # version 8.0 and above of icpc choke on multiply defined symbols
 
18216
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
18217
            # earlier do not add the objects themselves.
 
18218
            case `$CC -V 2>&1` in
 
18219
              *"Version 7."*)
 
18220
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18221
                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'
 
18222
                ;;
 
18223
              *)  # Version 8.0 or newer
 
18224
                tmp_idyn=
 
18225
                case $host_cpu in
 
18226
                  ia64*) tmp_idyn=' -i_dynamic';;
 
18227
                esac
 
18228
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18229
                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'
 
18230
                ;;
 
18231
            esac
 
18232
            archive_cmds_need_lc_CXX=no
 
18233
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
18234
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
18235
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
18236
            ;;
 
18237
          pgCC* | pgcpp*)
 
18238
            # Portland Group C++ compiler
 
18239
            case `$CC -V` in
 
18240
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
18241
              prelink_cmds_CXX='tpldir=Template.dir~
 
18242
                rm -rf $tpldir~
 
18243
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
18244
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
18245
              old_archive_cmds_CXX='tpldir=Template.dir~
 
18246
                rm -rf $tpldir~
 
18247
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
18248
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
18249
                $RANLIB $oldlib'
 
18250
              archive_cmds_CXX='tpldir=Template.dir~
 
18251
                rm -rf $tpldir~
 
18252
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
18253
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
18254
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
18255
                rm -rf $tpldir~
 
18256
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
18257
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
18258
              ;;
 
18259
            *) # Version 6 will use weak symbols
 
18260
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
18261
              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'
 
18262
              ;;
 
18263
            esac
 
18264
 
 
18265
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
18266
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
18267
            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'
 
18268
            ;;
 
18269
          cxx*)
 
18270
            # Compaq C++
 
18271
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18272
            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'
 
18273
 
 
18274
            runpath_var=LD_RUN_PATH
 
18275
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
18276
            hardcode_libdir_separator_CXX=:
 
18277
 
 
18278
            # Commands to make compiler produce verbose output that lists
 
18279
            # what "hidden" libraries, object files and flags are used when
 
18280
            # linking a shared library.
 
18281
            #
 
18282
            # There doesn't appear to be a way to prevent this compiler from
 
18283
            # explicitly linking system object files so we need to strip them
 
18284
            # from the output so that they don't get included in the library
 
18285
            # dependencies.
 
18286
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
18287
            ;;
 
18288
          xl*)
 
18289
            # IBM XL 8.0 on PPC, with GNU ld
 
18290
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
18291
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
18292
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18293
            if test "x$supports_anon_versioning" = xyes; then
 
18294
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
18295
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18296
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
18297
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18298
            fi
 
18299
            ;;
 
18300
          *)
 
18301
            case `$CC -V 2>&1 | sed 5q` in
 
18302
            *Sun\ C*)
 
18303
              # Sun C++ 5.9
 
18304
              no_undefined_flag_CXX=' -zdefs'
 
18305
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
18306
              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'
 
18307
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
18308
              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'
 
18309
              compiler_needs_object_CXX=yes
 
18310
 
 
18311
              # Not sure whether something based on
 
18312
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
18313
              # would be better.
 
18314
              output_verbose_link_cmd='echo'
 
18315
 
 
18316
              # Archives containing C++ object files must be created using
 
18317
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
18318
              # necessary to make sure instantiated templates are included
 
18319
              # in the archive.
 
18320
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
18321
              ;;
 
18322
            esac
 
18323
            ;;
 
18324
        esac
 
18325
        ;;
 
18326
 
 
18327
      lynxos*)
 
18328
        # FIXME: insert proper C++ library support
 
18329
        ld_shlibs_CXX=no
 
18330
        ;;
 
18331
 
 
18332
      m88k*)
 
18333
        # FIXME: insert proper C++ library support
 
18334
        ld_shlibs_CXX=no
 
18335
        ;;
 
18336
 
 
18337
      mvs*)
 
18338
        case $cc_basename in
 
18339
          cxx*)
 
18340
            # FIXME: insert proper C++ library support
 
18341
            ld_shlibs_CXX=no
 
18342
            ;;
 
18343
          *)
 
18344
            # FIXME: insert proper C++ library support
 
18345
            ld_shlibs_CXX=no
 
18346
            ;;
 
18347
        esac
 
18348
        ;;
 
18349
 
 
18350
      netbsd*)
 
18351
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
18352
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
18353
          wlarc=
 
18354
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
18355
          hardcode_direct_CXX=yes
 
18356
          hardcode_shlibpath_var_CXX=no
 
18357
        fi
 
18358
        # Workaround some broken pre-1.5 toolchains
 
18359
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
18360
        ;;
 
18361
 
 
18362
      *nto* | *qnx*)
 
18363
        ld_shlibs_CXX=yes
 
18364
        ;;
 
18365
 
 
18366
      openbsd2*)
 
18367
        # C++ shared libraries are fairly broken
 
18368
        ld_shlibs_CXX=no
 
18369
        ;;
 
18370
 
 
18371
      openbsd*)
 
18372
        if test -f /usr/libexec/ld.so; then
 
18373
          hardcode_direct_CXX=yes
 
18374
          hardcode_shlibpath_var_CXX=no
 
18375
          hardcode_direct_absolute_CXX=yes
 
18376
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
18377
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
18378
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18379
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
18380
            export_dynamic_flag_spec_CXX='${wl}-E'
 
18381
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18382
          fi
 
18383
          output_verbose_link_cmd=echo
 
18384
        else
 
18385
          ld_shlibs_CXX=no
 
18386
        fi
 
18387
        ;;
 
18388
 
 
18389
      osf3* | osf4* | osf5*)
 
18390
        case $cc_basename in
 
18391
          KCC*)
 
18392
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
18393
 
 
18394
            # KCC will only create a shared library if the output file
 
18395
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
18396
            # to its proper name (with version) after linking.
 
18397
            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'
 
18398
 
 
18399
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
18400
            hardcode_libdir_separator_CXX=:
 
18401
 
 
18402
            # Archives containing C++ object files must be created using
 
18403
            # the KAI C++ compiler.
 
18404
            case $host in
 
18405
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
18406
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
18407
            esac
 
18408
            ;;
 
18409
          RCC*)
 
18410
            # Rational C++ 2.4.1
 
18411
            # FIXME: insert proper C++ library support
 
18412
            ld_shlibs_CXX=no
 
18413
            ;;
 
18414
          cxx*)
 
18415
            case $host in
 
18416
              osf3*)
 
18417
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
18418
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
18419
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
18420
                ;;
 
18421
              *)
 
18422
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
18423
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
18424
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
18425
                  echo "-hidden">> $lib.exp~
 
18426
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
18427
                  $RM $lib.exp'
 
18428
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
18429
                ;;
 
18430
            esac
 
18431
 
 
18432
            hardcode_libdir_separator_CXX=:
 
18433
 
 
18434
            # Commands to make compiler produce verbose output that lists
 
18435
            # what "hidden" libraries, object files and flags are used when
 
18436
            # linking a shared library.
 
18437
            #
 
18438
            # There doesn't appear to be a way to prevent this compiler from
 
18439
            # explicitly linking system object files so we need to strip them
 
18440
            # from the output so that they don't get included in the library
 
18441
            # dependencies.
 
18442
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
18443
            ;;
 
18444
          *)
 
18445
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
18446
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
18447
              case $host in
 
18448
                osf3*)
 
18449
                  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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18450
                  ;;
 
18451
                *)
 
18452
                  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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18453
                  ;;
 
18454
              esac
 
18455
 
 
18456
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
18457
              hardcode_libdir_separator_CXX=:
 
18458
 
 
18459
              # Commands to make compiler produce verbose output that lists
 
18460
              # what "hidden" libraries, object files and flags are used when
 
18461
              # linking a shared library.
 
18462
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
18463
 
 
18464
            else
 
18465
              # FIXME: insert proper C++ library support
 
18466
              ld_shlibs_CXX=no
 
18467
            fi
 
18468
            ;;
 
18469
        esac
 
18470
        ;;
 
18471
 
 
18472
      psos*)
 
18473
        # FIXME: insert proper C++ library support
 
18474
        ld_shlibs_CXX=no
 
18475
        ;;
 
18476
 
 
18477
      sunos4*)
 
18478
        case $cc_basename in
 
18479
          CC*)
 
18480
            # Sun C++ 4.x
 
18481
            # FIXME: insert proper C++ library support
 
18482
            ld_shlibs_CXX=no
 
18483
            ;;
 
18484
          lcc*)
 
18485
            # Lucid
 
18486
            # FIXME: insert proper C++ library support
 
18487
            ld_shlibs_CXX=no
 
18488
            ;;
 
18489
          *)
 
18490
            # FIXME: insert proper C++ library support
 
18491
            ld_shlibs_CXX=no
 
18492
            ;;
 
18493
        esac
 
18494
        ;;
 
18495
 
 
18496
      solaris*)
 
18497
        case $cc_basename in
 
18498
          CC*)
 
18499
            # Sun C++ 4.2, 5.x and Centerline C++
 
18500
            archive_cmds_need_lc_CXX=yes
 
18501
            no_undefined_flag_CXX=' -zdefs'
 
18502
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
18503
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
18504
              $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'
 
18505
 
 
18506
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
18507
            hardcode_shlibpath_var_CXX=no
 
18508
            case $host_os in
 
18509
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18510
              *)
 
18511
                # The compiler driver will combine and reorder linker options,
 
18512
                # but understands `-z linker_flag'.
 
18513
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18514
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
18515
                ;;
 
18516
            esac
 
18517
            link_all_deplibs_CXX=yes
 
18518
 
 
18519
            output_verbose_link_cmd='echo'
 
18520
 
 
18521
            # Archives containing C++ object files must be created using
 
18522
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
18523
            # necessary to make sure instantiated templates are included
 
18524
            # in the archive.
 
18525
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
18526
            ;;
 
18527
          gcx*)
 
18528
            # Green Hills C++ Compiler
 
18529
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
18530
 
 
18531
            # The C++ compiler must be used to create the archive.
 
18532
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
18533
            ;;
 
18534
          *)
 
18535
            # GNU C++ compiler with Solaris linker
 
18536
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
18537
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
18538
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
18539
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
18540
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
18541
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
18542
 
 
18543
                # Commands to make compiler produce verbose output that lists
 
18544
                # what "hidden" libraries, object files and flags are used when
 
18545
                # linking a shared library.
 
18546
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
18547
              else
 
18548
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
18549
                # platform.
 
18550
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
18551
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
18552
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
18553
 
 
18554
                # Commands to make compiler produce verbose output that lists
 
18555
                # what "hidden" libraries, object files and flags are used when
 
18556
                # linking a shared library.
 
18557
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
18558
              fi
 
18559
 
 
18560
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
18561
              case $host_os in
 
18562
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18563
                *)
 
18564
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18565
                  ;;
 
18566
              esac
 
18567
            fi
 
18568
            ;;
 
18569
        esac
 
18570
        ;;
 
18571
 
 
18572
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18573
      no_undefined_flag_CXX='${wl}-z,text'
 
18574
      archive_cmds_need_lc_CXX=no
 
18575
      hardcode_shlibpath_var_CXX=no
 
18576
      runpath_var='LD_RUN_PATH'
 
18577
 
 
18578
      case $cc_basename in
 
18579
        CC*)
 
18580
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18581
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18582
          ;;
 
18583
        *)
 
18584
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18585
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18586
          ;;
 
18587
      esac
 
18588
      ;;
 
18589
 
 
18590
      sysv5* | sco3.2v5* | sco5v6*)
 
18591
        # Note: We can NOT use -z defs as we might desire, because we do not
 
18592
        # link with -lc, and that would cause any symbols used from libc to
 
18593
        # always be unresolved, which means just about no library would
 
18594
        # ever link correctly.  If we're not using GNU ld we use -z text
 
18595
        # though, which does catch some bad symbols but isn't as heavy-handed
 
18596
        # as -z defs.
 
18597
        no_undefined_flag_CXX='${wl}-z,text'
 
18598
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
18599
        archive_cmds_need_lc_CXX=no
 
18600
        hardcode_shlibpath_var_CXX=no
 
18601
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
18602
        hardcode_libdir_separator_CXX=':'
 
18603
        link_all_deplibs_CXX=yes
 
18604
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
18605
        runpath_var='LD_RUN_PATH'
 
18606
 
 
18607
        case $cc_basename in
 
18608
          CC*)
 
18609
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18610
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18611
            ;;
 
18612
          *)
 
18613
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18614
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18615
            ;;
 
18616
        esac
 
18617
      ;;
 
18618
 
 
18619
      tandem*)
 
18620
        case $cc_basename in
 
18621
          NCC*)
 
18622
            # NonStop-UX NCC 3.20
 
18623
            # FIXME: insert proper C++ library support
 
18624
            ld_shlibs_CXX=no
 
18625
            ;;
 
18626
          *)
 
18627
            # FIXME: insert proper C++ library support
 
18628
            ld_shlibs_CXX=no
 
18629
            ;;
 
18630
        esac
 
18631
        ;;
 
18632
 
 
18633
      vxworks*)
 
18634
        # FIXME: insert proper C++ library support
 
18635
        ld_shlibs_CXX=no
 
18636
        ;;
 
18637
 
 
18638
      *)
 
18639
        # FIXME: insert proper C++ library support
 
18640
        ld_shlibs_CXX=no
 
18641
        ;;
 
18642
    esac
 
18643
 
 
18644
    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
18645
$as_echo "$ld_shlibs_CXX" >&6; }
 
18646
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
18647
 
 
18648
    GCC_CXX="$GXX"
 
18649
    LD_CXX="$LD"
 
18650
 
 
18651
    ## CAVEAT EMPTOR:
 
18652
    ## There is no encapsulation within the following macros, do not change
 
18653
    ## the running order or otherwise move them around unless you know exactly
 
18654
    ## what you are doing...
 
18655
    # Dependencies to place before and after the object being linked:
 
18656
predep_objects_CXX=
 
18657
postdep_objects_CXX=
 
18658
predeps_CXX=
 
18659
postdeps_CXX=
 
18660
compiler_lib_search_path_CXX=
 
18661
 
 
18662
cat > conftest.$ac_ext <<_LT_EOF
 
18663
class Foo
 
18664
{
 
18665
public:
 
18666
  Foo (void) { a = 0; }
 
18667
private:
 
18668
  int a;
 
18669
};
 
18670
_LT_EOF
 
18671
 
 
18672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18673
  (eval $ac_compile) 2>&5
 
18674
  ac_status=$?
 
18675
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18676
  (exit $ac_status); }; then
 
18677
  # Parse the compiler output and extract the necessary
 
18678
  # objects, libraries and library flags.
 
18679
 
 
18680
  # Sentinel used to keep track of whether or not we are before
 
18681
  # the conftest object file.
 
18682
  pre_test_object_deps_done=no
 
18683
 
 
18684
  for p in `eval "$output_verbose_link_cmd"`; do
 
18685
    case $p in
 
18686
 
 
18687
    -L* | -R* | -l*)
 
18688
       # Some compilers place space between "-{L,R}" and the path.
 
18689
       # Remove the space.
 
18690
       if test $p = "-L" ||
 
18691
          test $p = "-R"; then
 
18692
         prev=$p
 
18693
         continue
 
18694
       else
 
18695
         prev=
 
18696
       fi
 
18697
 
 
18698
       if test "$pre_test_object_deps_done" = no; then
 
18699
         case $p in
 
18700
         -L* | -R*)
 
18701
           # Internal compiler library paths should come after those
 
18702
           # provided the user.  The postdeps already come after the
 
18703
           # user supplied libs so there is no need to process them.
 
18704
           if test -z "$compiler_lib_search_path_CXX"; then
 
18705
             compiler_lib_search_path_CXX="${prev}${p}"
 
18706
           else
 
18707
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
18708
           fi
 
18709
           ;;
 
18710
         # The "-l" case would never come before the object being
 
18711
         # linked, so don't bother handling this case.
 
18712
         esac
 
18713
       else
 
18714
         if test -z "$postdeps_CXX"; then
 
18715
           postdeps_CXX="${prev}${p}"
 
18716
         else
 
18717
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
18718
         fi
 
18719
       fi
 
18720
       ;;
 
18721
 
 
18722
    *.$objext)
 
18723
       # This assumes that the test object file only shows up
 
18724
       # once in the compiler output.
 
18725
       if test "$p" = "conftest.$objext"; then
 
18726
         pre_test_object_deps_done=yes
 
18727
         continue
 
18728
       fi
 
18729
 
 
18730
       if test "$pre_test_object_deps_done" = no; then
 
18731
         if test -z "$predep_objects_CXX"; then
 
18732
           predep_objects_CXX="$p"
 
18733
         else
 
18734
           predep_objects_CXX="$predep_objects_CXX $p"
 
18735
         fi
 
18736
       else
 
18737
         if test -z "$postdep_objects_CXX"; then
 
18738
           postdep_objects_CXX="$p"
 
18739
         else
 
18740
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
18741
         fi
 
18742
       fi
 
18743
       ;;
 
18744
 
 
18745
    *) ;; # Ignore the rest.
 
18746
 
 
18747
    esac
 
18748
  done
 
18749
 
 
18750
  # Clean up.
 
18751
  rm -f a.out a.exe
 
18752
else
 
18753
  echo "libtool.m4: error: problem compiling CXX test program"
 
18754
fi
 
18755
 
 
18756
$RM -f confest.$objext
 
18757
 
 
18758
# PORTME: override above test on systems where it is broken
 
18759
case $host_os in
 
18760
interix[3-9]*)
 
18761
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
18762
  # hack all around it, let's just trust "g++" to DTRT.
 
18763
  predep_objects_CXX=
 
18764
  postdep_objects_CXX=
 
18765
  postdeps_CXX=
 
18766
  ;;
 
18767
 
 
18768
linux*)
 
18769
  case `$CC -V 2>&1 | sed 5q` in
 
18770
  *Sun\ C*)
 
18771
    # Sun C++ 5.9
 
18772
 
 
18773
    # The more standards-conforming stlport4 library is
 
18774
    # incompatible with the Cstd library. Avoid specifying
 
18775
    # it if it's in CXXFLAGS. Ignore libCrun as
 
18776
    # -library=stlport4 depends on it.
 
18777
    case " $CXX $CXXFLAGS " in
 
18778
    *" -library=stlport4 "*)
 
18779
      solaris_use_stlport4=yes
 
18780
      ;;
 
18781
    esac
 
18782
 
 
18783
    if test "$solaris_use_stlport4" != yes; then
 
18784
      postdeps_CXX='-library=Cstd -library=Crun'
 
18785
    fi
 
18786
    ;;
 
18787
  esac
 
18788
  ;;
 
18789
 
 
18790
solaris*)
 
18791
  case $cc_basename in
 
18792
  CC*)
 
18793
    # The more standards-conforming stlport4 library is
 
18794
    # incompatible with the Cstd library. Avoid specifying
 
18795
    # it if it's in CXXFLAGS. Ignore libCrun as
 
18796
    # -library=stlport4 depends on it.
 
18797
    case " $CXX $CXXFLAGS " in
 
18798
    *" -library=stlport4 "*)
 
18799
      solaris_use_stlport4=yes
 
18800
      ;;
 
18801
    esac
 
18802
 
 
18803
    # Adding this requires a known-good setup of shared libraries for
 
18804
    # Sun compiler versions before 5.6, else PIC objects from an old
 
18805
    # archive will be linked into the output, leading to subtle bugs.
 
18806
    if test "$solaris_use_stlport4" != yes; then
 
18807
      postdeps_CXX='-library=Cstd -library=Crun'
 
18808
    fi
 
18809
    ;;
 
18810
  esac
 
18811
  ;;
 
18812
esac
 
18813
 
 
18814
 
 
18815
case " $postdeps_CXX " in
 
18816
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
18817
esac
 
18818
 compiler_lib_search_dirs_CXX=
 
18819
if test -n "${compiler_lib_search_path_CXX}"; then
 
18820
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
18821
fi
 
18822
 
 
18823
 
 
18824
 
 
18825
 
 
18826
 
 
18827
 
 
18828
 
 
18829
 
 
18830
 
 
18831
 
 
18832
 
 
18833
 
 
18834
 
 
18835
 
 
18836
 
 
18837
 
 
18838
 
 
18839
 
 
18840
 
 
18841
 
 
18842
 
 
18843
 
 
18844
 
 
18845
 
 
18846
 
 
18847
 
 
18848
 
 
18849
 
 
18850
 
 
18851
 
 
18852
 
 
18853
    lt_prog_compiler_wl_CXX=
 
18854
lt_prog_compiler_pic_CXX=
 
18855
lt_prog_compiler_static_CXX=
 
18856
 
 
18857
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18858
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
18859
 
 
18860
  # C++ specific cases for pic, static, wl, etc.
 
18861
  if test "$GXX" = yes; then
 
18862
    lt_prog_compiler_wl_CXX='-Wl,'
 
18863
    lt_prog_compiler_static_CXX='-static'
 
18864
 
 
18865
    case $host_os in
 
18866
    aix*)
 
18867
      # All AIX code is PIC.
 
18868
      if test "$host_cpu" = ia64; then
 
18869
        # AIX 5 now supports IA64 processor
 
18870
        lt_prog_compiler_static_CXX='-Bstatic'
 
18871
      fi
 
18872
      ;;
 
18873
 
 
18874
    amigaos*)
 
18875
      case $host_cpu in
 
18876
      powerpc)
 
18877
            # see comment about AmigaOS4 .so support
 
18878
            lt_prog_compiler_pic_CXX='-fPIC'
 
18879
        ;;
 
18880
      m68k)
 
18881
            # FIXME: we need at least 68020 code to build shared libraries, but
 
18882
            # adding the `-m68020' flag to GCC prevents building anything better,
 
18883
            # like `-m68040'.
 
18884
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
18885
        ;;
 
18886
      esac
 
18887
      ;;
 
18888
 
 
18889
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
18890
      # PIC is the default for these OSes.
 
18891
      ;;
 
18892
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
18893
      # This hack is so that the source file can tell whether it is being
 
18894
      # built for inclusion in a dll (and should export symbols for example).
 
18895
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
18896
      # (--disable-auto-import) libraries
 
18897
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
18898
      ;;
 
18899
    darwin* | rhapsody*)
 
18900
      # PIC is the default on this platform
 
18901
      # Common symbols not allowed in MH_DYLIB files
 
18902
      lt_prog_compiler_pic_CXX='-fno-common'
 
18903
      ;;
 
18904
    *djgpp*)
 
18905
      # DJGPP does not support shared libraries at all
 
18906
      lt_prog_compiler_pic_CXX=
 
18907
      ;;
 
18908
    interix[3-9]*)
 
18909
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
18910
      # Instead, we relocate shared libraries at runtime.
 
18911
      ;;
 
18912
    sysv4*MP*)
 
18913
      if test -d /usr/nec; then
 
18914
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
18915
      fi
 
18916
      ;;
 
18917
    hpux*)
 
18918
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
18919
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
18920
      # sets the default TLS model and affects inlining.
 
18921
      case $host_cpu in
 
18922
      hppa*64*)
 
18923
        ;;
 
18924
      *)
 
18925
        lt_prog_compiler_pic_CXX='-fPIC'
 
18926
        ;;
 
18927
      esac
 
18928
      ;;
 
18929
    *qnx* | *nto*)
 
18930
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
18931
      # it will coredump.
 
18932
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
18933
      ;;
 
18934
    *)
 
18935
      lt_prog_compiler_pic_CXX='-fPIC'
 
18936
      ;;
 
18937
    esac
 
18938
  else
 
18939
    case $host_os in
 
18940
      aix[4-9]*)
 
18941
        # All AIX code is PIC.
 
18942
        if test "$host_cpu" = ia64; then
 
18943
          # AIX 5 now supports IA64 processor
 
18944
          lt_prog_compiler_static_CXX='-Bstatic'
 
18945
        else
 
18946
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
18947
        fi
 
18948
        ;;
 
18949
      chorus*)
 
18950
        case $cc_basename in
 
18951
        cxch68*)
 
18952
          # Green Hills C++ Compiler
 
18953
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
18954
          ;;
 
18955
        esac
 
18956
        ;;
 
18957
      dgux*)
 
18958
        case $cc_basename in
 
18959
          ec++*)
 
18960
            lt_prog_compiler_pic_CXX='-KPIC'
 
18961
            ;;
 
18962
          ghcx*)
 
18963
            # Green Hills C++ Compiler
 
18964
            lt_prog_compiler_pic_CXX='-pic'
 
18965
            ;;
 
18966
          *)
 
18967
            ;;
 
18968
        esac
 
18969
        ;;
 
18970
      freebsd* | dragonfly*)
 
18971
        # FreeBSD uses GNU C++
 
18972
        ;;
 
18973
      hpux9* | hpux10* | hpux11*)
 
18974
        case $cc_basename in
 
18975
          CC*)
 
18976
            lt_prog_compiler_wl_CXX='-Wl,'
 
18977
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
18978
            if test "$host_cpu" != ia64; then
 
18979
              lt_prog_compiler_pic_CXX='+Z'
 
18980
            fi
 
18981
            ;;
 
18982
          aCC*)
 
18983
            lt_prog_compiler_wl_CXX='-Wl,'
 
18984
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
18985
            case $host_cpu in
 
18986
            hppa*64*|ia64*)
 
18987
              # +Z the default
 
18988
              ;;
 
18989
            *)
 
18990
              lt_prog_compiler_pic_CXX='+Z'
 
18991
              ;;
 
18992
            esac
 
18993
            ;;
 
18994
          *)
 
18995
            ;;
 
18996
        esac
 
18997
        ;;
 
18998
      interix*)
 
18999
        # This is c89, which is MS Visual C++ (no shared libs)
 
19000
        # Anyone wants to do a port?
 
19001
        ;;
 
19002
      irix5* | irix6* | nonstopux*)
 
19003
        case $cc_basename in
 
19004
          CC*)
 
19005
            lt_prog_compiler_wl_CXX='-Wl,'
 
19006
            lt_prog_compiler_static_CXX='-non_shared'
 
19007
            # CC pic flag -KPIC is the default.
 
19008
            ;;
 
19009
          *)
 
19010
            ;;
 
19011
        esac
 
19012
        ;;
 
19013
      linux* | k*bsd*-gnu)
 
19014
        case $cc_basename in
 
19015
          KCC*)
 
19016
            # KAI C++ Compiler
 
19017
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
19018
            lt_prog_compiler_pic_CXX='-fPIC'
 
19019
            ;;
 
19020
          ecpc* )
 
19021
            # old Intel C++ for x86_64 which still supported -KPIC.
 
19022
            lt_prog_compiler_wl_CXX='-Wl,'
 
19023
            lt_prog_compiler_pic_CXX='-KPIC'
 
19024
            lt_prog_compiler_static_CXX='-static'
 
19025
            ;;
 
19026
          icpc* )
 
19027
            # Intel C++, used to be incompatible with GCC.
 
19028
            # ICC 10 doesn't accept -KPIC any more.
 
19029
            lt_prog_compiler_wl_CXX='-Wl,'
 
19030
            lt_prog_compiler_pic_CXX='-fPIC'
 
19031
            lt_prog_compiler_static_CXX='-static'
 
19032
            ;;
 
19033
          pgCC* | pgcpp*)
 
19034
            # Portland Group C++ compiler
 
19035
            lt_prog_compiler_wl_CXX='-Wl,'
 
19036
            lt_prog_compiler_pic_CXX='-fpic'
 
19037
            lt_prog_compiler_static_CXX='-Bstatic'
 
19038
            ;;
 
19039
          cxx*)
 
19040
            # Compaq C++
 
19041
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
19042
            # Linux and Compaq Tru64 Unix objects are PIC.
 
19043
            lt_prog_compiler_pic_CXX=
 
19044
            lt_prog_compiler_static_CXX='-non_shared'
 
19045
            ;;
 
19046
          xlc* | xlC*)
 
19047
            # IBM XL 8.0 on PPC
 
19048
            lt_prog_compiler_wl_CXX='-Wl,'
 
19049
            lt_prog_compiler_pic_CXX='-qpic'
 
19050
            lt_prog_compiler_static_CXX='-qstaticlink'
 
19051
            ;;
 
19052
          *)
 
19053
            case `$CC -V 2>&1 | sed 5q` in
 
19054
            *Sun\ C*)
 
19055
              # Sun C++ 5.9
 
19056
              lt_prog_compiler_pic_CXX='-KPIC'
 
19057
              lt_prog_compiler_static_CXX='-Bstatic'
 
19058
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
19059
              ;;
 
19060
            esac
 
19061
            ;;
 
19062
        esac
 
19063
        ;;
 
19064
      lynxos*)
 
19065
        ;;
 
19066
      m88k*)
 
19067
        ;;
 
19068
      mvs*)
 
19069
        case $cc_basename in
 
19070
          cxx*)
 
19071
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
19072
            ;;
 
19073
          *)
 
19074
            ;;
 
19075
        esac
 
19076
        ;;
 
19077
      netbsd*)
 
19078
        ;;
 
19079
      *qnx* | *nto*)
 
19080
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
19081
        # it will coredump.
 
19082
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
19083
        ;;
 
19084
      osf3* | osf4* | osf5*)
 
19085
        case $cc_basename in
 
19086
          KCC*)
 
19087
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
19088
            ;;
 
19089
          RCC*)
 
19090
            # Rational C++ 2.4.1
 
19091
            lt_prog_compiler_pic_CXX='-pic'
 
19092
            ;;
 
19093
          cxx*)
 
19094
            # Digital/Compaq C++
 
19095
            lt_prog_compiler_wl_CXX='-Wl,'
 
19096
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
19097
            # Linux and Compaq Tru64 Unix objects are PIC.
 
19098
            lt_prog_compiler_pic_CXX=
 
19099
            lt_prog_compiler_static_CXX='-non_shared'
 
19100
            ;;
 
19101
          *)
 
19102
            ;;
 
19103
        esac
 
19104
        ;;
 
19105
      psos*)
 
19106
        ;;
 
19107
      solaris*)
 
19108
        case $cc_basename in
 
19109
          CC*)
 
19110
            # Sun C++ 4.2, 5.x and Centerline C++
 
19111
            lt_prog_compiler_pic_CXX='-KPIC'
 
19112
            lt_prog_compiler_static_CXX='-Bstatic'
 
19113
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
19114
            ;;
 
19115
          gcx*)
 
19116
            # Green Hills C++ Compiler
 
19117
            lt_prog_compiler_pic_CXX='-PIC'
 
19118
            ;;
 
19119
          *)
 
19120
            ;;
 
19121
        esac
 
19122
        ;;
 
19123
      sunos4*)
 
19124
        case $cc_basename in
 
19125
          CC*)
 
19126
            # Sun C++ 4.x
 
19127
            lt_prog_compiler_pic_CXX='-pic'
 
19128
            lt_prog_compiler_static_CXX='-Bstatic'
 
19129
            ;;
 
19130
          lcc*)
 
19131
            # Lucid
 
19132
            lt_prog_compiler_pic_CXX='-pic'
 
19133
            ;;
 
19134
          *)
 
19135
            ;;
 
19136
        esac
 
19137
        ;;
 
19138
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
19139
        case $cc_basename in
 
19140
          CC*)
 
19141
            lt_prog_compiler_wl_CXX='-Wl,'
 
19142
            lt_prog_compiler_pic_CXX='-KPIC'
 
19143
            lt_prog_compiler_static_CXX='-Bstatic'
 
19144
            ;;
 
19145
        esac
 
19146
        ;;
 
19147
      tandem*)
 
19148
        case $cc_basename in
 
19149
          NCC*)
 
19150
            # NonStop-UX NCC 3.20
 
19151
            lt_prog_compiler_pic_CXX='-KPIC'
 
19152
            ;;
 
19153
          *)
 
19154
            ;;
 
19155
        esac
 
19156
        ;;
 
19157
      vxworks*)
 
19158
        ;;
 
19159
      *)
 
19160
        lt_prog_compiler_can_build_shared_CXX=no
 
19161
        ;;
 
19162
    esac
 
19163
  fi
 
19164
 
 
19165
case $host_os in
 
19166
  # For platforms which do not support PIC, -DPIC is meaningless:
 
19167
  *djgpp*)
 
19168
    lt_prog_compiler_pic_CXX=
 
19169
    ;;
 
19170
  *)
 
19171
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
19172
    ;;
 
19173
esac
 
19174
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
19175
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
19176
 
 
19177
 
 
19178
 
 
19179
#
 
19180
# Check to make sure the PIC flag actually works.
 
19181
#
 
19182
if test -n "$lt_prog_compiler_pic_CXX"; then
 
19183
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
19184
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
19185
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
19186
  $as_echo_n "(cached) " >&6
 
19187
else
 
19188
  lt_cv_prog_compiler_pic_works_CXX=no
 
19189
   ac_outfile=conftest.$ac_objext
 
19190
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19191
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
19192
   # Insert the option either (1) after the last *FLAGS variable, or
 
19193
   # (2) before a word containing "conftest.", or (3) at the end.
 
19194
   # Note that $ac_compile itself does not contain backslashes and begins
 
19195
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
19196
   # The option is referenced via a variable to avoid confusing sed.
 
19197
   lt_compile=`echo "$ac_compile" | $SED \
 
19198
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
19199
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
19200
   -e 's:$: $lt_compiler_flag:'`
 
19201
   (eval echo "\"\$as_me:19201: $lt_compile\"" >&5)
 
19202
   (eval "$lt_compile" 2>conftest.err)
 
19203
   ac_status=$?
 
19204
   cat conftest.err >&5
 
19205
   echo "$as_me:19205: \$? = $ac_status" >&5
 
19206
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
19207
     # The compiler can only warn and ignore the option if not recognized
 
19208
     # So say no if there are warnings other than the usual output.
 
19209
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
19210
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
19211
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
19212
       lt_cv_prog_compiler_pic_works_CXX=yes
 
19213
     fi
 
19214
   fi
 
19215
   $RM conftest*
 
19216
 
 
19217
fi
 
19218
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
19219
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
19220
 
 
19221
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
19222
    case $lt_prog_compiler_pic_CXX in
 
19223
     "" | " "*) ;;
 
19224
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
19225
     esac
 
19226
else
 
19227
    lt_prog_compiler_pic_CXX=
 
19228
     lt_prog_compiler_can_build_shared_CXX=no
 
19229
fi
 
19230
 
 
19231
fi
 
19232
 
 
19233
 
 
19234
 
 
19235
#
 
19236
# Check to make sure the static flag actually works.
 
19237
#
 
19238
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
19239
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
19240
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
19241
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
19242
  $as_echo_n "(cached) " >&6
 
19243
else
 
19244
  lt_cv_prog_compiler_static_works_CXX=no
 
19245
   save_LDFLAGS="$LDFLAGS"
 
19246
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
19247
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
19248
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
19249
     # The linker can only warn and ignore the option if not recognized
 
19250
     # So say no if there are warnings
 
19251
     if test -s conftest.err; then
 
19252
       # Append any errors to the config.log.
 
19253
       cat conftest.err 1>&5
 
19254
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
19255
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
19256
       if diff conftest.exp conftest.er2 >/dev/null; then
 
19257
         lt_cv_prog_compiler_static_works_CXX=yes
 
19258
       fi
 
19259
     else
 
19260
       lt_cv_prog_compiler_static_works_CXX=yes
 
19261
     fi
 
19262
   fi
 
19263
   $RM -r conftest*
 
19264
   LDFLAGS="$save_LDFLAGS"
 
19265
 
 
19266
fi
 
19267
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
19268
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
19269
 
 
19270
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
19271
    :
 
19272
else
 
19273
    lt_prog_compiler_static_CXX=
 
19274
fi
 
19275
 
 
19276
 
 
19277
 
 
19278
 
 
19279
    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
19280
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
19281
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
19282
  $as_echo_n "(cached) " >&6
 
19283
else
 
19284
  lt_cv_prog_compiler_c_o_CXX=no
 
19285
   $RM -r conftest 2>/dev/null
 
19286
   mkdir conftest
 
19287
   cd conftest
 
19288
   mkdir out
 
19289
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19290
 
 
19291
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
19292
   # Insert the option either (1) after the last *FLAGS variable, or
 
19293
   # (2) before a word containing "conftest.", or (3) at the end.
 
19294
   # Note that $ac_compile itself does not contain backslashes and begins
 
19295
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
19296
   lt_compile=`echo "$ac_compile" | $SED \
 
19297
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
19298
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
19299
   -e 's:$: $lt_compiler_flag:'`
 
19300
   (eval echo "\"\$as_me:19300: $lt_compile\"" >&5)
 
19301
   (eval "$lt_compile" 2>out/conftest.err)
 
19302
   ac_status=$?
 
19303
   cat out/conftest.err >&5
 
19304
   echo "$as_me:19304: \$? = $ac_status" >&5
 
19305
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
19306
   then
 
19307
     # The compiler can only warn and ignore the option if not recognized
 
19308
     # So say no if there are warnings
 
19309
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
19310
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
19311
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
19312
       lt_cv_prog_compiler_c_o_CXX=yes
 
19313
     fi
 
19314
   fi
 
19315
   chmod u+w . 2>&5
 
19316
   $RM conftest*
 
19317
   # SGI C++ compiler will create directory out/ii_files/ for
 
19318
   # template instantiation
 
19319
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
19320
   $RM out/* && rmdir out
 
19321
   cd ..
 
19322
   $RM -r conftest
 
19323
   $RM conftest*
 
19324
 
 
19325
fi
 
19326
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
19327
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
19328
 
 
19329
 
 
19330
 
 
19331
    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
19332
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
19333
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
19334
  $as_echo_n "(cached) " >&6
 
19335
else
 
19336
  lt_cv_prog_compiler_c_o_CXX=no
 
19337
   $RM -r conftest 2>/dev/null
 
19338
   mkdir conftest
 
19339
   cd conftest
 
19340
   mkdir out
 
19341
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19342
 
 
19343
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
19344
   # Insert the option either (1) after the last *FLAGS variable, or
 
19345
   # (2) before a word containing "conftest.", or (3) at the end.
 
19346
   # Note that $ac_compile itself does not contain backslashes and begins
 
19347
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
19348
   lt_compile=`echo "$ac_compile" | $SED \
 
19349
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
19350
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
19351
   -e 's:$: $lt_compiler_flag:'`
 
19352
   (eval echo "\"\$as_me:19352: $lt_compile\"" >&5)
 
19353
   (eval "$lt_compile" 2>out/conftest.err)
 
19354
   ac_status=$?
 
19355
   cat out/conftest.err >&5
 
19356
   echo "$as_me:19356: \$? = $ac_status" >&5
 
19357
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
19358
   then
 
19359
     # The compiler can only warn and ignore the option if not recognized
 
19360
     # So say no if there are warnings
 
19361
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
19362
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
19363
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
19364
       lt_cv_prog_compiler_c_o_CXX=yes
 
19365
     fi
 
19366
   fi
 
19367
   chmod u+w . 2>&5
 
19368
   $RM conftest*
 
19369
   # SGI C++ compiler will create directory out/ii_files/ for
 
19370
   # template instantiation
 
19371
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
19372
   $RM out/* && rmdir out
 
19373
   cd ..
 
19374
   $RM -r conftest
 
19375
   $RM conftest*
 
19376
 
 
19377
fi
 
19378
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
19379
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
19380
 
 
19381
 
 
19382
 
 
19383
 
 
19384
hard_links="nottested"
 
19385
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
19386
  # do not overwrite the value of need_locks provided by the user
 
19387
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
19388
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
19389
  hard_links=yes
 
19390
  $RM conftest*
 
19391
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
19392
  touch conftest.a
 
19393
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
19394
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
19395
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
19396
$as_echo "$hard_links" >&6; }
 
19397
  if test "$hard_links" = no; then
 
19398
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
19399
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
19400
    need_locks=warn
 
19401
  fi
 
19402
else
 
19403
  need_locks=no
 
19404
fi
 
19405
 
 
19406
 
 
19407
 
 
19408
    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
19409
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
19410
 
 
19411
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
19412
  case $host_os in
 
19413
  aix[4-9]*)
 
19414
    # If we're using GNU nm, then we don't want the "-C" option.
 
19415
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
19416
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
19417
      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'
 
19418
    else
 
19419
      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'
 
19420
    fi
 
19421
    ;;
 
19422
  pw32*)
 
19423
    export_symbols_cmds_CXX="$ltdll_cmds"
 
19424
  ;;
 
19425
  cygwin* | mingw* | cegcc*)
 
19426
    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'
 
19427
  ;;
 
19428
  *)
 
19429
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
19430
  ;;
 
19431
  esac
 
19432
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
19433
 
 
19434
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
19435
$as_echo "$ld_shlibs_CXX" >&6; }
 
19436
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
19437
 
 
19438
with_gnu_ld_CXX=$with_gnu_ld
 
19439
 
 
19440
 
 
19441
 
 
19442
 
 
19443
 
 
19444
 
 
19445
#
 
19446
# Do we need to explicitly link libc?
 
19447
#
 
19448
case "x$archive_cmds_need_lc_CXX" in
 
19449
x|xyes)
 
19450
  # Assume -lc should be added
 
19451
  archive_cmds_need_lc_CXX=yes
 
19452
 
 
19453
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
19454
    case $archive_cmds_CXX in
 
19455
    *'~'*)
 
19456
      # FIXME: we may have to deal with multi-command sequences.
 
19457
      ;;
 
19458
    '$CC '*)
 
19459
      # Test whether the compiler implicitly links with -lc since on some
 
19460
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19461
      # to ld, don't add -lc before -lgcc.
 
19462
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19463
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
19464
      $RM conftest*
 
19465
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19466
 
 
19467
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19468
  (eval $ac_compile) 2>&5
 
19469
  ac_status=$?
 
19470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19471
  (exit $ac_status); } 2>conftest.err; then
 
19472
        soname=conftest
 
19473
        lib=conftest
 
19474
        libobjs=conftest.$ac_objext
 
19475
        deplibs=
 
19476
        wl=$lt_prog_compiler_wl_CXX
 
19477
        pic_flag=$lt_prog_compiler_pic_CXX
 
19478
        compiler_flags=-v
 
19479
        linker_flags=-v
 
19480
        verstring=
 
19481
        output_objdir=.
 
19482
        libname=conftest
 
19483
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
19484
        allow_undefined_flag_CXX=
 
19485
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19486
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19487
  ac_status=$?
 
19488
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19489
  (exit $ac_status); }
 
19490
        then
 
19491
          archive_cmds_need_lc_CXX=no
 
19492
        else
 
19493
          archive_cmds_need_lc_CXX=yes
 
19494
        fi
 
19495
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
19496
      else
 
19497
        cat conftest.err 1>&5
 
19498
      fi
 
19499
      $RM conftest*
 
19500
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
19501
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
19502
      ;;
 
19503
    esac
 
19504
  fi
 
19505
  ;;
 
19506
esac
 
19507
 
 
19508
 
 
19509
 
 
19510
 
 
19511
 
 
19512
 
 
19513
 
 
19514
 
 
19515
 
 
19516
 
 
19517
 
 
19518
 
 
19519
 
 
19520
 
 
19521
 
 
19522
 
 
19523
 
 
19524
 
 
19525
 
 
19526
 
 
19527
 
 
19528
 
 
19529
 
 
19530
 
 
19531
 
 
19532
 
 
19533
 
 
19534
 
 
19535
 
 
19536
 
 
19537
 
 
19538
 
 
19539
 
 
19540
 
 
19541
 
 
19542
 
 
19543
 
 
19544
 
 
19545
 
 
19546
 
 
19547
 
 
19548
 
 
19549
 
 
19550
 
 
19551
 
 
19552
 
 
19553
 
 
19554
 
 
19555
 
 
19556
 
 
19557
 
 
19558
 
 
19559
 
 
19560
 
 
19561
 
 
19562
 
 
19563
 
 
19564
 
 
19565
 
 
19566
 
 
19567
 
 
19568
 
 
19569
 
 
19570
 
 
19571
    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19572
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
19573
 
 
19574
library_names_spec=
 
19575
libname_spec='lib$name'
 
19576
soname_spec=
 
19577
shrext_cmds=".so"
 
19578
postinstall_cmds=
 
19579
postuninstall_cmds=
 
19580
finish_cmds=
 
19581
finish_eval=
 
19582
shlibpath_var=
 
19583
shlibpath_overrides_runpath=unknown
 
19584
version_type=none
 
19585
dynamic_linker="$host_os ld.so"
 
19586
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19587
need_lib_prefix=unknown
 
19588
hardcode_into_libs=no
 
19589
 
 
19590
# when you set need_version to no, make sure it does not cause -set_version
 
19591
# flags to be left without arguments
 
19592
need_version=unknown
 
19593
 
 
19594
case $host_os in
 
19595
aix3*)
 
19596
  version_type=linux
 
19597
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19598
  shlibpath_var=LIBPATH
 
19599
 
 
19600
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19601
  soname_spec='${libname}${release}${shared_ext}$major'
 
19602
  ;;
 
19603
 
 
19604
aix[4-9]*)
 
19605
  version_type=linux
 
19606
  need_lib_prefix=no
 
19607
  need_version=no
 
19608
  hardcode_into_libs=yes
 
19609
  if test "$host_cpu" = ia64; then
 
19610
    # AIX 5 supports IA64
 
19611
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19612
    shlibpath_var=LD_LIBRARY_PATH
 
19613
  else
 
19614
    # With GCC up to 2.95.x, collect2 would create an import file
 
19615
    # for dependence libraries.  The import file would start with
 
19616
    # the line `#! .'.  This would cause the generated library to
 
19617
    # depend on `.', always an invalid library.  This was fixed in
 
19618
    # development snapshots of GCC prior to 3.0.
 
19619
    case $host_os in
 
19620
      aix4 | aix4.[01] | aix4.[01].*)
 
19621
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19622
           echo ' yes '
 
19623
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
19624
        :
 
19625
      else
 
19626
        can_build_shared=no
 
19627
      fi
 
19628
      ;;
 
19629
    esac
 
19630
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19631
    # soname into executable. Probably we can add versioning support to
 
19632
    # collect2, so additional links can be useful in future.
 
19633
    if test "$aix_use_runtimelinking" = yes; then
 
19634
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19635
      # instead of lib<name>.a to let people know that these are not
 
19636
      # typical AIX shared libraries.
 
19637
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19638
    else
 
19639
      # We preserve .a as extension for shared libraries through AIX4.2
 
19640
      # and later when we are not doing run time linking.
 
19641
      library_names_spec='${libname}${release}.a $libname.a'
 
19642
      soname_spec='${libname}${release}${shared_ext}$major'
 
19643
    fi
 
19644
    shlibpath_var=LIBPATH
 
19645
  fi
 
19646
  ;;
 
19647
 
 
19648
amigaos*)
 
19649
  case $host_cpu in
 
19650
  powerpc)
 
19651
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
19652
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
19653
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19654
    ;;
 
19655
  m68k)
 
19656
    library_names_spec='$libname.ixlibrary $libname.a'
 
19657
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19658
    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'
 
19659
    ;;
 
19660
  esac
 
19661
  ;;
 
19662
 
 
19663
beos*)
 
19664
  library_names_spec='${libname}${shared_ext}'
 
19665
  dynamic_linker="$host_os ld.so"
 
19666
  shlibpath_var=LIBRARY_PATH
 
19667
  ;;
 
19668
 
 
19669
bsdi[45]*)
 
19670
  version_type=linux
 
19671
  need_version=no
 
19672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19673
  soname_spec='${libname}${release}${shared_ext}$major'
 
19674
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19675
  shlibpath_var=LD_LIBRARY_PATH
 
19676
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19677
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19678
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19679
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19680
  # libtool to hard-code these into programs
 
19681
  ;;
 
19682
 
 
19683
cygwin* | mingw* | pw32* | cegcc*)
 
19684
  version_type=windows
 
19685
  shrext_cmds=".dll"
 
19686
  need_version=no
 
19687
  need_lib_prefix=no
 
19688
 
 
19689
  case $GCC,$host_os in
 
19690
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
19691
    library_names_spec='$libname.dll.a'
 
19692
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19693
    postinstall_cmds='base_file=`basename \${file}`~
 
19694
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
19695
      dldir=$destdir/`dirname \$dlpath`~
 
19696
      test -d \$dldir || mkdir -p \$dldir~
 
19697
      $install_prog $dir/$dlname \$dldir/$dlname~
 
19698
      chmod a+x \$dldir/$dlname~
 
19699
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
19700
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
19701
      fi'
 
19702
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19703
      dlpath=$dir/\$dldll~
 
19704
       $RM \$dlpath'
 
19705
    shlibpath_overrides_runpath=yes
 
19706
 
 
19707
    case $host_os in
 
19708
    cygwin*)
 
19709
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19710
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19711
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19712
      ;;
 
19713
    mingw* | cegcc*)
 
19714
      # MinGW DLLs use traditional 'lib' prefix
 
19715
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19716
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19717
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
19718
        # It is most probably a Windows format PATH printed by
 
19719
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19720
        # path with ; separators, and with drive letters. We can handle the
 
19721
        # drive letters (cygwin fileutils understands them), so leave them,
 
19722
        # especially as we might pass files found there to a mingw objdump,
 
19723
        # which wouldn't understand a cygwinified path. Ahh.
 
19724
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19725
      else
 
19726
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19727
      fi
 
19728
      ;;
 
19729
    pw32*)
 
19730
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19731
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19732
      ;;
 
19733
    esac
 
19734
    ;;
 
19735
 
 
19736
  *)
 
19737
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19738
    ;;
 
19739
  esac
 
19740
  dynamic_linker='Win32 ld.exe'
 
19741
  # FIXME: first we should search . and the directory the executable is in
 
19742
  shlibpath_var=PATH
 
19743
  ;;
 
19744
 
 
19745
darwin* | rhapsody*)
 
19746
  dynamic_linker="$host_os dyld"
 
19747
  version_type=darwin
 
19748
  need_lib_prefix=no
 
19749
  need_version=no
 
19750
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19751
  soname_spec='${libname}${release}${major}$shared_ext'
 
19752
  shlibpath_overrides_runpath=yes
 
19753
  shlibpath_var=DYLD_LIBRARY_PATH
 
19754
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
19755
 
 
19756
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19757
  ;;
 
19758
 
 
19759
dgux*)
 
19760
  version_type=linux
 
19761
  need_lib_prefix=no
 
19762
  need_version=no
 
19763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19764
  soname_spec='${libname}${release}${shared_ext}$major'
 
19765
  shlibpath_var=LD_LIBRARY_PATH
 
19766
  ;;
 
19767
 
 
19768
freebsd1*)
 
19769
  dynamic_linker=no
 
19770
  ;;
 
19771
 
 
19772
freebsd* | dragonfly*)
 
19773
  # DragonFly does not have aout.  When/if they implement a new
 
19774
  # versioning mechanism, adjust this.
 
19775
  if test -x /usr/bin/objformat; then
 
19776
    objformat=`/usr/bin/objformat`
 
19777
  else
 
19778
    case $host_os in
 
19779
    freebsd[123]*) objformat=aout ;;
 
19780
    *) objformat=elf ;;
 
19781
    esac
 
19782
  fi
 
19783
  version_type=freebsd-$objformat
 
19784
  case $version_type in
 
19785
    freebsd-elf*)
 
19786
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19787
      need_version=no
 
19788
      need_lib_prefix=no
 
19789
      ;;
 
19790
    freebsd-*)
 
19791
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19792
      need_version=yes
 
19793
      ;;
 
19794
  esac
 
19795
  shlibpath_var=LD_LIBRARY_PATH
 
19796
  case $host_os in
 
19797
  freebsd2*)
 
19798
    shlibpath_overrides_runpath=yes
 
19799
    ;;
 
19800
  freebsd3.[01]* | freebsdelf3.[01]*)
 
19801
    shlibpath_overrides_runpath=yes
 
19802
    hardcode_into_libs=yes
 
19803
    ;;
 
19804
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
19805
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
19806
    shlibpath_overrides_runpath=no
 
19807
    hardcode_into_libs=yes
 
19808
    ;;
 
19809
  *) # from 4.6 on, and DragonFly
 
19810
    shlibpath_overrides_runpath=yes
 
19811
    hardcode_into_libs=yes
 
19812
    ;;
 
19813
  esac
 
19814
  ;;
 
19815
 
 
19816
gnu*)
 
19817
  version_type=linux
 
19818
  need_lib_prefix=no
 
19819
  need_version=no
 
19820
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19821
  soname_spec='${libname}${release}${shared_ext}$major'
 
19822
  shlibpath_var=LD_LIBRARY_PATH
 
19823
  hardcode_into_libs=yes
 
19824
  ;;
 
19825
 
 
19826
hpux9* | hpux10* | hpux11*)
 
19827
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19828
  # link against other versions.
 
19829
  version_type=sunos
 
19830
  need_lib_prefix=no
 
19831
  need_version=no
 
19832
  case $host_cpu in
 
19833
  ia64*)
 
19834
    shrext_cmds='.so'
 
19835
    hardcode_into_libs=yes
 
19836
    dynamic_linker="$host_os dld.so"
 
19837
    shlibpath_var=LD_LIBRARY_PATH
 
19838
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19839
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19840
    soname_spec='${libname}${release}${shared_ext}$major'
 
19841
    if test "X$HPUX_IA64_MODE" = X32; then
 
19842
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19843
    else
 
19844
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19845
    fi
 
19846
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19847
    ;;
 
19848
  hppa*64*)
 
19849
    shrext_cmds='.sl'
 
19850
    hardcode_into_libs=yes
 
19851
    dynamic_linker="$host_os dld.sl"
 
19852
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19853
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19854
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19855
    soname_spec='${libname}${release}${shared_ext}$major'
 
19856
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19857
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19858
    ;;
 
19859
  *)
 
19860
    shrext_cmds='.sl'
 
19861
    dynamic_linker="$host_os dld.sl"
 
19862
    shlibpath_var=SHLIB_PATH
 
19863
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19864
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19865
    soname_spec='${libname}${release}${shared_ext}$major'
 
19866
    ;;
 
19867
  esac
 
19868
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19869
  postinstall_cmds='chmod 555 $lib'
 
19870
  ;;
 
19871
 
 
19872
interix[3-9]*)
 
19873
  version_type=linux
 
19874
  need_lib_prefix=no
 
19875
  need_version=no
 
19876
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19877
  soname_spec='${libname}${release}${shared_ext}$major'
 
19878
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
19879
  shlibpath_var=LD_LIBRARY_PATH
 
19880
  shlibpath_overrides_runpath=no
 
19881
  hardcode_into_libs=yes
 
19882
  ;;
 
19883
 
 
19884
irix5* | irix6* | nonstopux*)
 
19885
  case $host_os in
 
19886
    nonstopux*) version_type=nonstopux ;;
 
19887
    *)
 
19888
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19889
                version_type=linux
 
19890
        else
 
19891
                version_type=irix
 
19892
        fi ;;
 
19893
  esac
 
19894
  need_lib_prefix=no
 
19895
  need_version=no
 
19896
  soname_spec='${libname}${release}${shared_ext}$major'
 
19897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19898
  case $host_os in
 
19899
  irix5* | nonstopux*)
 
19900
    libsuff= shlibsuff=
 
19901
    ;;
 
19902
  *)
 
19903
    case $LD in # libtool.m4 will add one of these switches to LD
 
19904
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19905
      libsuff= shlibsuff= libmagic=32-bit;;
 
19906
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19907
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19908
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19909
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19910
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19911
    esac
 
19912
    ;;
 
19913
  esac
 
19914
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19915
  shlibpath_overrides_runpath=no
 
19916
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19917
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19918
  hardcode_into_libs=yes
 
19919
  ;;
 
19920
 
 
19921
# No shared lib support for Linux oldld, aout, or coff.
 
19922
linux*oldld* | linux*aout* | linux*coff*)
 
19923
  dynamic_linker=no
 
19924
  ;;
 
19925
 
 
19926
# This must be Linux ELF.
 
19927
linux* | k*bsd*-gnu)
 
19928
  version_type=linux
 
19929
  need_lib_prefix=no
 
19930
  need_version=no
 
19931
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19932
  soname_spec='${libname}${release}${shared_ext}$major'
 
19933
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19934
  shlibpath_var=LD_LIBRARY_PATH
 
19935
  shlibpath_overrides_runpath=no
 
19936
  # Some binutils ld are patched to set DT_RUNPATH
 
19937
  save_LDFLAGS=$LDFLAGS
 
19938
  save_libdir=$libdir
 
19939
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
19940
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
19941
  cat >conftest.$ac_ext <<_ACEOF
 
19942
/* confdefs.h.  */
 
19943
_ACEOF
 
19944
cat confdefs.h >>conftest.$ac_ext
 
19945
cat >>conftest.$ac_ext <<_ACEOF
 
19946
/* end confdefs.h.  */
 
19947
 
 
19948
int
 
19949
main ()
 
19950
{
 
19951
 
 
19952
  ;
 
19953
  return 0;
 
19954
}
 
19955
_ACEOF
 
19956
rm -f conftest.$ac_objext conftest$ac_exeext
 
19957
if { (ac_try="$ac_link"
 
19958
case "(($ac_try" in
 
19959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19960
  *) ac_try_echo=$ac_try;;
 
19961
esac
 
19962
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19963
$as_echo "$ac_try_echo") >&5
 
19964
  (eval "$ac_link") 2>conftest.er1
 
19965
  ac_status=$?
 
19966
  grep -v '^ *+' conftest.er1 >conftest.err
 
19967
  rm -f conftest.er1
 
19968
  cat conftest.err >&5
 
19969
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19970
  (exit $ac_status); } && {
 
19971
         test -z "$ac_cxx_werror_flag" ||
 
19972
         test ! -s conftest.err
 
19973
       } && test -s conftest$ac_exeext && {
 
19974
         test "$cross_compiling" = yes ||
 
19975
         $as_test_x conftest$ac_exeext
 
19976
       }; then
 
19977
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
19978
  shlibpath_overrides_runpath=yes
 
19979
fi
 
19980
 
 
19981
else
 
19982
  $as_echo "$as_me: failed program was:" >&5
 
19983
sed 's/^/| /' conftest.$ac_ext >&5
 
19984
 
 
19985
 
 
19986
fi
 
19987
 
 
19988
rm -rf conftest.dSYM
 
19989
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19990
      conftest$ac_exeext conftest.$ac_ext
 
19991
  LDFLAGS=$save_LDFLAGS
 
19992
  libdir=$save_libdir
 
19993
 
 
19994
  # This implies no fast_install, which is unacceptable.
 
19995
  # Some rework will be needed to allow for fast_install
 
19996
  # before this can be enabled.
 
19997
  hardcode_into_libs=yes
 
19998
 
 
19999
  # Add ABI-specific directories to the system library path.
 
20000
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
20001
 
 
20002
  # Append ld.so.conf contents to the search path
 
20003
  if test -f /etc/ld.so.conf; then
 
20004
    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' ' '`
 
20005
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
20006
  fi
 
20007
 
 
20008
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
20009
  # powerpc, because MkLinux only supported shared libraries with the
 
20010
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
20011
  # most powerpc-linux boxes support dynamic linking these days and
 
20012
  # people can always --disable-shared, the test was removed, and we
 
20013
  # assume the GNU/Linux dynamic linker is in use.
 
20014
  dynamic_linker='GNU/Linux ld.so'
 
20015
  ;;
 
20016
 
 
20017
netbsd*)
 
20018
  version_type=sunos
 
20019
  need_lib_prefix=no
 
20020
  need_version=no
 
20021
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
20022
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20023
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
20024
    dynamic_linker='NetBSD (a.out) ld.so'
 
20025
  else
 
20026
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
20027
    soname_spec='${libname}${release}${shared_ext}$major'
 
20028
    dynamic_linker='NetBSD ld.elf_so'
 
20029
  fi
 
20030
  shlibpath_var=LD_LIBRARY_PATH
 
20031
  shlibpath_overrides_runpath=yes
 
20032
  hardcode_into_libs=yes
 
20033
  ;;
 
20034
 
 
20035
newsos6)
 
20036
  version_type=linux
 
20037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20038
  shlibpath_var=LD_LIBRARY_PATH
 
20039
  shlibpath_overrides_runpath=yes
 
20040
  ;;
 
20041
 
 
20042
*nto* | *qnx*)
 
20043
  version_type=qnx
 
20044
  need_lib_prefix=no
 
20045
  need_version=no
 
20046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20047
  soname_spec='${libname}${release}${shared_ext}$major'
 
20048
  shlibpath_var=LD_LIBRARY_PATH
 
20049
  shlibpath_overrides_runpath=no
 
20050
  hardcode_into_libs=yes
 
20051
  dynamic_linker='ldqnx.so'
 
20052
  ;;
 
20053
 
 
20054
openbsd*)
 
20055
  version_type=sunos
 
20056
  sys_lib_dlsearch_path_spec="/usr/lib"
 
20057
  need_lib_prefix=no
 
20058
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
20059
  case $host_os in
 
20060
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
20061
    *)                          need_version=no  ;;
 
20062
  esac
 
20063
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20064
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
20065
  shlibpath_var=LD_LIBRARY_PATH
 
20066
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
20067
    case $host_os in
 
20068
      openbsd2.[89] | openbsd2.[89].*)
 
20069
        shlibpath_overrides_runpath=no
 
20070
        ;;
 
20071
      *)
 
20072
        shlibpath_overrides_runpath=yes
 
20073
        ;;
 
20074
      esac
 
20075
  else
 
20076
    shlibpath_overrides_runpath=yes
 
20077
  fi
 
20078
  ;;
 
20079
 
 
20080
os2*)
 
20081
  libname_spec='$name'
 
20082
  shrext_cmds=".dll"
 
20083
  need_lib_prefix=no
 
20084
  library_names_spec='$libname${shared_ext} $libname.a'
 
20085
  dynamic_linker='OS/2 ld.exe'
 
20086
  shlibpath_var=LIBPATH
 
20087
  ;;
 
20088
 
 
20089
osf3* | osf4* | osf5*)
 
20090
  version_type=osf
 
20091
  need_lib_prefix=no
 
20092
  need_version=no
 
20093
  soname_spec='${libname}${release}${shared_ext}$major'
 
20094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20095
  shlibpath_var=LD_LIBRARY_PATH
 
20096
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
20097
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
20098
  ;;
 
20099
 
 
20100
rdos*)
 
20101
  dynamic_linker=no
 
20102
  ;;
 
20103
 
 
20104
solaris*)
 
20105
  version_type=linux
 
20106
  need_lib_prefix=no
 
20107
  need_version=no
 
20108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20109
  soname_spec='${libname}${release}${shared_ext}$major'
 
20110
  shlibpath_var=LD_LIBRARY_PATH
 
20111
  shlibpath_overrides_runpath=yes
 
20112
  hardcode_into_libs=yes
 
20113
  # ldd complains unless libraries are executable
 
20114
  postinstall_cmds='chmod +x $lib'
 
20115
  ;;
 
20116
 
 
20117
sunos4*)
 
20118
  version_type=sunos
 
20119
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20120
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
20121
  shlibpath_var=LD_LIBRARY_PATH
 
20122
  shlibpath_overrides_runpath=yes
 
20123
  if test "$with_gnu_ld" = yes; then
 
20124
    need_lib_prefix=no
 
20125
  fi
 
20126
  need_version=yes
 
20127
  ;;
 
20128
 
 
20129
sysv4 | sysv4.3*)
 
20130
  version_type=linux
 
20131
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20132
  soname_spec='${libname}${release}${shared_ext}$major'
 
20133
  shlibpath_var=LD_LIBRARY_PATH
 
20134
  case $host_vendor in
 
20135
    sni)
 
20136
      shlibpath_overrides_runpath=no
 
20137
      need_lib_prefix=no
 
20138
      runpath_var=LD_RUN_PATH
 
20139
      ;;
 
20140
    siemens)
 
20141
      need_lib_prefix=no
 
20142
      ;;
 
20143
    motorola)
 
20144
      need_lib_prefix=no
 
20145
      need_version=no
 
20146
      shlibpath_overrides_runpath=no
 
20147
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
20148
      ;;
 
20149
  esac
 
20150
  ;;
 
20151
 
 
20152
sysv4*MP*)
 
20153
  if test -d /usr/nec ;then
 
20154
    version_type=linux
 
20155
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
20156
    soname_spec='$libname${shared_ext}.$major'
 
20157
    shlibpath_var=LD_LIBRARY_PATH
 
20158
  fi
 
20159
  ;;
 
20160
 
 
20161
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
20162
  version_type=freebsd-elf
 
20163
  need_lib_prefix=no
 
20164
  need_version=no
 
20165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
20166
  soname_spec='${libname}${release}${shared_ext}$major'
 
20167
  shlibpath_var=LD_LIBRARY_PATH
 
20168
  shlibpath_overrides_runpath=yes
 
20169
  hardcode_into_libs=yes
 
20170
  if test "$with_gnu_ld" = yes; then
 
20171
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
20172
  else
 
20173
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
20174
    case $host_os in
 
20175
      sco3.2v5*)
 
20176
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
20177
        ;;
 
20178
    esac
 
20179
  fi
 
20180
  sys_lib_dlsearch_path_spec='/usr/lib'
 
20181
  ;;
 
20182
 
 
20183
tpf*)
 
20184
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
20185
  version_type=linux
 
20186
  need_lib_prefix=no
 
20187
  need_version=no
 
20188
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20189
  shlibpath_var=LD_LIBRARY_PATH
 
20190
  shlibpath_overrides_runpath=no
 
20191
  hardcode_into_libs=yes
 
20192
  ;;
 
20193
 
 
20194
uts4*)
 
20195
  version_type=linux
 
20196
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20197
  soname_spec='${libname}${release}${shared_ext}$major'
 
20198
  shlibpath_var=LD_LIBRARY_PATH
 
20199
  ;;
 
20200
 
 
20201
*)
 
20202
  dynamic_linker=no
 
20203
  ;;
 
20204
esac
 
20205
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
20206
$as_echo "$dynamic_linker" >&6; }
 
20207
test "$dynamic_linker" = no && can_build_shared=no
 
20208
 
 
20209
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
20210
if test "$GCC" = yes; then
 
20211
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
20212
fi
 
20213
 
 
20214
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
20215
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
20216
fi
 
20217
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
20218
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
20219
fi
 
20220
 
 
20221
 
 
20222
 
 
20223
 
 
20224
 
 
20225
 
 
20226
 
 
20227
 
 
20228
 
 
20229
 
 
20230
 
 
20231
 
 
20232
 
 
20233
 
 
20234
 
 
20235
 
 
20236
 
 
20237
 
 
20238
 
 
20239
 
 
20240
 
 
20241
 
 
20242
 
 
20243
 
 
20244
 
 
20245
 
 
20246
 
 
20247
 
 
20248
 
 
20249
 
 
20250
 
 
20251
 
 
20252
 
 
20253
 
 
20254
 
 
20255
 
 
20256
    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
20257
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
20258
hardcode_action_CXX=
 
20259
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
20260
   test -n "$runpath_var_CXX" ||
 
20261
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
20262
 
 
20263
  # We can hardcode non-existent directories.
 
20264
  if test "$hardcode_direct_CXX" != no &&
 
20265
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
20266
     # have to relink, otherwise we might link with an installed library
 
20267
     # when we should be linking with a yet-to-be-installed one
 
20268
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
20269
     test "$hardcode_minus_L_CXX" != no; then
 
20270
    # Linking always hardcodes the temporary library directory.
 
20271
    hardcode_action_CXX=relink
 
20272
  else
 
20273
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
20274
    hardcode_action_CXX=immediate
 
20275
  fi
 
20276
else
 
20277
  # We cannot hardcode anything, or else we can only hardcode existing
 
20278
  # directories.
 
20279
  hardcode_action_CXX=unsupported
 
20280
fi
 
20281
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
20282
$as_echo "$hardcode_action_CXX" >&6; }
 
20283
 
 
20284
if test "$hardcode_action_CXX" = relink ||
 
20285
   test "$inherit_rpath_CXX" = yes; then
 
20286
  # Fast installation is not supported
 
20287
  enable_fast_install=no
 
20288
elif test "$shlibpath_overrides_runpath" = yes ||
 
20289
     test "$enable_shared" = no; then
 
20290
  # Fast installation is not necessary
 
20291
  enable_fast_install=needless
 
20292
fi
 
20293
 
 
20294
 
 
20295
 
 
20296
 
 
20297
 
 
20298
 
 
20299
 
 
20300
  fi # test -n "$compiler"
 
20301
 
 
20302
  CC=$lt_save_CC
 
20303
  LDCXX=$LD
 
20304
  LD=$lt_save_LD
 
20305
  GCC=$lt_save_GCC
 
20306
  with_gnu_ld=$lt_save_with_gnu_ld
 
20307
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
20308
  lt_cv_path_LD=$lt_save_path_LD
 
20309
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
20310
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
20311
fi # test "$_lt_caught_CXX_error" != yes
 
20312
 
 
20313
ac_ext=c
 
20314
ac_cpp='$CPP $CPPFLAGS'
 
20315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20318
 
 
20319
 
 
20320
 
 
20321
 
 
20322
 
 
20323
 
 
20324
 
 
20325
 
 
20326
 
 
20327
 
 
20328
 
 
20329
 
 
20330
 
 
20331
        ac_config_commands="$ac_config_commands libtool"
 
20332
 
 
20333
 
 
20334
 
 
20335
 
 
20336
# Only expand once:
 
20337
 
 
20338
 
 
20339
 
 
20340
# Check whether --enable-ltdl was given.
 
20341
if test "${enable_ltdl+set}" = set; then
 
20342
  enableval=$enable_ltdl;
 
20343
fi
 
20344
 
 
20345
if test "x$enable_ltdl" != "xno"; then
 
20346
 
 
20347
cat >>confdefs.h <<\_ACEOF
 
20348
#define ENABLE_LTDL 1
 
20349
_ACEOF
 
20350
 
 
20351
  enable_dlopen=yes
 
20352
 
 
20353
 
 
20354
 
 
20355
 #code that is for Libtool 2.x
 
20356
 
 
20357
 
 
20358
 
 
20359
 
 
20360
 
 
20361
 
 
20362
 
 
20363
 
 
20364
  { $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
 
20365
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
 
20366
if test "${libltdl_cv_shlibext+set}" = set; then
 
20367
  $as_echo_n "(cached) " >&6
 
20368
else
 
20369
 
 
20370
module=yes
 
20371
eval libltdl_cv_shlibext=$shrext_cmds
 
20372
 
 
20373
fi
 
20374
{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
 
20375
$as_echo "$libltdl_cv_shlibext" >&6; }
 
20376
if test -n "$libltdl_cv_shlibext"; then
 
20377
 
 
20378
cat >>confdefs.h <<_ACEOF
 
20379
#define LT_MODULE_EXT "$libltdl_cv_shlibext"
 
20380
_ACEOF
 
20381
 
 
20382
fi
 
20383
 
 
20384
{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
 
20385
$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
 
20386
if test "${lt_cv_module_path_var+set}" = set; then
 
20387
  $as_echo_n "(cached) " >&6
 
20388
else
 
20389
  lt_cv_module_path_var="$shlibpath_var"
 
20390
fi
 
20391
{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
 
20392
$as_echo "$lt_cv_module_path_var" >&6; }
 
20393
if test -n "$lt_cv_module_path_var"; then
 
20394
 
 
20395
cat >>confdefs.h <<_ACEOF
 
20396
#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
 
20397
_ACEOF
 
20398
 
 
20399
fi
 
20400
 
 
20401
{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
 
20402
$as_echo_n "checking for the default library search path... " >&6; }
 
20403
if test "${lt_cv_sys_dlsearch_path+set}" = set; then
 
20404
  $as_echo_n "(cached) " >&6
 
20405
else
 
20406
  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
 
20407
fi
 
20408
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
 
20409
$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
 
20410
if test -n "$lt_cv_sys_dlsearch_path"; then
 
20411
  sys_dlsearch_path=
 
20412
  for dir in $lt_cv_sys_dlsearch_path; do
 
20413
    if test -z "$sys_dlsearch_path"; then
 
20414
      sys_dlsearch_path="$dir"
 
20415
    else
 
20416
      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
 
20417
    fi
 
20418
  done
 
20419
 
 
20420
cat >>confdefs.h <<_ACEOF
 
20421
#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
 
20422
_ACEOF
 
20423
 
 
20424
fi
 
20425
 
 
20426
 
 
20427
LT_DLLOADERS=
 
20428
 
 
20429
 
 
20430
ac_ext=c
 
20431
ac_cpp='$CPP $CPPFLAGS'
 
20432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20435
 
 
20436
 
 
20437
LIBADD_DLOPEN=
 
20438
{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
 
20439
$as_echo_n "checking for library containing dlopen... " >&6; }
 
20440
if test "${ac_cv_search_dlopen+set}" = set; then
 
20441
  $as_echo_n "(cached) " >&6
 
20442
else
 
20443
  ac_func_search_save_LIBS=$LIBS
 
20444
cat >conftest.$ac_ext <<_ACEOF
 
20445
/* confdefs.h.  */
 
20446
_ACEOF
 
20447
cat confdefs.h >>conftest.$ac_ext
 
20448
cat >>conftest.$ac_ext <<_ACEOF
 
20449
/* end confdefs.h.  */
 
20450
 
 
20451
/* Override any GCC internal prototype to avoid an error.
 
20452
   Use char because int might match the return type of a GCC
 
20453
   builtin and then its argument prototype would still apply.  */
 
20454
#ifdef __cplusplus
 
20455
extern "C"
 
20456
#endif
 
20457
char dlopen ();
 
20458
int
 
20459
main ()
 
20460
{
 
20461
return dlopen ();
 
20462
  ;
 
20463
  return 0;
 
20464
}
 
20465
_ACEOF
 
20466
for ac_lib in '' dl; do
 
20467
  if test -z "$ac_lib"; then
 
20468
    ac_res="none required"
 
20469
  else
 
20470
    ac_res=-l$ac_lib
 
20471
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20472
  fi
 
20473
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20474
if { (ac_try="$ac_link"
 
20475
case "(($ac_try" in
 
20476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20477
  *) ac_try_echo=$ac_try;;
 
20478
esac
 
20479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20480
$as_echo "$ac_try_echo") >&5
 
20481
  (eval "$ac_link") 2>conftest.er1
 
20482
  ac_status=$?
 
20483
  grep -v '^ *+' conftest.er1 >conftest.err
 
20484
  rm -f conftest.er1
 
20485
  cat conftest.err >&5
 
20486
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20487
  (exit $ac_status); } && {
 
20488
         test -z "$ac_c_werror_flag" ||
 
20489
         test ! -s conftest.err
 
20490
       } && test -s conftest$ac_exeext && {
 
20491
         test "$cross_compiling" = yes ||
 
20492
         $as_test_x conftest$ac_exeext
 
20493
       }; then
 
20494
  ac_cv_search_dlopen=$ac_res
 
20495
else
 
20496
  $as_echo "$as_me: failed program was:" >&5
 
20497
sed 's/^/| /' conftest.$ac_ext >&5
 
20498
 
 
20499
 
 
20500
fi
 
20501
 
 
20502
rm -rf conftest.dSYM
 
20503
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20504
      conftest$ac_exeext
 
20505
  if test "${ac_cv_search_dlopen+set}" = set; then
 
20506
  break
 
20507
fi
 
20508
done
 
20509
if test "${ac_cv_search_dlopen+set}" = set; then
 
20510
  :
 
20511
else
 
20512
  ac_cv_search_dlopen=no
 
20513
fi
 
20514
rm conftest.$ac_ext
 
20515
LIBS=$ac_func_search_save_LIBS
 
20516
fi
 
20517
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 
20518
$as_echo "$ac_cv_search_dlopen" >&6; }
 
20519
ac_res=$ac_cv_search_dlopen
 
20520
if test "$ac_res" != no; then
 
20521
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20522
 
 
20523
cat >>confdefs.h <<\_ACEOF
 
20524
#define HAVE_LIBDL 1
 
20525
_ACEOF
 
20526
 
 
20527
        if test "$ac_cv_search_dlopen" != "none required" ; then
 
20528
          LIBADD_DLOPEN="-ldl"
 
20529
        fi
 
20530
        libltdl_cv_lib_dl_dlopen="yes"
 
20531
        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
 
20532
else
 
20533
  cat >conftest.$ac_ext <<_ACEOF
 
20534
/* confdefs.h.  */
 
20535
_ACEOF
 
20536
cat confdefs.h >>conftest.$ac_ext
 
20537
cat >>conftest.$ac_ext <<_ACEOF
 
20538
/* end confdefs.h.  */
 
20539
#if HAVE_DLFCN_H
 
20540
#  include <dlfcn.h>
 
20541
#endif
 
20542
 
 
20543
int
 
20544
main ()
 
20545
{
 
20546
dlopen(0, 0);
 
20547
  ;
 
20548
  return 0;
 
20549
}
 
20550
_ACEOF
 
20551
rm -f conftest.$ac_objext conftest$ac_exeext
 
20552
if { (ac_try="$ac_link"
 
20553
case "(($ac_try" in
 
20554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20555
  *) ac_try_echo=$ac_try;;
 
20556
esac
 
20557
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20558
$as_echo "$ac_try_echo") >&5
 
20559
  (eval "$ac_link") 2>conftest.er1
 
20560
  ac_status=$?
 
20561
  grep -v '^ *+' conftest.er1 >conftest.err
 
20562
  rm -f conftest.er1
 
20563
  cat conftest.err >&5
 
20564
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20565
  (exit $ac_status); } && {
 
20566
         test -z "$ac_c_werror_flag" ||
 
20567
         test ! -s conftest.err
 
20568
       } && test -s conftest$ac_exeext && {
 
20569
         test "$cross_compiling" = yes ||
 
20570
         $as_test_x conftest$ac_exeext
 
20571
       }; then
 
20572
 
 
20573
cat >>confdefs.h <<\_ACEOF
 
20574
#define HAVE_LIBDL 1
 
20575
_ACEOF
 
20576
 
 
20577
            libltdl_cv_func_dlopen="yes"
 
20578
            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
 
20579
else
 
20580
  $as_echo "$as_me: failed program was:" >&5
 
20581
sed 's/^/| /' conftest.$ac_ext >&5
 
20582
 
 
20583
        { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
20584
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
20585
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
20586
  $as_echo_n "(cached) " >&6
 
20587
else
 
20588
  ac_check_lib_save_LIBS=$LIBS
 
20589
LIBS="-lsvld  $LIBS"
 
20590
cat >conftest.$ac_ext <<_ACEOF
 
20591
/* confdefs.h.  */
 
20592
_ACEOF
 
20593
cat confdefs.h >>conftest.$ac_ext
 
20594
cat >>conftest.$ac_ext <<_ACEOF
 
20595
/* end confdefs.h.  */
 
20596
 
 
20597
/* Override any GCC internal prototype to avoid an error.
 
20598
   Use char because int might match the return type of a GCC
 
20599
   builtin and then its argument prototype would still apply.  */
 
20600
#ifdef __cplusplus
 
20601
extern "C"
 
20602
#endif
 
20603
char dlopen ();
 
20604
int
 
20605
main ()
 
20606
{
 
20607
return dlopen ();
 
20608
  ;
 
20609
  return 0;
 
20610
}
 
20611
_ACEOF
 
20612
rm -f conftest.$ac_objext conftest$ac_exeext
 
20613
if { (ac_try="$ac_link"
 
20614
case "(($ac_try" in
 
20615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20616
  *) ac_try_echo=$ac_try;;
 
20617
esac
 
20618
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20619
$as_echo "$ac_try_echo") >&5
 
20620
  (eval "$ac_link") 2>conftest.er1
 
20621
  ac_status=$?
 
20622
  grep -v '^ *+' conftest.er1 >conftest.err
 
20623
  rm -f conftest.er1
 
20624
  cat conftest.err >&5
 
20625
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20626
  (exit $ac_status); } && {
 
20627
         test -z "$ac_c_werror_flag" ||
 
20628
         test ! -s conftest.err
 
20629
       } && test -s conftest$ac_exeext && {
 
20630
         test "$cross_compiling" = yes ||
 
20631
         $as_test_x conftest$ac_exeext
 
20632
       }; then
 
20633
  ac_cv_lib_svld_dlopen=yes
 
20634
else
 
20635
  $as_echo "$as_me: failed program was:" >&5
 
20636
sed 's/^/| /' conftest.$ac_ext >&5
 
20637
 
 
20638
        ac_cv_lib_svld_dlopen=no
 
20639
fi
 
20640
 
 
20641
rm -rf conftest.dSYM
 
20642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20643
      conftest$ac_exeext conftest.$ac_ext
 
20644
LIBS=$ac_check_lib_save_LIBS
 
20645
fi
 
20646
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
20647
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
20648
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
20649
 
 
20650
cat >>confdefs.h <<\_ACEOF
 
20651
#define HAVE_LIBDL 1
 
20652
_ACEOF
 
20653
 
 
20654
                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
 
20655
                LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
 
20656
fi
 
20657
 
 
20658
fi
 
20659
 
 
20660
rm -rf conftest.dSYM
 
20661
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20662
      conftest$ac_exeext conftest.$ac_ext
 
20663
fi
 
20664
 
 
20665
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
 
20666
then
 
20667
  lt_save_LIBS="$LIBS"
 
20668
  LIBS="$LIBS $LIBADD_DLOPEN"
 
20669
 
 
20670
for ac_func in dlerror
 
20671
do
 
20672
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20673
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20674
$as_echo_n "checking for $ac_func... " >&6; }
 
20675
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
20676
  $as_echo_n "(cached) " >&6
 
20677
else
 
20678
  cat >conftest.$ac_ext <<_ACEOF
 
20679
/* confdefs.h.  */
 
20680
_ACEOF
 
20681
cat confdefs.h >>conftest.$ac_ext
 
20682
cat >>conftest.$ac_ext <<_ACEOF
 
20683
/* end confdefs.h.  */
 
20684
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20685
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20686
#define $ac_func innocuous_$ac_func
 
20687
 
 
20688
/* System header to define __stub macros and hopefully few prototypes,
 
20689
    which can conflict with char $ac_func (); below.
 
20690
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20691
    <limits.h> exists even on freestanding compilers.  */
 
20692
 
 
20693
#ifdef __STDC__
 
20694
# include <limits.h>
 
20695
#else
 
20696
# include <assert.h>
 
20697
#endif
 
20698
 
 
20699
#undef $ac_func
 
20700
 
 
20701
/* Override any GCC internal prototype to avoid an error.
 
20702
   Use char because int might match the return type of a GCC
 
20703
   builtin and then its argument prototype would still apply.  */
 
20704
#ifdef __cplusplus
 
20705
extern "C"
 
20706
#endif
 
20707
char $ac_func ();
 
20708
/* The GNU C library defines this for functions which it implements
 
20709
    to always fail with ENOSYS.  Some functions are actually named
 
20710
    something starting with __ and the normal name is an alias.  */
 
20711
#if defined __stub_$ac_func || defined __stub___$ac_func
 
20712
choke me
 
20713
#endif
 
20714
 
 
20715
int
 
20716
main ()
 
20717
{
 
20718
return $ac_func ();
 
20719
  ;
 
20720
  return 0;
 
20721
}
 
20722
_ACEOF
 
20723
rm -f conftest.$ac_objext conftest$ac_exeext
 
20724
if { (ac_try="$ac_link"
 
20725
case "(($ac_try" in
 
20726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20727
  *) ac_try_echo=$ac_try;;
 
20728
esac
 
20729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20730
$as_echo "$ac_try_echo") >&5
 
20731
  (eval "$ac_link") 2>conftest.er1
 
20732
  ac_status=$?
 
20733
  grep -v '^ *+' conftest.er1 >conftest.err
 
20734
  rm -f conftest.er1
 
20735
  cat conftest.err >&5
 
20736
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20737
  (exit $ac_status); } && {
 
20738
         test -z "$ac_c_werror_flag" ||
 
20739
         test ! -s conftest.err
 
20740
       } && test -s conftest$ac_exeext && {
 
20741
         test "$cross_compiling" = yes ||
 
20742
         $as_test_x conftest$ac_exeext
 
20743
       }; then
 
20744
  eval "$as_ac_var=yes"
 
20745
else
 
20746
  $as_echo "$as_me: failed program was:" >&5
 
20747
sed 's/^/| /' conftest.$ac_ext >&5
 
20748
 
 
20749
        eval "$as_ac_var=no"
 
20750
fi
 
20751
 
 
20752
rm -rf conftest.dSYM
 
20753
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20754
      conftest$ac_exeext conftest.$ac_ext
 
20755
fi
 
20756
ac_res=`eval 'as_val=${'$as_ac_var'}
 
20757
                 $as_echo "$as_val"'`
 
20758
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20759
$as_echo "$ac_res" >&6; }
 
20760
as_val=`eval 'as_val=${'$as_ac_var'}
 
20761
                 $as_echo "$as_val"'`
 
20762
   if test "x$as_val" = x""yes; then
 
20763
  cat >>confdefs.h <<_ACEOF
 
20764
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20765
_ACEOF
 
20766
 
 
20767
fi
 
20768
done
 
20769
 
 
20770
  LIBS="$lt_save_LIBS"
 
20771
fi
 
20772
 
 
20773
 
 
20774
LIBADD_SHL_LOAD=
 
20775
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
20776
$as_echo_n "checking for shl_load... " >&6; }
 
20777
if test "${ac_cv_func_shl_load+set}" = set; then
 
20778
  $as_echo_n "(cached) " >&6
 
20779
else
 
20780
  cat >conftest.$ac_ext <<_ACEOF
 
20781
/* confdefs.h.  */
 
20782
_ACEOF
 
20783
cat confdefs.h >>conftest.$ac_ext
 
20784
cat >>conftest.$ac_ext <<_ACEOF
 
20785
/* end confdefs.h.  */
 
20786
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
20787
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20788
#define shl_load innocuous_shl_load
 
20789
 
 
20790
/* System header to define __stub macros and hopefully few prototypes,
 
20791
    which can conflict with char shl_load (); below.
 
20792
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20793
    <limits.h> exists even on freestanding compilers.  */
 
20794
 
 
20795
#ifdef __STDC__
 
20796
# include <limits.h>
 
20797
#else
 
20798
# include <assert.h>
 
20799
#endif
 
20800
 
 
20801
#undef shl_load
 
20802
 
 
20803
/* Override any GCC internal prototype to avoid an error.
 
20804
   Use char because int might match the return type of a GCC
 
20805
   builtin and then its argument prototype would still apply.  */
 
20806
#ifdef __cplusplus
 
20807
extern "C"
 
20808
#endif
 
20809
char shl_load ();
 
20810
/* The GNU C library defines this for functions which it implements
 
20811
    to always fail with ENOSYS.  Some functions are actually named
 
20812
    something starting with __ and the normal name is an alias.  */
 
20813
#if defined __stub_shl_load || defined __stub___shl_load
 
20814
choke me
 
20815
#endif
 
20816
 
 
20817
int
 
20818
main ()
 
20819
{
 
20820
return shl_load ();
 
20821
  ;
 
20822
  return 0;
 
20823
}
 
20824
_ACEOF
 
20825
rm -f conftest.$ac_objext conftest$ac_exeext
 
20826
if { (ac_try="$ac_link"
 
20827
case "(($ac_try" in
 
20828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20829
  *) ac_try_echo=$ac_try;;
 
20830
esac
 
20831
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20832
$as_echo "$ac_try_echo") >&5
 
20833
  (eval "$ac_link") 2>conftest.er1
 
20834
  ac_status=$?
 
20835
  grep -v '^ *+' conftest.er1 >conftest.err
 
20836
  rm -f conftest.er1
 
20837
  cat conftest.err >&5
 
20838
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20839
  (exit $ac_status); } && {
 
20840
         test -z "$ac_c_werror_flag" ||
 
20841
         test ! -s conftest.err
 
20842
       } && test -s conftest$ac_exeext && {
 
20843
         test "$cross_compiling" = yes ||
 
20844
         $as_test_x conftest$ac_exeext
 
20845
       }; then
 
20846
  ac_cv_func_shl_load=yes
 
20847
else
 
20848
  $as_echo "$as_me: failed program was:" >&5
 
20849
sed 's/^/| /' conftest.$ac_ext >&5
 
20850
 
 
20851
        ac_cv_func_shl_load=no
 
20852
fi
 
20853
 
 
20854
rm -rf conftest.dSYM
 
20855
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20856
      conftest$ac_exeext conftest.$ac_ext
 
20857
fi
 
20858
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
20859
$as_echo "$ac_cv_func_shl_load" >&6; }
 
20860
if test "x$ac_cv_func_shl_load" = x""yes; then
 
20861
 
 
20862
cat >>confdefs.h <<\_ACEOF
 
20863
#define HAVE_SHL_LOAD 1
 
20864
_ACEOF
 
20865
 
 
20866
        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
 
20867
else
 
20868
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
20869
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
20870
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
20871
  $as_echo_n "(cached) " >&6
 
20872
else
 
20873
  ac_check_lib_save_LIBS=$LIBS
 
20874
LIBS="-ldld  $LIBS"
 
20875
cat >conftest.$ac_ext <<_ACEOF
 
20876
/* confdefs.h.  */
 
20877
_ACEOF
 
20878
cat confdefs.h >>conftest.$ac_ext
 
20879
cat >>conftest.$ac_ext <<_ACEOF
 
20880
/* end confdefs.h.  */
 
20881
 
 
20882
/* Override any GCC internal prototype to avoid an error.
 
20883
   Use char because int might match the return type of a GCC
 
20884
   builtin and then its argument prototype would still apply.  */
 
20885
#ifdef __cplusplus
 
20886
extern "C"
 
20887
#endif
 
20888
char shl_load ();
 
20889
int
 
20890
main ()
 
20891
{
 
20892
return shl_load ();
 
20893
  ;
 
20894
  return 0;
 
20895
}
 
20896
_ACEOF
 
20897
rm -f conftest.$ac_objext conftest$ac_exeext
 
20898
if { (ac_try="$ac_link"
 
20899
case "(($ac_try" in
 
20900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20901
  *) ac_try_echo=$ac_try;;
 
20902
esac
 
20903
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20904
$as_echo "$ac_try_echo") >&5
 
20905
  (eval "$ac_link") 2>conftest.er1
 
20906
  ac_status=$?
 
20907
  grep -v '^ *+' conftest.er1 >conftest.err
 
20908
  rm -f conftest.er1
 
20909
  cat conftest.err >&5
 
20910
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20911
  (exit $ac_status); } && {
 
20912
         test -z "$ac_c_werror_flag" ||
 
20913
         test ! -s conftest.err
 
20914
       } && test -s conftest$ac_exeext && {
 
20915
         test "$cross_compiling" = yes ||
 
20916
         $as_test_x conftest$ac_exeext
 
20917
       }; then
 
20918
  ac_cv_lib_dld_shl_load=yes
 
20919
else
 
20920
  $as_echo "$as_me: failed program was:" >&5
 
20921
sed 's/^/| /' conftest.$ac_ext >&5
 
20922
 
 
20923
        ac_cv_lib_dld_shl_load=no
 
20924
fi
 
20925
 
 
20926
rm -rf conftest.dSYM
 
20927
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20928
      conftest$ac_exeext conftest.$ac_ext
 
20929
LIBS=$ac_check_lib_save_LIBS
 
20930
fi
 
20931
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
20932
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
20933
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
20934
 
 
20935
cat >>confdefs.h <<\_ACEOF
 
20936
#define HAVE_SHL_LOAD 1
 
20937
_ACEOF
 
20938
 
 
20939
            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
 
20940
            LIBADD_SHL_LOAD="-ldld"
 
20941
fi
 
20942
 
 
20943
fi
 
20944
 
 
20945
 
 
20946
 
 
20947
case $host_os in
 
20948
darwin[1567].*)
 
20949
# We only want this for pre-Mac OS X 10.4.
 
20950
  { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
 
20951
$as_echo_n "checking for _dyld_func_lookup... " >&6; }
 
20952
if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
 
20953
  $as_echo_n "(cached) " >&6
 
20954
else
 
20955
  cat >conftest.$ac_ext <<_ACEOF
 
20956
/* confdefs.h.  */
 
20957
_ACEOF
 
20958
cat confdefs.h >>conftest.$ac_ext
 
20959
cat >>conftest.$ac_ext <<_ACEOF
 
20960
/* end confdefs.h.  */
 
20961
/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
 
20962
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20963
#define _dyld_func_lookup innocuous__dyld_func_lookup
 
20964
 
 
20965
/* System header to define __stub macros and hopefully few prototypes,
 
20966
    which can conflict with char _dyld_func_lookup (); below.
 
20967
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20968
    <limits.h> exists even on freestanding compilers.  */
 
20969
 
 
20970
#ifdef __STDC__
 
20971
# include <limits.h>
 
20972
#else
 
20973
# include <assert.h>
 
20974
#endif
 
20975
 
 
20976
#undef _dyld_func_lookup
 
20977
 
 
20978
/* Override any GCC internal prototype to avoid an error.
 
20979
   Use char because int might match the return type of a GCC
 
20980
   builtin and then its argument prototype would still apply.  */
 
20981
#ifdef __cplusplus
 
20982
extern "C"
 
20983
#endif
 
20984
char _dyld_func_lookup ();
 
20985
/* The GNU C library defines this for functions which it implements
 
20986
    to always fail with ENOSYS.  Some functions are actually named
 
20987
    something starting with __ and the normal name is an alias.  */
 
20988
#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
 
20989
choke me
 
20990
#endif
 
20991
 
 
20992
int
 
20993
main ()
 
20994
{
 
20995
return _dyld_func_lookup ();
 
20996
  ;
 
20997
  return 0;
 
20998
}
 
20999
_ACEOF
 
21000
rm -f conftest.$ac_objext conftest$ac_exeext
 
21001
if { (ac_try="$ac_link"
 
21002
case "(($ac_try" in
 
21003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21004
  *) ac_try_echo=$ac_try;;
 
21005
esac
 
21006
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21007
$as_echo "$ac_try_echo") >&5
 
21008
  (eval "$ac_link") 2>conftest.er1
 
21009
  ac_status=$?
 
21010
  grep -v '^ *+' conftest.er1 >conftest.err
 
21011
  rm -f conftest.er1
 
21012
  cat conftest.err >&5
 
21013
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21014
  (exit $ac_status); } && {
 
21015
         test -z "$ac_c_werror_flag" ||
 
21016
         test ! -s conftest.err
 
21017
       } && test -s conftest$ac_exeext && {
 
21018
         test "$cross_compiling" = yes ||
 
21019
         $as_test_x conftest$ac_exeext
 
21020
       }; then
 
21021
  ac_cv_func__dyld_func_lookup=yes
 
21022
else
 
21023
  $as_echo "$as_me: failed program was:" >&5
 
21024
sed 's/^/| /' conftest.$ac_ext >&5
 
21025
 
 
21026
        ac_cv_func__dyld_func_lookup=no
 
21027
fi
 
21028
 
 
21029
rm -rf conftest.dSYM
 
21030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21031
      conftest$ac_exeext conftest.$ac_ext
 
21032
fi
 
21033
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
 
21034
$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
 
21035
if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
 
21036
 
 
21037
cat >>confdefs.h <<\_ACEOF
 
21038
#define HAVE_DYLD 1
 
21039
_ACEOF
 
21040
 
 
21041
        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
 
21042
fi
 
21043
 
 
21044
  ;;
 
21045
beos*)
 
21046
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
 
21047
  ;;
 
21048
cygwin* | mingw* | os2* | pw32*)
 
21049
  { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
 
21050
$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
 
21051
if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
 
21052
  $as_echo_n "(cached) " >&6
 
21053
else
 
21054
  cat >conftest.$ac_ext <<_ACEOF
 
21055
/* confdefs.h.  */
 
21056
_ACEOF
 
21057
cat confdefs.h >>conftest.$ac_ext
 
21058
cat >>conftest.$ac_ext <<_ACEOF
 
21059
/* end confdefs.h.  */
 
21060
#include <sys/cygwin.h>
 
21061
 
 
21062
int
 
21063
main ()
 
21064
{
 
21065
#ifndef cygwin_conv_path
 
21066
  (void) cygwin_conv_path;
 
21067
#endif
 
21068
 
 
21069
  ;
 
21070
  return 0;
 
21071
}
 
21072
_ACEOF
 
21073
rm -f conftest.$ac_objext
 
21074
if { (ac_try="$ac_compile"
 
21075
case "(($ac_try" in
 
21076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21077
  *) ac_try_echo=$ac_try;;
 
21078
esac
 
21079
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21080
$as_echo "$ac_try_echo") >&5
 
21081
  (eval "$ac_compile") 2>conftest.er1
 
21082
  ac_status=$?
 
21083
  grep -v '^ *+' conftest.er1 >conftest.err
 
21084
  rm -f conftest.er1
 
21085
  cat conftest.err >&5
 
21086
  $as_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_objext; then
 
21091
  ac_cv_have_decl_cygwin_conv_path=yes
 
21092
else
 
21093
  $as_echo "$as_me: failed program was:" >&5
 
21094
sed 's/^/| /' conftest.$ac_ext >&5
 
21095
 
 
21096
        ac_cv_have_decl_cygwin_conv_path=no
 
21097
fi
 
21098
 
 
21099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21100
fi
 
21101
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
 
21102
$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
 
21103
if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
 
21104
 
 
21105
cat >>confdefs.h <<_ACEOF
 
21106
#define HAVE_DECL_CYGWIN_CONV_PATH 1
 
21107
_ACEOF
 
21108
 
 
21109
 
 
21110
else
 
21111
  cat >>confdefs.h <<_ACEOF
 
21112
#define HAVE_DECL_CYGWIN_CONV_PATH 0
 
21113
_ACEOF
 
21114
 
 
21115
 
 
21116
fi
 
21117
 
 
21118
 
 
21119
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
 
21120
  ;;
 
21121
esac
 
21122
 
 
21123
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
21124
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
21125
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
21126
  $as_echo_n "(cached) " >&6
 
21127
else
 
21128
  ac_check_lib_save_LIBS=$LIBS
 
21129
LIBS="-ldld  $LIBS"
 
21130
cat >conftest.$ac_ext <<_ACEOF
 
21131
/* confdefs.h.  */
 
21132
_ACEOF
 
21133
cat confdefs.h >>conftest.$ac_ext
 
21134
cat >>conftest.$ac_ext <<_ACEOF
 
21135
/* end confdefs.h.  */
 
21136
 
 
21137
/* Override any GCC internal prototype to avoid an error.
 
21138
   Use char because int might match the return type of a GCC
 
21139
   builtin and then its argument prototype would still apply.  */
 
21140
#ifdef __cplusplus
 
21141
extern "C"
 
21142
#endif
 
21143
char dld_link ();
 
21144
int
 
21145
main ()
 
21146
{
 
21147
return dld_link ();
 
21148
  ;
 
21149
  return 0;
 
21150
}
 
21151
_ACEOF
 
21152
rm -f conftest.$ac_objext conftest$ac_exeext
 
21153
if { (ac_try="$ac_link"
 
21154
case "(($ac_try" in
 
21155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21156
  *) ac_try_echo=$ac_try;;
 
21157
esac
 
21158
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21159
$as_echo "$ac_try_echo") >&5
 
21160
  (eval "$ac_link") 2>conftest.er1
 
21161
  ac_status=$?
 
21162
  grep -v '^ *+' conftest.er1 >conftest.err
 
21163
  rm -f conftest.er1
 
21164
  cat conftest.err >&5
 
21165
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21166
  (exit $ac_status); } && {
 
21167
         test -z "$ac_c_werror_flag" ||
 
21168
         test ! -s conftest.err
 
21169
       } && test -s conftest$ac_exeext && {
 
21170
         test "$cross_compiling" = yes ||
 
21171
         $as_test_x conftest$ac_exeext
 
21172
       }; then
 
21173
  ac_cv_lib_dld_dld_link=yes
 
21174
else
 
21175
  $as_echo "$as_me: failed program was:" >&5
 
21176
sed 's/^/| /' conftest.$ac_ext >&5
 
21177
 
 
21178
        ac_cv_lib_dld_dld_link=no
 
21179
fi
 
21180
 
 
21181
rm -rf conftest.dSYM
 
21182
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21183
      conftest$ac_exeext conftest.$ac_ext
 
21184
LIBS=$ac_check_lib_save_LIBS
 
21185
fi
 
21186
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
21187
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
21188
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
21189
 
 
21190
cat >>confdefs.h <<\_ACEOF
 
21191
#define HAVE_DLD 1
 
21192
_ACEOF
 
21193
 
 
21194
                LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
 
21195
fi
 
21196
 
 
21197
 
 
21198
 
 
21199
 
 
21200
LT_DLPREOPEN=
 
21201
if test -n "$LT_DLLOADERS"
 
21202
then
 
21203
  for lt_loader in $LT_DLLOADERS; do
 
21204
    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
 
21205
  done
 
21206
 
 
21207
cat >>confdefs.h <<\_ACEOF
 
21208
#define HAVE_LIBDLLOADER 1
 
21209
_ACEOF
 
21210
 
 
21211
fi
 
21212
 
 
21213
 
 
21214
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
 
21215
 
 
21216
 
 
21217
ac_ext=c
 
21218
ac_cpp='$CPP $CPPFLAGS'
 
21219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21222
 
 
21223
 
 
21224
{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
 
21225
$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
 
21226
if test "${lt_cv_sys_symbol_underscore+set}" = set; then
 
21227
  $as_echo_n "(cached) " >&6
 
21228
else
 
21229
  lt_cv_sys_symbol_underscore=no
 
21230
  cat > conftest.$ac_ext <<_LT_EOF
 
21231
void nm_test_func(){}
 
21232
int main(){nm_test_func;return 0;}
 
21233
_LT_EOF
 
21234
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21235
  (eval $ac_compile) 2>&5
 
21236
  ac_status=$?
 
21237
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21238
  (exit $ac_status); }; then
 
21239
    # Now try to grab the symbols.
 
21240
    ac_nlist=conftest.nm
 
21241
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
 
21242
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
 
21243
  ac_status=$?
 
21244
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21245
  (exit $ac_status); } && test -s "$ac_nlist"; then
 
21246
      # See whether the symbols have a leading underscore.
 
21247
      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
 
21248
        lt_cv_sys_symbol_underscore=yes
 
21249
      else
 
21250
        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
 
21251
          :
 
21252
        else
 
21253
          echo "configure: cannot find nm_test_func in $ac_nlist" >&5
 
21254
        fi
 
21255
      fi
 
21256
    else
 
21257
      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
21258
    fi
 
21259
  else
 
21260
    echo "configure: failed program was:" >&5
 
21261
    cat conftest.c >&5
 
21262
  fi
 
21263
  rm -rf conftest*
 
21264
 
 
21265
fi
 
21266
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
 
21267
$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
 
21268
  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
 
21269
 
 
21270
 
 
21271
if test x"$lt_cv_sys_symbol_underscore" = xyes; then
 
21272
  if test x"$libltdl_cv_func_dlopen" = xyes ||
 
21273
     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
 
21274
        { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
 
21275
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
 
21276
if test "${libltdl_cv_need_uscore+set}" = set; then
 
21277
  $as_echo_n "(cached) " >&6
 
21278
else
 
21279
  libltdl_cv_need_uscore=unknown
 
21280
          save_LIBS="$LIBS"
 
21281
          LIBS="$LIBS $LIBADD_DLOPEN"
 
21282
          if test "$cross_compiling" = yes; then :
 
21283
  libltdl_cv_need_uscore=cross
 
21284
else
 
21285
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
21286
  lt_status=$lt_dlunknown
 
21287
  cat > conftest.$ac_ext <<_LT_EOF
 
21288
#line 21288 "configure"
 
21289
#include "confdefs.h"
 
21290
 
 
21291
#if HAVE_DLFCN_H
 
21292
#include <dlfcn.h>
 
21293
#endif
 
21294
 
 
21295
#include <stdio.h>
 
21296
 
 
21297
#ifdef RTLD_GLOBAL
 
21298
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
21299
#else
 
21300
#  ifdef DL_GLOBAL
 
21301
#    define LT_DLGLOBAL         DL_GLOBAL
 
21302
#  else
 
21303
#    define LT_DLGLOBAL         0
 
21304
#  endif
 
21305
#endif
 
21306
 
 
21307
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
21308
   find out it does not work in some platform. */
 
21309
#ifndef LT_DLLAZY_OR_NOW
 
21310
#  ifdef RTLD_LAZY
 
21311
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
21312
#  else
 
21313
#    ifdef DL_LAZY
 
21314
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
21315
#    else
 
21316
#      ifdef RTLD_NOW
 
21317
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
21318
#      else
 
21319
#        ifdef DL_NOW
 
21320
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
21321
#        else
 
21322
#          define LT_DLLAZY_OR_NOW      0
 
21323
#        endif
 
21324
#      endif
 
21325
#    endif
 
21326
#  endif
 
21327
#endif
 
21328
 
 
21329
void fnord() { int i=42;}
 
21330
int main ()
 
21331
{
 
21332
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
21333
  int status = $lt_dlunknown;
 
21334
 
 
21335
  if (self)
 
21336
    {
 
21337
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
21338
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
21339
      /* dlclose (self); */
 
21340
    }
 
21341
  else
 
21342
    puts (dlerror ());
 
21343
 
 
21344
  return status;
 
21345
}
 
21346
_LT_EOF
 
21347
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21348
  (eval $ac_link) 2>&5
 
21349
  ac_status=$?
 
21350
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21351
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
21352
    (./conftest; exit; ) >&5 2>/dev/null
 
21353
    lt_status=$?
 
21354
    case x$lt_status in
 
21355
      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
 
21356
      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
 
21357
      x$lt_dlunknown|x*)  ;;
 
21358
    esac
 
21359
  else :
 
21360
    # compilation failed
 
21361
 
 
21362
  fi
 
21363
fi
 
21364
rm -fr conftest*
 
21365
 
 
21366
          LIBS="$save_LIBS"
 
21367
 
 
21368
fi
 
21369
{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
 
21370
$as_echo "$libltdl_cv_need_uscore" >&6; }
 
21371
  fi
 
21372
fi
 
21373
 
 
21374
if test x"$libltdl_cv_need_uscore" = xyes; then
 
21375
 
 
21376
cat >>confdefs.h <<\_ACEOF
 
21377
#define NEED_USCORE 1
 
21378
_ACEOF
 
21379
 
 
21380
fi
 
21381
 
 
21382
{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
 
21383
$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
 
21384
if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
 
21385
  $as_echo_n "(cached) " >&6
 
21386
else
 
21387
  # PORTME does your system automatically load deplibs for dlopen?
 
21388
  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
 
21389
  # For now, we just catch OSes we know something about -- in the
 
21390
  # future, we'll try test this programmatically.
 
21391
  lt_cv_sys_dlopen_deplibs=unknown
 
21392
  case $host_os in
 
21393
  aix3*|aix4.1.*|aix4.2.*)
 
21394
    # Unknown whether this is true for these versions of AIX, but
 
21395
    # we want this `case' here to explicitly catch those versions.
 
21396
    lt_cv_sys_dlopen_deplibs=unknown
 
21397
    ;;
 
21398
  aix[4-9]*)
 
21399
    lt_cv_sys_dlopen_deplibs=yes
 
21400
    ;;
 
21401
  amigaos*)
 
21402
    case $host_cpu in
 
21403
    powerpc)
 
21404
      lt_cv_sys_dlopen_deplibs=no
 
21405
      ;;
 
21406
    esac
 
21407
    ;;
 
21408
  darwin*)
 
21409
    # Assuming the user has installed a libdl from somewhere, this is true
 
21410
    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
 
21411
    lt_cv_sys_dlopen_deplibs=yes
 
21412
    ;;
 
21413
  freebsd* | dragonfly*)
 
21414
    lt_cv_sys_dlopen_deplibs=yes
 
21415
    ;;
 
21416
  gnu* | linux* | k*bsd*-gnu)
 
21417
    # GNU and its variants, using gnu ld.so (Glibc)
 
21418
    lt_cv_sys_dlopen_deplibs=yes
 
21419
    ;;
 
21420
  hpux10*|hpux11*)
 
21421
    lt_cv_sys_dlopen_deplibs=yes
 
21422
    ;;
 
21423
  interix*)
 
21424
    lt_cv_sys_dlopen_deplibs=yes
 
21425
    ;;
 
21426
  irix[12345]*|irix6.[01]*)
 
21427
    # Catch all versions of IRIX before 6.2, and indicate that we don't
 
21428
    # know how it worked for any of those versions.
 
21429
    lt_cv_sys_dlopen_deplibs=unknown
 
21430
    ;;
 
21431
  irix*)
 
21432
    # The case above catches anything before 6.2, and it's known that
 
21433
    # at 6.2 and later dlopen does load deplibs.
 
21434
    lt_cv_sys_dlopen_deplibs=yes
 
21435
    ;;
 
21436
  netbsd*)
 
21437
    lt_cv_sys_dlopen_deplibs=yes
 
21438
    ;;
 
21439
  openbsd*)
 
21440
    lt_cv_sys_dlopen_deplibs=yes
 
21441
    ;;
 
21442
  osf[1234]*)
 
21443
    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
 
21444
    # it did *not* use an RPATH in a shared library to find objects the
 
21445
    # library depends on, so we explicitly say `no'.
 
21446
    lt_cv_sys_dlopen_deplibs=no
 
21447
    ;;
 
21448
  osf5.0|osf5.0a|osf5.1)
 
21449
    # dlopen *does* load deplibs and with the right loader patch applied
 
21450
    # it even uses RPATH in a shared library to search for shared objects
 
21451
    # that the library depends on, but there's no easy way to know if that
 
21452
    # patch is installed.  Since this is the case, all we can really
 
21453
    # say is unknown -- it depends on the patch being installed.  If
 
21454
    # it is, this changes to `yes'.  Without it, it would be `no'.
 
21455
    lt_cv_sys_dlopen_deplibs=unknown
 
21456
    ;;
 
21457
  osf*)
 
21458
    # the two cases above should catch all versions of osf <= 5.1.  Read
 
21459
    # the comments above for what we know about them.
 
21460
    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
 
21461
    # is used to find them so we can finally say `yes'.
 
21462
    lt_cv_sys_dlopen_deplibs=yes
 
21463
    ;;
 
21464
  qnx*)
 
21465
    lt_cv_sys_dlopen_deplibs=yes
 
21466
    ;;
 
21467
  solaris*)
 
21468
    lt_cv_sys_dlopen_deplibs=yes
 
21469
    ;;
 
21470
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
21471
    libltdl_cv_sys_dlopen_deplibs=yes
 
21472
    ;;
 
21473
  esac
 
21474
 
 
21475
fi
 
21476
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
 
21477
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
 
21478
if test "$lt_cv_sys_dlopen_deplibs" != yes; then
 
21479
 
 
21480
cat >>confdefs.h <<\_ACEOF
 
21481
#define LTDL_DLOPEN_DEPLIBS 1
 
21482
_ACEOF
 
21483
 
 
21484
fi
 
21485
 
 
21486
:
 
21487
 
 
21488
 
 
21489
for ac_header in argz.h
 
21490
do
 
21491
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21492
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21493
$as_echo_n "checking for $ac_header... " >&6; }
 
21494
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21495
  $as_echo_n "(cached) " >&6
 
21496
else
 
21497
  cat >conftest.$ac_ext <<_ACEOF
 
21498
/* confdefs.h.  */
 
21499
_ACEOF
 
21500
cat confdefs.h >>conftest.$ac_ext
 
21501
cat >>conftest.$ac_ext <<_ACEOF
 
21502
/* end confdefs.h.  */
 
21503
$ac_includes_default
 
21504
 
 
21505
#include <$ac_header>
 
21506
_ACEOF
 
21507
rm -f conftest.$ac_objext
 
21508
if { (ac_try="$ac_compile"
 
21509
case "(($ac_try" in
 
21510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21511
  *) ac_try_echo=$ac_try;;
 
21512
esac
 
21513
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21514
$as_echo "$ac_try_echo") >&5
 
21515
  (eval "$ac_compile") 2>conftest.er1
 
21516
  ac_status=$?
 
21517
  grep -v '^ *+' conftest.er1 >conftest.err
 
21518
  rm -f conftest.er1
 
21519
  cat conftest.err >&5
 
21520
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21521
  (exit $ac_status); } && {
 
21522
         test -z "$ac_c_werror_flag" ||
 
21523
         test ! -s conftest.err
 
21524
       } && test -s conftest.$ac_objext; then
 
21525
  eval "$as_ac_Header=yes"
 
21526
else
 
21527
  $as_echo "$as_me: failed program was:" >&5
 
21528
sed 's/^/| /' conftest.$ac_ext >&5
 
21529
 
 
21530
        eval "$as_ac_Header=no"
 
21531
fi
 
21532
 
 
21533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21534
fi
 
21535
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21536
                 $as_echo "$as_val"'`
 
21537
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21538
$as_echo "$ac_res" >&6; }
 
21539
as_val=`eval 'as_val=${'$as_ac_Header'}
 
21540
                 $as_echo "$as_val"'`
 
21541
   if test "x$as_val" = x""yes; then
 
21542
  cat >>confdefs.h <<_ACEOF
 
21543
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21544
_ACEOF
 
21545
 
 
21546
fi
 
21547
 
 
21548
done
 
21549
 
 
21550
 
 
21551
{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
 
21552
$as_echo_n "checking for error_t... " >&6; }
 
21553
if test "${ac_cv_type_error_t+set}" = set; then
 
21554
  $as_echo_n "(cached) " >&6
 
21555
else
 
21556
  ac_cv_type_error_t=no
 
21557
cat >conftest.$ac_ext <<_ACEOF
 
21558
/* confdefs.h.  */
 
21559
_ACEOF
 
21560
cat confdefs.h >>conftest.$ac_ext
 
21561
cat >>conftest.$ac_ext <<_ACEOF
 
21562
/* end confdefs.h.  */
 
21563
#if defined(HAVE_ARGZ_H)
 
21564
#  include <argz.h>
 
21565
#endif
 
21566
 
 
21567
int
 
21568
main ()
 
21569
{
 
21570
if (sizeof (error_t))
 
21571
       return 0;
 
21572
  ;
 
21573
  return 0;
 
21574
}
 
21575
_ACEOF
 
21576
rm -f conftest.$ac_objext
 
21577
if { (ac_try="$ac_compile"
 
21578
case "(($ac_try" in
 
21579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21580
  *) ac_try_echo=$ac_try;;
 
21581
esac
 
21582
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21583
$as_echo "$ac_try_echo") >&5
 
21584
  (eval "$ac_compile") 2>conftest.er1
 
21585
  ac_status=$?
 
21586
  grep -v '^ *+' conftest.er1 >conftest.err
 
21587
  rm -f conftest.er1
 
21588
  cat conftest.err >&5
 
21589
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21590
  (exit $ac_status); } && {
 
21591
         test -z "$ac_c_werror_flag" ||
 
21592
         test ! -s conftest.err
 
21593
       } && test -s conftest.$ac_objext; then
 
21594
  cat >conftest.$ac_ext <<_ACEOF
 
21595
/* confdefs.h.  */
 
21596
_ACEOF
 
21597
cat confdefs.h >>conftest.$ac_ext
 
21598
cat >>conftest.$ac_ext <<_ACEOF
 
21599
/* end confdefs.h.  */
 
21600
#if defined(HAVE_ARGZ_H)
 
21601
#  include <argz.h>
 
21602
#endif
 
21603
 
 
21604
int
 
21605
main ()
 
21606
{
 
21607
if (sizeof ((error_t)))
 
21608
          return 0;
 
21609
  ;
 
21610
  return 0;
 
21611
}
 
21612
_ACEOF
 
21613
rm -f conftest.$ac_objext
 
21614
if { (ac_try="$ac_compile"
 
21615
case "(($ac_try" in
 
21616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21617
  *) ac_try_echo=$ac_try;;
 
21618
esac
 
21619
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21620
$as_echo "$ac_try_echo") >&5
 
21621
  (eval "$ac_compile") 2>conftest.er1
 
21622
  ac_status=$?
 
21623
  grep -v '^ *+' conftest.er1 >conftest.err
 
21624
  rm -f conftest.er1
 
21625
  cat conftest.err >&5
 
21626
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21627
  (exit $ac_status); } && {
 
21628
         test -z "$ac_c_werror_flag" ||
 
21629
         test ! -s conftest.err
 
21630
       } && test -s conftest.$ac_objext; then
 
21631
  :
 
21632
else
 
21633
  $as_echo "$as_me: failed program was:" >&5
 
21634
sed 's/^/| /' conftest.$ac_ext >&5
 
21635
 
 
21636
        ac_cv_type_error_t=yes
 
21637
fi
 
21638
 
 
21639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21640
else
 
21641
  $as_echo "$as_me: failed program was:" >&5
 
21642
sed 's/^/| /' conftest.$ac_ext >&5
 
21643
 
 
21644
 
 
21645
fi
 
21646
 
 
21647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21648
fi
 
21649
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
 
21650
$as_echo "$ac_cv_type_error_t" >&6; }
 
21651
if test "x$ac_cv_type_error_t" = x""yes; then
 
21652
 
 
21653
cat >>confdefs.h <<_ACEOF
 
21654
#define HAVE_ERROR_T 1
 
21655
_ACEOF
 
21656
 
 
21657
 
 
21658
else
 
21659
 
 
21660
cat >>confdefs.h <<\_ACEOF
 
21661
#define error_t int
 
21662
_ACEOF
 
21663
 
 
21664
 
 
21665
cat >>confdefs.h <<\_ACEOF
 
21666
#define __error_t_defined 1
 
21667
_ACEOF
 
21668
 
 
21669
fi
 
21670
 
 
21671
 
 
21672
ARGZ_H=
 
21673
 
 
21674
 
 
21675
 
 
21676
 
 
21677
 
 
21678
 
 
21679
 
 
21680
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
 
21681
        argz_next argz_stringify
 
21682
do
 
21683
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21684
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21685
$as_echo_n "checking for $ac_func... " >&6; }
 
21686
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21687
  $as_echo_n "(cached) " >&6
 
21688
else
 
21689
  cat >conftest.$ac_ext <<_ACEOF
 
21690
/* confdefs.h.  */
 
21691
_ACEOF
 
21692
cat confdefs.h >>conftest.$ac_ext
 
21693
cat >>conftest.$ac_ext <<_ACEOF
 
21694
/* end confdefs.h.  */
 
21695
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21696
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21697
#define $ac_func innocuous_$ac_func
 
21698
 
 
21699
/* System header to define __stub macros and hopefully few prototypes,
 
21700
    which can conflict with char $ac_func (); below.
 
21701
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21702
    <limits.h> exists even on freestanding compilers.  */
 
21703
 
 
21704
#ifdef __STDC__
 
21705
# include <limits.h>
 
21706
#else
 
21707
# include <assert.h>
 
21708
#endif
 
21709
 
 
21710
#undef $ac_func
 
21711
 
 
21712
/* Override any GCC internal prototype to avoid an error.
 
21713
   Use char because int might match the return type of a GCC
 
21714
   builtin and then its argument prototype would still apply.  */
 
21715
#ifdef __cplusplus
 
21716
extern "C"
 
21717
#endif
 
21718
char $ac_func ();
 
21719
/* The GNU C library defines this for functions which it implements
 
21720
    to always fail with ENOSYS.  Some functions are actually named
 
21721
    something starting with __ and the normal name is an alias.  */
 
21722
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21723
choke me
 
21724
#endif
 
21725
 
 
21726
int
 
21727
main ()
 
21728
{
 
21729
return $ac_func ();
 
21730
  ;
 
21731
  return 0;
 
21732
}
 
21733
_ACEOF
 
21734
rm -f conftest.$ac_objext conftest$ac_exeext
 
21735
if { (ac_try="$ac_link"
 
21736
case "(($ac_try" in
 
21737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21738
  *) ac_try_echo=$ac_try;;
 
21739
esac
 
21740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21741
$as_echo "$ac_try_echo") >&5
 
21742
  (eval "$ac_link") 2>conftest.er1
 
21743
  ac_status=$?
 
21744
  grep -v '^ *+' conftest.er1 >conftest.err
 
21745
  rm -f conftest.er1
 
21746
  cat conftest.err >&5
 
21747
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21748
  (exit $ac_status); } && {
 
21749
         test -z "$ac_c_werror_flag" ||
 
21750
         test ! -s conftest.err
 
21751
       } && test -s conftest$ac_exeext && {
 
21752
         test "$cross_compiling" = yes ||
 
21753
         $as_test_x conftest$ac_exeext
 
21754
       }; then
 
21755
  eval "$as_ac_var=yes"
 
21756
else
 
21757
  $as_echo "$as_me: failed program was:" >&5
 
21758
sed 's/^/| /' conftest.$ac_ext >&5
 
21759
 
 
21760
        eval "$as_ac_var=no"
 
21761
fi
 
21762
 
 
21763
rm -rf conftest.dSYM
 
21764
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21765
      conftest$ac_exeext conftest.$ac_ext
 
21766
fi
 
21767
ac_res=`eval 'as_val=${'$as_ac_var'}
 
21768
                 $as_echo "$as_val"'`
 
21769
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21770
$as_echo "$ac_res" >&6; }
 
21771
as_val=`eval 'as_val=${'$as_ac_var'}
 
21772
                 $as_echo "$as_val"'`
 
21773
   if test "x$as_val" = x""yes; then
 
21774
  cat >>confdefs.h <<_ACEOF
 
21775
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21776
_ACEOF
 
21777
 
 
21778
else
 
21779
  ARGZ_H=argz.h;
 
21780
 
 
21781
  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
 
21782
 
 
21783
fi
 
21784
done
 
21785
 
 
21786
 
 
21787
if test -z "$ARGZ_H"; then
 
21788
  { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
 
21789
$as_echo_n "checking if argz actually works... " >&6; }
 
21790
if test "${lt_cv_sys_argz_works+set}" = set; then
 
21791
  $as_echo_n "(cached) " >&6
 
21792
else
 
21793
  case $host_os in #(
 
21794
         *cygwin*)
 
21795
           lt_cv_sys_argz_works=no
 
21796
           if test "$cross_compiling" != no; then
 
21797
             lt_cv_sys_argz_works="guessing no"
 
21798
           else
 
21799
             lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
 
21800
             save_IFS=$IFS
 
21801
             IFS=-.
 
21802
             set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
 
21803
             IFS=$save_IFS
 
21804
             lt_os_major=${2-0}
 
21805
             lt_os_minor=${3-0}
 
21806
             lt_os_micro=${4-0}
 
21807
             if test "$lt_os_major" -gt 1 \
 
21808
                || { test "$lt_os_major" -eq 1 \
 
21809
                  && { test "$lt_os_minor" -gt 5 \
 
21810
                    || { test "$lt_os_minor" -eq 5 \
 
21811
                      && test "$lt_os_micro" -gt 24; }; }; }; then
 
21812
               lt_cv_sys_argz_works=yes
 
21813
             fi
 
21814
           fi
 
21815
           ;; #(
 
21816
         *) lt_cv_sys_argz_works=yes ;;
 
21817
         esac
 
21818
fi
 
21819
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
 
21820
$as_echo "$lt_cv_sys_argz_works" >&6; }
 
21821
     if test $lt_cv_sys_argz_works = yes; then
 
21822
 
 
21823
cat >>confdefs.h <<\_ACEOF
 
21824
#define HAVE_WORKING_ARGZ 1
 
21825
_ACEOF
 
21826
 
 
21827
else
 
21828
  ARGZ_H=argz.h
 
21829
 
 
21830
 
 
21831
  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
 
21832
 
 
21833
fi
 
21834
 
 
21835
fi
 
21836
 
 
21837
 
 
21838
 
 
21839
 
 
21840
{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
 
21841
$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
 
21842
if test "${libltdl_cv_preloaded_symbols+set}" = set; then
 
21843
  $as_echo_n "(cached) " >&6
 
21844
else
 
21845
  if test -n "$lt_cv_sys_global_symbol_pipe"; then
 
21846
    libltdl_cv_preloaded_symbols=yes
 
21847
  else
 
21848
    libltdl_cv_preloaded_symbols=no
 
21849
  fi
 
21850
 
 
21851
fi
 
21852
{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
 
21853
$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
 
21854
if test x"$libltdl_cv_preloaded_symbols" = xyes; then
 
21855
 
 
21856
cat >>confdefs.h <<\_ACEOF
 
21857
#define HAVE_PRELOADED_SYMBOLS 1
 
21858
_ACEOF
 
21859
 
 
21860
fi
 
21861
 
 
21862
 
 
21863
 
 
21864
# Set options
 
21865
 
 
21866
 
 
21867
 
 
21868
 
 
21869
 
 
21870
 
 
21871
 
 
21872
 
 
21873
 
 
21874
 
 
21875
 
 
21876
 
 
21877
# Check whether --with-included_ltdl was given.
 
21878
if test "${with_included_ltdl+set}" = set; then
 
21879
  withval=$with_included_ltdl;
 
21880
fi
 
21881
 
 
21882
 
 
21883
if test "x$with_included_ltdl" != xyes; then
 
21884
  # We are not being forced to use the included libltdl sources, so
 
21885
  # decide whether there is a useful installed version we can use.
 
21886
  { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
 
21887
$as_echo_n "checking for ltdl.h... " >&6; }
 
21888
if test "${ac_cv_header_ltdl_h+set}" = set; then
 
21889
  $as_echo_n "(cached) " >&6
 
21890
else
 
21891
  cat >conftest.$ac_ext <<_ACEOF
 
21892
/* confdefs.h.  */
 
21893
_ACEOF
 
21894
cat confdefs.h >>conftest.$ac_ext
 
21895
cat >>conftest.$ac_ext <<_ACEOF
 
21896
/* end confdefs.h.  */
 
21897
$ac_includes_default
 
21898
 
 
21899
 
 
21900
#include <ltdl.h>
 
21901
_ACEOF
 
21902
rm -f conftest.$ac_objext
 
21903
if { (ac_try="$ac_compile"
 
21904
case "(($ac_try" in
 
21905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21906
  *) ac_try_echo=$ac_try;;
 
21907
esac
 
21908
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21909
$as_echo "$ac_try_echo") >&5
 
21910
  (eval "$ac_compile") 2>conftest.er1
 
21911
  ac_status=$?
 
21912
  grep -v '^ *+' conftest.er1 >conftest.err
 
21913
  rm -f conftest.er1
 
21914
  cat conftest.err >&5
 
21915
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21916
  (exit $ac_status); } && {
 
21917
         test -z "$ac_c_werror_flag" ||
 
21918
         test ! -s conftest.err
 
21919
       } && test -s conftest.$ac_objext; then
 
21920
  ac_cv_header_ltdl_h=yes
 
21921
else
 
21922
  $as_echo "$as_me: failed program was:" >&5
 
21923
sed 's/^/| /' conftest.$ac_ext >&5
 
21924
 
 
21925
        ac_cv_header_ltdl_h=no
 
21926
fi
 
21927
 
 
21928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21929
fi
 
21930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
 
21931
$as_echo "$ac_cv_header_ltdl_h" >&6; }
 
21932
if test "x$ac_cv_header_ltdl_h" = x""yes; then
 
21933
  { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
 
21934
$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
 
21935
if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
 
21936
  $as_echo_n "(cached) " >&6
 
21937
else
 
21938
  cat >conftest.$ac_ext <<_ACEOF
 
21939
/* confdefs.h.  */
 
21940
_ACEOF
 
21941
cat confdefs.h >>conftest.$ac_ext
 
21942
cat >>conftest.$ac_ext <<_ACEOF
 
21943
/* end confdefs.h.  */
 
21944
$ac_includes_default
 
21945
            #include <ltdl.h>
 
21946
 
 
21947
int
 
21948
main ()
 
21949
{
 
21950
#ifndef lt_dlinterface_register
 
21951
  (void) lt_dlinterface_register;
 
21952
#endif
 
21953
 
 
21954
  ;
 
21955
  return 0;
 
21956
}
 
21957
_ACEOF
 
21958
rm -f conftest.$ac_objext
 
21959
if { (ac_try="$ac_compile"
 
21960
case "(($ac_try" in
 
21961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21962
  *) ac_try_echo=$ac_try;;
 
21963
esac
 
21964
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21965
$as_echo "$ac_try_echo") >&5
 
21966
  (eval "$ac_compile") 2>conftest.er1
 
21967
  ac_status=$?
 
21968
  grep -v '^ *+' conftest.er1 >conftest.err
 
21969
  rm -f conftest.er1
 
21970
  cat conftest.err >&5
 
21971
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21972
  (exit $ac_status); } && {
 
21973
         test -z "$ac_c_werror_flag" ||
 
21974
         test ! -s conftest.err
 
21975
       } && test -s conftest.$ac_objext; then
 
21976
  ac_cv_have_decl_lt_dlinterface_register=yes
 
21977
else
 
21978
  $as_echo "$as_me: failed program was:" >&5
 
21979
sed 's/^/| /' conftest.$ac_ext >&5
 
21980
 
 
21981
        ac_cv_have_decl_lt_dlinterface_register=no
 
21982
fi
 
21983
 
 
21984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21985
fi
 
21986
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
 
21987
$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
 
21988
if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
 
21989
  { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
 
21990
$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
 
21991
if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
 
21992
  $as_echo_n "(cached) " >&6
 
21993
else
 
21994
  ac_check_lib_save_LIBS=$LIBS
 
21995
LIBS="-lltdl  $LIBS"
 
21996
cat >conftest.$ac_ext <<_ACEOF
 
21997
/* confdefs.h.  */
 
21998
_ACEOF
 
21999
cat confdefs.h >>conftest.$ac_ext
 
22000
cat >>conftest.$ac_ext <<_ACEOF
 
22001
/* end confdefs.h.  */
 
22002
 
 
22003
/* Override any GCC internal prototype to avoid an error.
 
22004
   Use char because int might match the return type of a GCC
 
22005
   builtin and then its argument prototype would still apply.  */
 
22006
#ifdef __cplusplus
 
22007
extern "C"
 
22008
#endif
 
22009
char lt_dladvise_preload ();
 
22010
int
 
22011
main ()
 
22012
{
 
22013
return lt_dladvise_preload ();
 
22014
  ;
 
22015
  return 0;
 
22016
}
 
22017
_ACEOF
 
22018
rm -f conftest.$ac_objext conftest$ac_exeext
 
22019
if { (ac_try="$ac_link"
 
22020
case "(($ac_try" in
 
22021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22022
  *) ac_try_echo=$ac_try;;
 
22023
esac
 
22024
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22025
$as_echo "$ac_try_echo") >&5
 
22026
  (eval "$ac_link") 2>conftest.er1
 
22027
  ac_status=$?
 
22028
  grep -v '^ *+' conftest.er1 >conftest.err
 
22029
  rm -f conftest.er1
 
22030
  cat conftest.err >&5
 
22031
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22032
  (exit $ac_status); } && {
 
22033
         test -z "$ac_c_werror_flag" ||
 
22034
         test ! -s conftest.err
 
22035
       } && test -s conftest$ac_exeext && {
 
22036
         test "$cross_compiling" = yes ||
 
22037
         $as_test_x conftest$ac_exeext
 
22038
       }; then
 
22039
  ac_cv_lib_ltdl_lt_dladvise_preload=yes
 
22040
else
 
22041
  $as_echo "$as_me: failed program was:" >&5
 
22042
sed 's/^/| /' conftest.$ac_ext >&5
 
22043
 
 
22044
        ac_cv_lib_ltdl_lt_dladvise_preload=no
 
22045
fi
 
22046
 
 
22047
rm -rf conftest.dSYM
 
22048
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22049
      conftest$ac_exeext conftest.$ac_ext
 
22050
LIBS=$ac_check_lib_save_LIBS
 
22051
fi
 
22052
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
 
22053
$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
 
22054
if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
 
22055
  with_included_ltdl=no
 
22056
else
 
22057
  with_included_ltdl=yes
 
22058
fi
 
22059
 
 
22060
else
 
22061
  with_included_ltdl=yes
 
22062
fi
 
22063
 
 
22064
else
 
22065
  with_included_ltdl=yes
 
22066
fi
 
22067
 
 
22068
 
 
22069
fi
 
22070
 
 
22071
 
 
22072
 
 
22073
 
 
22074
# Check whether --with-ltdl_include was given.
 
22075
if test "${with_ltdl_include+set}" = set; then
 
22076
  withval=$with_ltdl_include;
 
22077
fi
 
22078
 
 
22079
 
 
22080
if test -n "$with_ltdl_include"; then
 
22081
  if test -f "$with_ltdl_include/ltdl.h"; then :
 
22082
  else
 
22083
    { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
 
22084
$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
 
22085
   { (exit 1); exit 1; }; }
 
22086
  fi
 
22087
else
 
22088
  with_ltdl_include=no
 
22089
fi
 
22090
 
 
22091
 
 
22092
# Check whether --with-ltdl_lib was given.
 
22093
if test "${with_ltdl_lib+set}" = set; then
 
22094
  withval=$with_ltdl_lib;
 
22095
fi
 
22096
 
 
22097
 
 
22098
if test -n "$with_ltdl_lib"; then
 
22099
  if test -f "$with_ltdl_lib/libltdl.la"; then :
 
22100
  else
 
22101
    { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
 
22102
$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
 
22103
   { (exit 1); exit 1; }; }
 
22104
  fi
 
22105
else
 
22106
  with_ltdl_lib=no
 
22107
fi
 
22108
 
 
22109
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
 
22110
  ,yes,no,no,)
 
22111
        case $enable_ltdl_convenience in
 
22112
  no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
 
22113
$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
 
22114
   { (exit 1); exit 1; }; } ;;
 
22115
  "") enable_ltdl_convenience=yes
 
22116
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
22117
esac
 
22118
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
 
22119
LTDLDEPS=$LIBLTDL
 
22120
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
 
22121
 
 
22122
 
 
22123
 
 
22124
 
 
22125
 
 
22126
# For backwards non-gettext consistent compatibility...
 
22127
INCLTDL="$LTDLINCL"
 
22128
 
 
22129
 
 
22130
        ;;
 
22131
  ,no,no,no,)
 
22132
        # If the included ltdl is not to be used, then use the
 
22133
        # preinstalled libltdl we found.
 
22134
 
 
22135
cat >>confdefs.h <<\_ACEOF
 
22136
#define HAVE_LTDL 1
 
22137
_ACEOF
 
22138
 
 
22139
        LIBLTDL=-lltdl
 
22140
        LTDLDEPS=
 
22141
        LTDLINCL=
 
22142
        ;;
 
22143
  ,no*,no,*)
 
22144
        { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
 
22145
$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
 
22146
   { (exit 1); exit 1; }; }
 
22147
        ;;
 
22148
  *)    with_included_ltdl=no
 
22149
        LIBLTDL="-L$with_ltdl_lib -lltdl"
 
22150
        LTDLDEPS=
 
22151
        LTDLINCL="-I$with_ltdl_include"
 
22152
        ;;
 
22153
esac
 
22154
INCLTDL="$LTDLINCL"
 
22155
 
 
22156
# Report our decision...
 
22157
{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
 
22158
$as_echo_n "checking where to find libltdl headers... " >&6; }
 
22159
{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
 
22160
$as_echo "$LTDLINCL" >&6; }
 
22161
{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
 
22162
$as_echo_n "checking where to find libltdl library... " >&6; }
 
22163
{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
 
22164
$as_echo "$LIBLTDL" >&6; }
 
22165
 
 
22166
 
 
22167
 
 
22168
# Check whether --enable-ltdl-install was given.
 
22169
if test "${enable_ltdl_install+set}" = set; then
 
22170
  enableval=$enable_ltdl_install;
 
22171
fi
 
22172
 
 
22173
 
 
22174
case ,${enable_ltdl_install},${enable_ltdl_convenience} in
 
22175
  *yes*) ;;
 
22176
  *) enable_ltdl_convenience=yes ;;
 
22177
esac
 
22178
 
 
22179
 if test x"${enable_ltdl_install-no}" != xno; then
 
22180
  INSTALL_LTDL_TRUE=
 
22181
  INSTALL_LTDL_FALSE='#'
 
22182
else
 
22183
  INSTALL_LTDL_TRUE='#'
 
22184
  INSTALL_LTDL_FALSE=
 
22185
fi
 
22186
 
 
22187
  if test x"${enable_ltdl_convenience-no}" != xno; then
 
22188
  CONVENIENCE_LTDL_TRUE=
 
22189
  CONVENIENCE_LTDL_FALSE='#'
 
22190
else
 
22191
  CONVENIENCE_LTDL_TRUE='#'
 
22192
  CONVENIENCE_LTDL_FALSE=
 
22193
fi
 
22194
 
 
22195
 
 
22196
 
 
22197
    subdirs="$subdirs libltdl"
 
22198
 
 
22199
 
 
22200
 
 
22201
 
 
22202
 
 
22203
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
 
22204
# the user used.  This is so that ltdl.h can pick up the parent projects
 
22205
# config.h file, The first file in AC_CONFIG_HEADERS must contain the
 
22206
# definitions required by ltdl.c.
 
22207
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
 
22208
 
 
22209
 
 
22210
 
 
22211
 
 
22212
 
 
22213
 
 
22214
 
 
22215
 
 
22216
 
 
22217
for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
 
22218
do
 
22219
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22220
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22221
$as_echo_n "checking for $ac_header... " >&6; }
 
22222
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22223
  $as_echo_n "(cached) " >&6
 
22224
else
 
22225
  cat >conftest.$ac_ext <<_ACEOF
 
22226
/* confdefs.h.  */
 
22227
_ACEOF
 
22228
cat confdefs.h >>conftest.$ac_ext
 
22229
cat >>conftest.$ac_ext <<_ACEOF
 
22230
/* end confdefs.h.  */
 
22231
$ac_includes_default
 
22232
 
 
22233
#include <$ac_header>
 
22234
_ACEOF
 
22235
rm -f conftest.$ac_objext
 
22236
if { (ac_try="$ac_compile"
 
22237
case "(($ac_try" in
 
22238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22239
  *) ac_try_echo=$ac_try;;
 
22240
esac
 
22241
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22242
$as_echo "$ac_try_echo") >&5
 
22243
  (eval "$ac_compile") 2>conftest.er1
 
22244
  ac_status=$?
 
22245
  grep -v '^ *+' conftest.er1 >conftest.err
 
22246
  rm -f conftest.er1
 
22247
  cat conftest.err >&5
 
22248
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22249
  (exit $ac_status); } && {
 
22250
         test -z "$ac_c_werror_flag" ||
 
22251
         test ! -s conftest.err
 
22252
       } && test -s conftest.$ac_objext; then
 
22253
  eval "$as_ac_Header=yes"
 
22254
else
 
22255
  $as_echo "$as_me: failed program was:" >&5
 
22256
sed 's/^/| /' conftest.$ac_ext >&5
 
22257
 
 
22258
        eval "$as_ac_Header=no"
 
22259
fi
 
22260
 
 
22261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22262
fi
 
22263
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22264
                 $as_echo "$as_val"'`
 
22265
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22266
$as_echo "$ac_res" >&6; }
 
22267
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22268
                 $as_echo "$as_val"'`
 
22269
   if test "x$as_val" = x""yes; then
 
22270
  cat >>confdefs.h <<_ACEOF
 
22271
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22272
_ACEOF
 
22273
 
 
22274
fi
 
22275
 
 
22276
done
 
22277
 
 
22278
 
 
22279
 
 
22280
 
 
22281
 
 
22282
for ac_func in closedir opendir readdir
 
22283
do
 
22284
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22285
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22286
$as_echo_n "checking for $ac_func... " >&6; }
 
22287
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
22288
  $as_echo_n "(cached) " >&6
 
22289
else
 
22290
  cat >conftest.$ac_ext <<_ACEOF
 
22291
/* confdefs.h.  */
 
22292
_ACEOF
 
22293
cat confdefs.h >>conftest.$ac_ext
 
22294
cat >>conftest.$ac_ext <<_ACEOF
 
22295
/* end confdefs.h.  */
 
22296
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22297
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22298
#define $ac_func innocuous_$ac_func
 
22299
 
 
22300
/* System header to define __stub macros and hopefully few prototypes,
 
22301
    which can conflict with char $ac_func (); below.
 
22302
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22303
    <limits.h> exists even on freestanding compilers.  */
 
22304
 
 
22305
#ifdef __STDC__
 
22306
# include <limits.h>
 
22307
#else
 
22308
# include <assert.h>
 
22309
#endif
 
22310
 
 
22311
#undef $ac_func
 
22312
 
 
22313
/* Override any GCC internal prototype to avoid an error.
 
22314
   Use char because int might match the return type of a GCC
 
22315
   builtin and then its argument prototype would still apply.  */
 
22316
#ifdef __cplusplus
 
22317
extern "C"
 
22318
#endif
 
22319
char $ac_func ();
 
22320
/* The GNU C library defines this for functions which it implements
 
22321
    to always fail with ENOSYS.  Some functions are actually named
 
22322
    something starting with __ and the normal name is an alias.  */
 
22323
#if defined __stub_$ac_func || defined __stub___$ac_func
 
22324
choke me
 
22325
#endif
 
22326
 
 
22327
int
 
22328
main ()
 
22329
{
 
22330
return $ac_func ();
 
22331
  ;
 
22332
  return 0;
 
22333
}
 
22334
_ACEOF
 
22335
rm -f conftest.$ac_objext conftest$ac_exeext
 
22336
if { (ac_try="$ac_link"
 
22337
case "(($ac_try" in
 
22338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22339
  *) ac_try_echo=$ac_try;;
 
22340
esac
 
22341
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22342
$as_echo "$ac_try_echo") >&5
 
22343
  (eval "$ac_link") 2>conftest.er1
 
22344
  ac_status=$?
 
22345
  grep -v '^ *+' conftest.er1 >conftest.err
 
22346
  rm -f conftest.er1
 
22347
  cat conftest.err >&5
 
22348
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22349
  (exit $ac_status); } && {
 
22350
         test -z "$ac_c_werror_flag" ||
 
22351
         test ! -s conftest.err
 
22352
       } && test -s conftest$ac_exeext && {
 
22353
         test "$cross_compiling" = yes ||
 
22354
         $as_test_x conftest$ac_exeext
 
22355
       }; then
 
22356
  eval "$as_ac_var=yes"
 
22357
else
 
22358
  $as_echo "$as_me: failed program was:" >&5
 
22359
sed 's/^/| /' conftest.$ac_ext >&5
 
22360
 
 
22361
        eval "$as_ac_var=no"
 
22362
fi
 
22363
 
 
22364
rm -rf conftest.dSYM
 
22365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22366
      conftest$ac_exeext conftest.$ac_ext
 
22367
fi
 
22368
ac_res=`eval 'as_val=${'$as_ac_var'}
 
22369
                 $as_echo "$as_val"'`
 
22370
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22371
$as_echo "$ac_res" >&6; }
 
22372
as_val=`eval 'as_val=${'$as_ac_var'}
 
22373
                 $as_echo "$as_val"'`
 
22374
   if test "x$as_val" = x""yes; then
 
22375
  cat >>confdefs.h <<_ACEOF
 
22376
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22377
_ACEOF
 
22378
 
 
22379
else
 
22380
 
 
22381
 
 
22382
  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
 
22383
 
 
22384
fi
 
22385
done
 
22386
 
 
22387
 
 
22388
 
 
22389
for ac_func in strlcat strlcpy
 
22390
do
 
22391
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22392
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22393
$as_echo_n "checking for $ac_func... " >&6; }
 
22394
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
22395
  $as_echo_n "(cached) " >&6
 
22396
else
 
22397
  cat >conftest.$ac_ext <<_ACEOF
 
22398
/* confdefs.h.  */
 
22399
_ACEOF
 
22400
cat confdefs.h >>conftest.$ac_ext
 
22401
cat >>conftest.$ac_ext <<_ACEOF
 
22402
/* end confdefs.h.  */
 
22403
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22404
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22405
#define $ac_func innocuous_$ac_func
 
22406
 
 
22407
/* System header to define __stub macros and hopefully few prototypes,
 
22408
    which can conflict with char $ac_func (); below.
 
22409
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22410
    <limits.h> exists even on freestanding compilers.  */
 
22411
 
 
22412
#ifdef __STDC__
 
22413
# include <limits.h>
 
22414
#else
 
22415
# include <assert.h>
 
22416
#endif
 
22417
 
 
22418
#undef $ac_func
 
22419
 
 
22420
/* Override any GCC internal prototype to avoid an error.
 
22421
   Use char because int might match the return type of a GCC
 
22422
   builtin and then its argument prototype would still apply.  */
 
22423
#ifdef __cplusplus
 
22424
extern "C"
 
22425
#endif
 
22426
char $ac_func ();
 
22427
/* The GNU C library defines this for functions which it implements
 
22428
    to always fail with ENOSYS.  Some functions are actually named
 
22429
    something starting with __ and the normal name is an alias.  */
 
22430
#if defined __stub_$ac_func || defined __stub___$ac_func
 
22431
choke me
 
22432
#endif
 
22433
 
 
22434
int
 
22435
main ()
 
22436
{
 
22437
return $ac_func ();
 
22438
  ;
 
22439
  return 0;
 
22440
}
 
22441
_ACEOF
 
22442
rm -f conftest.$ac_objext conftest$ac_exeext
 
22443
if { (ac_try="$ac_link"
 
22444
case "(($ac_try" in
 
22445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22446
  *) ac_try_echo=$ac_try;;
 
22447
esac
 
22448
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22449
$as_echo "$ac_try_echo") >&5
 
22450
  (eval "$ac_link") 2>conftest.er1
 
22451
  ac_status=$?
 
22452
  grep -v '^ *+' conftest.er1 >conftest.err
 
22453
  rm -f conftest.er1
 
22454
  cat conftest.err >&5
 
22455
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22456
  (exit $ac_status); } && {
 
22457
         test -z "$ac_c_werror_flag" ||
 
22458
         test ! -s conftest.err
 
22459
       } && test -s conftest$ac_exeext && {
 
22460
         test "$cross_compiling" = yes ||
 
22461
         $as_test_x conftest$ac_exeext
 
22462
       }; then
 
22463
  eval "$as_ac_var=yes"
 
22464
else
 
22465
  $as_echo "$as_me: failed program was:" >&5
 
22466
sed 's/^/| /' conftest.$ac_ext >&5
 
22467
 
 
22468
        eval "$as_ac_var=no"
 
22469
fi
 
22470
 
 
22471
rm -rf conftest.dSYM
 
22472
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22473
      conftest$ac_exeext conftest.$ac_ext
 
22474
fi
 
22475
ac_res=`eval 'as_val=${'$as_ac_var'}
 
22476
                 $as_echo "$as_val"'`
 
22477
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22478
$as_echo "$ac_res" >&6; }
 
22479
as_val=`eval 'as_val=${'$as_ac_var'}
 
22480
                 $as_echo "$as_val"'`
 
22481
   if test "x$as_val" = x""yes; then
 
22482
  cat >>confdefs.h <<_ACEOF
 
22483
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22484
_ACEOF
 
22485
 
 
22486
else
 
22487
 
 
22488
 
 
22489
  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
 
22490
 
 
22491
fi
 
22492
done
 
22493
 
 
22494
 
 
22495
 
 
22496
cat >>confdefs.h <<_ACEOF
 
22497
#define LT_LIBEXT "$libext"
 
22498
_ACEOF
 
22499
 
 
22500
 
 
22501
name=ltdl
 
22502
LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
 
22503
 
 
22504
 
 
22505
 
 
22506
 
 
22507
 
 
22508
 
 
22509
 
 
22510
 
 
22511
# Only expand once:
 
22512
 
 
22513
 
 
22514
 
 
22515
  use_ltdl="Yes"
 
22516
 
 
22517
 
 
22518
 
 
22519
 
 
22520
 
 
22521
case $enable_ltdl_convenience in
 
22522
  no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
 
22523
$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
 
22524
   { (exit 1); exit 1; }; } ;;
 
22525
  "") enable_ltdl_convenience=yes
 
22526
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
22527
esac
 
22528
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
 
22529
LTDLDEPS=$LIBLTDL
 
22530
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
 
22531
 
 
22532
 
 
22533
 
 
22534
 
 
22535
 
 
22536
# For backwards non-gettext consistent compatibility...
 
22537
INCLTDL="$LTDLINCL"
 
22538
 
 
22539
 
 
22540
  if test "x$DARWIN9" = "xyes"; then
 
22541
     LIBLTDL_LDFLAGS="-Wl,-unexported_symbol,_lt_*"
 
22542
  fi
 
22543
else
 
22544
  use_ltdl="No (disabled)"
 
22545
fi
 
22546
 if test "x$enable_ltdl" != "xno"; then
 
22547
  ENABLE_LTDL_TRUE=
 
22548
  ENABLE_LTDL_FALSE='#'
 
22549
else
 
22550
  ENABLE_LTDL_TRUE='#'
 
22551
  ENABLE_LTDL_FALSE=
 
22552
fi
 
22553
 
 
22554
 
 
22555
 
 
22556
 
 
22557
 #code that is for Libtool 2.x
 
22558
 
 
22559
 
 
22560
# Checks for libraries.
 
22561
#AC_CHECK_LIB([ICE], [main])
 
22562
#AC_CHECK_LIB([SM], [main])
 
22563
#AC_CHECK_LIB([Xaw], [main])
 
22564
#AC_CHECK_LIB([Xpm], [main])
 
22565
#AC_CHECK_LIB([art_lgpl_2], [main])
 
22566
#AC_CHECK_LIB([cairo], [main])
 
22567
#AC_CHECK_LIB([dl], [main])
 
22568
#AC_CHECK_LIB([fl], [main])
 
22569
#AC_CHECK_LIB([fontconfig], [main])
 
22570
#AC_CHECK_LIB([freetype], [main])
 
22571
#AC_CHECK_LIB([iconv], [main])
 
22572
#AC_CHECK_LIB([intl], [main])
 
22573
#AC_CHECK_LIB([jpeg], [main])
 
22574
#AC_CHECK_LIB([m], [main])
 
22575
#AC_CHECK_LIB([perl], [main])
 
22576
#AC_CHECK_LIB([png], [main])
 
22577
#AC_CHECK_LIB([popt], [main])
 
22578
#AC_CHECK_LIB([xml2], [main])
 
22579
#AC_CHECK_LIB([z], [main])
 
22580
 
 
22581
 
 
22582
 
 
22583
# Check whether --with-efence was given.
 
22584
if test "${with_efence+set}" = set; then
 
22585
  withval=$with_efence;
 
22586
else
 
22587
  with_efence=no
 
22588
fi
 
22589
 
 
22590
if test "x$with_efence" = "xyes"; then
 
22591
        LIBS="$LIBS -lefence"
 
22592
fi
 
22593
 
 
22594
 
 
22595
{ $as_echo "$as_me:$LINENO: checking for X" >&5
 
22596
$as_echo_n "checking for X... " >&6; }
 
22597
 
 
22598
 
 
22599
# Check whether --with-x was given.
 
22600
if test "${with_x+set}" = set; then
 
22601
  withval=$with_x;
 
22602
fi
 
22603
 
 
22604
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
22605
if test "x$with_x" = xno; then
 
22606
  # The user explicitly disabled X.
 
22607
  have_x=disabled
 
22608
else
 
22609
  case $x_includes,$x_libraries in #(
 
22610
    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
 
22611
$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
 
22612
   { (exit 1); exit 1; }; };; #(
 
22613
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
 
22614
  $as_echo_n "(cached) " >&6
 
22615
else
 
22616
  # One or both of the vars are not set, and there is no cached value.
 
22617
ac_x_includes=no ac_x_libraries=no
 
22618
rm -f -r conftest.dir
 
22619
if mkdir conftest.dir; then
 
22620
  cd conftest.dir
 
22621
  cat >Imakefile <<'_ACEOF'
 
22622
incroot:
 
22623
        @echo incroot='${INCROOT}'
 
22624
usrlibdir:
 
22625
        @echo usrlibdir='${USRLIBDIR}'
 
22626
libdir:
 
22627
        @echo libdir='${LIBDIR}'
 
22628
_ACEOF
 
22629
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
 
22630
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
22631
    for ac_var in incroot usrlibdir libdir; do
 
22632
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
22633
    done
 
22634
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
22635
    for ac_extension in a so sl dylib la dll; do
 
22636
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
22637
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
22638
        ac_im_usrlibdir=$ac_im_libdir; break
 
22639
      fi
 
22640
    done
 
22641
    # Screen out bogus values from the imake configuration.  They are
 
22642
    # bogus both because they are the default anyway, and because
 
22643
    # using them would break gcc on systems where it needs fixed includes.
 
22644
    case $ac_im_incroot in
 
22645
        /usr/include) ac_x_includes= ;;
 
22646
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
22647
    esac
 
22648
    case $ac_im_usrlibdir in
 
22649
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
 
22650
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
22651
    esac
 
22652
  fi
 
22653
  cd ..
 
22654
  rm -f -r conftest.dir
 
22655
fi
 
22656
 
 
22657
# Standard set of common directories for X headers.
 
22658
# Check X11 before X11Rn because it is often a symlink to the current release.
 
22659
ac_x_header_dirs='
 
22660
/usr/X11/include
 
22661
/usr/X11R6/include
 
22662
/usr/X11R5/include
 
22663
/usr/X11R4/include
 
22664
 
 
22665
/usr/include/X11
 
22666
/usr/include/X11R6
 
22667
/usr/include/X11R5
 
22668
/usr/include/X11R4
 
22669
 
 
22670
/usr/local/X11/include
 
22671
/usr/local/X11R6/include
 
22672
/usr/local/X11R5/include
 
22673
/usr/local/X11R4/include
 
22674
 
 
22675
/usr/local/include/X11
 
22676
/usr/local/include/X11R6
 
22677
/usr/local/include/X11R5
 
22678
/usr/local/include/X11R4
 
22679
 
 
22680
/usr/X386/include
 
22681
/usr/x386/include
 
22682
/usr/XFree86/include/X11
 
22683
 
 
22684
/usr/include
 
22685
/usr/local/include
 
22686
/usr/unsupported/include
 
22687
/usr/athena/include
 
22688
/usr/local/x11r5/include
 
22689
/usr/lpp/Xamples/include
 
22690
 
 
22691
/usr/openwin/include
 
22692
/usr/openwin/share/include'
 
22693
 
 
22694
if test "$ac_x_includes" = no; then
 
22695
  # Guess where to find include files, by looking for Xlib.h.
 
22696
  # First, try using that file with no special directory specified.
 
22697
  cat >conftest.$ac_ext <<_ACEOF
 
22698
/* confdefs.h.  */
 
22699
_ACEOF
 
22700
cat confdefs.h >>conftest.$ac_ext
 
22701
cat >>conftest.$ac_ext <<_ACEOF
 
22702
/* end confdefs.h.  */
 
22703
#include <X11/Xlib.h>
 
22704
_ACEOF
 
22705
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22706
case "(($ac_try" in
 
22707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22708
  *) ac_try_echo=$ac_try;;
 
22709
esac
 
22710
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22711
$as_echo "$ac_try_echo") >&5
 
22712
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22713
  ac_status=$?
 
22714
  grep -v '^ *+' conftest.er1 >conftest.err
 
22715
  rm -f conftest.er1
 
22716
  cat conftest.err >&5
 
22717
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22718
  (exit $ac_status); } >/dev/null && {
 
22719
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22720
         test ! -s conftest.err
 
22721
       }; then
 
22722
  # We can compile using X headers with no special include directory.
 
22723
ac_x_includes=
 
22724
else
 
22725
  $as_echo "$as_me: failed program was:" >&5
 
22726
sed 's/^/| /' conftest.$ac_ext >&5
 
22727
 
 
22728
  for ac_dir in $ac_x_header_dirs; do
 
22729
  if test -r "$ac_dir/X11/Xlib.h"; then
 
22730
    ac_x_includes=$ac_dir
 
22731
    break
 
22732
  fi
 
22733
done
 
22734
fi
 
22735
 
 
22736
rm -f conftest.err conftest.$ac_ext
 
22737
fi # $ac_x_includes = no
 
22738
 
 
22739
if test "$ac_x_libraries" = no; then
 
22740
  # Check for the libraries.
 
22741
  # See if we find them without any special options.
 
22742
  # Don't add to $LIBS permanently.
 
22743
  ac_save_LIBS=$LIBS
 
22744
  LIBS="-lX11 $LIBS"
 
22745
  cat >conftest.$ac_ext <<_ACEOF
 
22746
/* confdefs.h.  */
 
22747
_ACEOF
 
22748
cat confdefs.h >>conftest.$ac_ext
 
22749
cat >>conftest.$ac_ext <<_ACEOF
 
22750
/* end confdefs.h.  */
 
22751
#include <X11/Xlib.h>
 
22752
int
 
22753
main ()
 
22754
{
 
22755
XrmInitialize ()
 
22756
  ;
 
22757
  return 0;
 
22758
}
 
22759
_ACEOF
 
22760
rm -f conftest.$ac_objext conftest$ac_exeext
 
22761
if { (ac_try="$ac_link"
 
22762
case "(($ac_try" in
 
22763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22764
  *) ac_try_echo=$ac_try;;
 
22765
esac
 
22766
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22767
$as_echo "$ac_try_echo") >&5
 
22768
  (eval "$ac_link") 2>conftest.er1
 
22769
  ac_status=$?
 
22770
  grep -v '^ *+' conftest.er1 >conftest.err
 
22771
  rm -f conftest.er1
 
22772
  cat conftest.err >&5
 
22773
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22774
  (exit $ac_status); } && {
 
22775
         test -z "$ac_c_werror_flag" ||
 
22776
         test ! -s conftest.err
 
22777
       } && test -s conftest$ac_exeext && {
 
22778
         test "$cross_compiling" = yes ||
 
22779
         $as_test_x conftest$ac_exeext
 
22780
       }; then
 
22781
  LIBS=$ac_save_LIBS
 
22782
# We can link X programs with no special library path.
 
22783
ac_x_libraries=
 
22784
else
 
22785
  $as_echo "$as_me: failed program was:" >&5
 
22786
sed 's/^/| /' conftest.$ac_ext >&5
 
22787
 
 
22788
        LIBS=$ac_save_LIBS
 
22789
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
22790
do
 
22791
  # Don't even attempt the hair of trying to link an X program!
 
22792
  for ac_extension in a so sl dylib la dll; do
 
22793
    if test -r "$ac_dir/libX11.$ac_extension"; then
 
22794
      ac_x_libraries=$ac_dir
 
22795
      break 2
 
22796
    fi
 
22797
  done
 
22798
done
 
22799
fi
 
22800
 
 
22801
rm -rf conftest.dSYM
 
22802
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22803
      conftest$ac_exeext conftest.$ac_ext
 
22804
fi # $ac_x_libraries = no
 
22805
 
 
22806
case $ac_x_includes,$ac_x_libraries in #(
 
22807
  no,* | *,no | *\'*)
 
22808
    # Didn't find X, or a directory has "'" in its name.
 
22809
    ac_cv_have_x="have_x=no";; #(
 
22810
  *)
 
22811
    # Record where we found X for the cache.
 
22812
    ac_cv_have_x="have_x=yes\
 
22813
        ac_x_includes='$ac_x_includes'\
 
22814
        ac_x_libraries='$ac_x_libraries'"
 
22815
esac
 
22816
fi
 
22817
;; #(
 
22818
    *) have_x=yes;;
 
22819
  esac
 
22820
  eval "$ac_cv_have_x"
 
22821
fi # $with_x != no
 
22822
 
 
22823
if test "$have_x" != yes; then
 
22824
  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
 
22825
$as_echo "$have_x" >&6; }
 
22826
  no_x=yes
 
22827
else
 
22828
  # If each of the values was on the command line, it overrides each guess.
 
22829
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
22830
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
22831
  # Update the cache value to reflect the command line values.
 
22832
  ac_cv_have_x="have_x=yes\
 
22833
        ac_x_includes='$x_includes'\
 
22834
        ac_x_libraries='$x_libraries'"
 
22835
  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
22836
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
 
22837
fi
 
22838
 
 
22839
if test "$no_x" = yes; then
 
22840
  # Not all programs may use this symbol, but it does not hurt to define it.
 
22841
 
 
22842
cat >>confdefs.h <<\_ACEOF
 
22843
#define X_DISPLAY_MISSING 1
 
22844
_ACEOF
 
22845
 
 
22846
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
22847
else
 
22848
  if test -n "$x_includes"; then
 
22849
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
22850
  fi
 
22851
 
 
22852
  # It would also be nice to do this for all -L options, not just this one.
 
22853
  if test -n "$x_libraries"; then
 
22854
    X_LIBS="$X_LIBS -L$x_libraries"
 
22855
    # For Solaris; some versions of Sun CC require a space after -R and
 
22856
    # others require no space.  Words are not sufficient . . . .
 
22857
    { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
22858
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
 
22859
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
22860
    ac_xsave_c_werror_flag=$ac_c_werror_flag
 
22861
    ac_c_werror_flag=yes
 
22862
    cat >conftest.$ac_ext <<_ACEOF
 
22863
/* confdefs.h.  */
 
22864
_ACEOF
 
22865
cat confdefs.h >>conftest.$ac_ext
 
22866
cat >>conftest.$ac_ext <<_ACEOF
 
22867
/* end confdefs.h.  */
 
22868
 
 
22869
int
 
22870
main ()
 
22871
{
 
22872
 
 
22873
  ;
 
22874
  return 0;
 
22875
}
 
22876
_ACEOF
 
22877
rm -f conftest.$ac_objext conftest$ac_exeext
 
22878
if { (ac_try="$ac_link"
 
22879
case "(($ac_try" in
 
22880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22881
  *) ac_try_echo=$ac_try;;
 
22882
esac
 
22883
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22884
$as_echo "$ac_try_echo") >&5
 
22885
  (eval "$ac_link") 2>conftest.er1
 
22886
  ac_status=$?
 
22887
  grep -v '^ *+' conftest.er1 >conftest.err
 
22888
  rm -f conftest.er1
 
22889
  cat conftest.err >&5
 
22890
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22891
  (exit $ac_status); } && {
 
22892
         test -z "$ac_c_werror_flag" ||
 
22893
         test ! -s conftest.err
 
22894
       } && test -s conftest$ac_exeext && {
 
22895
         test "$cross_compiling" = yes ||
 
22896
         $as_test_x conftest$ac_exeext
 
22897
       }; then
 
22898
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
22899
$as_echo "no" >&6; }
 
22900
       X_LIBS="$X_LIBS -R$x_libraries"
 
22901
else
 
22902
  $as_echo "$as_me: failed program was:" >&5
 
22903
sed 's/^/| /' conftest.$ac_ext >&5
 
22904
 
 
22905
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
22906
       cat >conftest.$ac_ext <<_ACEOF
 
22907
/* confdefs.h.  */
 
22908
_ACEOF
 
22909
cat confdefs.h >>conftest.$ac_ext
 
22910
cat >>conftest.$ac_ext <<_ACEOF
 
22911
/* end confdefs.h.  */
 
22912
 
 
22913
int
 
22914
main ()
 
22915
{
 
22916
 
 
22917
  ;
 
22918
  return 0;
 
22919
}
 
22920
_ACEOF
 
22921
rm -f conftest.$ac_objext conftest$ac_exeext
 
22922
if { (ac_try="$ac_link"
 
22923
case "(($ac_try" in
 
22924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22925
  *) ac_try_echo=$ac_try;;
 
22926
esac
 
22927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22928
$as_echo "$ac_try_echo") >&5
 
22929
  (eval "$ac_link") 2>conftest.er1
 
22930
  ac_status=$?
 
22931
  grep -v '^ *+' conftest.er1 >conftest.err
 
22932
  rm -f conftest.er1
 
22933
  cat conftest.err >&5
 
22934
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22935
  (exit $ac_status); } && {
 
22936
         test -z "$ac_c_werror_flag" ||
 
22937
         test ! -s conftest.err
 
22938
       } && test -s conftest$ac_exeext && {
 
22939
         test "$cross_compiling" = yes ||
 
22940
         $as_test_x conftest$ac_exeext
 
22941
       }; then
 
22942
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22943
$as_echo "yes" >&6; }
 
22944
          X_LIBS="$X_LIBS -R $x_libraries"
 
22945
else
 
22946
  $as_echo "$as_me: failed program was:" >&5
 
22947
sed 's/^/| /' conftest.$ac_ext >&5
 
22948
 
 
22949
        { $as_echo "$as_me:$LINENO: result: neither works" >&5
 
22950
$as_echo "neither works" >&6; }
 
22951
fi
 
22952
 
 
22953
rm -rf conftest.dSYM
 
22954
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22955
      conftest$ac_exeext conftest.$ac_ext
 
22956
fi
 
22957
 
 
22958
rm -rf conftest.dSYM
 
22959
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22960
      conftest$ac_exeext conftest.$ac_ext
 
22961
    ac_c_werror_flag=$ac_xsave_c_werror_flag
 
22962
    LIBS=$ac_xsave_LIBS
 
22963
  fi
 
22964
 
 
22965
  # Check for system-dependent libraries X programs must link with.
 
22966
  # Do this before checking for the system-independent R6 libraries
 
22967
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
22968
 
 
22969
  if test "$ISC" = yes; then
 
22970
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
22971
  else
 
22972
    # Martyn Johnson says this is needed for Ultrix, if the X
 
22973
    # libraries were built with DECnet support.  And Karl Berry says
 
22974
    # the Alpha needs dnet_stub (dnet does not exist).
 
22975
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
22976
    cat >conftest.$ac_ext <<_ACEOF
 
22977
/* confdefs.h.  */
 
22978
_ACEOF
 
22979
cat confdefs.h >>conftest.$ac_ext
 
22980
cat >>conftest.$ac_ext <<_ACEOF
 
22981
/* end confdefs.h.  */
 
22982
 
 
22983
/* Override any GCC internal prototype to avoid an error.
 
22984
   Use char because int might match the return type of a GCC
 
22985
   builtin and then its argument prototype would still apply.  */
 
22986
#ifdef __cplusplus
 
22987
extern "C"
 
22988
#endif
 
22989
char XOpenDisplay ();
 
22990
int
 
22991
main ()
 
22992
{
 
22993
return XOpenDisplay ();
 
22994
  ;
 
22995
  return 0;
 
22996
}
 
22997
_ACEOF
 
22998
rm -f conftest.$ac_objext conftest$ac_exeext
 
22999
if { (ac_try="$ac_link"
 
23000
case "(($ac_try" in
 
23001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23002
  *) ac_try_echo=$ac_try;;
 
23003
esac
 
23004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23005
$as_echo "$ac_try_echo") >&5
 
23006
  (eval "$ac_link") 2>conftest.er1
 
23007
  ac_status=$?
 
23008
  grep -v '^ *+' conftest.er1 >conftest.err
 
23009
  rm -f conftest.er1
 
23010
  cat conftest.err >&5
 
23011
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23012
  (exit $ac_status); } && {
 
23013
         test -z "$ac_c_werror_flag" ||
 
23014
         test ! -s conftest.err
 
23015
       } && test -s conftest$ac_exeext && {
 
23016
         test "$cross_compiling" = yes ||
 
23017
         $as_test_x conftest$ac_exeext
 
23018
       }; then
 
23019
  :
 
23020
else
 
23021
  $as_echo "$as_me: failed program was:" >&5
 
23022
sed 's/^/| /' conftest.$ac_ext >&5
 
23023
 
 
23024
        { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
23025
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
 
23026
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
23027
  $as_echo_n "(cached) " >&6
 
23028
else
 
23029
  ac_check_lib_save_LIBS=$LIBS
 
23030
LIBS="-ldnet  $LIBS"
 
23031
cat >conftest.$ac_ext <<_ACEOF
 
23032
/* confdefs.h.  */
 
23033
_ACEOF
 
23034
cat confdefs.h >>conftest.$ac_ext
 
23035
cat >>conftest.$ac_ext <<_ACEOF
 
23036
/* end confdefs.h.  */
 
23037
 
 
23038
/* Override any GCC internal prototype to avoid an error.
 
23039
   Use char because int might match the return type of a GCC
 
23040
   builtin and then its argument prototype would still apply.  */
 
23041
#ifdef __cplusplus
 
23042
extern "C"
 
23043
#endif
 
23044
char dnet_ntoa ();
 
23045
int
 
23046
main ()
 
23047
{
 
23048
return dnet_ntoa ();
 
23049
  ;
 
23050
  return 0;
 
23051
}
 
23052
_ACEOF
 
23053
rm -f conftest.$ac_objext conftest$ac_exeext
 
23054
if { (ac_try="$ac_link"
 
23055
case "(($ac_try" in
 
23056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23057
  *) ac_try_echo=$ac_try;;
 
23058
esac
 
23059
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23060
$as_echo "$ac_try_echo") >&5
 
23061
  (eval "$ac_link") 2>conftest.er1
 
23062
  ac_status=$?
 
23063
  grep -v '^ *+' conftest.er1 >conftest.err
 
23064
  rm -f conftest.er1
 
23065
  cat conftest.err >&5
 
23066
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23067
  (exit $ac_status); } && {
 
23068
         test -z "$ac_c_werror_flag" ||
 
23069
         test ! -s conftest.err
 
23070
       } && test -s conftest$ac_exeext && {
 
23071
         test "$cross_compiling" = yes ||
 
23072
         $as_test_x conftest$ac_exeext
 
23073
       }; then
 
23074
  ac_cv_lib_dnet_dnet_ntoa=yes
 
23075
else
 
23076
  $as_echo "$as_me: failed program was:" >&5
 
23077
sed 's/^/| /' conftest.$ac_ext >&5
 
23078
 
 
23079
        ac_cv_lib_dnet_dnet_ntoa=no
 
23080
fi
 
23081
 
 
23082
rm -rf conftest.dSYM
 
23083
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23084
      conftest$ac_exeext conftest.$ac_ext
 
23085
LIBS=$ac_check_lib_save_LIBS
 
23086
fi
 
23087
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
23088
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
23089
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
 
23090
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
23091
fi
 
23092
 
 
23093
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
23094
      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
23095
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
 
23096
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
23097
  $as_echo_n "(cached) " >&6
 
23098
else
 
23099
  ac_check_lib_save_LIBS=$LIBS
 
23100
LIBS="-ldnet_stub  $LIBS"
 
23101
cat >conftest.$ac_ext <<_ACEOF
 
23102
/* confdefs.h.  */
 
23103
_ACEOF
 
23104
cat confdefs.h >>conftest.$ac_ext
 
23105
cat >>conftest.$ac_ext <<_ACEOF
 
23106
/* end confdefs.h.  */
 
23107
 
 
23108
/* Override any GCC internal prototype to avoid an error.
 
23109
   Use char because int might match the return type of a GCC
 
23110
   builtin and then its argument prototype would still apply.  */
 
23111
#ifdef __cplusplus
 
23112
extern "C"
 
23113
#endif
 
23114
char dnet_ntoa ();
 
23115
int
 
23116
main ()
 
23117
{
 
23118
return dnet_ntoa ();
 
23119
  ;
 
23120
  return 0;
 
23121
}
 
23122
_ACEOF
 
23123
rm -f conftest.$ac_objext conftest$ac_exeext
 
23124
if { (ac_try="$ac_link"
 
23125
case "(($ac_try" in
 
23126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23127
  *) ac_try_echo=$ac_try;;
 
23128
esac
 
23129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23130
$as_echo "$ac_try_echo") >&5
 
23131
  (eval "$ac_link") 2>conftest.er1
 
23132
  ac_status=$?
 
23133
  grep -v '^ *+' conftest.er1 >conftest.err
 
23134
  rm -f conftest.er1
 
23135
  cat conftest.err >&5
 
23136
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23137
  (exit $ac_status); } && {
 
23138
         test -z "$ac_c_werror_flag" ||
 
23139
         test ! -s conftest.err
 
23140
       } && test -s conftest$ac_exeext && {
 
23141
         test "$cross_compiling" = yes ||
 
23142
         $as_test_x conftest$ac_exeext
 
23143
       }; then
 
23144
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
23145
else
 
23146
  $as_echo "$as_me: failed program was:" >&5
 
23147
sed 's/^/| /' conftest.$ac_ext >&5
 
23148
 
 
23149
        ac_cv_lib_dnet_stub_dnet_ntoa=no
 
23150
fi
 
23151
 
 
23152
rm -rf conftest.dSYM
 
23153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23154
      conftest$ac_exeext conftest.$ac_ext
 
23155
LIBS=$ac_check_lib_save_LIBS
 
23156
fi
 
23157
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
23158
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
23159
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
 
23160
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
23161
fi
 
23162
 
 
23163
    fi
 
23164
fi
 
23165
 
 
23166
rm -rf conftest.dSYM
 
23167
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23168
      conftest$ac_exeext conftest.$ac_ext
 
23169
    LIBS="$ac_xsave_LIBS"
 
23170
 
 
23171
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
23172
    # to get the SysV transport functions.
 
23173
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
23174
    # needs -lnsl.
 
23175
    # The nsl library prevents programs from opening the X display
 
23176
    # on Irix 5.2, according to T.E. Dickey.
 
23177
    # The functions gethostbyname, getservbyname, and inet_addr are
 
23178
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
23179
    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
23180
$as_echo_n "checking for gethostbyname... " >&6; }
 
23181
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
23182
  $as_echo_n "(cached) " >&6
 
23183
else
 
23184
  cat >conftest.$ac_ext <<_ACEOF
 
23185
/* confdefs.h.  */
 
23186
_ACEOF
 
23187
cat confdefs.h >>conftest.$ac_ext
 
23188
cat >>conftest.$ac_ext <<_ACEOF
 
23189
/* end confdefs.h.  */
 
23190
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
23191
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23192
#define gethostbyname innocuous_gethostbyname
 
23193
 
 
23194
/* System header to define __stub macros and hopefully few prototypes,
 
23195
    which can conflict with char gethostbyname (); below.
 
23196
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23197
    <limits.h> exists even on freestanding compilers.  */
 
23198
 
 
23199
#ifdef __STDC__
 
23200
# include <limits.h>
 
23201
#else
 
23202
# include <assert.h>
 
23203
#endif
 
23204
 
 
23205
#undef gethostbyname
 
23206
 
 
23207
/* Override any GCC internal prototype to avoid an error.
 
23208
   Use char because int might match the return type of a GCC
 
23209
   builtin and then its argument prototype would still apply.  */
 
23210
#ifdef __cplusplus
 
23211
extern "C"
 
23212
#endif
 
23213
char gethostbyname ();
 
23214
/* The GNU C library defines this for functions which it implements
 
23215
    to always fail with ENOSYS.  Some functions are actually named
 
23216
    something starting with __ and the normal name is an alias.  */
 
23217
#if defined __stub_gethostbyname || defined __stub___gethostbyname
 
23218
choke me
 
23219
#endif
 
23220
 
 
23221
int
 
23222
main ()
 
23223
{
 
23224
return gethostbyname ();
 
23225
  ;
 
23226
  return 0;
 
23227
}
 
23228
_ACEOF
 
23229
rm -f conftest.$ac_objext conftest$ac_exeext
 
23230
if { (ac_try="$ac_link"
 
23231
case "(($ac_try" in
 
23232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23233
  *) ac_try_echo=$ac_try;;
 
23234
esac
 
23235
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23236
$as_echo "$ac_try_echo") >&5
 
23237
  (eval "$ac_link") 2>conftest.er1
 
23238
  ac_status=$?
 
23239
  grep -v '^ *+' conftest.er1 >conftest.err
 
23240
  rm -f conftest.er1
 
23241
  cat conftest.err >&5
 
23242
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23243
  (exit $ac_status); } && {
 
23244
         test -z "$ac_c_werror_flag" ||
 
23245
         test ! -s conftest.err
 
23246
       } && test -s conftest$ac_exeext && {
 
23247
         test "$cross_compiling" = yes ||
 
23248
         $as_test_x conftest$ac_exeext
 
23249
       }; then
 
23250
  ac_cv_func_gethostbyname=yes
 
23251
else
 
23252
  $as_echo "$as_me: failed program was:" >&5
 
23253
sed 's/^/| /' conftest.$ac_ext >&5
 
23254
 
 
23255
        ac_cv_func_gethostbyname=no
 
23256
fi
 
23257
 
 
23258
rm -rf conftest.dSYM
 
23259
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23260
      conftest$ac_exeext conftest.$ac_ext
 
23261
fi
 
23262
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
23263
$as_echo "$ac_cv_func_gethostbyname" >&6; }
 
23264
 
 
23265
    if test $ac_cv_func_gethostbyname = no; then
 
23266
      { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
23267
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 
23268
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
23269
  $as_echo_n "(cached) " >&6
 
23270
else
 
23271
  ac_check_lib_save_LIBS=$LIBS
 
23272
LIBS="-lnsl  $LIBS"
 
23273
cat >conftest.$ac_ext <<_ACEOF
 
23274
/* confdefs.h.  */
 
23275
_ACEOF
 
23276
cat confdefs.h >>conftest.$ac_ext
 
23277
cat >>conftest.$ac_ext <<_ACEOF
 
23278
/* end confdefs.h.  */
 
23279
 
 
23280
/* Override any GCC internal prototype to avoid an error.
 
23281
   Use char because int might match the return type of a GCC
 
23282
   builtin and then its argument prototype would still apply.  */
 
23283
#ifdef __cplusplus
 
23284
extern "C"
 
23285
#endif
 
23286
char gethostbyname ();
 
23287
int
 
23288
main ()
 
23289
{
 
23290
return gethostbyname ();
 
23291
  ;
 
23292
  return 0;
 
23293
}
 
23294
_ACEOF
 
23295
rm -f conftest.$ac_objext conftest$ac_exeext
 
23296
if { (ac_try="$ac_link"
 
23297
case "(($ac_try" in
 
23298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23299
  *) ac_try_echo=$ac_try;;
 
23300
esac
 
23301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23302
$as_echo "$ac_try_echo") >&5
 
23303
  (eval "$ac_link") 2>conftest.er1
 
23304
  ac_status=$?
 
23305
  grep -v '^ *+' conftest.er1 >conftest.err
 
23306
  rm -f conftest.er1
 
23307
  cat conftest.err >&5
 
23308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23309
  (exit $ac_status); } && {
 
23310
         test -z "$ac_c_werror_flag" ||
 
23311
         test ! -s conftest.err
 
23312
       } && test -s conftest$ac_exeext && {
 
23313
         test "$cross_compiling" = yes ||
 
23314
         $as_test_x conftest$ac_exeext
 
23315
       }; then
 
23316
  ac_cv_lib_nsl_gethostbyname=yes
 
23317
else
 
23318
  $as_echo "$as_me: failed program was:" >&5
 
23319
sed 's/^/| /' conftest.$ac_ext >&5
 
23320
 
 
23321
        ac_cv_lib_nsl_gethostbyname=no
 
23322
fi
 
23323
 
 
23324
rm -rf conftest.dSYM
 
23325
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23326
      conftest$ac_exeext conftest.$ac_ext
 
23327
LIBS=$ac_check_lib_save_LIBS
 
23328
fi
 
23329
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
23330
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 
23331
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
 
23332
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
23333
fi
 
23334
 
 
23335
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
23336
        { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
23337
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
 
23338
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
23339
  $as_echo_n "(cached) " >&6
 
23340
else
 
23341
  ac_check_lib_save_LIBS=$LIBS
 
23342
LIBS="-lbsd  $LIBS"
 
23343
cat >conftest.$ac_ext <<_ACEOF
 
23344
/* confdefs.h.  */
 
23345
_ACEOF
 
23346
cat confdefs.h >>conftest.$ac_ext
 
23347
cat >>conftest.$ac_ext <<_ACEOF
 
23348
/* end confdefs.h.  */
 
23349
 
 
23350
/* Override any GCC internal prototype to avoid an error.
 
23351
   Use char because int might match the return type of a GCC
 
23352
   builtin and then its argument prototype would still apply.  */
 
23353
#ifdef __cplusplus
 
23354
extern "C"
 
23355
#endif
 
23356
char gethostbyname ();
 
23357
int
 
23358
main ()
 
23359
{
 
23360
return gethostbyname ();
 
23361
  ;
 
23362
  return 0;
 
23363
}
 
23364
_ACEOF
 
23365
rm -f conftest.$ac_objext conftest$ac_exeext
 
23366
if { (ac_try="$ac_link"
 
23367
case "(($ac_try" in
 
23368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23369
  *) ac_try_echo=$ac_try;;
 
23370
esac
 
23371
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23372
$as_echo "$ac_try_echo") >&5
 
23373
  (eval "$ac_link") 2>conftest.er1
 
23374
  ac_status=$?
 
23375
  grep -v '^ *+' conftest.er1 >conftest.err
 
23376
  rm -f conftest.er1
 
23377
  cat conftest.err >&5
 
23378
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23379
  (exit $ac_status); } && {
 
23380
         test -z "$ac_c_werror_flag" ||
 
23381
         test ! -s conftest.err
 
23382
       } && test -s conftest$ac_exeext && {
 
23383
         test "$cross_compiling" = yes ||
 
23384
         $as_test_x conftest$ac_exeext
 
23385
       }; then
 
23386
  ac_cv_lib_bsd_gethostbyname=yes
 
23387
else
 
23388
  $as_echo "$as_me: failed program was:" >&5
 
23389
sed 's/^/| /' conftest.$ac_ext >&5
 
23390
 
 
23391
        ac_cv_lib_bsd_gethostbyname=no
 
23392
fi
 
23393
 
 
23394
rm -rf conftest.dSYM
 
23395
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23396
      conftest$ac_exeext conftest.$ac_ext
 
23397
LIBS=$ac_check_lib_save_LIBS
 
23398
fi
 
23399
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
23400
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
 
23401
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
 
23402
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
23403
fi
 
23404
 
 
23405
      fi
 
23406
    fi
 
23407
 
 
23408
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
23409
    # socket/setsockopt and other routines are undefined under SCO ODT
 
23410
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
23411
    # on later versions), says Simon Leinen: it contains gethostby*
 
23412
    # variants that don't use the name server (or something).  -lsocket
 
23413
    # must be given before -lnsl if both are needed.  We assume that
 
23414
    # if connect needs -lnsl, so does gethostbyname.
 
23415
    { $as_echo "$as_me:$LINENO: checking for connect" >&5
 
23416
$as_echo_n "checking for connect... " >&6; }
 
23417
if test "${ac_cv_func_connect+set}" = set; then
 
23418
  $as_echo_n "(cached) " >&6
 
23419
else
 
23420
  cat >conftest.$ac_ext <<_ACEOF
 
23421
/* confdefs.h.  */
 
23422
_ACEOF
 
23423
cat confdefs.h >>conftest.$ac_ext
 
23424
cat >>conftest.$ac_ext <<_ACEOF
 
23425
/* end confdefs.h.  */
 
23426
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
23427
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23428
#define connect innocuous_connect
 
23429
 
 
23430
/* System header to define __stub macros and hopefully few prototypes,
 
23431
    which can conflict with char connect (); below.
 
23432
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23433
    <limits.h> exists even on freestanding compilers.  */
 
23434
 
 
23435
#ifdef __STDC__
 
23436
# include <limits.h>
 
23437
#else
 
23438
# include <assert.h>
 
23439
#endif
 
23440
 
 
23441
#undef connect
 
23442
 
 
23443
/* Override any GCC internal prototype to avoid an error.
 
23444
   Use char because int might match the return type of a GCC
 
23445
   builtin and then its argument prototype would still apply.  */
 
23446
#ifdef __cplusplus
 
23447
extern "C"
 
23448
#endif
 
23449
char connect ();
 
23450
/* The GNU C library defines this for functions which it implements
 
23451
    to always fail with ENOSYS.  Some functions are actually named
 
23452
    something starting with __ and the normal name is an alias.  */
 
23453
#if defined __stub_connect || defined __stub___connect
 
23454
choke me
 
23455
#endif
 
23456
 
 
23457
int
 
23458
main ()
 
23459
{
 
23460
return connect ();
 
23461
  ;
 
23462
  return 0;
 
23463
}
 
23464
_ACEOF
 
23465
rm -f conftest.$ac_objext conftest$ac_exeext
 
23466
if { (ac_try="$ac_link"
 
23467
case "(($ac_try" in
 
23468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23469
  *) ac_try_echo=$ac_try;;
 
23470
esac
 
23471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23472
$as_echo "$ac_try_echo") >&5
 
23473
  (eval "$ac_link") 2>conftest.er1
 
23474
  ac_status=$?
 
23475
  grep -v '^ *+' conftest.er1 >conftest.err
 
23476
  rm -f conftest.er1
 
23477
  cat conftest.err >&5
 
23478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23479
  (exit $ac_status); } && {
 
23480
         test -z "$ac_c_werror_flag" ||
 
23481
         test ! -s conftest.err
 
23482
       } && test -s conftest$ac_exeext && {
 
23483
         test "$cross_compiling" = yes ||
 
23484
         $as_test_x conftest$ac_exeext
 
23485
       }; then
 
23486
  ac_cv_func_connect=yes
 
23487
else
 
23488
  $as_echo "$as_me: failed program was:" >&5
 
23489
sed 's/^/| /' conftest.$ac_ext >&5
 
23490
 
 
23491
        ac_cv_func_connect=no
 
23492
fi
 
23493
 
 
23494
rm -rf conftest.dSYM
 
23495
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23496
      conftest$ac_exeext conftest.$ac_ext
 
23497
fi
 
23498
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
23499
$as_echo "$ac_cv_func_connect" >&6; }
 
23500
 
 
23501
    if test $ac_cv_func_connect = no; then
 
23502
      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
23503
$as_echo_n "checking for connect in -lsocket... " >&6; }
 
23504
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
23505
  $as_echo_n "(cached) " >&6
 
23506
else
 
23507
  ac_check_lib_save_LIBS=$LIBS
 
23508
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
23509
cat >conftest.$ac_ext <<_ACEOF
 
23510
/* confdefs.h.  */
 
23511
_ACEOF
 
23512
cat confdefs.h >>conftest.$ac_ext
 
23513
cat >>conftest.$ac_ext <<_ACEOF
 
23514
/* end confdefs.h.  */
 
23515
 
 
23516
/* Override any GCC internal prototype to avoid an error.
 
23517
   Use char because int might match the return type of a GCC
 
23518
   builtin and then its argument prototype would still apply.  */
 
23519
#ifdef __cplusplus
 
23520
extern "C"
 
23521
#endif
 
23522
char connect ();
 
23523
int
 
23524
main ()
 
23525
{
 
23526
return connect ();
 
23527
  ;
 
23528
  return 0;
 
23529
}
 
23530
_ACEOF
 
23531
rm -f conftest.$ac_objext conftest$ac_exeext
 
23532
if { (ac_try="$ac_link"
 
23533
case "(($ac_try" in
 
23534
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23535
  *) ac_try_echo=$ac_try;;
 
23536
esac
 
23537
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23538
$as_echo "$ac_try_echo") >&5
 
23539
  (eval "$ac_link") 2>conftest.er1
 
23540
  ac_status=$?
 
23541
  grep -v '^ *+' conftest.er1 >conftest.err
 
23542
  rm -f conftest.er1
 
23543
  cat conftest.err >&5
 
23544
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23545
  (exit $ac_status); } && {
 
23546
         test -z "$ac_c_werror_flag" ||
 
23547
         test ! -s conftest.err
 
23548
       } && test -s conftest$ac_exeext && {
 
23549
         test "$cross_compiling" = yes ||
 
23550
         $as_test_x conftest$ac_exeext
 
23551
       }; then
 
23552
  ac_cv_lib_socket_connect=yes
 
23553
else
 
23554
  $as_echo "$as_me: failed program was:" >&5
 
23555
sed 's/^/| /' conftest.$ac_ext >&5
 
23556
 
 
23557
        ac_cv_lib_socket_connect=no
 
23558
fi
 
23559
 
 
23560
rm -rf conftest.dSYM
 
23561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23562
      conftest$ac_exeext conftest.$ac_ext
 
23563
LIBS=$ac_check_lib_save_LIBS
 
23564
fi
 
23565
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
23566
$as_echo "$ac_cv_lib_socket_connect" >&6; }
 
23567
if test "x$ac_cv_lib_socket_connect" = x""yes; then
 
23568
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
23569
fi
 
23570
 
 
23571
    fi
 
23572
 
 
23573
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
23574
    { $as_echo "$as_me:$LINENO: checking for remove" >&5
 
23575
$as_echo_n "checking for remove... " >&6; }
 
23576
if test "${ac_cv_func_remove+set}" = set; then
 
23577
  $as_echo_n "(cached) " >&6
 
23578
else
 
23579
  cat >conftest.$ac_ext <<_ACEOF
 
23580
/* confdefs.h.  */
 
23581
_ACEOF
 
23582
cat confdefs.h >>conftest.$ac_ext
 
23583
cat >>conftest.$ac_ext <<_ACEOF
 
23584
/* end confdefs.h.  */
 
23585
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
23586
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23587
#define remove innocuous_remove
 
23588
 
 
23589
/* System header to define __stub macros and hopefully few prototypes,
 
23590
    which can conflict with char remove (); below.
 
23591
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23592
    <limits.h> exists even on freestanding compilers.  */
 
23593
 
 
23594
#ifdef __STDC__
 
23595
# include <limits.h>
 
23596
#else
 
23597
# include <assert.h>
 
23598
#endif
 
23599
 
 
23600
#undef remove
 
23601
 
 
23602
/* Override any GCC internal prototype to avoid an error.
 
23603
   Use char because int might match the return type of a GCC
 
23604
   builtin and then its argument prototype would still apply.  */
 
23605
#ifdef __cplusplus
 
23606
extern "C"
 
23607
#endif
 
23608
char remove ();
 
23609
/* The GNU C library defines this for functions which it implements
 
23610
    to always fail with ENOSYS.  Some functions are actually named
 
23611
    something starting with __ and the normal name is an alias.  */
 
23612
#if defined __stub_remove || defined __stub___remove
 
23613
choke me
 
23614
#endif
 
23615
 
 
23616
int
 
23617
main ()
 
23618
{
 
23619
return remove ();
 
23620
  ;
 
23621
  return 0;
 
23622
}
 
23623
_ACEOF
 
23624
rm -f conftest.$ac_objext conftest$ac_exeext
 
23625
if { (ac_try="$ac_link"
 
23626
case "(($ac_try" in
 
23627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23628
  *) ac_try_echo=$ac_try;;
 
23629
esac
 
23630
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23631
$as_echo "$ac_try_echo") >&5
 
23632
  (eval "$ac_link") 2>conftest.er1
 
23633
  ac_status=$?
 
23634
  grep -v '^ *+' conftest.er1 >conftest.err
 
23635
  rm -f conftest.er1
 
23636
  cat conftest.err >&5
 
23637
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23638
  (exit $ac_status); } && {
 
23639
         test -z "$ac_c_werror_flag" ||
 
23640
         test ! -s conftest.err
 
23641
       } && test -s conftest$ac_exeext && {
 
23642
         test "$cross_compiling" = yes ||
 
23643
         $as_test_x conftest$ac_exeext
 
23644
       }; then
 
23645
  ac_cv_func_remove=yes
 
23646
else
 
23647
  $as_echo "$as_me: failed program was:" >&5
 
23648
sed 's/^/| /' conftest.$ac_ext >&5
 
23649
 
 
23650
        ac_cv_func_remove=no
 
23651
fi
 
23652
 
 
23653
rm -rf conftest.dSYM
 
23654
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23655
      conftest$ac_exeext conftest.$ac_ext
 
23656
fi
 
23657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
23658
$as_echo "$ac_cv_func_remove" >&6; }
 
23659
 
 
23660
    if test $ac_cv_func_remove = no; then
 
23661
      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
23662
$as_echo_n "checking for remove in -lposix... " >&6; }
 
23663
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
23664
  $as_echo_n "(cached) " >&6
 
23665
else
 
23666
  ac_check_lib_save_LIBS=$LIBS
 
23667
LIBS="-lposix  $LIBS"
 
23668
cat >conftest.$ac_ext <<_ACEOF
 
23669
/* confdefs.h.  */
 
23670
_ACEOF
 
23671
cat confdefs.h >>conftest.$ac_ext
 
23672
cat >>conftest.$ac_ext <<_ACEOF
 
23673
/* end confdefs.h.  */
 
23674
 
 
23675
/* Override any GCC internal prototype to avoid an error.
 
23676
   Use char because int might match the return type of a GCC
 
23677
   builtin and then its argument prototype would still apply.  */
 
23678
#ifdef __cplusplus
 
23679
extern "C"
 
23680
#endif
 
23681
char remove ();
 
23682
int
 
23683
main ()
 
23684
{
 
23685
return remove ();
 
23686
  ;
 
23687
  return 0;
 
23688
}
 
23689
_ACEOF
 
23690
rm -f conftest.$ac_objext conftest$ac_exeext
 
23691
if { (ac_try="$ac_link"
 
23692
case "(($ac_try" in
 
23693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23694
  *) ac_try_echo=$ac_try;;
 
23695
esac
 
23696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23697
$as_echo "$ac_try_echo") >&5
 
23698
  (eval "$ac_link") 2>conftest.er1
 
23699
  ac_status=$?
 
23700
  grep -v '^ *+' conftest.er1 >conftest.err
 
23701
  rm -f conftest.er1
 
23702
  cat conftest.err >&5
 
23703
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23704
  (exit $ac_status); } && {
 
23705
         test -z "$ac_c_werror_flag" ||
 
23706
         test ! -s conftest.err
 
23707
       } && test -s conftest$ac_exeext && {
 
23708
         test "$cross_compiling" = yes ||
 
23709
         $as_test_x conftest$ac_exeext
 
23710
       }; then
 
23711
  ac_cv_lib_posix_remove=yes
 
23712
else
 
23713
  $as_echo "$as_me: failed program was:" >&5
 
23714
sed 's/^/| /' conftest.$ac_ext >&5
 
23715
 
 
23716
        ac_cv_lib_posix_remove=no
 
23717
fi
 
23718
 
 
23719
rm -rf conftest.dSYM
 
23720
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23721
      conftest$ac_exeext conftest.$ac_ext
 
23722
LIBS=$ac_check_lib_save_LIBS
 
23723
fi
 
23724
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
23725
$as_echo "$ac_cv_lib_posix_remove" >&6; }
 
23726
if test "x$ac_cv_lib_posix_remove" = x""yes; then
 
23727
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
23728
fi
 
23729
 
 
23730
    fi
 
23731
 
 
23732
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
23733
    { $as_echo "$as_me:$LINENO: checking for shmat" >&5
 
23734
$as_echo_n "checking for shmat... " >&6; }
 
23735
if test "${ac_cv_func_shmat+set}" = set; then
 
23736
  $as_echo_n "(cached) " >&6
 
23737
else
 
23738
  cat >conftest.$ac_ext <<_ACEOF
 
23739
/* confdefs.h.  */
 
23740
_ACEOF
 
23741
cat confdefs.h >>conftest.$ac_ext
 
23742
cat >>conftest.$ac_ext <<_ACEOF
 
23743
/* end confdefs.h.  */
 
23744
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
23745
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23746
#define shmat innocuous_shmat
 
23747
 
 
23748
/* System header to define __stub macros and hopefully few prototypes,
 
23749
    which can conflict with char shmat (); below.
 
23750
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23751
    <limits.h> exists even on freestanding compilers.  */
 
23752
 
 
23753
#ifdef __STDC__
 
23754
# include <limits.h>
 
23755
#else
 
23756
# include <assert.h>
 
23757
#endif
 
23758
 
 
23759
#undef shmat
 
23760
 
 
23761
/* Override any GCC internal prototype to avoid an error.
 
23762
   Use char because int might match the return type of a GCC
 
23763
   builtin and then its argument prototype would still apply.  */
 
23764
#ifdef __cplusplus
 
23765
extern "C"
 
23766
#endif
 
23767
char shmat ();
 
23768
/* The GNU C library defines this for functions which it implements
 
23769
    to always fail with ENOSYS.  Some functions are actually named
 
23770
    something starting with __ and the normal name is an alias.  */
 
23771
#if defined __stub_shmat || defined __stub___shmat
 
23772
choke me
 
23773
#endif
 
23774
 
 
23775
int
 
23776
main ()
 
23777
{
 
23778
return shmat ();
 
23779
  ;
 
23780
  return 0;
 
23781
}
 
23782
_ACEOF
 
23783
rm -f conftest.$ac_objext conftest$ac_exeext
 
23784
if { (ac_try="$ac_link"
 
23785
case "(($ac_try" in
 
23786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23787
  *) ac_try_echo=$ac_try;;
 
23788
esac
 
23789
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23790
$as_echo "$ac_try_echo") >&5
 
23791
  (eval "$ac_link") 2>conftest.er1
 
23792
  ac_status=$?
 
23793
  grep -v '^ *+' conftest.er1 >conftest.err
 
23794
  rm -f conftest.er1
 
23795
  cat conftest.err >&5
 
23796
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23797
  (exit $ac_status); } && {
 
23798
         test -z "$ac_c_werror_flag" ||
 
23799
         test ! -s conftest.err
 
23800
       } && test -s conftest$ac_exeext && {
 
23801
         test "$cross_compiling" = yes ||
 
23802
         $as_test_x conftest$ac_exeext
 
23803
       }; then
 
23804
  ac_cv_func_shmat=yes
 
23805
else
 
23806
  $as_echo "$as_me: failed program was:" >&5
 
23807
sed 's/^/| /' conftest.$ac_ext >&5
 
23808
 
 
23809
        ac_cv_func_shmat=no
 
23810
fi
 
23811
 
 
23812
rm -rf conftest.dSYM
 
23813
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23814
      conftest$ac_exeext conftest.$ac_ext
 
23815
fi
 
23816
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
23817
$as_echo "$ac_cv_func_shmat" >&6; }
 
23818
 
 
23819
    if test $ac_cv_func_shmat = no; then
 
23820
      { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
23821
$as_echo_n "checking for shmat in -lipc... " >&6; }
 
23822
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
23823
  $as_echo_n "(cached) " >&6
 
23824
else
 
23825
  ac_check_lib_save_LIBS=$LIBS
 
23826
LIBS="-lipc  $LIBS"
 
23827
cat >conftest.$ac_ext <<_ACEOF
 
23828
/* confdefs.h.  */
 
23829
_ACEOF
 
23830
cat confdefs.h >>conftest.$ac_ext
 
23831
cat >>conftest.$ac_ext <<_ACEOF
 
23832
/* end confdefs.h.  */
 
23833
 
 
23834
/* Override any GCC internal prototype to avoid an error.
 
23835
   Use char because int might match the return type of a GCC
 
23836
   builtin and then its argument prototype would still apply.  */
 
23837
#ifdef __cplusplus
 
23838
extern "C"
 
23839
#endif
 
23840
char shmat ();
 
23841
int
 
23842
main ()
 
23843
{
 
23844
return shmat ();
 
23845
  ;
 
23846
  return 0;
 
23847
}
 
23848
_ACEOF
 
23849
rm -f conftest.$ac_objext conftest$ac_exeext
 
23850
if { (ac_try="$ac_link"
 
23851
case "(($ac_try" in
 
23852
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23853
  *) ac_try_echo=$ac_try;;
 
23854
esac
 
23855
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23856
$as_echo "$ac_try_echo") >&5
 
23857
  (eval "$ac_link") 2>conftest.er1
 
23858
  ac_status=$?
 
23859
  grep -v '^ *+' conftest.er1 >conftest.err
 
23860
  rm -f conftest.er1
 
23861
  cat conftest.err >&5
 
23862
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23863
  (exit $ac_status); } && {
 
23864
         test -z "$ac_c_werror_flag" ||
 
23865
         test ! -s conftest.err
 
23866
       } && test -s conftest$ac_exeext && {
 
23867
         test "$cross_compiling" = yes ||
 
23868
         $as_test_x conftest$ac_exeext
 
23869
       }; then
 
23870
  ac_cv_lib_ipc_shmat=yes
 
23871
else
 
23872
  $as_echo "$as_me: failed program was:" >&5
 
23873
sed 's/^/| /' conftest.$ac_ext >&5
 
23874
 
 
23875
        ac_cv_lib_ipc_shmat=no
 
23876
fi
 
23877
 
 
23878
rm -rf conftest.dSYM
 
23879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23880
      conftest$ac_exeext conftest.$ac_ext
 
23881
LIBS=$ac_check_lib_save_LIBS
 
23882
fi
 
23883
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
23884
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
 
23885
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
 
23886
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
23887
fi
 
23888
 
 
23889
    fi
 
23890
  fi
 
23891
 
 
23892
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
23893
  ac_save_LDFLAGS=$LDFLAGS
 
23894
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
23895
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
23896
  # check for ICE first), but we must link in the order -lSM -lICE or
 
23897
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
23898
  # These have to be linked with before -lX11, unlike the other
 
23899
  # libraries we check for below, so use a different variable.
 
23900
  # John Interrante, Karl Berry
 
23901
  { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
23902
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
 
23903
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
23904
  $as_echo_n "(cached) " >&6
 
23905
else
 
23906
  ac_check_lib_save_LIBS=$LIBS
 
23907
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
23908
cat >conftest.$ac_ext <<_ACEOF
 
23909
/* confdefs.h.  */
 
23910
_ACEOF
 
23911
cat confdefs.h >>conftest.$ac_ext
 
23912
cat >>conftest.$ac_ext <<_ACEOF
 
23913
/* end confdefs.h.  */
 
23914
 
 
23915
/* Override any GCC internal prototype to avoid an error.
 
23916
   Use char because int might match the return type of a GCC
 
23917
   builtin and then its argument prototype would still apply.  */
 
23918
#ifdef __cplusplus
 
23919
extern "C"
 
23920
#endif
 
23921
char IceConnectionNumber ();
 
23922
int
 
23923
main ()
 
23924
{
 
23925
return IceConnectionNumber ();
 
23926
  ;
 
23927
  return 0;
 
23928
}
 
23929
_ACEOF
 
23930
rm -f conftest.$ac_objext conftest$ac_exeext
 
23931
if { (ac_try="$ac_link"
 
23932
case "(($ac_try" in
 
23933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23934
  *) ac_try_echo=$ac_try;;
 
23935
esac
 
23936
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23937
$as_echo "$ac_try_echo") >&5
 
23938
  (eval "$ac_link") 2>conftest.er1
 
23939
  ac_status=$?
 
23940
  grep -v '^ *+' conftest.er1 >conftest.err
 
23941
  rm -f conftest.er1
 
23942
  cat conftest.err >&5
 
23943
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23944
  (exit $ac_status); } && {
 
23945
         test -z "$ac_c_werror_flag" ||
 
23946
         test ! -s conftest.err
 
23947
       } && test -s conftest$ac_exeext && {
 
23948
         test "$cross_compiling" = yes ||
 
23949
         $as_test_x conftest$ac_exeext
 
23950
       }; then
 
23951
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
23952
else
 
23953
  $as_echo "$as_me: failed program was:" >&5
 
23954
sed 's/^/| /' conftest.$ac_ext >&5
 
23955
 
 
23956
        ac_cv_lib_ICE_IceConnectionNumber=no
 
23957
fi
 
23958
 
 
23959
rm -rf conftest.dSYM
 
23960
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23961
      conftest$ac_exeext conftest.$ac_ext
 
23962
LIBS=$ac_check_lib_save_LIBS
 
23963
fi
 
23964
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
23965
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
23966
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
 
23967
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
23968
fi
 
23969
 
 
23970
  LDFLAGS=$ac_save_LDFLAGS
 
23971
 
 
23972
fi
 
23973
 
 
23974
if test "x$no_x" = "xyes"; then
 
23975
  use_xlib="No (disabled or unavailable)"
 
23976
  { $as_echo "$as_me:$LINENO: WARNING: X11 not available." >&5
 
23977
$as_echo "$as_me: WARNING: X11 not available." >&2;}
 
23978
  X_SUBDIRS=""
 
23979
else
 
23980
  use_xlib="Yes"
 
23981
fi
 
23982
 if test "x$use_xlib" = "xYes"; then
 
23983
  WITH_X_TRUE=
 
23984
  WITH_X_FALSE='#'
 
23985
else
 
23986
  WITH_X_TRUE='#'
 
23987
  WITH_X_FALSE=
 
23988
fi
 
23989
 
 
23990
 
 
23991
 
 
23992
# Check whether --enable-swig was given.
 
23993
if test "${enable_swig+set}" = set; then
 
23994
  enableval=$enable_swig;
 
23995
else
 
23996
  enable_swig=yes
 
23997
fi
 
23998
 
 
23999
 
 
24000
if test "x$enable_swig" != "xyes"; then
 
24001
  use_swig="No (disabled)"
 
24002
else
 
24003
  # Extract the first word of "swig", so it can be a program name with args.
 
24004
set dummy swig; ac_word=$2
 
24005
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24006
$as_echo_n "checking for $ac_word... " >&6; }
 
24007
if test "${ac_cv_prog_SWIG+set}" = set; then
 
24008
  $as_echo_n "(cached) " >&6
 
24009
else
 
24010
  if test -n "$SWIG"; then
 
24011
  ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
 
24012
else
 
24013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24014
for as_dir in $PATH
 
24015
do
 
24016
  IFS=$as_save_IFS
 
24017
  test -z "$as_dir" && as_dir=.
 
24018
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24019
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24020
    ac_cv_prog_SWIG="swig"
 
24021
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24022
    break 2
 
24023
  fi
 
24024
done
 
24025
done
 
24026
IFS=$as_save_IFS
 
24027
 
 
24028
fi
 
24029
fi
 
24030
SWIG=$ac_cv_prog_SWIG
 
24031
if test -n "$SWIG"; then
 
24032
  { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
 
24033
$as_echo "$SWIG" >&6; }
 
24034
else
 
24035
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24036
$as_echo "no" >&6; }
 
24037
fi
 
24038
 
 
24039
 
 
24040
  if test "x$SWIG" = "x"; then
 
24041
    use_swig="No (swig not available)"
 
24042
  else
 
24043
    SWIG_VERSION=`$SWIG -version 2>&1 | $GREP Version | cut -d ' ' -f 3`
 
24044
    SWIG_VERSION_MAJOR=`echo $SWIG_VERSION | cut -d '.' -f 1`
 
24045
    SWIG_VERSION_MINOR=`echo $SWIG_VERSION | cut -d '.' -f 2`
 
24046
    if test $SWIG_VERSION_MAJOR -lt 2; then
 
24047
      if test $SWIG_VERSION_MAJOR -lt 1; then
 
24048
        SWIG=
 
24049
      else
 
24050
        if test $SWIG_VERSION_MINOR -lt 3; then
 
24051
          SWIG=
 
24052
        fi
 
24053
      fi
 
24054
    fi
 
24055
    if test "x$SWIG" = "x"; then
 
24056
      { $as_echo "$as_me:$LINENO: WARNING: The version of swig is too old." >&5
 
24057
$as_echo "$as_me: WARNING: The version of swig is too old." >&2;}
 
24058
      use_swig="No (swig too old)"
 
24059
    else
 
24060
      use_swig="Yes"
 
24061
    fi
 
24062
fi
 
24063
fi
 
24064
 if test "x$SWIG" != "x"; then
 
24065
  WITH_SWIG_TRUE=
 
24066
  WITH_SWIG_FALSE='#'
 
24067
else
 
24068
  WITH_SWIG_TRUE='#'
 
24069
  WITH_SWIG_FALSE=
 
24070
fi
 
24071
 
 
24072
 
 
24073
 
 
24074
# Check whether --enable-sharp was given.
 
24075
if test "${enable_sharp+set}" = set; then
 
24076
  enableval=$enable_sharp;
 
24077
else
 
24078
  enable_sharp=yes
 
24079
fi
 
24080
 
 
24081
 
 
24082
if test "x$enable_sharp" != "xyes"; then
 
24083
  use_sharp="No (disabled)"
 
24084
else
 
24085
  if test "x$use_swig" != "xYes"; then
 
24086
    use_sharp="No (swig not available)"
 
24087
  else
 
24088
    if test `$SWIG -help 2>&1 | $GREP -c '\-csharp *- Generate'` = 0; then
 
24089
      use_sharp="No (swig does not support -csharp option)"
 
24090
    else
 
24091
      # Extract the first word of "mcs", so it can be a program name with args.
 
24092
set dummy mcs; ac_word=$2
 
24093
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24094
$as_echo_n "checking for $ac_word... " >&6; }
 
24095
if test "${ac_cv_prog_MCS+set}" = set; then
 
24096
  $as_echo_n "(cached) " >&6
 
24097
else
 
24098
  if test -n "$MCS"; then
 
24099
  ac_cv_prog_MCS="$MCS" # Let the user override the test.
 
24100
else
 
24101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24102
for as_dir in $PATH
 
24103
do
 
24104
  IFS=$as_save_IFS
 
24105
  test -z "$as_dir" && as_dir=.
 
24106
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24107
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24108
    ac_cv_prog_MCS="mcs"
 
24109
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24110
    break 2
 
24111
  fi
 
24112
done
 
24113
done
 
24114
IFS=$as_save_IFS
 
24115
 
 
24116
fi
 
24117
fi
 
24118
MCS=$ac_cv_prog_MCS
 
24119
if test -n "$MCS"; then
 
24120
  { $as_echo "$as_me:$LINENO: result: $MCS" >&5
 
24121
$as_echo "$MCS" >&6; }
 
24122
else
 
24123
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24124
$as_echo "no" >&6; }
 
24125
fi
 
24126
 
 
24127
 
 
24128
      if test "x$MCS" = "x"; then
 
24129
        use_sharp="No (mcs not available)"
 
24130
      else
 
24131
        use_sharp="Yes"
 
24132
        SHARP_INCLUDES=
 
24133
        SHARP_LIBS=
 
24134
 
 
24135
 
 
24136
      fi
 
24137
    fi
 
24138
  fi
 
24139
fi
 
24140
 if test "x$use_sharp" = "xYes"; then
 
24141
  WITH_SHARP_TRUE=
 
24142
  WITH_SHARP_FALSE='#'
 
24143
else
 
24144
  WITH_SHARP_TRUE='#'
 
24145
  WITH_SHARP_FALSE=
 
24146
fi
 
24147
 
 
24148
 
 
24149
 
 
24150
# Check whether --enable-guile was given.
 
24151
if test "${enable_guile+set}" = set; then
 
24152
  enableval=$enable_guile;
 
24153
else
 
24154
  enable_guile=yes
 
24155
fi
 
24156
 
 
24157
 
 
24158
if test "x$enable_guile" != "xyes"; then
 
24159
  use_guile="No (disabled)"
 
24160
else
 
24161
  if test "x$use_swig" != "xYes"; then
 
24162
    use_guile="No (swig not available)"
 
24163
  else
 
24164
    if test `$SWIG -help 2>&1 | $GREP -c '\-guile *- Generate'` = 0; then
 
24165
      use_guile="No (swig does not support -guile option)"
 
24166
    else
 
24167
      # Extract the first word of "guile", so it can be a program name with args.
 
24168
set dummy guile; ac_word=$2
 
24169
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24170
$as_echo_n "checking for $ac_word... " >&6; }
 
24171
if test "${ac_cv_prog_GUILE+set}" = set; then
 
24172
  $as_echo_n "(cached) " >&6
 
24173
else
 
24174
  if test -n "$GUILE"; then
 
24175
  ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
 
24176
else
 
24177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24178
for as_dir in $PATH
 
24179
do
 
24180
  IFS=$as_save_IFS
 
24181
  test -z "$as_dir" && as_dir=.
 
24182
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24183
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24184
    ac_cv_prog_GUILE="guile"
 
24185
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24186
    break 2
 
24187
  fi
 
24188
done
 
24189
done
 
24190
IFS=$as_save_IFS
 
24191
 
 
24192
fi
 
24193
fi
 
24194
GUILE=$ac_cv_prog_GUILE
 
24195
if test -n "$GUILE"; then
 
24196
  { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
 
24197
$as_echo "$GUILE" >&6; }
 
24198
else
 
24199
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24200
$as_echo "no" >&6; }
 
24201
fi
 
24202
 
 
24203
 
 
24204
      if test "x$GUILE" = "x"; then
 
24205
        use_guile="No (guile not available)"
 
24206
      else
 
24207
        GUILE_VERSION=`$GUILE --version | head -1 | cut -d ' ' -f 2`
 
24208
        GUILE_VERSION_MAJOR=`echo $GUILE_VERSION | cut -d '.' -f 1`
 
24209
        GUILE_VERSION_MINOR=`echo $GUILE_VERSION | cut -d '.' -f 2`
 
24210
        if test $GUILE_VERSION_MAJOR -lt 2; then
 
24211
          if test $GUILE_VERSION_MAJOR -lt 1; then
 
24212
            GUILE=
 
24213
          else
 
24214
            if test $GUILE_VERSION_MINOR -lt 4; then
 
24215
              GUILE=
 
24216
            fi
 
24217
          fi
 
24218
        fi
 
24219
        if test "x$GUILE" = "x"; then
 
24220
          use_guile="No (guile is too old)"
 
24221
        else
 
24222
          GUILE_INCLUDES=
 
24223
          GUILE_LIBS=
 
24224
          if test "${ac_cv_header_libguile_h+set}" = set; then
 
24225
  { $as_echo "$as_me:$LINENO: checking for libguile.h" >&5
 
24226
$as_echo_n "checking for libguile.h... " >&6; }
 
24227
if test "${ac_cv_header_libguile_h+set}" = set; then
 
24228
  $as_echo_n "(cached) " >&6
 
24229
fi
 
24230
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libguile_h" >&5
 
24231
$as_echo "$ac_cv_header_libguile_h" >&6; }
 
24232
else
 
24233
  # Is the header compilable?
 
24234
{ $as_echo "$as_me:$LINENO: checking libguile.h usability" >&5
 
24235
$as_echo_n "checking libguile.h usability... " >&6; }
 
24236
cat >conftest.$ac_ext <<_ACEOF
 
24237
/* confdefs.h.  */
 
24238
_ACEOF
 
24239
cat confdefs.h >>conftest.$ac_ext
 
24240
cat >>conftest.$ac_ext <<_ACEOF
 
24241
/* end confdefs.h.  */
 
24242
$ac_includes_default
 
24243
#include <libguile.h>
 
24244
_ACEOF
 
24245
rm -f conftest.$ac_objext
 
24246
if { (ac_try="$ac_compile"
 
24247
case "(($ac_try" in
 
24248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24249
  *) ac_try_echo=$ac_try;;
 
24250
esac
 
24251
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24252
$as_echo "$ac_try_echo") >&5
 
24253
  (eval "$ac_compile") 2>conftest.er1
 
24254
  ac_status=$?
 
24255
  grep -v '^ *+' conftest.er1 >conftest.err
 
24256
  rm -f conftest.er1
 
24257
  cat conftest.err >&5
 
24258
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24259
  (exit $ac_status); } && {
 
24260
         test -z "$ac_c_werror_flag" ||
 
24261
         test ! -s conftest.err
 
24262
       } && test -s conftest.$ac_objext; then
 
24263
  ac_header_compiler=yes
 
24264
else
 
24265
  $as_echo "$as_me: failed program was:" >&5
 
24266
sed 's/^/| /' conftest.$ac_ext >&5
 
24267
 
 
24268
        ac_header_compiler=no
 
24269
fi
 
24270
 
 
24271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24272
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24273
$as_echo "$ac_header_compiler" >&6; }
 
24274
 
 
24275
# Is the header present?
 
24276
{ $as_echo "$as_me:$LINENO: checking libguile.h presence" >&5
 
24277
$as_echo_n "checking libguile.h presence... " >&6; }
 
24278
cat >conftest.$ac_ext <<_ACEOF
 
24279
/* confdefs.h.  */
 
24280
_ACEOF
 
24281
cat confdefs.h >>conftest.$ac_ext
 
24282
cat >>conftest.$ac_ext <<_ACEOF
 
24283
/* end confdefs.h.  */
 
24284
#include <libguile.h>
 
24285
_ACEOF
 
24286
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24287
case "(($ac_try" in
 
24288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24289
  *) ac_try_echo=$ac_try;;
 
24290
esac
 
24291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24292
$as_echo "$ac_try_echo") >&5
 
24293
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24294
  ac_status=$?
 
24295
  grep -v '^ *+' conftest.er1 >conftest.err
 
24296
  rm -f conftest.er1
 
24297
  cat conftest.err >&5
 
24298
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24299
  (exit $ac_status); } >/dev/null && {
 
24300
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24301
         test ! -s conftest.err
 
24302
       }; then
 
24303
  ac_header_preproc=yes
 
24304
else
 
24305
  $as_echo "$as_me: failed program was:" >&5
 
24306
sed 's/^/| /' conftest.$ac_ext >&5
 
24307
 
 
24308
  ac_header_preproc=no
 
24309
fi
 
24310
 
 
24311
rm -f conftest.err conftest.$ac_ext
 
24312
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24313
$as_echo "$ac_header_preproc" >&6; }
 
24314
 
 
24315
# So?  What about this header?
 
24316
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24317
  yes:no: )
 
24318
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24319
$as_echo "$as_me: WARNING: libguile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24320
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h: proceeding with the compiler's result" >&5
 
24321
$as_echo "$as_me: WARNING: libguile.h: proceeding with the compiler's result" >&2;}
 
24322
    ac_header_preproc=yes
 
24323
    ;;
 
24324
  no:yes:* )
 
24325
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h: present but cannot be compiled" >&5
 
24326
$as_echo "$as_me: WARNING: libguile.h: present but cannot be compiled" >&2;}
 
24327
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h:     check for missing prerequisite headers?" >&5
 
24328
$as_echo "$as_me: WARNING: libguile.h:     check for missing prerequisite headers?" >&2;}
 
24329
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h: see the Autoconf documentation" >&5
 
24330
$as_echo "$as_me: WARNING: libguile.h: see the Autoconf documentation" >&2;}
 
24331
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24332
$as_echo "$as_me: WARNING: libguile.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24333
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h: proceeding with the preprocessor's result" >&5
 
24334
$as_echo "$as_me: WARNING: libguile.h: proceeding with the preprocessor's result" >&2;}
 
24335
    { $as_echo "$as_me:$LINENO: WARNING: libguile.h: in the future, the compiler will take precedence" >&5
 
24336
$as_echo "$as_me: WARNING: libguile.h: in the future, the compiler will take precedence" >&2;}
 
24337
    ( cat <<\_ASBOX
 
24338
## --------------------------------------- ##
 
24339
## Report this to http://www.graphviz.org/ ##
 
24340
## --------------------------------------- ##
 
24341
_ASBOX
 
24342
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
24343
    ;;
 
24344
esac
 
24345
{ $as_echo "$as_me:$LINENO: checking for libguile.h" >&5
 
24346
$as_echo_n "checking for libguile.h... " >&6; }
 
24347
if test "${ac_cv_header_libguile_h+set}" = set; then
 
24348
  $as_echo_n "(cached) " >&6
 
24349
else
 
24350
  ac_cv_header_libguile_h=$ac_header_preproc
 
24351
fi
 
24352
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libguile_h" >&5
 
24353
$as_echo "$ac_cv_header_libguile_h" >&6; }
 
24354
 
 
24355
fi
 
24356
if test "x$ac_cv_header_libguile_h" = x""yes; then
 
24357
  :
 
24358
else
 
24359
 
 
24360
            use_guile="No (guile header missing)"
 
24361
            GUILE=
 
24362
 
 
24363
fi
 
24364
 
 
24365
 
 
24366
          if test "x$GUILE" != "x"; then
 
24367
            use_guile="Yes"
 
24368
 
 
24369
 
 
24370
          fi
 
24371
        fi
 
24372
      fi
 
24373
    fi
 
24374
  fi
 
24375
fi
 
24376
 if test "x$use_guile" = "xYes"; then
 
24377
  WITH_GUILE_TRUE=
 
24378
  WITH_GUILE_FALSE='#'
 
24379
else
 
24380
  WITH_GUILE_TRUE='#'
 
24381
  WITH_GUILE_FALSE=
 
24382
fi
 
24383
 
 
24384
 
 
24385
 
 
24386
# Check whether --enable-io was given.
 
24387
if test "${enable_io+set}" = set; then
 
24388
  enableval=$enable_io;
 
24389
else
 
24390
  enable_io=no
 
24391
fi
 
24392
 
 
24393
 
 
24394
if test "x$enable_io" != "xyes"; then
 
24395
  use_io="No (disabled by default - no swig support yet)"
 
24396
else
 
24397
  if test "x$use_swig" != "xYes"; then
 
24398
    use_io="No (swig not available)"
 
24399
  else
 
24400
    if test `$SWIG -help 2>&1 | $GREP -c '\-io *- Generate'` = 0; then
 
24401
      use_io="No (swig does not support -io option)"
 
24402
    else
 
24403
      # Extract the first word of "io", so it can be a program name with args.
 
24404
set dummy io; ac_word=$2
 
24405
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24406
$as_echo_n "checking for $ac_word... " >&6; }
 
24407
if test "${ac_cv_prog_IO+set}" = set; then
 
24408
  $as_echo_n "(cached) " >&6
 
24409
else
 
24410
  if test -n "$IO"; then
 
24411
  ac_cv_prog_IO="$IO" # Let the user override the test.
 
24412
else
 
24413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24414
for as_dir in $PATH
 
24415
do
 
24416
  IFS=$as_save_IFS
 
24417
  test -z "$as_dir" && as_dir=.
 
24418
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24419
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24420
    ac_cv_prog_IO="io"
 
24421
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24422
    break 2
 
24423
  fi
 
24424
done
 
24425
done
 
24426
IFS=$as_save_IFS
 
24427
 
 
24428
fi
 
24429
fi
 
24430
IO=$ac_cv_prog_IO
 
24431
if test -n "$IO"; then
 
24432
  { $as_echo "$as_me:$LINENO: result: $IO" >&5
 
24433
$as_echo "$IO" >&6; }
 
24434
else
 
24435
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24436
$as_echo "no" >&6; }
 
24437
fi
 
24438
 
 
24439
 
 
24440
      if test "x$IO" = "x"; then
 
24441
        use_io="No (io not available)"
 
24442
      else
 
24443
        use_io="Yes"
 
24444
        IO_INCLUDES=
 
24445
        IO_LIBS=
 
24446
 
 
24447
 
 
24448
      fi
 
24449
    fi
 
24450
  fi
 
24451
fi
 
24452
 if test "x$use_io" = "xYes"; then
 
24453
  WITH_IO_TRUE=
 
24454
  WITH_IO_FALSE='#'
 
24455
else
 
24456
  WITH_IO_TRUE='#'
 
24457
  WITH_IO_FALSE=
 
24458
fi
 
24459
 
 
24460
 
 
24461
 
 
24462
# Check whether --enable-java was given.
 
24463
if test "${enable_java+set}" = set; then
 
24464
  enableval=$enable_java;
 
24465
else
 
24466
  enable_java=yes
 
24467
fi
 
24468
 
 
24469
 
 
24470
if test "x$enable_java" != "xyes"; then
 
24471
  use_java="No (disabled)"
 
24472
else
 
24473
  if test "x$use_swig" != "xYes"; then
 
24474
    use_java="No (swig not available)"
 
24475
  else
 
24476
    if test `$SWIG -help 2>&1 | $GREP -c '\-java *- Generate'` = 0; then
 
24477
      use_java="No (swig does not support -java option)"
 
24478
    else
 
24479
      # Extract the first word of "java", so it can be a program name with args.
 
24480
set dummy java; ac_word=$2
 
24481
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24482
$as_echo_n "checking for $ac_word... " >&6; }
 
24483
if test "${ac_cv_prog_JAVA+set}" = set; then
 
24484
  $as_echo_n "(cached) " >&6
 
24485
else
 
24486
  if test -n "$JAVA"; then
 
24487
  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
 
24488
else
 
24489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24490
for as_dir in $PATH
 
24491
do
 
24492
  IFS=$as_save_IFS
 
24493
  test -z "$as_dir" && as_dir=.
 
24494
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24496
    ac_cv_prog_JAVA="java"
 
24497
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24498
    break 2
 
24499
  fi
 
24500
done
 
24501
done
 
24502
IFS=$as_save_IFS
 
24503
 
 
24504
fi
 
24505
fi
 
24506
JAVA=$ac_cv_prog_JAVA
 
24507
if test -n "$JAVA"; then
 
24508
  { $as_echo "$as_me:$LINENO: result: $JAVA" >&5
 
24509
$as_echo "$JAVA" >&6; }
 
24510
else
 
24511
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24512
$as_echo "no" >&6; }
 
24513
fi
 
24514
 
 
24515
 
 
24516
      if test "x$JAVA" = "x"; then
 
24517
        use_java="No (java not available)"
 
24518
      else
 
24519
        case "${host_os}" in
 
24520
          *darwin* )
 
24521
            JAVA_INCLUDES="-I/System/Library/Frameworks/JavaVM.framework/Headers"
 
24522
            JAVE_LIBS=
 
24523
            ;;
 
24524
          *)
 
24525
            JAVA_INCLUDES="-I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux"
 
24526
            JAVE_LIBS=
 
24527
            ;;
 
24528
        esac
 
24529
 
 
24530
# Check whether --with-javaincludedir was given.
 
24531
if test "${with_javaincludedir+set}" = set; then
 
24532
  withval=$with_javaincludedir; JAVA_INCLUDES="-I$withval"
 
24533
fi
 
24534
 
 
24535
 
 
24536
# Check whether --with-javalibdir was given.
 
24537
if test "${with_javalibdir+set}" = set; then
 
24538
  withval=$with_javalibdir; JAVA_LIBS="$withval"
 
24539
fi
 
24540
 
 
24541
        save_CPPFLAGS=$CPPFLAGS
 
24542
        CPPFLAGS="$CPPFLAGS $JAVA_INCLUDES"
 
24543
        if test "${ac_cv_header_jni_h+set}" = set; then
 
24544
  { $as_echo "$as_me:$LINENO: checking for jni.h" >&5
 
24545
$as_echo_n "checking for jni.h... " >&6; }
 
24546
if test "${ac_cv_header_jni_h+set}" = set; then
 
24547
  $as_echo_n "(cached) " >&6
 
24548
fi
 
24549
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
 
24550
$as_echo "$ac_cv_header_jni_h" >&6; }
 
24551
else
 
24552
  # Is the header compilable?
 
24553
{ $as_echo "$as_me:$LINENO: checking jni.h usability" >&5
 
24554
$as_echo_n "checking jni.h usability... " >&6; }
 
24555
cat >conftest.$ac_ext <<_ACEOF
 
24556
/* confdefs.h.  */
 
24557
_ACEOF
 
24558
cat confdefs.h >>conftest.$ac_ext
 
24559
cat >>conftest.$ac_ext <<_ACEOF
 
24560
/* end confdefs.h.  */
 
24561
$ac_includes_default
 
24562
#include <jni.h>
 
24563
_ACEOF
 
24564
rm -f conftest.$ac_objext
 
24565
if { (ac_try="$ac_compile"
 
24566
case "(($ac_try" in
 
24567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24568
  *) ac_try_echo=$ac_try;;
 
24569
esac
 
24570
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24571
$as_echo "$ac_try_echo") >&5
 
24572
  (eval "$ac_compile") 2>conftest.er1
 
24573
  ac_status=$?
 
24574
  grep -v '^ *+' conftest.er1 >conftest.err
 
24575
  rm -f conftest.er1
 
24576
  cat conftest.err >&5
 
24577
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24578
  (exit $ac_status); } && {
 
24579
         test -z "$ac_c_werror_flag" ||
 
24580
         test ! -s conftest.err
 
24581
       } && test -s conftest.$ac_objext; then
 
24582
  ac_header_compiler=yes
 
24583
else
 
24584
  $as_echo "$as_me: failed program was:" >&5
 
24585
sed 's/^/| /' conftest.$ac_ext >&5
 
24586
 
 
24587
        ac_header_compiler=no
 
24588
fi
 
24589
 
 
24590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24591
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24592
$as_echo "$ac_header_compiler" >&6; }
 
24593
 
 
24594
# Is the header present?
 
24595
{ $as_echo "$as_me:$LINENO: checking jni.h presence" >&5
 
24596
$as_echo_n "checking jni.h presence... " >&6; }
 
24597
cat >conftest.$ac_ext <<_ACEOF
 
24598
/* confdefs.h.  */
 
24599
_ACEOF
 
24600
cat confdefs.h >>conftest.$ac_ext
 
24601
cat >>conftest.$ac_ext <<_ACEOF
 
24602
/* end confdefs.h.  */
 
24603
#include <jni.h>
 
24604
_ACEOF
 
24605
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24606
case "(($ac_try" in
 
24607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24608
  *) ac_try_echo=$ac_try;;
 
24609
esac
 
24610
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24611
$as_echo "$ac_try_echo") >&5
 
24612
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24613
  ac_status=$?
 
24614
  grep -v '^ *+' conftest.er1 >conftest.err
 
24615
  rm -f conftest.er1
 
24616
  cat conftest.err >&5
 
24617
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24618
  (exit $ac_status); } >/dev/null && {
 
24619
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24620
         test ! -s conftest.err
 
24621
       }; then
 
24622
  ac_header_preproc=yes
 
24623
else
 
24624
  $as_echo "$as_me: failed program was:" >&5
 
24625
sed 's/^/| /' conftest.$ac_ext >&5
 
24626
 
 
24627
  ac_header_preproc=no
 
24628
fi
 
24629
 
 
24630
rm -f conftest.err conftest.$ac_ext
 
24631
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24632
$as_echo "$ac_header_preproc" >&6; }
 
24633
 
 
24634
# So?  What about this header?
 
24635
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24636
  yes:no: )
 
24637
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24638
$as_echo "$as_me: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24639
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the compiler's result" >&5
 
24640
$as_echo "$as_me: WARNING: jni.h: proceeding with the compiler's result" >&2;}
 
24641
    ac_header_preproc=yes
 
24642
    ;;
 
24643
  no:yes:* )
 
24644
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: present but cannot be compiled" >&5
 
24645
$as_echo "$as_me: WARNING: jni.h: present but cannot be compiled" >&2;}
 
24646
    { $as_echo "$as_me:$LINENO: WARNING: jni.h:     check for missing prerequisite headers?" >&5
 
24647
$as_echo "$as_me: WARNING: jni.h:     check for missing prerequisite headers?" >&2;}
 
24648
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: see the Autoconf documentation" >&5
 
24649
$as_echo "$as_me: WARNING: jni.h: see the Autoconf documentation" >&2;}
 
24650
    { $as_echo "$as_me:$LINENO: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24651
$as_echo "$as_me: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24652
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the preprocessor's result" >&5
 
24653
$as_echo "$as_me: WARNING: jni.h: proceeding with the preprocessor's result" >&2;}
 
24654
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: in the future, the compiler will take precedence" >&5
 
24655
$as_echo "$as_me: WARNING: jni.h: in the future, the compiler will take precedence" >&2;}
 
24656
    ( cat <<\_ASBOX
 
24657
## --------------------------------------- ##
 
24658
## Report this to http://www.graphviz.org/ ##
 
24659
## --------------------------------------- ##
 
24660
_ASBOX
 
24661
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
24662
    ;;
 
24663
esac
 
24664
{ $as_echo "$as_me:$LINENO: checking for jni.h" >&5
 
24665
$as_echo_n "checking for jni.h... " >&6; }
 
24666
if test "${ac_cv_header_jni_h+set}" = set; then
 
24667
  $as_echo_n "(cached) " >&6
 
24668
else
 
24669
  ac_cv_header_jni_h=$ac_header_preproc
 
24670
fi
 
24671
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
 
24672
$as_echo "$ac_cv_header_jni_h" >&6; }
 
24673
 
 
24674
fi
 
24675
if test "x$ac_cv_header_jni_h" = x""yes; then
 
24676
  :
 
24677
else
 
24678
 
 
24679
            use_java="No (missing header)"
 
24680
            JAVA=
 
24681
 
 
24682
fi
 
24683
 
 
24684
 
 
24685
        CPPFLAGS="$save_CPPFLAGS"
 
24686
        if test "x$JAVA" != "x"; then
 
24687
          use_java="Yes"
 
24688
 
 
24689
 
 
24690
        fi
 
24691
      fi
 
24692
    fi
 
24693
  fi
 
24694
fi
 
24695
 if test "x$use_java" = "xYes"; then
 
24696
  WITH_JAVA_TRUE=
 
24697
  WITH_JAVA_FALSE='#'
 
24698
else
 
24699
  WITH_JAVA_TRUE='#'
 
24700
  WITH_JAVA_FALSE=
 
24701
fi
 
24702
 
 
24703
 
 
24704
 
 
24705
# Check whether --enable-lua was given.
 
24706
if test "${enable_lua+set}" = set; then
 
24707
  enableval=$enable_lua;
 
24708
else
 
24709
  enable_lua=yes
 
24710
fi
 
24711
 
 
24712
 
 
24713
if test "x$enable_lua" != "xyes"; then
 
24714
  use_lua="No (disabled)"
 
24715
else
 
24716
  if test "x$use_swig" != "xYes"; then
 
24717
    use_lua="No (swig not available)"
 
24718
  else
 
24719
    if test `$SWIG -help 2>&1 | $GREP -c '\-lua *- Generate'` = 0; then
 
24720
      use_lua="No (swig does not support -lua option)"
 
24721
    else
 
24722
      # Extract the first word of "lua", so it can be a program name with args.
 
24723
set dummy lua; ac_word=$2
 
24724
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24725
$as_echo_n "checking for $ac_word... " >&6; }
 
24726
if test "${ac_cv_prog_LUA+set}" = set; then
 
24727
  $as_echo_n "(cached) " >&6
 
24728
else
 
24729
  if test -n "$LUA"; then
 
24730
  ac_cv_prog_LUA="$LUA" # Let the user override the test.
 
24731
else
 
24732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24733
for as_dir in $PATH
 
24734
do
 
24735
  IFS=$as_save_IFS
 
24736
  test -z "$as_dir" && as_dir=.
 
24737
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24738
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24739
    ac_cv_prog_LUA="lua"
 
24740
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24741
    break 2
 
24742
  fi
 
24743
done
 
24744
done
 
24745
IFS=$as_save_IFS
 
24746
 
 
24747
fi
 
24748
fi
 
24749
LUA=$ac_cv_prog_LUA
 
24750
if test -n "$LUA"; then
 
24751
  { $as_echo "$as_me:$LINENO: result: $LUA" >&5
 
24752
$as_echo "$LUA" >&6; }
 
24753
else
 
24754
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24755
$as_echo "no" >&6; }
 
24756
fi
 
24757
 
 
24758
 
 
24759
      if test "x$LUA" = "x"; then
 
24760
        use_lua="No (lua not available)"
 
24761
      else
 
24762
        ac_save_CPPFLAGS="$CPPFLAGS"
 
24763
        ac_save_CFLAGS="$CFLAGS"
 
24764
        ac_save_LDFLAGS="$LDFLAGS"
 
24765
 
 
24766
        # Extract the first word of "lua", so it can be a program name with args.
 
24767
set dummy lua; ac_word=$2
 
24768
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24769
$as_echo_n "checking for $ac_word... " >&6; }
 
24770
if test "${ac_cv_prog_LUA+set}" = set; then
 
24771
  $as_echo_n "(cached) " >&6
 
24772
else
 
24773
  if test -n "$LUA"; then
 
24774
  ac_cv_prog_LUA="$LUA" # Let the user override the test.
 
24775
else
 
24776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24777
for as_dir in $PATH
 
24778
do
 
24779
  IFS=$as_save_IFS
 
24780
  test -z "$as_dir" && as_dir=.
 
24781
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24782
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24783
    ac_cv_prog_LUA="lua"
 
24784
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24785
    break 2
 
24786
  fi
 
24787
done
 
24788
done
 
24789
IFS=$as_save_IFS
 
24790
 
 
24791
fi
 
24792
fi
 
24793
LUA=$ac_cv_prog_LUA
 
24794
if test -n "$LUA"; then
 
24795
  { $as_echo "$as_me:$LINENO: result: $LUA" >&5
 
24796
$as_echo "$LUA" >&6; }
 
24797
else
 
24798
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24799
$as_echo "no" >&6; }
 
24800
fi
 
24801
 
 
24802
 
 
24803
 
 
24804
        LUA_INCLUDES=""
 
24805
        LUA_LIBS=""
 
24806
        LUA_INSTALL_DIR=""
 
24807
 
 
24808
        if test -n "$lua_inc"; then
 
24809
           CFLAGS="$CFLAGS -I$lua_inc"
 
24810
           CPPFLAGS="$CPPFLAGS -I$lua_inc"
 
24811
        fi
 
24812
        if test -n "$lua_lib"; then
 
24813
           LDFLAGS="$LDFLAGS -L$lua_lib"
 
24814
        fi
 
24815
 
 
24816
        if test "x$LUA_INCLUDES" = "x" -o "x$LUA_LIBS" = "x" ; then
 
24817
            PKGCONFIG=""
 
24818
            for ac_prog in pkg-config
 
24819
do
 
24820
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
24821
set dummy $ac_prog; ac_word=$2
 
24822
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24823
$as_echo_n "checking for $ac_word... " >&6; }
 
24824
if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
 
24825
  $as_echo_n "(cached) " >&6
 
24826
else
 
24827
  if test -n "$PKGCONFIG"; then
 
24828
  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
 
24829
else
 
24830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24831
for as_dir in $PATH
 
24832
do
 
24833
  IFS=$as_save_IFS
 
24834
  test -z "$as_dir" && as_dir=.
 
24835
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24836
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24837
    ac_cv_prog_PKGCONFIG="$ac_prog"
 
24838
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24839
    break 2
 
24840
  fi
 
24841
done
 
24842
done
 
24843
IFS=$as_save_IFS
 
24844
 
 
24845
fi
 
24846
fi
 
24847
PKGCONFIG=$ac_cv_prog_PKGCONFIG
 
24848
if test -n "$PKGCONFIG"; then
 
24849
  { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
 
24850
$as_echo "$PKGCONFIG" >&6; }
 
24851
else
 
24852
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24853
$as_echo "no" >&6; }
 
24854
fi
 
24855
 
 
24856
 
 
24857
  test -n "$PKGCONFIG" && break
 
24858
done
 
24859
 
 
24860
            if test "x$PKGCONFIG" != "x"; then
 
24861
                { $as_echo "$as_me:$LINENO: checking for Lua headers and libraries with pkg-config" >&5
 
24862
$as_echo_n "checking for Lua headers and libraries with pkg-config... " >&6; }
 
24863
                echo
 
24864
                for l in "$lua_suffix" "" "51" "5.1" "50" "5.0" ; do
 
24865
                    pkgconfig_lua_found=`$PKGCONFIG --exists lua$l 2>/dev/null`
 
24866
                    if test "x$?" = "x0" ; then
 
24867
                        LUA_VERSION=`$PKGCONFIG --modversion lua$l`
 
24868
                        LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags lua$l`
 
24869
                        LUA_LIBS="$LUA_LFLAGS "`$PKGCONFIG --libs lua$l`
 
24870
                        LUA_INSTALL_DIR="/usr/lib$LIBPOSTFIX/lua/`$PKGCONFIG --variable=V lua`"
 
24871
 
 
24872
                        pkgconfig_lualib_found=`$PKGCONFIG --exists lualib$l 2>/dev/null`
 
24873
                        if test  "x$?" = "x0"; then
 
24874
                           LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags lualib$l`
 
24875
                           LUA_LIBS="$LUA_LFLAGS "`$PKGCONFIG --libs lualib$l`
 
24876
                        fi
 
24877
                        break
 
24878
                    fi
 
24879
                done
 
24880
            fi
 
24881
        fi
 
24882
 
 
24883
        if test "x$LUA_INCLUDES" = "x" -o "x$LUA_LIBS" = "x" ; then
 
24884
            LUACONFIG=""
 
24885
            for ac_prog in lua-config lua-config51 lua-config5.1 lua-config50 lua-config5.0
 
24886
do
 
24887
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
24888
set dummy $ac_prog; ac_word=$2
 
24889
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24890
$as_echo_n "checking for $ac_word... " >&6; }
 
24891
if test "${ac_cv_prog_LUACONFIG+set}" = set; then
 
24892
  $as_echo_n "(cached) " >&6
 
24893
else
 
24894
  if test -n "$LUACONFIG"; then
 
24895
  ac_cv_prog_LUACONFIG="$LUACONFIG" # Let the user override the test.
 
24896
else
 
24897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24898
for as_dir in $PATH
 
24899
do
 
24900
  IFS=$as_save_IFS
 
24901
  test -z "$as_dir" && as_dir=.
 
24902
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24904
    ac_cv_prog_LUACONFIG="$ac_prog"
 
24905
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24906
    break 2
 
24907
  fi
 
24908
done
 
24909
done
 
24910
IFS=$as_save_IFS
 
24911
 
 
24912
fi
 
24913
fi
 
24914
LUACONFIG=$ac_cv_prog_LUACONFIG
 
24915
if test -n "$LUACONFIG"; then
 
24916
  { $as_echo "$as_me:$LINENO: result: $LUACONFIG" >&5
 
24917
$as_echo "$LUACONFIG" >&6; }
 
24918
else
 
24919
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24920
$as_echo "no" >&6; }
 
24921
fi
 
24922
 
 
24923
 
 
24924
  test -n "$LUACONFIG" && break
 
24925
done
 
24926
 
 
24927
            if test "x$LUACONFIG" != "x" ; then
 
24928
                { $as_echo "$as_me:$LINENO: checking for Lua headers and libraries with lua-config" >&5
 
24929
$as_echo_n "checking for Lua headers and libraries with lua-config... " >&6; }
 
24930
                echo
 
24931
                LUA_INCLUDES=`$LUACONFIG --include`
 
24932
                LUA_LIBS=`$LUACONFIG --libs`
 
24933
                LUA_VERSION="5.0.x"
 
24934
                LUA_INSTALL_DIR="/usr/lib$LIBPOSTFIX/lua/5.0"
 
24935
            fi
 
24936
        fi
 
24937
 
 
24938
        if test "x$LUA_INCLUDES" = "x" -o "x$LUA_LIBS" = "x" ; then
 
24939
            { $as_echo "$as_me:$LINENO: checking for Lua headers and libraries" >&5
 
24940
$as_echo_n "checking for Lua headers and libraries... " >&6; }
 
24941
            echo
 
24942
            if test "${ac_cv_header_lua_h+set}" = set; then
 
24943
  { $as_echo "$as_me:$LINENO: checking for lua.h" >&5
 
24944
$as_echo_n "checking for lua.h... " >&6; }
 
24945
if test "${ac_cv_header_lua_h+set}" = set; then
 
24946
  $as_echo_n "(cached) " >&6
 
24947
fi
 
24948
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
 
24949
$as_echo "$ac_cv_header_lua_h" >&6; }
 
24950
else
 
24951
  # Is the header compilable?
 
24952
{ $as_echo "$as_me:$LINENO: checking lua.h usability" >&5
 
24953
$as_echo_n "checking lua.h usability... " >&6; }
 
24954
cat >conftest.$ac_ext <<_ACEOF
 
24955
/* confdefs.h.  */
 
24956
_ACEOF
 
24957
cat confdefs.h >>conftest.$ac_ext
 
24958
cat >>conftest.$ac_ext <<_ACEOF
 
24959
/* end confdefs.h.  */
 
24960
$ac_includes_default
 
24961
#include <lua.h>
 
24962
_ACEOF
 
24963
rm -f conftest.$ac_objext
 
24964
if { (ac_try="$ac_compile"
 
24965
case "(($ac_try" in
 
24966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24967
  *) ac_try_echo=$ac_try;;
 
24968
esac
 
24969
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24970
$as_echo "$ac_try_echo") >&5
 
24971
  (eval "$ac_compile") 2>conftest.er1
 
24972
  ac_status=$?
 
24973
  grep -v '^ *+' conftest.er1 >conftest.err
 
24974
  rm -f conftest.er1
 
24975
  cat conftest.err >&5
 
24976
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24977
  (exit $ac_status); } && {
 
24978
         test -z "$ac_c_werror_flag" ||
 
24979
         test ! -s conftest.err
 
24980
       } && test -s conftest.$ac_objext; then
 
24981
  ac_header_compiler=yes
 
24982
else
 
24983
  $as_echo "$as_me: failed program was:" >&5
 
24984
sed 's/^/| /' conftest.$ac_ext >&5
 
24985
 
 
24986
        ac_header_compiler=no
 
24987
fi
 
24988
 
 
24989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24990
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24991
$as_echo "$ac_header_compiler" >&6; }
 
24992
 
 
24993
# Is the header present?
 
24994
{ $as_echo "$as_me:$LINENO: checking lua.h presence" >&5
 
24995
$as_echo_n "checking lua.h presence... " >&6; }
 
24996
cat >conftest.$ac_ext <<_ACEOF
 
24997
/* confdefs.h.  */
 
24998
_ACEOF
 
24999
cat confdefs.h >>conftest.$ac_ext
 
25000
cat >>conftest.$ac_ext <<_ACEOF
 
25001
/* end confdefs.h.  */
 
25002
#include <lua.h>
 
25003
_ACEOF
 
25004
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25005
case "(($ac_try" in
 
25006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25007
  *) ac_try_echo=$ac_try;;
 
25008
esac
 
25009
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25010
$as_echo "$ac_try_echo") >&5
 
25011
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25012
  ac_status=$?
 
25013
  grep -v '^ *+' conftest.er1 >conftest.err
 
25014
  rm -f conftest.er1
 
25015
  cat conftest.err >&5
 
25016
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25017
  (exit $ac_status); } >/dev/null && {
 
25018
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25019
         test ! -s conftest.err
 
25020
       }; then
 
25021
  ac_header_preproc=yes
 
25022
else
 
25023
  $as_echo "$as_me: failed program was:" >&5
 
25024
sed 's/^/| /' conftest.$ac_ext >&5
 
25025
 
 
25026
  ac_header_preproc=no
 
25027
fi
 
25028
 
 
25029
rm -f conftest.err conftest.$ac_ext
 
25030
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25031
$as_echo "$ac_header_preproc" >&6; }
 
25032
 
 
25033
# So?  What about this header?
 
25034
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25035
  yes:no: )
 
25036
    { $as_echo "$as_me:$LINENO: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25037
$as_echo "$as_me: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25038
    { $as_echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the compiler's result" >&5
 
25039
$as_echo "$as_me: WARNING: lua.h: proceeding with the compiler's result" >&2;}
 
25040
    ac_header_preproc=yes
 
25041
    ;;
 
25042
  no:yes:* )
 
25043
    { $as_echo "$as_me:$LINENO: WARNING: lua.h: present but cannot be compiled" >&5
 
25044
$as_echo "$as_me: WARNING: lua.h: present but cannot be compiled" >&2;}
 
25045
    { $as_echo "$as_me:$LINENO: WARNING: lua.h:     check for missing prerequisite headers?" >&5
 
25046
$as_echo "$as_me: WARNING: lua.h:     check for missing prerequisite headers?" >&2;}
 
25047
    { $as_echo "$as_me:$LINENO: WARNING: lua.h: see the Autoconf documentation" >&5
 
25048
$as_echo "$as_me: WARNING: lua.h: see the Autoconf documentation" >&2;}
 
25049
    { $as_echo "$as_me:$LINENO: WARNING: lua.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25050
$as_echo "$as_me: WARNING: lua.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25051
    { $as_echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the preprocessor's result" >&5
 
25052
$as_echo "$as_me: WARNING: lua.h: proceeding with the preprocessor's result" >&2;}
 
25053
    { $as_echo "$as_me:$LINENO: WARNING: lua.h: in the future, the compiler will take precedence" >&5
 
25054
$as_echo "$as_me: WARNING: lua.h: in the future, the compiler will take precedence" >&2;}
 
25055
    ( cat <<\_ASBOX
 
25056
## --------------------------------------- ##
 
25057
## Report this to http://www.graphviz.org/ ##
 
25058
## --------------------------------------- ##
 
25059
_ASBOX
 
25060
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25061
    ;;
 
25062
esac
 
25063
{ $as_echo "$as_me:$LINENO: checking for lua.h" >&5
 
25064
$as_echo_n "checking for lua.h... " >&6; }
 
25065
if test "${ac_cv_header_lua_h+set}" = set; then
 
25066
  $as_echo_n "(cached) " >&6
 
25067
else
 
25068
  ac_cv_header_lua_h=$ac_header_preproc
 
25069
fi
 
25070
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
 
25071
$as_echo "$ac_cv_header_lua_h" >&6; }
 
25072
 
 
25073
fi
 
25074
if test "x$ac_cv_header_lua_h" = x""yes; then
 
25075
  ac_found_lua_header="yes"
 
25076
else
 
25077
  ac_found_lua_header="no"
 
25078
fi
 
25079
 
 
25080
 
 
25081
            if test "${ac_cv_header_lualib_h+set}" = set; then
 
25082
  { $as_echo "$as_me:$LINENO: checking for lualib.h" >&5
 
25083
$as_echo_n "checking for lualib.h... " >&6; }
 
25084
if test "${ac_cv_header_lualib_h+set}" = set; then
 
25085
  $as_echo_n "(cached) " >&6
 
25086
fi
 
25087
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lualib_h" >&5
 
25088
$as_echo "$ac_cv_header_lualib_h" >&6; }
 
25089
else
 
25090
  # Is the header compilable?
 
25091
{ $as_echo "$as_me:$LINENO: checking lualib.h usability" >&5
 
25092
$as_echo_n "checking lualib.h usability... " >&6; }
 
25093
cat >conftest.$ac_ext <<_ACEOF
 
25094
/* confdefs.h.  */
 
25095
_ACEOF
 
25096
cat confdefs.h >>conftest.$ac_ext
 
25097
cat >>conftest.$ac_ext <<_ACEOF
 
25098
/* end confdefs.h.  */
 
25099
$ac_includes_default
 
25100
#include <lualib.h>
 
25101
_ACEOF
 
25102
rm -f conftest.$ac_objext
 
25103
if { (ac_try="$ac_compile"
 
25104
case "(($ac_try" in
 
25105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25106
  *) ac_try_echo=$ac_try;;
 
25107
esac
 
25108
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25109
$as_echo "$ac_try_echo") >&5
 
25110
  (eval "$ac_compile") 2>conftest.er1
 
25111
  ac_status=$?
 
25112
  grep -v '^ *+' conftest.er1 >conftest.err
 
25113
  rm -f conftest.er1
 
25114
  cat conftest.err >&5
 
25115
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25116
  (exit $ac_status); } && {
 
25117
         test -z "$ac_c_werror_flag" ||
 
25118
         test ! -s conftest.err
 
25119
       } && test -s conftest.$ac_objext; then
 
25120
  ac_header_compiler=yes
 
25121
else
 
25122
  $as_echo "$as_me: failed program was:" >&5
 
25123
sed 's/^/| /' conftest.$ac_ext >&5
 
25124
 
 
25125
        ac_header_compiler=no
 
25126
fi
 
25127
 
 
25128
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25129
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25130
$as_echo "$ac_header_compiler" >&6; }
 
25131
 
 
25132
# Is the header present?
 
25133
{ $as_echo "$as_me:$LINENO: checking lualib.h presence" >&5
 
25134
$as_echo_n "checking lualib.h presence... " >&6; }
 
25135
cat >conftest.$ac_ext <<_ACEOF
 
25136
/* confdefs.h.  */
 
25137
_ACEOF
 
25138
cat confdefs.h >>conftest.$ac_ext
 
25139
cat >>conftest.$ac_ext <<_ACEOF
 
25140
/* end confdefs.h.  */
 
25141
#include <lualib.h>
 
25142
_ACEOF
 
25143
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25144
case "(($ac_try" in
 
25145
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25146
  *) ac_try_echo=$ac_try;;
 
25147
esac
 
25148
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25149
$as_echo "$ac_try_echo") >&5
 
25150
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25151
  ac_status=$?
 
25152
  grep -v '^ *+' conftest.er1 >conftest.err
 
25153
  rm -f conftest.er1
 
25154
  cat conftest.err >&5
 
25155
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25156
  (exit $ac_status); } >/dev/null && {
 
25157
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25158
         test ! -s conftest.err
 
25159
       }; then
 
25160
  ac_header_preproc=yes
 
25161
else
 
25162
  $as_echo "$as_me: failed program was:" >&5
 
25163
sed 's/^/| /' conftest.$ac_ext >&5
 
25164
 
 
25165
  ac_header_preproc=no
 
25166
fi
 
25167
 
 
25168
rm -f conftest.err conftest.$ac_ext
 
25169
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25170
$as_echo "$ac_header_preproc" >&6; }
 
25171
 
 
25172
# So?  What about this header?
 
25173
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25174
  yes:no: )
 
25175
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25176
$as_echo "$as_me: WARNING: lualib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25177
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h: proceeding with the compiler's result" >&5
 
25178
$as_echo "$as_me: WARNING: lualib.h: proceeding with the compiler's result" >&2;}
 
25179
    ac_header_preproc=yes
 
25180
    ;;
 
25181
  no:yes:* )
 
25182
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h: present but cannot be compiled" >&5
 
25183
$as_echo "$as_me: WARNING: lualib.h: present but cannot be compiled" >&2;}
 
25184
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h:     check for missing prerequisite headers?" >&5
 
25185
$as_echo "$as_me: WARNING: lualib.h:     check for missing prerequisite headers?" >&2;}
 
25186
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h: see the Autoconf documentation" >&5
 
25187
$as_echo "$as_me: WARNING: lualib.h: see the Autoconf documentation" >&2;}
 
25188
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25189
$as_echo "$as_me: WARNING: lualib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25190
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h: proceeding with the preprocessor's result" >&5
 
25191
$as_echo "$as_me: WARNING: lualib.h: proceeding with the preprocessor's result" >&2;}
 
25192
    { $as_echo "$as_me:$LINENO: WARNING: lualib.h: in the future, the compiler will take precedence" >&5
 
25193
$as_echo "$as_me: WARNING: lualib.h: in the future, the compiler will take precedence" >&2;}
 
25194
    ( cat <<\_ASBOX
 
25195
## --------------------------------------- ##
 
25196
## Report this to http://www.graphviz.org/ ##
 
25197
## --------------------------------------- ##
 
25198
_ASBOX
 
25199
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25200
    ;;
 
25201
esac
 
25202
{ $as_echo "$as_me:$LINENO: checking for lualib.h" >&5
 
25203
$as_echo_n "checking for lualib.h... " >&6; }
 
25204
if test "${ac_cv_header_lualib_h+set}" = set; then
 
25205
  $as_echo_n "(cached) " >&6
 
25206
else
 
25207
  ac_cv_header_lualib_h=$ac_header_preproc
 
25208
fi
 
25209
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lualib_h" >&5
 
25210
$as_echo "$ac_cv_header_lualib_h" >&6; }
 
25211
 
 
25212
fi
 
25213
if test "x$ac_cv_header_lualib_h" = x""yes; then
 
25214
  ac_found_liblua_header="yes"
 
25215
else
 
25216
  ac_found_liblua_header="no"
 
25217
fi
 
25218
 
 
25219
 
 
25220
            if test "x$ac_found_lua_header" = "xyes" -a "x$ac_found_liblua_header" = "xyes"; then
 
25221
                LUA_INCLUDES="$CFLAGS"
 
25222
            fi
 
25223
            for l in "$lua_suffix" "" "51" "5.1" "50" "5.0" ; do
 
25224
                as_ac_Lib=`$as_echo "ac_cv_lib_lua$l''_lua_call" | $as_tr_sh`
 
25225
{ $as_echo "$as_me:$LINENO: checking for lua_call in -llua$l" >&5
 
25226
$as_echo_n "checking for lua_call in -llua$l... " >&6; }
 
25227
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
25228
  $as_echo_n "(cached) " >&6
 
25229
else
 
25230
  ac_check_lib_save_LIBS=$LIBS
 
25231
LIBS="-llua$l  $LIBS"
 
25232
cat >conftest.$ac_ext <<_ACEOF
 
25233
/* confdefs.h.  */
 
25234
_ACEOF
 
25235
cat confdefs.h >>conftest.$ac_ext
 
25236
cat >>conftest.$ac_ext <<_ACEOF
 
25237
/* end confdefs.h.  */
 
25238
 
 
25239
/* Override any GCC internal prototype to avoid an error.
 
25240
   Use char because int might match the return type of a GCC
 
25241
   builtin and then its argument prototype would still apply.  */
 
25242
#ifdef __cplusplus
 
25243
extern "C"
 
25244
#endif
 
25245
char lua_call ();
 
25246
int
 
25247
main ()
 
25248
{
 
25249
return lua_call ();
 
25250
  ;
 
25251
  return 0;
 
25252
}
 
25253
_ACEOF
 
25254
rm -f conftest.$ac_objext conftest$ac_exeext
 
25255
if { (ac_try="$ac_link"
 
25256
case "(($ac_try" in
 
25257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25258
  *) ac_try_echo=$ac_try;;
 
25259
esac
 
25260
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25261
$as_echo "$ac_try_echo") >&5
 
25262
  (eval "$ac_link") 2>conftest.er1
 
25263
  ac_status=$?
 
25264
  grep -v '^ *+' conftest.er1 >conftest.err
 
25265
  rm -f conftest.er1
 
25266
  cat conftest.err >&5
 
25267
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25268
  (exit $ac_status); } && {
 
25269
         test -z "$ac_c_werror_flag" ||
 
25270
         test ! -s conftest.err
 
25271
       } && test -s conftest$ac_exeext && {
 
25272
         test "$cross_compiling" = yes ||
 
25273
         $as_test_x conftest$ac_exeext
 
25274
       }; then
 
25275
  eval "$as_ac_Lib=yes"
 
25276
else
 
25277
  $as_echo "$as_me: failed program was:" >&5
 
25278
sed 's/^/| /' conftest.$ac_ext >&5
 
25279
 
 
25280
        eval "$as_ac_Lib=no"
 
25281
fi
 
25282
 
 
25283
rm -rf conftest.dSYM
 
25284
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25285
      conftest$ac_exeext conftest.$ac_ext
 
25286
LIBS=$ac_check_lib_save_LIBS
 
25287
fi
 
25288
ac_res=`eval 'as_val=${'$as_ac_Lib'}
 
25289
                 $as_echo "$as_val"'`
 
25290
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
25291
$as_echo "$ac_res" >&6; }
 
25292
as_val=`eval 'as_val=${'$as_ac_Lib'}
 
25293
                 $as_echo "$as_val"'`
 
25294
   if test "x$as_val" = x""yes; then
 
25295
  ac_found_lua_lib="yes"
 
25296
else
 
25297
  ac_found_lua_lib="no"
 
25298
fi
 
25299
 
 
25300
                if test "x$ac_found_lua_lib" = "xyes" ; then
 
25301
                    LUA_VERSION=">=5.1.0"
 
25302
 
 
25303
                    LUA_LIBS="$LDFLAGS -llua$l -lm"
 
25304
 
 
25305
                    ac2_save_LDFLAGS="$LDFLAGS"
 
25306
                    LDFLAGS="$LDFLAGS -llua$l -lm"
 
25307
 
 
25308
                    if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
 
25309
                       LDFLAGS="$LDFLAGS -ldl"
 
25310
                    fi
 
25311
 
 
25312
                    as_ac_Lib=`$as_echo "ac_cv_lib_lualib$l''_luaL_openlib" | $as_tr_sh`
 
25313
{ $as_echo "$as_me:$LINENO: checking for luaL_openlib in -llualib$l" >&5
 
25314
$as_echo_n "checking for luaL_openlib in -llualib$l... " >&6; }
 
25315
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
25316
  $as_echo_n "(cached) " >&6
 
25317
else
 
25318
  ac_check_lib_save_LIBS=$LIBS
 
25319
LIBS="-llualib$l  $LIBS"
 
25320
cat >conftest.$ac_ext <<_ACEOF
 
25321
/* confdefs.h.  */
 
25322
_ACEOF
 
25323
cat confdefs.h >>conftest.$ac_ext
 
25324
cat >>conftest.$ac_ext <<_ACEOF
 
25325
/* end confdefs.h.  */
 
25326
 
 
25327
/* Override any GCC internal prototype to avoid an error.
 
25328
   Use char because int might match the return type of a GCC
 
25329
   builtin and then its argument prototype would still apply.  */
 
25330
#ifdef __cplusplus
 
25331
extern "C"
 
25332
#endif
 
25333
char luaL_openlib ();
 
25334
int
 
25335
main ()
 
25336
{
 
25337
return luaL_openlib ();
 
25338
  ;
 
25339
  return 0;
 
25340
}
 
25341
_ACEOF
 
25342
rm -f conftest.$ac_objext conftest$ac_exeext
 
25343
if { (ac_try="$ac_link"
 
25344
case "(($ac_try" in
 
25345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25346
  *) ac_try_echo=$ac_try;;
 
25347
esac
 
25348
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25349
$as_echo "$ac_try_echo") >&5
 
25350
  (eval "$ac_link") 2>conftest.er1
 
25351
  ac_status=$?
 
25352
  grep -v '^ *+' conftest.er1 >conftest.err
 
25353
  rm -f conftest.er1
 
25354
  cat conftest.err >&5
 
25355
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25356
  (exit $ac_status); } && {
 
25357
         test -z "$ac_c_werror_flag" ||
 
25358
         test ! -s conftest.err
 
25359
       } && test -s conftest$ac_exeext && {
 
25360
         test "$cross_compiling" = yes ||
 
25361
         $as_test_x conftest$ac_exeext
 
25362
       }; then
 
25363
  eval "$as_ac_Lib=yes"
 
25364
else
 
25365
  $as_echo "$as_me: failed program was:" >&5
 
25366
sed 's/^/| /' conftest.$ac_ext >&5
 
25367
 
 
25368
        eval "$as_ac_Lib=no"
 
25369
fi
 
25370
 
 
25371
rm -rf conftest.dSYM
 
25372
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25373
      conftest$ac_exeext conftest.$ac_ext
 
25374
LIBS=$ac_check_lib_save_LIBS
 
25375
fi
 
25376
ac_res=`eval 'as_val=${'$as_ac_Lib'}
 
25377
                 $as_echo "$as_val"'`
 
25378
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
25379
$as_echo "$ac_res" >&6; }
 
25380
as_val=`eval 'as_val=${'$as_ac_Lib'}
 
25381
                 $as_echo "$as_val"'`
 
25382
   if test "x$as_val" = x""yes; then
 
25383
  ac_found_liblua_lib="yes"
 
25384
else
 
25385
  ac_found_liblua_lib="no"
 
25386
fi
 
25387
 
 
25388
                    if test "x$ac_found_liblua_lib" = "xyes" ; then
 
25389
                       LUA_VERSION="5.0.x"
 
25390
 
 
25391
                       LUA_LIBS="$LUA_LFLAGS -llualib$l"
 
25392
 
 
25393
                       if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
 
25394
                          LUA_LIBS="$LUA_LFLAGS -ldl"
 
25395
                       fi
 
25396
                    fi
 
25397
 
 
25398
                    LDFLAGS="$ac2_save_LDFLAGS"
 
25399
                    break
 
25400
                fi
 
25401
            done
 
25402
        fi
 
25403
 
 
25404
        { $as_echo "$as_me:$LINENO: checking for Lua compiling and linking" >&5
 
25405
$as_echo_n "checking for Lua compiling and linking... " >&6; }
 
25406
        LUA_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT;  echo "#include <lualib.h>" >> $LT; echo "int main() { luaopen_base((lua_State *)lua_open()); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $LUA_INCLUDES $LUA_LIBS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1`
 
25407
        if test "x$LUA_TEST" != "x0" ; then
 
25408
          { $as_echo "$as_me:$LINENO: result: no" >&5
 
25409
$as_echo "no" >&6; }
 
25410
          { $as_echo "$as_me:$LINENO: WARNING:
 
25411
*** Lua (>=5.0) headers and/or libraries could not be found in your system.
 
25412
*** Try to install liblua, liblualib and liblua-dev with your software package manager.
 
25413
*** Graphviz will be built without Lua support." >&5
 
25414
$as_echo "$as_me: WARNING:
 
25415
*** Lua (>=5.0) headers and/or libraries could not be found in your system.
 
25416
*** Try to install liblua, liblualib and liblua-dev with your software package manager.
 
25417
*** Graphviz will be built without Lua support." >&2;}
 
25418
          use_lua="No (lua compiling/linking failed)"
 
25419
        else
 
25420
          use_lua="Yes"
 
25421
 
 
25422
 
 
25423
 
 
25424
          # Not needed for Graphviz: AC_DEFINE(PLUGIN_LUA)
 
25425
        fi
 
25426
        CFLAGS="$ac_save_CFLAGS"
 
25427
        CPPFLAGS="$ac_save_CPPFLAGS"
 
25428
        LDFLAGS="$ac_save_LDFLAGS"
 
25429
      fi
 
25430
    fi
 
25431
  fi
 
25432
fi
 
25433
 if test "x$use_lua" = "xYes"; then
 
25434
  WITH_LUA_TRUE=
 
25435
  WITH_LUA_FALSE='#'
 
25436
else
 
25437
  WITH_LUA_TRUE='#'
 
25438
  WITH_LUA_FALSE=
 
25439
fi
 
25440
 
 
25441
 
 
25442
 
 
25443
 
 
25444
# Check whether --enable-ocaml was given.
 
25445
if test "${enable_ocaml+set}" = set; then
 
25446
  enableval=$enable_ocaml;
 
25447
else
 
25448
  enable_ocaml=yes
 
25449
fi
 
25450
 
 
25451
 
 
25452
if test "x$enable_ocaml" != "xyes"; then
 
25453
  use_ocaml="No (disabled)"
 
25454
else
 
25455
  if test "x$use_swig" != "xYes"; then
 
25456
    use_ocaml="No (swig not available)"
 
25457
  else
 
25458
    if test `$SWIG -help 2>&1 | $GREP -c '\-ocaml *- Generate'` = 0; then
 
25459
      use_ocaml="No (swig does not support -ocaml option)"
 
25460
    else
 
25461
      # Extract the first word of "ocaml", so it can be a program name with args.
 
25462
set dummy ocaml; ac_word=$2
 
25463
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25464
$as_echo_n "checking for $ac_word... " >&6; }
 
25465
if test "${ac_cv_prog_OCAML+set}" = set; then
 
25466
  $as_echo_n "(cached) " >&6
 
25467
else
 
25468
  if test -n "$OCAML"; then
 
25469
  ac_cv_prog_OCAML="$OCAML" # Let the user override the test.
 
25470
else
 
25471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25472
for as_dir in $PATH
 
25473
do
 
25474
  IFS=$as_save_IFS
 
25475
  test -z "$as_dir" && as_dir=.
 
25476
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25477
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
25478
    ac_cv_prog_OCAML="ocaml"
 
25479
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25480
    break 2
 
25481
  fi
 
25482
done
 
25483
done
 
25484
IFS=$as_save_IFS
 
25485
 
 
25486
fi
 
25487
fi
 
25488
OCAML=$ac_cv_prog_OCAML
 
25489
if test -n "$OCAML"; then
 
25490
  { $as_echo "$as_me:$LINENO: result: $OCAML" >&5
 
25491
$as_echo "$OCAML" >&6; }
 
25492
else
 
25493
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
25494
$as_echo "no" >&6; }
 
25495
fi
 
25496
 
 
25497
 
 
25498
      if test "x$OCAML" = "x"; then
 
25499
        use_ocaml="No (ocaml not available)"
 
25500
      else
 
25501
        # Extract the first word of "ocamlopt", so it can be a program name with args.
 
25502
set dummy ocamlopt; ac_word=$2
 
25503
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25504
$as_echo_n "checking for $ac_word... " >&6; }
 
25505
if test "${ac_cv_prog_OCAML_OPT+set}" = set; then
 
25506
  $as_echo_n "(cached) " >&6
 
25507
else
 
25508
  if test -n "$OCAML_OPT"; then
 
25509
  ac_cv_prog_OCAML_OPT="$OCAML_OPT" # Let the user override the test.
 
25510
else
 
25511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25512
for as_dir in $PATH
 
25513
do
 
25514
  IFS=$as_save_IFS
 
25515
  test -z "$as_dir" && as_dir=.
 
25516
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25517
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
25518
    ac_cv_prog_OCAML_OPT="ocamlopt"
 
25519
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25520
    break 2
 
25521
  fi
 
25522
done
 
25523
done
 
25524
IFS=$as_save_IFS
 
25525
 
 
25526
fi
 
25527
fi
 
25528
OCAML_OPT=$ac_cv_prog_OCAML_OPT
 
25529
if test -n "$OCAML_OPT"; then
 
25530
  { $as_echo "$as_me:$LINENO: result: $OCAML_OPT" >&5
 
25531
$as_echo "$OCAML_OPT" >&6; }
 
25532
else
 
25533
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
25534
$as_echo "no" >&6; }
 
25535
fi
 
25536
 
 
25537
 
 
25538
        OCAML_INCLUDES=-I/usr/lib$LIBPOSTFIX/ocaml
 
25539
        OCAML_LIBS=-L/usr/lib$LIBPOSTFIX/ocaml
 
25540
        save_CPPFLAGS=$CPPFLAGS
 
25541
        CPPFLAGS="$CPPFLAGS $OCAML_INCLUDES"
 
25542
        if test "${ac_cv_header_caml_mlvalues_h+set}" = set; then
 
25543
  { $as_echo "$as_me:$LINENO: checking for caml/mlvalues.h" >&5
 
25544
$as_echo_n "checking for caml/mlvalues.h... " >&6; }
 
25545
if test "${ac_cv_header_caml_mlvalues_h+set}" = set; then
 
25546
  $as_echo_n "(cached) " >&6
 
25547
fi
 
25548
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_caml_mlvalues_h" >&5
 
25549
$as_echo "$ac_cv_header_caml_mlvalues_h" >&6; }
 
25550
else
 
25551
  # Is the header compilable?
 
25552
{ $as_echo "$as_me:$LINENO: checking caml/mlvalues.h usability" >&5
 
25553
$as_echo_n "checking caml/mlvalues.h usability... " >&6; }
 
25554
cat >conftest.$ac_ext <<_ACEOF
 
25555
/* confdefs.h.  */
 
25556
_ACEOF
 
25557
cat confdefs.h >>conftest.$ac_ext
 
25558
cat >>conftest.$ac_ext <<_ACEOF
 
25559
/* end confdefs.h.  */
 
25560
$ac_includes_default
 
25561
#include <caml/mlvalues.h>
 
25562
_ACEOF
 
25563
rm -f conftest.$ac_objext
 
25564
if { (ac_try="$ac_compile"
 
25565
case "(($ac_try" in
 
25566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25567
  *) ac_try_echo=$ac_try;;
 
25568
esac
 
25569
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25570
$as_echo "$ac_try_echo") >&5
 
25571
  (eval "$ac_compile") 2>conftest.er1
 
25572
  ac_status=$?
 
25573
  grep -v '^ *+' conftest.er1 >conftest.err
 
25574
  rm -f conftest.er1
 
25575
  cat conftest.err >&5
 
25576
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25577
  (exit $ac_status); } && {
 
25578
         test -z "$ac_c_werror_flag" ||
 
25579
         test ! -s conftest.err
 
25580
       } && test -s conftest.$ac_objext; then
 
25581
  ac_header_compiler=yes
 
25582
else
 
25583
  $as_echo "$as_me: failed program was:" >&5
 
25584
sed 's/^/| /' conftest.$ac_ext >&5
 
25585
 
 
25586
        ac_header_compiler=no
 
25587
fi
 
25588
 
 
25589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25590
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25591
$as_echo "$ac_header_compiler" >&6; }
 
25592
 
 
25593
# Is the header present?
 
25594
{ $as_echo "$as_me:$LINENO: checking caml/mlvalues.h presence" >&5
 
25595
$as_echo_n "checking caml/mlvalues.h presence... " >&6; }
 
25596
cat >conftest.$ac_ext <<_ACEOF
 
25597
/* confdefs.h.  */
 
25598
_ACEOF
 
25599
cat confdefs.h >>conftest.$ac_ext
 
25600
cat >>conftest.$ac_ext <<_ACEOF
 
25601
/* end confdefs.h.  */
 
25602
#include <caml/mlvalues.h>
 
25603
_ACEOF
 
25604
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25605
case "(($ac_try" in
 
25606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25607
  *) ac_try_echo=$ac_try;;
 
25608
esac
 
25609
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25610
$as_echo "$ac_try_echo") >&5
 
25611
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25612
  ac_status=$?
 
25613
  grep -v '^ *+' conftest.er1 >conftest.err
 
25614
  rm -f conftest.er1
 
25615
  cat conftest.err >&5
 
25616
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25617
  (exit $ac_status); } >/dev/null && {
 
25618
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25619
         test ! -s conftest.err
 
25620
       }; then
 
25621
  ac_header_preproc=yes
 
25622
else
 
25623
  $as_echo "$as_me: failed program was:" >&5
 
25624
sed 's/^/| /' conftest.$ac_ext >&5
 
25625
 
 
25626
  ac_header_preproc=no
 
25627
fi
 
25628
 
 
25629
rm -f conftest.err conftest.$ac_ext
 
25630
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25631
$as_echo "$ac_header_preproc" >&6; }
 
25632
 
 
25633
# So?  What about this header?
 
25634
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25635
  yes:no: )
 
25636
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25637
$as_echo "$as_me: WARNING: caml/mlvalues.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25638
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h: proceeding with the compiler's result" >&5
 
25639
$as_echo "$as_me: WARNING: caml/mlvalues.h: proceeding with the compiler's result" >&2;}
 
25640
    ac_header_preproc=yes
 
25641
    ;;
 
25642
  no:yes:* )
 
25643
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h: present but cannot be compiled" >&5
 
25644
$as_echo "$as_me: WARNING: caml/mlvalues.h: present but cannot be compiled" >&2;}
 
25645
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h:     check for missing prerequisite headers?" >&5
 
25646
$as_echo "$as_me: WARNING: caml/mlvalues.h:     check for missing prerequisite headers?" >&2;}
 
25647
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h: see the Autoconf documentation" >&5
 
25648
$as_echo "$as_me: WARNING: caml/mlvalues.h: see the Autoconf documentation" >&2;}
 
25649
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25650
$as_echo "$as_me: WARNING: caml/mlvalues.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25651
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h: proceeding with the preprocessor's result" >&5
 
25652
$as_echo "$as_me: WARNING: caml/mlvalues.h: proceeding with the preprocessor's result" >&2;}
 
25653
    { $as_echo "$as_me:$LINENO: WARNING: caml/mlvalues.h: in the future, the compiler will take precedence" >&5
 
25654
$as_echo "$as_me: WARNING: caml/mlvalues.h: in the future, the compiler will take precedence" >&2;}
 
25655
    ( cat <<\_ASBOX
 
25656
## --------------------------------------- ##
 
25657
## Report this to http://www.graphviz.org/ ##
 
25658
## --------------------------------------- ##
 
25659
_ASBOX
 
25660
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25661
    ;;
 
25662
esac
 
25663
{ $as_echo "$as_me:$LINENO: checking for caml/mlvalues.h" >&5
 
25664
$as_echo_n "checking for caml/mlvalues.h... " >&6; }
 
25665
if test "${ac_cv_header_caml_mlvalues_h+set}" = set; then
 
25666
  $as_echo_n "(cached) " >&6
 
25667
else
 
25668
  ac_cv_header_caml_mlvalues_h=$ac_header_preproc
 
25669
fi
 
25670
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_caml_mlvalues_h" >&5
 
25671
$as_echo "$ac_cv_header_caml_mlvalues_h" >&6; }
 
25672
 
 
25673
fi
 
25674
if test "x$ac_cv_header_caml_mlvalues_h" = x""yes; then
 
25675
 
 
25676
          use_ocaml="Yes"
 
25677
 
 
25678
 
 
25679
 
 
25680
else
 
25681
 
 
25682
          use_ocaml="No (missing header)"
 
25683
          { $as_echo "$as_me:$LINENO: WARNING: Unable to find header caml/mlvalues.h. The OCAML packages will not be built" >&5
 
25684
$as_echo "$as_me: WARNING: Unable to find header caml/mlvalues.h. The OCAML packages will not be built" >&2;}
 
25685
 
 
25686
fi
 
25687
 
 
25688
 
 
25689
        CPPFLAGS=$save_CPPFLAGS
 
25690
      fi
 
25691
    fi
 
25692
  fi
 
25693
fi
 
25694
 if test "x$use_ocaml" = "xYes"; then
 
25695
  WITH_OCAML_TRUE=
 
25696
  WITH_OCAML_FALSE='#'
 
25697
else
 
25698
  WITH_OCAML_TRUE='#'
 
25699
  WITH_OCAML_FALSE=
 
25700
fi
 
25701
 
 
25702
 if test "x$OCAML_OPT" != "x"; then
 
25703
  WITH_OCAMLOPT_TRUE=
 
25704
  WITH_OCAMLOPT_FALSE='#'
 
25705
else
 
25706
  WITH_OCAMLOPT_TRUE='#'
 
25707
  WITH_OCAMLOPT_FALSE=
 
25708
fi
 
25709
 
 
25710
 
 
25711
 
 
25712
# Check whether --enable-perl was given.
 
25713
if test "${enable_perl+set}" = set; then
 
25714
  enableval=$enable_perl;
 
25715
else
 
25716
  enable_perl=yes
 
25717
fi
 
25718
 
 
25719
 
 
25720
if test "x$enable_perl" != "xyes"; then
 
25721
  use_perl="No (disabled)"
 
25722
else
 
25723
  if test "x$use_swig" != "xYes"; then
 
25724
    use_perl="No (swig not available)"
 
25725
  else
 
25726
    if test `$SWIG -help 2>&1 | $GREP -c '\-perl *- Generate'` = 0; then
 
25727
      use_perl="No (swig does not support -perl option)"
 
25728
    else
 
25729
      # Extract the first word of "perl", so it can be a program name with args.
 
25730
set dummy perl; ac_word=$2
 
25731
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25732
$as_echo_n "checking for $ac_word... " >&6; }
 
25733
if test "${ac_cv_prog_PERL+set}" = set; then
 
25734
  $as_echo_n "(cached) " >&6
 
25735
else
 
25736
  if test -n "$PERL"; then
 
25737
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
 
25738
else
 
25739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25740
for as_dir in $PATH
 
25741
do
 
25742
  IFS=$as_save_IFS
 
25743
  test -z "$as_dir" && as_dir=.
 
25744
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25745
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
25746
    ac_cv_prog_PERL="perl"
 
25747
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25748
    break 2
 
25749
  fi
 
25750
done
 
25751
done
 
25752
IFS=$as_save_IFS
 
25753
 
 
25754
fi
 
25755
fi
 
25756
PERL=$ac_cv_prog_PERL
 
25757
if test -n "$PERL"; then
 
25758
  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
 
25759
$as_echo "$PERL" >&6; }
 
25760
else
 
25761
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
25762
$as_echo "no" >&6; }
 
25763
fi
 
25764
 
 
25765
 
 
25766
      if test "x$PERL" = "x"; then
 
25767
        use_perl="No (perl not available)"
 
25768
      else
 
25769
        if test $PERL -e 'exit !($] <= 5.004)' > /dev/null 2>&1 ; then
 
25770
          use_perl="No (perl is too old)"
 
25771
          PERL=
 
25772
        else
 
25773
          PERL_INCLUDES="`$PERL $srcdir/config/config_perl.pl PERL_INCLUDES`"
 
25774
          PERL_LIBS="`$PERL $srcdir/config/config_perl.pl PERL_LIBS`"
 
25775
          PERL_INSTALL_DIR="`$PERL $srcdir/config/config_perl.pl PERL_INSTALL_DIR`"
 
25776
          save_CPPFLAGS=$CPPFLAGS
 
25777
          CPPFLAGS="$CPPFLAGS $PERL_INCLUDES"
 
25778
          if test "${ac_cv_header_EXTERN_h+set}" = set; then
 
25779
  { $as_echo "$as_me:$LINENO: checking for EXTERN.h" >&5
 
25780
$as_echo_n "checking for EXTERN.h... " >&6; }
 
25781
if test "${ac_cv_header_EXTERN_h+set}" = set; then
 
25782
  $as_echo_n "(cached) " >&6
 
25783
fi
 
25784
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_EXTERN_h" >&5
 
25785
$as_echo "$ac_cv_header_EXTERN_h" >&6; }
 
25786
else
 
25787
  # Is the header compilable?
 
25788
{ $as_echo "$as_me:$LINENO: checking EXTERN.h usability" >&5
 
25789
$as_echo_n "checking EXTERN.h usability... " >&6; }
 
25790
cat >conftest.$ac_ext <<_ACEOF
 
25791
/* confdefs.h.  */
 
25792
_ACEOF
 
25793
cat confdefs.h >>conftest.$ac_ext
 
25794
cat >>conftest.$ac_ext <<_ACEOF
 
25795
/* end confdefs.h.  */
 
25796
$ac_includes_default
 
25797
#include <EXTERN.h>
 
25798
_ACEOF
 
25799
rm -f conftest.$ac_objext
 
25800
if { (ac_try="$ac_compile"
 
25801
case "(($ac_try" in
 
25802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25803
  *) ac_try_echo=$ac_try;;
 
25804
esac
 
25805
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25806
$as_echo "$ac_try_echo") >&5
 
25807
  (eval "$ac_compile") 2>conftest.er1
 
25808
  ac_status=$?
 
25809
  grep -v '^ *+' conftest.er1 >conftest.err
 
25810
  rm -f conftest.er1
 
25811
  cat conftest.err >&5
 
25812
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25813
  (exit $ac_status); } && {
 
25814
         test -z "$ac_c_werror_flag" ||
 
25815
         test ! -s conftest.err
 
25816
       } && test -s conftest.$ac_objext; then
 
25817
  ac_header_compiler=yes
 
25818
else
 
25819
  $as_echo "$as_me: failed program was:" >&5
 
25820
sed 's/^/| /' conftest.$ac_ext >&5
 
25821
 
 
25822
        ac_header_compiler=no
 
25823
fi
 
25824
 
 
25825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25826
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25827
$as_echo "$ac_header_compiler" >&6; }
 
25828
 
 
25829
# Is the header present?
 
25830
{ $as_echo "$as_me:$LINENO: checking EXTERN.h presence" >&5
 
25831
$as_echo_n "checking EXTERN.h presence... " >&6; }
 
25832
cat >conftest.$ac_ext <<_ACEOF
 
25833
/* confdefs.h.  */
 
25834
_ACEOF
 
25835
cat confdefs.h >>conftest.$ac_ext
 
25836
cat >>conftest.$ac_ext <<_ACEOF
 
25837
/* end confdefs.h.  */
 
25838
#include <EXTERN.h>
 
25839
_ACEOF
 
25840
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25841
case "(($ac_try" in
 
25842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25843
  *) ac_try_echo=$ac_try;;
 
25844
esac
 
25845
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25846
$as_echo "$ac_try_echo") >&5
 
25847
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25848
  ac_status=$?
 
25849
  grep -v '^ *+' conftest.er1 >conftest.err
 
25850
  rm -f conftest.er1
 
25851
  cat conftest.err >&5
 
25852
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25853
  (exit $ac_status); } >/dev/null && {
 
25854
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25855
         test ! -s conftest.err
 
25856
       }; then
 
25857
  ac_header_preproc=yes
 
25858
else
 
25859
  $as_echo "$as_me: failed program was:" >&5
 
25860
sed 's/^/| /' conftest.$ac_ext >&5
 
25861
 
 
25862
  ac_header_preproc=no
 
25863
fi
 
25864
 
 
25865
rm -f conftest.err conftest.$ac_ext
 
25866
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25867
$as_echo "$ac_header_preproc" >&6; }
 
25868
 
 
25869
# So?  What about this header?
 
25870
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25871
  yes:no: )
 
25872
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25873
$as_echo "$as_me: WARNING: EXTERN.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25874
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h: proceeding with the compiler's result" >&5
 
25875
$as_echo "$as_me: WARNING: EXTERN.h: proceeding with the compiler's result" >&2;}
 
25876
    ac_header_preproc=yes
 
25877
    ;;
 
25878
  no:yes:* )
 
25879
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h: present but cannot be compiled" >&5
 
25880
$as_echo "$as_me: WARNING: EXTERN.h: present but cannot be compiled" >&2;}
 
25881
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h:     check for missing prerequisite headers?" >&5
 
25882
$as_echo "$as_me: WARNING: EXTERN.h:     check for missing prerequisite headers?" >&2;}
 
25883
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h: see the Autoconf documentation" >&5
 
25884
$as_echo "$as_me: WARNING: EXTERN.h: see the Autoconf documentation" >&2;}
 
25885
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25886
$as_echo "$as_me: WARNING: EXTERN.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25887
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h: proceeding with the preprocessor's result" >&5
 
25888
$as_echo "$as_me: WARNING: EXTERN.h: proceeding with the preprocessor's result" >&2;}
 
25889
    { $as_echo "$as_me:$LINENO: WARNING: EXTERN.h: in the future, the compiler will take precedence" >&5
 
25890
$as_echo "$as_me: WARNING: EXTERN.h: in the future, the compiler will take precedence" >&2;}
 
25891
    ( cat <<\_ASBOX
 
25892
## --------------------------------------- ##
 
25893
## Report this to http://www.graphviz.org/ ##
 
25894
## --------------------------------------- ##
 
25895
_ASBOX
 
25896
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25897
    ;;
 
25898
esac
 
25899
{ $as_echo "$as_me:$LINENO: checking for EXTERN.h" >&5
 
25900
$as_echo_n "checking for EXTERN.h... " >&6; }
 
25901
if test "${ac_cv_header_EXTERN_h+set}" = set; then
 
25902
  $as_echo_n "(cached) " >&6
 
25903
else
 
25904
  ac_cv_header_EXTERN_h=$ac_header_preproc
 
25905
fi
 
25906
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_EXTERN_h" >&5
 
25907
$as_echo "$ac_cv_header_EXTERN_h" >&6; }
 
25908
 
 
25909
fi
 
25910
if test "x$ac_cv_header_EXTERN_h" = x""yes; then
 
25911
  :
 
25912
else
 
25913
 
 
25914
            use_perl="No (missing header)"
 
25915
            PERL=
 
25916
 
 
25917
fi
 
25918
 
 
25919
 
 
25920
#         save_LDFLAGS=$LDFLAGS
 
25921
#         LDFLAGS="$LDFLAGS $PERL_LIBS"
 
25922
#          AC_CHECK_LIB(perl,main,,[
 
25923
#            use_perl="No (missing library)"
 
25924
#            PERL=
 
25925
#          ])
 
25926
#         LDFLAGS=$save_LDFLAGS
 
25927
          CPPFLAGS=$save_CPPFLAGS
 
25928
        fi
 
25929
        if test "x$PERL" != "x"; then
 
25930
          use_perl="Yes"
 
25931
 
 
25932
 
 
25933
 
 
25934
        fi
 
25935
      fi
 
25936
    fi
 
25937
  fi
 
25938
fi
 
25939
 if test "x$use_perl" = "xYes"; then
 
25940
  WITH_PERL_TRUE=
 
25941
  WITH_PERL_FALSE='#'
 
25942
else
 
25943
  WITH_PERL_TRUE='#'
 
25944
  WITH_PERL_FALSE=
 
25945
fi
 
25946
 
 
25947
 
 
25948
 
 
25949
# Check whether --enable-php was given.
 
25950
if test "${enable_php+set}" = set; then
 
25951
  enableval=$enable_php;
 
25952
else
 
25953
  enable_php=yes
 
25954
fi
 
25955
 
 
25956
 
 
25957
if test "x$enable_php" != "xyes"; then
 
25958
  use_php="No (disabled)"
 
25959
else
 
25960
  if test "x$use_swig" != "xYes"; then
 
25961
    use_php="No (swig not available)"
 
25962
  else
 
25963
    if test `$SWIG -help 2>&1 | $GREP -c '\-php5* *- Generate'` = 0 ; then
 
25964
      use_php="No (swig does not support -php or -php5 option)"
 
25965
    else
 
25966
      # Extract the first word of "php", so it can be a program name with args.
 
25967
set dummy php; ac_word=$2
 
25968
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25969
$as_echo_n "checking for $ac_word... " >&6; }
 
25970
if test "${ac_cv_prog_PHP+set}" = set; then
 
25971
  $as_echo_n "(cached) " >&6
 
25972
else
 
25973
  if test -n "$PHP"; then
 
25974
  ac_cv_prog_PHP="$PHP" # Let the user override the test.
 
25975
else
 
25976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25977
for as_dir in $PATH
 
25978
do
 
25979
  IFS=$as_save_IFS
 
25980
  test -z "$as_dir" && as_dir=.
 
25981
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25982
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
25983
    ac_cv_prog_PHP="php"
 
25984
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25985
    break 2
 
25986
  fi
 
25987
done
 
25988
done
 
25989
IFS=$as_save_IFS
 
25990
 
 
25991
fi
 
25992
fi
 
25993
PHP=$ac_cv_prog_PHP
 
25994
if test -n "$PHP"; then
 
25995
  { $as_echo "$as_me:$LINENO: result: $PHP" >&5
 
25996
$as_echo "$PHP" >&6; }
 
25997
else
 
25998
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
25999
$as_echo "no" >&6; }
 
26000
fi
 
26001
 
 
26002
 
 
26003
      if test "x$PHP" = "x"; then
 
26004
        use_php="No (php not available)"
 
26005
      else
 
26006
        if test -d /usr/include/php5; then
 
26007
          PHP_INCLUDES="-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/Zend -I/usr/include/php5/TSRM"
 
26008
        else
 
26009
          PHP_INCLUDES="-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM"
 
26010
        fi
 
26011
        PHP_INSTALL_DIR="/usr/lib${LIBPOSTFIX}/php/modules"
 
26012
        PHP_INSTALL_DATADIR="/usr/share/php"
 
26013
        PHP_LIBS=
 
26014
        save_CPPFLAGS=$CPPFLAGS
 
26015
        CPPFLAGS="$CPPFLAGS $PHP_INCLUDES"
 
26016
        if test "${ac_cv_header_php_h+set}" = set; then
 
26017
  { $as_echo "$as_me:$LINENO: checking for php.h" >&5
 
26018
$as_echo_n "checking for php.h... " >&6; }
 
26019
if test "${ac_cv_header_php_h+set}" = set; then
 
26020
  $as_echo_n "(cached) " >&6
 
26021
fi
 
26022
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_php_h" >&5
 
26023
$as_echo "$ac_cv_header_php_h" >&6; }
 
26024
else
 
26025
  # Is the header compilable?
 
26026
{ $as_echo "$as_me:$LINENO: checking php.h usability" >&5
 
26027
$as_echo_n "checking php.h usability... " >&6; }
 
26028
cat >conftest.$ac_ext <<_ACEOF
 
26029
/* confdefs.h.  */
 
26030
_ACEOF
 
26031
cat confdefs.h >>conftest.$ac_ext
 
26032
cat >>conftest.$ac_ext <<_ACEOF
 
26033
/* end confdefs.h.  */
 
26034
$ac_includes_default
 
26035
#include <php.h>
 
26036
_ACEOF
 
26037
rm -f conftest.$ac_objext
 
26038
if { (ac_try="$ac_compile"
 
26039
case "(($ac_try" in
 
26040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26041
  *) ac_try_echo=$ac_try;;
 
26042
esac
 
26043
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26044
$as_echo "$ac_try_echo") >&5
 
26045
  (eval "$ac_compile") 2>conftest.er1
 
26046
  ac_status=$?
 
26047
  grep -v '^ *+' conftest.er1 >conftest.err
 
26048
  rm -f conftest.er1
 
26049
  cat conftest.err >&5
 
26050
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26051
  (exit $ac_status); } && {
 
26052
         test -z "$ac_c_werror_flag" ||
 
26053
         test ! -s conftest.err
 
26054
       } && test -s conftest.$ac_objext; then
 
26055
  ac_header_compiler=yes
 
26056
else
 
26057
  $as_echo "$as_me: failed program was:" >&5
 
26058
sed 's/^/| /' conftest.$ac_ext >&5
 
26059
 
 
26060
        ac_header_compiler=no
 
26061
fi
 
26062
 
 
26063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26064
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26065
$as_echo "$ac_header_compiler" >&6; }
 
26066
 
 
26067
# Is the header present?
 
26068
{ $as_echo "$as_me:$LINENO: checking php.h presence" >&5
 
26069
$as_echo_n "checking php.h presence... " >&6; }
 
26070
cat >conftest.$ac_ext <<_ACEOF
 
26071
/* confdefs.h.  */
 
26072
_ACEOF
 
26073
cat confdefs.h >>conftest.$ac_ext
 
26074
cat >>conftest.$ac_ext <<_ACEOF
 
26075
/* end confdefs.h.  */
 
26076
#include <php.h>
 
26077
_ACEOF
 
26078
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
26079
case "(($ac_try" in
 
26080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26081
  *) ac_try_echo=$ac_try;;
 
26082
esac
 
26083
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26084
$as_echo "$ac_try_echo") >&5
 
26085
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
26086
  ac_status=$?
 
26087
  grep -v '^ *+' conftest.er1 >conftest.err
 
26088
  rm -f conftest.er1
 
26089
  cat conftest.err >&5
 
26090
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26091
  (exit $ac_status); } >/dev/null && {
 
26092
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
26093
         test ! -s conftest.err
 
26094
       }; then
 
26095
  ac_header_preproc=yes
 
26096
else
 
26097
  $as_echo "$as_me: failed program was:" >&5
 
26098
sed 's/^/| /' conftest.$ac_ext >&5
 
26099
 
 
26100
  ac_header_preproc=no
 
26101
fi
 
26102
 
 
26103
rm -f conftest.err conftest.$ac_ext
 
26104
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26105
$as_echo "$ac_header_preproc" >&6; }
 
26106
 
 
26107
# So?  What about this header?
 
26108
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26109
  yes:no: )
 
26110
    { $as_echo "$as_me:$LINENO: WARNING: php.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
26111
$as_echo "$as_me: WARNING: php.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26112
    { $as_echo "$as_me:$LINENO: WARNING: php.h: proceeding with the compiler's result" >&5
 
26113
$as_echo "$as_me: WARNING: php.h: proceeding with the compiler's result" >&2;}
 
26114
    ac_header_preproc=yes
 
26115
    ;;
 
26116
  no:yes:* )
 
26117
    { $as_echo "$as_me:$LINENO: WARNING: php.h: present but cannot be compiled" >&5
 
26118
$as_echo "$as_me: WARNING: php.h: present but cannot be compiled" >&2;}
 
26119
    { $as_echo "$as_me:$LINENO: WARNING: php.h:     check for missing prerequisite headers?" >&5
 
26120
$as_echo "$as_me: WARNING: php.h:     check for missing prerequisite headers?" >&2;}
 
26121
    { $as_echo "$as_me:$LINENO: WARNING: php.h: see the Autoconf documentation" >&5
 
26122
$as_echo "$as_me: WARNING: php.h: see the Autoconf documentation" >&2;}
 
26123
    { $as_echo "$as_me:$LINENO: WARNING: php.h:     section \"Present But Cannot Be Compiled\"" >&5
 
26124
$as_echo "$as_me: WARNING: php.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26125
    { $as_echo "$as_me:$LINENO: WARNING: php.h: proceeding with the preprocessor's result" >&5
 
26126
$as_echo "$as_me: WARNING: php.h: proceeding with the preprocessor's result" >&2;}
 
26127
    { $as_echo "$as_me:$LINENO: WARNING: php.h: in the future, the compiler will take precedence" >&5
 
26128
$as_echo "$as_me: WARNING: php.h: in the future, the compiler will take precedence" >&2;}
 
26129
    ( cat <<\_ASBOX
 
26130
## --------------------------------------- ##
 
26131
## Report this to http://www.graphviz.org/ ##
 
26132
## --------------------------------------- ##
 
26133
_ASBOX
 
26134
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
26135
    ;;
 
26136
esac
 
26137
{ $as_echo "$as_me:$LINENO: checking for php.h" >&5
 
26138
$as_echo_n "checking for php.h... " >&6; }
 
26139
if test "${ac_cv_header_php_h+set}" = set; then
 
26140
  $as_echo_n "(cached) " >&6
 
26141
else
 
26142
  ac_cv_header_php_h=$ac_header_preproc
 
26143
fi
 
26144
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_php_h" >&5
 
26145
$as_echo "$ac_cv_header_php_h" >&6; }
 
26146
 
 
26147
fi
 
26148
if test "x$ac_cv_header_php_h" = x""yes; then
 
26149
  :
 
26150
else
 
26151
 
 
26152
          use_php="No (missing header)"
 
26153
          PHP=
 
26154
 
 
26155
fi
 
26156
 
 
26157
 
 
26158
        CPPFLAGS=$save_CPPFLAGS
 
26159
        if test "x$PHP" != "x"; then
 
26160
          use_php="Yes"
 
26161
 
 
26162
 
 
26163
 
 
26164
 
 
26165
        fi
 
26166
      fi
 
26167
    fi
 
26168
  fi
 
26169
fi
 
26170
 if test "x$use_php" = "xYes"; then
 
26171
  WITH_PHP_TRUE=
 
26172
  WITH_PHP_FALSE='#'
 
26173
else
 
26174
  WITH_PHP_TRUE='#'
 
26175
  WITH_PHP_FALSE=
 
26176
fi
 
26177
 
 
26178
 
 
26179
 
 
26180
# Check whether --enable-python was given.
 
26181
if test "${enable_python+set}" = set; then
 
26182
  enableval=$enable_python;
 
26183
else
 
26184
  enable_python=yes
 
26185
fi
 
26186
 
 
26187
 
 
26188
if test "x$enable_python" != "xyes"; then
 
26189
  use_python="No (disabled)"
 
26190
else
 
26191
  if test "x$use_swig" != "xYes"; then
 
26192
    use_python="No (swig not available)"
 
26193
  else
 
26194
    if test `$SWIG -help 2>&1 | $GREP -c '\-python *- Generate'` = 0; then
 
26195
      use_python="No (swig does not support -python option)"
 
26196
    else
 
26197
      # Extract the first word of "python", so it can be a program name with args.
 
26198
set dummy python; ac_word=$2
 
26199
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26200
$as_echo_n "checking for $ac_word... " >&6; }
 
26201
if test "${ac_cv_prog_PYTHON+set}" = set; then
 
26202
  $as_echo_n "(cached) " >&6
 
26203
else
 
26204
  if test -n "$PYTHON"; then
 
26205
  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
 
26206
else
 
26207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26208
for as_dir in $PATH
 
26209
do
 
26210
  IFS=$as_save_IFS
 
26211
  test -z "$as_dir" && as_dir=.
 
26212
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26213
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26214
    ac_cv_prog_PYTHON="python"
 
26215
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26216
    break 2
 
26217
  fi
 
26218
done
 
26219
done
 
26220
IFS=$as_save_IFS
 
26221
 
 
26222
fi
 
26223
fi
 
26224
PYTHON=$ac_cv_prog_PYTHON
 
26225
if test -n "$PYTHON"; then
 
26226
  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
 
26227
$as_echo "$PYTHON" >&6; }
 
26228
else
 
26229
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
26230
$as_echo "no" >&6; }
 
26231
fi
 
26232
 
 
26233
 
 
26234
      if test "x$PYTHON" = "x"; then
 
26235
        use_python="No (python not available)"
 
26236
      else
 
26237
        PYTHON_VERSION=`$PYTHON -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
 
26238
        if test "x$PYTHON_VERSION" = "x"; then
 
26239
          PYTHON=
 
26240
        else
 
26241
          PYTHON_VERSION_MAJOR=`echo $PYTHON_VERSION | cut -d '.' -f 1`
 
26242
          PYTHON_VERSION_MINOR=`echo $PYTHON_VERSION | cut -d '.' -f 2`
 
26243
          PYTHON_VERSION_SHORT=$PYTHON_VERSION_MAJOR.$PYTHON_VERSION_MINOR
 
26244
          if test $PYTHON_VERSION_MAJOR -lt 3; then
 
26245
            if test $PYTHON_VERSION_MAJOR -lt 2; then
 
26246
              PYTHON=
 
26247
            else
 
26248
              if test $PYTHON_VERSION_MINOR -lt 3; then
 
26249
                PYTHON=
 
26250
              fi
 
26251
            fi
 
26252
          fi
 
26253
        fi
 
26254
      fi
 
26255
      if test "x$PYTHON" = "x"; then
 
26256
        use_python="No (python is too old)"
 
26257
      else
 
26258
        PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"`
 
26259
        PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION_SHORT
 
26260
        PYTHON_LIBS="-lpython$PYTHON_VERSION_SHORT"
 
26261
        PYTHON_INSTALL_DIR="`$PYTHON $srcdir/config/config_python.py archsitelib`"
 
26262
        save_CPPFLAGS=$CPPFLAGS
 
26263
        CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
 
26264
        if test "${ac_cv_header_Python_h+set}" = set; then
 
26265
  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
26266
$as_echo_n "checking for Python.h... " >&6; }
 
26267
if test "${ac_cv_header_Python_h+set}" = set; then
 
26268
  $as_echo_n "(cached) " >&6
 
26269
fi
 
26270
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
26271
$as_echo "$ac_cv_header_Python_h" >&6; }
 
26272
else
 
26273
  # Is the header compilable?
 
26274
{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
 
26275
$as_echo_n "checking Python.h usability... " >&6; }
 
26276
cat >conftest.$ac_ext <<_ACEOF
 
26277
/* confdefs.h.  */
 
26278
_ACEOF
 
26279
cat confdefs.h >>conftest.$ac_ext
 
26280
cat >>conftest.$ac_ext <<_ACEOF
 
26281
/* end confdefs.h.  */
 
26282
$ac_includes_default
 
26283
#include <Python.h>
 
26284
_ACEOF
 
26285
rm -f conftest.$ac_objext
 
26286
if { (ac_try="$ac_compile"
 
26287
case "(($ac_try" in
 
26288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26289
  *) ac_try_echo=$ac_try;;
 
26290
esac
 
26291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26292
$as_echo "$ac_try_echo") >&5
 
26293
  (eval "$ac_compile") 2>conftest.er1
 
26294
  ac_status=$?
 
26295
  grep -v '^ *+' conftest.er1 >conftest.err
 
26296
  rm -f conftest.er1
 
26297
  cat conftest.err >&5
 
26298
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26299
  (exit $ac_status); } && {
 
26300
         test -z "$ac_c_werror_flag" ||
 
26301
         test ! -s conftest.err
 
26302
       } && test -s conftest.$ac_objext; then
 
26303
  ac_header_compiler=yes
 
26304
else
 
26305
  $as_echo "$as_me: failed program was:" >&5
 
26306
sed 's/^/| /' conftest.$ac_ext >&5
 
26307
 
 
26308
        ac_header_compiler=no
 
26309
fi
 
26310
 
 
26311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26312
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26313
$as_echo "$ac_header_compiler" >&6; }
 
26314
 
 
26315
# Is the header present?
 
26316
{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
 
26317
$as_echo_n "checking Python.h presence... " >&6; }
 
26318
cat >conftest.$ac_ext <<_ACEOF
 
26319
/* confdefs.h.  */
 
26320
_ACEOF
 
26321
cat confdefs.h >>conftest.$ac_ext
 
26322
cat >>conftest.$ac_ext <<_ACEOF
 
26323
/* end confdefs.h.  */
 
26324
#include <Python.h>
 
26325
_ACEOF
 
26326
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
26327
case "(($ac_try" in
 
26328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26329
  *) ac_try_echo=$ac_try;;
 
26330
esac
 
26331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26332
$as_echo "$ac_try_echo") >&5
 
26333
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
26334
  ac_status=$?
 
26335
  grep -v '^ *+' conftest.er1 >conftest.err
 
26336
  rm -f conftest.er1
 
26337
  cat conftest.err >&5
 
26338
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26339
  (exit $ac_status); } >/dev/null && {
 
26340
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
26341
         test ! -s conftest.err
 
26342
       }; then
 
26343
  ac_header_preproc=yes
 
26344
else
 
26345
  $as_echo "$as_me: failed program was:" >&5
 
26346
sed 's/^/| /' conftest.$ac_ext >&5
 
26347
 
 
26348
  ac_header_preproc=no
 
26349
fi
 
26350
 
 
26351
rm -f conftest.err conftest.$ac_ext
 
26352
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26353
$as_echo "$ac_header_preproc" >&6; }
 
26354
 
 
26355
# So?  What about this header?
 
26356
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26357
  yes:no: )
 
26358
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
26359
$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26360
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
 
26361
$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
 
26362
    ac_header_preproc=yes
 
26363
    ;;
 
26364
  no:yes:* )
 
26365
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
 
26366
$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
 
26367
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
 
26368
$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
 
26369
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
 
26370
$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
 
26371
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
 
26372
$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26373
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
 
26374
$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
 
26375
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
 
26376
$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
 
26377
    ( cat <<\_ASBOX
 
26378
## --------------------------------------- ##
 
26379
## Report this to http://www.graphviz.org/ ##
 
26380
## --------------------------------------- ##
 
26381
_ASBOX
 
26382
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
26383
    ;;
 
26384
esac
 
26385
{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
26386
$as_echo_n "checking for Python.h... " >&6; }
 
26387
if test "${ac_cv_header_Python_h+set}" = set; then
 
26388
  $as_echo_n "(cached) " >&6
 
26389
else
 
26390
  ac_cv_header_Python_h=$ac_header_preproc
 
26391
fi
 
26392
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
26393
$as_echo "$ac_cv_header_Python_h" >&6; }
 
26394
 
 
26395
fi
 
26396
if test "x$ac_cv_header_Python_h" = x""yes; then
 
26397
  :
 
26398
else
 
26399
 
 
26400
          use_python="No (missing header)"
 
26401
          PYTHON=
 
26402
 
 
26403
fi
 
26404
 
 
26405
 
 
26406
        CPPFLAGS=$save_CPPFLAGS
 
26407
        if test "x$PYTHON" != "x"; then
 
26408
          use_python="Yes"
 
26409
 
 
26410
 
 
26411
 
 
26412
        fi
 
26413
      fi
 
26414
    fi
 
26415
  fi
 
26416
fi
 
26417
 if test "x$use_python" = "xYes"; then
 
26418
  WITH_PYTHON_TRUE=
 
26419
  WITH_PYTHON_FALSE='#'
 
26420
else
 
26421
  WITH_PYTHON_TRUE='#'
 
26422
  WITH_PYTHON_FALSE=
 
26423
fi
 
26424
 
 
26425
 
 
26426
 
 
26427
# Check whether --enable-python23 was given.
 
26428
if test "${enable_python23+set}" = set; then
 
26429
  enableval=$enable_python23;
 
26430
else
 
26431
  enable_python23=no
 
26432
fi
 
26433
 
 
26434
 
 
26435
if test "x$enable_python23" != "xyes"; then
 
26436
  use_python23="No (disabled by default - for multiversion installs)"
 
26437
else
 
26438
  if test "x$use_swig" != "xYes"; then
 
26439
    use_python23="No (swig not available)"
 
26440
  else
 
26441
    if test `$SWIG -help 2>&1 | $GREP -c '\-python *- Generate'` = 0; then
 
26442
      use_python23="No (swig does not support -python option)"
 
26443
    else
 
26444
      # Extract the first word of "python2.3", so it can be a program name with args.
 
26445
set dummy python2.3; ac_word=$2
 
26446
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26447
$as_echo_n "checking for $ac_word... " >&6; }
 
26448
if test "${ac_cv_prog_PYTHON23+set}" = set; then
 
26449
  $as_echo_n "(cached) " >&6
 
26450
else
 
26451
  if test -n "$PYTHON23"; then
 
26452
  ac_cv_prog_PYTHON23="$PYTHON23" # Let the user override the test.
 
26453
else
 
26454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26455
for as_dir in $PATH
 
26456
do
 
26457
  IFS=$as_save_IFS
 
26458
  test -z "$as_dir" && as_dir=.
 
26459
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26461
    ac_cv_prog_PYTHON23="python2.3"
 
26462
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26463
    break 2
 
26464
  fi
 
26465
done
 
26466
done
 
26467
IFS=$as_save_IFS
 
26468
 
 
26469
fi
 
26470
fi
 
26471
PYTHON23=$ac_cv_prog_PYTHON23
 
26472
if test -n "$PYTHON23"; then
 
26473
  { $as_echo "$as_me:$LINENO: result: $PYTHON23" >&5
 
26474
$as_echo "$PYTHON23" >&6; }
 
26475
else
 
26476
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
26477
$as_echo "no" >&6; }
 
26478
fi
 
26479
 
 
26480
 
 
26481
      if test "x$PYTHON23" = "x"; then
 
26482
        use_python23="No (python23 not available)"
 
26483
      else
 
26484
        PYTHON23_VERSION=`$PYTHON23 -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
 
26485
        if test "x$PYTHON23_VERSION" = "x"; then
 
26486
          PYTHON23=
 
26487
        else
 
26488
          PYTHON23_VERSION_MAJOR=`echo $PYTHON23_VERSION | cut -d '.' -f 1`
 
26489
          PYTHON23_VERSION_MINOR=`echo $PYTHON23_VERSION | cut -d '.' -f 2`
 
26490
          PYTHON23_VERSION_SHORT=$PYTHON23_VERSION_MAJOR.$PYTHON23_VERSION_MINOR
 
26491
          if test $PYTHON23_VERSION_MAJOR -lt 3; then
 
26492
            if test $PYTHON23_VERSION_MAJOR -lt 2; then
 
26493
              PYTHON23=
 
26494
            else
 
26495
              if test $PYTHON23_VERSION_MINOR -lt 3; then
 
26496
                PYTHON23=
 
26497
              fi
 
26498
            fi
 
26499
          fi
 
26500
        fi
 
26501
      fi
 
26502
      if test "x$PYTHON23" = "x"; then
 
26503
        use_python23="No (python2.3 is too old)"
 
26504
      else
 
26505
        PYTHON23_PREFIX=`$PYTHON23 -c "import sys; print sys.prefix"`
 
26506
        PYTHON23_INCLUDES=-I$PYTHON23_PREFIX/include/python$PYTHON23_VERSION_SHORT
 
26507
        PYTHON23_LIBS="-lpython$PYTHON_VERSION_SHORT"
 
26508
        PYTHON23_INSTALL_DIR="`$PYTHON23 $srcdir/config/config_python.py archsitelib`"
 
26509
        save_CPPFLAGS=$CPPFLAGS
 
26510
        CPPFLAGS="$CPPFLAGS $PYTHON23_INCLUDES"
 
26511
        if test "${ac_cv_header_Python_h+set}" = set; then
 
26512
  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
26513
$as_echo_n "checking for Python.h... " >&6; }
 
26514
if test "${ac_cv_header_Python_h+set}" = set; then
 
26515
  $as_echo_n "(cached) " >&6
 
26516
fi
 
26517
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
26518
$as_echo "$ac_cv_header_Python_h" >&6; }
 
26519
else
 
26520
  # Is the header compilable?
 
26521
{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
 
26522
$as_echo_n "checking Python.h usability... " >&6; }
 
26523
cat >conftest.$ac_ext <<_ACEOF
 
26524
/* confdefs.h.  */
 
26525
_ACEOF
 
26526
cat confdefs.h >>conftest.$ac_ext
 
26527
cat >>conftest.$ac_ext <<_ACEOF
 
26528
/* end confdefs.h.  */
 
26529
$ac_includes_default
 
26530
#include <Python.h>
 
26531
_ACEOF
 
26532
rm -f conftest.$ac_objext
 
26533
if { (ac_try="$ac_compile"
 
26534
case "(($ac_try" in
 
26535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26536
  *) ac_try_echo=$ac_try;;
 
26537
esac
 
26538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26539
$as_echo "$ac_try_echo") >&5
 
26540
  (eval "$ac_compile") 2>conftest.er1
 
26541
  ac_status=$?
 
26542
  grep -v '^ *+' conftest.er1 >conftest.err
 
26543
  rm -f conftest.er1
 
26544
  cat conftest.err >&5
 
26545
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26546
  (exit $ac_status); } && {
 
26547
         test -z "$ac_c_werror_flag" ||
 
26548
         test ! -s conftest.err
 
26549
       } && test -s conftest.$ac_objext; then
 
26550
  ac_header_compiler=yes
 
26551
else
 
26552
  $as_echo "$as_me: failed program was:" >&5
 
26553
sed 's/^/| /' conftest.$ac_ext >&5
 
26554
 
 
26555
        ac_header_compiler=no
 
26556
fi
 
26557
 
 
26558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26559
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26560
$as_echo "$ac_header_compiler" >&6; }
 
26561
 
 
26562
# Is the header present?
 
26563
{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
 
26564
$as_echo_n "checking Python.h presence... " >&6; }
 
26565
cat >conftest.$ac_ext <<_ACEOF
 
26566
/* confdefs.h.  */
 
26567
_ACEOF
 
26568
cat confdefs.h >>conftest.$ac_ext
 
26569
cat >>conftest.$ac_ext <<_ACEOF
 
26570
/* end confdefs.h.  */
 
26571
#include <Python.h>
 
26572
_ACEOF
 
26573
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
26574
case "(($ac_try" in
 
26575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26576
  *) ac_try_echo=$ac_try;;
 
26577
esac
 
26578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26579
$as_echo "$ac_try_echo") >&5
 
26580
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
26581
  ac_status=$?
 
26582
  grep -v '^ *+' conftest.er1 >conftest.err
 
26583
  rm -f conftest.er1
 
26584
  cat conftest.err >&5
 
26585
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26586
  (exit $ac_status); } >/dev/null && {
 
26587
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
26588
         test ! -s conftest.err
 
26589
       }; then
 
26590
  ac_header_preproc=yes
 
26591
else
 
26592
  $as_echo "$as_me: failed program was:" >&5
 
26593
sed 's/^/| /' conftest.$ac_ext >&5
 
26594
 
 
26595
  ac_header_preproc=no
 
26596
fi
 
26597
 
 
26598
rm -f conftest.err conftest.$ac_ext
 
26599
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26600
$as_echo "$ac_header_preproc" >&6; }
 
26601
 
 
26602
# So?  What about this header?
 
26603
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26604
  yes:no: )
 
26605
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
26606
$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26607
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
 
26608
$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
 
26609
    ac_header_preproc=yes
 
26610
    ;;
 
26611
  no:yes:* )
 
26612
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
 
26613
$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
 
26614
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
 
26615
$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
 
26616
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
 
26617
$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
 
26618
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
 
26619
$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26620
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
 
26621
$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
 
26622
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
 
26623
$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
 
26624
    ( cat <<\_ASBOX
 
26625
## --------------------------------------- ##
 
26626
## Report this to http://www.graphviz.org/ ##
 
26627
## --------------------------------------- ##
 
26628
_ASBOX
 
26629
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
26630
    ;;
 
26631
esac
 
26632
{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
26633
$as_echo_n "checking for Python.h... " >&6; }
 
26634
if test "${ac_cv_header_Python_h+set}" = set; then
 
26635
  $as_echo_n "(cached) " >&6
 
26636
else
 
26637
  ac_cv_header_Python_h=$ac_header_preproc
 
26638
fi
 
26639
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
26640
$as_echo "$ac_cv_header_Python_h" >&6; }
 
26641
 
 
26642
fi
 
26643
if test "x$ac_cv_header_Python_h" = x""yes; then
 
26644
  :
 
26645
else
 
26646
 
 
26647
          use_python23="No (missing header)"
 
26648
          PYTHON23=
 
26649
 
 
26650
fi
 
26651
 
 
26652
 
 
26653
        CPPFLAGS=$save_CPPFLAGS
 
26654
        if test "x$PYTHON23" != "x"; then
 
26655
          use_python23="Yes"
 
26656
 
 
26657
 
 
26658
 
 
26659
        fi
 
26660
      fi
 
26661
    fi
 
26662
  fi
 
26663
fi
 
26664
 if test "x$use_python23" = "xYes"; then
 
26665
  WITH_PYTHON23_TRUE=
 
26666
  WITH_PYTHON23_FALSE='#'
 
26667
else
 
26668
  WITH_PYTHON23_TRUE='#'
 
26669
  WITH_PYTHON23_FALSE=
 
26670
fi
 
26671
 
 
26672
 
 
26673
 
 
26674
# Check whether --enable-python24 was given.
 
26675
if test "${enable_python24+set}" = set; then
 
26676
  enableval=$enable_python24;
 
26677
else
 
26678
  enable_python24=no
 
26679
fi
 
26680
 
 
26681
 
 
26682
if test "x$enable_python24" != "xyes"; then
 
26683
  use_python24="No (disabled by default - for multiversion installs)"
 
26684
else
 
26685
  if test "x$use_swig" != "xYes"; then
 
26686
    use_python24="No (swig not available)"
 
26687
  else
 
26688
    if test `$SWIG -help 2>&1 | $GREP -c '\-python *- Generate'` = 0; then
 
26689
      use_python24="No (swig does not support -python option)"
 
26690
    else
 
26691
      # Extract the first word of "python2.4", so it can be a program name with args.
 
26692
set dummy python2.4; ac_word=$2
 
26693
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26694
$as_echo_n "checking for $ac_word... " >&6; }
 
26695
if test "${ac_cv_prog_PYTHON24+set}" = set; then
 
26696
  $as_echo_n "(cached) " >&6
 
26697
else
 
26698
  if test -n "$PYTHON24"; then
 
26699
  ac_cv_prog_PYTHON24="$PYTHON24" # Let the user override the test.
 
26700
else
 
26701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26702
for as_dir in $PATH
 
26703
do
 
26704
  IFS=$as_save_IFS
 
26705
  test -z "$as_dir" && as_dir=.
 
26706
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26707
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26708
    ac_cv_prog_PYTHON24="python2.4"
 
26709
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26710
    break 2
 
26711
  fi
 
26712
done
 
26713
done
 
26714
IFS=$as_save_IFS
 
26715
 
 
26716
fi
 
26717
fi
 
26718
PYTHON24=$ac_cv_prog_PYTHON24
 
26719
if test -n "$PYTHON24"; then
 
26720
  { $as_echo "$as_me:$LINENO: result: $PYTHON24" >&5
 
26721
$as_echo "$PYTHON24" >&6; }
 
26722
else
 
26723
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
26724
$as_echo "no" >&6; }
 
26725
fi
 
26726
 
 
26727
 
 
26728
      if test "x$PYTHON24" = "x"; then
 
26729
        use_python24="No (python24 not available)"
 
26730
      else
 
26731
        PYTHON24_VERSION=`$PYTHON24 -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
 
26732
        if test "x$PYTHON24_VERSION" = "x"; then
 
26733
          PYTHON24=
 
26734
        else
 
26735
          PYTHON24_VERSION_MAJOR=`echo $PYTHON24_VERSION | cut -d '.' -f 1`
 
26736
          PYTHON24_VERSION_MINOR=`echo $PYTHON24_VERSION | cut -d '.' -f 2`
 
26737
          PYTHON24_VERSION_SHORT=$PYTHON24_VERSION_MAJOR.$PYTHON24_VERSION_MINOR
 
26738
          if test $PYTHON24_VERSION_MAJOR -lt 3; then
 
26739
            if test $PYTHON24_VERSION_MAJOR -lt 2; then
 
26740
              PYTHON24=
 
26741
            else
 
26742
              if test $PYTHON24_VERSION_MINOR -lt 4; then
 
26743
                PYTHON24=
 
26744
              fi
 
26745
            fi
 
26746
          fi
 
26747
        fi
 
26748
      fi
 
26749
      if test "x$PYTHON24" = "x"; then
 
26750
        use_python24="No (python2.4 is too old)"
 
26751
      else
 
26752
        PYTHON24_PREFIX=`$PYTHON24 -c "import sys; print sys.prefix"`
 
26753
        PYTHON24_INCLUDES=-I$PYTHON24_PREFIX/include/python$PYTHON24_VERSION_SHORT
 
26754
        PYTHON24_LIBS="-lpython$PYTHON_VERSION_SHORT"
 
26755
        PYTHON24_INSTALL_DIR="`$PYTHON24 $srcdir/config/config_python.py archsitelib`"
 
26756
        save_CPPFLAGS=$CPPFLAGS
 
26757
        CPPFLAGS="$CPPFLAGS $PYTHON24_INCLUDES"
 
26758
        if test "${ac_cv_header_Python_h+set}" = set; then
 
26759
  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
26760
$as_echo_n "checking for Python.h... " >&6; }
 
26761
if test "${ac_cv_header_Python_h+set}" = set; then
 
26762
  $as_echo_n "(cached) " >&6
 
26763
fi
 
26764
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
26765
$as_echo "$ac_cv_header_Python_h" >&6; }
 
26766
else
 
26767
  # Is the header compilable?
 
26768
{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
 
26769
$as_echo_n "checking Python.h usability... " >&6; }
 
26770
cat >conftest.$ac_ext <<_ACEOF
 
26771
/* confdefs.h.  */
 
26772
_ACEOF
 
26773
cat confdefs.h >>conftest.$ac_ext
 
26774
cat >>conftest.$ac_ext <<_ACEOF
 
26775
/* end confdefs.h.  */
 
26776
$ac_includes_default
 
26777
#include <Python.h>
 
26778
_ACEOF
 
26779
rm -f conftest.$ac_objext
 
26780
if { (ac_try="$ac_compile"
 
26781
case "(($ac_try" in
 
26782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26783
  *) ac_try_echo=$ac_try;;
 
26784
esac
 
26785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26786
$as_echo "$ac_try_echo") >&5
 
26787
  (eval "$ac_compile") 2>conftest.er1
 
26788
  ac_status=$?
 
26789
  grep -v '^ *+' conftest.er1 >conftest.err
 
26790
  rm -f conftest.er1
 
26791
  cat conftest.err >&5
 
26792
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26793
  (exit $ac_status); } && {
 
26794
         test -z "$ac_c_werror_flag" ||
 
26795
         test ! -s conftest.err
 
26796
       } && test -s conftest.$ac_objext; then
 
26797
  ac_header_compiler=yes
 
26798
else
 
26799
  $as_echo "$as_me: failed program was:" >&5
 
26800
sed 's/^/| /' conftest.$ac_ext >&5
 
26801
 
 
26802
        ac_header_compiler=no
 
26803
fi
 
26804
 
 
26805
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26806
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26807
$as_echo "$ac_header_compiler" >&6; }
 
26808
 
 
26809
# Is the header present?
 
26810
{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
 
26811
$as_echo_n "checking Python.h presence... " >&6; }
 
26812
cat >conftest.$ac_ext <<_ACEOF
 
26813
/* confdefs.h.  */
 
26814
_ACEOF
 
26815
cat confdefs.h >>conftest.$ac_ext
 
26816
cat >>conftest.$ac_ext <<_ACEOF
 
26817
/* end confdefs.h.  */
 
26818
#include <Python.h>
 
26819
_ACEOF
 
26820
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
26821
case "(($ac_try" in
 
26822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26823
  *) ac_try_echo=$ac_try;;
 
26824
esac
 
26825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26826
$as_echo "$ac_try_echo") >&5
 
26827
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
26828
  ac_status=$?
 
26829
  grep -v '^ *+' conftest.er1 >conftest.err
 
26830
  rm -f conftest.er1
 
26831
  cat conftest.err >&5
 
26832
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26833
  (exit $ac_status); } >/dev/null && {
 
26834
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
26835
         test ! -s conftest.err
 
26836
       }; then
 
26837
  ac_header_preproc=yes
 
26838
else
 
26839
  $as_echo "$as_me: failed program was:" >&5
 
26840
sed 's/^/| /' conftest.$ac_ext >&5
 
26841
 
 
26842
  ac_header_preproc=no
 
26843
fi
 
26844
 
 
26845
rm -f conftest.err conftest.$ac_ext
 
26846
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26847
$as_echo "$ac_header_preproc" >&6; }
 
26848
 
 
26849
# So?  What about this header?
 
26850
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26851
  yes:no: )
 
26852
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
26853
$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26854
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
 
26855
$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
 
26856
    ac_header_preproc=yes
 
26857
    ;;
 
26858
  no:yes:* )
 
26859
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
 
26860
$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
 
26861
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
 
26862
$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
 
26863
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
 
26864
$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
 
26865
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
 
26866
$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26867
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
 
26868
$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
 
26869
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
 
26870
$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
 
26871
    ( cat <<\_ASBOX
 
26872
## --------------------------------------- ##
 
26873
## Report this to http://www.graphviz.org/ ##
 
26874
## --------------------------------------- ##
 
26875
_ASBOX
 
26876
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
26877
    ;;
 
26878
esac
 
26879
{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
26880
$as_echo_n "checking for Python.h... " >&6; }
 
26881
if test "${ac_cv_header_Python_h+set}" = set; then
 
26882
  $as_echo_n "(cached) " >&6
 
26883
else
 
26884
  ac_cv_header_Python_h=$ac_header_preproc
 
26885
fi
 
26886
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
26887
$as_echo "$ac_cv_header_Python_h" >&6; }
 
26888
 
 
26889
fi
 
26890
if test "x$ac_cv_header_Python_h" = x""yes; then
 
26891
  :
 
26892
else
 
26893
 
 
26894
          use_python24="No (missing header)"
 
26895
          PYTHON24=
 
26896
 
 
26897
fi
 
26898
 
 
26899
 
 
26900
        CPPFLAGS=$save_CPPFLAGS
 
26901
        if test "x$PYTHON24" != "x"; then
 
26902
          use_python24="Yes"
 
26903
 
 
26904
 
 
26905
 
 
26906
        fi
 
26907
      fi
 
26908
    fi
 
26909
  fi
 
26910
fi
 
26911
 if test "x$use_python24" = "xYes"; then
 
26912
  WITH_PYTHON24_TRUE=
 
26913
  WITH_PYTHON24_FALSE='#'
 
26914
else
 
26915
  WITH_PYTHON24_TRUE='#'
 
26916
  WITH_PYTHON24_FALSE=
 
26917
fi
 
26918
 
 
26919
 
 
26920
 
 
26921
# Check whether --enable-python25 was given.
 
26922
if test "${enable_python25+set}" = set; then
 
26923
  enableval=$enable_python25;
 
26924
else
 
26925
  enable_python25=no
 
26926
fi
 
26927
 
 
26928
 
 
26929
if test "x$enable_python25" != "xyes"; then
 
26930
  use_python25="No (disabled by default - for multiversion installs)"
 
26931
else
 
26932
  if test "x$use_swig" != "xYes"; then
 
26933
    use_python25="No (swig not available)"
 
26934
  else
 
26935
    if test `$SWIG -help 2>&1 | $GREP -c '\-python *- Generate'` = 0; then
 
26936
      use_python25="No (swig does not support -python option)"
 
26937
    else
 
26938
      # Extract the first word of "python2.5", so it can be a program name with args.
 
26939
set dummy python2.5; ac_word=$2
 
26940
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26941
$as_echo_n "checking for $ac_word... " >&6; }
 
26942
if test "${ac_cv_prog_PYTHON25+set}" = set; then
 
26943
  $as_echo_n "(cached) " >&6
 
26944
else
 
26945
  if test -n "$PYTHON25"; then
 
26946
  ac_cv_prog_PYTHON25="$PYTHON25" # Let the user override the test.
 
26947
else
 
26948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26949
for as_dir in $PATH
 
26950
do
 
26951
  IFS=$as_save_IFS
 
26952
  test -z "$as_dir" && as_dir=.
 
26953
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26954
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26955
    ac_cv_prog_PYTHON25="python2.5"
 
26956
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26957
    break 2
 
26958
  fi
 
26959
done
 
26960
done
 
26961
IFS=$as_save_IFS
 
26962
 
 
26963
fi
 
26964
fi
 
26965
PYTHON25=$ac_cv_prog_PYTHON25
 
26966
if test -n "$PYTHON25"; then
 
26967
  { $as_echo "$as_me:$LINENO: result: $PYTHON25" >&5
 
26968
$as_echo "$PYTHON25" >&6; }
 
26969
else
 
26970
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
26971
$as_echo "no" >&6; }
 
26972
fi
 
26973
 
 
26974
 
 
26975
      if test "x$PYTHON25" = "x"; then
 
26976
        use_python25="No (python25 not available)"
 
26977
      else
 
26978
        PYTHON25_VERSION=`$PYTHON25 -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
 
26979
        if test "x$PYTHON25_VERSION" = "x"; then
 
26980
          PYTHON25=
 
26981
        else
 
26982
          PYTHON25_VERSION_MAJOR=`echo $PYTHON25_VERSION | cut -d '.' -f 1`
 
26983
          PYTHON25_VERSION_MINOR=`echo $PYTHON25_VERSION | cut -d '.' -f 2`
 
26984
          PYTHON25_VERSION_SHORT=$PYTHON25_VERSION_MAJOR.$PYTHON25_VERSION_MINOR
 
26985
          if test $PYTHON25_VERSION_MAJOR -lt 3; then
 
26986
            if test $PYTHON25_VERSION_MAJOR -lt 2; then
 
26987
              PYTHON25=
 
26988
            else
 
26989
              if test $PYTHON25_VERSION_MINOR -lt 5; then
 
26990
                PYTHON25=
 
26991
              fi
 
26992
            fi
 
26993
          fi
 
26994
        fi
 
26995
      fi
 
26996
      if test "x$PYTHON25" = "x"; then
 
26997
        use_python25="No (python2.5 is too old)"
 
26998
      else
 
26999
        PYTHON25_PREFIX=`$PYTHON25 -c "import sys; print sys.prefix"`
 
27000
        PYTHON25_INCLUDES=-I$PYTHON25_PREFIX/include/python$PYTHON25_VERSION_SHORT
 
27001
        PYTHON24_LIBS="-lpython$PYTHON_VERSION_SHORT"
 
27002
        PYTHON25_INSTALL_DIR="`$PYTHON25 $srcdir/config/config_python.py archsitelib`"
 
27003
        save_CPPFLAGS=$CPPFLAGS
 
27004
        CPPFLAGS="$CPPFLAGS $PYTHON25_INCLUDES"
 
27005
        if test "${ac_cv_header_Python_h+set}" = set; then
 
27006
  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
27007
$as_echo_n "checking for Python.h... " >&6; }
 
27008
if test "${ac_cv_header_Python_h+set}" = set; then
 
27009
  $as_echo_n "(cached) " >&6
 
27010
fi
 
27011
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
27012
$as_echo "$ac_cv_header_Python_h" >&6; }
 
27013
else
 
27014
  # Is the header compilable?
 
27015
{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
 
27016
$as_echo_n "checking Python.h usability... " >&6; }
 
27017
cat >conftest.$ac_ext <<_ACEOF
 
27018
/* confdefs.h.  */
 
27019
_ACEOF
 
27020
cat confdefs.h >>conftest.$ac_ext
 
27021
cat >>conftest.$ac_ext <<_ACEOF
 
27022
/* end confdefs.h.  */
 
27023
$ac_includes_default
 
27024
#include <Python.h>
 
27025
_ACEOF
 
27026
rm -f conftest.$ac_objext
 
27027
if { (ac_try="$ac_compile"
 
27028
case "(($ac_try" in
 
27029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27030
  *) ac_try_echo=$ac_try;;
 
27031
esac
 
27032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27033
$as_echo "$ac_try_echo") >&5
 
27034
  (eval "$ac_compile") 2>conftest.er1
 
27035
  ac_status=$?
 
27036
  grep -v '^ *+' conftest.er1 >conftest.err
 
27037
  rm -f conftest.er1
 
27038
  cat conftest.err >&5
 
27039
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27040
  (exit $ac_status); } && {
 
27041
         test -z "$ac_c_werror_flag" ||
 
27042
         test ! -s conftest.err
 
27043
       } && test -s conftest.$ac_objext; then
 
27044
  ac_header_compiler=yes
 
27045
else
 
27046
  $as_echo "$as_me: failed program was:" >&5
 
27047
sed 's/^/| /' conftest.$ac_ext >&5
 
27048
 
 
27049
        ac_header_compiler=no
 
27050
fi
 
27051
 
 
27052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27053
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27054
$as_echo "$ac_header_compiler" >&6; }
 
27055
 
 
27056
# Is the header present?
 
27057
{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
 
27058
$as_echo_n "checking Python.h presence... " >&6; }
 
27059
cat >conftest.$ac_ext <<_ACEOF
 
27060
/* confdefs.h.  */
 
27061
_ACEOF
 
27062
cat confdefs.h >>conftest.$ac_ext
 
27063
cat >>conftest.$ac_ext <<_ACEOF
 
27064
/* end confdefs.h.  */
 
27065
#include <Python.h>
 
27066
_ACEOF
 
27067
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
27068
case "(($ac_try" in
 
27069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27070
  *) ac_try_echo=$ac_try;;
 
27071
esac
 
27072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27073
$as_echo "$ac_try_echo") >&5
 
27074
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
27075
  ac_status=$?
 
27076
  grep -v '^ *+' conftest.er1 >conftest.err
 
27077
  rm -f conftest.er1
 
27078
  cat conftest.err >&5
 
27079
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27080
  (exit $ac_status); } >/dev/null && {
 
27081
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
27082
         test ! -s conftest.err
 
27083
       }; then
 
27084
  ac_header_preproc=yes
 
27085
else
 
27086
  $as_echo "$as_me: failed program was:" >&5
 
27087
sed 's/^/| /' conftest.$ac_ext >&5
 
27088
 
 
27089
  ac_header_preproc=no
 
27090
fi
 
27091
 
 
27092
rm -f conftest.err conftest.$ac_ext
 
27093
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27094
$as_echo "$ac_header_preproc" >&6; }
 
27095
 
 
27096
# So?  What about this header?
 
27097
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27098
  yes:no: )
 
27099
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
27100
$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27101
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
 
27102
$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
 
27103
    ac_header_preproc=yes
 
27104
    ;;
 
27105
  no:yes:* )
 
27106
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
 
27107
$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
 
27108
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
 
27109
$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
 
27110
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
 
27111
$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
 
27112
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
 
27113
$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27114
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
 
27115
$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
 
27116
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
 
27117
$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
 
27118
    ( cat <<\_ASBOX
 
27119
## --------------------------------------- ##
 
27120
## Report this to http://www.graphviz.org/ ##
 
27121
## --------------------------------------- ##
 
27122
_ASBOX
 
27123
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
27124
    ;;
 
27125
esac
 
27126
{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
27127
$as_echo_n "checking for Python.h... " >&6; }
 
27128
if test "${ac_cv_header_Python_h+set}" = set; then
 
27129
  $as_echo_n "(cached) " >&6
 
27130
else
 
27131
  ac_cv_header_Python_h=$ac_header_preproc
 
27132
fi
 
27133
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
27134
$as_echo "$ac_cv_header_Python_h" >&6; }
 
27135
 
 
27136
fi
 
27137
if test "x$ac_cv_header_Python_h" = x""yes; then
 
27138
  :
 
27139
else
 
27140
 
 
27141
          use_python25="No (missing header)"
 
27142
          PYTHON25=
 
27143
 
 
27144
fi
 
27145
 
 
27146
 
 
27147
        CPPFLAGS=$save_CPPFLAGS
 
27148
        if test "x$PYTHON25" != "x"; then
 
27149
          use_python25="Yes"
 
27150
 
 
27151
 
 
27152
 
 
27153
        fi
 
27154
      fi
 
27155
    fi
 
27156
  fi
 
27157
fi
 
27158
 if test "x$use_python25" = "xYes"; then
 
27159
  WITH_PYTHON25_TRUE=
 
27160
  WITH_PYTHON25_FALSE='#'
 
27161
else
 
27162
  WITH_PYTHON25_TRUE='#'
 
27163
  WITH_PYTHON25_FALSE=
 
27164
fi
 
27165
 
 
27166
 
 
27167
 
 
27168
# Check whether --enable-python26 was given.
 
27169
if test "${enable_python26+set}" = set; then
 
27170
  enableval=$enable_python26;
 
27171
else
 
27172
  enable_python26=no
 
27173
fi
 
27174
 
 
27175
 
 
27176
if test "x$enable_python26" != "xyes"; then
 
27177
  use_python26="No (disabled by default - for multiversion installs)"
 
27178
else
 
27179
  if test "x$use_swig" != "xYes"; then
 
27180
    use_python26="No (swig not available)"
 
27181
  else
 
27182
    if test `$SWIG -help 2>&1 | $GREP -c '\-python *- Generate'` = 0; then
 
27183
      use_python26="No (swig does not support -python option)"
 
27184
    else
 
27185
      # Extract the first word of "python2.6", so it can be a program name with args.
 
27186
set dummy python2.6; ac_word=$2
 
27187
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
27188
$as_echo_n "checking for $ac_word... " >&6; }
 
27189
if test "${ac_cv_prog_PYTHON26+set}" = set; then
 
27190
  $as_echo_n "(cached) " >&6
 
27191
else
 
27192
  if test -n "$PYTHON26"; then
 
27193
  ac_cv_prog_PYTHON26="$PYTHON26" # Let the user override the test.
 
27194
else
 
27195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27196
for as_dir in $PATH
 
27197
do
 
27198
  IFS=$as_save_IFS
 
27199
  test -z "$as_dir" && as_dir=.
 
27200
  for ac_exec_ext in '' $ac_executable_extensions; do
 
27201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
27202
    ac_cv_prog_PYTHON26="python2.6"
 
27203
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
27204
    break 2
 
27205
  fi
 
27206
done
 
27207
done
 
27208
IFS=$as_save_IFS
 
27209
 
 
27210
fi
 
27211
fi
 
27212
PYTHON26=$ac_cv_prog_PYTHON26
 
27213
if test -n "$PYTHON26"; then
 
27214
  { $as_echo "$as_me:$LINENO: result: $PYTHON26" >&5
 
27215
$as_echo "$PYTHON26" >&6; }
 
27216
else
 
27217
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
27218
$as_echo "no" >&6; }
 
27219
fi
 
27220
 
 
27221
 
 
27222
      if test "x$PYTHON26" = "x"; then
 
27223
        use_python26="No (python26 not available)"
 
27224
      else
 
27225
        PYTHON26_VERSION=`$PYTHON26 -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
 
27226
        if test "x$PYTHON26_VERSION" = "x"; then
 
27227
          PYTHON26=
 
27228
        else
 
27229
          PYTHON26_VERSION_MAJOR=`echo $PYTHON26_VERSION | cut -d '.' -f 1`
 
27230
          PYTHON26_VERSION_MINOR=`echo $PYTHON26_VERSION | cut -d '.' -f 2`
 
27231
          PYTHON26_VERSION_SHORT=$PYTHON26_VERSION_MAJOR.$PYTHON26_VERSION_MINOR
 
27232
          if test $PYTHON26_VERSION_MAJOR -lt 3; then
 
27233
            if test $PYTHON26_VERSION_MAJOR -lt 2; then
 
27234
              PYTHON26=
 
27235
            else
 
27236
              if test $PYTHON26_VERSION_MINOR -lt 5; then
 
27237
                PYTHON26=
 
27238
              fi
 
27239
            fi
 
27240
          fi
 
27241
        fi
 
27242
      fi
 
27243
      if test "x$PYTHON26" = "x"; then
 
27244
        use_python26="No (python2.6 is too old)"
 
27245
      else
 
27246
        PYTHON26_PREFIX=`$PYTHON26 -c "import sys; print sys.prefix"`
 
27247
        PYTHON26_INCLUDES=-I$PYTHON26_PREFIX/include/python$PYTHON26_VERSION_SHORT
 
27248
        PYTHON24_LIBS="-lpython$PYTHON_VERSION_SHORT"
 
27249
        PYTHON26_INSTALL_DIR="`$PYTHON26 $srcdir/config/config_python.py archsitelib`"
 
27250
        save_CPPFLAGS=$CPPFLAGS
 
27251
        CPPFLAGS="$CPPFLAGS $PYTHON26_INCLUDES"
 
27252
        if test "${ac_cv_header_Python_h+set}" = set; then
 
27253
  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
27254
$as_echo_n "checking for Python.h... " >&6; }
 
27255
if test "${ac_cv_header_Python_h+set}" = set; then
 
27256
  $as_echo_n "(cached) " >&6
 
27257
fi
 
27258
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
27259
$as_echo "$ac_cv_header_Python_h" >&6; }
 
27260
else
 
27261
  # Is the header compilable?
 
27262
{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
 
27263
$as_echo_n "checking Python.h usability... " >&6; }
 
27264
cat >conftest.$ac_ext <<_ACEOF
 
27265
/* confdefs.h.  */
 
27266
_ACEOF
 
27267
cat confdefs.h >>conftest.$ac_ext
 
27268
cat >>conftest.$ac_ext <<_ACEOF
 
27269
/* end confdefs.h.  */
 
27270
$ac_includes_default
 
27271
#include <Python.h>
 
27272
_ACEOF
 
27273
rm -f conftest.$ac_objext
 
27274
if { (ac_try="$ac_compile"
 
27275
case "(($ac_try" in
 
27276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27277
  *) ac_try_echo=$ac_try;;
 
27278
esac
 
27279
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27280
$as_echo "$ac_try_echo") >&5
 
27281
  (eval "$ac_compile") 2>conftest.er1
 
27282
  ac_status=$?
 
27283
  grep -v '^ *+' conftest.er1 >conftest.err
 
27284
  rm -f conftest.er1
 
27285
  cat conftest.err >&5
 
27286
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27287
  (exit $ac_status); } && {
 
27288
         test -z "$ac_c_werror_flag" ||
 
27289
         test ! -s conftest.err
 
27290
       } && test -s conftest.$ac_objext; then
 
27291
  ac_header_compiler=yes
 
27292
else
 
27293
  $as_echo "$as_me: failed program was:" >&5
 
27294
sed 's/^/| /' conftest.$ac_ext >&5
 
27295
 
 
27296
        ac_header_compiler=no
 
27297
fi
 
27298
 
 
27299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27300
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27301
$as_echo "$ac_header_compiler" >&6; }
 
27302
 
 
27303
# Is the header present?
 
27304
{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
 
27305
$as_echo_n "checking Python.h presence... " >&6; }
 
27306
cat >conftest.$ac_ext <<_ACEOF
 
27307
/* confdefs.h.  */
 
27308
_ACEOF
 
27309
cat confdefs.h >>conftest.$ac_ext
 
27310
cat >>conftest.$ac_ext <<_ACEOF
 
27311
/* end confdefs.h.  */
 
27312
#include <Python.h>
 
27313
_ACEOF
 
27314
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
27315
case "(($ac_try" in
 
27316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27317
  *) ac_try_echo=$ac_try;;
 
27318
esac
 
27319
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27320
$as_echo "$ac_try_echo") >&5
 
27321
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
27322
  ac_status=$?
 
27323
  grep -v '^ *+' conftest.er1 >conftest.err
 
27324
  rm -f conftest.er1
 
27325
  cat conftest.err >&5
 
27326
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27327
  (exit $ac_status); } >/dev/null && {
 
27328
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
27329
         test ! -s conftest.err
 
27330
       }; then
 
27331
  ac_header_preproc=yes
 
27332
else
 
27333
  $as_echo "$as_me: failed program was:" >&5
 
27334
sed 's/^/| /' conftest.$ac_ext >&5
 
27335
 
 
27336
  ac_header_preproc=no
 
27337
fi
 
27338
 
 
27339
rm -f conftest.err conftest.$ac_ext
 
27340
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27341
$as_echo "$ac_header_preproc" >&6; }
 
27342
 
 
27343
# So?  What about this header?
 
27344
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27345
  yes:no: )
 
27346
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
27347
$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27348
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
 
27349
$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
 
27350
    ac_header_preproc=yes
 
27351
    ;;
 
27352
  no:yes:* )
 
27353
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
 
27354
$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
 
27355
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
 
27356
$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
 
27357
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
 
27358
$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
 
27359
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
 
27360
$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27361
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
 
27362
$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
 
27363
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
 
27364
$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
 
27365
    ( cat <<\_ASBOX
 
27366
## --------------------------------------- ##
 
27367
## Report this to http://www.graphviz.org/ ##
 
27368
## --------------------------------------- ##
 
27369
_ASBOX
 
27370
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
27371
    ;;
 
27372
esac
 
27373
{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
 
27374
$as_echo_n "checking for Python.h... " >&6; }
 
27375
if test "${ac_cv_header_Python_h+set}" = set; then
 
27376
  $as_echo_n "(cached) " >&6
 
27377
else
 
27378
  ac_cv_header_Python_h=$ac_header_preproc
 
27379
fi
 
27380
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
 
27381
$as_echo "$ac_cv_header_Python_h" >&6; }
 
27382
 
 
27383
fi
 
27384
if test "x$ac_cv_header_Python_h" = x""yes; then
 
27385
  :
 
27386
else
 
27387
 
 
27388
          use_python26="No (missing header)"
 
27389
          PYTHON26=
 
27390
 
 
27391
fi
 
27392
 
 
27393
 
 
27394
        CPPFLAGS=$save_CPPFLAGS
 
27395
        if test "x$PYTHON26" != "x"; then
 
27396
          use_python26="Yes"
 
27397
 
 
27398
 
 
27399
 
 
27400
        fi
 
27401
      fi
 
27402
    fi
 
27403
  fi
 
27404
fi
 
27405
 if test "x$use_python26" = "xYes"; then
 
27406
  WITH_PYTHON26_TRUE=
 
27407
  WITH_PYTHON26_FALSE='#'
 
27408
else
 
27409
  WITH_PYTHON26_TRUE='#'
 
27410
  WITH_PYTHON26_FALSE=
 
27411
fi
 
27412
 
 
27413
 
 
27414
 
 
27415
# Check whether --enable-r was given.
 
27416
if test "${enable_r+set}" = set; then
 
27417
  enableval=$enable_r;
 
27418
else
 
27419
  enable_r=yes
 
27420
fi
 
27421
 
 
27422
 
 
27423
if test "x$enable_r" != "xyes"; then
 
27424
  use_r="No (disabled)"
 
27425
else
 
27426
  if test "x$use_swig" != "xYes"; then
 
27427
    use_r="No (swig not available)"
 
27428
  else
 
27429
    if test `$SWIG -help 2>&1 | $GREP -c '\-r *- Generate'` = 0; then
 
27430
      use_r="No (swig does not support -r option)"
 
27431
    else
 
27432
 
 
27433
pkg_failed=no
 
27434
{ $as_echo "$as_me:$LINENO: checking for R" >&5
 
27435
$as_echo_n "checking for R... " >&6; }
 
27436
 
 
27437
if test -n "$R_CFLAGS"; then
 
27438
    pkg_cv_R_CFLAGS="$R_CFLAGS"
 
27439
 elif test -n "$PKG_CONFIG"; then
 
27440
    if test -n "$PKG_CONFIG" && \
 
27441
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libR\"") >&5
 
27442
  ($PKG_CONFIG --exists --print-errors "libR") 2>&5
 
27443
  ac_status=$?
 
27444
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27445
  (exit $ac_status); }; then
 
27446
  pkg_cv_R_CFLAGS=`$PKG_CONFIG --cflags "libR" 2>/dev/null`
 
27447
else
 
27448
  pkg_failed=yes
 
27449
fi
 
27450
 else
 
27451
    pkg_failed=untried
 
27452
fi
 
27453
if test -n "$R_LIBS"; then
 
27454
    pkg_cv_R_LIBS="$R_LIBS"
 
27455
 elif test -n "$PKG_CONFIG"; then
 
27456
    if test -n "$PKG_CONFIG" && \
 
27457
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libR\"") >&5
 
27458
  ($PKG_CONFIG --exists --print-errors "libR") 2>&5
 
27459
  ac_status=$?
 
27460
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27461
  (exit $ac_status); }; then
 
27462
  pkg_cv_R_LIBS=`$PKG_CONFIG --libs "libR" 2>/dev/null`
 
27463
else
 
27464
  pkg_failed=yes
 
27465
fi
 
27466
 else
 
27467
    pkg_failed=untried
 
27468
fi
 
27469
 
 
27470
 
 
27471
 
 
27472
if test $pkg_failed = yes; then
 
27473
 
 
27474
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
27475
        _pkg_short_errors_supported=yes
 
27476
else
 
27477
        _pkg_short_errors_supported=no
 
27478
fi
 
27479
        if test $_pkg_short_errors_supported = yes; then
 
27480
                R_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libR" 2>&1`
 
27481
        else
 
27482
                R_PKG_ERRORS=`$PKG_CONFIG --print-errors "libR" 2>&1`
 
27483
        fi
 
27484
        # Put the nasty error message in config.log where it belongs
 
27485
        echo "$R_PKG_ERRORS" >&5
 
27486
 
 
27487
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
27488
$as_echo "no" >&6; }
 
27489
 
 
27490
        use_r="No (R not available)"
 
27491
 
 
27492
elif test $pkg_failed = untried; then
 
27493
 
 
27494
        use_r="No (R not available)"
 
27495
 
 
27496
else
 
27497
        R_CFLAGS=$pkg_cv_R_CFLAGS
 
27498
        R_LIBS=$pkg_cv_R_LIBS
 
27499
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
27500
$as_echo "yes" >&6; }
 
27501
 
 
27502
        use_r="Yes"
 
27503
 
 
27504
 
 
27505
 
 
27506
fi
 
27507
    fi
 
27508
  fi
 
27509
fi
 
27510
 if test "x$use_r" = "xYes"; then
 
27511
  WITH_R_TRUE=
 
27512
  WITH_R_FALSE='#'
 
27513
else
 
27514
  WITH_R_TRUE='#'
 
27515
  WITH_R_FALSE=
 
27516
fi
 
27517
 
 
27518
 
 
27519
 
 
27520
# Check whether --enable-ruby was given.
 
27521
if test "${enable_ruby+set}" = set; then
 
27522
  enableval=$enable_ruby;
 
27523
else
 
27524
  enable_ruby=yes
 
27525
fi
 
27526
 
 
27527
 
 
27528
if test "x$enable_ruby" != "xyes"; then
 
27529
  use_ruby="No (disabled)"
 
27530
else
 
27531
  if test "x$use_swig" != "xYes"; then
 
27532
    use_ruby="No (swig not available)"
 
27533
  else
 
27534
    if test `$SWIG -help 2>&1 | $GREP -c '\-ruby *- Generate'` = 0; then
 
27535
      use_ruby="No (swig does not support -ruby option)"
 
27536
    else
 
27537
      # Extract the first word of "ruby", so it can be a program name with args.
 
27538
set dummy ruby; ac_word=$2
 
27539
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
27540
$as_echo_n "checking for $ac_word... " >&6; }
 
27541
if test "${ac_cv_prog_RUBY+set}" = set; then
 
27542
  $as_echo_n "(cached) " >&6
 
27543
else
 
27544
  if test -n "$RUBY"; then
 
27545
  ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
 
27546
else
 
27547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27548
for as_dir in $PATH
 
27549
do
 
27550
  IFS=$as_save_IFS
 
27551
  test -z "$as_dir" && as_dir=.
 
27552
  for ac_exec_ext in '' $ac_executable_extensions; do
 
27553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
27554
    ac_cv_prog_RUBY="ruby"
 
27555
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
27556
    break 2
 
27557
  fi
 
27558
done
 
27559
done
 
27560
IFS=$as_save_IFS
 
27561
 
 
27562
fi
 
27563
fi
 
27564
RUBY=$ac_cv_prog_RUBY
 
27565
if test -n "$RUBY"; then
 
27566
  { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
 
27567
$as_echo "$RUBY" >&6; }
 
27568
else
 
27569
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
27570
$as_echo "no" >&6; }
 
27571
fi
 
27572
 
 
27573
 
 
27574
      if test "x$RUBY" = "x"; then
 
27575
        use_ruby="No (ruby not available)"
 
27576
      else
 
27577
        RUBY_INCLUDES="-I`$RUBY $srcdir/config/config_ruby.rb INCLUDES`"
 
27578
        # hack for powerpc-darwin8 (10.4)
 
27579
        if test "x$DARWIN" = "xyes"; then
 
27580
          RUBY_INCLUDES=`echo $RUBY_INCLUDES | sed 's/powerpc/universal/'`
 
27581
        fi
 
27582
        RUBY_LIBS="-L`$RUBY $srcdir/config/config_ruby.rb lib` `$RUBY -rrbconfig -e \"puts Config::CONFIG['LIBRUBYARG_SHARED']\"`"
 
27583
        RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb archsitelib`"
 
27584
        save_CPPFLAGS=$CPPFLAGS
 
27585
        CPPFLAGS="$CPPFLAGS $RUBY_INCLUDES"
 
27586
        if test "${ac_cv_header_ruby_h+set}" = set; then
 
27587
  { $as_echo "$as_me:$LINENO: checking for ruby.h" >&5
 
27588
$as_echo_n "checking for ruby.h... " >&6; }
 
27589
if test "${ac_cv_header_ruby_h+set}" = set; then
 
27590
  $as_echo_n "(cached) " >&6
 
27591
fi
 
27592
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ruby_h" >&5
 
27593
$as_echo "$ac_cv_header_ruby_h" >&6; }
 
27594
else
 
27595
  # Is the header compilable?
 
27596
{ $as_echo "$as_me:$LINENO: checking ruby.h usability" >&5
 
27597
$as_echo_n "checking ruby.h usability... " >&6; }
 
27598
cat >conftest.$ac_ext <<_ACEOF
 
27599
/* confdefs.h.  */
 
27600
_ACEOF
 
27601
cat confdefs.h >>conftest.$ac_ext
 
27602
cat >>conftest.$ac_ext <<_ACEOF
 
27603
/* end confdefs.h.  */
 
27604
$ac_includes_default
 
27605
#include <ruby.h>
 
27606
_ACEOF
 
27607
rm -f conftest.$ac_objext
 
27608
if { (ac_try="$ac_compile"
 
27609
case "(($ac_try" in
 
27610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27611
  *) ac_try_echo=$ac_try;;
 
27612
esac
 
27613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27614
$as_echo "$ac_try_echo") >&5
 
27615
  (eval "$ac_compile") 2>conftest.er1
 
27616
  ac_status=$?
 
27617
  grep -v '^ *+' conftest.er1 >conftest.err
 
27618
  rm -f conftest.er1
 
27619
  cat conftest.err >&5
 
27620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27621
  (exit $ac_status); } && {
 
27622
         test -z "$ac_c_werror_flag" ||
 
27623
         test ! -s conftest.err
 
27624
       } && test -s conftest.$ac_objext; then
 
27625
  ac_header_compiler=yes
 
27626
else
 
27627
  $as_echo "$as_me: failed program was:" >&5
 
27628
sed 's/^/| /' conftest.$ac_ext >&5
 
27629
 
 
27630
        ac_header_compiler=no
 
27631
fi
 
27632
 
 
27633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27634
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27635
$as_echo "$ac_header_compiler" >&6; }
 
27636
 
 
27637
# Is the header present?
 
27638
{ $as_echo "$as_me:$LINENO: checking ruby.h presence" >&5
 
27639
$as_echo_n "checking ruby.h presence... " >&6; }
 
27640
cat >conftest.$ac_ext <<_ACEOF
 
27641
/* confdefs.h.  */
 
27642
_ACEOF
 
27643
cat confdefs.h >>conftest.$ac_ext
 
27644
cat >>conftest.$ac_ext <<_ACEOF
 
27645
/* end confdefs.h.  */
 
27646
#include <ruby.h>
 
27647
_ACEOF
 
27648
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
27649
case "(($ac_try" in
 
27650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27651
  *) ac_try_echo=$ac_try;;
 
27652
esac
 
27653
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27654
$as_echo "$ac_try_echo") >&5
 
27655
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
27656
  ac_status=$?
 
27657
  grep -v '^ *+' conftest.er1 >conftest.err
 
27658
  rm -f conftest.er1
 
27659
  cat conftest.err >&5
 
27660
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27661
  (exit $ac_status); } >/dev/null && {
 
27662
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
27663
         test ! -s conftest.err
 
27664
       }; then
 
27665
  ac_header_preproc=yes
 
27666
else
 
27667
  $as_echo "$as_me: failed program was:" >&5
 
27668
sed 's/^/| /' conftest.$ac_ext >&5
 
27669
 
 
27670
  ac_header_preproc=no
 
27671
fi
 
27672
 
 
27673
rm -f conftest.err conftest.$ac_ext
 
27674
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27675
$as_echo "$ac_header_preproc" >&6; }
 
27676
 
 
27677
# So?  What about this header?
 
27678
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27679
  yes:no: )
 
27680
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
27681
$as_echo "$as_me: WARNING: ruby.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27682
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h: proceeding with the compiler's result" >&5
 
27683
$as_echo "$as_me: WARNING: ruby.h: proceeding with the compiler's result" >&2;}
 
27684
    ac_header_preproc=yes
 
27685
    ;;
 
27686
  no:yes:* )
 
27687
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h: present but cannot be compiled" >&5
 
27688
$as_echo "$as_me: WARNING: ruby.h: present but cannot be compiled" >&2;}
 
27689
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h:     check for missing prerequisite headers?" >&5
 
27690
$as_echo "$as_me: WARNING: ruby.h:     check for missing prerequisite headers?" >&2;}
 
27691
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h: see the Autoconf documentation" >&5
 
27692
$as_echo "$as_me: WARNING: ruby.h: see the Autoconf documentation" >&2;}
 
27693
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h:     section \"Present But Cannot Be Compiled\"" >&5
 
27694
$as_echo "$as_me: WARNING: ruby.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27695
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h: proceeding with the preprocessor's result" >&5
 
27696
$as_echo "$as_me: WARNING: ruby.h: proceeding with the preprocessor's result" >&2;}
 
27697
    { $as_echo "$as_me:$LINENO: WARNING: ruby.h: in the future, the compiler will take precedence" >&5
 
27698
$as_echo "$as_me: WARNING: ruby.h: in the future, the compiler will take precedence" >&2;}
 
27699
    ( cat <<\_ASBOX
 
27700
## --------------------------------------- ##
 
27701
## Report this to http://www.graphviz.org/ ##
 
27702
## --------------------------------------- ##
 
27703
_ASBOX
 
27704
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
27705
    ;;
 
27706
esac
 
27707
{ $as_echo "$as_me:$LINENO: checking for ruby.h" >&5
 
27708
$as_echo_n "checking for ruby.h... " >&6; }
 
27709
if test "${ac_cv_header_ruby_h+set}" = set; then
 
27710
  $as_echo_n "(cached) " >&6
 
27711
else
 
27712
  ac_cv_header_ruby_h=$ac_header_preproc
 
27713
fi
 
27714
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ruby_h" >&5
 
27715
$as_echo "$ac_cv_header_ruby_h" >&6; }
 
27716
 
 
27717
fi
 
27718
if test "x$ac_cv_header_ruby_h" = x""yes; then
 
27719
  :
 
27720
else
 
27721
 
 
27722
          use_ruby="No (missing header)"
 
27723
          RUBY=
 
27724
 
 
27725
fi
 
27726
 
 
27727
 
 
27728
        CPPFLAGS=$save_CPPFLAGS
 
27729
      fi
 
27730
      if test "x$RUBY" != "x"; then
 
27731
        use_ruby="Yes"
 
27732
 
 
27733
 
 
27734
 
 
27735
      fi
 
27736
    fi
 
27737
  fi
 
27738
fi
 
27739
 if test "x$use_ruby" = "xYes"; then
 
27740
  WITH_RUBY_TRUE=
 
27741
  WITH_RUBY_FALSE='#'
 
27742
else
 
27743
  WITH_RUBY_TRUE='#'
 
27744
  WITH_RUBY_FALSE=
 
27745
fi
 
27746
 
 
27747
 
 
27748
 
 
27749
# Check whether --enable-tcl was given.
 
27750
if test "${enable_tcl+set}" = set; then
 
27751
  enableval=$enable_tcl;
 
27752
else
 
27753
  enable_tcl=yes
 
27754
fi
 
27755
 
 
27756
 
 
27757
if test "x$enable_tcl" != "xyes"; then
 
27758
  use_tcl="No (disabled)"
 
27759
fi
 
27760
 
 
27761
if test "x$use_tcl" = "x"; then
 
27762
  TCL_VERSION_FOUND=`echo 'puts [info tclversion]' | $TCLSH`
 
27763
 
 
27764
  # can't assume ksh on all architectures
 
27765
  # TCLSH_EXEC_PREFIX=${TCLSH%%/bin/tclsh.*}
 
27766
  # so use sed instead
 
27767
  TCLSH_EXEC_PREFIX=`echo $TCLSH|sed -e 's%/bin/tclsh.*$%%'`
 
27768
 
 
27769
  if test -f ${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/tcl.h; then
 
27770
    TCL_INCLUDES="-I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND} -I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic"
 
27771
  else
 
27772
    if test "x${TCLSH_EXEC_PREFIX}" != "x/usr" -a -f ${TCLSH_EXEC_PREFIX}/include/tcl.h; then
 
27773
      TCL_INCLUDES=-I${TCLSH_EXEC_PREFIX}/include
 
27774
    fi
 
27775
  fi
 
27776
  if test "x$TCL_INCLUDES" != "x" ; then
 
27777
    { $as_echo "$as_me:$LINENO: result: using tcl headers from $TCL_INCLUDES" >&5
 
27778
$as_echo "using tcl headers from $TCL_INCLUDES" >&6; }
 
27779
  fi
 
27780
 
 
27781
  save_CPPFLAGS=$CPPFLAGS
 
27782
  CPPFLAGS="$CPPFLAGS $TCL_INCLUDES"
 
27783
  if test "${ac_cv_header_tcl_h+set}" = set; then
 
27784
  { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
 
27785
$as_echo_n "checking for tcl.h... " >&6; }
 
27786
if test "${ac_cv_header_tcl_h+set}" = set; then
 
27787
  $as_echo_n "(cached) " >&6
 
27788
fi
 
27789
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
 
27790
$as_echo "$ac_cv_header_tcl_h" >&6; }
 
27791
else
 
27792
  # Is the header compilable?
 
27793
{ $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
 
27794
$as_echo_n "checking tcl.h usability... " >&6; }
 
27795
cat >conftest.$ac_ext <<_ACEOF
 
27796
/* confdefs.h.  */
 
27797
_ACEOF
 
27798
cat confdefs.h >>conftest.$ac_ext
 
27799
cat >>conftest.$ac_ext <<_ACEOF
 
27800
/* end confdefs.h.  */
 
27801
$ac_includes_default
 
27802
#include <tcl.h>
 
27803
_ACEOF
 
27804
rm -f conftest.$ac_objext
 
27805
if { (ac_try="$ac_compile"
 
27806
case "(($ac_try" in
 
27807
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27808
  *) ac_try_echo=$ac_try;;
 
27809
esac
 
27810
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27811
$as_echo "$ac_try_echo") >&5
 
27812
  (eval "$ac_compile") 2>conftest.er1
 
27813
  ac_status=$?
 
27814
  grep -v '^ *+' conftest.er1 >conftest.err
 
27815
  rm -f conftest.er1
 
27816
  cat conftest.err >&5
 
27817
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27818
  (exit $ac_status); } && {
 
27819
         test -z "$ac_c_werror_flag" ||
 
27820
         test ! -s conftest.err
 
27821
       } && test -s conftest.$ac_objext; then
 
27822
  ac_header_compiler=yes
 
27823
else
 
27824
  $as_echo "$as_me: failed program was:" >&5
 
27825
sed 's/^/| /' conftest.$ac_ext >&5
 
27826
 
 
27827
        ac_header_compiler=no
 
27828
fi
 
27829
 
 
27830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27831
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27832
$as_echo "$ac_header_compiler" >&6; }
 
27833
 
 
27834
# Is the header present?
 
27835
{ $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
 
27836
$as_echo_n "checking tcl.h presence... " >&6; }
 
27837
cat >conftest.$ac_ext <<_ACEOF
 
27838
/* confdefs.h.  */
 
27839
_ACEOF
 
27840
cat confdefs.h >>conftest.$ac_ext
 
27841
cat >>conftest.$ac_ext <<_ACEOF
 
27842
/* end confdefs.h.  */
 
27843
#include <tcl.h>
 
27844
_ACEOF
 
27845
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
27846
case "(($ac_try" in
 
27847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27848
  *) ac_try_echo=$ac_try;;
 
27849
esac
 
27850
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27851
$as_echo "$ac_try_echo") >&5
 
27852
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
27853
  ac_status=$?
 
27854
  grep -v '^ *+' conftest.er1 >conftest.err
 
27855
  rm -f conftest.er1
 
27856
  cat conftest.err >&5
 
27857
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27858
  (exit $ac_status); } >/dev/null && {
 
27859
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
27860
         test ! -s conftest.err
 
27861
       }; then
 
27862
  ac_header_preproc=yes
 
27863
else
 
27864
  $as_echo "$as_me: failed program was:" >&5
 
27865
sed 's/^/| /' conftest.$ac_ext >&5
 
27866
 
 
27867
  ac_header_preproc=no
 
27868
fi
 
27869
 
 
27870
rm -f conftest.err conftest.$ac_ext
 
27871
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27872
$as_echo "$ac_header_preproc" >&6; }
 
27873
 
 
27874
# So?  What about this header?
 
27875
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27876
  yes:no: )
 
27877
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
27878
$as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27879
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
 
27880
$as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
 
27881
    ac_header_preproc=yes
 
27882
    ;;
 
27883
  no:yes:* )
 
27884
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
 
27885
$as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
 
27886
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
 
27887
$as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
 
27888
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
 
27889
$as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
 
27890
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
27891
$as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27892
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
 
27893
$as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
 
27894
    { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
 
27895
$as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
 
27896
    ( cat <<\_ASBOX
 
27897
## --------------------------------------- ##
 
27898
## Report this to http://www.graphviz.org/ ##
 
27899
## --------------------------------------- ##
 
27900
_ASBOX
 
27901
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
27902
    ;;
 
27903
esac
 
27904
{ $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
 
27905
$as_echo_n "checking for tcl.h... " >&6; }
 
27906
if test "${ac_cv_header_tcl_h+set}" = set; then
 
27907
  $as_echo_n "(cached) " >&6
 
27908
else
 
27909
  ac_cv_header_tcl_h=$ac_header_preproc
 
27910
fi
 
27911
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
 
27912
$as_echo "$ac_cv_header_tcl_h" >&6; }
 
27913
 
 
27914
fi
 
27915
if test "x$ac_cv_header_tcl_h" = x""yes; then
 
27916
  :
 
27917
else
 
27918
 
 
27919
    { $as_echo "$as_me:$LINENO: WARNING: Unable to find header tcl.h. The Tcl packages will not be built" >&5
 
27920
$as_echo "$as_me: WARNING: Unable to find header tcl.h. The Tcl packages will not be built" >&2;}
 
27921
    use_tcl="No (missing header)"
 
27922
 
 
27923
fi
 
27924
 
 
27925
 
 
27926
  CPPFLAGS=$save_CPPFLAGS
 
27927
fi
 
27928
 
 
27929
if test "x$use_tcl" = "x"; then
 
27930
  # Some systems don't have Tcl.  Don't build
 
27931
  # the Tcl products if we don't have the library.
 
27932
  if test -f ${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tcl${TCL_VERSION_FOUND}/tclConfig.sh; then
 
27933
    TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tcl${TCL_VERSION_FOUND}/tclConfig.sh
 
27934
  else
 
27935
    if test -f ${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tclConfig.sh; then
 
27936
      TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tclConfig.sh
 
27937
    else
 
27938
      if test -f ${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh; then
 
27939
        TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh
 
27940
      fi
 
27941
    fi
 
27942
  fi
 
27943
  if test "x$TCLCONFIG" != "x"; then
 
27944
    { $as_echo "$as_me:$LINENO: result: using $TCLCONFIG" >&5
 
27945
$as_echo "using $TCLCONFIG" >&6; }
 
27946
    file=${TCLCONFIG}
 
27947
      . $file
 
27948
  else
 
27949
    { $as_echo "$as_me:$LINENO: WARNING: Unable to find tclConfig.sh. The Tcl packages will not be built" >&5
 
27950
$as_echo "$as_me: WARNING: Unable to find tclConfig.sh. The Tcl packages will not be built" >&2;}
 
27951
    use_tcl="No (missing tclConfig.sh)"
 
27952
  fi
 
27953
  TCL_INSTALL_DIR="${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tcl${TCL_VERSION_FOUND}"
 
27954
fi
 
27955
 
 
27956
if test "x$use_tcl" = "x"; then
 
27957
  # TCL STUBS support is required
 
27958
  if test "x${TCL_SUPPORTS_STUBS}" = "x1"; then
 
27959
    use_tcl="Yes"
 
27960
    TCL_CFLAGS="${TCL_CFLAGS} -DUSE_TCL_STUBS"
 
27961
 
 
27962
cat >>confdefs.h <<_ACEOF
 
27963
#define HAVE_TCL 1
 
27964
_ACEOF
 
27965
 
 
27966
  else
 
27967
    { $as_echo "$as_me:$LINENO: WARNING: Tcl does not have STUBs support, perhaps it is too old?  The Tcl packages will not be built" >&5
 
27968
$as_echo "$as_me: WARNING: Tcl does not have STUBs support, perhaps it is too old?  The Tcl packages will not be built" >&2;}
 
27969
    use_tcl="No (no STUBs support)"
 
27970
  fi
 
27971
fi
 
27972
 
 
27973
 
 
27974
 
 
27975
 if test "x$use_tcl" = "xYes"; then
 
27976
  WITH_TCL_TRUE=
 
27977
  WITH_TCL_FALSE='#'
 
27978
else
 
27979
  WITH_TCL_TRUE='#'
 
27980
  WITH_TCL_FALSE=
 
27981
fi
 
27982
 
 
27983
 
 
27984
#AC_SUBST(TCLSH_EXEC_PREFIX)
 
27985
 
 
27986
 
 
27987
 
 
27988
 
 
27989
#AC_SUBST(TCL_CC)
 
27990
#AC_SUBST(TCL_CXX)
 
27991
 
 
27992
#AC_SUBST(TCL_CXXFLAGS)
 
27993
 
 
27994
#AC_SUBST(TCL_DBGX)
 
27995
#AC_SUBST(TCL_CFLAGS_DEBUG)
 
27996
#AC_SUBST(TCL_CFLAGS_OPTIMIZE)
 
27997
#AC_SUBST(TCL_SHARED_BUILD)
 
27998
#AC_SUBST(TCL_LIB_FILE)
 
27999
#AC_SUBST(TCL_NEEDS_EXP_FILE)
 
28000
#AC_SUBST(TCL_EXPORT_FILE_SUFFIX)
 
28001
#AC_SUBST(TCL_NEEDS_EXP_FILE)
 
28002
#AC_SUBST(TCL_EXPORT_FILE_SUFFIX)
 
28003
 
 
28004
# TCL modules use stubs and don't need any other tcl libraries
 
28005
TCL_LIBS=
 
28006
 
 
28007
 
 
28008
#AC_SUBST(TCL_PREFIX)
 
28009
#AC_SUBST(TCL_EXEC_PREFIX)
 
28010
#AC_SUBST(TCL_SHLIB_CFLAGS)
 
28011
#AC_SUBST(TCL_SHLIB_CXXFLAGS)
 
28012
#AC_SUBST(TCL_EXTRA_CFLAGS)
 
28013
#AC_SUBST(TCL_SHLIB_LD)
 
28014
#AC_SUBST(TCL_SHLIB_LD_LIBS)
 
28015
 
 
28016
#AC_SUBST(TCL_DL_LIBS)
 
28017
#AC_SUBST(TCL_LD_FLAGS)
 
28018
#AC_SUBST(TCL_LD_SEARCH_FLAGS)
 
28019
#AC_SUBST(TCL_COMPAT_OBJS)
 
28020
#AC_SUBST(TCL_RANLIB)
 
28021
#AC_SUBST(TCL_LIB_FLAG)
 
28022
#AC_SUBST(TCL_BUILD_LIB_SPEC)
 
28023
#AC_SUBST(TCL_LIB_SPEC)
 
28024
#AC_SUBST(TCL_LIB_VERSIONS_OK)
 
28025
#AC_SUBST(TCL_SHARED_LIB_SUFFIX)
 
28026
#AC_SUBST(TCL_UNSHARED_LIB_SUFFIX)
 
28027
 
 
28028
#AC_SUBST(TCL_PACKAGE_PATH)
 
28029
#AC_SUBST(TCL_SUPPORTS_STUBS)
 
28030
#AC_SUBST(TCL_STUB_LIB_FILE)
 
28031
#AC_SUBST(TCL_STUB_LIB_FLAG)
 
28032
#AC_SUBST(TCL_BUILD_STUB_LIB_SPEC)
 
28033
 
 
28034
#AC_SUBST(TCL_BUILD_STUB_LIB_PATH)
 
28035
#AC_SUBST(TCL_STUB_LIB_PATH)
 
28036
 
 
28037
 
 
28038
if test "x$use_tcl" != "xYes"; then
 
28039
    { $as_echo "$as_me:$LINENO: WARNING: No Tcl. The Tk packages will not be built either" >&5
 
28040
$as_echo "$as_me: WARNING: No Tcl. The Tk packages will not be built either" >&2;}
 
28041
    use_tk="No (no tcl)"
 
28042
fi
 
28043
 
 
28044
if test "x$use_tk" = "x"; then
 
28045
 
 
28046
# Check whether --with-wish was given.
 
28047
if test "${with_wish+set}" = set; then
 
28048
  withval=$with_wish; WISH=$withval
 
28049
fi
 
28050
 
 
28051
    if test "x$WISH" = "x"; then
 
28052
        for ac_prog in wish8.6 wish8.5 wish8.4 wish8.3 wish
 
28053
do
 
28054
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
28055
set dummy $ac_prog; ac_word=$2
 
28056
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
28057
$as_echo_n "checking for $ac_word... " >&6; }
 
28058
if test "${ac_cv_path_WISH+set}" = set; then
 
28059
  $as_echo_n "(cached) " >&6
 
28060
else
 
28061
  case $WISH in
 
28062
  [\\/]* | ?:[\\/]*)
 
28063
  ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
 
28064
  ;;
 
28065
  *)
 
28066
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
28067
for as_dir in $PATH
 
28068
do
 
28069
  IFS=$as_save_IFS
 
28070
  test -z "$as_dir" && as_dir=.
 
28071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
28072
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
28073
    ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
 
28074
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
28075
    break 2
 
28076
  fi
 
28077
done
 
28078
done
 
28079
IFS=$as_save_IFS
 
28080
 
 
28081
  ;;
 
28082
esac
 
28083
fi
 
28084
WISH=$ac_cv_path_WISH
 
28085
if test -n "$WISH"; then
 
28086
  { $as_echo "$as_me:$LINENO: result: $WISH" >&5
 
28087
$as_echo "$WISH" >&6; }
 
28088
else
 
28089
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
28090
$as_echo "no" >&6; }
 
28091
fi
 
28092
 
 
28093
 
 
28094
  test -n "$WISH" && break
 
28095
done
 
28096
 
 
28097
        if test "x$WISH" = "x"; then
 
28098
            { $as_echo "$as_me:$LINENO: WARNING: Unable to find a wish. The Tk packages will not be built" >&5
 
28099
$as_echo "$as_me: WARNING: Unable to find a wish. The Tk packages will not be built" >&2;}
 
28100
            use_tk="No (wish not found)"
 
28101
    fi
 
28102
    fi
 
28103
fi
 
28104
 
 
28105
if test "x$use_tk" = "x"; then
 
28106
    #TK_VERSION_FOUND=`echo 'puts [[info tkversion]]' | $WISH`
 
28107
    #
 
28108
    # No such var as tkversion.  Use tclversion instead.
 
28109
    TK_VERSION_FOUND=${TCL_VERSION_FOUND}
 
28110
 
 
28111
    # can't assume ksh on all architectures
 
28112
    # WISH_EXEC_PREFIX=${WISH%%/bin/tclsh.*}
 
28113
    # so use sed instead
 
28114
    WISH_EXEC_PREFIX=`echo $WISH|sed -e 's%/bin/wish.*$%%'`
 
28115
 
 
28116
    if test -f ${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/tk.h; then
 
28117
        TK_INCLUDES="-I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND} -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/generic -I${WISH_EXEC_PREFIX}/include/tk${TK_VERSION_FOUND}/unix"
 
28118
    else
 
28119
        if test "x${WISH_EXEC_PREFIX}" != "x/usr" -a -f ${WISH_EXEC_PREFIX}/include/tk.h; then
 
28120
            TK_INCLUDES=-I${WISH_EXEC_PREFIX}/include
 
28121
        fi
 
28122
    fi
 
28123
    if test "x$TK_INCLUDES" != "x" ; then
 
28124
        { $as_echo "$as_me:$LINENO: result: using tk headers from $TK_INCLUDES" >&5
 
28125
$as_echo "using tk headers from $TK_INCLUDES" >&6; }
 
28126
    fi
 
28127
 
 
28128
    save_CPPFLAGS=$CPPFLAGS
 
28129
    CPPFLAGS="$CPPFLAGS $TCL_INCLUDES $TK_INCLUDES $X_CFLAGS"
 
28130
    if test "${ac_cv_header_tk_h+set}" = set; then
 
28131
  { $as_echo "$as_me:$LINENO: checking for tk.h" >&5
 
28132
$as_echo_n "checking for tk.h... " >&6; }
 
28133
if test "${ac_cv_header_tk_h+set}" = set; then
 
28134
  $as_echo_n "(cached) " >&6
 
28135
fi
 
28136
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
 
28137
$as_echo "$ac_cv_header_tk_h" >&6; }
 
28138
else
 
28139
  # Is the header compilable?
 
28140
{ $as_echo "$as_me:$LINENO: checking tk.h usability" >&5
 
28141
$as_echo_n "checking tk.h usability... " >&6; }
 
28142
cat >conftest.$ac_ext <<_ACEOF
 
28143
/* confdefs.h.  */
 
28144
_ACEOF
 
28145
cat confdefs.h >>conftest.$ac_ext
 
28146
cat >>conftest.$ac_ext <<_ACEOF
 
28147
/* end confdefs.h.  */
 
28148
$ac_includes_default
 
28149
#include <tk.h>
 
28150
_ACEOF
 
28151
rm -f conftest.$ac_objext
 
28152
if { (ac_try="$ac_compile"
 
28153
case "(($ac_try" in
 
28154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28155
  *) ac_try_echo=$ac_try;;
 
28156
esac
 
28157
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28158
$as_echo "$ac_try_echo") >&5
 
28159
  (eval "$ac_compile") 2>conftest.er1
 
28160
  ac_status=$?
 
28161
  grep -v '^ *+' conftest.er1 >conftest.err
 
28162
  rm -f conftest.er1
 
28163
  cat conftest.err >&5
 
28164
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28165
  (exit $ac_status); } && {
 
28166
         test -z "$ac_c_werror_flag" ||
 
28167
         test ! -s conftest.err
 
28168
       } && test -s conftest.$ac_objext; then
 
28169
  ac_header_compiler=yes
 
28170
else
 
28171
  $as_echo "$as_me: failed program was:" >&5
 
28172
sed 's/^/| /' conftest.$ac_ext >&5
 
28173
 
 
28174
        ac_header_compiler=no
 
28175
fi
 
28176
 
 
28177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28178
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
28179
$as_echo "$ac_header_compiler" >&6; }
 
28180
 
 
28181
# Is the header present?
 
28182
{ $as_echo "$as_me:$LINENO: checking tk.h presence" >&5
 
28183
$as_echo_n "checking tk.h presence... " >&6; }
 
28184
cat >conftest.$ac_ext <<_ACEOF
 
28185
/* confdefs.h.  */
 
28186
_ACEOF
 
28187
cat confdefs.h >>conftest.$ac_ext
 
28188
cat >>conftest.$ac_ext <<_ACEOF
 
28189
/* end confdefs.h.  */
 
28190
#include <tk.h>
 
28191
_ACEOF
 
28192
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
28193
case "(($ac_try" in
 
28194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28195
  *) ac_try_echo=$ac_try;;
 
28196
esac
 
28197
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28198
$as_echo "$ac_try_echo") >&5
 
28199
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
28200
  ac_status=$?
 
28201
  grep -v '^ *+' conftest.er1 >conftest.err
 
28202
  rm -f conftest.er1
 
28203
  cat conftest.err >&5
 
28204
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28205
  (exit $ac_status); } >/dev/null && {
 
28206
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
28207
         test ! -s conftest.err
 
28208
       }; then
 
28209
  ac_header_preproc=yes
 
28210
else
 
28211
  $as_echo "$as_me: failed program was:" >&5
 
28212
sed 's/^/| /' conftest.$ac_ext >&5
 
28213
 
 
28214
  ac_header_preproc=no
 
28215
fi
 
28216
 
 
28217
rm -f conftest.err conftest.$ac_ext
 
28218
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28219
$as_echo "$ac_header_preproc" >&6; }
 
28220
 
 
28221
# So?  What about this header?
 
28222
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28223
  yes:no: )
 
28224
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
28225
$as_echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28226
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
 
28227
$as_echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
 
28228
    ac_header_preproc=yes
 
28229
    ;;
 
28230
  no:yes:* )
 
28231
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
 
28232
$as_echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
 
28233
    { $as_echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
 
28234
$as_echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
 
28235
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
 
28236
$as_echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
 
28237
    { $as_echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
 
28238
$as_echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28239
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
 
28240
$as_echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
 
28241
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
 
28242
$as_echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
 
28243
    ( cat <<\_ASBOX
 
28244
## --------------------------------------- ##
 
28245
## Report this to http://www.graphviz.org/ ##
 
28246
## --------------------------------------- ##
 
28247
_ASBOX
 
28248
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
28249
    ;;
 
28250
esac
 
28251
{ $as_echo "$as_me:$LINENO: checking for tk.h" >&5
 
28252
$as_echo_n "checking for tk.h... " >&6; }
 
28253
if test "${ac_cv_header_tk_h+set}" = set; then
 
28254
  $as_echo_n "(cached) " >&6
 
28255
else
 
28256
  ac_cv_header_tk_h=$ac_header_preproc
 
28257
fi
 
28258
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
 
28259
$as_echo "$ac_cv_header_tk_h" >&6; }
 
28260
 
 
28261
fi
 
28262
if test "x$ac_cv_header_tk_h" = x""yes; then
 
28263
  :
 
28264
else
 
28265
 
 
28266
        { $as_echo "$as_me:$LINENO: WARNING: Unable to find header tk.h. The Tk packages will not be built" >&5
 
28267
$as_echo "$as_me: WARNING: Unable to find header tk.h. The Tk packages will not be built" >&2;}
 
28268
        use_tk="No (missing header)"
 
28269
fi
 
28270
 
 
28271
 
 
28272
 
 
28273
 
 
28274
for ac_header in tk.h tkInt.h
 
28275
do
 
28276
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
28277
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28278
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28279
$as_echo_n "checking for $ac_header... " >&6; }
 
28280
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28281
  $as_echo_n "(cached) " >&6
 
28282
fi
 
28283
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
28284
                 $as_echo "$as_val"'`
 
28285
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
28286
$as_echo "$ac_res" >&6; }
 
28287
else
 
28288
  # Is the header compilable?
 
28289
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
28290
$as_echo_n "checking $ac_header usability... " >&6; }
 
28291
cat >conftest.$ac_ext <<_ACEOF
 
28292
/* confdefs.h.  */
 
28293
_ACEOF
 
28294
cat confdefs.h >>conftest.$ac_ext
 
28295
cat >>conftest.$ac_ext <<_ACEOF
 
28296
/* end confdefs.h.  */
 
28297
$ac_includes_default
 
28298
#include <$ac_header>
 
28299
_ACEOF
 
28300
rm -f conftest.$ac_objext
 
28301
if { (ac_try="$ac_compile"
 
28302
case "(($ac_try" in
 
28303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28304
  *) ac_try_echo=$ac_try;;
 
28305
esac
 
28306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28307
$as_echo "$ac_try_echo") >&5
 
28308
  (eval "$ac_compile") 2>conftest.er1
 
28309
  ac_status=$?
 
28310
  grep -v '^ *+' conftest.er1 >conftest.err
 
28311
  rm -f conftest.er1
 
28312
  cat conftest.err >&5
 
28313
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28314
  (exit $ac_status); } && {
 
28315
         test -z "$ac_c_werror_flag" ||
 
28316
         test ! -s conftest.err
 
28317
       } && test -s conftest.$ac_objext; then
 
28318
  ac_header_compiler=yes
 
28319
else
 
28320
  $as_echo "$as_me: failed program was:" >&5
 
28321
sed 's/^/| /' conftest.$ac_ext >&5
 
28322
 
 
28323
        ac_header_compiler=no
 
28324
fi
 
28325
 
 
28326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28327
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
28328
$as_echo "$ac_header_compiler" >&6; }
 
28329
 
 
28330
# Is the header present?
 
28331
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
28332
$as_echo_n "checking $ac_header presence... " >&6; }
 
28333
cat >conftest.$ac_ext <<_ACEOF
 
28334
/* confdefs.h.  */
 
28335
_ACEOF
 
28336
cat confdefs.h >>conftest.$ac_ext
 
28337
cat >>conftest.$ac_ext <<_ACEOF
 
28338
/* end confdefs.h.  */
 
28339
#include <$ac_header>
 
28340
_ACEOF
 
28341
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
28342
case "(($ac_try" in
 
28343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28344
  *) ac_try_echo=$ac_try;;
 
28345
esac
 
28346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28347
$as_echo "$ac_try_echo") >&5
 
28348
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
28349
  ac_status=$?
 
28350
  grep -v '^ *+' conftest.er1 >conftest.err
 
28351
  rm -f conftest.er1
 
28352
  cat conftest.err >&5
 
28353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28354
  (exit $ac_status); } >/dev/null && {
 
28355
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
28356
         test ! -s conftest.err
 
28357
       }; then
 
28358
  ac_header_preproc=yes
 
28359
else
 
28360
  $as_echo "$as_me: failed program was:" >&5
 
28361
sed 's/^/| /' conftest.$ac_ext >&5
 
28362
 
 
28363
  ac_header_preproc=no
 
28364
fi
 
28365
 
 
28366
rm -f conftest.err conftest.$ac_ext
 
28367
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28368
$as_echo "$ac_header_preproc" >&6; }
 
28369
 
 
28370
# So?  What about this header?
 
28371
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28372
  yes:no: )
 
28373
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
28374
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28375
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
28376
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
28377
    ac_header_preproc=yes
 
28378
    ;;
 
28379
  no:yes:* )
 
28380
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
28381
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
28382
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
28383
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
28384
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
28385
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
28386
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
28387
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28388
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
28389
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
28390
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
28391
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
28392
    ( cat <<\_ASBOX
 
28393
## --------------------------------------- ##
 
28394
## Report this to http://www.graphviz.org/ ##
 
28395
## --------------------------------------- ##
 
28396
_ASBOX
 
28397
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
28398
    ;;
 
28399
esac
 
28400
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28401
$as_echo_n "checking for $ac_header... " >&6; }
 
28402
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28403
  $as_echo_n "(cached) " >&6
 
28404
else
 
28405
  eval "$as_ac_Header=\$ac_header_preproc"
 
28406
fi
 
28407
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
28408
                 $as_echo "$as_val"'`
 
28409
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
28410
$as_echo "$ac_res" >&6; }
 
28411
 
 
28412
fi
 
28413
as_val=`eval 'as_val=${'$as_ac_Header'}
 
28414
                 $as_echo "$as_val"'`
 
28415
   if test "x$as_val" = x""yes; then
 
28416
  cat >>confdefs.h <<_ACEOF
 
28417
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
28418
_ACEOF
 
28419
 
 
28420
fi
 
28421
 
 
28422
done
 
28423
 
 
28424
    CPPFLAGS=$save_CPPFLAGS
 
28425
fi
 
28426
 
 
28427
if test "x$use_tk" = "x"; then
 
28428
    # Some systems don't have Tcl.  Don't build
 
28429
    # Some systems have Tcl, but not Tk.  Don't build
 
28430
    # the Tk products if we don't have the library.
 
28431
    if test -f ${WISH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tk${TK_VERSION_FOUND}/tkConfig.sh; then
 
28432
        TKCONFIG=${WISH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tk${TK_VERSION_FOUND}/tkConfig.sh
 
28433
    else
 
28434
        if test -f ${WISH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tkConfig.sh; then
 
28435
            TKCONFIG=${WISH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tkConfig.sh
 
28436
        else
 
28437
            if test -f ${WISH_EXEC_PREFIX}/lib/tkConfig.sh; then
 
28438
                TKCONFIG=${WISH_EXEC_PREFIX}/lib/tkConfig.sh
 
28439
            fi
 
28440
        fi
 
28441
    fi
 
28442
    if test "x$TKCONFIG" != "x"; then
 
28443
        { $as_echo "$as_me:$LINENO: result: using $TKCONFIG" >&5
 
28444
$as_echo "using $TKCONFIG" >&6; }
 
28445
        file=${TKCONFIG}
 
28446
        . $file
 
28447
    else
 
28448
        { $as_echo "$as_me:$LINENO: WARNING: Unable to find tkConfig.sh. The Tk packages will not be built" >&5
 
28449
$as_echo "$as_me: WARNING: Unable to find tkConfig.sh. The Tk packages will not be built" >&2;}
 
28450
        use_tk="No (missing tkConfig.sh)"
 
28451
    fi
 
28452
fi
 
28453
 
 
28454
if test "x$use_tk" = "x"; then
 
28455
    use_tk="Yes"
 
28456
    TK_SUBDIRS="tkstubs tkspline"
 
28457
else
 
28458
    TK_SUBDIRS=""
 
28459
fi
 
28460
 if test "x$use_tk" = "xYes"; then
 
28461
  WITH_TK_TRUE=
 
28462
  WITH_TK_FALSE='#'
 
28463
else
 
28464
  WITH_TK_TRUE='#'
 
28465
  WITH_TK_FALSE=
 
28466
fi
 
28467
 
 
28468
 
 
28469
# NB. No TK_SUPPORTS_STUBS set by tkConfig.sh
 
28470
if test "${TCL_SUPPORTS_STUBS}" = "1"; then
 
28471
    TK_CFLAGS="${TK_CFLAGS} -DUSE_TK_STUBS"
 
28472
fi
 
28473
 
 
28474
 
 
28475
 
 
28476
 
 
28477
 
 
28478
 
 
28479
#AC_SUBST(TK_SHARED_BUILD)
 
28480
#AC_SUBST(TK_LIB_FILE)
 
28481
#AC_SUBST(TK_LIBS)
 
28482
#AC_SUBST(TK_PREFIX)
 
28483
#AC_SUBST(TK_EXEC_PREFIX)
 
28484
 
 
28485
#AC_SUBST(TK_XLIBSW)
 
28486
#AC_SUBST(TK_BUILD_LIB_SPEC)
 
28487
 
 
28488
 
 
28489
 
 
28490
#AC_SUBST(TK_SUPPORTS_STUBS)
 
28491
#AC_SUBST(TK_STUB_LIB_FILE)
 
28492
#AC_SUBST(TK_STUB_LIB_FLAG)
 
28493
#AC_SUBST(TK_BUILD_STUB_LIB_SPEC)
 
28494
 
 
28495
#AC_SUBST(TK_BUILD_STUB_LIB_PATH)
 
28496
#AC_SUBST(TK_STUB_LIB_PATH)
 
28497
 
 
28498
 
 
28499
 
 
28500
# Check whether --with-extraincludedir was given.
 
28501
if test "${with_extraincludedir+set}" = set; then
 
28502
  withval=$with_extraincludedir; CPPFLAGS="$CPPFLAGS -I$withval"
 
28503
fi
 
28504
 
 
28505
 
 
28506
 
 
28507
# Check whether --with-extralibdir was given.
 
28508
if test "${with_extralibdir+set}" = set; then
 
28509
  withval=$with_extralibdir; LDFLAGS="$LDFLAGS -L$withval"
 
28510
fi
 
28511
 
 
28512
 
 
28513
 
 
28514
save_LIBS=$LIBS
 
28515
LIBS=
 
28516
tk_checkBoth=0
 
28517
{ $as_echo "$as_me:$LINENO: checking for connect" >&5
 
28518
$as_echo_n "checking for connect... " >&6; }
 
28519
if test "${ac_cv_func_connect+set}" = set; then
 
28520
  $as_echo_n "(cached) " >&6
 
28521
else
 
28522
  cat >conftest.$ac_ext <<_ACEOF
 
28523
/* confdefs.h.  */
 
28524
_ACEOF
 
28525
cat confdefs.h >>conftest.$ac_ext
 
28526
cat >>conftest.$ac_ext <<_ACEOF
 
28527
/* end confdefs.h.  */
 
28528
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
28529
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28530
#define connect innocuous_connect
 
28531
 
 
28532
/* System header to define __stub macros and hopefully few prototypes,
 
28533
    which can conflict with char connect (); below.
 
28534
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28535
    <limits.h> exists even on freestanding compilers.  */
 
28536
 
 
28537
#ifdef __STDC__
 
28538
# include <limits.h>
 
28539
#else
 
28540
# include <assert.h>
 
28541
#endif
 
28542
 
 
28543
#undef connect
 
28544
 
 
28545
/* Override any GCC internal prototype to avoid an error.
 
28546
   Use char because int might match the return type of a GCC
 
28547
   builtin and then its argument prototype would still apply.  */
 
28548
#ifdef __cplusplus
 
28549
extern "C"
 
28550
#endif
 
28551
char connect ();
 
28552
/* The GNU C library defines this for functions which it implements
 
28553
    to always fail with ENOSYS.  Some functions are actually named
 
28554
    something starting with __ and the normal name is an alias.  */
 
28555
#if defined __stub_connect || defined __stub___connect
 
28556
choke me
 
28557
#endif
 
28558
 
 
28559
int
 
28560
main ()
 
28561
{
 
28562
return connect ();
 
28563
  ;
 
28564
  return 0;
 
28565
}
 
28566
_ACEOF
 
28567
rm -f conftest.$ac_objext conftest$ac_exeext
 
28568
if { (ac_try="$ac_link"
 
28569
case "(($ac_try" in
 
28570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28571
  *) ac_try_echo=$ac_try;;
 
28572
esac
 
28573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28574
$as_echo "$ac_try_echo") >&5
 
28575
  (eval "$ac_link") 2>conftest.er1
 
28576
  ac_status=$?
 
28577
  grep -v '^ *+' conftest.er1 >conftest.err
 
28578
  rm -f conftest.er1
 
28579
  cat conftest.err >&5
 
28580
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28581
  (exit $ac_status); } && {
 
28582
         test -z "$ac_c_werror_flag" ||
 
28583
         test ! -s conftest.err
 
28584
       } && test -s conftest$ac_exeext && {
 
28585
         test "$cross_compiling" = yes ||
 
28586
         $as_test_x conftest$ac_exeext
 
28587
       }; then
 
28588
  ac_cv_func_connect=yes
 
28589
else
 
28590
  $as_echo "$as_me: failed program was:" >&5
 
28591
sed 's/^/| /' conftest.$ac_ext >&5
 
28592
 
 
28593
        ac_cv_func_connect=no
 
28594
fi
 
28595
 
 
28596
rm -rf conftest.dSYM
 
28597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28598
      conftest$ac_exeext conftest.$ac_ext
 
28599
fi
 
28600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
28601
$as_echo "$ac_cv_func_connect" >&6; }
 
28602
if test "x$ac_cv_func_connect" = x""yes; then
 
28603
  tk_checkSocket=0
 
28604
else
 
28605
  tk_checkSocket=1
 
28606
fi
 
28607
 
 
28608
if test "$tk_checkSocket" = 1; then
 
28609
  { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
 
28610
$as_echo_n "checking for main in -lsocket... " >&6; }
 
28611
if test "${ac_cv_lib_socket_main+set}" = set; then
 
28612
  $as_echo_n "(cached) " >&6
 
28613
else
 
28614
  ac_check_lib_save_LIBS=$LIBS
 
28615
LIBS="-lsocket  $LIBS"
 
28616
cat >conftest.$ac_ext <<_ACEOF
 
28617
/* confdefs.h.  */
 
28618
_ACEOF
 
28619
cat confdefs.h >>conftest.$ac_ext
 
28620
cat >>conftest.$ac_ext <<_ACEOF
 
28621
/* end confdefs.h.  */
 
28622
 
 
28623
 
 
28624
int
 
28625
main ()
 
28626
{
 
28627
return main ();
 
28628
  ;
 
28629
  return 0;
 
28630
}
 
28631
_ACEOF
 
28632
rm -f conftest.$ac_objext conftest$ac_exeext
 
28633
if { (ac_try="$ac_link"
 
28634
case "(($ac_try" in
 
28635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28636
  *) ac_try_echo=$ac_try;;
 
28637
esac
 
28638
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28639
$as_echo "$ac_try_echo") >&5
 
28640
  (eval "$ac_link") 2>conftest.er1
 
28641
  ac_status=$?
 
28642
  grep -v '^ *+' conftest.er1 >conftest.err
 
28643
  rm -f conftest.er1
 
28644
  cat conftest.err >&5
 
28645
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28646
  (exit $ac_status); } && {
 
28647
         test -z "$ac_c_werror_flag" ||
 
28648
         test ! -s conftest.err
 
28649
       } && test -s conftest$ac_exeext && {
 
28650
         test "$cross_compiling" = yes ||
 
28651
         $as_test_x conftest$ac_exeext
 
28652
       }; then
 
28653
  ac_cv_lib_socket_main=yes
 
28654
else
 
28655
  $as_echo "$as_me: failed program was:" >&5
 
28656
sed 's/^/| /' conftest.$ac_ext >&5
 
28657
 
 
28658
        ac_cv_lib_socket_main=no
 
28659
fi
 
28660
 
 
28661
rm -rf conftest.dSYM
 
28662
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28663
      conftest$ac_exeext conftest.$ac_ext
 
28664
LIBS=$ac_check_lib_save_LIBS
 
28665
fi
 
28666
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
 
28667
$as_echo "$ac_cv_lib_socket_main" >&6; }
 
28668
if test "x$ac_cv_lib_socket_main" = x""yes; then
 
28669
  LIBS="$LIBS -lsocket"
 
28670
else
 
28671
  tk_checkBoth=1
 
28672
fi
 
28673
 
 
28674
fi
 
28675
if test "$tk_checkBoth" = 1; then
 
28676
  tk_oldLibs=$LIBS
 
28677
  LIBS="$LIBS -lsocket -lnsl"
 
28678
  { $as_echo "$as_me:$LINENO: checking for accept" >&5
 
28679
$as_echo_n "checking for accept... " >&6; }
 
28680
if test "${ac_cv_func_accept+set}" = set; then
 
28681
  $as_echo_n "(cached) " >&6
 
28682
else
 
28683
  cat >conftest.$ac_ext <<_ACEOF
 
28684
/* confdefs.h.  */
 
28685
_ACEOF
 
28686
cat confdefs.h >>conftest.$ac_ext
 
28687
cat >>conftest.$ac_ext <<_ACEOF
 
28688
/* end confdefs.h.  */
 
28689
/* Define accept to an innocuous variant, in case <limits.h> declares accept.
 
28690
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28691
#define accept innocuous_accept
 
28692
 
 
28693
/* System header to define __stub macros and hopefully few prototypes,
 
28694
    which can conflict with char accept (); below.
 
28695
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28696
    <limits.h> exists even on freestanding compilers.  */
 
28697
 
 
28698
#ifdef __STDC__
 
28699
# include <limits.h>
 
28700
#else
 
28701
# include <assert.h>
 
28702
#endif
 
28703
 
 
28704
#undef accept
 
28705
 
 
28706
/* Override any GCC internal prototype to avoid an error.
 
28707
   Use char because int might match the return type of a GCC
 
28708
   builtin and then its argument prototype would still apply.  */
 
28709
#ifdef __cplusplus
 
28710
extern "C"
 
28711
#endif
 
28712
char accept ();
 
28713
/* The GNU C library defines this for functions which it implements
 
28714
    to always fail with ENOSYS.  Some functions are actually named
 
28715
    something starting with __ and the normal name is an alias.  */
 
28716
#if defined __stub_accept || defined __stub___accept
 
28717
choke me
 
28718
#endif
 
28719
 
 
28720
int
 
28721
main ()
 
28722
{
 
28723
return accept ();
 
28724
  ;
 
28725
  return 0;
 
28726
}
 
28727
_ACEOF
 
28728
rm -f conftest.$ac_objext conftest$ac_exeext
 
28729
if { (ac_try="$ac_link"
 
28730
case "(($ac_try" in
 
28731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28732
  *) ac_try_echo=$ac_try;;
 
28733
esac
 
28734
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28735
$as_echo "$ac_try_echo") >&5
 
28736
  (eval "$ac_link") 2>conftest.er1
 
28737
  ac_status=$?
 
28738
  grep -v '^ *+' conftest.er1 >conftest.err
 
28739
  rm -f conftest.er1
 
28740
  cat conftest.err >&5
 
28741
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28742
  (exit $ac_status); } && {
 
28743
         test -z "$ac_c_werror_flag" ||
 
28744
         test ! -s conftest.err
 
28745
       } && test -s conftest$ac_exeext && {
 
28746
         test "$cross_compiling" = yes ||
 
28747
         $as_test_x conftest$ac_exeext
 
28748
       }; then
 
28749
  ac_cv_func_accept=yes
 
28750
else
 
28751
  $as_echo "$as_me: failed program was:" >&5
 
28752
sed 's/^/| /' conftest.$ac_ext >&5
 
28753
 
 
28754
        ac_cv_func_accept=no
 
28755
fi
 
28756
 
 
28757
rm -rf conftest.dSYM
 
28758
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28759
      conftest$ac_exeext conftest.$ac_ext
 
28760
fi
 
28761
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
 
28762
$as_echo "$ac_cv_func_accept" >&6; }
 
28763
if test "x$ac_cv_func_accept" = x""yes; then
 
28764
  tk_checkNsl=0
 
28765
else
 
28766
  LIBS=$tk_oldLibs
 
28767
fi
 
28768
 
 
28769
fi
 
28770
{ $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
28771
$as_echo_n "checking for gethostbyname... " >&6; }
 
28772
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
28773
  $as_echo_n "(cached) " >&6
 
28774
else
 
28775
  cat >conftest.$ac_ext <<_ACEOF
 
28776
/* confdefs.h.  */
 
28777
_ACEOF
 
28778
cat confdefs.h >>conftest.$ac_ext
 
28779
cat >>conftest.$ac_ext <<_ACEOF
 
28780
/* end confdefs.h.  */
 
28781
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
28782
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28783
#define gethostbyname innocuous_gethostbyname
 
28784
 
 
28785
/* System header to define __stub macros and hopefully few prototypes,
 
28786
    which can conflict with char gethostbyname (); below.
 
28787
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28788
    <limits.h> exists even on freestanding compilers.  */
 
28789
 
 
28790
#ifdef __STDC__
 
28791
# include <limits.h>
 
28792
#else
 
28793
# include <assert.h>
 
28794
#endif
 
28795
 
 
28796
#undef gethostbyname
 
28797
 
 
28798
/* Override any GCC internal prototype to avoid an error.
 
28799
   Use char because int might match the return type of a GCC
 
28800
   builtin and then its argument prototype would still apply.  */
 
28801
#ifdef __cplusplus
 
28802
extern "C"
 
28803
#endif
 
28804
char gethostbyname ();
 
28805
/* The GNU C library defines this for functions which it implements
 
28806
    to always fail with ENOSYS.  Some functions are actually named
 
28807
    something starting with __ and the normal name is an alias.  */
 
28808
#if defined __stub_gethostbyname || defined __stub___gethostbyname
 
28809
choke me
 
28810
#endif
 
28811
 
 
28812
int
 
28813
main ()
 
28814
{
 
28815
return gethostbyname ();
 
28816
  ;
 
28817
  return 0;
 
28818
}
 
28819
_ACEOF
 
28820
rm -f conftest.$ac_objext conftest$ac_exeext
 
28821
if { (ac_try="$ac_link"
 
28822
case "(($ac_try" in
 
28823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28824
  *) ac_try_echo=$ac_try;;
 
28825
esac
 
28826
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28827
$as_echo "$ac_try_echo") >&5
 
28828
  (eval "$ac_link") 2>conftest.er1
 
28829
  ac_status=$?
 
28830
  grep -v '^ *+' conftest.er1 >conftest.err
 
28831
  rm -f conftest.er1
 
28832
  cat conftest.err >&5
 
28833
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28834
  (exit $ac_status); } && {
 
28835
         test -z "$ac_c_werror_flag" ||
 
28836
         test ! -s conftest.err
 
28837
       } && test -s conftest$ac_exeext && {
 
28838
         test "$cross_compiling" = yes ||
 
28839
         $as_test_x conftest$ac_exeext
 
28840
       }; then
 
28841
  ac_cv_func_gethostbyname=yes
 
28842
else
 
28843
  $as_echo "$as_me: failed program was:" >&5
 
28844
sed 's/^/| /' conftest.$ac_ext >&5
 
28845
 
 
28846
        ac_cv_func_gethostbyname=no
 
28847
fi
 
28848
 
 
28849
rm -rf conftest.dSYM
 
28850
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28851
      conftest$ac_exeext conftest.$ac_ext
 
28852
fi
 
28853
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
28854
$as_echo "$ac_cv_func_gethostbyname" >&6; }
 
28855
if test "x$ac_cv_func_gethostbyname" = x""yes; then
 
28856
  :
 
28857
else
 
28858
  { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
28859
$as_echo_n "checking for main in -lnsl... " >&6; }
 
28860
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
28861
  $as_echo_n "(cached) " >&6
 
28862
else
 
28863
  ac_check_lib_save_LIBS=$LIBS
 
28864
LIBS="-lnsl  $LIBS"
 
28865
cat >conftest.$ac_ext <<_ACEOF
 
28866
/* confdefs.h.  */
 
28867
_ACEOF
 
28868
cat confdefs.h >>conftest.$ac_ext
 
28869
cat >>conftest.$ac_ext <<_ACEOF
 
28870
/* end confdefs.h.  */
 
28871
 
 
28872
 
 
28873
int
 
28874
main ()
 
28875
{
 
28876
return main ();
 
28877
  ;
 
28878
  return 0;
 
28879
}
 
28880
_ACEOF
 
28881
rm -f conftest.$ac_objext conftest$ac_exeext
 
28882
if { (ac_try="$ac_link"
 
28883
case "(($ac_try" in
 
28884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28885
  *) ac_try_echo=$ac_try;;
 
28886
esac
 
28887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28888
$as_echo "$ac_try_echo") >&5
 
28889
  (eval "$ac_link") 2>conftest.er1
 
28890
  ac_status=$?
 
28891
  grep -v '^ *+' conftest.er1 >conftest.err
 
28892
  rm -f conftest.er1
 
28893
  cat conftest.err >&5
 
28894
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28895
  (exit $ac_status); } && {
 
28896
         test -z "$ac_c_werror_flag" ||
 
28897
         test ! -s conftest.err
 
28898
       } && test -s conftest$ac_exeext && {
 
28899
         test "$cross_compiling" = yes ||
 
28900
         $as_test_x conftest$ac_exeext
 
28901
       }; then
 
28902
  ac_cv_lib_nsl_main=yes
 
28903
else
 
28904
  $as_echo "$as_me: failed program was:" >&5
 
28905
sed 's/^/| /' conftest.$ac_ext >&5
 
28906
 
 
28907
        ac_cv_lib_nsl_main=no
 
28908
fi
 
28909
 
 
28910
rm -rf conftest.dSYM
 
28911
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28912
      conftest$ac_exeext conftest.$ac_ext
 
28913
LIBS=$ac_check_lib_save_LIBS
 
28914
fi
 
28915
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
28916
$as_echo "$ac_cv_lib_nsl_main" >&6; }
 
28917
if test "x$ac_cv_lib_nsl_main" = x""yes; then
 
28918
  LIBS="$LIBS -lnsl"
 
28919
fi
 
28920
 
 
28921
fi
 
28922
 
 
28923
SOCKET_LIBS=$LIBS
 
28924
 
 
28925
LIBS=$save_LIBS
 
28926
 
 
28927
 
 
28928
 
 
28929
# Check whether --with-expat was given.
 
28930
if test "${with_expat+set}" = set; then
 
28931
  withval=$with_expat;
 
28932
else
 
28933
  with_expat=yes
 
28934
fi
 
28935
 
 
28936
 
 
28937
if test "x$with_expat" != "xyes"; then
 
28938
  use_expat="No (disabled)"
 
28939
else
 
28940
 
 
28941
  save_CPPFLAGS=$CPPFLAGS
 
28942
  save_LDFLAGS=$LDFLAGS
 
28943
  # Extract the first word of "expat-config", so it can be a program name with args.
 
28944
set dummy expat-config; ac_word=$2
 
28945
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
28946
$as_echo_n "checking for $ac_word... " >&6; }
 
28947
if test "${ac_cv_path_EXPAT_CONFIG+set}" = set; then
 
28948
  $as_echo_n "(cached) " >&6
 
28949
else
 
28950
  case $EXPAT_CONFIG in
 
28951
  [\\/]* | ?:[\\/]*)
 
28952
  ac_cv_path_EXPAT_CONFIG="$EXPAT_CONFIG" # Let the user override the test with a path.
 
28953
  ;;
 
28954
  *)
 
28955
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
28956
for as_dir in $PATH
 
28957
do
 
28958
  IFS=$as_save_IFS
 
28959
  test -z "$as_dir" && as_dir=.
 
28960
  for ac_exec_ext in '' $ac_executable_extensions; do
 
28961
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
28962
    ac_cv_path_EXPAT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
28963
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
28964
    break 2
 
28965
  fi
 
28966
done
 
28967
done
 
28968
IFS=$as_save_IFS
 
28969
 
 
28970
  ;;
 
28971
esac
 
28972
fi
 
28973
EXPAT_CONFIG=$ac_cv_path_EXPAT_CONFIG
 
28974
if test -n "$EXPAT_CONFIG"; then
 
28975
  { $as_echo "$as_me:$LINENO: result: $EXPAT_CONFIG" >&5
 
28976
$as_echo "$EXPAT_CONFIG" >&6; }
 
28977
else
 
28978
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
28979
$as_echo "no" >&6; }
 
28980
fi
 
28981
 
 
28982
 
 
28983
  if test -n "$EXPAT_CONFIG"; then
 
28984
        EXPAT_INCLUDES=`$EXPAT_CONFIG --cflags`
 
28985
        EXPAT_PREFIX=`$EXPAT_CONFIG --prefix`
 
28986
        if test "${EXPAT_PREFIX}/lib" != "/usr/lib" ; then
 
28987
                EXPAT_LIBS="-L${EXPAT_PREFIX}/lib"
 
28988
        fi
 
28989
  else
 
28990
        EXPAT_INCLUDES=""
 
28991
        EXPAT_LIBS=""
 
28992
  fi
 
28993
 
 
28994
# Check whether --with-expatincludedir was given.
 
28995
if test "${with_expatincludedir+set}" = set; then
 
28996
  withval=$with_expatincludedir; EXPAT_INCLUDES="-I$withval"
 
28997
fi
 
28998
 
 
28999
  CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES"
 
29000
  EXPAT_LIBDIR="/usr/lib$LIBPOSTFIX"
 
29001
 
 
29002
# Check whether --with-expatlibdir was given.
 
29003
if test "${with_expatlibdir+set}" = set; then
 
29004
  withval=$with_expatlibdir; EXPAT_LIBDIR="$withval"
 
29005
fi
 
29006
 
 
29007
  if test "$EXPAT_LIBDIR" != "/usr/lib$LIBPOSTFIX"; then
 
29008
          EXPAT_LIBS="-L$EXPAT_LIBDIR"
 
29009
          LDFLAGS="$LDFLAGS $EXPAT_LIBS"
 
29010
  fi
 
29011
 
 
29012
for ac_header in expat.h
 
29013
do
 
29014
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
29015
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29016
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29017
$as_echo_n "checking for $ac_header... " >&6; }
 
29018
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29019
  $as_echo_n "(cached) " >&6
 
29020
fi
 
29021
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29022
                 $as_echo "$as_val"'`
 
29023
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29024
$as_echo "$ac_res" >&6; }
 
29025
else
 
29026
  # Is the header compilable?
 
29027
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
29028
$as_echo_n "checking $ac_header usability... " >&6; }
 
29029
cat >conftest.$ac_ext <<_ACEOF
 
29030
/* confdefs.h.  */
 
29031
_ACEOF
 
29032
cat confdefs.h >>conftest.$ac_ext
 
29033
cat >>conftest.$ac_ext <<_ACEOF
 
29034
/* end confdefs.h.  */
 
29035
$ac_includes_default
 
29036
#include <$ac_header>
 
29037
_ACEOF
 
29038
rm -f conftest.$ac_objext
 
29039
if { (ac_try="$ac_compile"
 
29040
case "(($ac_try" in
 
29041
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29042
  *) ac_try_echo=$ac_try;;
 
29043
esac
 
29044
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29045
$as_echo "$ac_try_echo") >&5
 
29046
  (eval "$ac_compile") 2>conftest.er1
 
29047
  ac_status=$?
 
29048
  grep -v '^ *+' conftest.er1 >conftest.err
 
29049
  rm -f conftest.er1
 
29050
  cat conftest.err >&5
 
29051
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29052
  (exit $ac_status); } && {
 
29053
         test -z "$ac_c_werror_flag" ||
 
29054
         test ! -s conftest.err
 
29055
       } && test -s conftest.$ac_objext; then
 
29056
  ac_header_compiler=yes
 
29057
else
 
29058
  $as_echo "$as_me: failed program was:" >&5
 
29059
sed 's/^/| /' conftest.$ac_ext >&5
 
29060
 
 
29061
        ac_header_compiler=no
 
29062
fi
 
29063
 
 
29064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29065
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
29066
$as_echo "$ac_header_compiler" >&6; }
 
29067
 
 
29068
# Is the header present?
 
29069
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
29070
$as_echo_n "checking $ac_header presence... " >&6; }
 
29071
cat >conftest.$ac_ext <<_ACEOF
 
29072
/* confdefs.h.  */
 
29073
_ACEOF
 
29074
cat confdefs.h >>conftest.$ac_ext
 
29075
cat >>conftest.$ac_ext <<_ACEOF
 
29076
/* end confdefs.h.  */
 
29077
#include <$ac_header>
 
29078
_ACEOF
 
29079
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
29080
case "(($ac_try" in
 
29081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29082
  *) ac_try_echo=$ac_try;;
 
29083
esac
 
29084
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29085
$as_echo "$ac_try_echo") >&5
 
29086
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
29087
  ac_status=$?
 
29088
  grep -v '^ *+' conftest.er1 >conftest.err
 
29089
  rm -f conftest.er1
 
29090
  cat conftest.err >&5
 
29091
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29092
  (exit $ac_status); } >/dev/null && {
 
29093
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
29094
         test ! -s conftest.err
 
29095
       }; then
 
29096
  ac_header_preproc=yes
 
29097
else
 
29098
  $as_echo "$as_me: failed program was:" >&5
 
29099
sed 's/^/| /' conftest.$ac_ext >&5
 
29100
 
 
29101
  ac_header_preproc=no
 
29102
fi
 
29103
 
 
29104
rm -f conftest.err conftest.$ac_ext
 
29105
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
29106
$as_echo "$ac_header_preproc" >&6; }
 
29107
 
 
29108
# So?  What about this header?
 
29109
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
29110
  yes:no: )
 
29111
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
29112
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
29113
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
29114
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
29115
    ac_header_preproc=yes
 
29116
    ;;
 
29117
  no:yes:* )
 
29118
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
29119
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
29120
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
29121
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
29122
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
29123
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
29124
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
29125
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
29126
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
29127
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
29128
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
29129
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
29130
    ( cat <<\_ASBOX
 
29131
## --------------------------------------- ##
 
29132
## Report this to http://www.graphviz.org/ ##
 
29133
## --------------------------------------- ##
 
29134
_ASBOX
 
29135
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
29136
    ;;
 
29137
esac
 
29138
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29139
$as_echo_n "checking for $ac_header... " >&6; }
 
29140
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29141
  $as_echo_n "(cached) " >&6
 
29142
else
 
29143
  eval "$as_ac_Header=\$ac_header_preproc"
 
29144
fi
 
29145
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29146
                 $as_echo "$as_val"'`
 
29147
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29148
$as_echo "$ac_res" >&6; }
 
29149
 
 
29150
fi
 
29151
as_val=`eval 'as_val=${'$as_ac_Header'}
 
29152
                 $as_echo "$as_val"'`
 
29153
   if test "x$as_val" = x""yes; then
 
29154
  cat >>confdefs.h <<_ACEOF
 
29155
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
29156
_ACEOF
 
29157
 
 
29158
else
 
29159
  use_expat="No (missing header)"
 
29160
     { $as_echo "$as_me:$LINENO: WARNING: Optional expat library not available - missing headers" >&5
 
29161
$as_echo "$as_me: WARNING: Optional expat library not available - missing headers" >&2;}
 
29162
fi
 
29163
 
 
29164
done
 
29165
 
 
29166
  { $as_echo "$as_me:$LINENO: checking for main in -lexpat" >&5
 
29167
$as_echo_n "checking for main in -lexpat... " >&6; }
 
29168
if test "${ac_cv_lib_expat_main+set}" = set; then
 
29169
  $as_echo_n "(cached) " >&6
 
29170
else
 
29171
  ac_check_lib_save_LIBS=$LIBS
 
29172
LIBS="-lexpat  $LIBS"
 
29173
cat >conftest.$ac_ext <<_ACEOF
 
29174
/* confdefs.h.  */
 
29175
_ACEOF
 
29176
cat confdefs.h >>conftest.$ac_ext
 
29177
cat >>conftest.$ac_ext <<_ACEOF
 
29178
/* end confdefs.h.  */
 
29179
 
 
29180
 
 
29181
int
 
29182
main ()
 
29183
{
 
29184
return main ();
 
29185
  ;
 
29186
  return 0;
 
29187
}
 
29188
_ACEOF
 
29189
rm -f conftest.$ac_objext conftest$ac_exeext
 
29190
if { (ac_try="$ac_link"
 
29191
case "(($ac_try" in
 
29192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29193
  *) ac_try_echo=$ac_try;;
 
29194
esac
 
29195
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29196
$as_echo "$ac_try_echo") >&5
 
29197
  (eval "$ac_link") 2>conftest.er1
 
29198
  ac_status=$?
 
29199
  grep -v '^ *+' conftest.er1 >conftest.err
 
29200
  rm -f conftest.er1
 
29201
  cat conftest.err >&5
 
29202
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29203
  (exit $ac_status); } && {
 
29204
         test -z "$ac_c_werror_flag" ||
 
29205
         test ! -s conftest.err
 
29206
       } && test -s conftest$ac_exeext && {
 
29207
         test "$cross_compiling" = yes ||
 
29208
         $as_test_x conftest$ac_exeext
 
29209
       }; then
 
29210
  ac_cv_lib_expat_main=yes
 
29211
else
 
29212
  $as_echo "$as_me: failed program was:" >&5
 
29213
sed 's/^/| /' conftest.$ac_ext >&5
 
29214
 
 
29215
        ac_cv_lib_expat_main=no
 
29216
fi
 
29217
 
 
29218
rm -rf conftest.dSYM
 
29219
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29220
      conftest$ac_exeext conftest.$ac_ext
 
29221
LIBS=$ac_check_lib_save_LIBS
 
29222
fi
 
29223
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_main" >&5
 
29224
$as_echo "$ac_cv_lib_expat_main" >&6; }
 
29225
if test "x$ac_cv_lib_expat_main" = x""yes; then
 
29226
  EXPAT_LIBS="$EXPAT_LIBS -lexpat"
 
29227
else
 
29228
  use_expat="No (missing library)"
 
29229
     { $as_echo "$as_me:$LINENO: WARNING: Optional expat library not available" >&5
 
29230
$as_echo "$as_me: WARNING: Optional expat library not available" >&2;}
 
29231
fi
 
29232
 
 
29233
  LDFLAGS=$save_LDFLAGS
 
29234
  CPPFLAGS=$save_CPPFLAGS
 
29235
fi
 
29236
if test "x$use_expat" = "x"; then
 
29237
  use_expat="Yes"
 
29238
 
 
29239
cat >>confdefs.h <<_ACEOF
 
29240
#define HAVE_EXPAT 1
 
29241
_ACEOF
 
29242
 
 
29243
 
 
29244
 
 
29245
fi
 
29246
 
 
29247
 
 
29248
 
 
29249
# Check whether --with-devil was given.
 
29250
if test "${with_devil+set}" = set; then
 
29251
  withval=$with_devil;
 
29252
else
 
29253
  with_devil=yes
 
29254
fi
 
29255
 
 
29256
 
 
29257
if test "x$with_devil" != "xyes"; then
 
29258
  use_devil="No (disabled)"
 
29259
else
 
29260
 
 
29261
 
 
29262
# Check whether --with-devilincludedir was given.
 
29263
if test "${with_devilincludedir+set}" = set; then
 
29264
  withval=$with_devilincludedir; DEVIL_INCLUDES="-I$withval"
 
29265
fi
 
29266
 
 
29267
 
 
29268
# Check whether --with-devillibdir was given.
 
29269
if test "${with_devillibdir+set}" = set; then
 
29270
  withval=$with_devillibdir; DEVIL_LIBS="-L$withval"
 
29271
fi
 
29272
 
 
29273
 
 
29274
  save_CPPFLAGS=$CPPFLAGS
 
29275
  save_LDFLAGS=$LDFLAGS
 
29276
  CPPFLAGS="$CPPFLAGS $DEVIL_INCLUDES"
 
29277
  LDFLAGS="$LDFLAGS $DEVIL_LIBS"
 
29278
 
 
29279
for ac_header in IL/il.h
 
29280
do
 
29281
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
29282
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29283
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29284
$as_echo_n "checking for $ac_header... " >&6; }
 
29285
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29286
  $as_echo_n "(cached) " >&6
 
29287
fi
 
29288
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29289
                 $as_echo "$as_val"'`
 
29290
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29291
$as_echo "$ac_res" >&6; }
 
29292
else
 
29293
  # Is the header compilable?
 
29294
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
29295
$as_echo_n "checking $ac_header usability... " >&6; }
 
29296
cat >conftest.$ac_ext <<_ACEOF
 
29297
/* confdefs.h.  */
 
29298
_ACEOF
 
29299
cat confdefs.h >>conftest.$ac_ext
 
29300
cat >>conftest.$ac_ext <<_ACEOF
 
29301
/* end confdefs.h.  */
 
29302
$ac_includes_default
 
29303
#include <$ac_header>
 
29304
_ACEOF
 
29305
rm -f conftest.$ac_objext
 
29306
if { (ac_try="$ac_compile"
 
29307
case "(($ac_try" in
 
29308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29309
  *) ac_try_echo=$ac_try;;
 
29310
esac
 
29311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29312
$as_echo "$ac_try_echo") >&5
 
29313
  (eval "$ac_compile") 2>conftest.er1
 
29314
  ac_status=$?
 
29315
  grep -v '^ *+' conftest.er1 >conftest.err
 
29316
  rm -f conftest.er1
 
29317
  cat conftest.err >&5
 
29318
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29319
  (exit $ac_status); } && {
 
29320
         test -z "$ac_c_werror_flag" ||
 
29321
         test ! -s conftest.err
 
29322
       } && test -s conftest.$ac_objext; then
 
29323
  ac_header_compiler=yes
 
29324
else
 
29325
  $as_echo "$as_me: failed program was:" >&5
 
29326
sed 's/^/| /' conftest.$ac_ext >&5
 
29327
 
 
29328
        ac_header_compiler=no
 
29329
fi
 
29330
 
 
29331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29332
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
29333
$as_echo "$ac_header_compiler" >&6; }
 
29334
 
 
29335
# Is the header present?
 
29336
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
29337
$as_echo_n "checking $ac_header presence... " >&6; }
 
29338
cat >conftest.$ac_ext <<_ACEOF
 
29339
/* confdefs.h.  */
 
29340
_ACEOF
 
29341
cat confdefs.h >>conftest.$ac_ext
 
29342
cat >>conftest.$ac_ext <<_ACEOF
 
29343
/* end confdefs.h.  */
 
29344
#include <$ac_header>
 
29345
_ACEOF
 
29346
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
29347
case "(($ac_try" in
 
29348
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29349
  *) ac_try_echo=$ac_try;;
 
29350
esac
 
29351
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29352
$as_echo "$ac_try_echo") >&5
 
29353
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
29354
  ac_status=$?
 
29355
  grep -v '^ *+' conftest.er1 >conftest.err
 
29356
  rm -f conftest.er1
 
29357
  cat conftest.err >&5
 
29358
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29359
  (exit $ac_status); } >/dev/null && {
 
29360
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
29361
         test ! -s conftest.err
 
29362
       }; then
 
29363
  ac_header_preproc=yes
 
29364
else
 
29365
  $as_echo "$as_me: failed program was:" >&5
 
29366
sed 's/^/| /' conftest.$ac_ext >&5
 
29367
 
 
29368
  ac_header_preproc=no
 
29369
fi
 
29370
 
 
29371
rm -f conftest.err conftest.$ac_ext
 
29372
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
29373
$as_echo "$ac_header_preproc" >&6; }
 
29374
 
 
29375
# So?  What about this header?
 
29376
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
29377
  yes:no: )
 
29378
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
29379
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
29380
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
29381
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
29382
    ac_header_preproc=yes
 
29383
    ;;
 
29384
  no:yes:* )
 
29385
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
29386
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
29387
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
29388
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
29389
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
29390
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
29391
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
29392
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
29393
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
29394
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
29395
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
29396
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
29397
    ( cat <<\_ASBOX
 
29398
## --------------------------------------- ##
 
29399
## Report this to http://www.graphviz.org/ ##
 
29400
## --------------------------------------- ##
 
29401
_ASBOX
 
29402
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
29403
    ;;
 
29404
esac
 
29405
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29406
$as_echo_n "checking for $ac_header... " >&6; }
 
29407
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29408
  $as_echo_n "(cached) " >&6
 
29409
else
 
29410
  eval "$as_ac_Header=\$ac_header_preproc"
 
29411
fi
 
29412
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29413
                 $as_echo "$as_val"'`
 
29414
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29415
$as_echo "$ac_res" >&6; }
 
29416
 
 
29417
fi
 
29418
as_val=`eval 'as_val=${'$as_ac_Header'}
 
29419
                 $as_echo "$as_val"'`
 
29420
   if test "x$as_val" = x""yes; then
 
29421
  cat >>confdefs.h <<_ACEOF
 
29422
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
29423
_ACEOF
 
29424
 
 
29425
else
 
29426
  use_devil="No (missing header)"
 
29427
     { $as_echo "$as_me:$LINENO: WARNING: Optional DevIL library not available - missing headers" >&5
 
29428
$as_echo "$as_me: WARNING: Optional DevIL library not available - missing headers" >&2;}
 
29429
fi
 
29430
 
 
29431
done
 
29432
 
 
29433
  { $as_echo "$as_me:$LINENO: checking for main in -lIL" >&5
 
29434
$as_echo_n "checking for main in -lIL... " >&6; }
 
29435
if test "${ac_cv_lib_IL_main+set}" = set; then
 
29436
  $as_echo_n "(cached) " >&6
 
29437
else
 
29438
  ac_check_lib_save_LIBS=$LIBS
 
29439
LIBS="-lIL  $LIBS"
 
29440
cat >conftest.$ac_ext <<_ACEOF
 
29441
/* confdefs.h.  */
 
29442
_ACEOF
 
29443
cat confdefs.h >>conftest.$ac_ext
 
29444
cat >>conftest.$ac_ext <<_ACEOF
 
29445
/* end confdefs.h.  */
 
29446
 
 
29447
 
 
29448
int
 
29449
main ()
 
29450
{
 
29451
return main ();
 
29452
  ;
 
29453
  return 0;
 
29454
}
 
29455
_ACEOF
 
29456
rm -f conftest.$ac_objext conftest$ac_exeext
 
29457
if { (ac_try="$ac_link"
 
29458
case "(($ac_try" in
 
29459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29460
  *) ac_try_echo=$ac_try;;
 
29461
esac
 
29462
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29463
$as_echo "$ac_try_echo") >&5
 
29464
  (eval "$ac_link") 2>conftest.er1
 
29465
  ac_status=$?
 
29466
  grep -v '^ *+' conftest.er1 >conftest.err
 
29467
  rm -f conftest.er1
 
29468
  cat conftest.err >&5
 
29469
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29470
  (exit $ac_status); } && {
 
29471
         test -z "$ac_c_werror_flag" ||
 
29472
         test ! -s conftest.err
 
29473
       } && test -s conftest$ac_exeext && {
 
29474
         test "$cross_compiling" = yes ||
 
29475
         $as_test_x conftest$ac_exeext
 
29476
       }; then
 
29477
  ac_cv_lib_IL_main=yes
 
29478
else
 
29479
  $as_echo "$as_me: failed program was:" >&5
 
29480
sed 's/^/| /' conftest.$ac_ext >&5
 
29481
 
 
29482
        ac_cv_lib_IL_main=no
 
29483
fi
 
29484
 
 
29485
rm -rf conftest.dSYM
 
29486
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29487
      conftest$ac_exeext conftest.$ac_ext
 
29488
LIBS=$ac_check_lib_save_LIBS
 
29489
fi
 
29490
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_IL_main" >&5
 
29491
$as_echo "$ac_cv_lib_IL_main" >&6; }
 
29492
if test "x$ac_cv_lib_IL_main" = x""yes; then
 
29493
  DEVIL_LIBS="$DEVIL_LIBS -lIL -lILU"
 
29494
else
 
29495
  use_devil="No (missing library)"
 
29496
     { $as_echo "$as_me:$LINENO: WARNING: Optional DevIL library not available" >&5
 
29497
$as_echo "$as_me: WARNING: Optional DevIL library not available" >&2;}
 
29498
fi
 
29499
 
 
29500
  LDFLAGS=$save_LDFLAGS
 
29501
  CPPFLAGS=$save_CPPFLAGS
 
29502
fi
 
29503
if test "x$use_devil" = "x"; then
 
29504
  use_devil="Yes"
 
29505
 
 
29506
cat >>confdefs.h <<_ACEOF
 
29507
#define HAVE_DEVIL 1
 
29508
_ACEOF
 
29509
 
 
29510
 
 
29511
 
 
29512
fi
 
29513
 
 
29514
 if test "x$use_devil" = "xYes"; then
 
29515
  WITH_DEVIL_TRUE=
 
29516
  WITH_DEVIL_FALSE='#'
 
29517
else
 
29518
  WITH_DEVIL_TRUE='#'
 
29519
  WITH_DEVIL_FALSE=
 
29520
fi
 
29521
 
 
29522
 
 
29523
#
 
29524
# we don't want an X11 dependency in libgd
 
29525
# so we set HAVE_LIBXPMFORLEFTY instead of the usual HAVE_LIBXPM
 
29526
#
 
29527
 
 
29528
 
 
29529
# Check whether --with-Xpmincludedir was given.
 
29530
if test "${with_Xpmincludedir+set}" = set; then
 
29531
  withval=$with_Xpmincludedir; XPM_INCLUDES="-I$withval"
 
29532
fi
 
29533
 
 
29534
 
 
29535
# Check whether --with-Xpmlibdir was given.
 
29536
if test "${with_Xpmlibdir+set}" = set; then
 
29537
  withval=$with_Xpmlibdir; XPM_LIBS="-L$withval"
 
29538
fi
 
29539
 
 
29540
 
 
29541
save_CPPFLAGS=$CPPFLAGS
 
29542
save_LDFLAGS=$LDFLAGS
 
29543
CPPFLAGS="$CPPFLAGS $XPM_INCLUDES $X_CFLAGS"
 
29544
LDFLAGS="$LDFLAGS $XPM_LIBS $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS $SOCKET_LIBS"
 
29545
{ $as_echo "$as_me:$LINENO: checking for main in -lXpm" >&5
 
29546
$as_echo_n "checking for main in -lXpm... " >&6; }
 
29547
if test "${ac_cv_lib_Xpm_main+set}" = set; then
 
29548
  $as_echo_n "(cached) " >&6
 
29549
else
 
29550
  ac_check_lib_save_LIBS=$LIBS
 
29551
LIBS="-lXpm -lXmu -lXt -lX11 -lXext $SOCKET_LIBS $LIBS"
 
29552
cat >conftest.$ac_ext <<_ACEOF
 
29553
/* confdefs.h.  */
 
29554
_ACEOF
 
29555
cat confdefs.h >>conftest.$ac_ext
 
29556
cat >>conftest.$ac_ext <<_ACEOF
 
29557
/* end confdefs.h.  */
 
29558
 
 
29559
 
 
29560
int
 
29561
main ()
 
29562
{
 
29563
return main ();
 
29564
  ;
 
29565
  return 0;
 
29566
}
 
29567
_ACEOF
 
29568
rm -f conftest.$ac_objext conftest$ac_exeext
 
29569
if { (ac_try="$ac_link"
 
29570
case "(($ac_try" in
 
29571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29572
  *) ac_try_echo=$ac_try;;
 
29573
esac
 
29574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29575
$as_echo "$ac_try_echo") >&5
 
29576
  (eval "$ac_link") 2>conftest.er1
 
29577
  ac_status=$?
 
29578
  grep -v '^ *+' conftest.er1 >conftest.err
 
29579
  rm -f conftest.er1
 
29580
  cat conftest.err >&5
 
29581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29582
  (exit $ac_status); } && {
 
29583
         test -z "$ac_c_werror_flag" ||
 
29584
         test ! -s conftest.err
 
29585
       } && test -s conftest$ac_exeext && {
 
29586
         test "$cross_compiling" = yes ||
 
29587
         $as_test_x conftest$ac_exeext
 
29588
       }; then
 
29589
  ac_cv_lib_Xpm_main=yes
 
29590
else
 
29591
  $as_echo "$as_me: failed program was:" >&5
 
29592
sed 's/^/| /' conftest.$ac_ext >&5
 
29593
 
 
29594
        ac_cv_lib_Xpm_main=no
 
29595
fi
 
29596
 
 
29597
rm -rf conftest.dSYM
 
29598
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29599
      conftest$ac_exeext conftest.$ac_ext
 
29600
LIBS=$ac_check_lib_save_LIBS
 
29601
fi
 
29602
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_main" >&5
 
29603
$as_echo "$ac_cv_lib_Xpm_main" >&6; }
 
29604
if test "x$ac_cv_lib_Xpm_main" = x""yes; then
 
29605
  XPM_LIBS="$XPM_LIBS -lXpm"
 
29606
 
 
29607
cat >>confdefs.h <<_ACEOF
 
29608
#define HAVE_LIBXPMFORLEFTY 1
 
29609
_ACEOF
 
29610
 
 
29611
else
 
29612
  { $as_echo "$as_me:$LINENO: WARNING: Optional Xpm library not available" >&5
 
29613
$as_echo "$as_me: WARNING: Optional Xpm library not available" >&2;}
 
29614
fi
 
29615
 
 
29616
LDFLAGS=$save_LDFLAGS
 
29617
CPPFLAGS=$save_CPPFLAGS
 
29618
 
 
29619
 
 
29620
 
 
29621
 
 
29622
 
 
29623
# Check whether --with-Xawincludedir was given.
 
29624
if test "${with_Xawincludedir+set}" = set; then
 
29625
  withval=$with_Xawincludedir; XAW_INCLUDES="-I$withval"
 
29626
fi
 
29627
 
 
29628
 
 
29629
# Check whether --with-Xawlibdir was given.
 
29630
if test "${with_Xawlibdir+set}" = set; then
 
29631
  withval=$with_Xawlibdir; XAW_LIBS="-L$withval"
 
29632
fi
 
29633
 
 
29634
save_CPPFLAGS=$CPPFLAGS
 
29635
save_LDFLAGS=$LDFLAGS
 
29636
CPPFLAGS="$CPPFLAGS $XAW_INCLUDES $X_CFLAGS"
 
29637
LDFLAGS="$LDFLAGS $X_LIBS $XAW_LIBS $XPM_LIBS $X_EXTRA_LIBS $X_PRE_LIBS $SOCKET_LIBS"
 
29638
 
 
29639
for ac_header in X11/Intrinsic.h
 
29640
do
 
29641
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
29642
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29643
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29644
$as_echo_n "checking for $ac_header... " >&6; }
 
29645
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29646
  $as_echo_n "(cached) " >&6
 
29647
fi
 
29648
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29649
                 $as_echo "$as_val"'`
 
29650
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29651
$as_echo "$ac_res" >&6; }
 
29652
else
 
29653
  # Is the header compilable?
 
29654
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
29655
$as_echo_n "checking $ac_header usability... " >&6; }
 
29656
cat >conftest.$ac_ext <<_ACEOF
 
29657
/* confdefs.h.  */
 
29658
_ACEOF
 
29659
cat confdefs.h >>conftest.$ac_ext
 
29660
cat >>conftest.$ac_ext <<_ACEOF
 
29661
/* end confdefs.h.  */
 
29662
$ac_includes_default
 
29663
#include <$ac_header>
 
29664
_ACEOF
 
29665
rm -f conftest.$ac_objext
 
29666
if { (ac_try="$ac_compile"
 
29667
case "(($ac_try" in
 
29668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29669
  *) ac_try_echo=$ac_try;;
 
29670
esac
 
29671
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29672
$as_echo "$ac_try_echo") >&5
 
29673
  (eval "$ac_compile") 2>conftest.er1
 
29674
  ac_status=$?
 
29675
  grep -v '^ *+' conftest.er1 >conftest.err
 
29676
  rm -f conftest.er1
 
29677
  cat conftest.err >&5
 
29678
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29679
  (exit $ac_status); } && {
 
29680
         test -z "$ac_c_werror_flag" ||
 
29681
         test ! -s conftest.err
 
29682
       } && test -s conftest.$ac_objext; then
 
29683
  ac_header_compiler=yes
 
29684
else
 
29685
  $as_echo "$as_me: failed program was:" >&5
 
29686
sed 's/^/| /' conftest.$ac_ext >&5
 
29687
 
 
29688
        ac_header_compiler=no
 
29689
fi
 
29690
 
 
29691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29692
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
29693
$as_echo "$ac_header_compiler" >&6; }
 
29694
 
 
29695
# Is the header present?
 
29696
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
29697
$as_echo_n "checking $ac_header presence... " >&6; }
 
29698
cat >conftest.$ac_ext <<_ACEOF
 
29699
/* confdefs.h.  */
 
29700
_ACEOF
 
29701
cat confdefs.h >>conftest.$ac_ext
 
29702
cat >>conftest.$ac_ext <<_ACEOF
 
29703
/* end confdefs.h.  */
 
29704
#include <$ac_header>
 
29705
_ACEOF
 
29706
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
29707
case "(($ac_try" in
 
29708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29709
  *) ac_try_echo=$ac_try;;
 
29710
esac
 
29711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29712
$as_echo "$ac_try_echo") >&5
 
29713
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
29714
  ac_status=$?
 
29715
  grep -v '^ *+' conftest.er1 >conftest.err
 
29716
  rm -f conftest.er1
 
29717
  cat conftest.err >&5
 
29718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29719
  (exit $ac_status); } >/dev/null && {
 
29720
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
29721
         test ! -s conftest.err
 
29722
       }; then
 
29723
  ac_header_preproc=yes
 
29724
else
 
29725
  $as_echo "$as_me: failed program was:" >&5
 
29726
sed 's/^/| /' conftest.$ac_ext >&5
 
29727
 
 
29728
  ac_header_preproc=no
 
29729
fi
 
29730
 
 
29731
rm -f conftest.err conftest.$ac_ext
 
29732
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
29733
$as_echo "$ac_header_preproc" >&6; }
 
29734
 
 
29735
# So?  What about this header?
 
29736
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
29737
  yes:no: )
 
29738
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
29739
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
29740
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
29741
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
29742
    ac_header_preproc=yes
 
29743
    ;;
 
29744
  no:yes:* )
 
29745
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
29746
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
29747
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
29748
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
29749
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
29750
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
29751
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
29752
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
29753
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
29754
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
29755
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
29756
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
29757
    ( cat <<\_ASBOX
 
29758
## --------------------------------------- ##
 
29759
## Report this to http://www.graphviz.org/ ##
 
29760
## --------------------------------------- ##
 
29761
_ASBOX
 
29762
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
29763
    ;;
 
29764
esac
 
29765
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29766
$as_echo_n "checking for $ac_header... " >&6; }
 
29767
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29768
  $as_echo_n "(cached) " >&6
 
29769
else
 
29770
  eval "$as_ac_Header=\$ac_header_preproc"
 
29771
fi
 
29772
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29773
                 $as_echo "$as_val"'`
 
29774
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29775
$as_echo "$ac_res" >&6; }
 
29776
 
 
29777
fi
 
29778
as_val=`eval 'as_val=${'$as_ac_Header'}
 
29779
                 $as_echo "$as_val"'`
 
29780
   if test "x$as_val" = x""yes; then
 
29781
  cat >>confdefs.h <<_ACEOF
 
29782
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
29783
_ACEOF
 
29784
 
 
29785
fi
 
29786
 
 
29787
done
 
29788
 
 
29789
use_lefty="Yes"
 
29790
 
 
29791
for ac_header in X11/Xaw/Text.h
 
29792
do
 
29793
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
29794
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29795
$as_echo_n "checking for $ac_header... " >&6; }
 
29796
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29797
  $as_echo_n "(cached) " >&6
 
29798
else
 
29799
  cat >conftest.$ac_ext <<_ACEOF
 
29800
/* confdefs.h.  */
 
29801
_ACEOF
 
29802
cat confdefs.h >>conftest.$ac_ext
 
29803
cat >>conftest.$ac_ext <<_ACEOF
 
29804
/* end confdefs.h.  */
 
29805
#if HAVE_X11_INTRINSIC_H
 
29806
                  # include <X11/Intrinsic.h>
 
29807
                  # endif
 
29808
 
 
29809
 
 
29810
#include <$ac_header>
 
29811
_ACEOF
 
29812
rm -f conftest.$ac_objext
 
29813
if { (ac_try="$ac_compile"
 
29814
case "(($ac_try" in
 
29815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29816
  *) ac_try_echo=$ac_try;;
 
29817
esac
 
29818
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29819
$as_echo "$ac_try_echo") >&5
 
29820
  (eval "$ac_compile") 2>conftest.er1
 
29821
  ac_status=$?
 
29822
  grep -v '^ *+' conftest.er1 >conftest.err
 
29823
  rm -f conftest.er1
 
29824
  cat conftest.err >&5
 
29825
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29826
  (exit $ac_status); } && {
 
29827
         test -z "$ac_c_werror_flag" ||
 
29828
         test ! -s conftest.err
 
29829
       } && test -s conftest.$ac_objext; then
 
29830
  eval "$as_ac_Header=yes"
 
29831
else
 
29832
  $as_echo "$as_me: failed program was:" >&5
 
29833
sed 's/^/| /' conftest.$ac_ext >&5
 
29834
 
 
29835
        eval "$as_ac_Header=no"
 
29836
fi
 
29837
 
 
29838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29839
fi
 
29840
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29841
                 $as_echo "$as_val"'`
 
29842
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29843
$as_echo "$ac_res" >&6; }
 
29844
as_val=`eval 'as_val=${'$as_ac_Header'}
 
29845
                 $as_echo "$as_val"'`
 
29846
   if test "x$as_val" = x""yes; then
 
29847
  cat >>confdefs.h <<_ACEOF
 
29848
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
29849
_ACEOF
 
29850
 
 
29851
else
 
29852
  with_xaw=no
 
29853
                  use_lefty="No (missing Xaw headers)"
 
29854
                  { $as_echo "$as_me:$LINENO: WARNING: Optional Xaw library not available - missing headers" >&5
 
29855
$as_echo "$as_me: WARNING: Optional Xaw library not available - missing headers" >&2;}
 
29856
fi
 
29857
 
 
29858
done
 
29859
 
 
29860
if test "x$with_xaw" != "xno"; then
 
29861
{ $as_echo "$as_me:$LINENO: checking for main in -lXaw" >&5
 
29862
$as_echo_n "checking for main in -lXaw... " >&6; }
 
29863
if test "${ac_cv_lib_Xaw_main+set}" = set; then
 
29864
  $as_echo_n "(cached) " >&6
 
29865
else
 
29866
  ac_check_lib_save_LIBS=$LIBS
 
29867
LIBS="-lXaw $X_LIBS -lXmu -lXt -lX11 -lXext $SOCKET_LIBS $LIBS"
 
29868
cat >conftest.$ac_ext <<_ACEOF
 
29869
/* confdefs.h.  */
 
29870
_ACEOF
 
29871
cat confdefs.h >>conftest.$ac_ext
 
29872
cat >>conftest.$ac_ext <<_ACEOF
 
29873
/* end confdefs.h.  */
 
29874
 
 
29875
 
 
29876
int
 
29877
main ()
 
29878
{
 
29879
return main ();
 
29880
  ;
 
29881
  return 0;
 
29882
}
 
29883
_ACEOF
 
29884
rm -f conftest.$ac_objext conftest$ac_exeext
 
29885
if { (ac_try="$ac_link"
 
29886
case "(($ac_try" in
 
29887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29888
  *) ac_try_echo=$ac_try;;
 
29889
esac
 
29890
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29891
$as_echo "$ac_try_echo") >&5
 
29892
  (eval "$ac_link") 2>conftest.er1
 
29893
  ac_status=$?
 
29894
  grep -v '^ *+' conftest.er1 >conftest.err
 
29895
  rm -f conftest.er1
 
29896
  cat conftest.err >&5
 
29897
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29898
  (exit $ac_status); } && {
 
29899
         test -z "$ac_c_werror_flag" ||
 
29900
         test ! -s conftest.err
 
29901
       } && test -s conftest$ac_exeext && {
 
29902
         test "$cross_compiling" = yes ||
 
29903
         $as_test_x conftest$ac_exeext
 
29904
       }; then
 
29905
  ac_cv_lib_Xaw_main=yes
 
29906
else
 
29907
  $as_echo "$as_me: failed program was:" >&5
 
29908
sed 's/^/| /' conftest.$ac_ext >&5
 
29909
 
 
29910
        ac_cv_lib_Xaw_main=no
 
29911
fi
 
29912
 
 
29913
rm -rf conftest.dSYM
 
29914
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29915
      conftest$ac_exeext conftest.$ac_ext
 
29916
LIBS=$ac_check_lib_save_LIBS
 
29917
fi
 
29918
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
 
29919
$as_echo "$ac_cv_lib_Xaw_main" >&6; }
 
29920
if test "x$ac_cv_lib_Xaw_main" = x""yes; then
 
29921
  XAW_LIBS="$X_LIBS $XAW_LIBS -lXaw"
 
29922
else
 
29923
  with_xaw=no
 
29924
              use_lefty="No (missing Xaw library)"
 
29925
              { $as_echo "$as_me:$LINENO: WARNING: Optional Xaw library not available" >&5
 
29926
$as_echo "$as_me: WARNING: Optional Xaw library not available" >&2;}
 
29927
fi
 
29928
 
 
29929
fi
 
29930
LDFLAGS=$save_LDFLAGS
 
29931
CPPFLAGS=$save_CPPFLAGS
 
29932
 
 
29933
 
 
29934
 if test "x$with_xaw" != "xno"; then
 
29935
  WITH_XAW_TRUE=
 
29936
  WITH_XAW_FALSE='#'
 
29937
else
 
29938
  WITH_XAW_TRUE='#'
 
29939
  WITH_XAW_FALSE=
 
29940
fi
 
29941
 
 
29942
if test "x$with_xaw" = "xno"; then
 
29943
    if test "x$no_x" != "xyes"; then
 
29944
        { $as_echo "$as_me:$LINENO: WARNING: Lefty cannot be built" >&5
 
29945
$as_echo "$as_me: WARNING: Lefty cannot be built" >&2;}
 
29946
    fi
 
29947
fi
 
29948
 
 
29949
 
 
29950
 
 
29951
# Check whether --with-zincludedir was given.
 
29952
if test "${with_zincludedir+set}" = set; then
 
29953
  withval=$with_zincludedir; Z_INCLUDES="-I$withval"
 
29954
fi
 
29955
 
 
29956
 
 
29957
# Check whether --with-zlibdir was given.
 
29958
if test "${with_zlibdir+set}" = set; then
 
29959
  withval=$with_zlibdir; Z_LIBS="-L$withval"
 
29960
fi
 
29961
 
 
29962
 
 
29963
save_CPPFLAGS=$CPPFLAGS
 
29964
save_LDFLAGS=$LDFLAGS
 
29965
CPPFLAGS="$CPPFLAGS $Z_INCLUDES"
 
29966
LDFLAGS="$LDFLAGS $Z_LIBS"
 
29967
if test "${ac_cv_header_zlib_h+set}" = set; then
 
29968
  { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
 
29969
$as_echo_n "checking for zlib.h... " >&6; }
 
29970
if test "${ac_cv_header_zlib_h+set}" = set; then
 
29971
  $as_echo_n "(cached) " >&6
 
29972
fi
 
29973
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
29974
$as_echo "$ac_cv_header_zlib_h" >&6; }
 
29975
else
 
29976
  # Is the header compilable?
 
29977
{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
 
29978
$as_echo_n "checking zlib.h usability... " >&6; }
 
29979
cat >conftest.$ac_ext <<_ACEOF
 
29980
/* confdefs.h.  */
 
29981
_ACEOF
 
29982
cat confdefs.h >>conftest.$ac_ext
 
29983
cat >>conftest.$ac_ext <<_ACEOF
 
29984
/* end confdefs.h.  */
 
29985
$ac_includes_default
 
29986
#include <zlib.h>
 
29987
_ACEOF
 
29988
rm -f conftest.$ac_objext
 
29989
if { (ac_try="$ac_compile"
 
29990
case "(($ac_try" in
 
29991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29992
  *) ac_try_echo=$ac_try;;
 
29993
esac
 
29994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29995
$as_echo "$ac_try_echo") >&5
 
29996
  (eval "$ac_compile") 2>conftest.er1
 
29997
  ac_status=$?
 
29998
  grep -v '^ *+' conftest.er1 >conftest.err
 
29999
  rm -f conftest.er1
 
30000
  cat conftest.err >&5
 
30001
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30002
  (exit $ac_status); } && {
 
30003
         test -z "$ac_c_werror_flag" ||
 
30004
         test ! -s conftest.err
 
30005
       } && test -s conftest.$ac_objext; then
 
30006
  ac_header_compiler=yes
 
30007
else
 
30008
  $as_echo "$as_me: failed program was:" >&5
 
30009
sed 's/^/| /' conftest.$ac_ext >&5
 
30010
 
 
30011
        ac_header_compiler=no
 
30012
fi
 
30013
 
 
30014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30015
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
30016
$as_echo "$ac_header_compiler" >&6; }
 
30017
 
 
30018
# Is the header present?
 
30019
{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
 
30020
$as_echo_n "checking zlib.h presence... " >&6; }
 
30021
cat >conftest.$ac_ext <<_ACEOF
 
30022
/* confdefs.h.  */
 
30023
_ACEOF
 
30024
cat confdefs.h >>conftest.$ac_ext
 
30025
cat >>conftest.$ac_ext <<_ACEOF
 
30026
/* end confdefs.h.  */
 
30027
#include <zlib.h>
 
30028
_ACEOF
 
30029
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
30030
case "(($ac_try" in
 
30031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30032
  *) ac_try_echo=$ac_try;;
 
30033
esac
 
30034
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30035
$as_echo "$ac_try_echo") >&5
 
30036
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
30037
  ac_status=$?
 
30038
  grep -v '^ *+' conftest.er1 >conftest.err
 
30039
  rm -f conftest.er1
 
30040
  cat conftest.err >&5
 
30041
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30042
  (exit $ac_status); } >/dev/null && {
 
30043
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
30044
         test ! -s conftest.err
 
30045
       }; then
 
30046
  ac_header_preproc=yes
 
30047
else
 
30048
  $as_echo "$as_me: failed program was:" >&5
 
30049
sed 's/^/| /' conftest.$ac_ext >&5
 
30050
 
 
30051
  ac_header_preproc=no
 
30052
fi
 
30053
 
 
30054
rm -f conftest.err conftest.$ac_ext
 
30055
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
30056
$as_echo "$ac_header_preproc" >&6; }
 
30057
 
 
30058
# So?  What about this header?
 
30059
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
30060
  yes:no: )
 
30061
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
30062
$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
30063
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
 
30064
$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
 
30065
    ac_header_preproc=yes
 
30066
    ;;
 
30067
  no:yes:* )
 
30068
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
 
30069
$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
 
30070
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
 
30071
$as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
 
30072
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
 
30073
$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
 
30074
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
30075
$as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
30076
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
 
30077
$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
 
30078
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
 
30079
$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
 
30080
    ( cat <<\_ASBOX
 
30081
## --------------------------------------- ##
 
30082
## Report this to http://www.graphviz.org/ ##
 
30083
## --------------------------------------- ##
 
30084
_ASBOX
 
30085
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
30086
    ;;
 
30087
esac
 
30088
{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
 
30089
$as_echo_n "checking for zlib.h... " >&6; }
 
30090
if test "${ac_cv_header_zlib_h+set}" = set; then
 
30091
  $as_echo_n "(cached) " >&6
 
30092
else
 
30093
  ac_cv_header_zlib_h=$ac_header_preproc
 
30094
fi
 
30095
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
30096
$as_echo "$ac_cv_header_zlib_h" >&6; }
 
30097
 
 
30098
fi
 
30099
if test "x$ac_cv_header_zlib_h" = x""yes; then
 
30100
  { $as_echo "$as_me:$LINENO: checking for main in -lz" >&5
 
30101
$as_echo_n "checking for main in -lz... " >&6; }
 
30102
if test "${ac_cv_lib_z_main+set}" = set; then
 
30103
  $as_echo_n "(cached) " >&6
 
30104
else
 
30105
  ac_check_lib_save_LIBS=$LIBS
 
30106
LIBS="-lz  $LIBS"
 
30107
cat >conftest.$ac_ext <<_ACEOF
 
30108
/* confdefs.h.  */
 
30109
_ACEOF
 
30110
cat confdefs.h >>conftest.$ac_ext
 
30111
cat >>conftest.$ac_ext <<_ACEOF
 
30112
/* end confdefs.h.  */
 
30113
 
 
30114
 
 
30115
int
 
30116
main ()
 
30117
{
 
30118
return main ();
 
30119
  ;
 
30120
  return 0;
 
30121
}
 
30122
_ACEOF
 
30123
rm -f conftest.$ac_objext conftest$ac_exeext
 
30124
if { (ac_try="$ac_link"
 
30125
case "(($ac_try" in
 
30126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30127
  *) ac_try_echo=$ac_try;;
 
30128
esac
 
30129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30130
$as_echo "$ac_try_echo") >&5
 
30131
  (eval "$ac_link") 2>conftest.er1
 
30132
  ac_status=$?
 
30133
  grep -v '^ *+' conftest.er1 >conftest.err
 
30134
  rm -f conftest.er1
 
30135
  cat conftest.err >&5
 
30136
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30137
  (exit $ac_status); } && {
 
30138
         test -z "$ac_c_werror_flag" ||
 
30139
         test ! -s conftest.err
 
30140
       } && test -s conftest$ac_exeext && {
 
30141
         test "$cross_compiling" = yes ||
 
30142
         $as_test_x conftest$ac_exeext
 
30143
       }; then
 
30144
  ac_cv_lib_z_main=yes
 
30145
else
 
30146
  $as_echo "$as_me: failed program was:" >&5
 
30147
sed 's/^/| /' conftest.$ac_ext >&5
 
30148
 
 
30149
        ac_cv_lib_z_main=no
 
30150
fi
 
30151
 
 
30152
rm -rf conftest.dSYM
 
30153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30154
      conftest$ac_exeext conftest.$ac_ext
 
30155
LIBS=$ac_check_lib_save_LIBS
 
30156
fi
 
30157
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
 
30158
$as_echo "$ac_cv_lib_z_main" >&6; }
 
30159
if test "x$ac_cv_lib_z_main" = x""yes; then
 
30160
  Z_LIBS="$Z_LIBS -lz"
 
30161
 
 
30162
cat >>confdefs.h <<_ACEOF
 
30163
#define HAVE_LIBZ 1
 
30164
_ACEOF
 
30165
 
 
30166
else
 
30167
  { $as_echo "$as_me:$LINENO: WARNING: Optional z library not available" >&5
 
30168
$as_echo "$as_me: WARNING: Optional z library not available" >&2;}
 
30169
fi
 
30170
 
 
30171
else
 
30172
  { $as_echo "$as_me:$LINENO: WARNING: Optional z library not available - no zlib.h" >&5
 
30173
$as_echo "$as_me: WARNING: Optional z library not available - no zlib.h" >&2;}
 
30174
fi
 
30175
 
 
30176
 
 
30177
        LDFLAGS="$LDFLAGS $Z_LIBS"
 
30178
 
 
30179
for ac_func in deflateBound
 
30180
do
 
30181
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
30182
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
30183
$as_echo_n "checking for $ac_func... " >&6; }
 
30184
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
30185
  $as_echo_n "(cached) " >&6
 
30186
else
 
30187
  cat >conftest.$ac_ext <<_ACEOF
 
30188
/* confdefs.h.  */
 
30189
_ACEOF
 
30190
cat confdefs.h >>conftest.$ac_ext
 
30191
cat >>conftest.$ac_ext <<_ACEOF
 
30192
/* end confdefs.h.  */
 
30193
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
30194
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
30195
#define $ac_func innocuous_$ac_func
 
30196
 
 
30197
/* System header to define __stub macros and hopefully few prototypes,
 
30198
    which can conflict with char $ac_func (); below.
 
30199
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
30200
    <limits.h> exists even on freestanding compilers.  */
 
30201
 
 
30202
#ifdef __STDC__
 
30203
# include <limits.h>
 
30204
#else
 
30205
# include <assert.h>
 
30206
#endif
 
30207
 
 
30208
#undef $ac_func
 
30209
 
 
30210
/* Override any GCC internal prototype to avoid an error.
 
30211
   Use char because int might match the return type of a GCC
 
30212
   builtin and then its argument prototype would still apply.  */
 
30213
#ifdef __cplusplus
 
30214
extern "C"
 
30215
#endif
 
30216
char $ac_func ();
 
30217
/* The GNU C library defines this for functions which it implements
 
30218
    to always fail with ENOSYS.  Some functions are actually named
 
30219
    something starting with __ and the normal name is an alias.  */
 
30220
#if defined __stub_$ac_func || defined __stub___$ac_func
 
30221
choke me
 
30222
#endif
 
30223
 
 
30224
int
 
30225
main ()
 
30226
{
 
30227
return $ac_func ();
 
30228
  ;
 
30229
  return 0;
 
30230
}
 
30231
_ACEOF
 
30232
rm -f conftest.$ac_objext conftest$ac_exeext
 
30233
if { (ac_try="$ac_link"
 
30234
case "(($ac_try" in
 
30235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30236
  *) ac_try_echo=$ac_try;;
 
30237
esac
 
30238
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30239
$as_echo "$ac_try_echo") >&5
 
30240
  (eval "$ac_link") 2>conftest.er1
 
30241
  ac_status=$?
 
30242
  grep -v '^ *+' conftest.er1 >conftest.err
 
30243
  rm -f conftest.er1
 
30244
  cat conftest.err >&5
 
30245
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30246
  (exit $ac_status); } && {
 
30247
         test -z "$ac_c_werror_flag" ||
 
30248
         test ! -s conftest.err
 
30249
       } && test -s conftest$ac_exeext && {
 
30250
         test "$cross_compiling" = yes ||
 
30251
         $as_test_x conftest$ac_exeext
 
30252
       }; then
 
30253
  eval "$as_ac_var=yes"
 
30254
else
 
30255
  $as_echo "$as_me: failed program was:" >&5
 
30256
sed 's/^/| /' conftest.$ac_ext >&5
 
30257
 
 
30258
        eval "$as_ac_var=no"
 
30259
fi
 
30260
 
 
30261
rm -rf conftest.dSYM
 
30262
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30263
      conftest$ac_exeext conftest.$ac_ext
 
30264
fi
 
30265
ac_res=`eval 'as_val=${'$as_ac_var'}
 
30266
                 $as_echo "$as_val"'`
 
30267
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
30268
$as_echo "$ac_res" >&6; }
 
30269
as_val=`eval 'as_val=${'$as_ac_var'}
 
30270
                 $as_echo "$as_val"'`
 
30271
   if test "x$as_val" = x""yes; then
 
30272
  cat >>confdefs.h <<_ACEOF
 
30273
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30274
_ACEOF
 
30275
 
 
30276
fi
 
30277
done
 
30278
 
 
30279
LDFLAGS=$save_LDFLAGS
 
30280
CPPFLAGS=$save_CPPFLAGS
 
30281
 
 
30282
 
 
30283
 
 
30284
 
 
30285
 
 
30286
# Check whether --with-rsvg was given.
 
30287
if test "${with_rsvg+set}" = set; then
 
30288
  withval=$with_rsvg;
 
30289
else
 
30290
  with_rsvg=yes
 
30291
fi
 
30292
 
 
30293
 
 
30294
if test "x$with_rsvg" != "xyes"; then
 
30295
  use_rsvg="No (disabled)"
 
30296
else
 
30297
 
 
30298
pkg_failed=no
 
30299
{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
 
30300
$as_echo_n "checking for RSVG... " >&6; }
 
30301
 
 
30302
if test -n "$RSVG_CFLAGS"; then
 
30303
    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
 
30304
 elif test -n "$PKG_CONFIG"; then
 
30305
    if test -n "$PKG_CONFIG" && \
 
30306
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\"") >&5
 
30307
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5
 
30308
  ac_status=$?
 
30309
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30310
  (exit $ac_status); }; then
 
30311
  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0" 2>/dev/null`
 
30312
else
 
30313
  pkg_failed=yes
 
30314
fi
 
30315
 else
 
30316
    pkg_failed=untried
 
30317
fi
 
30318
if test -n "$RSVG_LIBS"; then
 
30319
    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
 
30320
 elif test -n "$PKG_CONFIG"; then
 
30321
    if test -n "$PKG_CONFIG" && \
 
30322
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\"") >&5
 
30323
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5
 
30324
  ac_status=$?
 
30325
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30326
  (exit $ac_status); }; then
 
30327
  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0" 2>/dev/null`
 
30328
else
 
30329
  pkg_failed=yes
 
30330
fi
 
30331
 else
 
30332
    pkg_failed=untried
 
30333
fi
 
30334
 
 
30335
 
 
30336
 
 
30337
if test $pkg_failed = yes; then
 
30338
 
 
30339
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
30340
        _pkg_short_errors_supported=yes
 
30341
else
 
30342
        _pkg_short_errors_supported=no
 
30343
fi
 
30344
        if test $_pkg_short_errors_supported = yes; then
 
30345
                RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0" 2>&1`
 
30346
        else
 
30347
                RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0" 2>&1`
 
30348
        fi
 
30349
        # Put the nasty error message in config.log where it belongs
 
30350
        echo "$RSVG_PKG_ERRORS" >&5
 
30351
 
 
30352
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
30353
$as_echo "no" >&6; }
 
30354
 
 
30355
    use_rsvg="No (rsvg library not available)"
 
30356
 
 
30357
elif test $pkg_failed = untried; then
 
30358
 
 
30359
    use_rsvg="No (rsvg library not available)"
 
30360
 
 
30361
else
 
30362
        RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
 
30363
        RSVG_LIBS=$pkg_cv_RSVG_LIBS
 
30364
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
30365
$as_echo "yes" >&6; }
 
30366
 
 
30367
    use_rsvg="Yes"
 
30368
 
 
30369
cat >>confdefs.h <<_ACEOF
 
30370
#define HAVE_RSVG 1
 
30371
_ACEOF
 
30372
 
 
30373
 
 
30374
 
 
30375
 
 
30376
fi
 
30377
fi
 
30378
 if test "x$use_rsvg" = "xYes"; then
 
30379
  WITH_RSVG_TRUE=
 
30380
  WITH_RSVG_FALSE='#'
 
30381
else
 
30382
  WITH_RSVG_TRUE='#'
 
30383
  WITH_RSVG_FALSE=
 
30384
fi
 
30385
 
 
30386
 
 
30387
 
 
30388
 
 
30389
# Check whether --with-ghostscript was given.
 
30390
if test "${with_ghostscript+set}" = set; then
 
30391
  withval=$with_ghostscript;
 
30392
else
 
30393
  with_ghostscript=yes
 
30394
fi
 
30395
 
 
30396
 
 
30397
if test "x$with_ghostscript" != "xyes"; then
 
30398
  use_ghostscript="No (disabled)"
 
30399
else
 
30400
  if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
 
30401
  { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
 
30402
$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
 
30403
if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
 
30404
  $as_echo_n "(cached) " >&6
 
30405
fi
 
30406
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
 
30407
$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
 
30408
else
 
30409
  # Is the header compilable?
 
30410
{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
 
30411
$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
 
30412
cat >conftest.$ac_ext <<_ACEOF
 
30413
/* confdefs.h.  */
 
30414
_ACEOF
 
30415
cat confdefs.h >>conftest.$ac_ext
 
30416
cat >>conftest.$ac_ext <<_ACEOF
 
30417
/* end confdefs.h.  */
 
30418
$ac_includes_default
 
30419
#include <ghostscript/iapi.h>
 
30420
_ACEOF
 
30421
rm -f conftest.$ac_objext
 
30422
if { (ac_try="$ac_compile"
 
30423
case "(($ac_try" in
 
30424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30425
  *) ac_try_echo=$ac_try;;
 
30426
esac
 
30427
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30428
$as_echo "$ac_try_echo") >&5
 
30429
  (eval "$ac_compile") 2>conftest.er1
 
30430
  ac_status=$?
 
30431
  grep -v '^ *+' conftest.er1 >conftest.err
 
30432
  rm -f conftest.er1
 
30433
  cat conftest.err >&5
 
30434
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30435
  (exit $ac_status); } && {
 
30436
         test -z "$ac_c_werror_flag" ||
 
30437
         test ! -s conftest.err
 
30438
       } && test -s conftest.$ac_objext; then
 
30439
  ac_header_compiler=yes
 
30440
else
 
30441
  $as_echo "$as_me: failed program was:" >&5
 
30442
sed 's/^/| /' conftest.$ac_ext >&5
 
30443
 
 
30444
        ac_header_compiler=no
 
30445
fi
 
30446
 
 
30447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30448
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
30449
$as_echo "$ac_header_compiler" >&6; }
 
30450
 
 
30451
# Is the header present?
 
30452
{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
 
30453
$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
 
30454
cat >conftest.$ac_ext <<_ACEOF
 
30455
/* confdefs.h.  */
 
30456
_ACEOF
 
30457
cat confdefs.h >>conftest.$ac_ext
 
30458
cat >>conftest.$ac_ext <<_ACEOF
 
30459
/* end confdefs.h.  */
 
30460
#include <ghostscript/iapi.h>
 
30461
_ACEOF
 
30462
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
30463
case "(($ac_try" in
 
30464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30465
  *) ac_try_echo=$ac_try;;
 
30466
esac
 
30467
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30468
$as_echo "$ac_try_echo") >&5
 
30469
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
30470
  ac_status=$?
 
30471
  grep -v '^ *+' conftest.er1 >conftest.err
 
30472
  rm -f conftest.er1
 
30473
  cat conftest.err >&5
 
30474
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30475
  (exit $ac_status); } >/dev/null && {
 
30476
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
30477
         test ! -s conftest.err
 
30478
       }; then
 
30479
  ac_header_preproc=yes
 
30480
else
 
30481
  $as_echo "$as_me: failed program was:" >&5
 
30482
sed 's/^/| /' conftest.$ac_ext >&5
 
30483
 
 
30484
  ac_header_preproc=no
 
30485
fi
 
30486
 
 
30487
rm -f conftest.err conftest.$ac_ext
 
30488
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
30489
$as_echo "$ac_header_preproc" >&6; }
 
30490
 
 
30491
# So?  What about this header?
 
30492
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
30493
  yes:no: )
 
30494
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
30495
$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
30496
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
 
30497
$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
 
30498
    ac_header_preproc=yes
 
30499
    ;;
 
30500
  no:yes:* )
 
30501
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
 
30502
$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
 
30503
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h:     check for missing prerequisite headers?" >&5
 
30504
$as_echo "$as_me: WARNING: ghostscript/iapi.h:     check for missing prerequisite headers?" >&2;}
 
30505
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
 
30506
$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
 
30507
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h:     section \"Present But Cannot Be Compiled\"" >&5
 
30508
$as_echo "$as_me: WARNING: ghostscript/iapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
30509
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
 
30510
$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
 
30511
    { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
 
30512
$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
 
30513
    ( cat <<\_ASBOX
 
30514
## --------------------------------------- ##
 
30515
## Report this to http://www.graphviz.org/ ##
 
30516
## --------------------------------------- ##
 
30517
_ASBOX
 
30518
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
30519
    ;;
 
30520
esac
 
30521
{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
 
30522
$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
 
30523
if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
 
30524
  $as_echo_n "(cached) " >&6
 
30525
else
 
30526
  ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
 
30527
fi
 
30528
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
 
30529
$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
 
30530
 
 
30531
fi
 
30532
if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
 
30533
  GS_CFLAGS=""
 
30534
else
 
30535
  use_ghostscript="No (missing headers)"
 
30536
fi
 
30537
 
 
30538
 
 
30539
  if test "x$use_ghostscript" = "x"; then
 
30540
    { $as_echo "$as_me:$LINENO: checking for main in -lgs" >&5
 
30541
$as_echo_n "checking for main in -lgs... " >&6; }
 
30542
if test "${ac_cv_lib_gs_main+set}" = set; then
 
30543
  $as_echo_n "(cached) " >&6
 
30544
else
 
30545
  ac_check_lib_save_LIBS=$LIBS
 
30546
LIBS="-lgs  $LIBS"
 
30547
cat >conftest.$ac_ext <<_ACEOF
 
30548
/* confdefs.h.  */
 
30549
_ACEOF
 
30550
cat confdefs.h >>conftest.$ac_ext
 
30551
cat >>conftest.$ac_ext <<_ACEOF
 
30552
/* end confdefs.h.  */
 
30553
 
 
30554
 
 
30555
int
 
30556
main ()
 
30557
{
 
30558
return main ();
 
30559
  ;
 
30560
  return 0;
 
30561
}
 
30562
_ACEOF
 
30563
rm -f conftest.$ac_objext conftest$ac_exeext
 
30564
if { (ac_try="$ac_link"
 
30565
case "(($ac_try" in
 
30566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30567
  *) ac_try_echo=$ac_try;;
 
30568
esac
 
30569
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30570
$as_echo "$ac_try_echo") >&5
 
30571
  (eval "$ac_link") 2>conftest.er1
 
30572
  ac_status=$?
 
30573
  grep -v '^ *+' conftest.er1 >conftest.err
 
30574
  rm -f conftest.er1
 
30575
  cat conftest.err >&5
 
30576
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30577
  (exit $ac_status); } && {
 
30578
         test -z "$ac_c_werror_flag" ||
 
30579
         test ! -s conftest.err
 
30580
       } && test -s conftest$ac_exeext && {
 
30581
         test "$cross_compiling" = yes ||
 
30582
         $as_test_x conftest$ac_exeext
 
30583
       }; then
 
30584
  ac_cv_lib_gs_main=yes
 
30585
else
 
30586
  $as_echo "$as_me: failed program was:" >&5
 
30587
sed 's/^/| /' conftest.$ac_ext >&5
 
30588
 
 
30589
        ac_cv_lib_gs_main=no
 
30590
fi
 
30591
 
 
30592
rm -rf conftest.dSYM
 
30593
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30594
      conftest$ac_exeext conftest.$ac_ext
 
30595
LIBS=$ac_check_lib_save_LIBS
 
30596
fi
 
30597
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_main" >&5
 
30598
$as_echo "$ac_cv_lib_gs_main" >&6; }
 
30599
if test "x$ac_cv_lib_gs_main" = x""yes; then
 
30600
  GS_LIBS="-lgs"
 
30601
else
 
30602
  use_ghostscript="No (missing lib)"
 
30603
fi
 
30604
 
 
30605
    if test "x$use_ghostscript" = "x"; then
 
30606
      use_ghostscript="Yes"
 
30607
 
 
30608
cat >>confdefs.h <<_ACEOF
 
30609
#define HAVE_GS 1
 
30610
_ACEOF
 
30611
 
 
30612
 
 
30613
 
 
30614
    fi
 
30615
  fi
 
30616
fi
 
30617
 if test "x$use_ghostscript" = "xYes"; then
 
30618
  WITH_GS_TRUE=
 
30619
  WITH_GS_FALSE='#'
 
30620
else
 
30621
  WITH_GS_TRUE='#'
 
30622
  WITH_GS_FALSE=
 
30623
fi
 
30624
 
 
30625
 
 
30626
 
 
30627
 
 
30628
# Check whether --with-visio was given.
 
30629
if test "${with_visio+set}" = set; then
 
30630
  withval=$with_visio;
 
30631
else
 
30632
  with_visio=no
 
30633
fi
 
30634
 
 
30635
 
 
30636
if test "x$with_visio" != "xyes"; then
 
30637
  use_visio="No (disabled by default - experimental)"
 
30638
else
 
30639
#  AC_CHECK_HEADER(visio/visio.h, VISIO_CFLAGS="",use_visio="No (missing headers)")
 
30640
#  if test "x$use_visio" = "x"; then
 
30641
#    AC_CHECK_LIB(visio, main, VISIO_LIBS="-lgs", use_visio="No (missing lib)")
 
30642
#    if test "x$use_visio" = "x"; then
 
30643
      use_visio="Yes"
 
30644
 
 
30645
cat >>confdefs.h <<_ACEOF
 
30646
#define HAVE_VISIO 1
 
30647
_ACEOF
 
30648
 
 
30649
 
 
30650
 
 
30651
#    fi
 
30652
#  fi
 
30653
fi
 
30654
 if test "x$use_visio" = "xYes"; then
 
30655
  WITH_VISIO_TRUE=
 
30656
  WITH_VISIO_FALSE='#'
 
30657
else
 
30658
  WITH_VISIO_TRUE='#'
 
30659
  WITH_VISIO_FALSE=
 
30660
fi
 
30661
 
 
30662
 
 
30663
 
 
30664
 
 
30665
# Check whether --with-pangocairo was given.
 
30666
if test "${with_pangocairo+set}" = set; then
 
30667
  withval=$with_pangocairo;
 
30668
else
 
30669
  with_pangocairo=yes
 
30670
fi
 
30671
 
 
30672
 
 
30673
if test "x$with_pangocairo" != "xyes"; then
 
30674
  use_pangocairo="No (disabled)"
 
30675
else
 
30676
  # require at least the version available on centos5 (fc6 has 1.14.10)
 
30677
 
 
30678
pkg_failed=no
 
30679
{ $as_echo "$as_me:$LINENO: checking for PANGOCAIRO" >&5
 
30680
$as_echo_n "checking for PANGOCAIRO... " >&6; }
 
30681
 
 
30682
if test -n "$PANGOCAIRO_CFLAGS"; then
 
30683
    pkg_cv_PANGOCAIRO_CFLAGS="$PANGOCAIRO_CFLAGS"
 
30684
 elif test -n "$PKG_CONFIG"; then
 
30685
    if test -n "$PKG_CONFIG" && \
 
30686
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.14.9\"") >&5
 
30687
  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.14.9") 2>&5
 
30688
  ac_status=$?
 
30689
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30690
  (exit $ac_status); }; then
 
30691
  pkg_cv_PANGOCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.14.9" 2>/dev/null`
 
30692
else
 
30693
  pkg_failed=yes
 
30694
fi
 
30695
 else
 
30696
    pkg_failed=untried
 
30697
fi
 
30698
if test -n "$PANGOCAIRO_LIBS"; then
 
30699
    pkg_cv_PANGOCAIRO_LIBS="$PANGOCAIRO_LIBS"
 
30700
 elif test -n "$PKG_CONFIG"; then
 
30701
    if test -n "$PKG_CONFIG" && \
 
30702
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.14.9\"") >&5
 
30703
  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.14.9") 2>&5
 
30704
  ac_status=$?
 
30705
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30706
  (exit $ac_status); }; then
 
30707
  pkg_cv_PANGOCAIRO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.14.9" 2>/dev/null`
 
30708
else
 
30709
  pkg_failed=yes
 
30710
fi
 
30711
 else
 
30712
    pkg_failed=untried
 
30713
fi
 
30714
 
 
30715
 
 
30716
 
 
30717
if test $pkg_failed = yes; then
 
30718
 
 
30719
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
30720
        _pkg_short_errors_supported=yes
 
30721
else
 
30722
        _pkg_short_errors_supported=no
 
30723
fi
 
30724
        if test $_pkg_short_errors_supported = yes; then
 
30725
                PANGOCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.14.9" 2>&1`
 
30726
        else
 
30727
                PANGOCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.14.9" 2>&1`
 
30728
        fi
 
30729
        # Put the nasty error message in config.log where it belongs
 
30730
        echo "$PANGOCAIRO_PKG_ERRORS" >&5
 
30731
 
 
30732
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
30733
$as_echo "no" >&6; }
 
30734
 
 
30735
    use_pangocairo="No (pangocairo library not available)"
 
30736
 
 
30737
elif test $pkg_failed = untried; then
 
30738
 
 
30739
    use_pangocairo="No (pangocairo library not available)"
 
30740
 
 
30741
else
 
30742
        PANGOCAIRO_CFLAGS=$pkg_cv_PANGOCAIRO_CFLAGS
 
30743
        PANGOCAIRO_LIBS=$pkg_cv_PANGOCAIRO_LIBS
 
30744
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
30745
$as_echo "yes" >&6; }
 
30746
 
 
30747
    use_pangocairo="Yes"
 
30748
 
 
30749
cat >>confdefs.h <<_ACEOF
 
30750
#define HAVE_PANGOCAIRO 1
 
30751
_ACEOF
 
30752
 
 
30753
 
 
30754
 
 
30755
 
 
30756
fi
 
30757
fi
 
30758
 if test "x$use_pangocairo" = "xYes"; then
 
30759
  WITH_PANGOCAIRO_TRUE=
 
30760
  WITH_PANGOCAIRO_FALSE='#'
 
30761
else
 
30762
  WITH_PANGOCAIRO_TRUE='#'
 
30763
  WITH_PANGOCAIRO_FALSE=
 
30764
fi
 
30765
 
 
30766
 
 
30767
# see if pango uses a fontconfig/freetype2 backend
 
30768
if test "x$use_pangocairo" = "xYes"; then
 
30769
    save_LIBS=$LIBS
 
30770
    LIBS="$LIBS $PANGOCAIRO_LIBS"
 
30771
 
 
30772
 
 
30773
for ac_func in pango_fc_font_lock_face pango_fc_font_unlock_face
 
30774
do
 
30775
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
30776
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
30777
$as_echo_n "checking for $ac_func... " >&6; }
 
30778
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
30779
  $as_echo_n "(cached) " >&6
 
30780
else
 
30781
  cat >conftest.$ac_ext <<_ACEOF
 
30782
/* confdefs.h.  */
 
30783
_ACEOF
 
30784
cat confdefs.h >>conftest.$ac_ext
 
30785
cat >>conftest.$ac_ext <<_ACEOF
 
30786
/* end confdefs.h.  */
 
30787
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
30788
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
30789
#define $ac_func innocuous_$ac_func
 
30790
 
 
30791
/* System header to define __stub macros and hopefully few prototypes,
 
30792
    which can conflict with char $ac_func (); below.
 
30793
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
30794
    <limits.h> exists even on freestanding compilers.  */
 
30795
 
 
30796
#ifdef __STDC__
 
30797
# include <limits.h>
 
30798
#else
 
30799
# include <assert.h>
 
30800
#endif
 
30801
 
 
30802
#undef $ac_func
 
30803
 
 
30804
/* Override any GCC internal prototype to avoid an error.
 
30805
   Use char because int might match the return type of a GCC
 
30806
   builtin and then its argument prototype would still apply.  */
 
30807
#ifdef __cplusplus
 
30808
extern "C"
 
30809
#endif
 
30810
char $ac_func ();
 
30811
/* The GNU C library defines this for functions which it implements
 
30812
    to always fail with ENOSYS.  Some functions are actually named
 
30813
    something starting with __ and the normal name is an alias.  */
 
30814
#if defined __stub_$ac_func || defined __stub___$ac_func
 
30815
choke me
 
30816
#endif
 
30817
 
 
30818
int
 
30819
main ()
 
30820
{
 
30821
return $ac_func ();
 
30822
  ;
 
30823
  return 0;
 
30824
}
 
30825
_ACEOF
 
30826
rm -f conftest.$ac_objext conftest$ac_exeext
 
30827
if { (ac_try="$ac_link"
 
30828
case "(($ac_try" in
 
30829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30830
  *) ac_try_echo=$ac_try;;
 
30831
esac
 
30832
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30833
$as_echo "$ac_try_echo") >&5
 
30834
  (eval "$ac_link") 2>conftest.er1
 
30835
  ac_status=$?
 
30836
  grep -v '^ *+' conftest.er1 >conftest.err
 
30837
  rm -f conftest.er1
 
30838
  cat conftest.err >&5
 
30839
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30840
  (exit $ac_status); } && {
 
30841
         test -z "$ac_c_werror_flag" ||
 
30842
         test ! -s conftest.err
 
30843
       } && test -s conftest$ac_exeext && {
 
30844
         test "$cross_compiling" = yes ||
 
30845
         $as_test_x conftest$ac_exeext
 
30846
       }; then
 
30847
  eval "$as_ac_var=yes"
 
30848
else
 
30849
  $as_echo "$as_me: failed program was:" >&5
 
30850
sed 's/^/| /' conftest.$ac_ext >&5
 
30851
 
 
30852
        eval "$as_ac_var=no"
 
30853
fi
 
30854
 
 
30855
rm -rf conftest.dSYM
 
30856
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30857
      conftest$ac_exeext conftest.$ac_ext
 
30858
fi
 
30859
ac_res=`eval 'as_val=${'$as_ac_var'}
 
30860
                 $as_echo "$as_val"'`
 
30861
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
30862
$as_echo "$ac_res" >&6; }
 
30863
as_val=`eval 'as_val=${'$as_ac_var'}
 
30864
                 $as_echo "$as_val"'`
 
30865
   if test "x$as_val" = x""yes; then
 
30866
  cat >>confdefs.h <<_ACEOF
 
30867
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30868
_ACEOF
 
30869
 
 
30870
fi
 
30871
done
 
30872
 
 
30873
    LIBS=$save_LIBS
 
30874
fi
 
30875
 
 
30876
 
 
30877
 
 
30878
# Check whether --with-lasi was given.
 
30879
if test "${with_lasi+set}" = set; then
 
30880
  withval=$with_lasi;
 
30881
else
 
30882
  with_lasi=yes
 
30883
fi
 
30884
 
 
30885
 
 
30886
if test "x$with_lasi" != "xyes"; then
 
30887
  use_lasi="No (disabled)"
 
30888
else
 
30889
 
 
30890
pkg_failed=no
 
30891
{ $as_echo "$as_me:$LINENO: checking for LASI" >&5
 
30892
$as_echo_n "checking for LASI... " >&6; }
 
30893
 
 
30894
if test -n "$LASI_CFLAGS"; then
 
30895
    pkg_cv_LASI_CFLAGS="$LASI_CFLAGS"
 
30896
 elif test -n "$PKG_CONFIG"; then
 
30897
    if test -n "$PKG_CONFIG" && \
 
30898
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lasi\"") >&5
 
30899
  ($PKG_CONFIG --exists --print-errors "lasi") 2>&5
 
30900
  ac_status=$?
 
30901
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30902
  (exit $ac_status); }; then
 
30903
  pkg_cv_LASI_CFLAGS=`$PKG_CONFIG --cflags "lasi" 2>/dev/null`
 
30904
else
 
30905
  pkg_failed=yes
 
30906
fi
 
30907
 else
 
30908
    pkg_failed=untried
 
30909
fi
 
30910
if test -n "$LASI_LIBS"; then
 
30911
    pkg_cv_LASI_LIBS="$LASI_LIBS"
 
30912
 elif test -n "$PKG_CONFIG"; then
 
30913
    if test -n "$PKG_CONFIG" && \
 
30914
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lasi\"") >&5
 
30915
  ($PKG_CONFIG --exists --print-errors "lasi") 2>&5
 
30916
  ac_status=$?
 
30917
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30918
  (exit $ac_status); }; then
 
30919
  pkg_cv_LASI_LIBS=`$PKG_CONFIG --libs "lasi" 2>/dev/null`
 
30920
else
 
30921
  pkg_failed=yes
 
30922
fi
 
30923
 else
 
30924
    pkg_failed=untried
 
30925
fi
 
30926
 
 
30927
 
 
30928
 
 
30929
if test $pkg_failed = yes; then
 
30930
 
 
30931
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
30932
        _pkg_short_errors_supported=yes
 
30933
else
 
30934
        _pkg_short_errors_supported=no
 
30935
fi
 
30936
        if test $_pkg_short_errors_supported = yes; then
 
30937
                LASI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lasi" 2>&1`
 
30938
        else
 
30939
                LASI_PKG_ERRORS=`$PKG_CONFIG --print-errors "lasi" 2>&1`
 
30940
        fi
 
30941
        # Put the nasty error message in config.log where it belongs
 
30942
        echo "$LASI_PKG_ERRORS" >&5
 
30943
 
 
30944
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
30945
$as_echo "no" >&6; }
 
30946
 
 
30947
    use_lasi="No (lasi library not available)"
 
30948
 
 
30949
elif test $pkg_failed = untried; then
 
30950
 
 
30951
    use_lasi="No (lasi library not available)"
 
30952
 
 
30953
else
 
30954
        LASI_CFLAGS=$pkg_cv_LASI_CFLAGS
 
30955
        LASI_LIBS=$pkg_cv_LASI_LIBS
 
30956
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
30957
$as_echo "yes" >&6; }
 
30958
 
 
30959
    use_lasi="Yes"
 
30960
 
 
30961
cat >>confdefs.h <<_ACEOF
 
30962
#define HAVE_LASI 1
 
30963
_ACEOF
 
30964
 
 
30965
 
 
30966
 
 
30967
 
 
30968
fi
 
30969
fi
 
30970
 if test "x$use_lasi" = "xYes"; then
 
30971
  WITH_LASI_TRUE=
 
30972
  WITH_LASI_FALSE='#'
 
30973
else
 
30974
  WITH_LASI_TRUE='#'
 
30975
  WITH_LASI_FALSE=
 
30976
fi
 
30977
 
 
30978
 
 
30979
 
 
30980
 
 
30981
# Check whether --with-glitz was given.
 
30982
if test "${with_glitz+set}" = set; then
 
30983
  withval=$with_glitz;
 
30984
else
 
30985
  with_glitz=no
 
30986
fi
 
30987
 
 
30988
 
 
30989
if test "x$with_glitz" != "xyes"; then
 
30990
  use_glitz="No (disabled by default - incomplete)"
 
30991
else
 
30992
 
 
30993
pkg_failed=no
 
30994
{ $as_echo "$as_me:$LINENO: checking for GLITZ" >&5
 
30995
$as_echo_n "checking for GLITZ... " >&6; }
 
30996
 
 
30997
if test -n "$GLITZ_CFLAGS"; then
 
30998
    pkg_cv_GLITZ_CFLAGS="$GLITZ_CFLAGS"
 
30999
 elif test -n "$PKG_CONFIG"; then
 
31000
    if test -n "$PKG_CONFIG" && \
 
31001
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz\"") >&5
 
31002
  ($PKG_CONFIG --exists --print-errors "glitz") 2>&5
 
31003
  ac_status=$?
 
31004
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31005
  (exit $ac_status); }; then
 
31006
  pkg_cv_GLITZ_CFLAGS=`$PKG_CONFIG --cflags "glitz" 2>/dev/null`
 
31007
else
 
31008
  pkg_failed=yes
 
31009
fi
 
31010
 else
 
31011
    pkg_failed=untried
 
31012
fi
 
31013
if test -n "$GLITZ_LIBS"; then
 
31014
    pkg_cv_GLITZ_LIBS="$GLITZ_LIBS"
 
31015
 elif test -n "$PKG_CONFIG"; then
 
31016
    if test -n "$PKG_CONFIG" && \
 
31017
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glitz\"") >&5
 
31018
  ($PKG_CONFIG --exists --print-errors "glitz") 2>&5
 
31019
  ac_status=$?
 
31020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31021
  (exit $ac_status); }; then
 
31022
  pkg_cv_GLITZ_LIBS=`$PKG_CONFIG --libs "glitz" 2>/dev/null`
 
31023
else
 
31024
  pkg_failed=yes
 
31025
fi
 
31026
 else
 
31027
    pkg_failed=untried
 
31028
fi
 
31029
 
 
31030
 
 
31031
 
 
31032
if test $pkg_failed = yes; then
 
31033
 
 
31034
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31035
        _pkg_short_errors_supported=yes
 
31036
else
 
31037
        _pkg_short_errors_supported=no
 
31038
fi
 
31039
        if test $_pkg_short_errors_supported = yes; then
 
31040
                GLITZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glitz" 2>&1`
 
31041
        else
 
31042
                GLITZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "glitz" 2>&1`
 
31043
        fi
 
31044
        # Put the nasty error message in config.log where it belongs
 
31045
        echo "$GLITZ_PKG_ERRORS" >&5
 
31046
 
 
31047
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31048
$as_echo "no" >&6; }
 
31049
 
 
31050
    use_glitz="No (glitz library not available)"
 
31051
 
 
31052
elif test $pkg_failed = untried; then
 
31053
 
 
31054
    use_glitz="No (glitz library not available)"
 
31055
 
 
31056
else
 
31057
        GLITZ_CFLAGS=$pkg_cv_GLITZ_CFLAGS
 
31058
        GLITZ_LIBS=$pkg_cv_GLITZ_LIBS
 
31059
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31060
$as_echo "yes" >&6; }
 
31061
 
 
31062
    use_glitz="Yes"
 
31063
 
 
31064
cat >>confdefs.h <<_ACEOF
 
31065
#define HAVE_GLITZ 1
 
31066
_ACEOF
 
31067
 
 
31068
 
 
31069
 
 
31070
 
 
31071
fi
 
31072
fi
 
31073
 if test "x$use_glitz" = "xYes"; then
 
31074
  WITH_GLITZ_TRUE=
 
31075
  WITH_GLITZ_FALSE='#'
 
31076
else
 
31077
  WITH_GLITZ_TRUE='#'
 
31078
  WITH_GLITZ_FALSE=
 
31079
fi
 
31080
 
 
31081
 
 
31082
 
 
31083
 
 
31084
# Check whether --with-freetype2 was given.
 
31085
if test "${with_freetype2+set}" = set; then
 
31086
  withval=$with_freetype2;
 
31087
else
 
31088
  with_freetype2=yes
 
31089
fi
 
31090
 
 
31091
 
 
31092
if test "x$with_freetype2" != "xyes"; then
 
31093
  use_freetype="No (disabled)"
 
31094
else
 
31095
 
 
31096
pkg_failed=no
 
31097
{ $as_echo "$as_me:$LINENO: checking for FREETYPE2" >&5
 
31098
$as_echo_n "checking for FREETYPE2... " >&6; }
 
31099
 
 
31100
if test -n "$FREETYPE2_CFLAGS"; then
 
31101
    pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
 
31102
 elif test -n "$PKG_CONFIG"; then
 
31103
    if test -n "$PKG_CONFIG" && \
 
31104
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
 
31105
  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
 
31106
  ac_status=$?
 
31107
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31108
  (exit $ac_status); }; then
 
31109
  pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
 
31110
else
 
31111
  pkg_failed=yes
 
31112
fi
 
31113
 else
 
31114
    pkg_failed=untried
 
31115
fi
 
31116
if test -n "$FREETYPE2_LIBS"; then
 
31117
    pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
 
31118
 elif test -n "$PKG_CONFIG"; then
 
31119
    if test -n "$PKG_CONFIG" && \
 
31120
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
 
31121
  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
 
31122
  ac_status=$?
 
31123
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31124
  (exit $ac_status); }; then
 
31125
  pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
 
31126
else
 
31127
  pkg_failed=yes
 
31128
fi
 
31129
 else
 
31130
    pkg_failed=untried
 
31131
fi
 
31132
 
 
31133
 
 
31134
 
 
31135
if test $pkg_failed = yes; then
 
31136
 
 
31137
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31138
        _pkg_short_errors_supported=yes
 
31139
else
 
31140
        _pkg_short_errors_supported=no
 
31141
fi
 
31142
        if test $_pkg_short_errors_supported = yes; then
 
31143
                FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
 
31144
        else
 
31145
                FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
 
31146
        fi
 
31147
        # Put the nasty error message in config.log where it belongs
 
31148
        echo "$FREETYPE2_PKG_ERRORS" >&5
 
31149
 
 
31150
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31151
$as_echo "no" >&6; }
 
31152
 
 
31153
    { $as_echo "$as_me:$LINENO: WARNING: pkg-config did not find a freetype2.pc.  Looking for freetype-config." >&5
 
31154
$as_echo "$as_me: WARNING: pkg-config did not find a freetype2.pc.  Looking for freetype-config." >&2;}
 
31155
 
 
31156
elif test $pkg_failed = untried; then
 
31157
 
 
31158
    { $as_echo "$as_me:$LINENO: WARNING: pkg-config did not find a freetype2.pc.  Looking for freetype-config." >&5
 
31159
$as_echo "$as_me: WARNING: pkg-config did not find a freetype2.pc.  Looking for freetype-config." >&2;}
 
31160
 
 
31161
else
 
31162
        FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
 
31163
        FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
 
31164
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31165
$as_echo "yes" >&6; }
 
31166
 
 
31167
    use_freetype="Yes"
 
31168
 
 
31169
fi
 
31170
fi
 
31171
 
 
31172
# pkgconfig for freetype2 did not exist in redhat[78]
 
31173
if test "x$use_freetype" = "x"; then
 
31174
    if test "x$FREETYPE_DIR" = "xyes"; then
 
31175
        # Extract the first word of "freetype-config", so it can be a program name with args.
 
31176
set dummy freetype-config; ac_word=$2
 
31177
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31178
$as_echo_n "checking for $ac_word... " >&6; }
 
31179
if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
 
31180
  $as_echo_n "(cached) " >&6
 
31181
else
 
31182
  case $FREETYPE_CONFIG in
 
31183
  [\\/]* | ?:[\\/]*)
 
31184
  ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
 
31185
  ;;
 
31186
  *)
 
31187
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31188
for as_dir in $PATH
 
31189
do
 
31190
  IFS=$as_save_IFS
 
31191
  test -z "$as_dir" && as_dir=.
 
31192
  for ac_exec_ext in '' $ac_executable_extensions; do
 
31193
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
31194
    ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
31195
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31196
    break 2
 
31197
  fi
 
31198
done
 
31199
done
 
31200
IFS=$as_save_IFS
 
31201
 
 
31202
  ;;
 
31203
esac
 
31204
fi
 
31205
FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
 
31206
if test -n "$FREETYPE_CONFIG"; then
 
31207
  { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
 
31208
$as_echo "$FREETYPE_CONFIG" >&6; }
 
31209
else
 
31210
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31211
$as_echo "no" >&6; }
 
31212
fi
 
31213
 
 
31214
 
 
31215
    else
 
31216
        # Extract the first word of "freetype-config", so it can be a program name with args.
 
31217
set dummy freetype-config; ac_word=$2
 
31218
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31219
$as_echo_n "checking for $ac_word... " >&6; }
 
31220
if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
 
31221
  $as_echo_n "(cached) " >&6
 
31222
else
 
31223
  case $FREETYPE_CONFIG in
 
31224
  [\\/]* | ?:[\\/]*)
 
31225
  ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
 
31226
  ;;
 
31227
  *)
 
31228
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31229
as_dummy="$FREETYPE_DIR/bin:$PATH"
 
31230
for as_dir in $as_dummy
 
31231
do
 
31232
  IFS=$as_save_IFS
 
31233
  test -z "$as_dir" && as_dir=.
 
31234
  for ac_exec_ext in '' $ac_executable_extensions; do
 
31235
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
31236
    ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
31237
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31238
    break 2
 
31239
  fi
 
31240
done
 
31241
done
 
31242
IFS=$as_save_IFS
 
31243
 
 
31244
  ;;
 
31245
esac
 
31246
fi
 
31247
FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
 
31248
if test -n "$FREETYPE_CONFIG"; then
 
31249
  { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
 
31250
$as_echo "$FREETYPE_CONFIG" >&6; }
 
31251
else
 
31252
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31253
$as_echo "no" >&6; }
 
31254
fi
 
31255
 
 
31256
 
 
31257
    fi
 
31258
 
 
31259
    if test -n "$FREETYPE_CONFIG"; then
 
31260
        if test "x$FREETYPE_DIR" != "xyes"; then
 
31261
            FREETYPE2_CFLAGS="`$FREETYPE_CONFIG --cflags` -I$FREETYPE_DIR/include"
 
31262
        else
 
31263
            FREETYPE2_CFLAGS=`$FREETYPE_CONFIG --cflags`
 
31264
        fi
 
31265
        FREETYPE2_LIBS=`$FREETYPE_CONFIG --libs`
 
31266
        use_freetype="Yes"
 
31267
    else
 
31268
        { $as_echo "$as_me:$LINENO: WARNING: freetype library not available" >&5
 
31269
$as_echo "$as_me: WARNING: freetype library not available" >&2;}
 
31270
        use_freetype="No (missing freetype-config)"
 
31271
    fi
 
31272
fi
 
31273
 
 
31274
if test "x$use_freetype" = "xYes"; then
 
31275
 
 
31276
cat >>confdefs.h <<_ACEOF
 
31277
#define HAVE_FREETYPE2 1
 
31278
_ACEOF
 
31279
 
 
31280
 
 
31281
 
 
31282
fi
 
31283
 if test "x$ue_freetype" = "xYes"; then
 
31284
  WITH_FREETYPE2_TRUE=
 
31285
  WITH_FREETYPE2_FALSE='#'
 
31286
else
 
31287
  WITH_FREETYPE2_TRUE='#'
 
31288
  WITH_FREETYPE2_FALSE=
 
31289
fi
 
31290
 
 
31291
 
 
31292
 
 
31293
 
 
31294
# Check whether --with-fontconfig was given.
 
31295
if test "${with_fontconfig+set}" = set; then
 
31296
  withval=$with_fontconfig;
 
31297
else
 
31298
  with_fontconfig=yes
 
31299
fi
 
31300
 
 
31301
 
 
31302
if test "x$with_fontconfig" != "xyes"; then
 
31303
  use_fontconfig="No (disabled)"
 
31304
else
 
31305
 
 
31306
pkg_failed=no
 
31307
{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
 
31308
$as_echo_n "checking for FONTCONFIG... " >&6; }
 
31309
 
 
31310
if test -n "$FONTCONFIG_CFLAGS"; then
 
31311
    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
 
31312
 elif test -n "$PKG_CONFIG"; then
 
31313
    if test -n "$PKG_CONFIG" && \
 
31314
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig\"") >&5
 
31315
  ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
 
31316
  ac_status=$?
 
31317
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31318
  (exit $ac_status); }; then
 
31319
  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
 
31320
else
 
31321
  pkg_failed=yes
 
31322
fi
 
31323
 else
 
31324
    pkg_failed=untried
 
31325
fi
 
31326
if test -n "$FONTCONFIG_LIBS"; then
 
31327
    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
 
31328
 elif test -n "$PKG_CONFIG"; then
 
31329
    if test -n "$PKG_CONFIG" && \
 
31330
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig\"") >&5
 
31331
  ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
 
31332
  ac_status=$?
 
31333
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31334
  (exit $ac_status); }; then
 
31335
  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
 
31336
else
 
31337
  pkg_failed=yes
 
31338
fi
 
31339
 else
 
31340
    pkg_failed=untried
 
31341
fi
 
31342
 
 
31343
 
 
31344
 
 
31345
if test $pkg_failed = yes; then
 
31346
 
 
31347
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31348
        _pkg_short_errors_supported=yes
 
31349
else
 
31350
        _pkg_short_errors_supported=no
 
31351
fi
 
31352
        if test $_pkg_short_errors_supported = yes; then
 
31353
                FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig" 2>&1`
 
31354
        else
 
31355
                FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig" 2>&1`
 
31356
        fi
 
31357
        # Put the nasty error message in config.log where it belongs
 
31358
        echo "$FONTCONFIG_PKG_ERRORS" >&5
 
31359
 
 
31360
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31361
$as_echo "no" >&6; }
 
31362
 
 
31363
    { $as_echo "$as_me:$LINENO: WARNING: pkg-config did not find a fontconfig.pc.  Looking for fontconfig-config." >&5
 
31364
$as_echo "$as_me: WARNING: pkg-config did not find a fontconfig.pc.  Looking for fontconfig-config." >&2;}
 
31365
 
 
31366
elif test $pkg_failed = untried; then
 
31367
 
 
31368
    { $as_echo "$as_me:$LINENO: WARNING: pkg-config did not find a fontconfig.pc.  Looking for fontconfig-config." >&5
 
31369
$as_echo "$as_me: WARNING: pkg-config did not find a fontconfig.pc.  Looking for fontconfig-config." >&2;}
 
31370
 
 
31371
else
 
31372
        FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
 
31373
        FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
 
31374
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31375
$as_echo "yes" >&6; }
 
31376
 
 
31377
    use_fontconfig="Yes"
 
31378
 
 
31379
fi
 
31380
fi
 
31381
 
 
31382
# just in case pkgconfig for fontconfig does not exist
 
31383
if test "x$use_fontconfig" = "x"; then
 
31384
    if test "x$FONTCONFIG_DIR" = "xyes"; then
 
31385
        # Extract the first word of "fontconfig-config", so it can be a program name with args.
 
31386
set dummy fontconfig-config; ac_word=$2
 
31387
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31388
$as_echo_n "checking for $ac_word... " >&6; }
 
31389
if test "${ac_cv_path_FONTCONFIG_CONFIG+set}" = set; then
 
31390
  $as_echo_n "(cached) " >&6
 
31391
else
 
31392
  case $FONTCONFIG_CONFIG in
 
31393
  [\\/]* | ?:[\\/]*)
 
31394
  ac_cv_path_FONTCONFIG_CONFIG="$FONTCONFIG_CONFIG" # Let the user override the test with a path.
 
31395
  ;;
 
31396
  *)
 
31397
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31398
for as_dir in $PATH
 
31399
do
 
31400
  IFS=$as_save_IFS
 
31401
  test -z "$as_dir" && as_dir=.
 
31402
  for ac_exec_ext in '' $ac_executable_extensions; do
 
31403
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
31404
    ac_cv_path_FONTCONFIG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
31405
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31406
    break 2
 
31407
  fi
 
31408
done
 
31409
done
 
31410
IFS=$as_save_IFS
 
31411
 
 
31412
  ;;
 
31413
esac
 
31414
fi
 
31415
FONTCONFIG_CONFIG=$ac_cv_path_FONTCONFIG_CONFIG
 
31416
if test -n "$FONTCONFIG_CONFIG"; then
 
31417
  { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CONFIG" >&5
 
31418
$as_echo "$FONTCONFIG_CONFIG" >&6; }
 
31419
else
 
31420
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31421
$as_echo "no" >&6; }
 
31422
fi
 
31423
 
 
31424
 
 
31425
    else
 
31426
        # Extract the first word of "fontconfig-config", so it can be a program name with args.
 
31427
set dummy fontconfig-config; ac_word=$2
 
31428
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31429
$as_echo_n "checking for $ac_word... " >&6; }
 
31430
if test "${ac_cv_path_FONTCONFIG_CONFIG+set}" = set; then
 
31431
  $as_echo_n "(cached) " >&6
 
31432
else
 
31433
  case $FONTCONFIG_CONFIG in
 
31434
  [\\/]* | ?:[\\/]*)
 
31435
  ac_cv_path_FONTCONFIG_CONFIG="$FONTCONFIG_CONFIG" # Let the user override the test with a path.
 
31436
  ;;
 
31437
  *)
 
31438
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31439
as_dummy="$FONTCONFIG_DIR/bin:$PATH"
 
31440
for as_dir in $as_dummy
 
31441
do
 
31442
  IFS=$as_save_IFS
 
31443
  test -z "$as_dir" && as_dir=.
 
31444
  for ac_exec_ext in '' $ac_executable_extensions; do
 
31445
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
31446
    ac_cv_path_FONTCONFIG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
31447
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31448
    break 2
 
31449
  fi
 
31450
done
 
31451
done
 
31452
IFS=$as_save_IFS
 
31453
 
 
31454
  ;;
 
31455
esac
 
31456
fi
 
31457
FONTCONFIG_CONFIG=$ac_cv_path_FONTCONFIG_CONFIG
 
31458
if test -n "$FONTCONFIG_CONFIG"; then
 
31459
  { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CONFIG" >&5
 
31460
$as_echo "$FONTCONFIG_CONFIG" >&6; }
 
31461
else
 
31462
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31463
$as_echo "no" >&6; }
 
31464
fi
 
31465
 
 
31466
 
 
31467
    fi
 
31468
 
 
31469
    if test -n "$FONTCONFIG_CONFIG"; then
 
31470
        if test "x$FONTCONFIG_DIR" != "xyes"; then
 
31471
            FONTCONFIG_CFLAGS="`$FONTCONFIG_CONFIG --cflags` -I$FONTCONFIG_DIR/include"
 
31472
        else
 
31473
            FONTCONFIG_CFLAGS=`$FONTCONFIG_CONFIG --cflags`
 
31474
        fi
 
31475
        FONTCONFIG_LIBS=`$FONTCONFIG_CONFIG --libs`
 
31476
        use_fontconfig="Yes"
 
31477
    else
 
31478
        use_fontconfig="No (missing fontconfig-config)"
 
31479
        { $as_echo "$as_me:$LINENO: WARNING: fontconfig library not available" >&5
 
31480
$as_echo "$as_me: WARNING: fontconfig library not available" >&2;}
 
31481
    fi
 
31482
fi
 
31483
 
 
31484
if test "x$use_fontconfig" = "xYes"; then
 
31485
 
 
31486
cat >>confdefs.h <<_ACEOF
 
31487
#define HAVE_FONTCONFIG 1
 
31488
_ACEOF
 
31489
 
 
31490
 
 
31491
 
 
31492
fi
 
31493
 if test "x$use_fontconfig" = "xYes"; then
 
31494
  WITH_FONTCONFIG_TRUE=
 
31495
  WITH_FONTCONFIG_FALSE='#'
 
31496
else
 
31497
  WITH_FONTCONFIG_TRUE='#'
 
31498
  WITH_FONTCONFIG_FALSE=
 
31499
fi
 
31500
 
 
31501
 
 
31502
 
 
31503
 
 
31504
# Check whether --with-gdk-pixbuf was given.
 
31505
if test "${with_gdk_pixbuf+set}" = set; then
 
31506
  withval=$with_gdk_pixbuf;
 
31507
else
 
31508
  with_gdk_pixbuf=yes
 
31509
fi
 
31510
 
 
31511
 
 
31512
if test "x$with_gdk_pixbuf" != "xyes"; then
 
31513
  use_gdk_pixbuf="No (disabled)"
 
31514
else
 
31515
 
 
31516
pkg_failed=no
 
31517
{ $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF" >&5
 
31518
$as_echo_n "checking for GDK_PIXBUF... " >&6; }
 
31519
 
 
31520
if test -n "$GDK_PIXBUF_CFLAGS"; then
 
31521
    pkg_cv_GDK_PIXBUF_CFLAGS="$GDK_PIXBUF_CFLAGS"
 
31522
 elif test -n "$PKG_CONFIG"; then
 
31523
    if test -n "$PKG_CONFIG" && \
 
31524
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\"") >&5
 
31525
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
 
31526
  ac_status=$?
 
31527
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31528
  (exit $ac_status); }; then
 
31529
  pkg_cv_GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0" 2>/dev/null`
 
31530
else
 
31531
  pkg_failed=yes
 
31532
fi
 
31533
 else
 
31534
    pkg_failed=untried
 
31535
fi
 
31536
if test -n "$GDK_PIXBUF_LIBS"; then
 
31537
    pkg_cv_GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS"
 
31538
 elif test -n "$PKG_CONFIG"; then
 
31539
    if test -n "$PKG_CONFIG" && \
 
31540
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\"") >&5
 
31541
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
 
31542
  ac_status=$?
 
31543
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31544
  (exit $ac_status); }; then
 
31545
  pkg_cv_GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0" 2>/dev/null`
 
31546
else
 
31547
  pkg_failed=yes
 
31548
fi
 
31549
 else
 
31550
    pkg_failed=untried
 
31551
fi
 
31552
 
 
31553
 
 
31554
 
 
31555
if test $pkg_failed = yes; then
 
31556
 
 
31557
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31558
        _pkg_short_errors_supported=yes
 
31559
else
 
31560
        _pkg_short_errors_supported=no
 
31561
fi
 
31562
        if test $_pkg_short_errors_supported = yes; then
 
31563
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-pixbuf-2.0" 2>&1`
 
31564
        else
 
31565
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-pixbuf-2.0" 2>&1`
 
31566
        fi
 
31567
        # Put the nasty error message in config.log where it belongs
 
31568
        echo "$GDK_PIXBUF_PKG_ERRORS" >&5
 
31569
 
 
31570
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31571
$as_echo "no" >&6; }
 
31572
 
 
31573
    use_gdk_pixbuf="No (gdk_pixbuf library not available)"
 
31574
 
 
31575
elif test $pkg_failed = untried; then
 
31576
 
 
31577
    use_gdk_pixbuf="No (gdk_pixbuf library not available)"
 
31578
 
 
31579
else
 
31580
        GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
 
31581
        GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
 
31582
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31583
$as_echo "yes" >&6; }
 
31584
 
 
31585
    use_gdk_pixbuf="Yes"
 
31586
 
 
31587
cat >>confdefs.h <<_ACEOF
 
31588
#define HAVE_GDK_PIXBUF 1
 
31589
_ACEOF
 
31590
 
 
31591
 
 
31592
 
 
31593
 
 
31594
fi
 
31595
fi
 
31596
 if test "x$use_gdk_pixbuf" = "xYes"; then
 
31597
  WITH_GDK_PIXBUF_TRUE=
 
31598
  WITH_GDK_PIXBUF_FALSE='#'
 
31599
else
 
31600
  WITH_GDK_PIXBUF_TRUE='#'
 
31601
  WITH_GDK_PIXBUF_FALSE=
 
31602
fi
 
31603
 
 
31604
 
 
31605
 
 
31606
 
 
31607
# Check whether --with-gtk was given.
 
31608
if test "${with_gtk+set}" = set; then
 
31609
  withval=$with_gtk;
 
31610
else
 
31611
  with_gtk=yes
 
31612
fi
 
31613
 
 
31614
 
 
31615
if test "x$with_gtk" != "xyes"; then
 
31616
  use_gtk="No (disabled)"
 
31617
else
 
31618
 
 
31619
pkg_failed=no
 
31620
{ $as_echo "$as_me:$LINENO: checking for GTK" >&5
 
31621
$as_echo_n "checking for GTK... " >&6; }
 
31622
 
 
31623
if test -n "$GTK_CFLAGS"; then
 
31624
    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 
31625
 elif test -n "$PKG_CONFIG"; then
 
31626
    if test -n "$PKG_CONFIG" && \
 
31627
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.7.0\"") >&5
 
31628
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.7.0") 2>&5
 
31629
  ac_status=$?
 
31630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31631
  (exit $ac_status); }; then
 
31632
  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.7.0" 2>/dev/null`
 
31633
else
 
31634
  pkg_failed=yes
 
31635
fi
 
31636
 else
 
31637
    pkg_failed=untried
 
31638
fi
 
31639
if test -n "$GTK_LIBS"; then
 
31640
    pkg_cv_GTK_LIBS="$GTK_LIBS"
 
31641
 elif test -n "$PKG_CONFIG"; then
 
31642
    if test -n "$PKG_CONFIG" && \
 
31643
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.7.0\"") >&5
 
31644
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.7.0") 2>&5
 
31645
  ac_status=$?
 
31646
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31647
  (exit $ac_status); }; then
 
31648
  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.7.0" 2>/dev/null`
 
31649
else
 
31650
  pkg_failed=yes
 
31651
fi
 
31652
 else
 
31653
    pkg_failed=untried
 
31654
fi
 
31655
 
 
31656
 
 
31657
 
 
31658
if test $pkg_failed = yes; then
 
31659
 
 
31660
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31661
        _pkg_short_errors_supported=yes
 
31662
else
 
31663
        _pkg_short_errors_supported=no
 
31664
fi
 
31665
        if test $_pkg_short_errors_supported = yes; then
 
31666
                GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.7.0" 2>&1`
 
31667
        else
 
31668
                GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.7.0" 2>&1`
 
31669
        fi
 
31670
        # Put the nasty error message in config.log where it belongs
 
31671
        echo "$GTK_PKG_ERRORS" >&5
 
31672
 
 
31673
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31674
$as_echo "no" >&6; }
 
31675
 
 
31676
    use_gtk="No (gtk library not available)"
 
31677
 
 
31678
elif test $pkg_failed = untried; then
 
31679
 
 
31680
    use_gtk="No (gtk library not available)"
 
31681
 
 
31682
else
 
31683
        GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 
31684
        GTK_LIBS=$pkg_cv_GTK_LIBS
 
31685
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31686
$as_echo "yes" >&6; }
 
31687
 
 
31688
    use_gtk="Yes"
 
31689
 
 
31690
cat >>confdefs.h <<_ACEOF
 
31691
#define HAVE_GTK 1
 
31692
_ACEOF
 
31693
 
 
31694
 
 
31695
 
 
31696
 
 
31697
fi
 
31698
fi
 
31699
 if test "x$use_gtk" = "xYes"; then
 
31700
  WITH_GTK_TRUE=
 
31701
  WITH_GTK_FALSE='#'
 
31702
else
 
31703
  WITH_GTK_TRUE='#'
 
31704
  WITH_GTK_FALSE=
 
31705
fi
 
31706
 
 
31707
 
 
31708
 
 
31709
 
 
31710
# Check whether --with-gtkgl was given.
 
31711
if test "${with_gtkgl+set}" = set; then
 
31712
  withval=$with_gtkgl;
 
31713
else
 
31714
  with_gtkgl=yes
 
31715
fi
 
31716
 
 
31717
 
 
31718
if test "x$with_gtkgl" != "xyes"; then
 
31719
  use_gtkgl="No (disabled)"
 
31720
else
 
31721
 
 
31722
pkg_failed=no
 
31723
{ $as_echo "$as_me:$LINENO: checking for GTKGL" >&5
 
31724
$as_echo_n "checking for GTKGL... " >&6; }
 
31725
 
 
31726
if test -n "$GTKGL_CFLAGS"; then
 
31727
    pkg_cv_GTKGL_CFLAGS="$GTKGL_CFLAGS"
 
31728
 elif test -n "$PKG_CONFIG"; then
 
31729
    if test -n "$PKG_CONFIG" && \
 
31730
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkgl-2.0\"") >&5
 
31731
  ($PKG_CONFIG --exists --print-errors "gtkgl-2.0") 2>&5
 
31732
  ac_status=$?
 
31733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31734
  (exit $ac_status); }; then
 
31735
  pkg_cv_GTKGL_CFLAGS=`$PKG_CONFIG --cflags "gtkgl-2.0" 2>/dev/null`
 
31736
else
 
31737
  pkg_failed=yes
 
31738
fi
 
31739
 else
 
31740
    pkg_failed=untried
 
31741
fi
 
31742
if test -n "$GTKGL_LIBS"; then
 
31743
    pkg_cv_GTKGL_LIBS="$GTKGL_LIBS"
 
31744
 elif test -n "$PKG_CONFIG"; then
 
31745
    if test -n "$PKG_CONFIG" && \
 
31746
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkgl-2.0\"") >&5
 
31747
  ($PKG_CONFIG --exists --print-errors "gtkgl-2.0") 2>&5
 
31748
  ac_status=$?
 
31749
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31750
  (exit $ac_status); }; then
 
31751
  pkg_cv_GTKGL_LIBS=`$PKG_CONFIG --libs "gtkgl-2.0" 2>/dev/null`
 
31752
else
 
31753
  pkg_failed=yes
 
31754
fi
 
31755
 else
 
31756
    pkg_failed=untried
 
31757
fi
 
31758
 
 
31759
 
 
31760
 
 
31761
if test $pkg_failed = yes; then
 
31762
 
 
31763
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31764
        _pkg_short_errors_supported=yes
 
31765
else
 
31766
        _pkg_short_errors_supported=no
 
31767
fi
 
31768
        if test $_pkg_short_errors_supported = yes; then
 
31769
                GTKGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkgl-2.0" 2>&1`
 
31770
        else
 
31771
                GTKGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkgl-2.0" 2>&1`
 
31772
        fi
 
31773
        # Put the nasty error message in config.log where it belongs
 
31774
        echo "$GTKGL_PKG_ERRORS" >&5
 
31775
 
 
31776
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31777
$as_echo "no" >&6; }
 
31778
 
 
31779
    use_gtkgl="No (gtkgl library not available)"
 
31780
 
 
31781
elif test $pkg_failed = untried; then
 
31782
 
 
31783
    use_gtkgl="No (gtkgl library not available)"
 
31784
 
 
31785
else
 
31786
        GTKGL_CFLAGS=$pkg_cv_GTKGL_CFLAGS
 
31787
        GTKGL_LIBS=$pkg_cv_GTKGL_LIBS
 
31788
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31789
$as_echo "yes" >&6; }
 
31790
 
 
31791
    use_gtkgl="Yes"
 
31792
 
 
31793
cat >>confdefs.h <<_ACEOF
 
31794
#define HAVE_GTKGL 1
 
31795
_ACEOF
 
31796
 
 
31797
 
 
31798
 
 
31799
 
 
31800
fi
 
31801
fi
 
31802
 if test "x$use_gtkgl" = "xYes"; then
 
31803
  WITH_GTKGL_TRUE=
 
31804
  WITH_GTKGL_FALSE='#'
 
31805
else
 
31806
  WITH_GTKGL_TRUE='#'
 
31807
  WITH_GTKGL_FALSE=
 
31808
fi
 
31809
 
 
31810
 
 
31811
 
 
31812
 
 
31813
# Check whether --with-gtkglext was given.
 
31814
if test "${with_gtkglext+set}" = set; then
 
31815
  withval=$with_gtkglext;
 
31816
else
 
31817
  with_gtkglext=yes
 
31818
fi
 
31819
 
 
31820
 
 
31821
if test "x$with_gtkglext" != "xyes"; then
 
31822
  use_gtkglext="No (disabled)"
 
31823
else
 
31824
 
 
31825
pkg_failed=no
 
31826
{ $as_echo "$as_me:$LINENO: checking for GTKGLEXT" >&5
 
31827
$as_echo_n "checking for GTKGLEXT... " >&6; }
 
31828
 
 
31829
if test -n "$GTKGLEXT_CFLAGS"; then
 
31830
    pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS"
 
31831
 elif test -n "$PKG_CONFIG"; then
 
31832
    if test -n "$PKG_CONFIG" && \
 
31833
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0\"") >&5
 
31834
  ($PKG_CONFIG --exists --print-errors "gtkglext-1.0") 2>&5
 
31835
  ac_status=$?
 
31836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31837
  (exit $ac_status); }; then
 
31838
  pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0" 2>/dev/null`
 
31839
else
 
31840
  pkg_failed=yes
 
31841
fi
 
31842
 else
 
31843
    pkg_failed=untried
 
31844
fi
 
31845
if test -n "$GTKGLEXT_LIBS"; then
 
31846
    pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS"
 
31847
 elif test -n "$PKG_CONFIG"; then
 
31848
    if test -n "$PKG_CONFIG" && \
 
31849
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0\"") >&5
 
31850
  ($PKG_CONFIG --exists --print-errors "gtkglext-1.0") 2>&5
 
31851
  ac_status=$?
 
31852
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31853
  (exit $ac_status); }; then
 
31854
  pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0" 2>/dev/null`
 
31855
else
 
31856
  pkg_failed=yes
 
31857
fi
 
31858
 else
 
31859
    pkg_failed=untried
 
31860
fi
 
31861
 
 
31862
 
 
31863
 
 
31864
if test $pkg_failed = yes; then
 
31865
 
 
31866
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31867
        _pkg_short_errors_supported=yes
 
31868
else
 
31869
        _pkg_short_errors_supported=no
 
31870
fi
 
31871
        if test $_pkg_short_errors_supported = yes; then
 
31872
                GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkglext-1.0" 2>&1`
 
31873
        else
 
31874
                GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkglext-1.0" 2>&1`
 
31875
        fi
 
31876
        # Put the nasty error message in config.log where it belongs
 
31877
        echo "$GTKGLEXT_PKG_ERRORS" >&5
 
31878
 
 
31879
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31880
$as_echo "no" >&6; }
 
31881
 
 
31882
    use_gtkglext="No (gtkglext library not available)"
 
31883
 
 
31884
elif test $pkg_failed = untried; then
 
31885
 
 
31886
    use_gtkglext="No (gtkglext library not available)"
 
31887
 
 
31888
else
 
31889
        GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS
 
31890
        GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS
 
31891
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31892
$as_echo "yes" >&6; }
 
31893
 
 
31894
    use_gtkglext="Yes"
 
31895
 
 
31896
cat >>confdefs.h <<_ACEOF
 
31897
#define HAVE_GTKGLEXT 1
 
31898
_ACEOF
 
31899
 
 
31900
 
 
31901
 
 
31902
 
 
31903
fi
 
31904
fi
 
31905
 if test "x$use_gtkglext" = "xYes"; then
 
31906
  WITH_GTKGLEXT_TRUE=
 
31907
  WITH_GTKGLEXT_FALSE='#'
 
31908
else
 
31909
  WITH_GTKGLEXT_TRUE='#'
 
31910
  WITH_GTKGLEXT_FALSE=
 
31911
fi
 
31912
 
 
31913
 
 
31914
 
 
31915
 
 
31916
# Check whether --with-gts was given.
 
31917
if test "${with_gts+set}" = set; then
 
31918
  withval=$with_gts;
 
31919
else
 
31920
  with_gts=yes
 
31921
fi
 
31922
 
 
31923
 
 
31924
if test "x$with_gts" != "xyes"; then
 
31925
  use_gts="No (disabled)"
 
31926
else
 
31927
 
 
31928
pkg_failed=no
 
31929
{ $as_echo "$as_me:$LINENO: checking for GTS" >&5
 
31930
$as_echo_n "checking for GTS... " >&6; }
 
31931
 
 
31932
if test -n "$GTS_CFLAGS"; then
 
31933
    pkg_cv_GTS_CFLAGS="$GTS_CFLAGS"
 
31934
 elif test -n "$PKG_CONFIG"; then
 
31935
    if test -n "$PKG_CONFIG" && \
 
31936
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gts\"") >&5
 
31937
  ($PKG_CONFIG --exists --print-errors "gts") 2>&5
 
31938
  ac_status=$?
 
31939
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31940
  (exit $ac_status); }; then
 
31941
  pkg_cv_GTS_CFLAGS=`$PKG_CONFIG --cflags "gts" 2>/dev/null`
 
31942
else
 
31943
  pkg_failed=yes
 
31944
fi
 
31945
 else
 
31946
    pkg_failed=untried
 
31947
fi
 
31948
if test -n "$GTS_LIBS"; then
 
31949
    pkg_cv_GTS_LIBS="$GTS_LIBS"
 
31950
 elif test -n "$PKG_CONFIG"; then
 
31951
    if test -n "$PKG_CONFIG" && \
 
31952
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gts\"") >&5
 
31953
  ($PKG_CONFIG --exists --print-errors "gts") 2>&5
 
31954
  ac_status=$?
 
31955
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31956
  (exit $ac_status); }; then
 
31957
  pkg_cv_GTS_LIBS=`$PKG_CONFIG --libs "gts" 2>/dev/null`
 
31958
else
 
31959
  pkg_failed=yes
 
31960
fi
 
31961
 else
 
31962
    pkg_failed=untried
 
31963
fi
 
31964
 
 
31965
 
 
31966
 
 
31967
if test $pkg_failed = yes; then
 
31968
 
 
31969
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
31970
        _pkg_short_errors_supported=yes
 
31971
else
 
31972
        _pkg_short_errors_supported=no
 
31973
fi
 
31974
        if test $_pkg_short_errors_supported = yes; then
 
31975
                GTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gts" 2>&1`
 
31976
        else
 
31977
                GTS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gts" 2>&1`
 
31978
        fi
 
31979
        # Put the nasty error message in config.log where it belongs
 
31980
        echo "$GTS_PKG_ERRORS" >&5
 
31981
 
 
31982
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
31983
$as_echo "no" >&6; }
 
31984
 
 
31985
    use_gts="No (gts library not available)"
 
31986
 
 
31987
elif test $pkg_failed = untried; then
 
31988
 
 
31989
    use_gts="No (gts library not available)"
 
31990
 
 
31991
else
 
31992
        GTS_CFLAGS=$pkg_cv_GTS_CFLAGS
 
31993
        GTS_LIBS=$pkg_cv_GTS_LIBS
 
31994
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31995
$as_echo "yes" >&6; }
 
31996
 
 
31997
    use_gts="Yes"
 
31998
 
 
31999
cat >>confdefs.h <<_ACEOF
 
32000
#define HAVE_GTS 1
 
32001
_ACEOF
 
32002
 
 
32003
 
 
32004
 
 
32005
 
 
32006
fi
 
32007
fi
 
32008
 if test "x$use_gts" = "xYes"; then
 
32009
  WITH_GTS_TRUE=
 
32010
  WITH_GTS_FALSE='#'
 
32011
else
 
32012
  WITH_GTS_TRUE='#'
 
32013
  WITH_GTS_FALSE=
 
32014
fi
 
32015
 
 
32016
 
 
32017
 
 
32018
 
 
32019
# Check whether --with-glade was given.
 
32020
if test "${with_glade+set}" = set; then
 
32021
  withval=$with_glade;
 
32022
else
 
32023
  with_glade=yes
 
32024
fi
 
32025
 
 
32026
 
 
32027
if test "x$with_glade" != "xyes"; then
 
32028
  use_glade="No (disabled)"
 
32029
else
 
32030
 
 
32031
pkg_failed=no
 
32032
{ $as_echo "$as_me:$LINENO: checking for GLADE" >&5
 
32033
$as_echo_n "checking for GLADE... " >&6; }
 
32034
 
 
32035
if test -n "$GLADE_CFLAGS"; then
 
32036
    pkg_cv_GLADE_CFLAGS="$GLADE_CFLAGS"
 
32037
 elif test -n "$PKG_CONFIG"; then
 
32038
    if test -n "$PKG_CONFIG" && \
 
32039
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\"") >&5
 
32040
  ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
 
32041
  ac_status=$?
 
32042
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32043
  (exit $ac_status); }; then
 
32044
  pkg_cv_GLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0" 2>/dev/null`
 
32045
else
 
32046
  pkg_failed=yes
 
32047
fi
 
32048
 else
 
32049
    pkg_failed=untried
 
32050
fi
 
32051
if test -n "$GLADE_LIBS"; then
 
32052
    pkg_cv_GLADE_LIBS="$GLADE_LIBS"
 
32053
 elif test -n "$PKG_CONFIG"; then
 
32054
    if test -n "$PKG_CONFIG" && \
 
32055
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\"") >&5
 
32056
  ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
 
32057
  ac_status=$?
 
32058
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32059
  (exit $ac_status); }; then
 
32060
  pkg_cv_GLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0" 2>/dev/null`
 
32061
else
 
32062
  pkg_failed=yes
 
32063
fi
 
32064
 else
 
32065
    pkg_failed=untried
 
32066
fi
 
32067
 
 
32068
 
 
32069
 
 
32070
if test $pkg_failed = yes; then
 
32071
 
 
32072
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
32073
        _pkg_short_errors_supported=yes
 
32074
else
 
32075
        _pkg_short_errors_supported=no
 
32076
fi
 
32077
        if test $_pkg_short_errors_supported = yes; then
 
32078
                GLADE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglade-2.0" 2>&1`
 
32079
        else
 
32080
                GLADE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglade-2.0" 2>&1`
 
32081
        fi
 
32082
        # Put the nasty error message in config.log where it belongs
 
32083
        echo "$GLADE_PKG_ERRORS" >&5
 
32084
 
 
32085
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
32086
$as_echo "no" >&6; }
 
32087
 
 
32088
    use_glade="No (glade library not available)"
 
32089
 
 
32090
elif test $pkg_failed = untried; then
 
32091
 
 
32092
    use_glade="No (glade library not available)"
 
32093
 
 
32094
else
 
32095
        GLADE_CFLAGS=$pkg_cv_GLADE_CFLAGS
 
32096
        GLADE_LIBS=$pkg_cv_GLADE_LIBS
 
32097
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
32098
$as_echo "yes" >&6; }
 
32099
 
 
32100
    use_glade="Yes"
 
32101
 
 
32102
cat >>confdefs.h <<_ACEOF
 
32103
#define HAVE_GLADE 1
 
32104
_ACEOF
 
32105
 
 
32106
 
 
32107
 
 
32108
 
 
32109
fi
 
32110
fi
 
32111
 if test "x$use_glade" = "xYes"; then
 
32112
  WITH_GLADE_TRUE=
 
32113
  WITH_GLADE_FALSE='#'
 
32114
else
 
32115
  WITH_GLADE_TRUE='#'
 
32116
  WITH_GLADE_FALSE=
 
32117
fi
 
32118
 
 
32119
 
 
32120
 
 
32121
 
 
32122
# Check whether --with-ming was given.
 
32123
if test "${with_ming+set}" = set; then
 
32124
  withval=$with_ming;
 
32125
else
 
32126
  with_ming=no
 
32127
fi
 
32128
 
 
32129
 
 
32130
if test "x$with_ming" != "xyes"; then
 
32131
  use_ming="No (disabled by default - incomplete)"
 
32132
else
 
32133
 
 
32134
pkg_failed=no
 
32135
{ $as_echo "$as_me:$LINENO: checking for MING" >&5
 
32136
$as_echo_n "checking for MING... " >&6; }
 
32137
 
 
32138
if test -n "$MING_CFLAGS"; then
 
32139
    pkg_cv_MING_CFLAGS="$MING_CFLAGS"
 
32140
 elif test -n "$PKG_CONFIG"; then
 
32141
    if test -n "$PKG_CONFIG" && \
 
32142
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libming >= 0.4\"") >&5
 
32143
  ($PKG_CONFIG --exists --print-errors "libming >= 0.4") 2>&5
 
32144
  ac_status=$?
 
32145
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32146
  (exit $ac_status); }; then
 
32147
  pkg_cv_MING_CFLAGS=`$PKG_CONFIG --cflags "libming >= 0.4" 2>/dev/null`
 
32148
else
 
32149
  pkg_failed=yes
 
32150
fi
 
32151
 else
 
32152
    pkg_failed=untried
 
32153
fi
 
32154
if test -n "$MING_LIBS"; then
 
32155
    pkg_cv_MING_LIBS="$MING_LIBS"
 
32156
 elif test -n "$PKG_CONFIG"; then
 
32157
    if test -n "$PKG_CONFIG" && \
 
32158
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libming >= 0.4\"") >&5
 
32159
  ($PKG_CONFIG --exists --print-errors "libming >= 0.4") 2>&5
 
32160
  ac_status=$?
 
32161
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32162
  (exit $ac_status); }; then
 
32163
  pkg_cv_MING_LIBS=`$PKG_CONFIG --libs "libming >= 0.4" 2>/dev/null`
 
32164
else
 
32165
  pkg_failed=yes
 
32166
fi
 
32167
 else
 
32168
    pkg_failed=untried
 
32169
fi
 
32170
 
 
32171
 
 
32172
 
 
32173
if test $pkg_failed = yes; then
 
32174
 
 
32175
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
32176
        _pkg_short_errors_supported=yes
 
32177
else
 
32178
        _pkg_short_errors_supported=no
 
32179
fi
 
32180
        if test $_pkg_short_errors_supported = yes; then
 
32181
                MING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libming >= 0.4" 2>&1`
 
32182
        else
 
32183
                MING_PKG_ERRORS=`$PKG_CONFIG --print-errors "libming >= 0.4" 2>&1`
 
32184
        fi
 
32185
        # Put the nasty error message in config.log where it belongs
 
32186
        echo "$MING_PKG_ERRORS" >&5
 
32187
 
 
32188
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
32189
$as_echo "no" >&6; }
 
32190
 
 
32191
    use_ming="No (ming library not available)"
 
32192
 
 
32193
elif test $pkg_failed = untried; then
 
32194
 
 
32195
    use_ming="No (ming library not available)"
 
32196
 
 
32197
else
 
32198
        MING_CFLAGS=$pkg_cv_MING_CFLAGS
 
32199
        MING_LIBS=$pkg_cv_MING_LIBS
 
32200
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
32201
$as_echo "yes" >&6; }
 
32202
 
 
32203
    use_ming="Yes"
 
32204
 
 
32205
cat >>confdefs.h <<_ACEOF
 
32206
#define HAVE_MING 1
 
32207
_ACEOF
 
32208
 
 
32209
 
 
32210
 
 
32211
 
 
32212
fi
 
32213
fi
 
32214
 if test "x$use_ming" = "xYes"; then
 
32215
  WITH_MING_TRUE=
 
32216
  WITH_MING_FALSE='#'
 
32217
else
 
32218
  WITH_MING_TRUE='#'
 
32219
  WITH_MING_FALSE=
 
32220
fi
 
32221
 
 
32222
 
 
32223
 
 
32224
 
 
32225
# Check whether --with-quartz was given.
 
32226
if test "${with_quartz+set}" = set; then
 
32227
  withval=$with_quartz;
 
32228
else
 
32229
  with_quartz=no
 
32230
fi
 
32231
 
 
32232
 
 
32233
if test "x$with_quartz" != "xyes"; then
 
32234
  use_quartz="No (disabled by default - Mac only)"
 
32235
else
 
32236
  if test -d "/System/Library/Frameworks/ApplicationServices.framework"; then
 
32237
    use_quartz="Yes"
 
32238
 
 
32239
cat >>confdefs.h <<_ACEOF
 
32240
#define HAVE_QUARTZ 1
 
32241
_ACEOF
 
32242
 
 
32243
    QUARTZ_CFLAGS=''
 
32244
    QUARTZ_LIBS='-framework ApplicationServices'
 
32245
 
 
32246
 
 
32247
  else
 
32248
    use_quartz="No (missing ApplicationServices.framework)"
 
32249
  fi
 
32250
fi
 
32251
 if test "x$use_quartz" = "xYes"; then
 
32252
  WITH_QUARTZ_TRUE=
 
32253
  WITH_QUARTZ_FALSE='#'
 
32254
else
 
32255
  WITH_QUARTZ_TRUE='#'
 
32256
  WITH_QUARTZ_FALSE=
 
32257
fi
 
32258
 
 
32259
 
 
32260
 
 
32261
 
 
32262
# Check whether --with-platformsdkincludedir was given.
 
32263
if test "${with_platformsdkincludedir+set}" = set; then
 
32264
  withval=$with_platformsdkincludedir; PLATFORMSDKINCLUDE=$withval; PLATFORMSDKINCLUDE_ESCAPED=${PLATFORMSDKINCLUDE//'\\'/\\\\}; PLATFORMSDKINCLUDE_ESCAPED=${PLATFORMSDKINCLUDE_ESCAPED// /\\ }
 
32265
fi
 
32266
 
 
32267
 
 
32268
 
 
32269
# Check whether --with-platformsdklibdir was given.
 
32270
if test "${with_platformsdklibdir+set}" = set; then
 
32271
  withval=$with_platformsdklibdir; PLATFORMSDKLIB=$withval
 
32272
fi
 
32273
 
 
32274
 
 
32275
 
 
32276
 
 
32277
 
 
32278
 
 
32279
 
 
32280
 
 
32281
# Check whether --with-gdiplus was given.
 
32282
if test "${with_gdiplus+set}" = set; then
 
32283
  withval=$with_gdiplus;
 
32284
else
 
32285
  with_gdiplus=no
 
32286
fi
 
32287
 
 
32288
 
 
32289
if test "x$with_gdiplus" != "xyes"; then
 
32290
  use_gdiplus="No (disabled by default - Windows only)"
 
32291
else
 
32292
  if test -f "$PLATFORMSDKINCLUDE\GdiPlus.h" -a -f "$PLATFORMSDKLIB\GdiPlus.lib"; then
 
32293
    use_gdiplus="Yes"
 
32294
 
 
32295
cat >>confdefs.h <<_ACEOF
 
32296
#define HAVE_GDIPLUS 1
 
32297
_ACEOF
 
32298
 
 
32299
    GDIPLUS_HEADS=`cd "$PLATFORMSDKINCLUDE" && echo GdiPlus*.h`
 
32300
    GDIPLUS_CFLAGS=''
 
32301
    GDIPLUS_LIBS=''
 
32302
 
 
32303
 
 
32304
 
 
32305
  else
 
32306
    use_gdiplus="No (missing headers)"
 
32307
    { $as_echo "$as_me:$LINENO: WARNING: --with-gdiplus requires valid --with-platformsdkincludedir and --with-platformsdklibdir." >&5
 
32308
$as_echo "$as_me: WARNING: --with-gdiplus requires valid --with-platformsdkincludedir and --with-platformsdklibdir." >&2;}
 
32309
  fi
 
32310
fi
 
32311
 if test "x$use_gdiplus" = "xYes"; then
 
32312
  WITH_GDIPLUS_TRUE=
 
32313
  WITH_GDIPLUS_FALSE='#'
 
32314
else
 
32315
  WITH_GDIPLUS_TRUE='#'
 
32316
  WITH_GDIPLUS_FALSE=
 
32317
fi
 
32318
 
 
32319
 
 
32320
 
 
32321
 
 
32322
# Check whether --with-libgd was given.
 
32323
if test "${with_libgd+set}" = set; then
 
32324
  withval=$with_libgd;
 
32325
else
 
32326
  with_libgd=yes
 
32327
fi
 
32328
 
 
32329
 
 
32330
 
 
32331
# Check whether --with-mylibgd was given.
 
32332
if test "${with_mylibgd+set}" = set; then
 
32333
  withval=$with_mylibgd;
 
32334
else
 
32335
  with_mylibgd=no
 
32336
fi
 
32337
 
 
32338
 
 
32339
if test "x$with_mylibgd" = "xyes"; then
 
32340
  with_libgd=yes
 
32341
fi
 
32342
 
 
32343
if test "x$with_libgd" != "xyes"; then
 
32344
  use_gd="No (disabled)"
 
32345
else
 
32346
  if test "x$with_libgd" = "xyes"; then
 
32347
    if test "x$with_mylibgd" = "xno"; then
 
32348
      # Extract the first word of "gdlib-config", so it can be a program name with args.
 
32349
set dummy gdlib-config; ac_word=$2
 
32350
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
32351
$as_echo_n "checking for $ac_word... " >&6; }
 
32352
if test "${ac_cv_path_GDLIB_CONFIG+set}" = set; then
 
32353
  $as_echo_n "(cached) " >&6
 
32354
else
 
32355
  case $GDLIB_CONFIG in
 
32356
  [\\/]* | ?:[\\/]*)
 
32357
  ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
 
32358
  ;;
 
32359
  *)
 
32360
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
32361
for as_dir in $PATH
 
32362
do
 
32363
  IFS=$as_save_IFS
 
32364
  test -z "$as_dir" && as_dir=.
 
32365
  for ac_exec_ext in '' $ac_executable_extensions; do
 
32366
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
32367
    ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
32368
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
32369
    break 2
 
32370
  fi
 
32371
done
 
32372
done
 
32373
IFS=$as_save_IFS
 
32374
 
 
32375
  ;;
 
32376
esac
 
32377
fi
 
32378
GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
 
32379
if test -n "$GDLIB_CONFIG"; then
 
32380
  { $as_echo "$as_me:$LINENO: result: $GDLIB_CONFIG" >&5
 
32381
$as_echo "$GDLIB_CONFIG" >&6; }
 
32382
else
 
32383
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
32384
$as_echo "no" >&6; }
 
32385
fi
 
32386
 
 
32387
 
 
32388
      if test -n "$GDLIB_CONFIG"; then
 
32389
        GD_INCLUDES=`$GDLIB_CONFIG --includes`
 
32390
        GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=386 //'`
 
32391
        GD_LIBS=`$GDLIB_CONFIG --libs`
 
32392
        GD_MAJORVERSION=`$GDLIB_CONFIG --majorversion`
 
32393
        GD_MINORVERSION=`$GDLIB_CONFIG --minorversion`
 
32394
        GD_REVISION=`$GDLIB_CONFIG --revision`
 
32395
        for f in `$GDLIB_CONFIG --features` ; do
 
32396
            if test "$f" = "GD_PNG"; then
 
32397
 
 
32398
cat >>confdefs.h <<_ACEOF
 
32399
#define HAVE_GD_PNG 1
 
32400
_ACEOF
 
32401
 
 
32402
            fi
 
32403
            if test "$f" = "GD_JPEG"; then
 
32404
 
 
32405
cat >>confdefs.h <<_ACEOF
 
32406
#define HAVE_GD_JPEG 1
 
32407
_ACEOF
 
32408
 
 
32409
            fi
 
32410
            if test "$f" = "GD_XPM"; then
 
32411
 
 
32412
cat >>confdefs.h <<_ACEOF
 
32413
#define HAVE_GD_XPM 1
 
32414
_ACEOF
 
32415
 
 
32416
            fi
 
32417
            if test "$f" = "GD_FONTCONFIG"; then
 
32418
                HAVE_GD_FONTCONFIG=1
 
32419
 
 
32420
cat >>confdefs.h <<_ACEOF
 
32421
#define HAVE_GD_FONTCONFIG 1
 
32422
_ACEOF
 
32423
 
 
32424
            fi
 
32425
            if test "$f" = "GD_FREETYPE"; then
 
32426
                HAVE_GD_FREETYPE=1
 
32427
 
 
32428
cat >>confdefs.h <<_ACEOF
 
32429
#define HAVE_GD_FREETYPE 1
 
32430
_ACEOF
 
32431
 
 
32432
            fi
 
32433
            if test "$f" = "GD_GIF"; then
 
32434
 
 
32435
cat >>confdefs.h <<_ACEOF
 
32436
#define HAVE_GD_GIF 1
 
32437
_ACEOF
 
32438
 
 
32439
            fi
 
32440
            if test "$f" = "GD_GIFANIM"; then
 
32441
 
 
32442
cat >>confdefs.h <<_ACEOF
 
32443
#define HAVE_GD_GIFANIM 1
 
32444
_ACEOF
 
32445
 
 
32446
            fi
 
32447
            if test "$f" = "GD_OPENPOLYGON"; then
 
32448
 
 
32449
cat >>confdefs.h <<_ACEOF
 
32450
#define HAVE_GD_OPENPOLYGON 1
 
32451
_ACEOF
 
32452
 
 
32453
            fi
 
32454
        done
 
32455
 
 
32456
        if test "x$HAVE_GD_FONTCONFIG" = "x"; then
 
32457
            { $as_echo "$as_me:$LINENO: WARNING: Your libgd was not built with freetype support. This may result in problems displaying fonts." >&5
 
32458
$as_echo "$as_me: WARNING: Your libgd was not built with freetype support. This may result in problems displaying fonts." >&2;}
 
32459
        fi
 
32460
        if test "x$HAVE_GD_FREETYPE" = "x"; then
 
32461
            { $as_echo "$as_me:$LINENO: WARNING: Your libgd was not built with fontconfig support. This may result in problems resolving fonts." >&5
 
32462
$as_echo "$as_me: WARNING: Your libgd was not built with fontconfig support. This may result in problems resolving fonts." >&2;}
 
32463
        fi
 
32464
 
 
32465
        # GD version check >= 2.0.34  else revert to --with-mylibgd
 
32466
        REQ_GD_MAJORVERSION=2
 
32467
        REQ_GD_MINORVERSION=0
 
32468
        REQ_GD_REVISION=34
 
32469
        if test $GD_MAJORVERSION -lt $REQ_GD_MAJORVERSION; then
 
32470
            with_mylibgd=yes
 
32471
        else
 
32472
            if test $GD_MAJORVERSION -eq $REQ_GD_MAJORVERSION; then
 
32473
                if test $GD_MINORVERSION -lt $REQ_GD_MINORVERSION; then
 
32474
                    with_mylibgd=yes
 
32475
                else
 
32476
                    if test $GD_MINORVERSION -eq $REQ_GD_MINORVERSION; then
 
32477
                        if test $GD_REVISION -lt $REQ_GD_REVISION; then
 
32478
                            with_mylibgd=yes
 
32479
                        fi
 
32480
                    fi
 
32481
                fi
 
32482
            fi
 
32483
        fi
 
32484
        if test "x$with_mylibgd" = "xyes"; then
 
32485
            { $as_echo "$as_me:$LINENO: WARNING: GD library version < $REQ_GD_MAJORVERSION.$REQ_GD_MINORVERSION.$REQ_GD_REVISION" >&5
 
32486
$as_echo "$as_me: WARNING: GD library version < $REQ_GD_MAJORVERSION.$REQ_GD_MINORVERSION.$REQ_GD_REVISION" >&2;}
 
32487
        fi
 
32488
      else
 
32489
        with_mylibgd=yes
 
32490
        { $as_echo "$as_me:$LINENO: WARNING: No gdlib-config found." >&5
 
32491
$as_echo "$as_me: WARNING: No gdlib-config found." >&2;}
 
32492
      fi
 
32493
    fi
 
32494
  fi
 
32495
  # prevent explicit use of -I/usr/include as it breaks mingw cross-compiles
 
32496
  if test "x$GD_INCLUDES" = "x-I/usr/include"; then
 
32497
     GD_INCLUDES="";
 
32498
  fi
 
32499
  # prevent explicit use of -L/usr/lib or -L/usr/lib64, unnecessary clutter
 
32500
  if test "x$GD_LDFLAGS" = "x-L/usr/lib"; then
 
32501
     GD_LDFLAGS="";
 
32502
  fi
 
32503
  if test "x$GD_LDFLAGS" = "x-L/usr/lib64"; then
 
32504
     GD_LDFLAGS="";
 
32505
  fi
 
32506
 
 
32507
  if test "x$with_mylibgd" = "xno"; then
 
32508
    if test "x$with_libgd" = "xyes"; then
 
32509
    # see if we can use the external gd lib
 
32510
      save_CPPFLAGS=$CPPFLAGS
 
32511
      save_LDFLAGS=$LDFLAGS
 
32512
 
 
32513
# Check whether --with-gdincludedir was given.
 
32514
if test "${with_gdincludedir+set}" = set; then
 
32515
  withval=$with_gdincludedir; GD_INCLUDES="-I$withval"
 
32516
fi
 
32517
 
 
32518
      CPPFLAGS="$CPPFLAGS $GD_INCLUDES"
 
32519
 
 
32520
# Check whether --with-gdlibdir was given.
 
32521
if test "${with_gdlibdir+set}" = set; then
 
32522
  withval=$with_gdlibdir; GD_LDFLAGS="-L$withval"
 
32523
fi
 
32524
 
 
32525
      LDFLAGS="$LDFLAGS $GD_LDFLAGS"
 
32526
      if test "${ac_cv_header_gd_h+set}" = set; then
 
32527
  { $as_echo "$as_me:$LINENO: checking for gd.h" >&5
 
32528
$as_echo_n "checking for gd.h... " >&6; }
 
32529
if test "${ac_cv_header_gd_h+set}" = set; then
 
32530
  $as_echo_n "(cached) " >&6
 
32531
fi
 
32532
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
 
32533
$as_echo "$ac_cv_header_gd_h" >&6; }
 
32534
else
 
32535
  # Is the header compilable?
 
32536
{ $as_echo "$as_me:$LINENO: checking gd.h usability" >&5
 
32537
$as_echo_n "checking gd.h usability... " >&6; }
 
32538
cat >conftest.$ac_ext <<_ACEOF
 
32539
/* confdefs.h.  */
 
32540
_ACEOF
 
32541
cat confdefs.h >>conftest.$ac_ext
 
32542
cat >>conftest.$ac_ext <<_ACEOF
 
32543
/* end confdefs.h.  */
 
32544
$ac_includes_default
 
32545
#include <gd.h>
 
32546
_ACEOF
 
32547
rm -f conftest.$ac_objext
 
32548
if { (ac_try="$ac_compile"
 
32549
case "(($ac_try" in
 
32550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32551
  *) ac_try_echo=$ac_try;;
 
32552
esac
 
32553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32554
$as_echo "$ac_try_echo") >&5
 
32555
  (eval "$ac_compile") 2>conftest.er1
 
32556
  ac_status=$?
 
32557
  grep -v '^ *+' conftest.er1 >conftest.err
 
32558
  rm -f conftest.er1
 
32559
  cat conftest.err >&5
 
32560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32561
  (exit $ac_status); } && {
 
32562
         test -z "$ac_c_werror_flag" ||
 
32563
         test ! -s conftest.err
 
32564
       } && test -s conftest.$ac_objext; then
 
32565
  ac_header_compiler=yes
 
32566
else
 
32567
  $as_echo "$as_me: failed program was:" >&5
 
32568
sed 's/^/| /' conftest.$ac_ext >&5
 
32569
 
 
32570
        ac_header_compiler=no
 
32571
fi
 
32572
 
 
32573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32574
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32575
$as_echo "$ac_header_compiler" >&6; }
 
32576
 
 
32577
# Is the header present?
 
32578
{ $as_echo "$as_me:$LINENO: checking gd.h presence" >&5
 
32579
$as_echo_n "checking gd.h presence... " >&6; }
 
32580
cat >conftest.$ac_ext <<_ACEOF
 
32581
/* confdefs.h.  */
 
32582
_ACEOF
 
32583
cat confdefs.h >>conftest.$ac_ext
 
32584
cat >>conftest.$ac_ext <<_ACEOF
 
32585
/* end confdefs.h.  */
 
32586
#include <gd.h>
 
32587
_ACEOF
 
32588
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
32589
case "(($ac_try" in
 
32590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32591
  *) ac_try_echo=$ac_try;;
 
32592
esac
 
32593
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32594
$as_echo "$ac_try_echo") >&5
 
32595
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
32596
  ac_status=$?
 
32597
  grep -v '^ *+' conftest.er1 >conftest.err
 
32598
  rm -f conftest.er1
 
32599
  cat conftest.err >&5
 
32600
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32601
  (exit $ac_status); } >/dev/null && {
 
32602
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
32603
         test ! -s conftest.err
 
32604
       }; then
 
32605
  ac_header_preproc=yes
 
32606
else
 
32607
  $as_echo "$as_me: failed program was:" >&5
 
32608
sed 's/^/| /' conftest.$ac_ext >&5
 
32609
 
 
32610
  ac_header_preproc=no
 
32611
fi
 
32612
 
 
32613
rm -f conftest.err conftest.$ac_ext
 
32614
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32615
$as_echo "$ac_header_preproc" >&6; }
 
32616
 
 
32617
# So?  What about this header?
 
32618
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
32619
  yes:no: )
 
32620
    { $as_echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
32621
$as_echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32622
    { $as_echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
 
32623
$as_echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
 
32624
    ac_header_preproc=yes
 
32625
    ;;
 
32626
  no:yes:* )
 
32627
    { $as_echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
 
32628
$as_echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
 
32629
    { $as_echo "$as_me:$LINENO: WARNING: gd.h:     check for missing prerequisite headers?" >&5
 
32630
$as_echo "$as_me: WARNING: gd.h:     check for missing prerequisite headers?" >&2;}
 
32631
    { $as_echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
 
32632
$as_echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
 
32633
    { $as_echo "$as_me:$LINENO: WARNING: gd.h:     section \"Present But Cannot Be Compiled\"" >&5
 
32634
$as_echo "$as_me: WARNING: gd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32635
    { $as_echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
 
32636
$as_echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
 
32637
    { $as_echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
 
32638
$as_echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
 
32639
    ( cat <<\_ASBOX
 
32640
## --------------------------------------- ##
 
32641
## Report this to http://www.graphviz.org/ ##
 
32642
## --------------------------------------- ##
 
32643
_ASBOX
 
32644
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
32645
    ;;
 
32646
esac
 
32647
{ $as_echo "$as_me:$LINENO: checking for gd.h" >&5
 
32648
$as_echo_n "checking for gd.h... " >&6; }
 
32649
if test "${ac_cv_header_gd_h+set}" = set; then
 
32650
  $as_echo_n "(cached) " >&6
 
32651
else
 
32652
  ac_cv_header_gd_h=$ac_header_preproc
 
32653
fi
 
32654
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
 
32655
$as_echo "$ac_cv_header_gd_h" >&6; }
 
32656
 
 
32657
fi
 
32658
if test "x$ac_cv_header_gd_h" = x""yes; then
 
32659
  :
 
32660
else
 
32661
 
 
32662
        { $as_echo "$as_me:$LINENO: WARNING: Optional GD library not available - no gd.h" >&5
 
32663
$as_echo "$as_me: WARNING: Optional GD library not available - no gd.h" >&2;}
 
32664
        use_gd="No (gd headers not found)"
 
32665
 
 
32666
fi
 
32667
 
 
32668
 
 
32669
      if test "x$use_gd" = "x"; then
 
32670
        { $as_echo "$as_me:$LINENO: checking for main in -lgd" >&5
 
32671
$as_echo_n "checking for main in -lgd... " >&6; }
 
32672
if test "${ac_cv_lib_gd_main+set}" = set; then
 
32673
  $as_echo_n "(cached) " >&6
 
32674
else
 
32675
  ac_check_lib_save_LIBS=$LIBS
 
32676
LIBS="-lgd $GD_LIBS $LIBS"
 
32677
cat >conftest.$ac_ext <<_ACEOF
 
32678
/* confdefs.h.  */
 
32679
_ACEOF
 
32680
cat confdefs.h >>conftest.$ac_ext
 
32681
cat >>conftest.$ac_ext <<_ACEOF
 
32682
/* end confdefs.h.  */
 
32683
 
 
32684
 
 
32685
int
 
32686
main ()
 
32687
{
 
32688
return main ();
 
32689
  ;
 
32690
  return 0;
 
32691
}
 
32692
_ACEOF
 
32693
rm -f conftest.$ac_objext conftest$ac_exeext
 
32694
if { (ac_try="$ac_link"
 
32695
case "(($ac_try" in
 
32696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32697
  *) ac_try_echo=$ac_try;;
 
32698
esac
 
32699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32700
$as_echo "$ac_try_echo") >&5
 
32701
  (eval "$ac_link") 2>conftest.er1
 
32702
  ac_status=$?
 
32703
  grep -v '^ *+' conftest.er1 >conftest.err
 
32704
  rm -f conftest.er1
 
32705
  cat conftest.err >&5
 
32706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32707
  (exit $ac_status); } && {
 
32708
         test -z "$ac_c_werror_flag" ||
 
32709
         test ! -s conftest.err
 
32710
       } && test -s conftest$ac_exeext && {
 
32711
         test "$cross_compiling" = yes ||
 
32712
         $as_test_x conftest$ac_exeext
 
32713
       }; then
 
32714
  ac_cv_lib_gd_main=yes
 
32715
else
 
32716
  $as_echo "$as_me: failed program was:" >&5
 
32717
sed 's/^/| /' conftest.$ac_ext >&5
 
32718
 
 
32719
        ac_cv_lib_gd_main=no
 
32720
fi
 
32721
 
 
32722
rm -rf conftest.dSYM
 
32723
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
32724
      conftest$ac_exeext conftest.$ac_ext
 
32725
LIBS=$ac_check_lib_save_LIBS
 
32726
fi
 
32727
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_main" >&5
 
32728
$as_echo "$ac_cv_lib_gd_main" >&6; }
 
32729
if test "x$ac_cv_lib_gd_main" = x""yes; then
 
32730
 
 
32731
          GD_LIBS="$GD_LDFLAGS -lgd $GD_LIBS"
 
32732
 
 
32733
cat >>confdefs.h <<_ACEOF
 
32734
#define HAVE_LIBGD 1
 
32735
_ACEOF
 
32736
 
 
32737
          use_gd="Yes"
 
32738
 
 
32739
else
 
32740
 
 
32741
          { $as_echo "$as_me:$LINENO: WARNING: Optional GD library not available" >&5
 
32742
$as_echo "$as_me: WARNING: Optional GD library not available" >&2;}
 
32743
          use_gd="No (library not found)"
 
32744
 
 
32745
fi
 
32746
 
 
32747
      fi
 
32748
      LDFLAGS=$save_LDFLAGS
 
32749
      CPPFLAGS=$save_CPPFLAGS
 
32750
    fi
 
32751
  else
 
32752
    # using the internal libgd
 
32753
    use_gd="Yes (internal)"
 
32754
    { $as_echo "$as_me:$LINENO: WARNING: Using internal libgd source." >&5
 
32755
$as_echo "$as_me: WARNING: Using internal libgd source." >&2;}
 
32756
 
 
32757
cat >>confdefs.h <<_ACEOF
 
32758
#define HAVE_GD_GIF 1
 
32759
_ACEOF
 
32760
 
 
32761
 
 
32762
cat >>confdefs.h <<_ACEOF
 
32763
#define HAVE_LIBGD 1
 
32764
_ACEOF
 
32765
 
 
32766
    GD_INCLUDES='-I$(top_srcdir)/lib/gd'
 
32767
    GD_LIBS='$(top_builddir)/lib/gd/libgvgd.la'
 
32768
  fi
 
32769
 
 
32770
 
 
32771
fi
 
32772
 if test "x$with_libgd" = "xyes"; then
 
32773
  WITH_LIBGD_TRUE=
 
32774
  WITH_LIBGD_FALSE='#'
 
32775
else
 
32776
  WITH_LIBGD_TRUE='#'
 
32777
  WITH_LIBGD_FALSE=
 
32778
fi
 
32779
 
 
32780
 if test "x$with_mylibgd" = "xyes"; then
 
32781
  WITH_MYLIBGD_TRUE=
 
32782
  WITH_MYLIBGD_FALSE='#'
 
32783
else
 
32784
  WITH_MYLIBGD_TRUE='#'
 
32785
  WITH_MYLIBGD_FALSE=
 
32786
fi
 
32787
 
 
32788
 
 
32789
 
 
32790
if test "x$with_mylibgd" = "xyes"; then
 
32791
  if test "x$use_freetype" = "xYes"; then
 
32792
 
 
32793
cat >>confdefs.h <<_ACEOF
 
32794
#define HAVE_GD_FREETYPE 1
 
32795
_ACEOF
 
32796
 
 
32797
  fi
 
32798
  if test "x$use_fontconfig" = "xYes"; then
 
32799
 
 
32800
cat >>confdefs.h <<_ACEOF
 
32801
#define HAVE_GD_FONTCONFIG 1
 
32802
_ACEOF
 
32803
 
 
32804
  fi
 
32805
fi
 
32806
 
 
32807
 
 
32808
 
 
32809
# Check whether --with-glut was given.
 
32810
if test "${with_glut+set}" = set; then
 
32811
  withval=$with_glut;
 
32812
else
 
32813
  with_glut=yes
 
32814
fi
 
32815
 
 
32816
 
 
32817
if test "x$with_glut" != "xyes"; then
 
32818
  use_glut="No (disabled)"
 
32819
else
 
32820
  save_CPPFLAGS=$CPPFLAGS
 
32821
  save_LDFLAGS=$LDFLAGS
 
32822
 
 
32823
# Check whether --with-glutincludedir was given.
 
32824
if test "${with_glutincludedir+set}" = set; then
 
32825
  withval=$with_glutincludedir; GLUT_CFLAGS="-I$withval"
 
32826
fi
 
32827
 
 
32828
  CPPFLAGS="$CPPFLAGS $GLUT_CFLAGS"
 
32829
 
 
32830
# Check whether --with-glutlibdir was given.
 
32831
if test "${with_glutlibdir+set}" = set; then
 
32832
  withval=$with_glutlibdir; GLUT_LIBS="-L$withval"
 
32833
fi
 
32834
 
 
32835
  LDFLAGS="$LDFLAGS $GLUT_LIBS"
 
32836
 
 
32837
  if test "${ac_cv_header_GL_glut_h+set}" = set; then
 
32838
  { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
 
32839
$as_echo_n "checking for GL/glut.h... " >&6; }
 
32840
if test "${ac_cv_header_GL_glut_h+set}" = set; then
 
32841
  $as_echo_n "(cached) " >&6
 
32842
fi
 
32843
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
 
32844
$as_echo "$ac_cv_header_GL_glut_h" >&6; }
 
32845
else
 
32846
  # Is the header compilable?
 
32847
{ $as_echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
 
32848
$as_echo_n "checking GL/glut.h usability... " >&6; }
 
32849
cat >conftest.$ac_ext <<_ACEOF
 
32850
/* confdefs.h.  */
 
32851
_ACEOF
 
32852
cat confdefs.h >>conftest.$ac_ext
 
32853
cat >>conftest.$ac_ext <<_ACEOF
 
32854
/* end confdefs.h.  */
 
32855
$ac_includes_default
 
32856
#include <GL/glut.h>
 
32857
_ACEOF
 
32858
rm -f conftest.$ac_objext
 
32859
if { (ac_try="$ac_compile"
 
32860
case "(($ac_try" in
 
32861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32862
  *) ac_try_echo=$ac_try;;
 
32863
esac
 
32864
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32865
$as_echo "$ac_try_echo") >&5
 
32866
  (eval "$ac_compile") 2>conftest.er1
 
32867
  ac_status=$?
 
32868
  grep -v '^ *+' conftest.er1 >conftest.err
 
32869
  rm -f conftest.er1
 
32870
  cat conftest.err >&5
 
32871
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32872
  (exit $ac_status); } && {
 
32873
         test -z "$ac_c_werror_flag" ||
 
32874
         test ! -s conftest.err
 
32875
       } && test -s conftest.$ac_objext; then
 
32876
  ac_header_compiler=yes
 
32877
else
 
32878
  $as_echo "$as_me: failed program was:" >&5
 
32879
sed 's/^/| /' conftest.$ac_ext >&5
 
32880
 
 
32881
        ac_header_compiler=no
 
32882
fi
 
32883
 
 
32884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32885
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32886
$as_echo "$ac_header_compiler" >&6; }
 
32887
 
 
32888
# Is the header present?
 
32889
{ $as_echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
 
32890
$as_echo_n "checking GL/glut.h presence... " >&6; }
 
32891
cat >conftest.$ac_ext <<_ACEOF
 
32892
/* confdefs.h.  */
 
32893
_ACEOF
 
32894
cat confdefs.h >>conftest.$ac_ext
 
32895
cat >>conftest.$ac_ext <<_ACEOF
 
32896
/* end confdefs.h.  */
 
32897
#include <GL/glut.h>
 
32898
_ACEOF
 
32899
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
32900
case "(($ac_try" in
 
32901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32902
  *) ac_try_echo=$ac_try;;
 
32903
esac
 
32904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32905
$as_echo "$ac_try_echo") >&5
 
32906
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
32907
  ac_status=$?
 
32908
  grep -v '^ *+' conftest.er1 >conftest.err
 
32909
  rm -f conftest.er1
 
32910
  cat conftest.err >&5
 
32911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32912
  (exit $ac_status); } >/dev/null && {
 
32913
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
32914
         test ! -s conftest.err
 
32915
       }; then
 
32916
  ac_header_preproc=yes
 
32917
else
 
32918
  $as_echo "$as_me: failed program was:" >&5
 
32919
sed 's/^/| /' conftest.$ac_ext >&5
 
32920
 
 
32921
  ac_header_preproc=no
 
32922
fi
 
32923
 
 
32924
rm -f conftest.err conftest.$ac_ext
 
32925
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32926
$as_echo "$ac_header_preproc" >&6; }
 
32927
 
 
32928
# So?  What about this header?
 
32929
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
32930
  yes:no: )
 
32931
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
32932
$as_echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32933
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
 
32934
$as_echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
 
32935
    ac_header_preproc=yes
 
32936
    ;;
 
32937
  no:yes:* )
 
32938
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
 
32939
$as_echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
 
32940
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&5
 
32941
$as_echo "$as_me: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&2;}
 
32942
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
 
32943
$as_echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
 
32944
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&5
 
32945
$as_echo "$as_me: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32946
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
 
32947
$as_echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
 
32948
    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
 
32949
$as_echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
 
32950
    ( cat <<\_ASBOX
 
32951
## --------------------------------------- ##
 
32952
## Report this to http://www.graphviz.org/ ##
 
32953
## --------------------------------------- ##
 
32954
_ASBOX
 
32955
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
32956
    ;;
 
32957
esac
 
32958
{ $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
 
32959
$as_echo_n "checking for GL/glut.h... " >&6; }
 
32960
if test "${ac_cv_header_GL_glut_h+set}" = set; then
 
32961
  $as_echo_n "(cached) " >&6
 
32962
else
 
32963
  ac_cv_header_GL_glut_h=$ac_header_preproc
 
32964
fi
 
32965
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
 
32966
$as_echo "$ac_cv_header_GL_glut_h" >&6; }
 
32967
 
 
32968
fi
 
32969
if test "x$ac_cv_header_GL_glut_h" = x""yes; then
 
32970
  { $as_echo "$as_me:$LINENO: checking for main in -lglut" >&5
 
32971
$as_echo_n "checking for main in -lglut... " >&6; }
 
32972
if test "${ac_cv_lib_glut_main+set}" = set; then
 
32973
  $as_echo_n "(cached) " >&6
 
32974
else
 
32975
  ac_check_lib_save_LIBS=$LIBS
 
32976
LIBS="-lglut  $LIBS"
 
32977
cat >conftest.$ac_ext <<_ACEOF
 
32978
/* confdefs.h.  */
 
32979
_ACEOF
 
32980
cat confdefs.h >>conftest.$ac_ext
 
32981
cat >>conftest.$ac_ext <<_ACEOF
 
32982
/* end confdefs.h.  */
 
32983
 
 
32984
 
 
32985
int
 
32986
main ()
 
32987
{
 
32988
return main ();
 
32989
  ;
 
32990
  return 0;
 
32991
}
 
32992
_ACEOF
 
32993
rm -f conftest.$ac_objext conftest$ac_exeext
 
32994
if { (ac_try="$ac_link"
 
32995
case "(($ac_try" in
 
32996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32997
  *) ac_try_echo=$ac_try;;
 
32998
esac
 
32999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33000
$as_echo "$ac_try_echo") >&5
 
33001
  (eval "$ac_link") 2>conftest.er1
 
33002
  ac_status=$?
 
33003
  grep -v '^ *+' conftest.er1 >conftest.err
 
33004
  rm -f conftest.er1
 
33005
  cat conftest.err >&5
 
33006
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33007
  (exit $ac_status); } && {
 
33008
         test -z "$ac_c_werror_flag" ||
 
33009
         test ! -s conftest.err
 
33010
       } && test -s conftest$ac_exeext && {
 
33011
         test "$cross_compiling" = yes ||
 
33012
         $as_test_x conftest$ac_exeext
 
33013
       }; then
 
33014
  ac_cv_lib_glut_main=yes
 
33015
else
 
33016
  $as_echo "$as_me: failed program was:" >&5
 
33017
sed 's/^/| /' conftest.$ac_ext >&5
 
33018
 
 
33019
        ac_cv_lib_glut_main=no
 
33020
fi
 
33021
 
 
33022
rm -rf conftest.dSYM
 
33023
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
33024
      conftest$ac_exeext conftest.$ac_ext
 
33025
LIBS=$ac_check_lib_save_LIBS
 
33026
fi
 
33027
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_main" >&5
 
33028
$as_echo "$ac_cv_lib_glut_main" >&6; }
 
33029
if test "x$ac_cv_lib_glut_main" = x""yes; then
 
33030
  GLUT_LIBS="$GLUT_LIBS -lglut"
 
33031
      use_glut="Yes"
 
33032
 
 
33033
cat >>confdefs.h <<_ACEOF
 
33034
#define HAVE_GLUT 1
 
33035
_ACEOF
 
33036
 
 
33037
else
 
33038
  use_glut="No (missing libglut)"
 
33039
      { $as_echo "$as_me:$LINENO: WARNING: Optional glut library not available" >&5
 
33040
$as_echo "$as_me: WARNING: Optional glut library not available" >&2;}
 
33041
fi
 
33042
 
 
33043
else
 
33044
  use_glut="No (missing GL/glut.h)"
 
33045
    { $as_echo "$as_me:$LINENO: WARNING: Optional glut library not available - no GL/glut.h" >&5
 
33046
$as_echo "$as_me: WARNING: Optional glut library not available - no GL/glut.h" >&2;}
 
33047
fi
 
33048
 
 
33049
 
 
33050
fi
 
33051
 
 
33052
LDFLAGS=$save_LDFLAGS
 
33053
CPPFLAGS=$save_CPPFLAGS
 
33054
 
 
33055
 
 
33056
 
 
33057
 
 
33058
if test "x$with_mylibgd" = "xyes"; then
 
33059
 
 
33060
save_CPPFLAGS=$CPPFLAGS
 
33061
save_LDFLAGS=$LDFLAGS
 
33062
 
 
33063
# Check whether --with-iconvincludedir was given.
 
33064
if test "${with_iconvincludedir+set}" = set; then
 
33065
  withval=$with_iconvincludedir; ICONV_INCLUDES="-I$withval"
 
33066
fi
 
33067
 
 
33068
CPPFLAGS="$CPPFLAGS $ICONV_INCLUDES"
 
33069
 
 
33070
# Check whether --with-iconvlibdir was given.
 
33071
if test "${with_iconvlibdir+set}" = set; then
 
33072
  withval=$with_iconvlibdir; ICONV_LIBS="-L$withval"
 
33073
fi
 
33074
 
 
33075
LDFLAGS="$LDFLAGS $ICONV_LIBS"
 
33076
 
 
33077
# Some systems have iconv in a separate library (e.g. Tru64 UNIX)
 
33078
 
 
33079
      if test "X$prefix" = "XNONE"; then
 
33080
    acl_final_prefix="$ac_default_prefix"
 
33081
  else
 
33082
    acl_final_prefix="$prefix"
 
33083
  fi
 
33084
  if test "X$exec_prefix" = "XNONE"; then
 
33085
    acl_final_exec_prefix='${prefix}'
 
33086
  else
 
33087
    acl_final_exec_prefix="$exec_prefix"
 
33088
  fi
 
33089
  acl_save_prefix="$prefix"
 
33090
  prefix="$acl_final_prefix"
 
33091
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
33092
  prefix="$acl_save_prefix"
 
33093
 
 
33094
 
 
33095
# Check whether --with-gnu-ld was given.
 
33096
if test "${with_gnu_ld+set}" = set; then
 
33097
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
33098
else
 
33099
  with_gnu_ld=no
 
33100
fi
 
33101
 
 
33102
ac_prog=ld
 
33103
if test "$GCC" = yes; then
 
33104
  # Check if gcc -print-prog-name=ld gives a path.
 
33105
  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
33106
$as_echo_n "checking for ld used by GCC... " >&6; }
 
33107
  case $host in
 
33108
  *-*-mingw*)
 
33109
    # gcc leaves a trailing carriage return which upsets mingw
 
33110
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
33111
  *)
 
33112
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
33113
  esac
 
33114
  case $ac_prog in
 
33115
    # Accept absolute paths.
 
33116
    [\\/]* | [A-Za-z]:[\\/]*)
 
33117
      re_direlt='/[^/][^/]*/\.\./'
 
33118
      # Canonicalize the path of ld
 
33119
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
33120
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
33121
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
33122
      done
 
33123
      test -z "$LD" && LD="$ac_prog"
 
33124
      ;;
 
33125
  "")
 
33126
    # If it fails, then pretend we aren't using GCC.
 
33127
    ac_prog=ld
 
33128
    ;;
 
33129
  *)
 
33130
    # If it is relative, then search for the first ld in PATH.
 
33131
    with_gnu_ld=unknown
 
33132
    ;;
 
33133
  esac
 
33134
elif test "$with_gnu_ld" = yes; then
 
33135
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
33136
$as_echo_n "checking for GNU ld... " >&6; }
 
33137
else
 
33138
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
33139
$as_echo_n "checking for non-GNU ld... " >&6; }
 
33140
fi
 
33141
if test "${acl_cv_path_LD+set}" = set; then
 
33142
  $as_echo_n "(cached) " >&6
 
33143
else
 
33144
  if test -z "$LD"; then
 
33145
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
33146
  for ac_dir in $PATH; do
 
33147
    test -z "$ac_dir" && ac_dir=.
 
33148
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
33149
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
33150
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
33151
      # but apparently some GNU ld's only accept -v.
 
33152
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
33153
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
33154
        test "$with_gnu_ld" != no && break
 
33155
      else
 
33156
        test "$with_gnu_ld" != yes && break
 
33157
      fi
 
33158
    fi
 
33159
  done
 
33160
  IFS="$ac_save_ifs"
 
33161
else
 
33162
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
33163
fi
 
33164
fi
 
33165
 
 
33166
LD="$acl_cv_path_LD"
 
33167
if test -n "$LD"; then
 
33168
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
33169
$as_echo "$LD" >&6; }
 
33170
else
 
33171
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
33172
$as_echo "no" >&6; }
 
33173
fi
 
33174
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
33175
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
33176
   { (exit 1); exit 1; }; }
 
33177
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
33178
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
33179
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
33180
  $as_echo_n "(cached) " >&6
 
33181
else
 
33182
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
33183
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
33184
  acl_cv_prog_gnu_ld=yes
 
33185
else
 
33186
  acl_cv_prog_gnu_ld=no
 
33187
fi
 
33188
fi
 
33189
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
33190
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
33191
with_gnu_ld=$acl_cv_prog_gnu_ld
 
33192
 
 
33193
 
 
33194
 
 
33195
                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
33196
$as_echo_n "checking for shared library run path origin... " >&6; }
 
33197
if test "${acl_cv_rpath+set}" = set; then
 
33198
  $as_echo_n "(cached) " >&6
 
33199
else
 
33200
 
 
33201
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
33202
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
33203
    . ./conftest.sh
 
33204
    rm -f ./conftest.sh
 
33205
    acl_cv_rpath=done
 
33206
 
 
33207
fi
 
33208
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
33209
$as_echo "$acl_cv_rpath" >&6; }
 
33210
  wl="$acl_cv_wl"
 
33211
  libext="$acl_cv_libext"
 
33212
  shlibext="$acl_cv_shlibext"
 
33213
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
33214
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
33215
  hardcode_direct="$acl_cv_hardcode_direct"
 
33216
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
33217
  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
 
33218
  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
 
33219
    # Check whether --enable-rpath was given.
 
33220
if test "${enable_rpath+set}" = set; then
 
33221
  enableval=$enable_rpath; :
 
33222
else
 
33223
  enable_rpath=yes
 
33224
fi
 
33225
 
 
33226
 
 
33227
 
 
33228
 
 
33229
 
 
33230
 
 
33231
 
 
33232
 
 
33233
    use_additional=yes
 
33234
 
 
33235
  acl_save_prefix="$prefix"
 
33236
  prefix="$acl_final_prefix"
 
33237
  acl_save_exec_prefix="$exec_prefix"
 
33238
  exec_prefix="$acl_final_exec_prefix"
 
33239
 
 
33240
    eval additional_includedir=\"$includedir\"
 
33241
    eval additional_libdir=\"$libdir\"
 
33242
 
 
33243
  exec_prefix="$acl_save_exec_prefix"
 
33244
  prefix="$acl_save_prefix"
 
33245
 
 
33246
 
 
33247
# Check whether --with-libiconv-prefix was given.
 
33248
if test "${with_libiconv_prefix+set}" = set; then
 
33249
  withval=$with_libiconv_prefix;
 
33250
    if test "X$withval" = "Xno"; then
 
33251
      use_additional=no
 
33252
    else
 
33253
      if test "X$withval" = "X"; then
 
33254
 
 
33255
  acl_save_prefix="$prefix"
 
33256
  prefix="$acl_final_prefix"
 
33257
  acl_save_exec_prefix="$exec_prefix"
 
33258
  exec_prefix="$acl_final_exec_prefix"
 
33259
 
 
33260
          eval additional_includedir=\"$includedir\"
 
33261
          eval additional_libdir=\"$libdir\"
 
33262
 
 
33263
  exec_prefix="$acl_save_exec_prefix"
 
33264
  prefix="$acl_save_prefix"
 
33265
 
 
33266
      else
 
33267
        additional_includedir="$withval/include"
 
33268
        additional_libdir="$withval/lib"
 
33269
      fi
 
33270
    fi
 
33271
 
 
33272
fi
 
33273
 
 
33274
      LIBICONV=
 
33275
  LTLIBICONV=
 
33276
  INCICONV=
 
33277
  rpathdirs=
 
33278
  ltrpathdirs=
 
33279
  names_already_handled=
 
33280
  names_next_round='iconv '
 
33281
  while test -n "$names_next_round"; do
 
33282
    names_this_round="$names_next_round"
 
33283
    names_next_round=
 
33284
    for name in $names_this_round; do
 
33285
      already_handled=
 
33286
      for n in $names_already_handled; do
 
33287
        if test "$n" = "$name"; then
 
33288
          already_handled=yes
 
33289
          break
 
33290
        fi
 
33291
      done
 
33292
      if test -z "$already_handled"; then
 
33293
        names_already_handled="$names_already_handled $name"
 
33294
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
33295
        eval value=\"\$HAVE_LIB$uppername\"
 
33296
        if test -n "$value"; then
 
33297
          if test "$value" = yes; then
 
33298
            eval value=\"\$LIB$uppername\"
 
33299
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
33300
            eval value=\"\$LTLIB$uppername\"
 
33301
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
33302
          else
 
33303
                                    :
 
33304
          fi
 
33305
        else
 
33306
                              found_dir=
 
33307
          found_la=
 
33308
          found_so=
 
33309
          found_a=
 
33310
          if test $use_additional = yes; then
 
33311
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
33312
              found_dir="$additional_libdir"
 
33313
              found_so="$additional_libdir/lib$name.$shlibext"
 
33314
              if test -f "$additional_libdir/lib$name.la"; then
 
33315
                found_la="$additional_libdir/lib$name.la"
 
33316
              fi
 
33317
            else
 
33318
              if test -f "$additional_libdir/lib$name.$libext"; then
 
33319
                found_dir="$additional_libdir"
 
33320
                found_a="$additional_libdir/lib$name.$libext"
 
33321
                if test -f "$additional_libdir/lib$name.la"; then
 
33322
                  found_la="$additional_libdir/lib$name.la"
 
33323
                fi
 
33324
              fi
 
33325
            fi
 
33326
          fi
 
33327
          if test "X$found_dir" = "X"; then
 
33328
            for x in $LDFLAGS $LTLIBICONV; do
 
33329
 
 
33330
  acl_save_prefix="$prefix"
 
33331
  prefix="$acl_final_prefix"
 
33332
  acl_save_exec_prefix="$exec_prefix"
 
33333
  exec_prefix="$acl_final_exec_prefix"
 
33334
  eval x=\"$x\"
 
33335
  exec_prefix="$acl_save_exec_prefix"
 
33336
  prefix="$acl_save_prefix"
 
33337
 
 
33338
              case "$x" in
 
33339
                -L*)
 
33340
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
33341
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
33342
                    found_dir="$dir"
 
33343
                    found_so="$dir/lib$name.$shlibext"
 
33344
                    if test -f "$dir/lib$name.la"; then
 
33345
                      found_la="$dir/lib$name.la"
 
33346
                    fi
 
33347
                  else
 
33348
                    if test -f "$dir/lib$name.$libext"; then
 
33349
                      found_dir="$dir"
 
33350
                      found_a="$dir/lib$name.$libext"
 
33351
                      if test -f "$dir/lib$name.la"; then
 
33352
                        found_la="$dir/lib$name.la"
 
33353
                      fi
 
33354
                    fi
 
33355
                  fi
 
33356
                  ;;
 
33357
              esac
 
33358
              if test "X$found_dir" != "X"; then
 
33359
                break
 
33360
              fi
 
33361
            done
 
33362
          fi
 
33363
          if test "X$found_dir" != "X"; then
 
33364
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
33365
            if test "X$found_so" != "X"; then
 
33366
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
33367
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
33368
              else
 
33369
                                                                                haveit=
 
33370
                for x in $ltrpathdirs; do
 
33371
                  if test "X$x" = "X$found_dir"; then
 
33372
                    haveit=yes
 
33373
                    break
 
33374
                  fi
 
33375
                done
 
33376
                if test -z "$haveit"; then
 
33377
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
33378
                fi
 
33379
                                if test "$hardcode_direct" = yes; then
 
33380
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
33381
                else
 
33382
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
33383
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
33384
                                                            haveit=
 
33385
                    for x in $rpathdirs; do
 
33386
                      if test "X$x" = "X$found_dir"; then
 
33387
                        haveit=yes
 
33388
                        break
 
33389
                      fi
 
33390
                    done
 
33391
                    if test -z "$haveit"; then
 
33392
                      rpathdirs="$rpathdirs $found_dir"
 
33393
                    fi
 
33394
                  else
 
33395
                                                                                haveit=
 
33396
                    for x in $LDFLAGS $LIBICONV; do
 
33397
 
 
33398
  acl_save_prefix="$prefix"
 
33399
  prefix="$acl_final_prefix"
 
33400
  acl_save_exec_prefix="$exec_prefix"
 
33401
  exec_prefix="$acl_final_exec_prefix"
 
33402
  eval x=\"$x\"
 
33403
  exec_prefix="$acl_save_exec_prefix"
 
33404
  prefix="$acl_save_prefix"
 
33405
 
 
33406
                      if test "X$x" = "X-L$found_dir"; then
 
33407
                        haveit=yes
 
33408
                        break
 
33409
                      fi
 
33410
                    done
 
33411
                    if test -z "$haveit"; then
 
33412
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
33413
                    fi
 
33414
                    if test "$hardcode_minus_L" != no; then
 
33415
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
33416
                    else
 
33417
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
33418
                    fi
 
33419
                  fi
 
33420
                fi
 
33421
              fi
 
33422
            else
 
33423
              if test "X$found_a" != "X"; then
 
33424
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
33425
              else
 
33426
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
33427
              fi
 
33428
            fi
 
33429
                        additional_includedir=
 
33430
            case "$found_dir" in
 
33431
              */lib | */lib/)
 
33432
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
33433
                additional_includedir="$basedir/include"
 
33434
                ;;
 
33435
            esac
 
33436
            if test "X$additional_includedir" != "X"; then
 
33437
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
33438
                haveit=
 
33439
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
33440
                  if test -n "$GCC"; then
 
33441
                    case $host_os in
 
33442
                      linux*) haveit=yes;;
 
33443
                    esac
 
33444
                  fi
 
33445
                fi
 
33446
                if test -z "$haveit"; then
 
33447
                  for x in $CPPFLAGS $INCICONV; do
 
33448
 
 
33449
  acl_save_prefix="$prefix"
 
33450
  prefix="$acl_final_prefix"
 
33451
  acl_save_exec_prefix="$exec_prefix"
 
33452
  exec_prefix="$acl_final_exec_prefix"
 
33453
  eval x=\"$x\"
 
33454
  exec_prefix="$acl_save_exec_prefix"
 
33455
  prefix="$acl_save_prefix"
 
33456
 
 
33457
                    if test "X$x" = "X-I$additional_includedir"; then
 
33458
                      haveit=yes
 
33459
                      break
 
33460
                    fi
 
33461
                  done
 
33462
                  if test -z "$haveit"; then
 
33463
                    if test -d "$additional_includedir"; then
 
33464
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
33465
                    fi
 
33466
                  fi
 
33467
                fi
 
33468
              fi
 
33469
            fi
 
33470
                        if test -n "$found_la"; then
 
33471
                                                        save_libdir="$libdir"
 
33472
              case "$found_la" in
 
33473
                */* | *\\*) . "$found_la" ;;
 
33474
                *) . "./$found_la" ;;
 
33475
              esac
 
33476
              libdir="$save_libdir"
 
33477
                            for dep in $dependency_libs; do
 
33478
                case "$dep" in
 
33479
                  -L*)
 
33480
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
33481
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
33482
                      haveit=
 
33483
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
33484
                        if test -n "$GCC"; then
 
33485
                          case $host_os in
 
33486
                            linux*) haveit=yes;;
 
33487
                          esac
 
33488
                        fi
 
33489
                      fi
 
33490
                      if test -z "$haveit"; then
 
33491
                        haveit=
 
33492
                        for x in $LDFLAGS $LIBICONV; do
 
33493
 
 
33494
  acl_save_prefix="$prefix"
 
33495
  prefix="$acl_final_prefix"
 
33496
  acl_save_exec_prefix="$exec_prefix"
 
33497
  exec_prefix="$acl_final_exec_prefix"
 
33498
  eval x=\"$x\"
 
33499
  exec_prefix="$acl_save_exec_prefix"
 
33500
  prefix="$acl_save_prefix"
 
33501
 
 
33502
                          if test "X$x" = "X-L$additional_libdir"; then
 
33503
                            haveit=yes
 
33504
                            break
 
33505
                          fi
 
33506
                        done
 
33507
                        if test -z "$haveit"; then
 
33508
                          if test -d "$additional_libdir"; then
 
33509
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
33510
                          fi
 
33511
                        fi
 
33512
                        haveit=
 
33513
                        for x in $LDFLAGS $LTLIBICONV; do
 
33514
 
 
33515
  acl_save_prefix="$prefix"
 
33516
  prefix="$acl_final_prefix"
 
33517
  acl_save_exec_prefix="$exec_prefix"
 
33518
  exec_prefix="$acl_final_exec_prefix"
 
33519
  eval x=\"$x\"
 
33520
  exec_prefix="$acl_save_exec_prefix"
 
33521
  prefix="$acl_save_prefix"
 
33522
 
 
33523
                          if test "X$x" = "X-L$additional_libdir"; then
 
33524
                            haveit=yes
 
33525
                            break
 
33526
                          fi
 
33527
                        done
 
33528
                        if test -z "$haveit"; then
 
33529
                          if test -d "$additional_libdir"; then
 
33530
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
33531
                          fi
 
33532
                        fi
 
33533
                      fi
 
33534
                    fi
 
33535
                    ;;
 
33536
                  -R*)
 
33537
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
33538
                    if test "$enable_rpath" != no; then
 
33539
                                                                  haveit=
 
33540
                      for x in $rpathdirs; do
 
33541
                        if test "X$x" = "X$dir"; then
 
33542
                          haveit=yes
 
33543
                          break
 
33544
                        fi
 
33545
                      done
 
33546
                      if test -z "$haveit"; then
 
33547
                        rpathdirs="$rpathdirs $dir"
 
33548
                      fi
 
33549
                                                                  haveit=
 
33550
                      for x in $ltrpathdirs; do
 
33551
                        if test "X$x" = "X$dir"; then
 
33552
                          haveit=yes
 
33553
                          break
 
33554
                        fi
 
33555
                      done
 
33556
                      if test -z "$haveit"; then
 
33557
                        ltrpathdirs="$ltrpathdirs $dir"
 
33558
                      fi
 
33559
                    fi
 
33560
                    ;;
 
33561
                  -l*)
 
33562
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
33563
                    ;;
 
33564
                  *.la)
 
33565
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
33566
                    ;;
 
33567
                  *)
 
33568
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
33569
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
33570
                    ;;
 
33571
                esac
 
33572
              done
 
33573
            fi
 
33574
          else
 
33575
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
33576
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
33577
          fi
 
33578
        fi
 
33579
      fi
 
33580
    done
 
33581
  done
 
33582
  if test "X$rpathdirs" != "X"; then
 
33583
    if test -n "$hardcode_libdir_separator"; then
 
33584
                        alldirs=
 
33585
      for found_dir in $rpathdirs; do
 
33586
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
33587
      done
 
33588
            acl_save_libdir="$libdir"
 
33589
      libdir="$alldirs"
 
33590
      eval flag=\"$hardcode_libdir_flag_spec\"
 
33591
      libdir="$acl_save_libdir"
 
33592
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
33593
    else
 
33594
            for found_dir in $rpathdirs; do
 
33595
        acl_save_libdir="$libdir"
 
33596
        libdir="$found_dir"
 
33597
        eval flag=\"$hardcode_libdir_flag_spec\"
 
33598
        libdir="$acl_save_libdir"
 
33599
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
33600
      done
 
33601
    fi
 
33602
  fi
 
33603
  if test "X$ltrpathdirs" != "X"; then
 
33604
            for found_dir in $ltrpathdirs; do
 
33605
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
33606
    done
 
33607
  fi
 
33608
 
 
33609
 
 
33610
 
 
33611
 
 
33612
 
 
33613
 
 
33614
 
 
33615
          am_save_CPPFLAGS="$CPPFLAGS"
 
33616
 
 
33617
  for element in $INCICONV; do
 
33618
    haveit=
 
33619
    for x in $CPPFLAGS; do
 
33620
 
 
33621
  acl_save_prefix="$prefix"
 
33622
  prefix="$acl_final_prefix"
 
33623
  acl_save_exec_prefix="$exec_prefix"
 
33624
  exec_prefix="$acl_final_exec_prefix"
 
33625
  eval x=\"$x\"
 
33626
  exec_prefix="$acl_save_exec_prefix"
 
33627
  prefix="$acl_save_prefix"
 
33628
 
 
33629
      if test "X$x" = "X$element"; then
 
33630
        haveit=yes
 
33631
        break
 
33632
      fi
 
33633
    done
 
33634
    if test -z "$haveit"; then
 
33635
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
33636
    fi
 
33637
  done
 
33638
 
 
33639
 
 
33640
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
 
33641
$as_echo_n "checking for iconv... " >&6; }
 
33642
if test "${am_cv_func_iconv+set}" = set; then
 
33643
  $as_echo_n "(cached) " >&6
 
33644
else
 
33645
 
 
33646
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
33647
    am_cv_lib_iconv=no
 
33648
    cat >conftest.$ac_ext <<_ACEOF
 
33649
/* confdefs.h.  */
 
33650
_ACEOF
 
33651
cat confdefs.h >>conftest.$ac_ext
 
33652
cat >>conftest.$ac_ext <<_ACEOF
 
33653
/* end confdefs.h.  */
 
33654
#include <stdlib.h>
 
33655
#include <iconv.h>
 
33656
int
 
33657
main ()
 
33658
{
 
33659
iconv_t cd = iconv_open("","");
 
33660
       iconv(cd,NULL,NULL,NULL,NULL);
 
33661
       iconv_close(cd);
 
33662
  ;
 
33663
  return 0;
 
33664
}
 
33665
_ACEOF
 
33666
rm -f conftest.$ac_objext conftest$ac_exeext
 
33667
if { (ac_try="$ac_link"
 
33668
case "(($ac_try" in
 
33669
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33670
  *) ac_try_echo=$ac_try;;
 
33671
esac
 
33672
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33673
$as_echo "$ac_try_echo") >&5
 
33674
  (eval "$ac_link") 2>conftest.er1
 
33675
  ac_status=$?
 
33676
  grep -v '^ *+' conftest.er1 >conftest.err
 
33677
  rm -f conftest.er1
 
33678
  cat conftest.err >&5
 
33679
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33680
  (exit $ac_status); } && {
 
33681
         test -z "$ac_c_werror_flag" ||
 
33682
         test ! -s conftest.err
 
33683
       } && test -s conftest$ac_exeext && {
 
33684
         test "$cross_compiling" = yes ||
 
33685
         $as_test_x conftest$ac_exeext
 
33686
       }; then
 
33687
  am_cv_func_iconv=yes
 
33688
else
 
33689
  $as_echo "$as_me: failed program was:" >&5
 
33690
sed 's/^/| /' conftest.$ac_ext >&5
 
33691
 
 
33692
 
 
33693
fi
 
33694
 
 
33695
rm -rf conftest.dSYM
 
33696
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
33697
      conftest$ac_exeext conftest.$ac_ext
 
33698
    if test "$am_cv_func_iconv" != yes; then
 
33699
      am_save_LIBS="$LIBS"
 
33700
      LIBS="$LIBS $LIBICONV"
 
33701
      cat >conftest.$ac_ext <<_ACEOF
 
33702
/* confdefs.h.  */
 
33703
_ACEOF
 
33704
cat confdefs.h >>conftest.$ac_ext
 
33705
cat >>conftest.$ac_ext <<_ACEOF
 
33706
/* end confdefs.h.  */
 
33707
#include <stdlib.h>
 
33708
#include <iconv.h>
 
33709
int
 
33710
main ()
 
33711
{
 
33712
iconv_t cd = iconv_open("","");
 
33713
         iconv(cd,NULL,NULL,NULL,NULL);
 
33714
         iconv_close(cd);
 
33715
  ;
 
33716
  return 0;
 
33717
}
 
33718
_ACEOF
 
33719
rm -f conftest.$ac_objext conftest$ac_exeext
 
33720
if { (ac_try="$ac_link"
 
33721
case "(($ac_try" in
 
33722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33723
  *) ac_try_echo=$ac_try;;
 
33724
esac
 
33725
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33726
$as_echo "$ac_try_echo") >&5
 
33727
  (eval "$ac_link") 2>conftest.er1
 
33728
  ac_status=$?
 
33729
  grep -v '^ *+' conftest.er1 >conftest.err
 
33730
  rm -f conftest.er1
 
33731
  cat conftest.err >&5
 
33732
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33733
  (exit $ac_status); } && {
 
33734
         test -z "$ac_c_werror_flag" ||
 
33735
         test ! -s conftest.err
 
33736
       } && test -s conftest$ac_exeext && {
 
33737
         test "$cross_compiling" = yes ||
 
33738
         $as_test_x conftest$ac_exeext
 
33739
       }; then
 
33740
  am_cv_lib_iconv=yes
 
33741
        am_cv_func_iconv=yes
 
33742
else
 
33743
  $as_echo "$as_me: failed program was:" >&5
 
33744
sed 's/^/| /' conftest.$ac_ext >&5
 
33745
 
 
33746
 
 
33747
fi
 
33748
 
 
33749
rm -rf conftest.dSYM
 
33750
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
33751
      conftest$ac_exeext conftest.$ac_ext
 
33752
      LIBS="$am_save_LIBS"
 
33753
    fi
 
33754
 
 
33755
fi
 
33756
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
33757
$as_echo "$am_cv_func_iconv" >&6; }
 
33758
  if test "$am_cv_func_iconv" = yes; then
 
33759
 
 
33760
cat >>confdefs.h <<\_ACEOF
 
33761
#define HAVE_ICONV 1
 
33762
_ACEOF
 
33763
 
 
33764
  fi
 
33765
  if test "$am_cv_lib_iconv" = yes; then
 
33766
    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
33767
$as_echo_n "checking how to link with libiconv... " >&6; }
 
33768
    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
33769
$as_echo "$LIBICONV" >&6; }
 
33770
  else
 
33771
            CPPFLAGS="$am_save_CPPFLAGS"
 
33772
    LIBICONV=
 
33773
    LTLIBICONV=
 
33774
  fi
 
33775
 
 
33776
 
 
33777
 
 
33778
  if test "$am_cv_func_iconv" = yes; then
 
33779
    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
33780
$as_echo_n "checking for iconv declaration... " >&6; }
 
33781
    if test "${am_cv_proto_iconv+set}" = set; then
 
33782
  $as_echo_n "(cached) " >&6
 
33783
else
 
33784
 
 
33785
      cat >conftest.$ac_ext <<_ACEOF
 
33786
/* confdefs.h.  */
 
33787
_ACEOF
 
33788
cat confdefs.h >>conftest.$ac_ext
 
33789
cat >>conftest.$ac_ext <<_ACEOF
 
33790
/* end confdefs.h.  */
 
33791
 
 
33792
#include <stdlib.h>
 
33793
#include <iconv.h>
 
33794
extern
 
33795
#ifdef __cplusplus
 
33796
"C"
 
33797
#endif
 
33798
#if defined(__STDC__) || defined(__cplusplus)
 
33799
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
33800
#else
 
33801
size_t iconv();
 
33802
#endif
 
33803
 
 
33804
int
 
33805
main ()
 
33806
{
 
33807
 
 
33808
  ;
 
33809
  return 0;
 
33810
}
 
33811
_ACEOF
 
33812
rm -f conftest.$ac_objext
 
33813
if { (ac_try="$ac_compile"
 
33814
case "(($ac_try" in
 
33815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33816
  *) ac_try_echo=$ac_try;;
 
33817
esac
 
33818
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33819
$as_echo "$ac_try_echo") >&5
 
33820
  (eval "$ac_compile") 2>conftest.er1
 
33821
  ac_status=$?
 
33822
  grep -v '^ *+' conftest.er1 >conftest.err
 
33823
  rm -f conftest.er1
 
33824
  cat conftest.err >&5
 
33825
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33826
  (exit $ac_status); } && {
 
33827
         test -z "$ac_c_werror_flag" ||
 
33828
         test ! -s conftest.err
 
33829
       } && test -s conftest.$ac_objext; then
 
33830
  am_cv_proto_iconv_arg1=""
 
33831
else
 
33832
  $as_echo "$as_me: failed program was:" >&5
 
33833
sed 's/^/| /' conftest.$ac_ext >&5
 
33834
 
 
33835
        am_cv_proto_iconv_arg1="const"
 
33836
fi
 
33837
 
 
33838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33839
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
33840
fi
 
33841
 
 
33842
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
33843
    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
 
33844
         }$am_cv_proto_iconv" >&5
 
33845
$as_echo "${ac_t:-
 
33846
         }$am_cv_proto_iconv" >&6; }
 
33847
 
 
33848
cat >>confdefs.h <<_ACEOF
 
33849
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
33850
_ACEOF
 
33851
 
 
33852
  fi
 
33853
 
 
33854
if test -n "$LIBICONV" ; then
 
33855
  ICONV_LIBS="$LIBICONV"
 
33856
else
 
33857
  ICONV_LIBS=""
 
33858
fi
 
33859
 
 
33860
 
 
33861
for ac_header in iconv.h
 
33862
do
 
33863
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33864
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33865
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33866
$as_echo_n "checking for $ac_header... " >&6; }
 
33867
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33868
  $as_echo_n "(cached) " >&6
 
33869
fi
 
33870
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33871
                 $as_echo "$as_val"'`
 
33872
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33873
$as_echo "$ac_res" >&6; }
 
33874
else
 
33875
  # Is the header compilable?
 
33876
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
33877
$as_echo_n "checking $ac_header usability... " >&6; }
 
33878
cat >conftest.$ac_ext <<_ACEOF
 
33879
/* confdefs.h.  */
 
33880
_ACEOF
 
33881
cat confdefs.h >>conftest.$ac_ext
 
33882
cat >>conftest.$ac_ext <<_ACEOF
 
33883
/* end confdefs.h.  */
 
33884
$ac_includes_default
 
33885
#include <$ac_header>
 
33886
_ACEOF
 
33887
rm -f conftest.$ac_objext
 
33888
if { (ac_try="$ac_compile"
 
33889
case "(($ac_try" in
 
33890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33891
  *) ac_try_echo=$ac_try;;
 
33892
esac
 
33893
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33894
$as_echo "$ac_try_echo") >&5
 
33895
  (eval "$ac_compile") 2>conftest.er1
 
33896
  ac_status=$?
 
33897
  grep -v '^ *+' conftest.er1 >conftest.err
 
33898
  rm -f conftest.er1
 
33899
  cat conftest.err >&5
 
33900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33901
  (exit $ac_status); } && {
 
33902
         test -z "$ac_c_werror_flag" ||
 
33903
         test ! -s conftest.err
 
33904
       } && test -s conftest.$ac_objext; then
 
33905
  ac_header_compiler=yes
 
33906
else
 
33907
  $as_echo "$as_me: failed program was:" >&5
 
33908
sed 's/^/| /' conftest.$ac_ext >&5
 
33909
 
 
33910
        ac_header_compiler=no
 
33911
fi
 
33912
 
 
33913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33914
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33915
$as_echo "$ac_header_compiler" >&6; }
 
33916
 
 
33917
# Is the header present?
 
33918
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
33919
$as_echo_n "checking $ac_header presence... " >&6; }
 
33920
cat >conftest.$ac_ext <<_ACEOF
 
33921
/* confdefs.h.  */
 
33922
_ACEOF
 
33923
cat confdefs.h >>conftest.$ac_ext
 
33924
cat >>conftest.$ac_ext <<_ACEOF
 
33925
/* end confdefs.h.  */
 
33926
#include <$ac_header>
 
33927
_ACEOF
 
33928
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33929
case "(($ac_try" in
 
33930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33931
  *) ac_try_echo=$ac_try;;
 
33932
esac
 
33933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33934
$as_echo "$ac_try_echo") >&5
 
33935
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
33936
  ac_status=$?
 
33937
  grep -v '^ *+' conftest.er1 >conftest.err
 
33938
  rm -f conftest.er1
 
33939
  cat conftest.err >&5
 
33940
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33941
  (exit $ac_status); } >/dev/null && {
 
33942
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
33943
         test ! -s conftest.err
 
33944
       }; then
 
33945
  ac_header_preproc=yes
 
33946
else
 
33947
  $as_echo "$as_me: failed program was:" >&5
 
33948
sed 's/^/| /' conftest.$ac_ext >&5
 
33949
 
 
33950
  ac_header_preproc=no
 
33951
fi
 
33952
 
 
33953
rm -f conftest.err conftest.$ac_ext
 
33954
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33955
$as_echo "$ac_header_preproc" >&6; }
 
33956
 
 
33957
# So?  What about this header?
 
33958
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33959
  yes:no: )
 
33960
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
33961
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33962
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
33963
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
33964
    ac_header_preproc=yes
 
33965
    ;;
 
33966
  no:yes:* )
 
33967
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
33968
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
33969
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
33970
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
33971
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
33972
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
33973
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
33974
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33975
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
33976
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
33977
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
33978
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
33979
    ( cat <<\_ASBOX
 
33980
## --------------------------------------- ##
 
33981
## Report this to http://www.graphviz.org/ ##
 
33982
## --------------------------------------- ##
 
33983
_ASBOX
 
33984
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
33985
    ;;
 
33986
esac
 
33987
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33988
$as_echo_n "checking for $ac_header... " >&6; }
 
33989
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33990
  $as_echo_n "(cached) " >&6
 
33991
else
 
33992
  eval "$as_ac_Header=\$ac_header_preproc"
 
33993
fi
 
33994
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33995
                 $as_echo "$as_val"'`
 
33996
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33997
$as_echo "$ac_res" >&6; }
 
33998
 
 
33999
fi
 
34000
as_val=`eval 'as_val=${'$as_ac_Header'}
 
34001
                 $as_echo "$as_val"'`
 
34002
   if test "x$as_val" = x""yes; then
 
34003
  cat >>confdefs.h <<_ACEOF
 
34004
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34005
_ACEOF
 
34006
 { $as_echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
 
34007
$as_echo_n "checking whether iconv.h defines iconv_t... " >&6; }
 
34008
   cat >conftest.$ac_ext <<_ACEOF
 
34009
/* confdefs.h.  */
 
34010
_ACEOF
 
34011
cat confdefs.h >>conftest.$ac_ext
 
34012
cat >>conftest.$ac_ext <<_ACEOF
 
34013
/* end confdefs.h.  */
 
34014
#include <iconv.h>
 
34015
 
 
34016
_ACEOF
 
34017
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
34018
  $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
 
34019
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
34020
$as_echo "yes" >&6; }
 
34021
 
 
34022
cat >>confdefs.h <<\_ACEOF
 
34023
#define HAVE_ICONV_T_DEF 1
 
34024
_ACEOF
 
34025
 
 
34026
else
 
34027
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
34028
$as_echo "no" >&6; }
 
34029
fi
 
34030
rm -f conftest*
 
34031
 
 
34032
fi
 
34033
 
 
34034
done
 
34035
 
 
34036
 
 
34037
LDFLAGS=$save_LDFLAGS
 
34038
CPPFLAGS=$save_CPPFLAGS
 
34039
 
 
34040
 
 
34041
 
 
34042
fi
 
34043
 
 
34044
 
 
34045
 
 
34046
# Check whether --with-png was given.
 
34047
if test "${with_png+set}" = set; then
 
34048
  withval=$with_png;
 
34049
else
 
34050
  with_png=yes
 
34051
fi
 
34052
 
 
34053
 
 
34054
if test "x$with_png" != "xyes"; then
 
34055
  use_png="No (disabled)"
 
34056
else
 
34057
  save_CPPFLAGS=$CPPFLAGS
 
34058
  save_LDFLAGS=$LDFLAGS
 
34059
  # Extract the first word of "libpng-config", so it can be a program name with args.
 
34060
set dummy libpng-config; ac_word=$2
 
34061
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
34062
$as_echo_n "checking for $ac_word... " >&6; }
 
34063
if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then
 
34064
  $as_echo_n "(cached) " >&6
 
34065
else
 
34066
  case $LIBPNG_CONFIG in
 
34067
  [\\/]* | ?:[\\/]*)
 
34068
  ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
 
34069
  ;;
 
34070
  *)
 
34071
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
34072
for as_dir in $PATH
 
34073
do
 
34074
  IFS=$as_save_IFS
 
34075
  test -z "$as_dir" && as_dir=.
 
34076
  for ac_exec_ext in '' $ac_executable_extensions; do
 
34077
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
34078
    ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
34079
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
34080
    break 2
 
34081
  fi
 
34082
done
 
34083
done
 
34084
IFS=$as_save_IFS
 
34085
 
 
34086
  ;;
 
34087
esac
 
34088
fi
 
34089
LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
 
34090
if test -n "$LIBPNG_CONFIG"; then
 
34091
  { $as_echo "$as_me:$LINENO: result: $LIBPNG_CONFIG" >&5
 
34092
$as_echo "$LIBPNG_CONFIG" >&6; }
 
34093
else
 
34094
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
34095
$as_echo "no" >&6; }
 
34096
fi
 
34097
 
 
34098
 
 
34099
  if test -n "$LIBPNG_CONFIG"; then
 
34100
        PNG_INCLUDES=`$LIBPNG_CONFIG --cflags`
 
34101
        PNG_PREFIX=`$LIBPNG_CONFIG --prefix`
 
34102
        if test "${PNG_PREFIX}/lib" != "/usr/lib" ; then
 
34103
                PNG_LIBS="-L${PNG_PREFIX}/lib"
 
34104
        fi
 
34105
  else
 
34106
        PNG_INCLUDES=""
 
34107
  fi
 
34108
 
 
34109
# Check whether --with-pngincludedir was given.
 
34110
if test "${with_pngincludedir+set}" = set; then
 
34111
  withval=$with_pngincludedir; PNG_INCLUDES="-I$withval"
 
34112
fi
 
34113
 
 
34114
  CPPFLAGS="$CPPFLAGS $PNG_INCLUDES $Z_INCLUDES"
 
34115
 
 
34116
# Check whether --with-pnglibdir was given.
 
34117
if test "${with_pnglibdir+set}" = set; then
 
34118
  withval=$with_pnglibdir; PNG_LIBS="-L$withval"
 
34119
fi
 
34120
 
 
34121
  LDFLAGS="$LDFLAGS $PNG_LIBS $Z_LIBS"
 
34122
  if test "${ac_cv_header_png_h+set}" = set; then
 
34123
  { $as_echo "$as_me:$LINENO: checking for png.h" >&5
 
34124
$as_echo_n "checking for png.h... " >&6; }
 
34125
if test "${ac_cv_header_png_h+set}" = set; then
 
34126
  $as_echo_n "(cached) " >&6
 
34127
fi
 
34128
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
34129
$as_echo "$ac_cv_header_png_h" >&6; }
 
34130
else
 
34131
  # Is the header compilable?
 
34132
{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
 
34133
$as_echo_n "checking png.h usability... " >&6; }
 
34134
cat >conftest.$ac_ext <<_ACEOF
 
34135
/* confdefs.h.  */
 
34136
_ACEOF
 
34137
cat confdefs.h >>conftest.$ac_ext
 
34138
cat >>conftest.$ac_ext <<_ACEOF
 
34139
/* end confdefs.h.  */
 
34140
$ac_includes_default
 
34141
#include <png.h>
 
34142
_ACEOF
 
34143
rm -f conftest.$ac_objext
 
34144
if { (ac_try="$ac_compile"
 
34145
case "(($ac_try" in
 
34146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34147
  *) ac_try_echo=$ac_try;;
 
34148
esac
 
34149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34150
$as_echo "$ac_try_echo") >&5
 
34151
  (eval "$ac_compile") 2>conftest.er1
 
34152
  ac_status=$?
 
34153
  grep -v '^ *+' conftest.er1 >conftest.err
 
34154
  rm -f conftest.er1
 
34155
  cat conftest.err >&5
 
34156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34157
  (exit $ac_status); } && {
 
34158
         test -z "$ac_c_werror_flag" ||
 
34159
         test ! -s conftest.err
 
34160
       } && test -s conftest.$ac_objext; then
 
34161
  ac_header_compiler=yes
 
34162
else
 
34163
  $as_echo "$as_me: failed program was:" >&5
 
34164
sed 's/^/| /' conftest.$ac_ext >&5
 
34165
 
 
34166
        ac_header_compiler=no
 
34167
fi
 
34168
 
 
34169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34170
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34171
$as_echo "$ac_header_compiler" >&6; }
 
34172
 
 
34173
# Is the header present?
 
34174
{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
 
34175
$as_echo_n "checking png.h presence... " >&6; }
 
34176
cat >conftest.$ac_ext <<_ACEOF
 
34177
/* confdefs.h.  */
 
34178
_ACEOF
 
34179
cat confdefs.h >>conftest.$ac_ext
 
34180
cat >>conftest.$ac_ext <<_ACEOF
 
34181
/* end confdefs.h.  */
 
34182
#include <png.h>
 
34183
_ACEOF
 
34184
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34185
case "(($ac_try" in
 
34186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34187
  *) ac_try_echo=$ac_try;;
 
34188
esac
 
34189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34190
$as_echo "$ac_try_echo") >&5
 
34191
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
34192
  ac_status=$?
 
34193
  grep -v '^ *+' conftest.er1 >conftest.err
 
34194
  rm -f conftest.er1
 
34195
  cat conftest.err >&5
 
34196
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34197
  (exit $ac_status); } >/dev/null && {
 
34198
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
34199
         test ! -s conftest.err
 
34200
       }; then
 
34201
  ac_header_preproc=yes
 
34202
else
 
34203
  $as_echo "$as_me: failed program was:" >&5
 
34204
sed 's/^/| /' conftest.$ac_ext >&5
 
34205
 
 
34206
  ac_header_preproc=no
 
34207
fi
 
34208
 
 
34209
rm -f conftest.err conftest.$ac_ext
 
34210
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34211
$as_echo "$ac_header_preproc" >&6; }
 
34212
 
 
34213
# So?  What about this header?
 
34214
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
34215
  yes:no: )
 
34216
    { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
34217
$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
34218
    { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
 
34219
$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
 
34220
    ac_header_preproc=yes
 
34221
    ;;
 
34222
  no:yes:* )
 
34223
    { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
 
34224
$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
 
34225
    { $as_echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
 
34226
$as_echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
 
34227
    { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
 
34228
$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
 
34229
    { $as_echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
 
34230
$as_echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34231
    { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
 
34232
$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
 
34233
    { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
 
34234
$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
 
34235
    ( cat <<\_ASBOX
 
34236
## --------------------------------------- ##
 
34237
## Report this to http://www.graphviz.org/ ##
 
34238
## --------------------------------------- ##
 
34239
_ASBOX
 
34240
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
34241
    ;;
 
34242
esac
 
34243
{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
 
34244
$as_echo_n "checking for png.h... " >&6; }
 
34245
if test "${ac_cv_header_png_h+set}" = set; then
 
34246
  $as_echo_n "(cached) " >&6
 
34247
else
 
34248
  ac_cv_header_png_h=$ac_header_preproc
 
34249
fi
 
34250
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
34251
$as_echo "$ac_cv_header_png_h" >&6; }
 
34252
 
 
34253
fi
 
34254
if test "x$ac_cv_header_png_h" = x""yes; then
 
34255
  { $as_echo "$as_me:$LINENO: checking for main in -lpng" >&5
 
34256
$as_echo_n "checking for main in -lpng... " >&6; }
 
34257
if test "${ac_cv_lib_png_main+set}" = set; then
 
34258
  $as_echo_n "(cached) " >&6
 
34259
else
 
34260
  ac_check_lib_save_LIBS=$LIBS
 
34261
LIBS="-lpng $Z_LIBS $MATH_LIBS $LIBS"
 
34262
cat >conftest.$ac_ext <<_ACEOF
 
34263
/* confdefs.h.  */
 
34264
_ACEOF
 
34265
cat confdefs.h >>conftest.$ac_ext
 
34266
cat >>conftest.$ac_ext <<_ACEOF
 
34267
/* end confdefs.h.  */
 
34268
 
 
34269
 
 
34270
int
 
34271
main ()
 
34272
{
 
34273
return main ();
 
34274
  ;
 
34275
  return 0;
 
34276
}
 
34277
_ACEOF
 
34278
rm -f conftest.$ac_objext conftest$ac_exeext
 
34279
if { (ac_try="$ac_link"
 
34280
case "(($ac_try" in
 
34281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34282
  *) ac_try_echo=$ac_try;;
 
34283
esac
 
34284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34285
$as_echo "$ac_try_echo") >&5
 
34286
  (eval "$ac_link") 2>conftest.er1
 
34287
  ac_status=$?
 
34288
  grep -v '^ *+' conftest.er1 >conftest.err
 
34289
  rm -f conftest.er1
 
34290
  cat conftest.err >&5
 
34291
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34292
  (exit $ac_status); } && {
 
34293
         test -z "$ac_c_werror_flag" ||
 
34294
         test ! -s conftest.err
 
34295
       } && test -s conftest$ac_exeext && {
 
34296
         test "$cross_compiling" = yes ||
 
34297
         $as_test_x conftest$ac_exeext
 
34298
       }; then
 
34299
  ac_cv_lib_png_main=yes
 
34300
else
 
34301
  $as_echo "$as_me: failed program was:" >&5
 
34302
sed 's/^/| /' conftest.$ac_ext >&5
 
34303
 
 
34304
        ac_cv_lib_png_main=no
 
34305
fi
 
34306
 
 
34307
rm -rf conftest.dSYM
 
34308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34309
      conftest$ac_exeext conftest.$ac_ext
 
34310
LIBS=$ac_check_lib_save_LIBS
 
34311
fi
 
34312
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
 
34313
$as_echo "$ac_cv_lib_png_main" >&6; }
 
34314
if test "x$ac_cv_lib_png_main" = x""yes; then
 
34315
  PNG_LIBS="$PNG_LIBS -lpng"
 
34316
                use_png="Yes"
 
34317
 
 
34318
cat >>confdefs.h <<_ACEOF
 
34319
#define HAVE_GD_PNG 1
 
34320
_ACEOF
 
34321
 
 
34322
 
 
34323
cat >>confdefs.h <<_ACEOF
 
34324
#define HAVE_LIBPNG 1
 
34325
_ACEOF
 
34326
 
 
34327
else
 
34328
  use_png="No (missing libpng)"
 
34329
                { $as_echo "$as_me:$LINENO: WARNING: Optional png library not available" >&5
 
34330
$as_echo "$as_me: WARNING: Optional png library not available" >&2;}
 
34331
fi
 
34332
 
 
34333
else
 
34334
  use_png="No (missing png.h)"
 
34335
        { $as_echo "$as_me:$LINENO: WARNING: Optional png library not available - no png.h" >&5
 
34336
$as_echo "$as_me: WARNING: Optional png library not available - no png.h" >&2;}
 
34337
fi
 
34338
 
 
34339
 
 
34340
 
 
34341
fi
 
34342
LDFLAGS=$save_LDFLAGS
 
34343
CPPFLAGS=$save_CPPFLAGS
 
34344
 
 
34345
 
 
34346
 
 
34347
 
 
34348
 
 
34349
# Check whether --with-jpeg was given.
 
34350
if test "${with_jpeg+set}" = set; then
 
34351
  withval=$with_jpeg;
 
34352
else
 
34353
  with_jpeg=yes
 
34354
fi
 
34355
 
 
34356
 
 
34357
if test "x$with_jpeg" != "xyes"; then
 
34358
  use_jpeg="No (disabled)"
 
34359
else
 
34360
 
 
34361
if test "x$with_mylibgd" != "xyes"; then
 
34362
  use_jpeg="No (only required by internal libgd)"
 
34363
else
 
34364
 
 
34365
 
 
34366
save_CPPFLAGS=$CPPFLAGS
 
34367
save_LDFLAGS=$LDFLAGS
 
34368
 
 
34369
# Check whether --with-jpegincludedir was given.
 
34370
if test "${with_jpegincludedir+set}" = set; then
 
34371
  withval=$with_jpegincludedir; JPEG_INCLUDES="-I$withval"
 
34372
fi
 
34373
 
 
34374
CPPFLAGS="$CPPFLAGS $JPEG_INCLUDES"
 
34375
JPEG_LIBDIR="/usr/lib$LIBPOSTFIX"
 
34376
 
 
34377
# Check whether --with-jpeglibdir was given.
 
34378
if test "${with_jpeglibdir+set}" = set; then
 
34379
  withval=$with_jpeglibdir; JPEG_LIBDIR="$withval"
 
34380
fi
 
34381
 
 
34382
if test "$JPEG_LIBDIR" != "/usr/lib$LIBPOSTFIX"; then
 
34383
        JPEG_LIBS="-L$JPEG_LIBDIR"
 
34384
        LDFLAGS="$LDFLAGS $JPEG_LIBS"
 
34385
fi
 
34386
if test -f "$JPEG_LIBDIR/libjpeg.la"; then
 
34387
        JPEG_LIBS="$JPEG_LIBDIR/libjpeg.la"
 
34388
fi
 
34389
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
34390
  { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
34391
$as_echo_n "checking for jpeglib.h... " >&6; }
 
34392
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
34393
  $as_echo_n "(cached) " >&6
 
34394
fi
 
34395
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
34396
$as_echo "$ac_cv_header_jpeglib_h" >&6; }
 
34397
else
 
34398
  # Is the header compilable?
 
34399
{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
 
34400
$as_echo_n "checking jpeglib.h usability... " >&6; }
 
34401
cat >conftest.$ac_ext <<_ACEOF
 
34402
/* confdefs.h.  */
 
34403
_ACEOF
 
34404
cat confdefs.h >>conftest.$ac_ext
 
34405
cat >>conftest.$ac_ext <<_ACEOF
 
34406
/* end confdefs.h.  */
 
34407
$ac_includes_default
 
34408
#include <jpeglib.h>
 
34409
_ACEOF
 
34410
rm -f conftest.$ac_objext
 
34411
if { (ac_try="$ac_compile"
 
34412
case "(($ac_try" in
 
34413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34414
  *) ac_try_echo=$ac_try;;
 
34415
esac
 
34416
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34417
$as_echo "$ac_try_echo") >&5
 
34418
  (eval "$ac_compile") 2>conftest.er1
 
34419
  ac_status=$?
 
34420
  grep -v '^ *+' conftest.er1 >conftest.err
 
34421
  rm -f conftest.er1
 
34422
  cat conftest.err >&5
 
34423
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34424
  (exit $ac_status); } && {
 
34425
         test -z "$ac_c_werror_flag" ||
 
34426
         test ! -s conftest.err
 
34427
       } && test -s conftest.$ac_objext; then
 
34428
  ac_header_compiler=yes
 
34429
else
 
34430
  $as_echo "$as_me: failed program was:" >&5
 
34431
sed 's/^/| /' conftest.$ac_ext >&5
 
34432
 
 
34433
        ac_header_compiler=no
 
34434
fi
 
34435
 
 
34436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34437
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34438
$as_echo "$ac_header_compiler" >&6; }
 
34439
 
 
34440
# Is the header present?
 
34441
{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
 
34442
$as_echo_n "checking jpeglib.h presence... " >&6; }
 
34443
cat >conftest.$ac_ext <<_ACEOF
 
34444
/* confdefs.h.  */
 
34445
_ACEOF
 
34446
cat confdefs.h >>conftest.$ac_ext
 
34447
cat >>conftest.$ac_ext <<_ACEOF
 
34448
/* end confdefs.h.  */
 
34449
#include <jpeglib.h>
 
34450
_ACEOF
 
34451
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34452
case "(($ac_try" in
 
34453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34454
  *) ac_try_echo=$ac_try;;
 
34455
esac
 
34456
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34457
$as_echo "$ac_try_echo") >&5
 
34458
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
34459
  ac_status=$?
 
34460
  grep -v '^ *+' conftest.er1 >conftest.err
 
34461
  rm -f conftest.er1
 
34462
  cat conftest.err >&5
 
34463
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34464
  (exit $ac_status); } >/dev/null && {
 
34465
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
34466
         test ! -s conftest.err
 
34467
       }; then
 
34468
  ac_header_preproc=yes
 
34469
else
 
34470
  $as_echo "$as_me: failed program was:" >&5
 
34471
sed 's/^/| /' conftest.$ac_ext >&5
 
34472
 
 
34473
  ac_header_preproc=no
 
34474
fi
 
34475
 
 
34476
rm -f conftest.err conftest.$ac_ext
 
34477
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34478
$as_echo "$ac_header_preproc" >&6; }
 
34479
 
 
34480
# So?  What about this header?
 
34481
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
34482
  yes:no: )
 
34483
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
34484
$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
34485
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
 
34486
$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
 
34487
    ac_header_preproc=yes
 
34488
    ;;
 
34489
  no:yes:* )
 
34490
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
 
34491
$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
 
34492
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
 
34493
$as_echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
 
34494
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
 
34495
$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
 
34496
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
34497
$as_echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34498
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
 
34499
$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
 
34500
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
 
34501
$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
 
34502
    ( cat <<\_ASBOX
 
34503
## --------------------------------------- ##
 
34504
## Report this to http://www.graphviz.org/ ##
 
34505
## --------------------------------------- ##
 
34506
_ASBOX
 
34507
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
34508
    ;;
 
34509
esac
 
34510
{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
34511
$as_echo_n "checking for jpeglib.h... " >&6; }
 
34512
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
34513
  $as_echo_n "(cached) " >&6
 
34514
else
 
34515
  ac_cv_header_jpeglib_h=$ac_header_preproc
 
34516
fi
 
34517
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
34518
$as_echo "$ac_cv_header_jpeglib_h" >&6; }
 
34519
 
 
34520
fi
 
34521
if test "x$ac_cv_header_jpeglib_h" = x""yes; then
 
34522
  { $as_echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
 
34523
$as_echo_n "checking for main in -ljpeg... " >&6; }
 
34524
if test "${ac_cv_lib_jpeg_main+set}" = set; then
 
34525
  $as_echo_n "(cached) " >&6
 
34526
else
 
34527
  ac_check_lib_save_LIBS=$LIBS
 
34528
LIBS="-ljpeg  $LIBS"
 
34529
cat >conftest.$ac_ext <<_ACEOF
 
34530
/* confdefs.h.  */
 
34531
_ACEOF
 
34532
cat confdefs.h >>conftest.$ac_ext
 
34533
cat >>conftest.$ac_ext <<_ACEOF
 
34534
/* end confdefs.h.  */
 
34535
 
 
34536
 
 
34537
int
 
34538
main ()
 
34539
{
 
34540
return main ();
 
34541
  ;
 
34542
  return 0;
 
34543
}
 
34544
_ACEOF
 
34545
rm -f conftest.$ac_objext conftest$ac_exeext
 
34546
if { (ac_try="$ac_link"
 
34547
case "(($ac_try" in
 
34548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34549
  *) ac_try_echo=$ac_try;;
 
34550
esac
 
34551
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34552
$as_echo "$ac_try_echo") >&5
 
34553
  (eval "$ac_link") 2>conftest.er1
 
34554
  ac_status=$?
 
34555
  grep -v '^ *+' conftest.er1 >conftest.err
 
34556
  rm -f conftest.er1
 
34557
  cat conftest.err >&5
 
34558
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34559
  (exit $ac_status); } && {
 
34560
         test -z "$ac_c_werror_flag" ||
 
34561
         test ! -s conftest.err
 
34562
       } && test -s conftest$ac_exeext && {
 
34563
         test "$cross_compiling" = yes ||
 
34564
         $as_test_x conftest$ac_exeext
 
34565
       }; then
 
34566
  ac_cv_lib_jpeg_main=yes
 
34567
else
 
34568
  $as_echo "$as_me: failed program was:" >&5
 
34569
sed 's/^/| /' conftest.$ac_ext >&5
 
34570
 
 
34571
        ac_cv_lib_jpeg_main=no
 
34572
fi
 
34573
 
 
34574
rm -rf conftest.dSYM
 
34575
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34576
      conftest$ac_exeext conftest.$ac_ext
 
34577
LIBS=$ac_check_lib_save_LIBS
 
34578
fi
 
34579
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
 
34580
$as_echo "$ac_cv_lib_jpeg_main" >&6; }
 
34581
if test "x$ac_cv_lib_jpeg_main" = x""yes; then
 
34582
  use_jpeg="Yes"
 
34583
                JPEG_LIBS="$JPEG_LIBS -ljpeg"
 
34584
 
 
34585
cat >>confdefs.h <<_ACEOF
 
34586
#define HAVE_GD_JPEG 1
 
34587
_ACEOF
 
34588
 
 
34589
 
 
34590
cat >>confdefs.h <<_ACEOF
 
34591
#define HAVE_LIBJPEG 1
 
34592
_ACEOF
 
34593
 
 
34594
else
 
34595
  use_jpeg="No (missing library)"
 
34596
                        { $as_echo "$as_me:$LINENO: WARNING: Optional jpeg library not available" >&5
 
34597
$as_echo "$as_me: WARNING: Optional jpeg library not available" >&2;}
 
34598
fi
 
34599
 
 
34600
else
 
34601
  use_jpeg="No (missing header)"
 
34602
        { $as_echo "$as_me:$LINENO: WARNING: Optional jpeg library not available - no jpeglib.h" >&5
 
34603
$as_echo "$as_me: WARNING: Optional jpeg library not available - no jpeglib.h" >&2;}
 
34604
fi
 
34605
 
 
34606
 
 
34607
LDFLAGS=$save_LDFLAGS
 
34608
CPPFLAGS=$save_CPPFLAGS
 
34609
 
 
34610
 
 
34611
 
 
34612
fi
 
34613
fi
 
34614
 
 
34615
# -----------------------------------
 
34616
# tclInt.h
 
34617
if test -f "$TCL_SRC_DIR/generic/tclInt.h"; then
 
34618
TCLINT_INCLUDES="-I$TCL_SRC_DIR/generic"
 
34619
else
 
34620
if test -f "/usr/include/tclInt.h"; then
 
34621
TCLINT_INCLUDES=""
 
34622
else
 
34623
if test -f "/usr/local/include/tclInt.h"; then
 
34624
TCLINT_INCLUDES="-I/usr/local/include"
 
34625
else
 
34626
TCLINT_INCLUDES='-I$(top_srcdir)/tclpkg/tclstubs'
 
34627
fi
 
34628
fi
 
34629
fi
 
34630
 
 
34631
 
 
34632
# -----------------------------------
 
34633
# tkInt.h
 
34634
if test -f "$TK_SRC_DIR/generic/tkInt.h"; then
 
34635
TKINT_INCLUDES="-I$TK_SRC_DIR/generic -I$TK_SRC_DIR/unix"
 
34636
else
 
34637
if test -f "/usr/include/tkInt.h"; then
 
34638
TKINT_INCLUDES=""
 
34639
else
 
34640
if test -f "/usr/local/include/tkInt.h"; then
 
34641
TKINT_INCLUDES="-I/usr/local/include"
 
34642
else
 
34643
TKINT_INCLUDES='-I$(top_srcdir)/tclpkg/tkstubs'
 
34644
fi
 
34645
fi
 
34646
fi
 
34647
 
 
34648
 
 
34649
# ------------------------------------
 
34650
# triangle.[ch]
 
34651
 
 
34652
if test -f "lib/sfdpgen/triangle.c"; then
 
34653
if test -f "lib/sfdpgen/triangle.h"; then
 
34654
 
 
34655
cat >>confdefs.h <<_ACEOF
 
34656
#define HAVE_TRIANGLE 1
 
34657
_ACEOF
 
34658
 
 
34659
fi
 
34660
fi
 
34661
 
 
34662
# ----------------------------------
 
34663
# tcl/tk pkgIndex.tcl generation
 
34664
 
 
34665
TCL_PKGINDEX=""
 
34666
TCL_PKGINDEX_GD=""
 
34667
TCL_PKGINDEX_SWIG=""
 
34668
TK_PKGINDEX=""
 
34669
if test "$use_tcl" = "Yes"; then
 
34670
    TCL_PKGINDEX="tcldot/pkgIndex.tcl tclpathplan/pkgIndex.tcl"
 
34671
    if test "x$with_libgd" = "xyes"; then
 
34672
        TCL_PKGINDEX_GD="gdtclft/pkgIndex.tcl"
 
34673
    fi
 
34674
    if test "x$SWIG" != "x"; then
 
34675
        TCL_PKGINDEX_SWIG="gv/pkgIndex.tcl"
 
34676
    fi
 
34677
    if test "$use_tk" = "Yes"; then
 
34678
        TK_PKGINDEX="tkspline/pkgIndex.tcl"
 
34679
    fi
 
34680
fi
 
34681
 
 
34682
 
 
34683
 
 
34684
 
 
34685
 
 
34686
 
 
34687
 
 
34688
# Check whether --with-sfdp was given.
 
34689
if test "${with_sfdp+set}" = set; then
 
34690
  withval=$with_sfdp;
 
34691
else
 
34692
  with_sfdp=yes
 
34693
fi
 
34694
 
 
34695
 
 
34696
if test "x$with_sfdp" != "xyes"; then
 
34697
  use_sfdp="No (disabled)"
 
34698
else
 
34699
  use_sfdp="Yes"
 
34700
 
 
34701
cat >>confdefs.h <<_ACEOF
 
34702
#define SFDP 1
 
34703
_ACEOF
 
34704
 
 
34705
fi
 
34706
 if test "x$use_sfdp" = "xYes"; then
 
34707
  WITH_SFDP_TRUE=
 
34708
  WITH_SFDP_FALSE='#'
 
34709
else
 
34710
  WITH_SFDP_TRUE='#'
 
34711
  WITH_SFDP_FALSE=
 
34712
fi
 
34713
 
 
34714
 
 
34715
 
 
34716
 
 
34717
# Check whether --with-smyrna was given.
 
34718
if test "${with_smyrna+set}" = set; then
 
34719
  withval=$with_smyrna;
 
34720
else
 
34721
  with_smyrna=no
 
34722
fi
 
34723
 
 
34724
 
 
34725
if test "x$with_smyrna" != "xyes"; then
 
34726
  use_smyrna="No (disabled by default - experimental)"
 
34727
else
 
34728
  if test "x$use_gtk" != "xYes"; then
 
34729
     { $as_echo "$as_me:$LINENO: WARNING: SMYRNA requires GTK" >&5
 
34730
$as_echo "$as_me: WARNING: SMYRNA requires GTK" >&2;}
 
34731
     requires=" gtk+"
 
34732
  fi
 
34733
  if test "x$use_gtkglext" != "xYes"; then
 
34734
     { $as_echo "$as_me:$LINENO: WARNING: SMYRNA requires GTKGLEXT" >&5
 
34735
$as_echo "$as_me: WARNING: SMYRNA requires GTKGLEXT" >&2;}
 
34736
     requires="$requires gtkglext"
 
34737
  fi
 
34738
  if test "x$use_glade" != "xYes"; then
 
34739
     { $as_echo "$as_me:$LINENO: WARNING: SMYRNA requires GLADE" >&5
 
34740
$as_echo "$as_me: WARNING: SMYRNA requires GLADE" >&2;}
 
34741
     requires="$requires glade"
 
34742
  fi
 
34743
  if test "x$use_gts" != "xYes"; then
 
34744
     { $as_echo "$as_me:$LINENO: WARNING: SMYRNA requires GTS" >&5
 
34745
$as_echo "$as_me: WARNING: SMYRNA requires GTS" >&2;}
 
34746
     requires="$requires gts"
 
34747
  fi
 
34748
  if test "x$use_glut" != "xYes"; then
 
34749
     { $as_echo "$as_me:$LINENO: WARNING: SMYRNA requires GLUT" >&5
 
34750
$as_echo "$as_me: WARNING: SMYRNA requires GLUT" >&2;}
 
34751
     requires="$requires glut"
 
34752
  fi
 
34753
  if test "x$use_png" != "xYes"; then
 
34754
     { $as_echo "$as_me:$LINENO: WARNING: SMYRNA requires PNG" >&5
 
34755
$as_echo "$as_me: WARNING: SMYRNA requires PNG" >&2;}
 
34756
     requires="$requires png"
 
34757
  fi
 
34758
  if test "x$requires" != "x"; then
 
34759
     use_smyrna="No (requires:$requires)"
 
34760
  else
 
34761
     use_smyrna="Yes"
 
34762
 
 
34763
cat >>confdefs.h <<_ACEOF
 
34764
#define SMYRNA 1
 
34765
_ACEOF
 
34766
 
 
34767
  fi
 
34768
fi
 
34769
 if test "x$use_smyrna" = "xYes"; then
 
34770
  WITH_SMYRNA_TRUE=
 
34771
  WITH_SMYRNA_FALSE='#'
 
34772
else
 
34773
  WITH_SMYRNA_TRUE='#'
 
34774
  WITH_SMYRNA_FALSE=
 
34775
fi
 
34776
 
 
34777
 
 
34778
 
 
34779
 
 
34780
# Check whether --with-cgraph was given.
 
34781
if test "${with_cgraph+set}" = set; then
 
34782
  withval=$with_cgraph;
 
34783
else
 
34784
  with_cgraph=no
 
34785
fi
 
34786
 
 
34787
 
 
34788
if test "x$with_cgraph" != "xyes"; then
 
34789
  use_cgraph="No (disabled by default - experimental)"
 
34790
else
 
34791
  use_cgraph="Yes"
 
34792
 
 
34793
cat >>confdefs.h <<_ACEOF
 
34794
#define WITH_CGRAPH 1
 
34795
_ACEOF
 
34796
 
 
34797
fi
 
34798
 if test "x$use_cgraph" = "xYes"; then
 
34799
  WITH_CGRAPH_TRUE=
 
34800
  WITH_CGRAPH_FALSE='#'
 
34801
else
 
34802
  WITH_CGRAPH_TRUE='#'
 
34803
  WITH_CGRAPH_FALSE=
 
34804
fi
 
34805
 
 
34806
 
 
34807
 
 
34808
 
 
34809
# Check whether --with-ortho was given.
 
34810
if test "${with_ortho+set}" = set; then
 
34811
  withval=$with_ortho;
 
34812
else
 
34813
  with_ortho=no
 
34814
fi
 
34815
 
 
34816
 
 
34817
if test "x$with_ortho" != "xyes"; then
 
34818
  use_ortho="No (disabled by default - experimental)"
 
34819
else
 
34820
  use_ortho="Yes"
 
34821
 
 
34822
cat >>confdefs.h <<_ACEOF
 
34823
#define ORTHO 1
 
34824
_ACEOF
 
34825
 
 
34826
fi
 
34827
 if test "x$use_ortho" = "xYes"; then
 
34828
  WITH_ORTHO_TRUE=
 
34829
  WITH_ORTHO_FALSE='#'
 
34830
else
 
34831
  WITH_ORTHO_TRUE='#'
 
34832
  WITH_ORTHO_FALSE=
 
34833
fi
 
34834
 
 
34835
 
 
34836
 
 
34837
 
 
34838
# Check whether --with-digcola was given.
 
34839
if test "${with_digcola+set}" = set; then
 
34840
  withval=$with_digcola;
 
34841
else
 
34842
  with_digcola=yes
 
34843
fi
 
34844
 
 
34845
 
 
34846
if test "x$with_digcola" != "xyes"; then
 
34847
  use_digcola="No (disabled)"
 
34848
else
 
34849
  use_digcola="Yes"
 
34850
 
 
34851
cat >>confdefs.h <<_ACEOF
 
34852
#define DIGCOLA 1
 
34853
_ACEOF
 
34854
 
 
34855
fi
 
34856
 
 
34857
 
 
34858
# Check whether --with-ipsepcola was given.
 
34859
if test "${with_ipsepcola+set}" = set; then
 
34860
  withval=$with_ipsepcola;
 
34861
else
 
34862
  with_ipsepcola=no
 
34863
fi
 
34864
 
 
34865
 
 
34866
if test "x$with_ipsepcola" != "xyes"; then
 
34867
  use_ipsepcola="No (disabled by default - C++ portability issues)"
 
34868
else
 
34869
  if test "x$use_digcola" != "xYes"; then
 
34870
    use_ipsepcola="No (requires: digcola)"
 
34871
  else
 
34872
    use_ipsepcola="Yes"
 
34873
 
 
34874
cat >>confdefs.h <<_ACEOF
 
34875
#define IPSEPCOLA 1
 
34876
_ACEOF
 
34877
 
 
34878
    IPSEPCOLA_INCLUDES='-I$(top_srcdir)/lib/vpsc'
 
34879
    IPSEPCOLA_LIBS='$(top_builddir)/lib/vpsc/libvpsc_C.la -lstdc++'
 
34880
 
 
34881
 
 
34882
  fi
 
34883
fi
 
34884
 if test "x$use_ipsepcola" = "xYes"; then
 
34885
  WITH_IPSEPCOLA_TRUE=
 
34886
  WITH_IPSEPCOLA_FALSE='#'
 
34887
else
 
34888
  WITH_IPSEPCOLA_TRUE='#'
 
34889
  WITH_IPSEPCOLA_FALSE=
 
34890
fi
 
34891
 
 
34892
 
 
34893
# -----------------------------------
 
34894
# Special checks
 
34895
 
 
34896
{ $as_echo "$as_me:$LINENO: checking if have working sincos()" >&5
 
34897
$as_echo_n "checking if have working sincos()... " >&6; }
 
34898
if test "$cross_compiling" = yes; then
 
34899
  { $as_echo "$as_me:$LINENO: result: no - assumed because cross-compiling" >&5
 
34900
$as_echo "no - assumed because cross-compiling" >&6; }
 
34901
 
 
34902
else
 
34903
  cat >conftest.$ac_ext <<_ACEOF
 
34904
/* confdefs.h.  */
 
34905
_ACEOF
 
34906
cat confdefs.h >>conftest.$ac_ext
 
34907
cat >>conftest.$ac_ext <<_ACEOF
 
34908
/* end confdefs.h.  */
 
34909
 
 
34910
        #include <stdio.h>
 
34911
        #include <assert.h>
 
34912
        #define PI 3.14159265358979323846
 
34913
        extern void sincos(double x, double *s, double *c);
 
34914
        int main () {
 
34915
                double sinx=0.0, cosx=1.0;
 
34916
                sincos(PI/2.0,&sinx,&cosx);
 
34917
                assert(sinx>0.9999999);
 
34918
                assert(sinx<1.0000001);
 
34919
                assert(cosx<0.0000001);
 
34920
                assert(cosx>(-0.0000001));
 
34921
                return 0;
 
34922
        }
 
34923
 
 
34924
_ACEOF
 
34925
rm -f conftest$ac_exeext
 
34926
if { (ac_try="$ac_link"
 
34927
case "(($ac_try" in
 
34928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34929
  *) ac_try_echo=$ac_try;;
 
34930
esac
 
34931
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34932
$as_echo "$ac_try_echo") >&5
 
34933
  (eval "$ac_link") 2>&5
 
34934
  ac_status=$?
 
34935
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34936
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
34937
  { (case "(($ac_try" in
 
34938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34939
  *) ac_try_echo=$ac_try;;
 
34940
esac
 
34941
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34942
$as_echo "$ac_try_echo") >&5
 
34943
  (eval "$ac_try") 2>&5
 
34944
  ac_status=$?
 
34945
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34946
  (exit $ac_status); }; }; then
 
34947
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
34948
$as_echo "yes" >&6; }
 
34949
 
 
34950
cat >>confdefs.h <<_ACEOF
 
34951
#define HAVE_SINCOS 1
 
34952
_ACEOF
 
34953
 
 
34954
 
 
34955
else
 
34956
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
34957
$as_echo "$as_me: failed program was:" >&5
 
34958
sed 's/^/| /' conftest.$ac_ext >&5
 
34959
 
 
34960
( exit $ac_status )
 
34961
{ $as_echo "$as_me:$LINENO: result: no" >&5
 
34962
$as_echo "no" >&6; }
 
34963
 
 
34964
fi
 
34965
rm -rf conftest.dSYM
 
34966
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
34967
fi
 
34968
 
 
34969
 
 
34970
 
 
34971
# -----------------------------------
 
34972
{ $as_echo "$as_me:$LINENO: checking if FILE struct contains _cnt" >&5
 
34973
$as_echo_n "checking if FILE struct contains _cnt... " >&6; }
 
34974
cat >conftest.$ac_ext <<_ACEOF
 
34975
/* confdefs.h.  */
 
34976
_ACEOF
 
34977
cat confdefs.h >>conftest.$ac_ext
 
34978
cat >>conftest.$ac_ext <<_ACEOF
 
34979
/* end confdefs.h.  */
 
34980
#include <stdio.h>
 
34981
 
 
34982
int
 
34983
main ()
 
34984
{
 
34985
FILE *f;
 
34986
        int i;
 
34987
        i = f->_cnt;
 
34988
 
 
34989
  ;
 
34990
  return 0;
 
34991
}
 
34992
_ACEOF
 
34993
rm -f conftest.$ac_objext
 
34994
if { (ac_try="$ac_compile"
 
34995
case "(($ac_try" in
 
34996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34997
  *) ac_try_echo=$ac_try;;
 
34998
esac
 
34999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35000
$as_echo "$ac_try_echo") >&5
 
35001
  (eval "$ac_compile") 2>conftest.er1
 
35002
  ac_status=$?
 
35003
  grep -v '^ *+' conftest.er1 >conftest.err
 
35004
  rm -f conftest.er1
 
35005
  cat conftest.err >&5
 
35006
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35007
  (exit $ac_status); } && {
 
35008
         test -z "$ac_c_werror_flag" ||
 
35009
         test ! -s conftest.err
 
35010
       } && test -s conftest.$ac_objext; then
 
35011
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35012
$as_echo "yes" >&6; }
 
35013
 
 
35014
cat >>confdefs.h <<_ACEOF
 
35015
#define HAVE_FILE_CNT 1
 
35016
_ACEOF
 
35017
 
 
35018
 
 
35019
else
 
35020
  $as_echo "$as_me: failed program was:" >&5
 
35021
sed 's/^/| /' conftest.$ac_ext >&5
 
35022
 
 
35023
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
35024
$as_echo "no" >&6; }
 
35025
 
 
35026
fi
 
35027
 
 
35028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35029
 
 
35030
# -----------------------------------
 
35031
 
 
35032
{ $as_echo "$as_me:$LINENO: checking if FILE struct contains _r" >&5
 
35033
$as_echo_n "checking if FILE struct contains _r... " >&6; }
 
35034
cat >conftest.$ac_ext <<_ACEOF
 
35035
/* confdefs.h.  */
 
35036
_ACEOF
 
35037
cat confdefs.h >>conftest.$ac_ext
 
35038
cat >>conftest.$ac_ext <<_ACEOF
 
35039
/* end confdefs.h.  */
 
35040
#include <stdio.h>
 
35041
 
 
35042
int
 
35043
main ()
 
35044
{
 
35045
FILE *f;
 
35046
        int i;
 
35047
        i = f->_r;
 
35048
 
 
35049
  ;
 
35050
  return 0;
 
35051
}
 
35052
_ACEOF
 
35053
rm -f conftest.$ac_objext
 
35054
if { (ac_try="$ac_compile"
 
35055
case "(($ac_try" in
 
35056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35057
  *) ac_try_echo=$ac_try;;
 
35058
esac
 
35059
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35060
$as_echo "$ac_try_echo") >&5
 
35061
  (eval "$ac_compile") 2>conftest.er1
 
35062
  ac_status=$?
 
35063
  grep -v '^ *+' conftest.er1 >conftest.err
 
35064
  rm -f conftest.er1
 
35065
  cat conftest.err >&5
 
35066
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35067
  (exit $ac_status); } && {
 
35068
         test -z "$ac_c_werror_flag" ||
 
35069
         test ! -s conftest.err
 
35070
       } && test -s conftest.$ac_objext; then
 
35071
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35072
$as_echo "yes" >&6; }
 
35073
 
 
35074
cat >>confdefs.h <<_ACEOF
 
35075
#define HAVE_FILE_R 1
 
35076
_ACEOF
 
35077
 
 
35078
 
 
35079
else
 
35080
  $as_echo "$as_me: failed program was:" >&5
 
35081
sed 's/^/| /' conftest.$ac_ext >&5
 
35082
 
 
35083
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
35084
$as_echo "no" >&6; }
 
35085
 
 
35086
fi
 
35087
 
 
35088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35089
 
 
35090
# -----------------------------------
 
35091
 
 
35092
{ $as_echo "$as_me:$LINENO: checking if FILE struct contains _next" >&5
 
35093
$as_echo_n "checking if FILE struct contains _next... " >&6; }
 
35094
cat >conftest.$ac_ext <<_ACEOF
 
35095
/* confdefs.h.  */
 
35096
_ACEOF
 
35097
cat confdefs.h >>conftest.$ac_ext
 
35098
cat >>conftest.$ac_ext <<_ACEOF
 
35099
/* end confdefs.h.  */
 
35100
#include <stdio.h>
 
35101
 
 
35102
int
 
35103
main ()
 
35104
{
 
35105
FILE *f;
 
35106
        int i;
 
35107
        i = f->_next;
 
35108
 
 
35109
  ;
 
35110
  return 0;
 
35111
}
 
35112
_ACEOF
 
35113
rm -f conftest.$ac_objext
 
35114
if { (ac_try="$ac_compile"
 
35115
case "(($ac_try" in
 
35116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35117
  *) ac_try_echo=$ac_try;;
 
35118
esac
 
35119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35120
$as_echo "$ac_try_echo") >&5
 
35121
  (eval "$ac_compile") 2>conftest.er1
 
35122
  ac_status=$?
 
35123
  grep -v '^ *+' conftest.er1 >conftest.err
 
35124
  rm -f conftest.er1
 
35125
  cat conftest.err >&5
 
35126
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35127
  (exit $ac_status); } && {
 
35128
         test -z "$ac_c_werror_flag" ||
 
35129
         test ! -s conftest.err
 
35130
       } && test -s conftest.$ac_objext; then
 
35131
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35132
$as_echo "yes" >&6; }
 
35133
 
 
35134
cat >>confdefs.h <<_ACEOF
 
35135
#define HAVE_FILE_NEXT 1
 
35136
_ACEOF
 
35137
 
 
35138
 
 
35139
else
 
35140
  $as_echo "$as_me: failed program was:" >&5
 
35141
sed 's/^/| /' conftest.$ac_ext >&5
 
35142
 
 
35143
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
35144
$as_echo "no" >&6; }
 
35145
 
 
35146
fi
 
35147
 
 
35148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35149
 
 
35150
# -----------------------------------
 
35151
 
 
35152
{ $as_echo "$as_me:$LINENO: checking if FILE struct contains _IO_read_end" >&5
 
35153
$as_echo_n "checking if FILE struct contains _IO_read_end... " >&6; }
 
35154
cat >conftest.$ac_ext <<_ACEOF
 
35155
/* confdefs.h.  */
 
35156
_ACEOF
 
35157
cat confdefs.h >>conftest.$ac_ext
 
35158
cat >>conftest.$ac_ext <<_ACEOF
 
35159
/* end confdefs.h.  */
 
35160
#include <stdio.h>
 
35161
 
 
35162
int
 
35163
main ()
 
35164
{
 
35165
FILE *f;
 
35166
        int i;
 
35167
        i = f->_IO_read_end;
 
35168
 
 
35169
  ;
 
35170
  return 0;
 
35171
}
 
35172
_ACEOF
 
35173
rm -f conftest.$ac_objext
 
35174
if { (ac_try="$ac_compile"
 
35175
case "(($ac_try" in
 
35176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35177
  *) ac_try_echo=$ac_try;;
 
35178
esac
 
35179
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35180
$as_echo "$ac_try_echo") >&5
 
35181
  (eval "$ac_compile") 2>conftest.er1
 
35182
  ac_status=$?
 
35183
  grep -v '^ *+' conftest.er1 >conftest.err
 
35184
  rm -f conftest.er1
 
35185
  cat conftest.err >&5
 
35186
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35187
  (exit $ac_status); } && {
 
35188
         test -z "$ac_c_werror_flag" ||
 
35189
         test ! -s conftest.err
 
35190
       } && test -s conftest.$ac_objext; then
 
35191
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35192
$as_echo "yes" >&6; }
 
35193
 
 
35194
cat >>confdefs.h <<_ACEOF
 
35195
#define HAVE_FILE_IO_READ_END 1
 
35196
_ACEOF
 
35197
 
 
35198
 
 
35199
else
 
35200
  $as_echo "$as_me: failed program was:" >&5
 
35201
sed 's/^/| /' conftest.$ac_ext >&5
 
35202
 
 
35203
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
35204
$as_echo "no" >&6; }
 
35205
 
 
35206
fi
 
35207
 
 
35208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35209
 
 
35210
# -----------------------------------
 
35211
 
 
35212
{ $as_echo "$as_me:$LINENO: checking if errno externs are declared" >&5
 
35213
$as_echo_n "checking if errno externs are declared... " >&6; }
 
35214
cat >conftest.$ac_ext <<_ACEOF
 
35215
/* confdefs.h.  */
 
35216
_ACEOF
 
35217
cat confdefs.h >>conftest.$ac_ext
 
35218
cat >>conftest.$ac_ext <<_ACEOF
 
35219
/* end confdefs.h.  */
 
35220
#include <stdio.h>
 
35221
        #include <errno.h>
 
35222
 
 
35223
int
 
35224
main ()
 
35225
{
 
35226
if ( errno < sys_nerr ) return sys_errlist[errno];
 
35227
 
 
35228
  ;
 
35229
  return 0;
 
35230
}
 
35231
_ACEOF
 
35232
rm -f conftest.$ac_objext conftest$ac_exeext
 
35233
if { (ac_try="$ac_link"
 
35234
case "(($ac_try" in
 
35235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35236
  *) ac_try_echo=$ac_try;;
 
35237
esac
 
35238
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35239
$as_echo "$ac_try_echo") >&5
 
35240
  (eval "$ac_link") 2>conftest.er1
 
35241
  ac_status=$?
 
35242
  grep -v '^ *+' conftest.er1 >conftest.err
 
35243
  rm -f conftest.er1
 
35244
  cat conftest.err >&5
 
35245
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35246
  (exit $ac_status); } && {
 
35247
         test -z "$ac_c_werror_flag" ||
 
35248
         test ! -s conftest.err
 
35249
       } && test -s conftest$ac_exeext && {
 
35250
         test "$cross_compiling" = yes ||
 
35251
         $as_test_x conftest$ac_exeext
 
35252
       }; then
 
35253
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35254
$as_echo "yes" >&6; }
 
35255
 
 
35256
cat >>confdefs.h <<_ACEOF
 
35257
#define HAVE_ERRNO_DECL 1
 
35258
_ACEOF
 
35259
 
 
35260
 
 
35261
else
 
35262
  $as_echo "$as_me: failed program was:" >&5
 
35263
sed 's/^/| /' conftest.$ac_ext >&5
 
35264
 
 
35265
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
35266
$as_echo "no" >&6; }
 
35267
 
 
35268
fi
 
35269
 
 
35270
rm -rf conftest.dSYM
 
35271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
35272
      conftest$ac_exeext conftest.$ac_ext
 
35273
 
 
35274
# -----------------------------------
 
35275
 
 
35276
{ $as_echo "$as_me:$LINENO: checking if getopt externs are declared" >&5
 
35277
$as_echo_n "checking if getopt externs are declared... " >&6; }
 
35278
cat >conftest.$ac_ext <<_ACEOF
 
35279
/* confdefs.h.  */
 
35280
_ACEOF
 
35281
cat confdefs.h >>conftest.$ac_ext
 
35282
cat >>conftest.$ac_ext <<_ACEOF
 
35283
/* end confdefs.h.  */
 
35284
#include <stdlib.h>
 
35285
        #include <stdio.h>
 
35286
        #if HAVE_UNISTD_H
 
35287
        #include <unistd.h>
 
35288
        #endif
 
35289
 
 
35290
int
 
35291
main ()
 
35292
{
 
35293
if ( optopt ) exit(0); else exit(1);
 
35294
 
 
35295
  ;
 
35296
  return 0;
 
35297
}
 
35298
_ACEOF
 
35299
rm -f conftest.$ac_objext conftest$ac_exeext
 
35300
if { (ac_try="$ac_link"
 
35301
case "(($ac_try" in
 
35302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35303
  *) ac_try_echo=$ac_try;;
 
35304
esac
 
35305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35306
$as_echo "$ac_try_echo") >&5
 
35307
  (eval "$ac_link") 2>conftest.er1
 
35308
  ac_status=$?
 
35309
  grep -v '^ *+' conftest.er1 >conftest.err
 
35310
  rm -f conftest.er1
 
35311
  cat conftest.err >&5
 
35312
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35313
  (exit $ac_status); } && {
 
35314
         test -z "$ac_c_werror_flag" ||
 
35315
         test ! -s conftest.err
 
35316
       } && test -s conftest$ac_exeext && {
 
35317
         test "$cross_compiling" = yes ||
 
35318
         $as_test_x conftest$ac_exeext
 
35319
       }; then
 
35320
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35321
$as_echo "yes" >&6; }
 
35322
 
 
35323
cat >>confdefs.h <<_ACEOF
 
35324
#define HAVE_GETOPT_DECL 1
 
35325
_ACEOF
 
35326
 
 
35327
 
 
35328
else
 
35329
  $as_echo "$as_me: failed program was:" >&5
 
35330
sed 's/^/| /' conftest.$ac_ext >&5
 
35331
 
 
35332
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
35333
$as_echo "no" >&6; }
 
35334
 
 
35335
fi
 
35336
 
 
35337
rm -rf conftest.dSYM
 
35338
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
35339
      conftest$ac_exeext conftest.$ac_ext
 
35340
 
 
35341
# -----------------------------------
 
35342
 
 
35343
{ $as_echo "$as_me:$LINENO: checking if intptr_t is declared" >&5
 
35344
$as_echo_n "checking if intptr_t is declared... " >&6; }
 
35345
cat >conftest.$ac_ext <<_ACEOF
 
35346
/* confdefs.h.  */
 
35347
_ACEOF
 
35348
cat confdefs.h >>conftest.$ac_ext
 
35349
cat >>conftest.$ac_ext <<_ACEOF
 
35350
/* end confdefs.h.  */
 
35351
#include <stdlib.h>
 
35352
        #if HAVE_STDINT_H
 
35353
        #include <stdint.h>
 
35354
        #endif
 
35355
        #if HAVE_INTTYPES_H
 
35356
        #include <inttypes.h>
 
35357
        #endif
 
35358
        #if HAVE_UNISTD_H
 
35359
        #include <unistd.h>
 
35360
        #endif
 
35361
 
 
35362
int
 
35363
main ()
 
35364
{
 
35365
intptr_t  abc;
 
35366
 
 
35367
  ;
 
35368
  return 0;
 
35369
}
 
35370
_ACEOF
 
35371
rm -f conftest.$ac_objext conftest$ac_exeext
 
35372
if { (ac_try="$ac_link"
 
35373
case "(($ac_try" in
 
35374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35375
  *) ac_try_echo=$ac_try;;
 
35376
esac
 
35377
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35378
$as_echo "$ac_try_echo") >&5
 
35379
  (eval "$ac_link") 2>conftest.er1
 
35380
  ac_status=$?
 
35381
  grep -v '^ *+' conftest.er1 >conftest.err
 
35382
  rm -f conftest.er1
 
35383
  cat conftest.err >&5
 
35384
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35385
  (exit $ac_status); } && {
 
35386
         test -z "$ac_c_werror_flag" ||
 
35387
         test ! -s conftest.err
 
35388
       } && test -s conftest$ac_exeext && {
 
35389
         test "$cross_compiling" = yes ||
 
35390
         $as_test_x conftest$ac_exeext
 
35391
       }; then
 
35392
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35393
$as_echo "yes" >&6; }
 
35394
 
 
35395
cat >>confdefs.h <<_ACEOF
 
35396
#define HAVE_INTPTR_T 1
 
35397
_ACEOF
 
35398
 
 
35399
 
 
35400
else
 
35401
  $as_echo "$as_me: failed program was:" >&5
 
35402
sed 's/^/| /' conftest.$ac_ext >&5
 
35403
 
 
35404
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
35405
$as_echo "no" >&6; }
 
35406
 
 
35407
fi
 
35408
 
 
35409
rm -rf conftest.dSYM
 
35410
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
35411
      conftest$ac_exeext conftest.$ac_ext
 
35412
 
 
35413
# -----------------------------------
 
35414
 
 
35415
{ $as_echo "$as_me:$LINENO: checking if assert needs __eprintf" >&5
 
35416
$as_echo_n "checking if assert needs __eprintf... " >&6; }
 
35417
cat > conftest.$ac_ext <<EOF
 
35418
#include "confdefs.h"
 
35419
#include "assert.h"
 
35420
int main(int argc, char **argv) {
 
35421
assert(argc);
 
35422
; return 0; }
 
35423
EOF
 
35424
${CC-cc} -c $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext 1>&5
 
35425
if test "x`nm conftest.o |$GREP __eprintf`" != "x"; then
 
35426
    { $as_echo "$as_me:$LINENO: result: yes" >&5
 
35427
$as_echo "yes" >&6; }
 
35428
    CFLAGS="$CFLAGS -DNDEBUG"
 
35429
else
 
35430
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
35431
$as_echo "no" >&6; }
 
35432
fi
 
35433
rm -f conftest*
 
35434
 
 
35435
# -----------------------------------------------------------------------
 
35436
 
 
35437
# Generate Makefiles
 
35438
ac_config_files="$ac_config_files Makefile debian/changelog doc/Makefile doc/info/Makefile doc/schema/Makefile contrib/Makefile contrib/prune/Makefile contrib/diffimg/Makefile graphs/Makefile graphs/directed/Makefile graphs/undirected/Makefile lib/Makefile lib/cdt/Makefile lib/cdt/libcdt.pc lib/graph/Makefile lib/graph/libgraph.pc lib/cgraph/Makefile lib/cgraph/libcgraph.pc lib/gd/Makefile lib/rbtree/Makefile lib/pathplan/Makefile lib/pathplan/libpathplan.pc lib/ast/Makefile lib/sfio/Makefile lib/sfio/Sfio_f/Makefile lib/vmalloc/Makefile lib/dotgen/Makefile lib/neatogen/Makefile lib/fdpgen/Makefile lib/sparse/Makefile lib/sfdpgen/Makefile lib/osage/Makefile lib/gvpr/Makefile lib/gvpr/libgvpr.pc lib/circogen/Makefile lib/twopigen/Makefile lib/patchwork/Makefile lib/pack/Makefile lib/ortho/Makefile lib/expr/Makefile lib/expr/libexpr.pc lib/common/Makefile lib/ingraphs/Makefile lib/vpsc/Makefile lib/gvc/Makefile lib/gvc/libgvc.pc lib/xdot/Makefile lib/xdot/libxdot.pc lib/topfish/Makefile lib/glcomp/Makefile macosx/Info.plist macosx/build/graphviz.pmdoc/01local.xml macosx/build/graphviz.pmdoc/02graphviz.xml windows/build/graphviz.wxs windows/Properties/AssemblyInfo.cs plugin/Makefile plugin/core/Makefile plugin/devil/Makefile plugin/gd/Makefile plugin/gdk_pixbuf/Makefile plugin/gdiplus/Makefile plugin/glitz/Makefile plugin/gs/Makefile plugin/gtk/Makefile plugin/lasi/Makefile plugin/ming/Makefile plugin/pango/Makefile plugin/quartz/Makefile plugin/rsvg/Makefile plugin/visio/Makefile plugin/xlib/Makefile plugin/dot_layout/Makefile plugin/neato_layout/Makefile cmd/Makefile cmd/dot/Makefile cmd/tools/Makefile cmd/gvpr/Makefile cmd/lefty/ws/x11/libfilereq/Makefile cmd/lefty/ws/x11/Makefile cmd/lefty/ws/mswin32/Makefile cmd/lefty/ws/Makefile cmd/lefty/os/unix/Makefile cmd/lefty/os/mswin32/Makefile cmd/lefty/os/Makefile cmd/lefty/dot2l/Makefile cmd/lefty/examples/Makefile cmd/lefty/Makefile cmd/lneato/Makefile cmd/dotty/Makefile cmd/smyrna/Makefile tclpkg/Makefile tclpkg/tclstubs/Makefile tclpkg/tkstubs/Makefile tclpkg/tclhandle/Makefile tclpkg/gdtclft/Makefile tclpkg/gdtclft/demo/Makefile tclpkg/tcldot/Makefile tclpkg/tcldot/demo/Makefile tclpkg/tclpathplan/Makefile tclpkg/tclpathplan/demo/Makefile tclpkg/tclpathplan/demo/pathplan_data/Makefile tclpkg/tkspline/Makefile tclpkg/tkspline/demo/Makefile tclpkg/gv/Makefile tclpkg/gv/demo/Makefile tclpkg/gv/META.gv rtest/Makefile share/Makefile share/examples/Makefile share/gui/Makefile graphviz.spec Doxyfile"
 
35439
 
 
35440
 
 
35441
cat >confcache <<\_ACEOF
 
35442
# This file is a shell script that caches the results of configure
 
35443
# tests run on this system so they can be shared between configure
 
35444
# scripts and configure runs, see configure's option --config-cache.
 
35445
# It is not useful on other systems.  If it contains results you don't
 
35446
# want to keep, you may remove or edit it.
 
35447
#
 
35448
# config.status only pays attention to the cache file if you give it
 
35449
# the --recheck option to rerun configure.
 
35450
#
 
35451
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
35452
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
35453
# following values.
 
35454
 
 
35455
_ACEOF
 
35456
 
 
35457
# The following way of writing the cache mishandles newlines in values,
 
35458
# but we know of no workaround that is simple, portable, and efficient.
 
35459
# So, we kill variables containing newlines.
 
35460
# Ultrix sh set writes to stderr and can't be redirected directly,
 
35461
# and sets the high bit in the cache file unless we assign to the vars.
 
35462
(
 
35463
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
35464
    eval ac_val=\$$ac_var
 
35465
    case $ac_val in #(
 
35466
    *${as_nl}*)
 
35467
      case $ac_var in #(
 
35468
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
35469
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
35470
      esac
 
35471
      case $ac_var in #(
 
35472
      _ | IFS | as_nl) ;; #(
 
35473
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
35474
      *) $as_unset $ac_var ;;
 
35475
      esac ;;
 
35476
    esac
 
35477
  done
 
35478
 
 
35479
  (set) 2>&1 |
 
35480
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
35481
    *${as_nl}ac_space=\ *)
 
35482
      # `set' does not quote correctly, so add quotes (double-quote
 
35483
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
35484
      sed -n \
 
35485
        "s/'/'\\\\''/g;
 
35486
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
35487
      ;; #(
 
35488
    *)
 
35489
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
35490
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
35491
      ;;
 
35492
    esac |
 
35493
    sort
 
35494
) |
 
35495
  sed '
 
35496
     /^ac_cv_env_/b end
 
35497
     t clear
 
35498
     :clear
 
35499
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
35500
     t end
 
35501
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
35502
     :end' >>confcache
 
35503
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
35504
  if test -w "$cache_file"; then
 
35505
    test "x$cache_file" != "x/dev/null" &&
 
35506
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
35507
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
35508
    cat confcache >$cache_file
 
35509
  else
 
35510
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
35511
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
35512
  fi
 
35513
fi
 
35514
rm -f confcache
 
35515
 
 
35516
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
35517
# Let make expand exec_prefix.
 
35518
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
35519
 
 
35520
DEFS=-DHAVE_CONFIG_H
 
35521
 
 
35522
ac_libobjs=
 
35523
ac_ltlibobjs=
 
35524
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
35525
  # 1. Remove the extension, and $U if already installed.
 
35526
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
35527
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
35528
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
35529
  #    will be set to the directory where LIBOBJS objects are built.
 
35530
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
35531
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
35532
done
 
35533
LIBOBJS=$ac_libobjs
 
35534
 
 
35535
LTLIBOBJS=$ac_ltlibobjs
 
35536
 
 
35537
 
 
35538
if test -z "${WITH_WIN32_TRUE}" && test -z "${WITH_WIN32_FALSE}"; then
 
35539
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_WIN32\" was never defined.
 
35540
Usually this means the macro was only invoked conditionally." >&5
 
35541
$as_echo "$as_me: error: conditional \"WITH_WIN32\" was never defined.
 
35542
Usually this means the macro was only invoked conditionally." >&2;}
 
35543
   { (exit 1); exit 1; }; }
 
35544
fi
 
35545
if test -z "${WITH_DARWIN9_TRUE}" && test -z "${WITH_DARWIN9_FALSE}"; then
 
35546
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_DARWIN9\" was never defined.
 
35547
Usually this means the macro was only invoked conditionally." >&5
 
35548
$as_echo "$as_me: error: conditional \"WITH_DARWIN9\" was never defined.
 
35549
Usually this means the macro was only invoked conditionally." >&2;}
 
35550
   { (exit 1); exit 1; }; }
 
35551
fi
 
35552
if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
 
35553
  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
 
35554
Usually this means the macro was only invoked conditionally." >&5
 
35555
$as_echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
 
35556
Usually this means the macro was only invoked conditionally." >&2;}
 
35557
   { (exit 1); exit 1; }; }
 
35558
fi
 
35559
if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
 
35560
  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
 
35561
Usually this means the macro was only invoked conditionally." >&5
 
35562
$as_echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
 
35563
Usually this means the macro was only invoked conditionally." >&2;}
 
35564
   { (exit 1); exit 1; }; }
 
35565
fi
 
35566
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
35567
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
35568
Usually this means the macro was only invoked conditionally." >&5
 
35569
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
35570
Usually this means the macro was only invoked conditionally." >&2;}
 
35571
   { (exit 1); exit 1; }; }
 
35572
fi
 
35573
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
35574
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
35575
Usually this means the macro was only invoked conditionally." >&5
 
35576
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
35577
Usually this means the macro was only invoked conditionally." >&2;}
 
35578
   { (exit 1); exit 1; }; }
 
35579
fi
 
35580
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
35581
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
35582
Usually this means the macro was only invoked conditionally." >&5
 
35583
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
35584
Usually this means the macro was only invoked conditionally." >&2;}
 
35585
   { (exit 1); exit 1; }; }
 
35586
fi
 
35587
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 
35588
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 
35589
Usually this means the macro was only invoked conditionally." >&5
 
35590
$as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 
35591
Usually this means the macro was only invoked conditionally." >&2;}
 
35592
   { (exit 1); exit 1; }; }
 
35593
fi
 
35594
if test -z "${RC_IS_RC_TRUE}" && test -z "${RC_IS_RC_FALSE}"; then
 
35595
  { { $as_echo "$as_me:$LINENO: error: conditional \"RC_IS_RC\" was never defined.
 
35596
Usually this means the macro was only invoked conditionally." >&5
 
35597
$as_echo "$as_me: error: conditional \"RC_IS_RC\" was never defined.
 
35598
Usually this means the macro was only invoked conditionally." >&2;}
 
35599
   { (exit 1); exit 1; }; }
 
35600
fi
 
35601
if test -z "${RC_IS_WINDRES_TRUE}" && test -z "${RC_IS_WINDRES_FALSE}"; then
 
35602
  { { $as_echo "$as_me:$LINENO: error: conditional \"RC_IS_WINDRES\" was never defined.
 
35603
Usually this means the macro was only invoked conditionally." >&5
 
35604
$as_echo "$as_me: error: conditional \"RC_IS_WINDRES\" was never defined.
 
35605
Usually this means the macro was only invoked conditionally." >&2;}
 
35606
   { (exit 1); exit 1; }; }
 
35607
fi
 
35608
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
35609
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
35610
Usually this means the macro was only invoked conditionally." >&5
 
35611
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
35612
Usually this means the macro was only invoked conditionally." >&2;}
 
35613
   { (exit 1); exit 1; }; }
 
35614
fi
 
35615
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
 
35616
  { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
 
35617
Usually this means the macro was only invoked conditionally." >&5
 
35618
$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
 
35619
Usually this means the macro was only invoked conditionally." >&2;}
 
35620
   { (exit 1); exit 1; }; }
 
35621
fi
 
35622
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
 
35623
  { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
 
35624
Usually this means the macro was only invoked conditionally." >&5
 
35625
$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
 
35626
Usually this means the macro was only invoked conditionally." >&2;}
 
35627
   { (exit 1); exit 1; }; }
 
35628
fi
 
35629
LT_CONFIG_H=config.h
 
35630
 
 
35631
    _ltdl_libobjs=
 
35632
    _ltdl_ltlibobjs=
 
35633
    if test -n "$_LT_LIBOBJS"; then
 
35634
      # Remove the extension.
 
35635
      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
 
35636
      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
 
35637
        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
 
35638
        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
 
35639
      done
 
35640
    fi
 
35641
    ltdl_LIBOBJS=$_ltdl_libobjs
 
35642
 
 
35643
    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
 
35644
 
 
35645
 
 
35646
if test -z "${ENABLE_LTDL_TRUE}" && test -z "${ENABLE_LTDL_FALSE}"; then
 
35647
  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LTDL\" was never defined.
 
35648
Usually this means the macro was only invoked conditionally." >&5
 
35649
$as_echo "$as_me: error: conditional \"ENABLE_LTDL\" was never defined.
 
35650
Usually this means the macro was only invoked conditionally." >&2;}
 
35651
   { (exit 1); exit 1; }; }
 
35652
fi
 
35653
if test -z "${WITH_X_TRUE}" && test -z "${WITH_X_FALSE}"; then
 
35654
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_X\" was never defined.
 
35655
Usually this means the macro was only invoked conditionally." >&5
 
35656
$as_echo "$as_me: error: conditional \"WITH_X\" was never defined.
 
35657
Usually this means the macro was only invoked conditionally." >&2;}
 
35658
   { (exit 1); exit 1; }; }
 
35659
fi
 
35660
if test -z "${WITH_SWIG_TRUE}" && test -z "${WITH_SWIG_FALSE}"; then
 
35661
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_SWIG\" was never defined.
 
35662
Usually this means the macro was only invoked conditionally." >&5
 
35663
$as_echo "$as_me: error: conditional \"WITH_SWIG\" was never defined.
 
35664
Usually this means the macro was only invoked conditionally." >&2;}
 
35665
   { (exit 1); exit 1; }; }
 
35666
fi
 
35667
if test -z "${WITH_SHARP_TRUE}" && test -z "${WITH_SHARP_FALSE}"; then
 
35668
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_SHARP\" was never defined.
 
35669
Usually this means the macro was only invoked conditionally." >&5
 
35670
$as_echo "$as_me: error: conditional \"WITH_SHARP\" was never defined.
 
35671
Usually this means the macro was only invoked conditionally." >&2;}
 
35672
   { (exit 1); exit 1; }; }
 
35673
fi
 
35674
if test -z "${WITH_GUILE_TRUE}" && test -z "${WITH_GUILE_FALSE}"; then
 
35675
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GUILE\" was never defined.
 
35676
Usually this means the macro was only invoked conditionally." >&5
 
35677
$as_echo "$as_me: error: conditional \"WITH_GUILE\" was never defined.
 
35678
Usually this means the macro was only invoked conditionally." >&2;}
 
35679
   { (exit 1); exit 1; }; }
 
35680
fi
 
35681
if test -z "${WITH_IO_TRUE}" && test -z "${WITH_IO_FALSE}"; then
 
35682
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_IO\" was never defined.
 
35683
Usually this means the macro was only invoked conditionally." >&5
 
35684
$as_echo "$as_me: error: conditional \"WITH_IO\" was never defined.
 
35685
Usually this means the macro was only invoked conditionally." >&2;}
 
35686
   { (exit 1); exit 1; }; }
 
35687
fi
 
35688
if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
 
35689
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_JAVA\" was never defined.
 
35690
Usually this means the macro was only invoked conditionally." >&5
 
35691
$as_echo "$as_me: error: conditional \"WITH_JAVA\" was never defined.
 
35692
Usually this means the macro was only invoked conditionally." >&2;}
 
35693
   { (exit 1); exit 1; }; }
 
35694
fi
 
35695
if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
 
35696
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LUA\" was never defined.
 
35697
Usually this means the macro was only invoked conditionally." >&5
 
35698
$as_echo "$as_me: error: conditional \"WITH_LUA\" was never defined.
 
35699
Usually this means the macro was only invoked conditionally." >&2;}
 
35700
   { (exit 1); exit 1; }; }
 
35701
fi
 
35702
if test -z "${WITH_OCAML_TRUE}" && test -z "${WITH_OCAML_FALSE}"; then
 
35703
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_OCAML\" was never defined.
 
35704
Usually this means the macro was only invoked conditionally." >&5
 
35705
$as_echo "$as_me: error: conditional \"WITH_OCAML\" was never defined.
 
35706
Usually this means the macro was only invoked conditionally." >&2;}
 
35707
   { (exit 1); exit 1; }; }
 
35708
fi
 
35709
if test -z "${WITH_OCAMLOPT_TRUE}" && test -z "${WITH_OCAMLOPT_FALSE}"; then
 
35710
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_OCAMLOPT\" was never defined.
 
35711
Usually this means the macro was only invoked conditionally." >&5
 
35712
$as_echo "$as_me: error: conditional \"WITH_OCAMLOPT\" was never defined.
 
35713
Usually this means the macro was only invoked conditionally." >&2;}
 
35714
   { (exit 1); exit 1; }; }
 
35715
fi
 
35716
if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
 
35717
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
 
35718
Usually this means the macro was only invoked conditionally." >&5
 
35719
$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
 
35720
Usually this means the macro was only invoked conditionally." >&2;}
 
35721
   { (exit 1); exit 1; }; }
 
35722
fi
 
35723
if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
 
35724
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PHP\" was never defined.
 
35725
Usually this means the macro was only invoked conditionally." >&5
 
35726
$as_echo "$as_me: error: conditional \"WITH_PHP\" was never defined.
 
35727
Usually this means the macro was only invoked conditionally." >&2;}
 
35728
   { (exit 1); exit 1; }; }
 
35729
fi
 
35730
if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
 
35731
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
 
35732
Usually this means the macro was only invoked conditionally." >&5
 
35733
$as_echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
 
35734
Usually this means the macro was only invoked conditionally." >&2;}
 
35735
   { (exit 1); exit 1; }; }
 
35736
fi
 
35737
if test -z "${WITH_PYTHON23_TRUE}" && test -z "${WITH_PYTHON23_FALSE}"; then
 
35738
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON23\" was never defined.
 
35739
Usually this means the macro was only invoked conditionally." >&5
 
35740
$as_echo "$as_me: error: conditional \"WITH_PYTHON23\" was never defined.
 
35741
Usually this means the macro was only invoked conditionally." >&2;}
 
35742
   { (exit 1); exit 1; }; }
 
35743
fi
 
35744
if test -z "${WITH_PYTHON24_TRUE}" && test -z "${WITH_PYTHON24_FALSE}"; then
 
35745
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON24\" was never defined.
 
35746
Usually this means the macro was only invoked conditionally." >&5
 
35747
$as_echo "$as_me: error: conditional \"WITH_PYTHON24\" was never defined.
 
35748
Usually this means the macro was only invoked conditionally." >&2;}
 
35749
   { (exit 1); exit 1; }; }
 
35750
fi
 
35751
if test -z "${WITH_PYTHON25_TRUE}" && test -z "${WITH_PYTHON25_FALSE}"; then
 
35752
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON25\" was never defined.
 
35753
Usually this means the macro was only invoked conditionally." >&5
 
35754
$as_echo "$as_me: error: conditional \"WITH_PYTHON25\" was never defined.
 
35755
Usually this means the macro was only invoked conditionally." >&2;}
 
35756
   { (exit 1); exit 1; }; }
 
35757
fi
 
35758
if test -z "${WITH_PYTHON26_TRUE}" && test -z "${WITH_PYTHON26_FALSE}"; then
 
35759
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON26\" was never defined.
 
35760
Usually this means the macro was only invoked conditionally." >&5
 
35761
$as_echo "$as_me: error: conditional \"WITH_PYTHON26\" was never defined.
 
35762
Usually this means the macro was only invoked conditionally." >&2;}
 
35763
   { (exit 1); exit 1; }; }
 
35764
fi
 
35765
if test -z "${WITH_R_TRUE}" && test -z "${WITH_R_FALSE}"; then
 
35766
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_R\" was never defined.
 
35767
Usually this means the macro was only invoked conditionally." >&5
 
35768
$as_echo "$as_me: error: conditional \"WITH_R\" was never defined.
 
35769
Usually this means the macro was only invoked conditionally." >&2;}
 
35770
   { (exit 1); exit 1; }; }
 
35771
fi
 
35772
if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
 
35773
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_RUBY\" was never defined.
 
35774
Usually this means the macro was only invoked conditionally." >&5
 
35775
$as_echo "$as_me: error: conditional \"WITH_RUBY\" was never defined.
 
35776
Usually this means the macro was only invoked conditionally." >&2;}
 
35777
   { (exit 1); exit 1; }; }
 
35778
fi
 
35779
if test -z "${WITH_TCL_TRUE}" && test -z "${WITH_TCL_FALSE}"; then
 
35780
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_TCL\" was never defined.
 
35781
Usually this means the macro was only invoked conditionally." >&5
 
35782
$as_echo "$as_me: error: conditional \"WITH_TCL\" was never defined.
 
35783
Usually this means the macro was only invoked conditionally." >&2;}
 
35784
   { (exit 1); exit 1; }; }
 
35785
fi
 
35786
if test -z "${WITH_TK_TRUE}" && test -z "${WITH_TK_FALSE}"; then
 
35787
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_TK\" was never defined.
 
35788
Usually this means the macro was only invoked conditionally." >&5
 
35789
$as_echo "$as_me: error: conditional \"WITH_TK\" was never defined.
 
35790
Usually this means the macro was only invoked conditionally." >&2;}
 
35791
   { (exit 1); exit 1; }; }
 
35792
fi
 
35793
if test -z "${WITH_DEVIL_TRUE}" && test -z "${WITH_DEVIL_FALSE}"; then
 
35794
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_DEVIL\" was never defined.
 
35795
Usually this means the macro was only invoked conditionally." >&5
 
35796
$as_echo "$as_me: error: conditional \"WITH_DEVIL\" was never defined.
 
35797
Usually this means the macro was only invoked conditionally." >&2;}
 
35798
   { (exit 1); exit 1; }; }
 
35799
fi
 
35800
if test -z "${WITH_XAW_TRUE}" && test -z "${WITH_XAW_FALSE}"; then
 
35801
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_XAW\" was never defined.
 
35802
Usually this means the macro was only invoked conditionally." >&5
 
35803
$as_echo "$as_me: error: conditional \"WITH_XAW\" was never defined.
 
35804
Usually this means the macro was only invoked conditionally." >&2;}
 
35805
   { (exit 1); exit 1; }; }
 
35806
fi
 
35807
if test -z "${WITH_RSVG_TRUE}" && test -z "${WITH_RSVG_FALSE}"; then
 
35808
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_RSVG\" was never defined.
 
35809
Usually this means the macro was only invoked conditionally." >&5
 
35810
$as_echo "$as_me: error: conditional \"WITH_RSVG\" was never defined.
 
35811
Usually this means the macro was only invoked conditionally." >&2;}
 
35812
   { (exit 1); exit 1; }; }
 
35813
fi
 
35814
if test -z "${WITH_GS_TRUE}" && test -z "${WITH_GS_FALSE}"; then
 
35815
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GS\" was never defined.
 
35816
Usually this means the macro was only invoked conditionally." >&5
 
35817
$as_echo "$as_me: error: conditional \"WITH_GS\" was never defined.
 
35818
Usually this means the macro was only invoked conditionally." >&2;}
 
35819
   { (exit 1); exit 1; }; }
 
35820
fi
 
35821
if test -z "${WITH_VISIO_TRUE}" && test -z "${WITH_VISIO_FALSE}"; then
 
35822
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_VISIO\" was never defined.
 
35823
Usually this means the macro was only invoked conditionally." >&5
 
35824
$as_echo "$as_me: error: conditional \"WITH_VISIO\" was never defined.
 
35825
Usually this means the macro was only invoked conditionally." >&2;}
 
35826
   { (exit 1); exit 1; }; }
 
35827
fi
 
35828
if test -z "${WITH_PANGOCAIRO_TRUE}" && test -z "${WITH_PANGOCAIRO_FALSE}"; then
 
35829
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PANGOCAIRO\" was never defined.
 
35830
Usually this means the macro was only invoked conditionally." >&5
 
35831
$as_echo "$as_me: error: conditional \"WITH_PANGOCAIRO\" was never defined.
 
35832
Usually this means the macro was only invoked conditionally." >&2;}
 
35833
   { (exit 1); exit 1; }; }
 
35834
fi
 
35835
if test -z "${WITH_LASI_TRUE}" && test -z "${WITH_LASI_FALSE}"; then
 
35836
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LASI\" was never defined.
 
35837
Usually this means the macro was only invoked conditionally." >&5
 
35838
$as_echo "$as_me: error: conditional \"WITH_LASI\" was never defined.
 
35839
Usually this means the macro was only invoked conditionally." >&2;}
 
35840
   { (exit 1); exit 1; }; }
 
35841
fi
 
35842
if test -z "${WITH_GLITZ_TRUE}" && test -z "${WITH_GLITZ_FALSE}"; then
 
35843
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GLITZ\" was never defined.
 
35844
Usually this means the macro was only invoked conditionally." >&5
 
35845
$as_echo "$as_me: error: conditional \"WITH_GLITZ\" was never defined.
 
35846
Usually this means the macro was only invoked conditionally." >&2;}
 
35847
   { (exit 1); exit 1; }; }
 
35848
fi
 
35849
if test -z "${WITH_FREETYPE2_TRUE}" && test -z "${WITH_FREETYPE2_FALSE}"; then
 
35850
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_FREETYPE2\" was never defined.
 
35851
Usually this means the macro was only invoked conditionally." >&5
 
35852
$as_echo "$as_me: error: conditional \"WITH_FREETYPE2\" was never defined.
 
35853
Usually this means the macro was only invoked conditionally." >&2;}
 
35854
   { (exit 1); exit 1; }; }
 
35855
fi
 
35856
if test -z "${WITH_FONTCONFIG_TRUE}" && test -z "${WITH_FONTCONFIG_FALSE}"; then
 
35857
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_FONTCONFIG\" was never defined.
 
35858
Usually this means the macro was only invoked conditionally." >&5
 
35859
$as_echo "$as_me: error: conditional \"WITH_FONTCONFIG\" was never defined.
 
35860
Usually this means the macro was only invoked conditionally." >&2;}
 
35861
   { (exit 1); exit 1; }; }
 
35862
fi
 
35863
if test -z "${WITH_GDK_PIXBUF_TRUE}" && test -z "${WITH_GDK_PIXBUF_FALSE}"; then
 
35864
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GDK_PIXBUF\" was never defined.
 
35865
Usually this means the macro was only invoked conditionally." >&5
 
35866
$as_echo "$as_me: error: conditional \"WITH_GDK_PIXBUF\" was never defined.
 
35867
Usually this means the macro was only invoked conditionally." >&2;}
 
35868
   { (exit 1); exit 1; }; }
 
35869
fi
 
35870
if test -z "${WITH_GTK_TRUE}" && test -z "${WITH_GTK_FALSE}"; then
 
35871
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GTK\" was never defined.
 
35872
Usually this means the macro was only invoked conditionally." >&5
 
35873
$as_echo "$as_me: error: conditional \"WITH_GTK\" was never defined.
 
35874
Usually this means the macro was only invoked conditionally." >&2;}
 
35875
   { (exit 1); exit 1; }; }
 
35876
fi
 
35877
if test -z "${WITH_GTKGL_TRUE}" && test -z "${WITH_GTKGL_FALSE}"; then
 
35878
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GTKGL\" was never defined.
 
35879
Usually this means the macro was only invoked conditionally." >&5
 
35880
$as_echo "$as_me: error: conditional \"WITH_GTKGL\" was never defined.
 
35881
Usually this means the macro was only invoked conditionally." >&2;}
 
35882
   { (exit 1); exit 1; }; }
 
35883
fi
 
35884
if test -z "${WITH_GTKGLEXT_TRUE}" && test -z "${WITH_GTKGLEXT_FALSE}"; then
 
35885
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GTKGLEXT\" was never defined.
 
35886
Usually this means the macro was only invoked conditionally." >&5
 
35887
$as_echo "$as_me: error: conditional \"WITH_GTKGLEXT\" was never defined.
 
35888
Usually this means the macro was only invoked conditionally." >&2;}
 
35889
   { (exit 1); exit 1; }; }
 
35890
fi
 
35891
if test -z "${WITH_GTS_TRUE}" && test -z "${WITH_GTS_FALSE}"; then
 
35892
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GTS\" was never defined.
 
35893
Usually this means the macro was only invoked conditionally." >&5
 
35894
$as_echo "$as_me: error: conditional \"WITH_GTS\" was never defined.
 
35895
Usually this means the macro was only invoked conditionally." >&2;}
 
35896
   { (exit 1); exit 1; }; }
 
35897
fi
 
35898
if test -z "${WITH_GLADE_TRUE}" && test -z "${WITH_GLADE_FALSE}"; then
 
35899
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GLADE\" was never defined.
 
35900
Usually this means the macro was only invoked conditionally." >&5
 
35901
$as_echo "$as_me: error: conditional \"WITH_GLADE\" was never defined.
 
35902
Usually this means the macro was only invoked conditionally." >&2;}
 
35903
   { (exit 1); exit 1; }; }
 
35904
fi
 
35905
if test -z "${WITH_MING_TRUE}" && test -z "${WITH_MING_FALSE}"; then
 
35906
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MING\" was never defined.
 
35907
Usually this means the macro was only invoked conditionally." >&5
 
35908
$as_echo "$as_me: error: conditional \"WITH_MING\" was never defined.
 
35909
Usually this means the macro was only invoked conditionally." >&2;}
 
35910
   { (exit 1); exit 1; }; }
 
35911
fi
 
35912
if test -z "${WITH_QUARTZ_TRUE}" && test -z "${WITH_QUARTZ_FALSE}"; then
 
35913
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_QUARTZ\" was never defined.
 
35914
Usually this means the macro was only invoked conditionally." >&5
 
35915
$as_echo "$as_me: error: conditional \"WITH_QUARTZ\" was never defined.
 
35916
Usually this means the macro was only invoked conditionally." >&2;}
 
35917
   { (exit 1); exit 1; }; }
 
35918
fi
 
35919
if test -z "${WITH_GDIPLUS_TRUE}" && test -z "${WITH_GDIPLUS_FALSE}"; then
 
35920
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GDIPLUS\" was never defined.
 
35921
Usually this means the macro was only invoked conditionally." >&5
 
35922
$as_echo "$as_me: error: conditional \"WITH_GDIPLUS\" was never defined.
 
35923
Usually this means the macro was only invoked conditionally." >&2;}
 
35924
   { (exit 1); exit 1; }; }
 
35925
fi
 
35926
if test -z "${WITH_LIBGD_TRUE}" && test -z "${WITH_LIBGD_FALSE}"; then
 
35927
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LIBGD\" was never defined.
 
35928
Usually this means the macro was only invoked conditionally." >&5
 
35929
$as_echo "$as_me: error: conditional \"WITH_LIBGD\" was never defined.
 
35930
Usually this means the macro was only invoked conditionally." >&2;}
 
35931
   { (exit 1); exit 1; }; }
 
35932
fi
 
35933
if test -z "${WITH_MYLIBGD_TRUE}" && test -z "${WITH_MYLIBGD_FALSE}"; then
 
35934
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MYLIBGD\" was never defined.
 
35935
Usually this means the macro was only invoked conditionally." >&5
 
35936
$as_echo "$as_me: error: conditional \"WITH_MYLIBGD\" was never defined.
 
35937
Usually this means the macro was only invoked conditionally." >&2;}
 
35938
   { (exit 1); exit 1; }; }
 
35939
fi
 
35940
if test -z "${WITH_SFDP_TRUE}" && test -z "${WITH_SFDP_FALSE}"; then
 
35941
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_SFDP\" was never defined.
 
35942
Usually this means the macro was only invoked conditionally." >&5
 
35943
$as_echo "$as_me: error: conditional \"WITH_SFDP\" was never defined.
 
35944
Usually this means the macro was only invoked conditionally." >&2;}
 
35945
   { (exit 1); exit 1; }; }
 
35946
fi
 
35947
if test -z "${WITH_SMYRNA_TRUE}" && test -z "${WITH_SMYRNA_FALSE}"; then
 
35948
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_SMYRNA\" was never defined.
 
35949
Usually this means the macro was only invoked conditionally." >&5
 
35950
$as_echo "$as_me: error: conditional \"WITH_SMYRNA\" was never defined.
 
35951
Usually this means the macro was only invoked conditionally." >&2;}
 
35952
   { (exit 1); exit 1; }; }
 
35953
fi
 
35954
if test -z "${WITH_CGRAPH_TRUE}" && test -z "${WITH_CGRAPH_FALSE}"; then
 
35955
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_CGRAPH\" was never defined.
 
35956
Usually this means the macro was only invoked conditionally." >&5
 
35957
$as_echo "$as_me: error: conditional \"WITH_CGRAPH\" was never defined.
 
35958
Usually this means the macro was only invoked conditionally." >&2;}
 
35959
   { (exit 1); exit 1; }; }
 
35960
fi
 
35961
if test -z "${WITH_ORTHO_TRUE}" && test -z "${WITH_ORTHO_FALSE}"; then
 
35962
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_ORTHO\" was never defined.
 
35963
Usually this means the macro was only invoked conditionally." >&5
 
35964
$as_echo "$as_me: error: conditional \"WITH_ORTHO\" was never defined.
 
35965
Usually this means the macro was only invoked conditionally." >&2;}
 
35966
   { (exit 1); exit 1; }; }
 
35967
fi
 
35968
if test -z "${WITH_IPSEPCOLA_TRUE}" && test -z "${WITH_IPSEPCOLA_FALSE}"; then
 
35969
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_IPSEPCOLA\" was never defined.
 
35970
Usually this means the macro was only invoked conditionally." >&5
 
35971
$as_echo "$as_me: error: conditional \"WITH_IPSEPCOLA\" was never defined.
 
35972
Usually this means the macro was only invoked conditionally." >&2;}
 
35973
   { (exit 1); exit 1; }; }
 
35974
fi
 
35975
 
 
35976
: ${CONFIG_STATUS=./config.status}
 
35977
ac_write_fail=0
 
35978
ac_clean_files_save=$ac_clean_files
 
35979
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
35980
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
35981
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
35982
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
35983
#! $SHELL
 
35984
# Generated by $as_me.
 
35985
# Run this file to recreate the current configuration.
 
35986
# Compiler output produced by configure, useful for debugging
 
35987
# configure, is in config.log if it exists.
 
35988
 
 
35989
debug=false
 
35990
ac_cs_recheck=false
 
35991
ac_cs_silent=false
 
35992
SHELL=\${CONFIG_SHELL-$SHELL}
 
35993
_ACEOF
 
35994
 
 
35995
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
35996
## --------------------- ##
 
35997
## M4sh Initialization.  ##
 
35998
## --------------------- ##
 
35999
 
 
36000
# Be more Bourne compatible
 
36001
DUALCASE=1; export DUALCASE # for MKS sh
 
36002
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
36003
  emulate sh
 
36004
  NULLCMD=:
 
36005
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
36006
  # is contrary to our usage.  Disable this feature.
 
36007
  alias -g '${1+"$@"}'='"$@"'
 
36008
  setopt NO_GLOB_SUBST
 
36009
else
 
36010
  case `(set -o) 2>/dev/null` in
 
36011
  *posix*) set -o posix ;;
 
36012
esac
 
36013
 
 
36014
fi
 
36015
 
 
36016
 
 
36017
 
 
36018
 
 
36019
# PATH needs CR
 
36020
# Avoid depending upon Character Ranges.
 
36021
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
36022
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36023
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
36024
as_cr_digits='0123456789'
 
36025
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
36026
 
 
36027
as_nl='
 
36028
'
 
36029
export as_nl
 
36030
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
36031
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
36032
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
36033
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
36034
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
36035
  as_echo='printf %s\n'
 
36036
  as_echo_n='printf %s'
 
36037
else
 
36038
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
36039
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
36040
    as_echo_n='/usr/ucb/echo -n'
 
36041
  else
 
36042
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
36043
    as_echo_n_body='eval
 
36044
      arg=$1;
 
36045
      case $arg in
 
36046
      *"$as_nl"*)
 
36047
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
36048
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
36049
      esac;
 
36050
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
36051
    '
 
36052
    export as_echo_n_body
 
36053
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
36054
  fi
 
36055
  export as_echo_body
 
36056
  as_echo='sh -c $as_echo_body as_echo'
 
36057
fi
 
36058
 
 
36059
# The user is always right.
 
36060
if test "${PATH_SEPARATOR+set}" != set; then
 
36061
  PATH_SEPARATOR=:
 
36062
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
36063
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
36064
      PATH_SEPARATOR=';'
 
36065
  }
 
36066
fi
 
36067
 
 
36068
# Support unset when possible.
 
36069
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
36070
  as_unset=unset
 
36071
else
 
36072
  as_unset=false
 
36073
fi
 
36074
 
 
36075
 
 
36076
# IFS
 
36077
# We need space, tab and new line, in precisely that order.  Quoting is
 
36078
# there to prevent editors from complaining about space-tab.
 
36079
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
36080
# splitting by setting IFS to empty value.)
 
36081
IFS=" ""        $as_nl"
 
36082
 
 
36083
# Find who we are.  Look in the path if we contain no directory separator.
 
36084
case $0 in
 
36085
  *[\\/]* ) as_myself=$0 ;;
 
36086
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
36087
for as_dir in $PATH
 
36088
do
 
36089
  IFS=$as_save_IFS
 
36090
  test -z "$as_dir" && as_dir=.
 
36091
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
36092
done
 
36093
IFS=$as_save_IFS
 
36094
 
 
36095
     ;;
 
36096
esac
 
36097
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
36098
# in which case we are not to be found in the path.
 
36099
if test "x$as_myself" = x; then
 
36100
  as_myself=$0
 
36101
fi
 
36102
if test ! -f "$as_myself"; then
 
36103
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
36104
  { (exit 1); exit 1; }
 
36105
fi
 
36106
 
 
36107
# Work around bugs in pre-3.0 UWIN ksh.
 
36108
for as_var in ENV MAIL MAILPATH
 
36109
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
36110
done
 
36111
PS1='$ '
 
36112
PS2='> '
 
36113
PS4='+ '
 
36114
 
 
36115
# NLS nuisances.
 
36116
LC_ALL=C
 
36117
export LC_ALL
 
36118
LANGUAGE=C
 
36119
export LANGUAGE
 
36120
 
 
36121
# Required to use basename.
 
36122
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
36123
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
36124
  as_expr=expr
 
36125
else
 
36126
  as_expr=false
 
36127
fi
 
36128
 
 
36129
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
36130
  as_basename=basename
 
36131
else
 
36132
  as_basename=false
 
36133
fi
 
36134
 
 
36135
 
 
36136
# Name of the executable.
 
36137
as_me=`$as_basename -- "$0" ||
 
36138
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
36139
         X"$0" : 'X\(//\)$' \| \
 
36140
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
36141
$as_echo X/"$0" |
 
36142
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
36143
            s//\1/
 
36144
            q
 
36145
          }
 
36146
          /^X\/\(\/\/\)$/{
 
36147
            s//\1/
 
36148
            q
 
36149
          }
 
36150
          /^X\/\(\/\).*/{
 
36151
            s//\1/
 
36152
            q
 
36153
          }
 
36154
          s/.*/./; q'`
 
36155
 
 
36156
# CDPATH.
 
36157
$as_unset CDPATH
 
36158
 
 
36159
 
 
36160
 
 
36161
  as_lineno_1=$LINENO
 
36162
  as_lineno_2=$LINENO
 
36163
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
36164
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
36165
 
 
36166
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
36167
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
36168
  # line-number line after each line using $LINENO; the second 'sed'
 
36169
  # does the real work.  The second script uses 'N' to pair each
 
36170
  # line-number line with the line containing $LINENO, and appends
 
36171
  # trailing '-' during substitution so that $LINENO is not a special
 
36172
  # case at line end.
 
36173
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
36174
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
36175
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
36176
  sed -n '
 
36177
    p
 
36178
    /[$]LINENO/=
 
36179
  ' <$as_myself |
 
36180
    sed '
 
36181
      s/[$]LINENO.*/&-/
 
36182
      t lineno
 
36183
      b
 
36184
      :lineno
 
36185
      N
 
36186
      :loop
 
36187
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
36188
      t loop
 
36189
      s/-\n.*//
 
36190
    ' >$as_me.lineno &&
 
36191
  chmod +x "$as_me.lineno" ||
 
36192
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
36193
   { (exit 1); exit 1; }; }
 
36194
 
 
36195
  # Don't try to exec as it changes $[0], causing all sort of problems
 
36196
  # (the dirname of $[0] is not the place where we might find the
 
36197
  # original and so on.  Autoconf is especially sensitive to this).
 
36198
  . "./$as_me.lineno"
 
36199
  # Exit status is that of the last command.
 
36200
  exit
 
36201
}
 
36202
 
 
36203
 
 
36204
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
36205
  as_dirname=dirname
 
36206
else
 
36207
  as_dirname=false
 
36208
fi
 
36209
 
 
36210
ECHO_C= ECHO_N= ECHO_T=
 
36211
case `echo -n x` in
 
36212
-n*)
 
36213
  case `echo 'x\c'` in
 
36214
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
36215
  *)   ECHO_C='\c';;
 
36216
  esac;;
 
36217
*)
 
36218
  ECHO_N='-n';;
 
36219
esac
 
36220
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
36221
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
36222
  as_expr=expr
 
36223
else
 
36224
  as_expr=false
 
36225
fi
 
36226
 
 
36227
rm -f conf$$ conf$$.exe conf$$.file
 
36228
if test -d conf$$.dir; then
 
36229
  rm -f conf$$.dir/conf$$.file
 
36230
else
 
36231
  rm -f conf$$.dir
 
36232
  mkdir conf$$.dir 2>/dev/null
 
36233
fi
 
36234
if (echo >conf$$.file) 2>/dev/null; then
 
36235
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
36236
    as_ln_s='ln -s'
 
36237
    # ... but there are two gotchas:
 
36238
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
36239
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
36240
    # In both cases, we have to default to `cp -p'.
 
36241
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
36242
      as_ln_s='cp -p'
 
36243
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
36244
    as_ln_s=ln
 
36245
  else
 
36246
    as_ln_s='cp -p'
 
36247
  fi
 
36248
else
 
36249
  as_ln_s='cp -p'
 
36250
fi
 
36251
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
36252
rmdir conf$$.dir 2>/dev/null
 
36253
 
 
36254
if mkdir -p . 2>/dev/null; then
 
36255
  as_mkdir_p=:
 
36256
else
 
36257
  test -d ./-p && rmdir ./-p
 
36258
  as_mkdir_p=false
 
36259
fi
 
36260
 
 
36261
if test -x / >/dev/null 2>&1; then
 
36262
  as_test_x='test -x'
 
36263
else
 
36264
  if ls -dL / >/dev/null 2>&1; then
 
36265
    as_ls_L_option=L
 
36266
  else
 
36267
    as_ls_L_option=
 
36268
  fi
 
36269
  as_test_x='
 
36270
    eval sh -c '\''
 
36271
      if test -d "$1"; then
 
36272
        test -d "$1/.";
 
36273
      else
 
36274
        case $1 in
 
36275
        -*)set "./$1";;
 
36276
        esac;
 
36277
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
36278
        ???[sx]*):;;*)false;;esac;fi
 
36279
    '\'' sh
 
36280
  '
 
36281
fi
 
36282
as_executable_p=$as_test_x
 
36283
 
 
36284
# Sed expression to map a string onto a valid CPP name.
 
36285
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
36286
 
 
36287
# Sed expression to map a string onto a valid variable name.
 
36288
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
36289
 
 
36290
 
 
36291
exec 6>&1
 
36292
 
 
36293
# Save the log message, to keep $[0] and so on meaningful, and to
 
36294
# report actual input values of CONFIG_FILES etc. instead of their
 
36295
# values after options handling.
 
36296
ac_log="
 
36297
This file was extended by graphviz $as_me 2.26.3, which was
 
36298
generated by GNU Autoconf 2.63.  Invocation command line was
 
36299
 
 
36300
  CONFIG_FILES    = $CONFIG_FILES
 
36301
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
36302
  CONFIG_LINKS    = $CONFIG_LINKS
 
36303
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
36304
  $ $0 $@
 
36305
 
 
36306
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
36307
"
 
36308
 
 
36309
_ACEOF
 
36310
 
 
36311
case $ac_config_files in *"
 
36312
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
36313
esac
 
36314
 
 
36315
case $ac_config_headers in *"
 
36316
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
36317
esac
 
36318
 
 
36319
 
 
36320
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
36321
# Files that config.status was made for.
 
36322
config_files="$ac_config_files"
 
36323
config_headers="$ac_config_headers"
 
36324
config_commands="$ac_config_commands"
 
36325
 
 
36326
_ACEOF
 
36327
 
 
36328
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
36329
ac_cs_usage="\
 
36330
\`$as_me' instantiates files from templates according to the
 
36331
current configuration.
 
36332
 
 
36333
Usage: $0 [OPTION]... [FILE]...
 
36334
 
 
36335
  -h, --help       print this help, then exit
 
36336
  -V, --version    print version number and configuration settings, then exit
 
36337
  -q, --quiet, --silent
 
36338
                   do not print progress messages
 
36339
  -d, --debug      don't remove temporary files
 
36340
      --recheck    update $as_me by reconfiguring in the same conditions
 
36341
      --file=FILE[:TEMPLATE]
 
36342
                   instantiate the configuration file FILE
 
36343
      --header=FILE[:TEMPLATE]
 
36344
                   instantiate the configuration header FILE
 
36345
 
 
36346
Configuration files:
 
36347
$config_files
 
36348
 
 
36349
Configuration headers:
 
36350
$config_headers
 
36351
 
 
36352
Configuration commands:
 
36353
$config_commands
 
36354
 
 
36355
Report bugs to <bug-autoconf@gnu.org>."
 
36356
 
 
36357
_ACEOF
 
36358
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
36359
ac_cs_version="\\
 
36360
graphviz config.status 2.26.3
 
36361
configured by $0, generated by GNU Autoconf 2.63,
 
36362
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
36363
 
 
36364
Copyright (C) 2008 Free Software Foundation, Inc.
 
36365
This config.status script is free software; the Free Software Foundation
 
36366
gives unlimited permission to copy, distribute and modify it."
 
36367
 
 
36368
ac_pwd='$ac_pwd'
 
36369
srcdir='$srcdir'
 
36370
INSTALL='$INSTALL'
 
36371
MKDIR_P='$MKDIR_P'
 
36372
AWK='$AWK'
 
36373
test -n "\$AWK" || AWK=awk
 
36374
_ACEOF
 
36375
 
 
36376
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
36377
# The default lists apply if the user does not specify any file.
 
36378
ac_need_defaults=:
 
36379
while test $# != 0
 
36380
do
 
36381
  case $1 in
 
36382
  --*=*)
 
36383
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
36384
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
36385
    ac_shift=:
 
36386
    ;;
 
36387
  *)
 
36388
    ac_option=$1
 
36389
    ac_optarg=$2
 
36390
    ac_shift=shift
 
36391
    ;;
 
36392
  esac
 
36393
 
 
36394
  case $ac_option in
 
36395
  # Handling of the options.
 
36396
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
36397
    ac_cs_recheck=: ;;
 
36398
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
36399
    $as_echo "$ac_cs_version"; exit ;;
 
36400
  --debug | --debu | --deb | --de | --d | -d )
 
36401
    debug=: ;;
 
36402
  --file | --fil | --fi | --f )
 
36403
    $ac_shift
 
36404
    case $ac_optarg in
 
36405
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
36406
    esac
 
36407
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
36408
    ac_need_defaults=false;;
 
36409
  --header | --heade | --head | --hea )
 
36410
    $ac_shift
 
36411
    case $ac_optarg in
 
36412
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
36413
    esac
 
36414
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
36415
    ac_need_defaults=false;;
 
36416
  --he | --h)
 
36417
    # Conflict between --help and --header
 
36418
    { $as_echo "$as_me: error: ambiguous option: $1
 
36419
Try \`$0 --help' for more information." >&2
 
36420
   { (exit 1); exit 1; }; };;
 
36421
  --help | --hel | -h )
 
36422
    $as_echo "$ac_cs_usage"; exit ;;
 
36423
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
36424
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
36425
    ac_cs_silent=: ;;
 
36426
 
 
36427
  # This is an error.
 
36428
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
36429
Try \`$0 --help' for more information." >&2
 
36430
   { (exit 1); exit 1; }; } ;;
 
36431
 
 
36432
  *) ac_config_targets="$ac_config_targets $1"
 
36433
     ac_need_defaults=false ;;
 
36434
 
 
36435
  esac
 
36436
  shift
 
36437
done
 
36438
 
 
36439
ac_configure_extra_args=
 
36440
 
 
36441
if $ac_cs_silent; then
 
36442
  exec 6>/dev/null
 
36443
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
36444
fi
 
36445
 
 
36446
_ACEOF
 
36447
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
36448
if \$ac_cs_recheck; then
 
36449
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
36450
  shift
 
36451
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
36452
  CONFIG_SHELL='$SHELL'
 
36453
  export CONFIG_SHELL
 
36454
  exec "\$@"
 
36455
fi
 
36456
 
 
36457
_ACEOF
 
36458
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
36459
exec 5>>config.log
 
36460
{
 
36461
  echo
 
36462
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
36463
## Running $as_me. ##
 
36464
_ASBOX
 
36465
  $as_echo "$ac_log"
 
36466
} >&5
 
36467
 
 
36468
_ACEOF
 
36469
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
36470
#
 
36471
# INIT-COMMANDS
 
36472
#
 
36473
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
36474
 
 
36475
 
 
36476
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
36477
# if CDPATH is set.
 
36478
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
36479
 
 
36480
sed_quote_subst='$sed_quote_subst'
 
36481
double_quote_subst='$double_quote_subst'
 
36482
delay_variable_subst='$delay_variable_subst'
 
36483
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
36484
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
36485
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
36486
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
36487
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
36488
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
36489
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
36490
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
36491
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
36492
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
36493
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
36494
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
36495
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
36496
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
36497
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
36498
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
36499
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
36500
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
36501
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
36502
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
36503
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
36504
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
36505
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
36506
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
36507
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
36508
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
36509
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
36510
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36511
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
36512
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
36513
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
36514
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
36515
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
36516
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
36517
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
36518
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36519
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36520
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36521
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
36522
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
36523
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
36524
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
36525
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
36526
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
36527
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
36528
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
36529
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
36530
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
36531
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
36532
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
36533
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
36534
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
36535
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
36536
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
36537
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
36538
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
36539
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
36540
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
36541
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
36542
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
36543
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
36544
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
36545
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36546
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36547
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
36548
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
36549
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36550
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36551
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
36552
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36553
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36554
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36555
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36556
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36557
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36558
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
36559
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
36560
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
36561
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36562
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
36563
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
36564
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
36565
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
36566
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
36567
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
36568
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
36569
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
36570
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
36571
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
36572
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
36573
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36574
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
36575
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
36576
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36577
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36578
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
36579
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
36580
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
36581
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
36582
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
36583
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
36584
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
36585
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36586
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36587
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36588
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36589
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36590
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
36591
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
36592
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
36593
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36594
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
36595
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
36596
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
36597
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
36598
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
36599
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
36600
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
36601
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
36602
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
36603
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
36604
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
36605
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
36606
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
36607
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36608
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36609
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36610
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36611
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36612
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36613
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36614
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36615
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36616
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36617
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36618
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36619
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36620
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36621
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36622
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36623
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36624
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36625
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36626
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36627
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36628
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36629
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36630
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36631
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36632
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36633
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36634
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36635
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36636
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36637
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36638
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36639
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36640
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36641
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36642
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36643
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36644
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36645
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36646
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36647
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36648
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36649
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36650
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36651
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36652
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36653
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
36654
 
 
36655
LTCC='$LTCC'
 
36656
LTCFLAGS='$LTCFLAGS'
 
36657
compiler='$compiler_DEFAULT'
 
36658
 
 
36659
# Quote evaled strings.
 
36660
for var in SED \
 
36661
GREP \
 
36662
EGREP \
 
36663
FGREP \
 
36664
LD \
 
36665
NM \
 
36666
LN_S \
 
36667
lt_SP2NL \
 
36668
lt_NL2SP \
 
36669
reload_flag \
 
36670
OBJDUMP \
 
36671
deplibs_check_method \
 
36672
file_magic_cmd \
 
36673
AR \
 
36674
AR_FLAGS \
 
36675
STRIP \
 
36676
RANLIB \
 
36677
CC \
 
36678
CFLAGS \
 
36679
compiler \
 
36680
lt_cv_sys_global_symbol_pipe \
 
36681
lt_cv_sys_global_symbol_to_cdecl \
 
36682
lt_cv_sys_global_symbol_to_c_name_address \
 
36683
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
36684
SHELL \
 
36685
ECHO \
 
36686
lt_prog_compiler_no_builtin_flag \
 
36687
lt_prog_compiler_wl \
 
36688
lt_prog_compiler_pic \
 
36689
lt_prog_compiler_static \
 
36690
lt_cv_prog_compiler_c_o \
 
36691
need_locks \
 
36692
DSYMUTIL \
 
36693
NMEDIT \
 
36694
LIPO \
 
36695
OTOOL \
 
36696
OTOOL64 \
 
36697
shrext_cmds \
 
36698
export_dynamic_flag_spec \
 
36699
whole_archive_flag_spec \
 
36700
compiler_needs_object \
 
36701
with_gnu_ld \
 
36702
allow_undefined_flag \
 
36703
no_undefined_flag \
 
36704
hardcode_libdir_flag_spec \
 
36705
hardcode_libdir_flag_spec_ld \
 
36706
hardcode_libdir_separator \
 
36707
fix_srcfile_path \
 
36708
exclude_expsyms \
 
36709
include_expsyms \
 
36710
file_list_spec \
 
36711
variables_saved_for_relink \
 
36712
libname_spec \
 
36713
library_names_spec \
 
36714
soname_spec \
 
36715
finish_eval \
 
36716
old_striplib \
 
36717
striplib \
 
36718
compiler_lib_search_dirs \
 
36719
predep_objects \
 
36720
postdep_objects \
 
36721
predeps \
 
36722
postdeps \
 
36723
compiler_lib_search_path \
 
36724
LD_CXX \
 
36725
compiler_CXX \
 
36726
lt_prog_compiler_no_builtin_flag_CXX \
 
36727
lt_prog_compiler_wl_CXX \
 
36728
lt_prog_compiler_pic_CXX \
 
36729
lt_prog_compiler_static_CXX \
 
36730
lt_cv_prog_compiler_c_o_CXX \
 
36731
export_dynamic_flag_spec_CXX \
 
36732
whole_archive_flag_spec_CXX \
 
36733
compiler_needs_object_CXX \
 
36734
with_gnu_ld_CXX \
 
36735
allow_undefined_flag_CXX \
 
36736
no_undefined_flag_CXX \
 
36737
hardcode_libdir_flag_spec_CXX \
 
36738
hardcode_libdir_flag_spec_ld_CXX \
 
36739
hardcode_libdir_separator_CXX \
 
36740
fix_srcfile_path_CXX \
 
36741
exclude_expsyms_CXX \
 
36742
include_expsyms_CXX \
 
36743
file_list_spec_CXX \
 
36744
compiler_lib_search_dirs_CXX \
 
36745
predep_objects_CXX \
 
36746
postdep_objects_CXX \
 
36747
predeps_CXX \
 
36748
postdeps_CXX \
 
36749
compiler_lib_search_path_CXX; do
 
36750
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
36751
    *[\\\\\\\`\\"\\\$]*)
 
36752
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
36753
      ;;
 
36754
    *)
 
36755
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
36756
      ;;
 
36757
    esac
 
36758
done
 
36759
 
 
36760
# Double-quote double-evaled strings.
 
36761
for var in reload_cmds \
 
36762
old_postinstall_cmds \
 
36763
old_postuninstall_cmds \
 
36764
old_archive_cmds \
 
36765
extract_expsyms_cmds \
 
36766
old_archive_from_new_cmds \
 
36767
old_archive_from_expsyms_cmds \
 
36768
archive_cmds \
 
36769
archive_expsym_cmds \
 
36770
module_cmds \
 
36771
module_expsym_cmds \
 
36772
export_symbols_cmds \
 
36773
prelink_cmds \
 
36774
postinstall_cmds \
 
36775
postuninstall_cmds \
 
36776
finish_cmds \
 
36777
sys_lib_search_path_spec \
 
36778
sys_lib_dlsearch_path_spec \
 
36779
old_archive_cmds_CXX \
 
36780
old_archive_from_new_cmds_CXX \
 
36781
old_archive_from_expsyms_cmds_CXX \
 
36782
archive_cmds_CXX \
 
36783
archive_expsym_cmds_CXX \
 
36784
module_cmds_CXX \
 
36785
module_expsym_cmds_CXX \
 
36786
export_symbols_cmds_CXX \
 
36787
prelink_cmds_CXX; do
 
36788
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
36789
    *[\\\\\\\`\\"\\\$]*)
 
36790
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
36791
      ;;
 
36792
    *)
 
36793
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
36794
      ;;
 
36795
    esac
 
36796
done
 
36797
 
 
36798
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
36799
case \$lt_ECHO in
 
36800
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
36801
  ;;
 
36802
esac
 
36803
 
 
36804
ac_aux_dir='$ac_aux_dir'
 
36805
xsi_shell='$xsi_shell'
 
36806
lt_shell_append='$lt_shell_append'
 
36807
 
 
36808
# See if we are running on zsh, and set the options which allow our
 
36809
# commands through without removal of \ escapes INIT.
 
36810
if test -n "\${ZSH_VERSION+set}" ; then
 
36811
   setopt NO_GLOB_SUBST
 
36812
fi
 
36813
 
 
36814
 
 
36815
    PACKAGE='$PACKAGE'
 
36816
    VERSION='$VERSION'
 
36817
    TIMESTAMP='$TIMESTAMP'
 
36818
    RM='$RM'
 
36819
    ofile='$ofile'
 
36820
 
 
36821
 
 
36822
 
 
36823
 
 
36824
 
 
36825
 
 
36826
_ACEOF
 
36827
 
 
36828
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
36829
 
 
36830
# Handling of arguments.
 
36831
for ac_config_target in $ac_config_targets
 
36832
do
 
36833
  case $ac_config_target in
 
36834
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
36835
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
36836
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
36837
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
36838
    "debian/changelog") CONFIG_FILES="$CONFIG_FILES debian/changelog" ;;
 
36839
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
36840
    "doc/info/Makefile") CONFIG_FILES="$CONFIG_FILES doc/info/Makefile" ;;
 
36841
    "doc/schema/Makefile") CONFIG_FILES="$CONFIG_FILES doc/schema/Makefile" ;;
 
36842
    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
 
36843
    "contrib/prune/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/prune/Makefile" ;;
 
36844
    "contrib/diffimg/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/diffimg/Makefile" ;;
 
36845
    "graphs/Makefile") CONFIG_FILES="$CONFIG_FILES graphs/Makefile" ;;
 
36846
    "graphs/directed/Makefile") CONFIG_FILES="$CONFIG_FILES graphs/directed/Makefile" ;;
 
36847
    "graphs/undirected/Makefile") CONFIG_FILES="$CONFIG_FILES graphs/undirected/Makefile" ;;
 
36848
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
36849
    "lib/cdt/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cdt/Makefile" ;;
 
36850
    "lib/cdt/libcdt.pc") CONFIG_FILES="$CONFIG_FILES lib/cdt/libcdt.pc" ;;
 
36851
    "lib/graph/Makefile") CONFIG_FILES="$CONFIG_FILES lib/graph/Makefile" ;;
 
36852
    "lib/graph/libgraph.pc") CONFIG_FILES="$CONFIG_FILES lib/graph/libgraph.pc" ;;
 
36853
    "lib/cgraph/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cgraph/Makefile" ;;
 
36854
    "lib/cgraph/libcgraph.pc") CONFIG_FILES="$CONFIG_FILES lib/cgraph/libcgraph.pc" ;;
 
36855
    "lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gd/Makefile" ;;
 
36856
    "lib/rbtree/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rbtree/Makefile" ;;
 
36857
    "lib/pathplan/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pathplan/Makefile" ;;
 
36858
    "lib/pathplan/libpathplan.pc") CONFIG_FILES="$CONFIG_FILES lib/pathplan/libpathplan.pc" ;;
 
36859
    "lib/ast/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ast/Makefile" ;;
 
36860
    "lib/sfio/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sfio/Makefile" ;;
 
36861
    "lib/sfio/Sfio_f/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sfio/Sfio_f/Makefile" ;;
 
36862
    "lib/vmalloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vmalloc/Makefile" ;;
 
36863
    "lib/dotgen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dotgen/Makefile" ;;
 
36864
    "lib/neatogen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/neatogen/Makefile" ;;
 
36865
    "lib/fdpgen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/fdpgen/Makefile" ;;
 
36866
    "lib/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sparse/Makefile" ;;
 
36867
    "lib/sfdpgen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sfdpgen/Makefile" ;;
 
36868
    "lib/osage/Makefile") CONFIG_FILES="$CONFIG_FILES lib/osage/Makefile" ;;
 
36869
    "lib/gvpr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gvpr/Makefile" ;;
 
36870
    "lib/gvpr/libgvpr.pc") CONFIG_FILES="$CONFIG_FILES lib/gvpr/libgvpr.pc" ;;
 
36871
    "lib/circogen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/circogen/Makefile" ;;
 
36872
    "lib/twopigen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/twopigen/Makefile" ;;
 
36873
    "lib/patchwork/Makefile") CONFIG_FILES="$CONFIG_FILES lib/patchwork/Makefile" ;;
 
36874
    "lib/pack/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pack/Makefile" ;;
 
36875
    "lib/ortho/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ortho/Makefile" ;;
 
36876
    "lib/expr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/expr/Makefile" ;;
 
36877
    "lib/expr/libexpr.pc") CONFIG_FILES="$CONFIG_FILES lib/expr/libexpr.pc" ;;
 
36878
    "lib/common/Makefile") CONFIG_FILES="$CONFIG_FILES lib/common/Makefile" ;;
 
36879
    "lib/ingraphs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ingraphs/Makefile" ;;
 
36880
    "lib/vpsc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vpsc/Makefile" ;;
 
36881
    "lib/gvc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gvc/Makefile" ;;
 
36882
    "lib/gvc/libgvc.pc") CONFIG_FILES="$CONFIG_FILES lib/gvc/libgvc.pc" ;;
 
36883
    "lib/xdot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xdot/Makefile" ;;
 
36884
    "lib/xdot/libxdot.pc") CONFIG_FILES="$CONFIG_FILES lib/xdot/libxdot.pc" ;;
 
36885
    "lib/topfish/Makefile") CONFIG_FILES="$CONFIG_FILES lib/topfish/Makefile" ;;
 
36886
    "lib/glcomp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glcomp/Makefile" ;;
 
36887
    "macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES macosx/Info.plist" ;;
 
36888
    "macosx/build/graphviz.pmdoc/01local.xml") CONFIG_FILES="$CONFIG_FILES macosx/build/graphviz.pmdoc/01local.xml" ;;
 
36889
    "macosx/build/graphviz.pmdoc/02graphviz.xml") CONFIG_FILES="$CONFIG_FILES macosx/build/graphviz.pmdoc/02graphviz.xml" ;;
 
36890
    "windows/build/graphviz.wxs") CONFIG_FILES="$CONFIG_FILES windows/build/graphviz.wxs" ;;
 
36891
    "windows/Properties/AssemblyInfo.cs") CONFIG_FILES="$CONFIG_FILES windows/Properties/AssemblyInfo.cs" ;;
 
36892
    "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
 
36893
    "plugin/core/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/core/Makefile" ;;
 
36894
    "plugin/devil/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/devil/Makefile" ;;
 
36895
    "plugin/gd/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gd/Makefile" ;;
 
36896
    "plugin/gdk_pixbuf/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gdk_pixbuf/Makefile" ;;
 
36897
    "plugin/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gdiplus/Makefile" ;;
 
36898
    "plugin/glitz/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/glitz/Makefile" ;;
 
36899
    "plugin/gs/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gs/Makefile" ;;
 
36900
    "plugin/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gtk/Makefile" ;;
 
36901
    "plugin/lasi/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/lasi/Makefile" ;;
 
36902
    "plugin/ming/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/ming/Makefile" ;;
 
36903
    "plugin/pango/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/pango/Makefile" ;;
 
36904
    "plugin/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/quartz/Makefile" ;;
 
36905
    "plugin/rsvg/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/rsvg/Makefile" ;;
 
36906
    "plugin/visio/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/visio/Makefile" ;;
 
36907
    "plugin/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/xlib/Makefile" ;;
 
36908
    "plugin/dot_layout/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/dot_layout/Makefile" ;;
 
36909
    "plugin/neato_layout/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/neato_layout/Makefile" ;;
 
36910
    "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
 
36911
    "cmd/dot/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dot/Makefile" ;;
 
36912
    "cmd/tools/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/tools/Makefile" ;;
 
36913
    "cmd/gvpr/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/gvpr/Makefile" ;;
 
36914
    "cmd/lefty/ws/x11/libfilereq/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/ws/x11/libfilereq/Makefile" ;;
 
36915
    "cmd/lefty/ws/x11/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/ws/x11/Makefile" ;;
 
36916
    "cmd/lefty/ws/mswin32/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/ws/mswin32/Makefile" ;;
 
36917
    "cmd/lefty/ws/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/ws/Makefile" ;;
 
36918
    "cmd/lefty/os/unix/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/os/unix/Makefile" ;;
 
36919
    "cmd/lefty/os/mswin32/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/os/mswin32/Makefile" ;;
 
36920
    "cmd/lefty/os/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/os/Makefile" ;;
 
36921
    "cmd/lefty/dot2l/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/dot2l/Makefile" ;;
 
36922
    "cmd/lefty/examples/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/examples/Makefile" ;;
 
36923
    "cmd/lefty/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lefty/Makefile" ;;
 
36924
    "cmd/lneato/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/lneato/Makefile" ;;
 
36925
    "cmd/dotty/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dotty/Makefile" ;;
 
36926
    "cmd/smyrna/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/smyrna/Makefile" ;;
 
36927
    "tclpkg/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/Makefile" ;;
 
36928
    "tclpkg/tclstubs/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclstubs/Makefile" ;;
 
36929
    "tclpkg/tkstubs/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tkstubs/Makefile" ;;
 
36930
    "tclpkg/tclhandle/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclhandle/Makefile" ;;
 
36931
    "tclpkg/gdtclft/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gdtclft/Makefile" ;;
 
36932
    "tclpkg/gdtclft/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gdtclft/demo/Makefile" ;;
 
36933
    "tclpkg/tcldot/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tcldot/Makefile" ;;
 
36934
    "tclpkg/tcldot/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tcldot/demo/Makefile" ;;
 
36935
    "tclpkg/tclpathplan/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclpathplan/Makefile" ;;
 
36936
    "tclpkg/tclpathplan/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclpathplan/demo/Makefile" ;;
 
36937
    "tclpkg/tclpathplan/demo/pathplan_data/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclpathplan/demo/pathplan_data/Makefile" ;;
 
36938
    "tclpkg/tkspline/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tkspline/Makefile" ;;
 
36939
    "tclpkg/tkspline/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tkspline/demo/Makefile" ;;
 
36940
    "tclpkg/gv/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gv/Makefile" ;;
 
36941
    "tclpkg/gv/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gv/demo/Makefile" ;;
 
36942
    "tclpkg/gv/META.gv") CONFIG_FILES="$CONFIG_FILES tclpkg/gv/META.gv" ;;
 
36943
    "rtest/Makefile") CONFIG_FILES="$CONFIG_FILES rtest/Makefile" ;;
 
36944
    "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
 
36945
    "share/examples/Makefile") CONFIG_FILES="$CONFIG_FILES share/examples/Makefile" ;;
 
36946
    "share/gui/Makefile") CONFIG_FILES="$CONFIG_FILES share/gui/Makefile" ;;
 
36947
    "graphviz.spec") CONFIG_FILES="$CONFIG_FILES graphviz.spec" ;;
 
36948
    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
 
36949
 
 
36950
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
36951
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
36952
   { (exit 1); exit 1; }; };;
 
36953
  esac
 
36954
done
 
36955
 
 
36956
 
 
36957
# If the user did not use the arguments to specify the items to instantiate,
 
36958
# then the envvar interface is used.  Set only those that are not.
 
36959
# We use the long form for the default assignment because of an extremely
 
36960
# bizarre bug on SunOS 4.1.3.
 
36961
if $ac_need_defaults; then
 
36962
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
36963
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
36964
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
36965
fi
 
36966
 
 
36967
# Have a temporary directory for convenience.  Make it in the build tree
 
36968
# simply because there is no reason against having it here, and in addition,
 
36969
# creating and moving files from /tmp can sometimes cause problems.
 
36970
# Hook for its removal unless debugging.
 
36971
# Note that there is a small window in which the directory will not be cleaned:
 
36972
# after its creation but before its name has been assigned to `$tmp'.
 
36973
$debug ||
 
36974
{
 
36975
  tmp=
 
36976
  trap 'exit_status=$?
 
36977
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
36978
' 0
 
36979
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
36980
}
 
36981
# Create a (secure) tmp directory for tmp files.
 
36982
 
 
36983
{
 
36984
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
36985
  test -n "$tmp" && test -d "$tmp"
 
36986
}  ||
 
36987
{
 
36988
  tmp=./conf$$-$RANDOM
 
36989
  (umask 077 && mkdir "$tmp")
 
36990
} ||
 
36991
{
 
36992
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
36993
   { (exit 1); exit 1; }
 
36994
}
 
36995
 
 
36996
# Set up the scripts for CONFIG_FILES section.
 
36997
# No need to generate them if there are no CONFIG_FILES.
 
36998
# This happens for instance with `./config.status config.h'.
 
36999
if test -n "$CONFIG_FILES"; then
 
37000
 
 
37001
 
 
37002
ac_cr='
 
 
b"'"
 
37003
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
37004
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
37005
  ac_cs_awk_cr='\\r'
 
37006
else
 
37007
  ac_cs_awk_cr=$ac_cr
 
37008
fi
 
37009
 
 
37010
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
37011
_ACEOF
 
37012
 
 
37013
 
 
37014
{
 
37015
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
37016
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
37017
  echo "_ACEOF"
 
37018
} >conf$$subs.sh ||
 
37019
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
37020
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
37021
   { (exit 1); exit 1; }; }
 
37022
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
37023
ac_delim='%!_!# '
 
37024
for ac_last_try in false false false false false :; do
 
37025
  . ./conf$$subs.sh ||
 
37026
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
37027
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
37028
   { (exit 1); exit 1; }; }
 
37029
 
 
37030
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
37031
  if test $ac_delim_n = $ac_delim_num; then
 
37032
    break
 
37033
  elif $ac_last_try; then
 
37034
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
37035
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
37036
   { (exit 1); exit 1; }; }
 
37037
  else
 
37038
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
37039
  fi
 
37040
done
 
37041
rm -f conf$$subs.sh
 
37042
 
 
37043
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
37044
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
37045
_ACEOF
 
37046
sed -n '
 
37047
h
 
37048
s/^/S["/; s/!.*/"]=/
 
37049
p
 
37050
g
 
37051
s/^[^!]*!//
 
37052
:repl
 
37053
t repl
 
37054
s/'"$ac_delim"'$//
 
37055
t delim
 
37056
:nl
 
37057
h
 
37058
s/\(.\{148\}\).*/\1/
 
37059
t more1
 
37060
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
37061
p
 
37062
n
 
37063
b repl
 
37064
:more1
 
37065
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
37066
p
 
37067
g
 
37068
s/.\{148\}//
 
37069
t nl
 
37070
:delim
 
37071
h
 
37072
s/\(.\{148\}\).*/\1/
 
37073
t more2
 
37074
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
37075
p
 
37076
b
 
37077
:more2
 
37078
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
37079
p
 
37080
g
 
37081
s/.\{148\}//
 
37082
t delim
 
37083
' <conf$$subs.awk | sed '
 
37084
/^[^""]/{
 
37085
  N
 
37086
  s/\n//
 
37087
}
 
37088
' >>$CONFIG_STATUS || ac_write_fail=1
 
37089
rm -f conf$$subs.awk
 
37090
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
37091
_ACAWK
 
37092
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
37093
  for (key in S) S_is_set[key] = 1
 
37094
  FS = ""
 
37095
 
 
37096
}
 
37097
{
 
37098
  line = $ 0
 
37099
  nfields = split(line, field, "@")
 
37100
  substed = 0
 
37101
  len = length(field[1])
 
37102
  for (i = 2; i < nfields; i++) {
 
37103
    key = field[i]
 
37104
    keylen = length(key)
 
37105
    if (S_is_set[key]) {
 
37106
      value = S[key]
 
37107
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
37108
      len += length(value) + length(field[++i])
 
37109
      substed = 1
 
37110
    } else
 
37111
      len += 1 + keylen
 
37112
  }
 
37113
 
 
37114
  print line
 
37115
}
 
37116
 
 
37117
_ACAWK
 
37118
_ACEOF
 
37119
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
37120
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
37121
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
37122
else
 
37123
  cat
 
37124
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
37125
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
37126
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
37127
   { (exit 1); exit 1; }; }
 
37128
_ACEOF
 
37129
 
 
37130
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
37131
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
37132
# trailing colons and then remove the whole line if VPATH becomes empty
 
37133
# (actually we leave an empty line to preserve line numbers).
 
37134
if test "x$srcdir" = x.; then
 
37135
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
37136
s/:*\$(srcdir):*/:/
 
37137
s/:*\${srcdir}:*/:/
 
37138
s/:*@srcdir@:*/:/
 
37139
s/^\([^=]*=[     ]*\):*/\1/
 
37140
s/:*$//
 
37141
s/^[^=]*=[       ]*$//
 
37142
}'
 
37143
fi
 
37144
 
 
37145
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
37146
fi # test -n "$CONFIG_FILES"
 
37147
 
 
37148
# Set up the scripts for CONFIG_HEADERS section.
 
37149
# No need to generate them if there are no CONFIG_HEADERS.
 
37150
# This happens for instance with `./config.status Makefile'.
 
37151
if test -n "$CONFIG_HEADERS"; then
 
37152
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
37153
BEGIN {
 
37154
_ACEOF
 
37155
 
 
37156
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
37157
# here-document in config.status, that substitutes the proper values into
 
37158
# config.h.in to produce config.h.
 
37159
 
 
37160
# Create a delimiter string that does not exist in confdefs.h, to ease
 
37161
# handling of long lines.
 
37162
ac_delim='%!_!# '
 
37163
for ac_last_try in false false :; do
 
37164
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
37165
  if test -z "$ac_t"; then
 
37166
    break
 
37167
  elif $ac_last_try; then
 
37168
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
37169
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
37170
   { (exit 1); exit 1; }; }
 
37171
  else
 
37172
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
37173
  fi
 
37174
done
 
37175
 
 
37176
# For the awk script, D is an array of macro values keyed by name,
 
37177
# likewise P contains macro parameters if any.  Preserve backslash
 
37178
# newline sequences.
 
37179
 
 
37180
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
37181
sed -n '
 
37182
s/.\{148\}/&'"$ac_delim"'/g
 
37183
t rset
 
37184
:rset
 
37185
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
37186
t def
 
37187
d
 
37188
:def
 
37189
s/\\$//
 
37190
t bsnl
 
37191
s/["\\]/\\&/g
 
37192
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
37193
D["\1"]=" \3"/p
 
37194
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
37195
d
 
37196
:bsnl
 
37197
s/["\\]/\\&/g
 
37198
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
37199
D["\1"]=" \3\\\\\\n"\\/p
 
37200
t cont
 
37201
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
37202
t cont
 
37203
d
 
37204
:cont
 
37205
n
 
37206
s/.\{148\}/&'"$ac_delim"'/g
 
37207
t clear
 
37208
:clear
 
37209
s/\\$//
 
37210
t bsnlc
 
37211
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
37212
d
 
37213
:bsnlc
 
37214
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
37215
b cont
 
37216
' <confdefs.h | sed '
 
37217
s/'"$ac_delim"'/"\\\
 
37218
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
37219
 
 
37220
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
37221
  for (key in D) D_is_set[key] = 1
 
37222
  FS = ""
 
37223
}
 
37224
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
37225
  line = \$ 0
 
37226
  split(line, arg, " ")
 
37227
  if (arg[1] == "#") {
 
37228
    defundef = arg[2]
 
37229
    mac1 = arg[3]
 
37230
  } else {
 
37231
    defundef = substr(arg[1], 2)
 
37232
    mac1 = arg[2]
 
37233
  }
 
37234
  split(mac1, mac2, "(") #)
 
37235
  macro = mac2[1]
 
37236
  prefix = substr(line, 1, index(line, defundef) - 1)
 
37237
  if (D_is_set[macro]) {
 
37238
    # Preserve the white space surrounding the "#".
 
37239
    print prefix "define", macro P[macro] D[macro]
 
37240
    next
 
37241
  } else {
 
37242
    # Replace #undef with comments.  This is necessary, for example,
 
37243
    # in the case of _POSIX_SOURCE, which is predefined and required
 
37244
    # on some systems where configure will not decide to define it.
 
37245
    if (defundef == "undef") {
 
37246
      print "/*", prefix defundef, macro, "*/"
 
37247
      next
 
37248
    }
 
37249
  }
 
37250
}
 
37251
{ print }
 
37252
_ACAWK
 
37253
_ACEOF
 
37254
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
37255
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
37256
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
37257
   { (exit 1); exit 1; }; }
 
37258
fi # test -n "$CONFIG_HEADERS"
 
37259
 
 
37260
 
 
37261
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
37262
shift
 
37263
for ac_tag
 
37264
do
 
37265
  case $ac_tag in
 
37266
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
37267
  esac
 
37268
  case $ac_mode$ac_tag in
 
37269
  :[FHL]*:*);;
 
37270
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
37271
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
37272
   { (exit 1); exit 1; }; };;
 
37273
  :[FH]-) ac_tag=-:-;;
 
37274
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
37275
  esac
 
37276
  ac_save_IFS=$IFS
 
37277
  IFS=:
 
37278
  set x $ac_tag
 
37279
  IFS=$ac_save_IFS
 
37280
  shift
 
37281
  ac_file=$1
 
37282
  shift
 
37283
 
 
37284
  case $ac_mode in
 
37285
  :L) ac_source=$1;;
 
37286
  :[FH])
 
37287
    ac_file_inputs=
 
37288
    for ac_f
 
37289
    do
 
37290
      case $ac_f in
 
37291
      -) ac_f="$tmp/stdin";;
 
37292
      *) # Look for the file first in the build tree, then in the source tree
 
37293
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
37294
         # because $ac_f cannot contain `:'.
 
37295
         test -f "$ac_f" ||
 
37296
           case $ac_f in
 
37297
           [\\/$]*) false;;
 
37298
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
37299
           esac ||
 
37300
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
37301
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
37302
   { (exit 1); exit 1; }; };;
 
37303
      esac
 
37304
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
37305
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
37306
    done
 
37307
 
 
37308
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
37309
    # use $as_me), people would be surprised to read:
 
37310
    #    /* config.h.  Generated by config.status.  */
 
37311
    configure_input='Generated from '`
 
37312
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
37313
        `' by configure.'
 
37314
    if test x"$ac_file" != x-; then
 
37315
      configure_input="$ac_file.  $configure_input"
 
37316
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
37317
$as_echo "$as_me: creating $ac_file" >&6;}
 
37318
    fi
 
37319
    # Neutralize special characters interpreted by sed in replacement strings.
 
37320
    case $configure_input in #(
 
37321
    *\&* | *\|* | *\\* )
 
37322
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
37323
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
37324
    *) ac_sed_conf_input=$configure_input;;
 
37325
    esac
 
37326
 
 
37327
    case $ac_tag in
 
37328
    *:-:* | *:-) cat >"$tmp/stdin" \
 
37329
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
37330
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
37331
   { (exit 1); exit 1; }; } ;;
 
37332
    esac
 
37333
    ;;
 
37334
  esac
 
37335
 
 
37336
  ac_dir=`$as_dirname -- "$ac_file" ||
 
37337
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
37338
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
37339
         X"$ac_file" : 'X\(//\)$' \| \
 
37340
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
37341
$as_echo X"$ac_file" |
 
37342
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37343
            s//\1/
 
37344
            q
 
37345
          }
 
37346
          /^X\(\/\/\)[^/].*/{
 
37347
            s//\1/
 
37348
            q
 
37349
          }
 
37350
          /^X\(\/\/\)$/{
 
37351
            s//\1/
 
37352
            q
 
37353
          }
 
37354
          /^X\(\/\).*/{
 
37355
            s//\1/
 
37356
            q
 
37357
          }
 
37358
          s/.*/./; q'`
 
37359
  { as_dir="$ac_dir"
 
37360
  case $as_dir in #(
 
37361
  -*) as_dir=./$as_dir;;
 
37362
  esac
 
37363
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
37364
    as_dirs=
 
37365
    while :; do
 
37366
      case $as_dir in #(
 
37367
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
37368
      *) as_qdir=$as_dir;;
 
37369
      esac
 
37370
      as_dirs="'$as_qdir' $as_dirs"
 
37371
      as_dir=`$as_dirname -- "$as_dir" ||
 
37372
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
37373
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
37374
         X"$as_dir" : 'X\(//\)$' \| \
 
37375
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
37376
$as_echo X"$as_dir" |
 
37377
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37378
            s//\1/
 
37379
            q
 
37380
          }
 
37381
          /^X\(\/\/\)[^/].*/{
 
37382
            s//\1/
 
37383
            q
 
37384
          }
 
37385
          /^X\(\/\/\)$/{
 
37386
            s//\1/
 
37387
            q
 
37388
          }
 
37389
          /^X\(\/\).*/{
 
37390
            s//\1/
 
37391
            q
 
37392
          }
 
37393
          s/.*/./; q'`
 
37394
      test -d "$as_dir" && break
 
37395
    done
 
37396
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
37397
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
37398
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
37399
   { (exit 1); exit 1; }; }; }
 
37400
  ac_builddir=.
 
37401
 
 
37402
case "$ac_dir" in
 
37403
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
37404
*)
 
37405
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
37406
  # A ".." for each directory in $ac_dir_suffix.
 
37407
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
37408
  case $ac_top_builddir_sub in
 
37409
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
37410
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
37411
  esac ;;
 
37412
esac
 
37413
ac_abs_top_builddir=$ac_pwd
 
37414
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
37415
# for backward compatibility:
 
37416
ac_top_builddir=$ac_top_build_prefix
 
37417
 
 
37418
case $srcdir in
 
37419
  .)  # We are building in place.
 
37420
    ac_srcdir=.
 
37421
    ac_top_srcdir=$ac_top_builddir_sub
 
37422
    ac_abs_top_srcdir=$ac_pwd ;;
 
37423
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
37424
    ac_srcdir=$srcdir$ac_dir_suffix;
 
37425
    ac_top_srcdir=$srcdir
 
37426
    ac_abs_top_srcdir=$srcdir ;;
 
37427
  *) # Relative name.
 
37428
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
37429
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
37430
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
37431
esac
 
37432
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
37433
 
 
37434
 
 
37435
  case $ac_mode in
 
37436
  :F)
 
37437
  #
 
37438
  # CONFIG_FILE
 
37439
  #
 
37440
 
 
37441
  case $INSTALL in
 
37442
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
37443
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
37444
  esac
 
37445
  ac_MKDIR_P=$MKDIR_P
 
37446
  case $MKDIR_P in
 
37447
  [\\/$]* | ?:[\\/]* ) ;;
 
37448
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
37449
  esac
 
37450
_ACEOF
 
37451
 
 
37452
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
37453
# If the template does not know about datarootdir, expand it.
 
37454
# FIXME: This hack should be removed a few years after 2.60.
 
37455
ac_datarootdir_hack=; ac_datarootdir_seen=
 
37456
 
 
37457
ac_sed_dataroot='
 
37458
/datarootdir/ {
 
37459
  p
 
37460
  q
 
37461
}
 
37462
/@datadir@/p
 
37463
/@docdir@/p
 
37464
/@infodir@/p
 
37465
/@localedir@/p
 
37466
/@mandir@/p
 
37467
'
 
37468
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
37469
*datarootdir*) ac_datarootdir_seen=yes;;
 
37470
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
37471
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
37472
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
37473
_ACEOF
 
37474
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
37475
  ac_datarootdir_hack='
 
37476
  s&@datadir@&$datadir&g
 
37477
  s&@docdir@&$docdir&g
 
37478
  s&@infodir@&$infodir&g
 
37479
  s&@localedir@&$localedir&g
 
37480
  s&@mandir@&$mandir&g
 
37481
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
37482
esac
 
37483
_ACEOF
 
37484
 
 
37485
# Neutralize VPATH when `$srcdir' = `.'.
 
37486
# Shell code in configure.ac might set extrasub.
 
37487
# FIXME: do we really want to maintain this feature?
 
37488
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
37489
ac_sed_extra="$ac_vpsub
 
37490
$extrasub
 
37491
_ACEOF
 
37492
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
37493
:t
 
37494
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
37495
s|@configure_input@|$ac_sed_conf_input|;t t
 
37496
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
37497
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
37498
s&@srcdir@&$ac_srcdir&;t t
 
37499
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
37500
s&@top_srcdir@&$ac_top_srcdir&;t t
 
37501
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
37502
s&@builddir@&$ac_builddir&;t t
 
37503
s&@abs_builddir@&$ac_abs_builddir&;t t
 
37504
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
37505
s&@INSTALL@&$ac_INSTALL&;t t
 
37506
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
37507
$ac_datarootdir_hack
 
37508
"
 
37509
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
37510
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
37511
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
37512
   { (exit 1); exit 1; }; }
 
37513
 
 
37514
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
37515
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
37516
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
37517
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
37518
which seems to be undefined.  Please make sure it is defined." >&5
 
37519
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
37520
which seems to be undefined.  Please make sure it is defined." >&2;}
 
37521
 
 
37522
  rm -f "$tmp/stdin"
 
37523
  case $ac_file in
 
37524
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
37525
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
37526
  esac \
 
37527
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
37528
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
37529
   { (exit 1); exit 1; }; }
 
37530
 ;;
 
37531
  :H)
 
37532
  #
 
37533
  # CONFIG_HEADER
 
37534
  #
 
37535
  if test x"$ac_file" != x-; then
 
37536
    {
 
37537
      $as_echo "/* $configure_input  */" \
 
37538
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
37539
    } >"$tmp/config.h" \
 
37540
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
37541
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
37542
   { (exit 1); exit 1; }; }
 
37543
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
37544
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
37545
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
37546
    else
 
37547
      rm -f "$ac_file"
 
37548
      mv "$tmp/config.h" "$ac_file" \
 
37549
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
37550
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
37551
   { (exit 1); exit 1; }; }
 
37552
    fi
 
37553
  else
 
37554
    $as_echo "/* $configure_input  */" \
 
37555
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
37556
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
37557
$as_echo "$as_me: error: could not create -" >&2;}
 
37558
   { (exit 1); exit 1; }; }
 
37559
  fi
 
37560
# Compute "$ac_file"'s index in $config_headers.
 
37561
_am_arg="$ac_file"
 
37562
_am_stamp_count=1
 
37563
for _am_header in $config_headers :; do
 
37564
  case $_am_header in
 
37565
    $_am_arg | $_am_arg:* )
 
37566
      break ;;
 
37567
    * )
 
37568
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
37569
  esac
 
37570
done
 
37571
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
37572
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
37573
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
37574
         X"$_am_arg" : 'X\(//\)$' \| \
 
37575
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
37576
$as_echo X"$_am_arg" |
 
37577
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37578
            s//\1/
 
37579
            q
 
37580
          }
 
37581
          /^X\(\/\/\)[^/].*/{
 
37582
            s//\1/
 
37583
            q
 
37584
          }
 
37585
          /^X\(\/\/\)$/{
 
37586
            s//\1/
 
37587
            q
 
37588
          }
 
37589
          /^X\(\/\).*/{
 
37590
            s//\1/
 
37591
            q
 
37592
          }
 
37593
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
37594
 ;;
 
37595
 
 
37596
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
37597
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
37598
 ;;
 
37599
  esac
 
37600
 
 
37601
 
 
37602
  case $ac_file$ac_mode in
 
37603
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
37604
# are listed without --file.  Let's play safe and only enable the eval
 
37605
# if we detect the quoting.
 
37606
case $CONFIG_FILES in
 
37607
*\'*) eval set x "$CONFIG_FILES" ;;
 
37608
*)   set x $CONFIG_FILES ;;
 
37609
esac
 
37610
shift
 
37611
for mf
 
37612
do
 
37613
  # Strip MF so we end up with the name of the file.
 
37614
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
37615
  # Check whether this is an Automake generated Makefile or not.
 
37616
  # We used to match only the files named `Makefile.in', but
 
37617
  # some people rename them; so instead we look at the file content.
 
37618
  # Grep'ing the first line is not enough: some people post-process
 
37619
  # each Makefile.in and add a new line on top of each file to say so.
 
37620
  # Grep'ing the whole file is not good either: AIX grep has a line
 
37621
  # limit of 2048, but all sed's we know have understand at least 4000.
 
37622
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
37623
    dirpart=`$as_dirname -- "$mf" ||
 
37624
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
37625
         X"$mf" : 'X\(//\)[^/]' \| \
 
37626
         X"$mf" : 'X\(//\)$' \| \
 
37627
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
37628
$as_echo X"$mf" |
 
37629
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37630
            s//\1/
 
37631
            q
 
37632
          }
 
37633
          /^X\(\/\/\)[^/].*/{
 
37634
            s//\1/
 
37635
            q
 
37636
          }
 
37637
          /^X\(\/\/\)$/{
 
37638
            s//\1/
 
37639
            q
 
37640
          }
 
37641
          /^X\(\/\).*/{
 
37642
            s//\1/
 
37643
            q
 
37644
          }
 
37645
          s/.*/./; q'`
 
37646
  else
 
37647
    continue
 
37648
  fi
 
37649
  # Extract the definition of DEPDIR, am__include, and am__quote
 
37650
  # from the Makefile without running `make'.
 
37651
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
37652
  test -z "$DEPDIR" && continue
 
37653
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
37654
  test -z "am__include" && continue
 
37655
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
37656
  # When using ansi2knr, U may be empty or an underscore; expand it
 
37657
  U=`sed -n 's/^U = //p' < "$mf"`
 
37658
  # Find all dependency output files, they are included files with
 
37659
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
37660
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
37661
  # expansion.
 
37662
  for file in `sed -n "
 
37663
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
37664
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
37665
    # Make sure the directory exists.
 
37666
    test -f "$dirpart/$file" && continue
 
37667
    fdir=`$as_dirname -- "$file" ||
 
37668
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
37669
         X"$file" : 'X\(//\)[^/]' \| \
 
37670
         X"$file" : 'X\(//\)$' \| \
 
37671
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
37672
$as_echo X"$file" |
 
37673
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37674
            s//\1/
 
37675
            q
 
37676
          }
 
37677
          /^X\(\/\/\)[^/].*/{
 
37678
            s//\1/
 
37679
            q
 
37680
          }
 
37681
          /^X\(\/\/\)$/{
 
37682
            s//\1/
 
37683
            q
 
37684
          }
 
37685
          /^X\(\/\).*/{
 
37686
            s//\1/
 
37687
            q
 
37688
          }
 
37689
          s/.*/./; q'`
 
37690
    { as_dir=$dirpart/$fdir
 
37691
  case $as_dir in #(
 
37692
  -*) as_dir=./$as_dir;;
 
37693
  esac
 
37694
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
37695
    as_dirs=
 
37696
    while :; do
 
37697
      case $as_dir in #(
 
37698
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
37699
      *) as_qdir=$as_dir;;
 
37700
      esac
 
37701
      as_dirs="'$as_qdir' $as_dirs"
 
37702
      as_dir=`$as_dirname -- "$as_dir" ||
 
37703
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
37704
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
37705
         X"$as_dir" : 'X\(//\)$' \| \
 
37706
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
37707
$as_echo X"$as_dir" |
 
37708
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
37709
            s//\1/
 
37710
            q
 
37711
          }
 
37712
          /^X\(\/\/\)[^/].*/{
 
37713
            s//\1/
 
37714
            q
 
37715
          }
 
37716
          /^X\(\/\/\)$/{
 
37717
            s//\1/
 
37718
            q
 
37719
          }
 
37720
          /^X\(\/\).*/{
 
37721
            s//\1/
 
37722
            q
 
37723
          }
 
37724
          s/.*/./; q'`
 
37725
      test -d "$as_dir" && break
 
37726
    done
 
37727
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
37728
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
37729
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
37730
   { (exit 1); exit 1; }; }; }
 
37731
    # echo "creating $dirpart/$file"
 
37732
    echo '# dummy' > "$dirpart/$file"
 
37733
  done
 
37734
done
 
37735
 ;;
 
37736
    "libtool":C)
 
37737
 
 
37738
    # See if we are running on zsh, and set the options which allow our
 
37739
    # commands through without removal of \ escapes.
 
37740
    if test -n "${ZSH_VERSION+set}" ; then
 
37741
      setopt NO_GLOB_SUBST
 
37742
    fi
 
37743
 
 
37744
    cfgfile="${ofile}T"
 
37745
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
37746
    $RM "$cfgfile"
 
37747
 
 
37748
    cat <<_LT_EOF >> "$cfgfile"
 
37749
#! $SHELL
 
37750
 
 
37751
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
37752
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
37753
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
37754
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
37755
#
 
37756
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
37757
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
37758
#   Written by Gordon Matzigkeit, 1996
 
37759
#
 
37760
#   This file is part of GNU Libtool.
 
37761
#
 
37762
# GNU Libtool is free software; you can redistribute it and/or
 
37763
# modify it under the terms of the GNU General Public License as
 
37764
# published by the Free Software Foundation; either version 2 of
 
37765
# the License, or (at your option) any later version.
 
37766
#
 
37767
# As a special exception to the GNU General Public License,
 
37768
# if you distribute this file as part of a program or library that
 
37769
# is built using GNU Libtool, you may include this file under the
 
37770
# same distribution terms that you use for the rest of that program.
 
37771
#
 
37772
# GNU Libtool is distributed in the hope that it will be useful,
 
37773
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
37774
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
37775
# GNU General Public License for more details.
 
37776
#
 
37777
# You should have received a copy of the GNU General Public License
 
37778
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
37779
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
37780
# obtained by writing to the Free Software Foundation, Inc.,
 
37781
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
37782
 
 
37783
 
 
37784
# The names of the tagged configurations supported by this script.
 
37785
available_tags="CXX "
 
37786
 
 
37787
# ### BEGIN LIBTOOL CONFIG
 
37788
 
 
37789
# Whether or not to build static libraries.
 
37790
build_old_libs=$enable_static
 
37791
 
 
37792
# Whether or not to build shared libraries.
 
37793
build_libtool_libs=$enable_shared
 
37794
 
 
37795
# Which release of libtool.m4 was used?
 
37796
macro_version=$macro_version
 
37797
macro_revision=$macro_revision
 
37798
 
 
37799
# What type of objects to build.
 
37800
pic_mode=$pic_mode
 
37801
 
 
37802
# Whether or not to optimize for fast installation.
 
37803
fast_install=$enable_fast_install
 
37804
 
 
37805
# The host system.
 
37806
host_alias=$host_alias
 
37807
host=$host
 
37808
host_os=$host_os
 
37809
 
 
37810
# The build system.
 
37811
build_alias=$build_alias
 
37812
build=$build
 
37813
build_os=$build_os
 
37814
 
 
37815
# A sed program that does not truncate output.
 
37816
SED=$lt_SED
 
37817
 
 
37818
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
37819
Xsed="\$SED -e 1s/^X//"
 
37820
 
 
37821
# A grep program that handles long lines.
 
37822
GREP=$lt_GREP
 
37823
 
 
37824
# An ERE matcher.
 
37825
EGREP=$lt_EGREP
 
37826
 
 
37827
# A literal string matcher.
 
37828
FGREP=$lt_FGREP
 
37829
 
 
37830
# A BSD- or MS-compatible name lister.
 
37831
NM=$lt_NM
 
37832
 
 
37833
# Whether we need soft or hard links.
 
37834
LN_S=$lt_LN_S
 
37835
 
 
37836
# What is the maximum length of a command?
 
37837
max_cmd_len=$max_cmd_len
 
37838
 
 
37839
# Object file suffix (normally "o").
 
37840
objext=$ac_objext
 
37841
 
 
37842
# Executable file suffix (normally "").
 
37843
exeext=$exeext
 
37844
 
 
37845
# whether the shell understands "unset".
 
37846
lt_unset=$lt_unset
 
37847
 
 
37848
# turn spaces into newlines.
 
37849
SP2NL=$lt_lt_SP2NL
 
37850
 
 
37851
# turn newlines into spaces.
 
37852
NL2SP=$lt_lt_NL2SP
 
37853
 
 
37854
# How to create reloadable object files.
 
37855
reload_flag=$lt_reload_flag
 
37856
reload_cmds=$lt_reload_cmds
 
37857
 
 
37858
# An object symbol dumper.
 
37859
OBJDUMP=$lt_OBJDUMP
 
37860
 
 
37861
# Method to check whether dependent libraries are shared objects.
 
37862
deplibs_check_method=$lt_deplibs_check_method
 
37863
 
 
37864
# Command to use when deplibs_check_method == "file_magic".
 
37865
file_magic_cmd=$lt_file_magic_cmd
 
37866
 
 
37867
# The archiver.
 
37868
AR=$lt_AR
 
37869
AR_FLAGS=$lt_AR_FLAGS
 
37870
 
 
37871
# A symbol stripping program.
 
37872
STRIP=$lt_STRIP
 
37873
 
 
37874
# Commands used to install an old-style archive.
 
37875
RANLIB=$lt_RANLIB
 
37876
old_postinstall_cmds=$lt_old_postinstall_cmds
 
37877
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
37878
 
 
37879
# A C compiler.
 
37880
LTCC=$lt_CC
 
37881
 
 
37882
# LTCC compiler flags.
 
37883
LTCFLAGS=$lt_CFLAGS
 
37884
 
 
37885
# Take the output of nm and produce a listing of raw symbols and C names.
 
37886
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
37887
 
 
37888
# Transform the output of nm in a proper C declaration.
 
37889
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
37890
 
 
37891
# Transform the output of nm in a C name address pair.
 
37892
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
37893
 
 
37894
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
37895
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
37896
 
 
37897
# The name of the directory that contains temporary libtool files.
 
37898
objdir=$objdir
 
37899
 
 
37900
# Shell to use when invoking shell scripts.
 
37901
SHELL=$lt_SHELL
 
37902
 
 
37903
# An echo program that does not interpret backslashes.
 
37904
ECHO=$lt_ECHO
 
37905
 
 
37906
# Used to examine libraries when file_magic_cmd begins with "file".
 
37907
MAGIC_CMD=$MAGIC_CMD
 
37908
 
 
37909
# Must we lock files when doing compilation?
 
37910
need_locks=$lt_need_locks
 
37911
 
 
37912
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
37913
DSYMUTIL=$lt_DSYMUTIL
 
37914
 
 
37915
# Tool to change global to local symbols on Mac OS X.
 
37916
NMEDIT=$lt_NMEDIT
 
37917
 
 
37918
# Tool to manipulate fat objects and archives on Mac OS X.
 
37919
LIPO=$lt_LIPO
 
37920
 
 
37921
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
37922
OTOOL=$lt_OTOOL
 
37923
 
 
37924
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
37925
OTOOL64=$lt_OTOOL64
 
37926
 
 
37927
# Old archive suffix (normally "a").
 
37928
libext=$libext
 
37929
 
 
37930
# Shared library suffix (normally ".so").
 
37931
shrext_cmds=$lt_shrext_cmds
 
37932
 
 
37933
# The commands to extract the exported symbol list from a shared archive.
 
37934
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
37935
 
 
37936
# Variables whose values should be saved in libtool wrapper scripts and
 
37937
# restored at link time.
 
37938
variables_saved_for_relink=$lt_variables_saved_for_relink
 
37939
 
 
37940
# Do we need the "lib" prefix for modules?
 
37941
need_lib_prefix=$need_lib_prefix
 
37942
 
 
37943
# Do we need a version for libraries?
 
37944
need_version=$need_version
 
37945
 
 
37946
# Library versioning type.
 
37947
version_type=$version_type
 
37948
 
 
37949
# Shared library runtime path variable.
 
37950
runpath_var=$runpath_var
 
37951
 
 
37952
# Shared library path variable.
 
37953
shlibpath_var=$shlibpath_var
 
37954
 
 
37955
# Is shlibpath searched before the hard-coded library search path?
 
37956
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
37957
 
 
37958
# Format of library name prefix.
 
37959
libname_spec=$lt_libname_spec
 
37960
 
 
37961
# List of archive names.  First name is the real one, the rest are links.
 
37962
# The last name is the one that the linker finds with -lNAME
 
37963
library_names_spec=$lt_library_names_spec
 
37964
 
 
37965
# The coded name of the library, if different from the real name.
 
37966
soname_spec=$lt_soname_spec
 
37967
 
 
37968
# Command to use after installation of a shared archive.
 
37969
postinstall_cmds=$lt_postinstall_cmds
 
37970
 
 
37971
# Command to use after uninstallation of a shared archive.
 
37972
postuninstall_cmds=$lt_postuninstall_cmds
 
37973
 
 
37974
# Commands used to finish a libtool library installation in a directory.
 
37975
finish_cmds=$lt_finish_cmds
 
37976
 
 
37977
# As "finish_cmds", except a single script fragment to be evaled but
 
37978
# not shown.
 
37979
finish_eval=$lt_finish_eval
 
37980
 
 
37981
# Whether we should hardcode library paths into libraries.
 
37982
hardcode_into_libs=$hardcode_into_libs
 
37983
 
 
37984
# Compile-time system search path for libraries.
 
37985
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
37986
 
 
37987
# Run-time system search path for libraries.
 
37988
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
37989
 
 
37990
# Whether dlopen is supported.
 
37991
dlopen_support=$enable_dlopen
 
37992
 
 
37993
# Whether dlopen of programs is supported.
 
37994
dlopen_self=$enable_dlopen_self
 
37995
 
 
37996
# Whether dlopen of statically linked programs is supported.
 
37997
dlopen_self_static=$enable_dlopen_self_static
 
37998
 
 
37999
# Commands to strip libraries.
 
38000
old_striplib=$lt_old_striplib
 
38001
striplib=$lt_striplib
 
38002
 
 
38003
 
 
38004
# The linker used to build libraries.
 
38005
LD=$lt_LD
 
38006
 
 
38007
# Commands used to build an old-style archive.
 
38008
old_archive_cmds=$lt_old_archive_cmds
 
38009
 
 
38010
# A language specific compiler.
 
38011
CC=$lt_compiler
 
38012
 
 
38013
# Is the compiler the GNU compiler?
 
38014
with_gcc=$GCC
 
38015
 
 
38016
# Compiler flag to turn off builtin functions.
 
38017
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
38018
 
 
38019
# How to pass a linker flag through the compiler.
 
38020
wl=$lt_lt_prog_compiler_wl
 
38021
 
 
38022
# Additional compiler flags for building library objects.
 
38023
pic_flag=$lt_lt_prog_compiler_pic
 
38024
 
 
38025
# Compiler flag to prevent dynamic linking.
 
38026
link_static_flag=$lt_lt_prog_compiler_static
 
38027
 
 
38028
# Does compiler simultaneously support -c and -o options?
 
38029
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
38030
 
 
38031
# Whether or not to add -lc for building shared libraries.
 
38032
build_libtool_need_lc=$archive_cmds_need_lc
 
38033
 
 
38034
# Whether or not to disallow shared libs when runtime libs are static.
 
38035
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
38036
 
 
38037
# Compiler flag to allow reflexive dlopens.
 
38038
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
38039
 
 
38040
# Compiler flag to generate shared objects directly from archives.
 
38041
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
38042
 
 
38043
# Whether the compiler copes with passing no objects directly.
 
38044
compiler_needs_object=$lt_compiler_needs_object
 
38045
 
 
38046
# Create an old-style archive from a shared archive.
 
38047
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
38048
 
 
38049
# Create a temporary old-style archive to link instead of a shared archive.
 
38050
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
38051
 
 
38052
# Commands used to build a shared archive.
 
38053
archive_cmds=$lt_archive_cmds
 
38054
archive_expsym_cmds=$lt_archive_expsym_cmds
 
38055
 
 
38056
# Commands used to build a loadable module if different from building
 
38057
# a shared archive.
 
38058
module_cmds=$lt_module_cmds
 
38059
module_expsym_cmds=$lt_module_expsym_cmds
 
38060
 
 
38061
# Whether we are building with GNU ld or not.
 
38062
with_gnu_ld=$lt_with_gnu_ld
 
38063
 
 
38064
# Flag that allows shared libraries with undefined symbols to be built.
 
38065
allow_undefined_flag=$lt_allow_undefined_flag
 
38066
 
 
38067
# Flag that enforces no undefined symbols.
 
38068
no_undefined_flag=$lt_no_undefined_flag
 
38069
 
 
38070
# Flag to hardcode \$libdir into a binary during linking.
 
38071
# This must work even if \$libdir does not exist
 
38072
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
38073
 
 
38074
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
38075
# during linking.  This must work even if \$libdir does not exist.
 
38076
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
38077
 
 
38078
# Whether we need a single "-rpath" flag with a separated argument.
 
38079
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
38080
 
 
38081
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
38082
# DIR into the resulting binary.
 
38083
hardcode_direct=$hardcode_direct
 
38084
 
 
38085
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
38086
# DIR into the resulting binary and the resulting library dependency is
 
38087
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
38088
# library is relocated.
 
38089
hardcode_direct_absolute=$hardcode_direct_absolute
 
38090
 
 
38091
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
38092
# into the resulting binary.
 
38093
hardcode_minus_L=$hardcode_minus_L
 
38094
 
 
38095
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
38096
# into the resulting binary.
 
38097
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
38098
 
 
38099
# Set to "yes" if building a shared library automatically hardcodes DIR
 
38100
# into the library and all subsequent libraries and executables linked
 
38101
# against it.
 
38102
hardcode_automatic=$hardcode_automatic
 
38103
 
 
38104
# Set to yes if linker adds runtime paths of dependent libraries
 
38105
# to runtime path list.
 
38106
inherit_rpath=$inherit_rpath
 
38107
 
 
38108
# Whether libtool must link a program against all its dependency libraries.
 
38109
link_all_deplibs=$link_all_deplibs
 
38110
 
 
38111
# Fix the shell variable \$srcfile for the compiler.
 
38112
fix_srcfile_path=$lt_fix_srcfile_path
 
38113
 
 
38114
# Set to "yes" if exported symbols are required.
 
38115
always_export_symbols=$always_export_symbols
 
38116
 
 
38117
# The commands to list exported symbols.
 
38118
export_symbols_cmds=$lt_export_symbols_cmds
 
38119
 
 
38120
# Symbols that should not be listed in the preloaded symbols.
 
38121
exclude_expsyms=$lt_exclude_expsyms
 
38122
 
 
38123
# Symbols that must always be exported.
 
38124
include_expsyms=$lt_include_expsyms
 
38125
 
 
38126
# Commands necessary for linking programs (against libraries) with templates.
 
38127
prelink_cmds=$lt_prelink_cmds
 
38128
 
 
38129
# Specify filename containing input files.
 
38130
file_list_spec=$lt_file_list_spec
 
38131
 
 
38132
# How to hardcode a shared library path into an executable.
 
38133
hardcode_action=$hardcode_action
 
38134
 
 
38135
# The directories searched by this compiler when creating a shared library.
 
38136
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
38137
 
 
38138
# Dependencies to place before and after the objects being linked to
 
38139
# create a shared library.
 
38140
predep_objects=$lt_predep_objects
 
38141
postdep_objects=$lt_postdep_objects
 
38142
predeps=$lt_predeps
 
38143
postdeps=$lt_postdeps
 
38144
 
 
38145
# The library search path used internally by the compiler when linking
 
38146
# a shared library.
 
38147
compiler_lib_search_path=$lt_compiler_lib_search_path
 
38148
 
 
38149
# ### END LIBTOOL CONFIG
 
38150
 
 
38151
_LT_EOF
 
38152
 
 
38153
  case $host_os in
 
38154
  aix3*)
 
38155
    cat <<\_LT_EOF >> "$cfgfile"
 
38156
# AIX sometimes has problems with the GCC collect2 program.  For some
 
38157
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
38158
# vanish in a puff of smoke.
 
38159
if test "X${COLLECT_NAMES+set}" != Xset; then
 
38160
  COLLECT_NAMES=
 
38161
  export COLLECT_NAMES
 
38162
fi
 
38163
_LT_EOF
 
38164
    ;;
 
38165
  esac
 
38166
 
 
38167
 
 
38168
ltmain="$ac_aux_dir/ltmain.sh"
 
38169
 
 
38170
 
 
38171
  # We use sed instead of cat because bash on DJGPP gets confused if
 
38172
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
38173
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
38174
  # is reportedly fixed, but why not run on old versions too?
 
38175
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
38176
    || (rm -f "$cfgfile"; exit 1)
 
38177
 
 
38178
  case $xsi_shell in
 
38179
  yes)
 
38180
    cat << \_LT_EOF >> "$cfgfile"
 
38181
 
 
38182
# func_dirname file append nondir_replacement
 
38183
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
38184
# otherwise set result to NONDIR_REPLACEMENT.
 
38185
func_dirname ()
 
38186
{
 
38187
  case ${1} in
 
38188
    */*) func_dirname_result="${1%/*}${2}" ;;
 
38189
    *  ) func_dirname_result="${3}" ;;
 
38190
  esac
 
38191
}
 
38192
 
 
38193
# func_basename file
 
38194
func_basename ()
 
38195
{
 
38196
  func_basename_result="${1##*/}"
 
38197
}
 
38198
 
 
38199
# func_dirname_and_basename file append nondir_replacement
 
38200
# perform func_basename and func_dirname in a single function
 
38201
# call:
 
38202
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
38203
#             add APPEND to the result, otherwise set result
 
38204
#             to NONDIR_REPLACEMENT.
 
38205
#             value returned in "$func_dirname_result"
 
38206
#   basename: Compute filename of FILE.
 
38207
#             value retuned in "$func_basename_result"
 
38208
# Implementation must be kept synchronized with func_dirname
 
38209
# and func_basename. For efficiency, we do not delegate to
 
38210
# those functions but instead duplicate the functionality here.
 
38211
func_dirname_and_basename ()
 
38212
{
 
38213
  case ${1} in
 
38214
    */*) func_dirname_result="${1%/*}${2}" ;;
 
38215
    *  ) func_dirname_result="${3}" ;;
 
38216
  esac
 
38217
  func_basename_result="${1##*/}"
 
38218
}
 
38219
 
 
38220
# func_stripname prefix suffix name
 
38221
# strip PREFIX and SUFFIX off of NAME.
 
38222
# PREFIX and SUFFIX must not contain globbing or regex special
 
38223
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
38224
# dot (in which case that matches only a dot).
 
38225
func_stripname ()
 
38226
{
 
38227
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
38228
  # positional parameters, so assign one to ordinary parameter first.
 
38229
  func_stripname_result=${3}
 
38230
  func_stripname_result=${func_stripname_result#"${1}"}
 
38231
  func_stripname_result=${func_stripname_result%"${2}"}
 
38232
}
 
38233
 
 
38234
# func_opt_split
 
38235
func_opt_split ()
 
38236
{
 
38237
  func_opt_split_opt=${1%%=*}
 
38238
  func_opt_split_arg=${1#*=}
 
38239
}
 
38240
 
 
38241
# func_lo2o object
 
38242
func_lo2o ()
 
38243
{
 
38244
  case ${1} in
 
38245
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
38246
    *)    func_lo2o_result=${1} ;;
 
38247
  esac
 
38248
}
 
38249
 
 
38250
# func_xform libobj-or-source
 
38251
func_xform ()
 
38252
{
 
38253
  func_xform_result=${1%.*}.lo
 
38254
}
 
38255
 
 
38256
# func_arith arithmetic-term...
 
38257
func_arith ()
 
38258
{
 
38259
  func_arith_result=$(( $* ))
 
38260
}
 
38261
 
 
38262
# func_len string
 
38263
# STRING may not start with a hyphen.
 
38264
func_len ()
 
38265
{
 
38266
  func_len_result=${#1}
 
38267
}
 
38268
 
 
38269
_LT_EOF
 
38270
    ;;
 
38271
  *) # Bourne compatible functions.
 
38272
    cat << \_LT_EOF >> "$cfgfile"
 
38273
 
 
38274
# func_dirname file append nondir_replacement
 
38275
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
38276
# otherwise set result to NONDIR_REPLACEMENT.
 
38277
func_dirname ()
 
38278
{
 
38279
  # Extract subdirectory from the argument.
 
38280
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
38281
  if test "X$func_dirname_result" = "X${1}"; then
 
38282
    func_dirname_result="${3}"
 
38283
  else
 
38284
    func_dirname_result="$func_dirname_result${2}"
 
38285
  fi
 
38286
}
 
38287
 
 
38288
# func_basename file
 
38289
func_basename ()
 
38290
{
 
38291
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
38292
}
 
38293
 
 
38294
 
 
38295
# func_stripname prefix suffix name
 
38296
# strip PREFIX and SUFFIX off of NAME.
 
38297
# PREFIX and SUFFIX must not contain globbing or regex special
 
38298
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
38299
# dot (in which case that matches only a dot).
 
38300
# func_strip_suffix prefix name
 
38301
func_stripname ()
 
38302
{
 
38303
  case ${2} in
 
38304
    .*) func_stripname_result=`$ECHO "X${3}" \
 
38305
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
38306
    *)  func_stripname_result=`$ECHO "X${3}" \
 
38307
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
38308
  esac
 
38309
}
 
38310
 
 
38311
# sed scripts:
 
38312
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
38313
my_sed_long_arg='1s/^-[^=]*=//'
 
38314
 
 
38315
# func_opt_split
 
38316
func_opt_split ()
 
38317
{
 
38318
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
38319
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
38320
}
 
38321
 
 
38322
# func_lo2o object
 
38323
func_lo2o ()
 
38324
{
 
38325
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
38326
}
 
38327
 
 
38328
# func_xform libobj-or-source
 
38329
func_xform ()
 
38330
{
 
38331
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
38332
}
 
38333
 
 
38334
# func_arith arithmetic-term...
 
38335
func_arith ()
 
38336
{
 
38337
  func_arith_result=`expr "$@"`
 
38338
}
 
38339
 
 
38340
# func_len string
 
38341
# STRING may not start with a hyphen.
 
38342
func_len ()
 
38343
{
 
38344
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
38345
}
 
38346
 
 
38347
_LT_EOF
 
38348
esac
 
38349
 
 
38350
case $lt_shell_append in
 
38351
  yes)
 
38352
    cat << \_LT_EOF >> "$cfgfile"
 
38353
 
 
38354
# func_append var value
 
38355
# Append VALUE to the end of shell variable VAR.
 
38356
func_append ()
 
38357
{
 
38358
  eval "$1+=\$2"
 
38359
}
 
38360
_LT_EOF
 
38361
    ;;
 
38362
  *)
 
38363
    cat << \_LT_EOF >> "$cfgfile"
 
38364
 
 
38365
# func_append var value
 
38366
# Append VALUE to the end of shell variable VAR.
 
38367
func_append ()
 
38368
{
 
38369
  eval "$1=\$$1\$2"
 
38370
}
 
38371
 
 
38372
_LT_EOF
 
38373
    ;;
 
38374
  esac
 
38375
 
 
38376
 
 
38377
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
38378
    || (rm -f "$cfgfile"; exit 1)
 
38379
 
 
38380
  mv -f "$cfgfile" "$ofile" ||
 
38381
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
38382
  chmod +x "$ofile"
 
38383
 
 
38384
 
 
38385
    cat <<_LT_EOF >> "$ofile"
 
38386
 
 
38387
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
38388
 
 
38389
# The linker used to build libraries.
 
38390
LD=$lt_LD_CXX
 
38391
 
 
38392
# Commands used to build an old-style archive.
 
38393
old_archive_cmds=$lt_old_archive_cmds_CXX
 
38394
 
 
38395
# A language specific compiler.
 
38396
CC=$lt_compiler_CXX
 
38397
 
 
38398
# Is the compiler the GNU compiler?
 
38399
with_gcc=$GCC_CXX
 
38400
 
 
38401
# Compiler flag to turn off builtin functions.
 
38402
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
38403
 
 
38404
# How to pass a linker flag through the compiler.
 
38405
wl=$lt_lt_prog_compiler_wl_CXX
 
38406
 
 
38407
# Additional compiler flags for building library objects.
 
38408
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
38409
 
 
38410
# Compiler flag to prevent dynamic linking.
 
38411
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
38412
 
 
38413
# Does compiler simultaneously support -c and -o options?
 
38414
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
38415
 
 
38416
# Whether or not to add -lc for building shared libraries.
 
38417
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
38418
 
 
38419
# Whether or not to disallow shared libs when runtime libs are static.
 
38420
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
38421
 
 
38422
# Compiler flag to allow reflexive dlopens.
 
38423
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
38424
 
 
38425
# Compiler flag to generate shared objects directly from archives.
 
38426
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
38427
 
 
38428
# Whether the compiler copes with passing no objects directly.
 
38429
compiler_needs_object=$lt_compiler_needs_object_CXX
 
38430
 
 
38431
# Create an old-style archive from a shared archive.
 
38432
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
38433
 
 
38434
# Create a temporary old-style archive to link instead of a shared archive.
 
38435
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
38436
 
 
38437
# Commands used to build a shared archive.
 
38438
archive_cmds=$lt_archive_cmds_CXX
 
38439
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
38440
 
 
38441
# Commands used to build a loadable module if different from building
 
38442
# a shared archive.
 
38443
module_cmds=$lt_module_cmds_CXX
 
38444
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
38445
 
 
38446
# Whether we are building with GNU ld or not.
 
38447
with_gnu_ld=$lt_with_gnu_ld_CXX
 
38448
 
 
38449
# Flag that allows shared libraries with undefined symbols to be built.
 
38450
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
38451
 
 
38452
# Flag that enforces no undefined symbols.
 
38453
no_undefined_flag=$lt_no_undefined_flag_CXX
 
38454
 
 
38455
# Flag to hardcode \$libdir into a binary during linking.
 
38456
# This must work even if \$libdir does not exist
 
38457
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
38458
 
 
38459
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
38460
# during linking.  This must work even if \$libdir does not exist.
 
38461
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
38462
 
 
38463
# Whether we need a single "-rpath" flag with a separated argument.
 
38464
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
38465
 
 
38466
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
38467
# DIR into the resulting binary.
 
38468
hardcode_direct=$hardcode_direct_CXX
 
38469
 
 
38470
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
38471
# DIR into the resulting binary and the resulting library dependency is
 
38472
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
38473
# library is relocated.
 
38474
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
38475
 
 
38476
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
38477
# into the resulting binary.
 
38478
hardcode_minus_L=$hardcode_minus_L_CXX
 
38479
 
 
38480
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
38481
# into the resulting binary.
 
38482
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
38483
 
 
38484
# Set to "yes" if building a shared library automatically hardcodes DIR
 
38485
# into the library and all subsequent libraries and executables linked
 
38486
# against it.
 
38487
hardcode_automatic=$hardcode_automatic_CXX
 
38488
 
 
38489
# Set to yes if linker adds runtime paths of dependent libraries
 
38490
# to runtime path list.
 
38491
inherit_rpath=$inherit_rpath_CXX
 
38492
 
 
38493
# Whether libtool must link a program against all its dependency libraries.
 
38494
link_all_deplibs=$link_all_deplibs_CXX
 
38495
 
 
38496
# Fix the shell variable \$srcfile for the compiler.
 
38497
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
38498
 
 
38499
# Set to "yes" if exported symbols are required.
 
38500
always_export_symbols=$always_export_symbols_CXX
 
38501
 
 
38502
# The commands to list exported symbols.
 
38503
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
38504
 
 
38505
# Symbols that should not be listed in the preloaded symbols.
 
38506
exclude_expsyms=$lt_exclude_expsyms_CXX
 
38507
 
 
38508
# Symbols that must always be exported.
 
38509
include_expsyms=$lt_include_expsyms_CXX
 
38510
 
 
38511
# Commands necessary for linking programs (against libraries) with templates.
 
38512
prelink_cmds=$lt_prelink_cmds_CXX
 
38513
 
 
38514
# Specify filename containing input files.
 
38515
file_list_spec=$lt_file_list_spec_CXX
 
38516
 
 
38517
# How to hardcode a shared library path into an executable.
 
38518
hardcode_action=$hardcode_action_CXX
 
38519
 
 
38520
# The directories searched by this compiler when creating a shared library.
 
38521
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
38522
 
 
38523
# Dependencies to place before and after the objects being linked to
 
38524
# create a shared library.
 
38525
predep_objects=$lt_predep_objects_CXX
 
38526
postdep_objects=$lt_postdep_objects_CXX
 
38527
predeps=$lt_predeps_CXX
 
38528
postdeps=$lt_postdeps_CXX
 
38529
 
 
38530
# The library search path used internally by the compiler when linking
 
38531
# a shared library.
 
38532
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
38533
 
 
38534
# ### END LIBTOOL TAG CONFIG: CXX
 
38535
_LT_EOF
 
38536
 
 
38537
 ;;
 
38538
 
 
38539
  esac
 
38540
done # for ac_tag
 
38541
 
 
38542
 
 
38543
{ (exit 0); exit 0; }
 
38544
_ACEOF
 
38545
chmod +x $CONFIG_STATUS
 
38546
ac_clean_files=$ac_clean_files_save
 
38547
 
 
38548
test $ac_write_fail = 0 ||
 
38549
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
38550
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
38551
   { (exit 1); exit 1; }; }
 
38552
 
 
38553
 
 
38554
# configure is writing to config.log, and then calls config.status.
 
38555
# config.status does its own redirection, appending to config.log.
 
38556
# Unfortunately, on DOS this fails, as config.log is still kept open
 
38557
# by configure, so config.status won't be able to write to it; its
 
38558
# output is simply discarded.  So we exec the FD to /dev/null,
 
38559
# effectively closing config.log, so it can be properly (re)opened and
 
38560
# appended to by config.status.  When coming back to configure, we
 
38561
# need to make the FD available again.
 
38562
if test "$no_create" != yes; then
 
38563
  ac_cs_success=:
 
38564
  ac_config_status_args=
 
38565
  test "$silent" = yes &&
 
38566
    ac_config_status_args="$ac_config_status_args --quiet"
 
38567
  exec 5>/dev/null
 
38568
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
38569
  exec 5>>config.log
 
38570
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
38571
  # would make configure fail if this is the last instruction.
 
38572
  $ac_cs_success || { (exit 1); exit 1; }
 
38573
fi
 
38574
 
 
38575
#
 
38576
# CONFIG_SUBDIRS section.
 
38577
#
 
38578
if test "$no_recursion" != yes; then
 
38579
 
 
38580
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
 
38581
  # so they do not pile up.
 
38582
  ac_sub_configure_args=
 
38583
  ac_prev=
 
38584
  eval "set x $ac_configure_args"
 
38585
  shift
 
38586
  for ac_arg
 
38587
  do
 
38588
    if test -n "$ac_prev"; then
 
38589
      ac_prev=
 
38590
      continue
 
38591
    fi
 
38592
    case $ac_arg in
 
38593
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
38594
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
38595
      ac_prev=cache_file ;;
 
38596
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
38597
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
38598
    | --c=*)
 
38599
      ;;
 
38600
    --config-cache | -C)
 
38601
      ;;
 
38602
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
38603
      ac_prev=srcdir ;;
 
38604
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
38605
      ;;
 
38606
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
38607
      ac_prev=prefix ;;
 
38608
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
38609
      ;;
 
38610
    --disable-option-checking)
 
38611
      ;;
 
38612
    *)
 
38613
      case $ac_arg in
 
38614
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
38615
      esac
 
38616
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
 
38617
    esac
 
38618
  done
 
38619
 
 
38620
  # Always prepend --prefix to ensure using the same prefix
 
38621
  # in subdir configurations.
 
38622
  ac_arg="--prefix=$prefix"
 
38623
  case $ac_arg in
 
38624
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
38625
  esac
 
38626
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
 
38627
 
 
38628
  # Pass --silent
 
38629
  if test "$silent" = yes; then
 
38630
    ac_sub_configure_args="--silent $ac_sub_configure_args"
 
38631
  fi
 
38632
 
 
38633
  # Always prepend --disable-option-checking to silence warnings, since
 
38634
  # different subdirs can have different --enable and --with options.
 
38635
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
 
38636
 
 
38637
  ac_popdir=`pwd`
 
38638
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
38639
 
 
38640
    # Do not complain, so a configure script can configure whichever
 
38641
    # parts of a large source tree are present.
 
38642
    test -d "$srcdir/$ac_dir" || continue
 
38643
 
 
38644
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
 
38645
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
 
38646
    $as_echo "$ac_msg" >&6
 
38647
    { as_dir="$ac_dir"
 
38648
  case $as_dir in #(
 
38649
  -*) as_dir=./$as_dir;;
 
38650
  esac
 
38651
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
38652
    as_dirs=
 
38653
    while :; do
 
38654
      case $as_dir in #(
 
38655
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
38656
      *) as_qdir=$as_dir;;
 
38657
      esac
 
38658
      as_dirs="'$as_qdir' $as_dirs"
 
38659
      as_dir=`$as_dirname -- "$as_dir" ||
 
38660
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
38661
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
38662
         X"$as_dir" : 'X\(//\)$' \| \
 
38663
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
38664
$as_echo X"$as_dir" |
 
38665
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
38666
            s//\1/
 
38667
            q
 
38668
          }
 
38669
          /^X\(\/\/\)[^/].*/{
 
38670
            s//\1/
 
38671
            q
 
38672
          }
 
38673
          /^X\(\/\/\)$/{
 
38674
            s//\1/
 
38675
            q
 
38676
          }
 
38677
          /^X\(\/\).*/{
 
38678
            s//\1/
 
38679
            q
 
38680
          }
 
38681
          s/.*/./; q'`
 
38682
      test -d "$as_dir" && break
 
38683
    done
 
38684
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
38685
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
38686
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
38687
   { (exit 1); exit 1; }; }; }
 
38688
    ac_builddir=.
 
38689
 
 
38690
case "$ac_dir" in
 
38691
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
38692
*)
 
38693
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
38694
  # A ".." for each directory in $ac_dir_suffix.
 
38695
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
38696
  case $ac_top_builddir_sub in
 
38697
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
38698
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
38699
  esac ;;
 
38700
esac
 
38701
ac_abs_top_builddir=$ac_pwd
 
38702
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
38703
# for backward compatibility:
 
38704
ac_top_builddir=$ac_top_build_prefix
 
38705
 
 
38706
case $srcdir in
 
38707
  .)  # We are building in place.
 
38708
    ac_srcdir=.
 
38709
    ac_top_srcdir=$ac_top_builddir_sub
 
38710
    ac_abs_top_srcdir=$ac_pwd ;;
 
38711
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
38712
    ac_srcdir=$srcdir$ac_dir_suffix;
 
38713
    ac_top_srcdir=$srcdir
 
38714
    ac_abs_top_srcdir=$srcdir ;;
 
38715
  *) # Relative name.
 
38716
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
38717
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
38718
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
38719
esac
 
38720
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
38721
 
 
38722
 
 
38723
    cd "$ac_dir"
 
38724
 
 
38725
    # Check for guested configure; otherwise get Cygnus style configure.
 
38726
    if test -f "$ac_srcdir/configure.gnu"; then
 
38727
      ac_sub_configure=$ac_srcdir/configure.gnu
 
38728
    elif test -f "$ac_srcdir/configure"; then
 
38729
      ac_sub_configure=$ac_srcdir/configure
 
38730
    elif test -f "$ac_srcdir/configure.in"; then
 
38731
      # This should be Cygnus configure.
 
38732
      ac_sub_configure=$ac_aux_dir/configure
 
38733
    else
 
38734
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
38735
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
38736
      ac_sub_configure=
 
38737
    fi
 
38738
 
 
38739
    # The recursion is here.
 
38740
    if test -n "$ac_sub_configure"; then
 
38741
      # Make the cache file name correct relative to the subdirectory.
 
38742
      case $cache_file in
 
38743
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
38744
      *) # Relative name.
 
38745
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
 
38746
      esac
 
38747
 
 
38748
      { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
38749
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
38750
      # The eval makes quoting arguments work.
 
38751
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
 
38752
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
 
38753
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
38754
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
38755
   { (exit 1); exit 1; }; }
 
38756
    fi
 
38757
 
 
38758
    cd "$ac_popdir"
 
38759
  done
 
38760
fi
 
38761
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
38762
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
38763
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
38764
fi
 
38765
 
 
38766
 
 
38767
 
 
38768
if test "x$use_tcl" != "xYes"; then
 
38769
  use_tcldot="No (tcl not available)"
 
38770
  use_gdtclft="No (tcl not available)"
 
38771
  use_tclpathplan="No (tcl not available)"
 
38772
  use_gv_tcl="No (tcl not available)"
 
38773
else
 
38774
  use_tcldot="Yes"
 
38775
  use_tclpathplan="Yes"
 
38776
  if test "x$use_swig" != "xYes"; then
 
38777
    use_gv_tcl="No (swig not available)"
 
38778
  else
 
38779
    use_gv_tcl="Yes"
 
38780
  fi
 
38781
  if test "x$use_gd" != "xYes"; then
 
38782
    if test "x$use_gd" == "xYes (internal)"; then
 
38783
        use_gdtclft="Yes"
 
38784
    else
 
38785
        use_gdtclft="No (gd not available)"
 
38786
    fi
 
38787
  else
 
38788
    use_gdtclft="Yes"
 
38789
  fi
 
38790
fi
 
38791
 
 
38792
if test "x$use_tk" != "xYes"; then
 
38793
  use_tkspline="No (tk not available)"
 
38794
else
 
38795
  use_tkspline="Yes"
 
38796
fi
 
38797
 
 
38798
echo ""
 
38799
echo "----------------------------------------------------------------"
 
38800
echo ""
 
38801
echo "graphviz-$VERSION will be compiled with the following:"
 
38802
echo ""
 
38803
echo "options:"
 
38804
echo "  cgraph:        $use_cgraph"
 
38805
echo "  digcola:       $use_digcola"
 
38806
echo "  expat:         $use_expat"
 
38807
echo "  fontconfig:    $use_fontconfig"
 
38808
echo "  freetype:      $use_freetype"
 
38809
echo "  glut:          $use_glut"
 
38810
echo "  gts:           $use_gts"
 
38811
echo "  ipsepcola:     $use_ipsepcola"
 
38812
echo "  ltdl:          $use_ltdl"
 
38813
echo "  ortho:         $use_ortho"
 
38814
echo "  png:           $use_png"
 
38815
echo "  jpeg:          $use_jpeg"
 
38816
echo "  sfdp:          $use_sfdp"
 
38817
echo "  shared:        $use_shared"
 
38818
echo "  static:        $use_static"
 
38819
echo ""
 
38820
echo "commands:"
 
38821
echo "  dot:           Yes (always enabled)"
 
38822
echo "  neato:         Yes (always enabled)"
 
38823
echo "  fdp:           Yes (always enabled)"
 
38824
echo "  circo:         Yes (always enabled)"
 
38825
echo "  twopi:         Yes (always enabled)"
 
38826
echo "  gvpr:          Yes (always enabled)"
 
38827
echo "  lefty:         $use_lefty"
 
38828
echo "  smyrna:        $use_smyrna"
 
38829
echo ""
 
38830
echo "plugin libraries:"
 
38831
echo "  dot_layout:    Yes (always enabled)"
 
38832
echo "  neato_layout:  Yes (always enabled)"
 
38833
echo "  core:          Yes (always enabled)"
 
38834
echo "  devil:         $use_devil"
 
38835
echo "  gd:            $use_gd"
 
38836
echo "  gdiplus:       $use_gdiplus"
 
38837
echo "  gdk_pixbuf:    $use_gdk_pixbuf"
 
38838
echo "  ghostscript:   $use_ghostscript"
 
38839
echo "  glitz:         $use_glitz"
 
38840
echo "  gtk:           $use_gtk"
 
38841
echo "  lasi:          $use_lasi"
 
38842
echo "  ming:          $use_ming"
 
38843
echo "  pangocairo:    $use_pangocairo"
 
38844
echo "  quartz:        $use_quartz"
 
38845
echo "  rsvg:          $use_rsvg"
 
38846
echo "  visio:         $use_visio"
 
38847
echo "  xlib:          $use_xlib"
 
38848
echo ""
 
38849
echo "language extensions:"
 
38850
echo "  gv_sharp:      $use_sharp"
 
38851
echo "  gv_guile:      $use_guile"
 
38852
echo "  gv_io:         $use_io"
 
38853
echo "  gv_java:       $use_java"
 
38854
echo "  gv_lua:        $use_lua"
 
38855
echo "  gv_ocaml:      $use_ocaml"
 
38856
echo "  gv_perl:       $use_perl"
 
38857
echo "  gv_php:        $use_php"
 
38858
echo "  gv_python:     $use_python"
 
38859
echo "  gv_python23:   $use_python23"
 
38860
echo "  gv_python24:   $use_python24"
 
38861
echo "  gv_python25:   $use_python25"
 
38862
echo "  gv_python26:   $use_python26"
 
38863
echo "  gv_R:          $use_r"
 
38864
echo "  gv_ruby:       $use_ruby"
 
38865
echo "  gv_tcl:        $use_gv_tcl"
 
38866
echo ""
 
38867
echo "  tcldot:        $use_tcldot"
 
38868
echo "  tclpathplan:   $use_tclpathplan"
 
38869
echo "  gdtclft:       $use_gdtclft"
 
38870
echo "  tkspline:      $use_tkspline"
 
38871