~kubuntu-users/dolphin/hardy-fork

« back to all changes in this revision

Viewing changes to autom4te.cache/output.1

  • Committer: Martin Böhm
  • Date: 2007-12-04 18:15:49 UTC
  • Revision ID: martin.bohm@kubuntu.org-20071204181549-2aqgnxrpbser3xww
Initial branch from 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@%:@! /bin/sh
 
2
@%:@ Guess values for system-dependent variables and create Makefiles.
 
3
@%:@ Generated by GNU Autoconf 2.61.
 
4
@%:@ 
 
5
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
@%:@ This configure script is free software; the Free Software Foundation
 
8
@%:@ gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
 
52
 
 
53
# Support unset when possible.
 
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
55
  as_unset=unset
 
56
else
 
57
  as_unset=false
 
58
fi
 
59
 
 
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
 
94
# Work around bugs in pre-3.0 UWIN ksh.
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
 
98
PS1='$ '
 
99
PS2='> '
 
100
PS4='+ '
 
101
 
 
102
# NLS nuisances.
 
103
for as_var in \
 
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
106
  LC_TELEPHONE LC_TIME
 
107
do
 
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
109
    eval $as_var=C; export $as_var
 
110
  else
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
112
  fi
 
113
done
 
114
 
 
115
# Required to use basename.
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
118
  as_expr=expr
 
119
else
 
120
  as_expr=false
 
121
fi
 
122
 
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
124
  as_basename=basename
 
125
else
 
126
  as_basename=false
 
127
fi
 
128
 
 
129
 
 
130
# Name of the executable.
 
131
as_me=`$as_basename -- "$0" ||
 
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
133
         X"$0" : 'X\(//\)$' \| \
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
135
echo X/"$0" |
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
 
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
223
do
 
224
  IFS=$as_save_IFS
 
225
  test -z "$as_dir" && as_dir=.
 
226
  case $as_dir in
 
227
         /*)
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
 
232
done
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$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
  # Zsh 3.x and 4.x performs 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
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
    
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
427
 
 
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
 
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
 
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
 
447
      N
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
450
      t loop
 
451
      s/-\n.*//
 
452
    ' >$as_me.lineno &&
 
453
  chmod +x "$as_me.lineno" ||
 
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
455
   { (exit 1); exit 1; }; }
 
456
 
 
457
  # Don't try to exec as it changes $[0], causing all sort of problems
 
458
  # (the dirname of $[0] is not the place where we might find the
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
 
461
  # Exit status is that of the last command.
 
462
  exit
 
463
}
 
464
 
 
465
 
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
 
481
esac
 
482
 
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
485
  as_expr=expr
 
486
else
 
487
  as_expr=false
 
488
fi
 
489
 
 
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
 
497
echo >conf$$.file
 
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
505
    as_ln_s='cp -p'
 
506
elif ln conf$$.file conf$$ 2>/dev/null; then
 
507
  as_ln_s=ln
 
508
else
 
509
  as_ln_s='cp -p'
 
510
fi
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
 
513
 
 
514
if mkdir -p . 2>/dev/null; then
 
515
  as_mkdir_p=:
 
516
else
 
517
  test -d ./-p && rmdir ./-p
 
518
  as_mkdir_p=false
 
519
fi
 
520
 
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
 
543
 
 
544
# Sed expression to map a string onto a valid CPP name.
 
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
# Sed expression to map a string onto a valid variable name.
 
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
 
 
551
 
 
552
 
 
553
# Check that we are running under the correct shell.
 
554
SHELL=${CONFIG_SHELL-/bin/sh}
 
555
 
 
556
case X$ECHO in
 
557
X*--fallback-echo)
 
558
  # Remove one level of quotation (which was required for Make).
 
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
560
  ;;
 
561
esac
 
562
 
 
563
echo=${ECHO-echo}
 
564
if test "X$1" = X--no-reexec; then
 
565
  # Discard the --no-reexec flag, and continue.
 
566
  shift
 
567
elif test "X$1" = X--fallback-echo; then
 
568
  # Avoid inline document here, it may be left over
 
569
  :
 
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $echo works!
 
572
  :
 
573
else
 
574
  # Restart under the correct shell.
 
575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
576
fi
 
577
 
 
578
if test "X$1" = X--fallback-echo; then
 
579
  # used as fallback echo
 
580
  shift
 
581
  cat <<EOF
 
582
$*
 
583
EOF
 
584
  exit 0
 
585
fi
 
586
 
 
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
588
# if CDPATH is set.
 
589
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
590
 
 
591
if test -z "$ECHO"; then
 
592
if test "X${echo_test_string+set}" != Xset; then
 
593
# find a string as large as possible, as long as the shell can cope with it
 
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
597
       echo_test_string="`eval $cmd`" &&
 
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
599
    then
 
600
      break
 
601
    fi
 
602
  done
 
603
fi
 
604
 
 
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
  :
 
609
else
 
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
611
  # backslashes.  This makes it impossible to quote backslashes using
 
612
  #   echo "$something" | sed 's/\\/\\\\/g'
 
613
  #
 
614
  # So, first we look for a working echo in the user's PATH.
 
615
 
 
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
617
  for dir in $PATH /usr/ucb; do
 
618
    IFS="$lt_save_ifs"
 
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
623
      echo="$dir/echo"
 
624
      break
 
625
    fi
 
626
  done
 
627
  IFS="$lt_save_ifs"
 
628
 
 
629
  if test "X$echo" = Xecho; then
 
630
    # We didn't find a better echo, so look for alternatives.
 
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
634
      # This shell has a builtin print -r that does the trick.
 
635
      echo='print -r'
 
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
637
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
638
      # If we have ksh, try running configure again with it.
 
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
640
      export ORIGINAL_CONFIG_SHELL
 
641
      CONFIG_SHELL=/bin/ksh
 
642
      export CONFIG_SHELL
 
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
644
    else
 
645
      # Try using printf.
 
646
      echo='printf %s\n'
 
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
648
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
649
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
650
        # Cool, printf works
 
651
        :
 
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
653
           test "X$echo_testing_string" = 'X\t' &&
 
654
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
657
        export CONFIG_SHELL
 
658
        SHELL="$CONFIG_SHELL"
 
659
        export SHELL
 
660
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
662
           test "X$echo_testing_string" = 'X\t' &&
 
663
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
665
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
666
      else
 
667
        # maybe with a smaller string...
 
668
        prev=:
 
669
 
 
670
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
671
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
672
          then
 
673
            break
 
674
          fi
 
675
          prev="$cmd"
 
676
        done
 
677
 
 
678
        if test "$prev" != 'sed 50q "$0"'; then
 
679
          echo_test_string=`eval $prev`
 
680
          export echo_test_string
 
681
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
682
        else
 
683
          # Oops.  We lost completely, so just stick with echo.
 
684
          echo=echo
 
685
        fi
 
686
      fi
 
687
    fi
 
688
  fi
 
689
fi
 
690
fi
 
691
 
 
692
# Copy echo and quote the copy suitably for passing to libtool from
 
693
# the Makefile, instead of quoting the original, which is used later.
 
694
ECHO=$echo
 
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
697
fi
 
698
 
 
699
 
 
700
 
 
701
 
 
702
tagnames=${tagnames+${tagnames},}CXX
 
703
 
 
704
tagnames=${tagnames+${tagnames},}F77
 
705
 
 
706
exec 7<&0 </dev/null 6>&1
 
707
 
 
708
# Name of the host.
 
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
710
# so uname gets run too.
 
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
712
 
 
713
#
 
714
# Initializations.
 
715
#
 
716
ac_default_prefix=/usr/local
 
717
ac_clean_files=
 
718
ac_config_libobj_dir=.
 
719
LIB@&t@OBJS=
 
720
cross_compiling=no
 
721
subdirs=
 
722
MFLAGS=
 
723
MAKEFLAGS=
 
724
SHELL=${CONFIG_SHELL-/bin/sh}
 
725
 
 
726
# Identity of this package.
 
727
PACKAGE_NAME=
 
728
PACKAGE_TARNAME=
 
729
PACKAGE_VERSION=
 
730
PACKAGE_STRING=
 
731
PACKAGE_BUGREPORT=
 
732
 
 
733
ac_unique_file="acinclude.m4"
 
734
ac_default_prefix=${KDEDIR:-the kde prefix}
 
735
# Factoring default headers for most tests.
 
736
ac_includes_default="\
 
737
#include <stdio.h>
 
738
#ifdef HAVE_SYS_TYPES_H
 
739
# include <sys/types.h>
 
740
#endif
 
741
#ifdef HAVE_SYS_STAT_H
 
742
# include <sys/stat.h>
 
743
#endif
 
744
#ifdef STDC_HEADERS
 
745
# include <stdlib.h>
 
746
# include <stddef.h>
 
747
#else
 
748
# ifdef HAVE_STDLIB_H
 
749
#  include <stdlib.h>
 
750
# endif
 
751
#endif
 
752
#ifdef HAVE_STRING_H
 
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
754
#  include <memory.h>
 
755
# endif
 
756
# include <string.h>
 
757
#endif
 
758
#ifdef HAVE_STRINGS_H
 
759
# include <strings.h>
 
760
#endif
 
761
#ifdef HAVE_INTTYPES_H
 
762
# include <inttypes.h>
 
763
#endif
 
764
#ifdef HAVE_STDINT_H
 
765
# include <stdint.h>
 
766
#endif
 
767
#ifdef HAVE_UNISTD_H
 
768
# include <unistd.h>
 
769
#endif"
 
770
 
 
771
ac_subst_vars='SHELL
 
772
PATH_SEPARATOR
 
773
PACKAGE_NAME
 
774
PACKAGE_TARNAME
 
775
PACKAGE_VERSION
 
776
PACKAGE_STRING
 
777
PACKAGE_BUGREPORT
 
778
exec_prefix
 
779
prefix
 
780
program_transform_name
 
781
bindir
 
782
sbindir
 
783
libexecdir
 
784
datarootdir
 
785
datadir
 
786
sysconfdir
 
787
sharedstatedir
 
788
localstatedir
 
789
includedir
 
790
oldincludedir
 
791
docdir
 
792
infodir
 
793
htmldir
 
794
dvidir
 
795
pdfdir
 
796
psdir
 
797
libdir
 
798
localedir
 
799
mandir
 
800
DEFS
 
801
ECHO_C
 
802
ECHO_N
 
803
ECHO_T
 
804
LIBS
 
805
build_alias
 
806
host_alias
 
807
target_alias
 
808
build
 
809
build_cpu
 
810
build_vendor
 
811
build_os
 
812
host
 
813
host_cpu
 
814
host_vendor
 
815
host_os
 
816
target
 
817
target_cpu
 
818
target_vendor
 
819
target_os
 
820
INSTALL_PROGRAM
 
821
INSTALL_SCRIPT
 
822
INSTALL_DATA
 
823
am__isrc
 
824
CYGPATH_W
 
825
PACKAGE
 
826
VERSION
 
827
ACLOCAL
 
828
AUTOCONF
 
829
AUTOMAKE
 
830
AUTOHEADER
 
831
MAKEINFO
 
832
install_sh
 
833
STRIP
 
834
INSTALL_STRIP_PROGRAM
 
835
mkdir_p
 
836
AWK
 
837
SET_MAKE
 
838
am__leading_dot
 
839
AMTAR
 
840
am__tar
 
841
am__untar
 
842
KDECONFIG
 
843
kde_libs_prefix
 
844
kde_libs_htmldir
 
845
CONF_FILES
 
846
CC
 
847
CFLAGS
 
848
LDFLAGS
 
849
CPPFLAGS
 
850
ac_ct_CC
 
851
EXEEXT
 
852
OBJEXT
 
853
DEPDIR
 
854
am__include
 
855
am__quote
 
856
AMDEP_TRUE
 
857
AMDEP_FALSE
 
858
AMDEPBACKSLASH
 
859
CCDEPMODE
 
860
am__fastdepCC_TRUE
 
861
am__fastdepCC_FALSE
 
862
CPP
 
863
CXX
 
864
CXXFLAGS
 
865
ac_ct_CXX
 
866
CXXDEPMODE
 
867
am__fastdepCXX_TRUE
 
868
am__fastdepCXX_FALSE
 
869
WOVERLOADED_VIRTUAL
 
870
HAVE_GCC_VISIBILITY
 
871
unsermake_enable_pch_TRUE
 
872
unsermake_enable_pch_FALSE
 
873
USE_EXCEPTIONS
 
874
USE_RTTI
 
875
CXXCPP
 
876
NOOPT_CXXFLAGS
 
877
NOOPT_CFLAGS
 
878
ENABLE_PERMISSIVE_FLAG
 
879
LDFLAGS_AS_NEEDED
 
880
LDFLAGS_NEW_DTAGS
 
881
KDE_USE_FINAL_TRUE
 
882
KDE_USE_FINAL_FALSE
 
883
KDE_USE_CLOSURE_TRUE
 
884
KDE_USE_CLOSURE_FALSE
 
885
KDE_NO_UNDEFINED
 
886
KDE_USE_NMCHECK_TRUE
 
887
KDE_USE_NMCHECK_FALSE
 
888
GREP
 
889
EGREP
 
890
LN_S
 
891
ECHO
 
892
AR
 
893
RANLIB
 
894
F77
 
895
FFLAGS
 
896
ac_ct_F77
 
897
LIBTOOL
 
898
KDE_PLUGIN
 
899
MSGFMT
 
900
GMSGFMT
 
901
XGETTEXT
 
902
LIBUTIL
 
903
LIBCOMPAT
 
904
LIBCRYPT
 
905
LIBRESOLV
 
906
LIB_POLL
 
907
FRAMEWORK_COREAUDIO
 
908
LIBSOCKET
 
909
X_EXTRA_LIBS
 
910
LIBUCB
 
911
LIBDL
 
912
include_x11_TRUE
 
913
include_x11_FALSE
 
914
XMKMF
 
915
X_PRE_LIBS
 
916
LIB_X11
 
917
LIB_XRENDER
 
918
LIBSM
 
919
X_INCLUDES
 
920
X_LDFLAGS
 
921
x_includes
 
922
x_libraries
 
923
QTE_NORTTI
 
924
LIB_XEXT
 
925
LIBPTHREAD
 
926
USE_THREADS
 
927
KDE_MT_LDFLAGS
 
928
KDE_MT_LIBS
 
929
USER_INCLUDES
 
930
USER_LDFLAGS
 
931
LIBZ
 
932
LIBPNG
 
933
LIBJPEG
 
934
qt_libraries
 
935
qt_includes
 
936
QT_INCLUDES
 
937
QT_LDFLAGS
 
938
PERL
 
939
MOC
 
940
UIC
 
941
UIC_TR
 
942
LIB_QT
 
943
LIB_QPE
 
944
kde_qtver
 
945
KDE_EXTRA_RPATH
 
946
KDE_RPATH
 
947
X_RPATH
 
948
kde_libraries
 
949
kde_includes
 
950
KDE_LDFLAGS
 
951
KDE_INCLUDES
 
952
all_includes
 
953
all_libraries
 
954
AUTODIRS
 
955
include_ARTS_TRUE
 
956
include_ARTS_FALSE
 
957
MAKEKDEWIDGETS
 
958
KCONFIG_COMPILER
 
959
KCFG_DEPENDENCIES
 
960
DCOPIDLNG
 
961
DCOPIDL
 
962
DCOPIDL2CPP
 
963
DCOP_DEPENDENCIES
 
964
MCOPIDL
 
965
ARTSCCONFIG
 
966
MEINPROC
 
967
KDE_XSL_STYLESHEET
 
968
XMLLINT
 
969
kde_htmldir
 
970
kde_appsdir
 
971
kde_icondir
 
972
kde_sounddir
 
973
kde_datadir
 
974
kde_locale
 
975
kde_confdir
 
976
kde_kcfgdir
 
977
kde_mimedir
 
978
kde_wallpaperdir
 
979
kde_bindir
 
980
xdg_appsdir
 
981
xdg_menudir
 
982
xdg_directorydir
 
983
kde_templatesdir
 
984
kde_servicesdir
 
985
kde_servicetypesdir
 
986
kde_moduledir
 
987
kdeinitdir
 
988
kde_styledir
 
989
kde_widgetdir
 
990
LIB_KDECORE
 
991
LIB_KDEUI
 
992
LIB_KIO
 
993
LIB_KJS
 
994
LIB_SMB
 
995
LIB_KAB
 
996
LIB_KABC
 
997
LIB_KHTML
 
998
LIB_KSPELL
 
999
LIB_KPARTS
 
1000
LIB_KDEPRINT
 
1001
LIB_KUTILS
 
1002
LIB_KDEPIM
 
1003
LIB_KIMPROXY
 
1004
LIB_KNEWSTUFF
 
1005
LIB_KDNSSD
 
1006
LIB_KUNITTEST
 
1007
LIB_KSYCOCA
 
1008
LIB_KFILE
 
1009
LIB_KFM
 
1010
TOPSUBDIRS
 
1011
LIB@&t@OBJS
 
1012
LTLIBOBJS'
 
1013
ac_subst_files=''
 
1014
      ac_precious_vars='build_alias
 
1015
host_alias
 
1016
target_alias
 
1017
CC
 
1018
CFLAGS
 
1019
LDFLAGS
 
1020
LIBS
 
1021
CPPFLAGS
 
1022
CPP
 
1023
CXX
 
1024
CXXFLAGS
 
1025
CCC
 
1026
CXXCPP
 
1027
F77
 
1028
FFLAGS
 
1029
XMKMF'
 
1030
 
 
1031
 
 
1032
# Initialize some variables set by options.
 
1033
ac_init_help=
 
1034
ac_init_version=false
 
1035
# The variables have the same names as the options, with
 
1036
# dashes changed to underlines.
 
1037
cache_file=/dev/null
 
1038
exec_prefix=NONE
 
1039
no_create=
 
1040
no_recursion=
 
1041
prefix=NONE
 
1042
program_prefix=NONE
 
1043
program_suffix=NONE
 
1044
program_transform_name=s,x,x,
 
1045
silent=
 
1046
site=
 
1047
srcdir=
 
1048
verbose=
 
1049
x_includes=NONE
 
1050
x_libraries=NONE
 
1051
 
 
1052
# Installation directory options.
 
1053
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1054
# and all the variables that are supposed to be based on exec_prefix
 
1055
# by default will actually change.
 
1056
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1057
# (The list follows the same order as the GNU Coding Standards.)
 
1058
bindir='${exec_prefix}/bin'
 
1059
sbindir='${exec_prefix}/sbin'
 
1060
libexecdir='${exec_prefix}/libexec'
 
1061
datarootdir='${prefix}/share'
 
1062
datadir='${datarootdir}'
 
1063
sysconfdir='${prefix}/etc'
 
1064
sharedstatedir='${prefix}/com'
 
1065
localstatedir='${prefix}/var'
 
1066
includedir='${prefix}/include'
 
1067
oldincludedir='/usr/include'
 
1068
docdir='${datarootdir}/doc/${PACKAGE}'
 
1069
infodir='${datarootdir}/info'
 
1070
htmldir='${docdir}'
 
1071
dvidir='${docdir}'
 
1072
pdfdir='${docdir}'
 
1073
psdir='${docdir}'
 
1074
libdir='${exec_prefix}/lib'
 
1075
localedir='${datarootdir}/locale'
 
1076
mandir='${datarootdir}/man'
 
1077
 
 
1078
ac_prev=
 
1079
ac_dashdash=
 
1080
for ac_option
 
1081
do
 
1082
  # If the previous option needs an argument, assign it.
 
1083
  if test -n "$ac_prev"; then
 
1084
    eval $ac_prev=\$ac_option
 
1085
    ac_prev=
 
1086
    continue
 
1087
  fi
 
1088
 
 
1089
  case $ac_option in
 
1090
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1091
  *)    ac_optarg=yes ;;
 
1092
  esac
 
1093
 
 
1094
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1095
 
 
1096
  case $ac_dashdash$ac_option in
 
1097
  --)
 
1098
    ac_dashdash=yes ;;
 
1099
 
 
1100
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1101
    ac_prev=bindir ;;
 
1102
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1103
    bindir=$ac_optarg ;;
 
1104
 
 
1105
  -build | --build | --buil | --bui | --bu)
 
1106
    ac_prev=build_alias ;;
 
1107
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1108
    build_alias=$ac_optarg ;;
 
1109
 
 
1110
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1111
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1112
    ac_prev=cache_file ;;
 
1113
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1114
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1115
    cache_file=$ac_optarg ;;
 
1116
 
 
1117
  --config-cache | -C)
 
1118
    cache_file=config.cache ;;
 
1119
 
 
1120
  -datadir | --datadir | --datadi | --datad)
 
1121
    ac_prev=datadir ;;
 
1122
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1123
    datadir=$ac_optarg ;;
 
1124
 
 
1125
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1126
  | --dataroo | --dataro | --datar)
 
1127
    ac_prev=datarootdir ;;
 
1128
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1129
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1130
    datarootdir=$ac_optarg ;;
 
1131
 
 
1132
  -disable-* | --disable-*)
 
1133
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1134
    # Reject names that are not valid shell variable names.
 
1135
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1136
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1137
   { (exit 1); exit 1; }; }
 
1138
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1139
    eval enable_$ac_feature=no ;;
 
1140
 
 
1141
  -docdir | --docdir | --docdi | --doc | --do)
 
1142
    ac_prev=docdir ;;
 
1143
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1144
    docdir=$ac_optarg ;;
 
1145
 
 
1146
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1147
    ac_prev=dvidir ;;
 
1148
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1149
    dvidir=$ac_optarg ;;
 
1150
 
 
1151
  -enable-* | --enable-*)
 
1152
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1153
    # Reject names that are not valid shell variable names.
 
1154
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1155
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1156
   { (exit 1); exit 1; }; }
 
1157
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1158
    eval enable_$ac_feature=\$ac_optarg ;;
 
1159
 
 
1160
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1161
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1162
  | --exec | --exe | --ex)
 
1163
    ac_prev=exec_prefix ;;
 
1164
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1165
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1166
  | --exec=* | --exe=* | --ex=*)
 
1167
    exec_prefix=$ac_optarg ;;
 
1168
 
 
1169
  -gas | --gas | --ga | --g)
 
1170
    # Obsolete; use --with-gas.
 
1171
    with_gas=yes ;;
 
1172
 
 
1173
  -help | --help | --hel | --he | -h)
 
1174
    ac_init_help=long ;;
 
1175
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1176
    ac_init_help=recursive ;;
 
1177
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1178
    ac_init_help=short ;;
 
1179
 
 
1180
  -host | --host | --hos | --ho)
 
1181
    ac_prev=host_alias ;;
 
1182
  -host=* | --host=* | --hos=* | --ho=*)
 
1183
    host_alias=$ac_optarg ;;
 
1184
 
 
1185
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1186
    ac_prev=htmldir ;;
 
1187
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1188
  | --ht=*)
 
1189
    htmldir=$ac_optarg ;;
 
1190
 
 
1191
  -includedir | --includedir | --includedi | --included | --include \
 
1192
  | --includ | --inclu | --incl | --inc)
 
1193
    ac_prev=includedir ;;
 
1194
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1195
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1196
    includedir=$ac_optarg ;;
 
1197
 
 
1198
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1199
    ac_prev=infodir ;;
 
1200
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1201
    infodir=$ac_optarg ;;
 
1202
 
 
1203
  -libdir | --libdir | --libdi | --libd)
 
1204
    ac_prev=libdir ;;
 
1205
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1206
    libdir=$ac_optarg ;;
 
1207
 
 
1208
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1209
  | --libexe | --libex | --libe)
 
1210
    ac_prev=libexecdir ;;
 
1211
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1212
  | --libexe=* | --libex=* | --libe=*)
 
1213
    libexecdir=$ac_optarg ;;
 
1214
 
 
1215
  -localedir | --localedir | --localedi | --localed | --locale)
 
1216
    ac_prev=localedir ;;
 
1217
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1218
    localedir=$ac_optarg ;;
 
1219
 
 
1220
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1221
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1222
    ac_prev=localstatedir ;;
 
1223
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1224
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1225
    localstatedir=$ac_optarg ;;
 
1226
 
 
1227
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1228
    ac_prev=mandir ;;
 
1229
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1230
    mandir=$ac_optarg ;;
 
1231
 
 
1232
  -nfp | --nfp | --nf)
 
1233
    # Obsolete; use --without-fp.
 
1234
    with_fp=no ;;
 
1235
 
 
1236
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1237
  | --no-cr | --no-c | -n)
 
1238
    no_create=yes ;;
 
1239
 
 
1240
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1241
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1242
    no_recursion=yes ;;
 
1243
 
 
1244
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1245
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1246
  | --oldin | --oldi | --old | --ol | --o)
 
1247
    ac_prev=oldincludedir ;;
 
1248
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1249
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1250
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1251
    oldincludedir=$ac_optarg ;;
 
1252
 
 
1253
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1254
    ac_prev=prefix ;;
 
1255
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1256
    prefix=$ac_optarg ;;
 
1257
 
 
1258
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1259
  | --program-pre | --program-pr | --program-p)
 
1260
    ac_prev=program_prefix ;;
 
1261
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1262
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1263
    program_prefix=$ac_optarg ;;
 
1264
 
 
1265
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1266
  | --program-suf | --program-su | --program-s)
 
1267
    ac_prev=program_suffix ;;
 
1268
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1269
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1270
    program_suffix=$ac_optarg ;;
 
1271
 
 
1272
  -program-transform-name | --program-transform-name \
 
1273
  | --program-transform-nam | --program-transform-na \
 
1274
  | --program-transform-n | --program-transform- \
 
1275
  | --program-transform | --program-transfor \
 
1276
  | --program-transfo | --program-transf \
 
1277
  | --program-trans | --program-tran \
 
1278
  | --progr-tra | --program-tr | --program-t)
 
1279
    ac_prev=program_transform_name ;;
 
1280
  -program-transform-name=* | --program-transform-name=* \
 
1281
  | --program-transform-nam=* | --program-transform-na=* \
 
1282
  | --program-transform-n=* | --program-transform-=* \
 
1283
  | --program-transform=* | --program-transfor=* \
 
1284
  | --program-transfo=* | --program-transf=* \
 
1285
  | --program-trans=* | --program-tran=* \
 
1286
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1287
    program_transform_name=$ac_optarg ;;
 
1288
 
 
1289
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1290
    ac_prev=pdfdir ;;
 
1291
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1292
    pdfdir=$ac_optarg ;;
 
1293
 
 
1294
  -psdir | --psdir | --psdi | --psd | --ps)
 
1295
    ac_prev=psdir ;;
 
1296
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1297
    psdir=$ac_optarg ;;
 
1298
 
 
1299
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1300
  | -silent | --silent | --silen | --sile | --sil)
 
1301
    silent=yes ;;
 
1302
 
 
1303
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1304
    ac_prev=sbindir ;;
 
1305
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1306
  | --sbi=* | --sb=*)
 
1307
    sbindir=$ac_optarg ;;
 
1308
 
 
1309
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1310
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1311
  | --sharedst | --shareds | --shared | --share | --shar \
 
1312
  | --sha | --sh)
 
1313
    ac_prev=sharedstatedir ;;
 
1314
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1315
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1316
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1317
  | --sha=* | --sh=*)
 
1318
    sharedstatedir=$ac_optarg ;;
 
1319
 
 
1320
  -site | --site | --sit)
 
1321
    ac_prev=site ;;
 
1322
  -site=* | --site=* | --sit=*)
 
1323
    site=$ac_optarg ;;
 
1324
 
 
1325
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1326
    ac_prev=srcdir ;;
 
1327
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1328
    srcdir=$ac_optarg ;;
 
1329
 
 
1330
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1331
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1332
    ac_prev=sysconfdir ;;
 
1333
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1334
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1335
    sysconfdir=$ac_optarg ;;
 
1336
 
 
1337
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1338
    ac_prev=target_alias ;;
 
1339
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1340
    target_alias=$ac_optarg ;;
 
1341
 
 
1342
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1343
    verbose=yes ;;
 
1344
 
 
1345
  -version | --version | --versio | --versi | --vers | -V)
 
1346
    ac_init_version=: ;;
 
1347
 
 
1348
  -with-* | --with-*)
 
1349
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1350
    # Reject names that are not valid shell variable names.
 
1351
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1352
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1353
   { (exit 1); exit 1; }; }
 
1354
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1355
    eval with_$ac_package=\$ac_optarg ;;
 
1356
 
 
1357
  -without-* | --without-*)
 
1358
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1359
    # Reject names that are not valid shell variable names.
 
1360
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1361
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1362
   { (exit 1); exit 1; }; }
 
1363
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1364
    eval with_$ac_package=no ;;
 
1365
 
 
1366
  --x)
 
1367
    # Obsolete; use --with-x.
 
1368
    with_x=yes ;;
 
1369
 
 
1370
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1371
  | --x-incl | --x-inc | --x-in | --x-i)
 
1372
    ac_prev=x_includes ;;
 
1373
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1374
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1375
    x_includes=$ac_optarg ;;
 
1376
 
 
1377
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1378
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1379
    ac_prev=x_libraries ;;
 
1380
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1381
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1382
    x_libraries=$ac_optarg ;;
 
1383
 
 
1384
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1385
Try \`$0 --help' for more information." >&2
 
1386
   { (exit 1); exit 1; }; }
 
1387
    ;;
 
1388
 
 
1389
  *=*)
 
1390
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1391
    # Reject names that are not valid shell variable names.
 
1392
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1393
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1394
   { (exit 1); exit 1; }; }
 
1395
    eval $ac_envvar=\$ac_optarg
 
1396
    export $ac_envvar ;;
 
1397
 
 
1398
  *)
 
1399
    # FIXME: should be removed in autoconf 3.0.
 
1400
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1401
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1402
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1403
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1404
    ;;
 
1405
 
 
1406
  esac
 
1407
done
 
1408
 
 
1409
if test -n "$ac_prev"; then
 
1410
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1411
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1412
   { (exit 1); exit 1; }; }
 
1413
fi
 
1414
 
 
1415
# Be sure to have absolute directory names.
 
1416
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1417
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1418
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1419
                libdir localedir mandir
 
1420
do
 
1421
  eval ac_val=\$$ac_var
 
1422
  case $ac_val in
 
1423
    [\\/$]* | ?:[\\/]* )  continue;;
 
1424
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1425
  esac
 
1426
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1427
   { (exit 1); exit 1; }; }
 
1428
done
 
1429
 
 
1430
# There might be people who depend on the old broken behavior: `$host'
 
1431
# used to hold the argument of --host etc.
 
1432
# FIXME: To remove some day.
 
1433
build=$build_alias
 
1434
host=$host_alias
 
1435
target=$target_alias
 
1436
 
 
1437
# FIXME: To remove some day.
 
1438
if test "x$host_alias" != x; then
 
1439
  if test "x$build_alias" = x; then
 
1440
    cross_compiling=maybe
 
1441
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1442
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1443
  elif test "x$build_alias" != "x$host_alias"; then
 
1444
    cross_compiling=yes
 
1445
  fi
 
1446
fi
 
1447
 
 
1448
ac_tool_prefix=
 
1449
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1450
 
 
1451
test "$silent" = yes && exec 6>/dev/null
 
1452
 
 
1453
 
 
1454
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1455
ac_ls_di=`ls -di .` &&
 
1456
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1457
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1458
   { (exit 1); exit 1; }; }
 
1459
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1460
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1461
   { (exit 1); exit 1; }; }
 
1462
 
 
1463
 
 
1464
# Find the source files, if location was not specified.
 
1465
if test -z "$srcdir"; then
 
1466
  ac_srcdir_defaulted=yes
 
1467
  # Try the directory containing this script, then the parent directory.
 
1468
  ac_confdir=`$as_dirname -- "$0" ||
 
1469
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1470
         X"$0" : 'X\(//\)[^/]' \| \
 
1471
         X"$0" : 'X\(//\)$' \| \
 
1472
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1473
echo X"$0" |
 
1474
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1475
            s//\1/
 
1476
            q
 
1477
          }
 
1478
          /^X\(\/\/\)[^/].*/{
 
1479
            s//\1/
 
1480
            q
 
1481
          }
 
1482
          /^X\(\/\/\)$/{
 
1483
            s//\1/
 
1484
            q
 
1485
          }
 
1486
          /^X\(\/\).*/{
 
1487
            s//\1/
 
1488
            q
 
1489
          }
 
1490
          s/.*/./; q'`
 
1491
  srcdir=$ac_confdir
 
1492
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1493
    srcdir=..
 
1494
  fi
 
1495
else
 
1496
  ac_srcdir_defaulted=no
 
1497
fi
 
1498
if test ! -r "$srcdir/$ac_unique_file"; then
 
1499
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1500
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1501
   { (exit 1); exit 1; }; }
 
1502
fi
 
1503
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1504
ac_abs_confdir=`(
 
1505
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1506
   { (exit 1); exit 1; }; }
 
1507
        pwd)`
 
1508
# When building in place, set srcdir=.
 
1509
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1510
  srcdir=.
 
1511
fi
 
1512
# Remove unnecessary trailing slashes from srcdir.
 
1513
# Double slashes in file names in object file debugging info
 
1514
# mess up M-x gdb in Emacs.
 
1515
case $srcdir in
 
1516
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1517
esac
 
1518
for ac_var in $ac_precious_vars; do
 
1519
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1520
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1521
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1522
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1523
done
 
1524
 
 
1525
#
 
1526
# Report the --help message.
 
1527
#
 
1528
if test "$ac_init_help" = "long"; then
 
1529
  # Omit some internal or obsolete options to make the list less imposing.
 
1530
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1531
  cat <<_ACEOF
 
1532
\`configure' configures this package to adapt to many kinds of systems.
 
1533
 
 
1534
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1535
 
 
1536
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1537
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1538
 
 
1539
Defaults for the options are specified in brackets.
 
1540
 
 
1541
Configuration:
 
1542
  -h, --help              display this help and exit
 
1543
      --help=short        display options specific to this package
 
1544
      --help=recursive    display the short help of all the included packages
 
1545
  -V, --version           display version information and exit
 
1546
  -q, --quiet, --silent   do not print \`checking...' messages
 
1547
      --cache-file=FILE   cache test results in FILE [disabled]
 
1548
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1549
  -n, --no-create         do not create output files
 
1550
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1551
 
 
1552
Installation directories:
 
1553
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1554
                          [$ac_default_prefix]
 
1555
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1556
                          [PREFIX]
 
1557
 
 
1558
By default, \`make install' will install all the files in
 
1559
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1560
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1561
for instance \`--prefix=\$HOME'.
 
1562
 
 
1563
For better control, use the options below.
 
1564
 
 
1565
Fine tuning of the installation directories:
 
1566
  --bindir=DIR           user executables [EPREFIX/bin]
 
1567
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1568
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1569
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1570
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1571
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1572
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1573
  --includedir=DIR       C header files [PREFIX/include]
 
1574
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1575
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1576
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1577
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1578
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1579
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1580
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
 
1581
  --htmldir=DIR          html documentation [DOCDIR]
 
1582
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1583
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1584
  --psdir=DIR            ps documentation [DOCDIR]
 
1585
_ACEOF
 
1586
 
 
1587
  cat <<\_ACEOF
 
1588
 
 
1589
Program names:
 
1590
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1591
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1592
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1593
 
 
1594
System types:
 
1595
  --build=BUILD     configure for building on BUILD [guessed]
 
1596
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1597
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1598
_ACEOF
 
1599
fi
 
1600
 
 
1601
if test -n "$ac_init_help"; then
 
1602
 
 
1603
  cat <<\_ACEOF
 
1604
 
 
1605
Optional Features:
 
1606
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1607
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1608
  --disable-fast-perl     disable fast Makefile generation (needs perl)
 
1609
  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
 
1610
  --disable-debug         disables debug output and debug symbols default=no
 
1611
  --enable-strict         compiles with strict compiler options (may not
 
1612
                          work!)
 
1613
  --disable-warnings      disables compilation with -Wall and similar
 
1614
  --enable-profile        creates profiling infos default=no
 
1615
  --disable-dependency-tracking  speeds up one-time build
 
1616
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1617
  --enable-pch            enables precompiled header support (currently only
 
1618
                          KCC or gcc >=3.4+unsermake) default=no
 
1619
  --enable-coverage       use gcc coverage testing
 
1620
  --enable-new-ldflags    enable the new linker flags
 
1621
  --enable-final          build size optimized apps (experimental - needs lots
 
1622
                          of memory)
 
1623
  --enable-closure        delay template instantiation
 
1624
  --enable-nmcheck        enable automatic namespace cleanness check
 
1625
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
 
1626
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
 
1627
  --enable-libsuffix      /lib directory suffix (64,32,none=default)
 
1628
  --enable-fast-install@<:@=PKGS@:>@ 
 
1629
                          optimize for fast installation @<:@default=yes@:>@
 
1630
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1631
  --enable-embedded       link to Qt-embedded, don't use X
 
1632
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
 
1633
  --enable-mac            link to Qt/Mac (don't use X)
 
1634
  --disable-mt            link to non-threaded Qt (deprecated)
 
1635
  --disable-threading     disables threading even if libpthread found
 
1636
  --disable-rpath         do not use the rpath feature of ld
 
1637
  --disable-path-check    don't try to find out, where to install
 
1638
 
 
1639
Optional Packages:
 
1640
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1641
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1642
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1643
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
 
1644
                          both@:>@
 
1645
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
 
1646
  --with-extra-includes=DIR 
 
1647
                          adds non standard include paths
 
1648
  --with-extra-libs=DIR   adds non standard library paths
 
1649
  --with-qt-dir=DIR       where the root of Qt is installed
 
1650
  --with-qt-includes=DIR  where the Qt includes are.
 
1651
  --with-qt-libraries=DIR where the Qt library is installed.
 
1652
  --without-arts          build without aRts default=no
 
1653
 
 
1654
Some influential environment variables:
 
1655
  CC          C compiler command
 
1656
  CFLAGS      C compiler flags
 
1657
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1658
              nonstandard directory <lib dir>
 
1659
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1660
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1661
              you have headers in a nonstandard directory <include dir>
 
1662
  CPP         C preprocessor
 
1663
  CXX         C++ compiler command
 
1664
  CXXFLAGS    C++ compiler flags
 
1665
  CXXCPP      C++ preprocessor
 
1666
  F77         Fortran 77 compiler command
 
1667
  FFLAGS      Fortran 77 compiler flags
 
1668
  XMKMF       Path to xmkmf, Makefile generator for X Window System
 
1669
 
 
1670
Use these variables to override the choices made by `configure' or to help
 
1671
it to find libraries and programs with nonstandard names/locations.
 
1672
 
 
1673
_ACEOF
 
1674
ac_status=$?
 
1675
fi
 
1676
 
 
1677
if test "$ac_init_help" = "recursive"; then
 
1678
  # If there are subdirs, report their specific --help.
 
1679
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1680
    test -d "$ac_dir" || continue
 
1681
    ac_builddir=.
 
1682
 
 
1683
case "$ac_dir" in
 
1684
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1685
*)
 
1686
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1687
  # A ".." for each directory in $ac_dir_suffix.
 
1688
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1689
  case $ac_top_builddir_sub in
 
1690
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1691
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1692
  esac ;;
 
1693
esac
 
1694
ac_abs_top_builddir=$ac_pwd
 
1695
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1696
# for backward compatibility:
 
1697
ac_top_builddir=$ac_top_build_prefix
 
1698
 
 
1699
case $srcdir in
 
1700
  .)  # We are building in place.
 
1701
    ac_srcdir=.
 
1702
    ac_top_srcdir=$ac_top_builddir_sub
 
1703
    ac_abs_top_srcdir=$ac_pwd ;;
 
1704
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1705
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1706
    ac_top_srcdir=$srcdir
 
1707
    ac_abs_top_srcdir=$srcdir ;;
 
1708
  *) # Relative name.
 
1709
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1710
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1711
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1712
esac
 
1713
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1714
 
 
1715
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1716
    # Check for guested configure.
 
1717
    if test -f "$ac_srcdir/configure.gnu"; then
 
1718
      echo &&
 
1719
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1720
    elif test -f "$ac_srcdir/configure"; then
 
1721
      echo &&
 
1722
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1723
    else
 
1724
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1725
    fi || ac_status=$?
 
1726
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1727
  done
 
1728
fi
 
1729
 
 
1730
test -n "$ac_init_help" && exit $ac_status
 
1731
if $ac_init_version; then
 
1732
  cat <<\_ACEOF
 
1733
configure
 
1734
generated by GNU Autoconf 2.61
 
1735
 
 
1736
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1737
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1738
This configure script is free software; the Free Software Foundation
 
1739
gives unlimited permission to copy, distribute and modify it.
 
1740
_ACEOF
 
1741
  exit
 
1742
fi
 
1743
cat >config.log <<_ACEOF
 
1744
This file contains any messages produced by compilers while
 
1745
running configure, to aid debugging if configure makes a mistake.
 
1746
 
 
1747
It was created by $as_me, which was
 
1748
generated by GNU Autoconf 2.61.  Invocation command line was
 
1749
 
 
1750
  $ $0 $@
 
1751
 
 
1752
_ACEOF
 
1753
exec 5>>config.log
 
1754
{
 
1755
cat <<_ASUNAME
 
1756
@%:@@%:@ --------- @%:@@%:@
 
1757
@%:@@%:@ Platform. @%:@@%:@
 
1758
@%:@@%:@ --------- @%:@@%:@
 
1759
 
 
1760
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1761
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1762
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1763
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1764
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1765
 
 
1766
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1767
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1768
 
 
1769
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1770
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1771
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1772
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1773
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1774
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1775
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1776
 
 
1777
_ASUNAME
 
1778
 
 
1779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1780
for as_dir in $PATH
 
1781
do
 
1782
  IFS=$as_save_IFS
 
1783
  test -z "$as_dir" && as_dir=.
 
1784
  echo "PATH: $as_dir"
 
1785
done
 
1786
IFS=$as_save_IFS
 
1787
 
 
1788
} >&5
 
1789
 
 
1790
cat >&5 <<_ACEOF
 
1791
 
 
1792
 
 
1793
@%:@@%:@ ----------- @%:@@%:@
 
1794
@%:@@%:@ Core tests. @%:@@%:@
 
1795
@%:@@%:@ ----------- @%:@@%:@
 
1796
 
 
1797
_ACEOF
 
1798
 
 
1799
 
 
1800
# Keep a trace of the command line.
 
1801
# Strip out --no-create and --no-recursion so they do not pile up.
 
1802
# Strip out --silent because we don't want to record it for future runs.
 
1803
# Also quote any args containing shell meta-characters.
 
1804
# Make two passes to allow for proper duplicate-argument suppression.
 
1805
ac_configure_args=
 
1806
ac_configure_args0=
 
1807
ac_configure_args1=
 
1808
ac_must_keep_next=false
 
1809
for ac_pass in 1 2
 
1810
do
 
1811
  for ac_arg
 
1812
  do
 
1813
    case $ac_arg in
 
1814
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1815
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1816
    | -silent | --silent | --silen | --sile | --sil)
 
1817
      continue ;;
 
1818
    *\'*)
 
1819
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1820
    esac
 
1821
    case $ac_pass in
 
1822
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1823
    2)
 
1824
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1825
      if test $ac_must_keep_next = true; then
 
1826
        ac_must_keep_next=false # Got value, back to normal.
 
1827
      else
 
1828
        case $ac_arg in
 
1829
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1830
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1831
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1832
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1833
            case "$ac_configure_args0 " in
 
1834
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1835
            esac
 
1836
            ;;
 
1837
          -* ) ac_must_keep_next=true ;;
 
1838
        esac
 
1839
      fi
 
1840
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1841
      ;;
 
1842
    esac
 
1843
  done
 
1844
done
 
1845
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1846
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1847
 
 
1848
# When interrupted or exit'd, cleanup temporary files, and complete
 
1849
# config.log.  We remove comments because anyway the quotes in there
 
1850
# would cause problems or look ugly.
 
1851
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1852
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1853
trap 'exit_status=$?
 
1854
  # Save into config.log some information that might help in debugging.
 
1855
  {
 
1856
    echo
 
1857
 
 
1858
    cat <<\_ASBOX
 
1859
@%:@@%:@ ---------------- @%:@@%:@
 
1860
@%:@@%:@ Cache variables. @%:@@%:@
 
1861
@%:@@%:@ ---------------- @%:@@%:@
 
1862
_ASBOX
 
1863
    echo
 
1864
    # The following way of writing the cache mishandles newlines in values,
 
1865
(
 
1866
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1867
    eval ac_val=\$$ac_var
 
1868
    case $ac_val in #(
 
1869
    *${as_nl}*)
 
1870
      case $ac_var in #(
 
1871
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1872
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1873
      esac
 
1874
      case $ac_var in #(
 
1875
      _ | IFS | as_nl) ;; #(
 
1876
      *) $as_unset $ac_var ;;
 
1877
      esac ;;
 
1878
    esac
 
1879
  done
 
1880
  (set) 2>&1 |
 
1881
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1882
    *${as_nl}ac_space=\ *)
 
1883
      sed -n \
 
1884
        "s/'\''/'\''\\\\'\'''\''/g;
 
1885
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1886
      ;; #(
 
1887
    *)
 
1888
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1889
      ;;
 
1890
    esac |
 
1891
    sort
 
1892
)
 
1893
    echo
 
1894
 
 
1895
    cat <<\_ASBOX
 
1896
@%:@@%:@ ----------------- @%:@@%:@
 
1897
@%:@@%:@ Output variables. @%:@@%:@
 
1898
@%:@@%:@ ----------------- @%:@@%:@
 
1899
_ASBOX
 
1900
    echo
 
1901
    for ac_var in $ac_subst_vars
 
1902
    do
 
1903
      eval ac_val=\$$ac_var
 
1904
      case $ac_val in
 
1905
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1906
      esac
 
1907
      echo "$ac_var='\''$ac_val'\''"
 
1908
    done | sort
 
1909
    echo
 
1910
 
 
1911
    if test -n "$ac_subst_files"; then
 
1912
      cat <<\_ASBOX
 
1913
@%:@@%:@ ------------------- @%:@@%:@
 
1914
@%:@@%:@ File substitutions. @%:@@%:@
 
1915
@%:@@%:@ ------------------- @%:@@%:@
 
1916
_ASBOX
 
1917
      echo
 
1918
      for ac_var in $ac_subst_files
 
1919
      do
 
1920
        eval ac_val=\$$ac_var
 
1921
        case $ac_val in
 
1922
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1923
        esac
 
1924
        echo "$ac_var='\''$ac_val'\''"
 
1925
      done | sort
 
1926
      echo
 
1927
    fi
 
1928
 
 
1929
    if test -s confdefs.h; then
 
1930
      cat <<\_ASBOX
 
1931
@%:@@%:@ ----------- @%:@@%:@
 
1932
@%:@@%:@ confdefs.h. @%:@@%:@
 
1933
@%:@@%:@ ----------- @%:@@%:@
 
1934
_ASBOX
 
1935
      echo
 
1936
      cat confdefs.h
 
1937
      echo
 
1938
    fi
 
1939
    test "$ac_signal" != 0 &&
 
1940
      echo "$as_me: caught signal $ac_signal"
 
1941
    echo "$as_me: exit $exit_status"
 
1942
  } >&5
 
1943
  rm -f core *.core core.conftest.* &&
 
1944
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1945
    exit $exit_status
 
1946
' 0
 
1947
for ac_signal in 1 2 13 15; do
 
1948
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1949
done
 
1950
ac_signal=0
 
1951
 
 
1952
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1953
rm -f -r conftest* confdefs.h
 
1954
 
 
1955
# Predefined preprocessor variables.
 
1956
 
 
1957
cat >>confdefs.h <<_ACEOF
 
1958
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
1959
_ACEOF
 
1960
 
 
1961
 
 
1962
cat >>confdefs.h <<_ACEOF
 
1963
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1964
_ACEOF
 
1965
 
 
1966
 
 
1967
cat >>confdefs.h <<_ACEOF
 
1968
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1969
_ACEOF
 
1970
 
 
1971
 
 
1972
cat >>confdefs.h <<_ACEOF
 
1973
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
1974
_ACEOF
 
1975
 
 
1976
 
 
1977
cat >>confdefs.h <<_ACEOF
 
1978
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1979
_ACEOF
 
1980
 
 
1981
 
 
1982
# Let the site file select an alternate cache file if it wants to.
 
1983
# Prefer explicitly selected file to automatically selected ones.
 
1984
if test -n "$CONFIG_SITE"; then
 
1985
  set x "$CONFIG_SITE"
 
1986
elif test "x$prefix" != xNONE; then
 
1987
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1988
else
 
1989
  set x "$ac_default_prefix/share/config.site" \
 
1990
        "$ac_default_prefix/etc/config.site"
 
1991
fi
 
1992
shift
 
1993
for ac_site_file
 
1994
do
 
1995
  if test -r "$ac_site_file"; then
 
1996
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1997
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1998
    sed 's/^/| /' "$ac_site_file" >&5
 
1999
    . "$ac_site_file"
 
2000
  fi
 
2001
done
 
2002
 
 
2003
if test -r "$cache_file"; then
 
2004
  # Some versions of bash will fail to source /dev/null (special
 
2005
  # files actually), so we avoid doing that.
 
2006
  if test -f "$cache_file"; then
 
2007
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2008
echo "$as_me: loading cache $cache_file" >&6;}
 
2009
    case $cache_file in
 
2010
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2011
      *)                      . "./$cache_file";;
 
2012
    esac
 
2013
  fi
 
2014
else
 
2015
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2016
echo "$as_me: creating cache $cache_file" >&6;}
 
2017
  >$cache_file
 
2018
fi
 
2019
 
 
2020
# Check that the precious variables saved in the cache have kept the same
 
2021
# value.
 
2022
ac_cache_corrupted=false
 
2023
for ac_var in $ac_precious_vars; do
 
2024
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2025
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2026
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2027
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2028
  case $ac_old_set,$ac_new_set in
 
2029
    set,)
 
2030
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2031
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2032
      ac_cache_corrupted=: ;;
 
2033
    ,set)
 
2034
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2035
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2036
      ac_cache_corrupted=: ;;
 
2037
    ,);;
 
2038
    *)
 
2039
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2040
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2041
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2042
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
2043
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
2044
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
2045
echo "$as_me:   current value: $ac_new_val" >&2;}
 
2046
        ac_cache_corrupted=:
 
2047
      fi;;
 
2048
  esac
 
2049
  # Pass precious variables to config.status.
 
2050
  if test "$ac_new_set" = set; then
 
2051
    case $ac_new_val in
 
2052
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2053
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2054
    esac
 
2055
    case " $ac_configure_args " in
 
2056
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2057
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2058
    esac
 
2059
  fi
 
2060
done
 
2061
if $ac_cache_corrupted; then
 
2062
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2063
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2064
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2065
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2066
   { (exit 1); exit 1; }; }
 
2067
fi
 
2068
 
 
2069
 
 
2070
 
 
2071
 
 
2072
 
 
2073
 
 
2074
 
 
2075
 
 
2076
 
 
2077
 
 
2078
 
 
2079
 
 
2080
 
 
2081
 
 
2082
 
 
2083
 
 
2084
 
 
2085
ac_ext=c
 
2086
ac_cpp='$CPP $CPPFLAGS'
 
2087
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2088
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2089
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2090
 
 
2091
 
 
2092
ac_aux_dir=
 
2093
for ac_dir in admin "$srcdir"/admin; do
 
2094
  if test -f "$ac_dir/install-sh"; then
 
2095
    ac_aux_dir=$ac_dir
 
2096
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2097
    break
 
2098
  elif test -f "$ac_dir/install.sh"; then
 
2099
    ac_aux_dir=$ac_dir
 
2100
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2101
    break
 
2102
  elif test -f "$ac_dir/shtool"; then
 
2103
    ac_aux_dir=$ac_dir
 
2104
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2105
    break
 
2106
  fi
 
2107
done
 
2108
if test -z "$ac_aux_dir"; then
 
2109
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
 
2110
echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
 
2111
   { (exit 1); exit 1; }; }
 
2112
fi
 
2113
 
 
2114
# These three variables are undocumented and unsupported,
 
2115
# and are intended to be withdrawn in a future Autoconf release.
 
2116
# They can cause serious problems if a builder's source tree is in a directory
 
2117
# whose full name contains unusual characters.
 
2118
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2119
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2120
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2121
 
 
2122
 
 
2123
 
 
2124
unset CDPATH
 
2125
 
 
2126
# Make sure we can run config.sub.
 
2127
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2128
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2129
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2130
   { (exit 1); exit 1; }; }
 
2131
 
 
2132
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2133
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2134
if test "${ac_cv_build+set}" = set; then
 
2135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2136
else
 
2137
  ac_build_alias=$build_alias
 
2138
test "x$ac_build_alias" = x &&
 
2139
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2140
test "x$ac_build_alias" = x &&
 
2141
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2142
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2143
   { (exit 1); exit 1; }; }
 
2144
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2145
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2146
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2147
   { (exit 1); exit 1; }; }
 
2148
 
 
2149
fi
 
2150
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2151
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2152
case $ac_cv_build in
 
2153
*-*-*) ;;
 
2154
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2155
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2156
   { (exit 1); exit 1; }; };;
 
2157
esac
 
2158
build=$ac_cv_build
 
2159
ac_save_IFS=$IFS; IFS='-'
 
2160
set x $ac_cv_build
 
2161
shift
 
2162
build_cpu=$1
 
2163
build_vendor=$2
 
2164
shift; shift
 
2165
# Remember, the first character of IFS is used to create $*,
 
2166
# except with old shells:
 
2167
build_os=$*
 
2168
IFS=$ac_save_IFS
 
2169
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2170
 
 
2171
 
 
2172
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2173
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2174
if test "${ac_cv_host+set}" = set; then
 
2175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2176
else
 
2177
  if test "x$host_alias" = x; then
 
2178
  ac_cv_host=$ac_cv_build
 
2179
else
 
2180
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2181
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2182
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2183
   { (exit 1); exit 1; }; }
 
2184
fi
 
2185
 
 
2186
fi
 
2187
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2188
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2189
case $ac_cv_host in
 
2190
*-*-*) ;;
 
2191
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2192
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2193
   { (exit 1); exit 1; }; };;
 
2194
esac
 
2195
host=$ac_cv_host
 
2196
ac_save_IFS=$IFS; IFS='-'
 
2197
set x $ac_cv_host
 
2198
shift
 
2199
host_cpu=$1
 
2200
host_vendor=$2
 
2201
shift; shift
 
2202
# Remember, the first character of IFS is used to create $*,
 
2203
# except with old shells:
 
2204
host_os=$*
 
2205
IFS=$ac_save_IFS
 
2206
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2207
 
 
2208
 
 
2209
{ echo "$as_me:$LINENO: checking target system type" >&5
 
2210
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
 
2211
if test "${ac_cv_target+set}" = set; then
 
2212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2213
else
 
2214
  if test "x$target_alias" = x; then
 
2215
  ac_cv_target=$ac_cv_host
 
2216
else
 
2217
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2218
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2219
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2220
   { (exit 1); exit 1; }; }
 
2221
fi
 
2222
 
 
2223
fi
 
2224
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2225
echo "${ECHO_T}$ac_cv_target" >&6; }
 
2226
case $ac_cv_target in
 
2227
*-*-*) ;;
 
2228
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2229
echo "$as_me: error: invalid value of canonical target" >&2;}
 
2230
   { (exit 1); exit 1; }; };;
 
2231
esac
 
2232
target=$ac_cv_target
 
2233
ac_save_IFS=$IFS; IFS='-'
 
2234
set x $ac_cv_target
 
2235
shift
 
2236
target_cpu=$1
 
2237
target_vendor=$2
 
2238
shift; shift
 
2239
# Remember, the first character of IFS is used to create $*,
 
2240
# except with old shells:
 
2241
target_os=$*
 
2242
IFS=$ac_save_IFS
 
2243
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2244
 
 
2245
 
 
2246
# The aliases save the names the user supplied, while $host etc.
 
2247
# will get canonicalized.
 
2248
test -n "$target_alias" &&
 
2249
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2250
    NONENONEs,x,x, &&
 
2251
  program_prefix=${target_alias}- 
 
2252
test "$program_prefix" != NONE &&
 
2253
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2254
# Use a double $ so make ignores it.
 
2255
test "$program_suffix" != NONE &&
 
2256
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2257
# Double any \ or $.  echo might interpret backslashes.
 
2258
# By default was `s,x,x', remove it if useless.
 
2259
cat <<\_ACEOF >conftest.sed
 
2260
s/[\\$]/&&/g;s/;s,x,x,$//
 
2261
_ACEOF
 
2262
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2263
rm -f conftest.sed
 
2264
 
 
2265
 
 
2266
am__api_version='1.10'
 
2267
 
 
2268
 
 
2269
    
 
2270
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
 
2271
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
 
2272
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
 
2273
  # Find a good install program.  We prefer a C program (faster),
 
2274
# so one script is as good as another.  But avoid the broken or
 
2275
# incompatible versions:
 
2276
# SysV /etc/install, /usr/sbin/install
 
2277
# SunOS /usr/etc/install
 
2278
# IRIX /sbin/install
 
2279
# AIX /bin/install
 
2280
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2281
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2282
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2283
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2284
# OS/2's system install, which has a completely different semantic
 
2285
# ./install, which can be erroneously created by make from ./install.sh.
 
2286
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2287
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2288
if test -z "$INSTALL"; then
 
2289
if test "${ac_cv_path_install+set}" = set; then
 
2290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2291
else
 
2292
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2293
for as_dir in $PATH
 
2294
do
 
2295
  IFS=$as_save_IFS
 
2296
  test -z "$as_dir" && as_dir=.
 
2297
  # Account for people who put trailing slashes in PATH elements.
 
2298
case $as_dir/ in
 
2299
  ./ | .// | /cC/* | \
 
2300
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2301
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2302
  /usr/ucb/* ) ;;
 
2303
  *)
 
2304
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2305
    # Don't use installbsd from OSF since it installs stuff as root
 
2306
    # by default.
 
2307
    for ac_prog in ginstall scoinst install; do
 
2308
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2309
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2310
          if test $ac_prog = install &&
 
2311
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2312
            # AIX install.  It has an incompatible calling convention.
 
2313
            :
 
2314
          elif test $ac_prog = install &&
 
2315
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2316
            # program-specific install script used by HP pwplus--don't use.
 
2317
            :
 
2318
          else
 
2319
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2320
            break 3
 
2321
          fi
 
2322
        fi
 
2323
      done
 
2324
    done
 
2325
    ;;
 
2326
esac
 
2327
done
 
2328
IFS=$as_save_IFS
 
2329
 
 
2330
 
 
2331
fi
 
2332
  if test "${ac_cv_path_install+set}" = set; then
 
2333
    INSTALL=$ac_cv_path_install
 
2334
  else
 
2335
    # As a last resort, use the slow shell script.  Don't cache a
 
2336
    # value for INSTALL within a source directory, because that will
 
2337
    # break other packages using the cache if that directory is
 
2338
    # removed, or if the value is a relative name.
 
2339
    INSTALL=$ac_install_sh
 
2340
  fi
 
2341
fi
 
2342
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2343
echo "${ECHO_T}$INSTALL" >&6; }
 
2344
 
 
2345
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2346
# It thinks the first close brace ends the variable substitution.
 
2347
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2348
 
 
2349
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2350
 
 
2351
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2352
 
 
2353
 
 
2354
  if test -z "$kde_save_INSTALL_given" ; then
 
2355
    # OK, user hasn't given any INSTALL, autoconf found one for us
 
2356
    # now we test, if it supports the -p flag
 
2357
    { echo "$as_me:$LINENO: checking for -p flag to install" >&5
 
2358
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6; }
 
2359
    rm -f confinst.$$.* > /dev/null 2>&1
 
2360
    echo "Testtest" > confinst.$$.orig
 
2361
    ac_res=no
 
2362
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
 
2363
      if test -f confinst.$$.new ; then
 
2364
        # OK, -p seems to do no harm to install
 
2365
        INSTALL="${INSTALL} -p"
 
2366
        ac_res=yes
 
2367
      fi
 
2368
    fi
 
2369
    rm -f confinst.$$.*
 
2370
    { echo "$as_me:$LINENO: result: $ac_res" >&5
 
2371
echo "${ECHO_T}$ac_res" >&6; }
 
2372
  fi
 
2373
                                                      
 
2374
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
 
2375
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
 
2376
  fi
 
2377
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
 
2378
    INSTALL_SCRIPT='${INSTALL}'
 
2379
  fi
 
2380
 
 
2381
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2382
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2383
# Just in case
 
2384
sleep 1
 
2385
echo timestamp > conftest.file
 
2386
# Do `set' in a subshell so we don't clobber the current shell's
 
2387
# arguments.  Must try -L first in case configure is actually a
 
2388
# symlink; some systems play weird games with the mod time of symlinks
 
2389
# (eg FreeBSD returns the mod time of the symlink's containing
 
2390
# directory).
 
2391
if (
 
2392
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2393
   if test "$*" = "X"; then
 
2394
      # -L didn't work.
 
2395
      set X `ls -t $srcdir/configure conftest.file`
 
2396
   fi
 
2397
   rm -f conftest.file
 
2398
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2399
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2400
 
 
2401
      # If neither matched, then we have a broken ls.  This can happen
 
2402
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2403
      # broken ls alias from the environment.  This has actually
 
2404
      # happened.  Such a system could not be considered "sane".
 
2405
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2406
alias in your environment" >&5
 
2407
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2408
alias in your environment" >&2;}
 
2409
   { (exit 1); exit 1; }; }
 
2410
   fi
 
2411
 
 
2412
   test "$2" = conftest.file
 
2413
   )
 
2414
then
 
2415
   # Ok.
 
2416
   :
 
2417
else
 
2418
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2419
Check your system clock" >&5
 
2420
echo "$as_me: error: newly created file is older than distributed files!
 
2421
Check your system clock" >&2;}
 
2422
   { (exit 1); exit 1; }; }
 
2423
fi
 
2424
{ echo "$as_me:$LINENO: result: yes" >&5
 
2425
echo "${ECHO_T}yes" >&6; }
 
2426
# expand $ac_aux_dir to an absolute path
 
2427
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2428
 
 
2429
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2430
# Use eval to expand $SHELL
 
2431
if eval "$MISSING --run true"; then
 
2432
  am_missing_run="$MISSING --run "
 
2433
else
 
2434
  am_missing_run=
 
2435
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2436
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2437
fi
 
2438
 
 
2439
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2440
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2441
if test -z "$MKDIR_P"; then
 
2442
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2444
else
 
2445
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2446
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2447
do
 
2448
  IFS=$as_save_IFS
 
2449
  test -z "$as_dir" && as_dir=.
 
2450
  for ac_prog in mkdir gmkdir; do
 
2451
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2452
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2453
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2454
             'mkdir (GNU coreutils) '* | \
 
2455
             'mkdir (coreutils) '* | \
 
2456
             'mkdir (fileutils) '4.1*)
 
2457
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2458
               break 3;;
 
2459
           esac
 
2460
         done
 
2461
       done
 
2462
done
 
2463
IFS=$as_save_IFS
 
2464
 
 
2465
fi
 
2466
 
 
2467
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2468
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2469
  else
 
2470
    # As a last resort, use the slow shell script.  Don't cache a
 
2471
    # value for MKDIR_P within a source directory, because that will
 
2472
    # break other packages using the cache if that directory is
 
2473
    # removed, or if the value is a relative name.
 
2474
    test -d ./--version && rmdir ./--version
 
2475
    MKDIR_P="$ac_install_sh -d"
 
2476
  fi
 
2477
fi
 
2478
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2479
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2480
 
 
2481
mkdir_p="$MKDIR_P"
 
2482
case $mkdir_p in
 
2483
  [\\/$]* | ?:[\\/]*) ;;
 
2484
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2485
esac
 
2486
 
 
2487
for ac_prog in gawk mawk nawk awk
 
2488
do
 
2489
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2490
set dummy $ac_prog; ac_word=$2
 
2491
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2492
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2493
if test "${ac_cv_prog_AWK+set}" = set; then
 
2494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2495
else
 
2496
  if test -n "$AWK"; then
 
2497
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2498
else
 
2499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2500
for as_dir in $PATH
 
2501
do
 
2502
  IFS=$as_save_IFS
 
2503
  test -z "$as_dir" && as_dir=.
 
2504
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2506
    ac_cv_prog_AWK="$ac_prog"
 
2507
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2508
    break 2
 
2509
  fi
 
2510
done
 
2511
done
 
2512
IFS=$as_save_IFS
 
2513
 
 
2514
fi
 
2515
fi
 
2516
AWK=$ac_cv_prog_AWK
 
2517
if test -n "$AWK"; then
 
2518
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2519
echo "${ECHO_T}$AWK" >&6; }
 
2520
else
 
2521
  { echo "$as_me:$LINENO: result: no" >&5
 
2522
echo "${ECHO_T}no" >&6; }
 
2523
fi
 
2524
 
 
2525
 
 
2526
  test -n "$AWK" && break
 
2527
done
 
2528
 
 
2529
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2530
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2531
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2532
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2534
else
 
2535
  cat >conftest.make <<\_ACEOF
 
2536
SHELL = /bin/sh
 
2537
all:
 
2538
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2539
_ACEOF
 
2540
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2541
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2542
  *@@@%%%=?*=@@@%%%*)
 
2543
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2544
  *)
 
2545
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2546
esac
 
2547
rm -f conftest.make
 
2548
fi
 
2549
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2550
  { echo "$as_me:$LINENO: result: yes" >&5
 
2551
echo "${ECHO_T}yes" >&6; }
 
2552
  SET_MAKE=
 
2553
else
 
2554
  { echo "$as_me:$LINENO: result: no" >&5
 
2555
echo "${ECHO_T}no" >&6; }
 
2556
  SET_MAKE="MAKE=${MAKE-make}"
 
2557
fi
 
2558
 
 
2559
rm -rf .tst 2>/dev/null
 
2560
mkdir .tst 2>/dev/null
 
2561
if test -d .tst; then
 
2562
  am__leading_dot=.
 
2563
else
 
2564
  am__leading_dot=_
 
2565
fi
 
2566
rmdir .tst 2>/dev/null
 
2567
 
 
2568
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2569
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2570
  # is not polluted with repeated "-I."
 
2571
  am__isrc=' -I$(srcdir)'
 
2572
  # test to see if srcdir already configured
 
2573
  if test -f $srcdir/config.status; then
 
2574
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2575
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2576
   { (exit 1); exit 1; }; }
 
2577
  fi
 
2578
fi
 
2579
 
 
2580
# test whether we have cygpath
 
2581
if test -z "$CYGPATH_W"; then
 
2582
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2583
    CYGPATH_W='cygpath -w'
 
2584
  else
 
2585
    CYGPATH_W=echo
 
2586
  fi
 
2587
fi
 
2588
 
 
2589
 
 
2590
# Define the identity of the package.
 
2591
 PACKAGE=d3lphin
 
2592
 VERSION=0.9
 
2593
 
 
2594
 
 
2595
cat >>confdefs.h <<_ACEOF
 
2596
@%:@define PACKAGE "$PACKAGE"
 
2597
_ACEOF
 
2598
 
 
2599
 
 
2600
cat >>confdefs.h <<_ACEOF
 
2601
@%:@define VERSION "$VERSION"
 
2602
_ACEOF
 
2603
 
 
2604
# Some tools Automake needs.
 
2605
 
 
2606
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2607
 
 
2608
 
 
2609
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2610
 
 
2611
 
 
2612
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2613
 
 
2614
 
 
2615
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2616
 
 
2617
 
 
2618
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2619
 
 
2620
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2621
 
 
2622
# Installed binaries are usually stripped using `strip' when the user
 
2623
# run `make install-strip'.  However `strip' might not be the right
 
2624
# tool to use in cross-compilation environments, therefore Automake
 
2625
# will honor the `STRIP' environment variable to overrule this program.
 
2626
if test "$cross_compiling" != no; then
 
2627
  if test -n "$ac_tool_prefix"; then
 
2628
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2629
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2630
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2631
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2632
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2633
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2634
else
 
2635
  if test -n "$STRIP"; then
 
2636
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2637
else
 
2638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2639
for as_dir in $PATH
 
2640
do
 
2641
  IFS=$as_save_IFS
 
2642
  test -z "$as_dir" && as_dir=.
 
2643
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2644
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2645
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2646
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2647
    break 2
 
2648
  fi
 
2649
done
 
2650
done
 
2651
IFS=$as_save_IFS
 
2652
 
 
2653
fi
 
2654
fi
 
2655
STRIP=$ac_cv_prog_STRIP
 
2656
if test -n "$STRIP"; then
 
2657
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2658
echo "${ECHO_T}$STRIP" >&6; }
 
2659
else
 
2660
  { echo "$as_me:$LINENO: result: no" >&5
 
2661
echo "${ECHO_T}no" >&6; }
 
2662
fi
 
2663
 
 
2664
 
 
2665
fi
 
2666
if test -z "$ac_cv_prog_STRIP"; then
 
2667
  ac_ct_STRIP=$STRIP
 
2668
  # Extract the first word of "strip", so it can be a program name with args.
 
2669
set dummy strip; ac_word=$2
 
2670
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2672
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2674
else
 
2675
  if test -n "$ac_ct_STRIP"; then
 
2676
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2677
else
 
2678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2679
for as_dir in $PATH
 
2680
do
 
2681
  IFS=$as_save_IFS
 
2682
  test -z "$as_dir" && as_dir=.
 
2683
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2684
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2685
    ac_cv_prog_ac_ct_STRIP="strip"
 
2686
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2687
    break 2
 
2688
  fi
 
2689
done
 
2690
done
 
2691
IFS=$as_save_IFS
 
2692
 
 
2693
fi
 
2694
fi
 
2695
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2696
if test -n "$ac_ct_STRIP"; then
 
2697
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2698
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2699
else
 
2700
  { echo "$as_me:$LINENO: result: no" >&5
 
2701
echo "${ECHO_T}no" >&6; }
 
2702
fi
 
2703
 
 
2704
  if test "x$ac_ct_STRIP" = x; then
 
2705
    STRIP=":"
 
2706
  else
 
2707
    case $cross_compiling:$ac_tool_warned in
 
2708
yes:)
 
2709
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2710
whose name does not start with the host triplet.  If you think this
 
2711
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2712
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2713
whose name does not start with the host triplet.  If you think this
 
2714
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2715
ac_tool_warned=yes ;;
 
2716
esac
 
2717
    STRIP=$ac_ct_STRIP
 
2718
  fi
 
2719
else
 
2720
  STRIP="$ac_cv_prog_STRIP"
 
2721
fi
 
2722
 
 
2723
fi
 
2724
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2725
 
 
2726
# We need awk for the "check" target.  The system "awk" is bad on
 
2727
# some platforms.
 
2728
# Always define AMTAR for backward compatibility.
 
2729
 
 
2730
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2731
 
 
2732
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2733
 
 
2734
 
 
2735
 
 
2736
 
 
2737
 
 
2738
 
 
2739
  unset CDPATH
 
2740
      
 
2741
 
 
2742
  
 
2743
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
 
2744
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
2745
    if test -n "$KDEDIRS"; then
 
2746
       kde_save_IFS=$IFS
 
2747
       IFS=:
 
2748
       for dir in $KDEDIRS; do
 
2749
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
2750
       done
 
2751
       IFS=$kde_save_IFS
 
2752
    fi
 
2753
 
 
2754
  if test "x$prefix" = "xNONE"; then
 
2755
        
 
2756
   { echo "$as_me:$LINENO: checking for kde-config" >&5
 
2757
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
 
2758
   if test -n "$KDECONFIG"; then
 
2759
        kde_cv_path="$KDECONFIG";
 
2760
   else
 
2761
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2762
 
 
2763
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
2764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2765
else
 
2766
  
 
2767
        kde_cv_path="NONE"
 
2768
        kde_save_IFS=$IFS
 
2769
        IFS=':'
 
2770
        dirs=""
 
2771
        for dir in $PATH; do
 
2772
          dirs="$dirs $dir"
 
2773
        done
 
2774
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2775
        else      dirs="$dirs $kde_default_bindirs"
 
2776
        fi
 
2777
        IFS=$kde_save_IFS
 
2778
 
 
2779
        for dir in $dirs; do
 
2780
          if test -x "$dir/kde-config"; then
 
2781
            if test -n ""
 
2782
            then
 
2783
              evalstr="$dir/kde-config  2>&1 "
 
2784
              if eval $evalstr; then
 
2785
                kde_cv_path="$dir/kde-config"
 
2786
                break
 
2787
              fi
 
2788
            else
 
2789
                kde_cv_path="$dir/kde-config"
 
2790
                break
 
2791
            fi
 
2792
          fi
 
2793
        done
 
2794
 
 
2795
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2796
 
 
2797
        
 
2798
fi
 
2799
 
 
2800
 
 
2801
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2802
 
 
2803
   fi
 
2804
 
 
2805
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2806
      { echo "$as_me:$LINENO: result: not found" >&5
 
2807
echo "${ECHO_T}not found" >&6; }
 
2808
      
 
2809
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2810
Please check whether you installed KDE correctly.
 
2811
" >&5
 
2812
echo "$as_me: error: The important program kde-config was not found!
 
2813
Please check whether you installed KDE correctly.
 
2814
" >&2;}
 
2815
   { (exit 1); exit 1; }; }
 
2816
 
 
2817
   else
 
2818
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2819
echo "${ECHO_T}$kde_cv_path" >&6; }
 
2820
      KDECONFIG=$kde_cv_path
 
2821
 
 
2822
   fi
 
2823
 
 
2824
  else
 
2825
        kde_save_PATH="$PATH"
 
2826
    PATH="$exec_prefix/bin:$prefix/bin:$PATH"
 
2827
    
 
2828
   { echo "$as_me:$LINENO: checking for kde-config" >&5
 
2829
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
 
2830
   if test -n "$KDECONFIG"; then
 
2831
        kde_cv_path="$KDECONFIG";
 
2832
   else
 
2833
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2834
 
 
2835
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
2836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2837
else
 
2838
  
 
2839
        kde_cv_path="NONE"
 
2840
        kde_save_IFS=$IFS
 
2841
        IFS=':'
 
2842
        dirs=""
 
2843
        for dir in $PATH; do
 
2844
          dirs="$dirs $dir"
 
2845
        done
 
2846
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2847
        else      dirs="$dirs $kde_default_bindirs"
 
2848
        fi
 
2849
        IFS=$kde_save_IFS
 
2850
 
 
2851
        for dir in $dirs; do
 
2852
          if test -x "$dir/kde-config"; then
 
2853
            if test -n ""
 
2854
            then
 
2855
              evalstr="$dir/kde-config  2>&1 "
 
2856
              if eval $evalstr; then
 
2857
                kde_cv_path="$dir/kde-config"
 
2858
                break
 
2859
              fi
 
2860
            else
 
2861
                kde_cv_path="$dir/kde-config"
 
2862
                break
 
2863
            fi
 
2864
          fi
 
2865
        done
 
2866
 
 
2867
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2868
 
 
2869
        
 
2870
fi
 
2871
 
 
2872
 
 
2873
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2874
 
 
2875
   fi
 
2876
 
 
2877
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2878
      { echo "$as_me:$LINENO: result: not found" >&5
 
2879
echo "${ECHO_T}not found" >&6; }
 
2880
      
 
2881
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2882
Please check whether you installed KDE correctly.
 
2883
" >&5
 
2884
echo "$as_me: error: The important program kde-config was not found!
 
2885
Please check whether you installed KDE correctly.
 
2886
" >&2;}
 
2887
   { (exit 1); exit 1; }; }
 
2888
 
 
2889
   else
 
2890
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2891
echo "${ECHO_T}$kde_cv_path" >&6; }
 
2892
      KDECONFIG=$kde_cv_path
 
2893
 
 
2894
   fi
 
2895
 
 
2896
    PATH="$kde_save_PATH"
 
2897
  fi
 
2898
 
 
2899
  kde_libs_prefix=`$KDECONFIG --prefix`
 
2900
  if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
 
2901
       { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2902
                    This means it has been moved since you installed it.
 
2903
                    This won't work. Please recompile kdelibs for the new prefix.
 
2904
                    " >&5
 
2905
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2906
                    This means it has been moved since you installed it.
 
2907
                    This won't work. Please recompile kdelibs for the new prefix.
 
2908
                    " >&2;}
 
2909
   { (exit 1); exit 1; }; }
 
2910
  fi
 
2911
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
 
2912
  kde_libs_suffix=`$KDECONFIG --libsuffix`
 
2913
 
 
2914
  { echo "$as_me:$LINENO: checking where to install" >&5
 
2915
echo $ECHO_N "checking where to install... $ECHO_C" >&6; }
 
2916
  if test "x$prefix" = "xNONE"; then
 
2917
    prefix=$kde_libs_prefix
 
2918
    { echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
 
2919
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6; }
 
2920
  else
 
2921
        given_prefix=$prefix
 
2922
    { echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
 
2923
echo "${ECHO_T}$prefix (as requested)" >&6; }
 
2924
  fi
 
2925
 
 
2926
  # And delete superfluous '/' to make compares easier
 
2927
  prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2928
  exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2929
  given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2930
 
 
2931
  
 
2932
  
 
2933
  
 
2934
 
 
2935
  
 
2936
    # Check whether --enable-fast-perl was given.
 
2937
if test "${enable_fast_perl+set}" = set; then
 
2938
  enableval=$enable_fast_perl; with_fast_perl=$enableval
 
2939
else
 
2940
  with_fast_perl=yes
 
2941
fi
 
2942
 
 
2943
 
 
2944
  
 
2945
  val=
 
2946
  if test -f $srcdir/configure.files ; then
 
2947
    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
 
2948
  fi
 
2949
  CONF_FILES=
 
2950
  if test -n "$val" ; then
 
2951
    for i in $val ; do
 
2952
      CONF_FILES="$CONF_FILES $i"
 
2953
    done
 
2954
  fi
 
2955
  
 
2956
 
 
2957
 
 
2958
 
 
2959
ac_config_headers="$ac_config_headers config.h"
 
2960
 
 
2961
DEPDIR="${am__leading_dot}deps"
 
2962
 
 
2963
ac_config_commands="$ac_config_commands depfiles"
 
2964
 
 
2965
 
 
2966
am_make=${MAKE-make}
 
2967
cat > confinc << 'END'
 
2968
am__doit:
 
2969
        @echo done
 
2970
.PHONY: am__doit
 
2971
END
 
2972
# If we don't find an include directive, just comment out the code.
 
2973
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2974
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2975
am__include="#"
 
2976
am__quote=
 
2977
_am_result=none
 
2978
# First try GNU make style include.
 
2979
echo "include confinc" > confmf
 
2980
# We grep out `Entering directory' and `Leaving directory'
 
2981
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2982
# In particular we don't look at `^make:' because GNU make might
 
2983
# be invoked under some other name (usually "gmake"), in which
 
2984
# case it prints its new name instead of `make'.
 
2985
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2986
   am__include=include
 
2987
   am__quote=
 
2988
   _am_result=GNU
 
2989
fi
 
2990
# Now try BSD make style include.
 
2991
if test "$am__include" = "#"; then
 
2992
   echo '.include "confinc"' > confmf
 
2993
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2994
      am__include=.include
 
2995
      am__quote="\""
 
2996
      _am_result=BSD
 
2997
   fi
 
2998
fi
 
2999
 
 
3000
 
 
3001
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3002
echo "${ECHO_T}$_am_result" >&6; }
 
3003
rm -f confinc confmf
 
3004
 
 
3005
# Check whether --enable-dependency-tracking was given.
 
3006
if test "${enable_dependency_tracking+set}" = set; then
 
3007
  enableval=$enable_dependency_tracking; 
 
3008
fi
 
3009
 
 
3010
if test "x$enable_dependency_tracking" != xno; then
 
3011
  am_depcomp="$ac_aux_dir/depcomp"
 
3012
  AMDEPBACKSLASH='\'
 
3013
fi
 
3014
 if test "x$enable_dependency_tracking" != xno; then
 
3015
  AMDEP_TRUE=
 
3016
  AMDEP_FALSE='#'
 
3017
else
 
3018
  AMDEP_TRUE='#'
 
3019
  AMDEP_FALSE=
 
3020
fi
 
3021
 
 
3022
 
 
3023
 
 
3024
 
 
3025
 
 
3026
  # Check whether --enable-debug was given.
 
3027
if test "${enable_debug+set}" = set; then
 
3028
  enableval=$enable_debug; 
 
3029
    case $enableval in
 
3030
      yes)
 
3031
        kde_use_debug_code="yes"
 
3032
        kde_use_debug_define=no
 
3033
        ;;
 
3034
      full)
 
3035
        kde_use_debug_code="full"
 
3036
        kde_use_debug_define=no
 
3037
        ;;
 
3038
      *)
 
3039
        kde_use_debug_code="no"
 
3040
        kde_use_debug_define=yes
 
3041
        ;;
 
3042
    esac
 
3043
  
 
3044
else
 
3045
  kde_use_debug_code="no"
 
3046
      kde_use_debug_define=no
 
3047
  
 
3048
fi
 
3049
 
 
3050
 
 
3051
    # Check whether --enable-dummyoption was given.
 
3052
if test "${enable_dummyoption+set}" = set; then
 
3053
  enableval=$enable_dummyoption; 
 
3054
fi
 
3055
 
 
3056
 
 
3057
  # Check whether --enable-strict was given.
 
3058
if test "${enable_strict+set}" = set; then
 
3059
  enableval=$enable_strict; 
 
3060
    if test $enableval = "no"; then
 
3061
         kde_use_strict_options="no"
 
3062
       else
 
3063
         kde_use_strict_options="yes"
 
3064
    fi
 
3065
   
 
3066
else
 
3067
  kde_use_strict_options="no"
 
3068
fi
 
3069
 
 
3070
 
 
3071
  # Check whether --enable-warnings was given.
 
3072
if test "${enable_warnings+set}" = set; then
 
3073
  enableval=$enable_warnings; 
 
3074
    if test $enableval = "no"; then
 
3075
         kde_use_warnings="no"
 
3076
       else
 
3077
         kde_use_warnings="yes"
 
3078
    fi
 
3079
   
 
3080
else
 
3081
  kde_use_warnings="yes"
 
3082
fi
 
3083
 
 
3084
 
 
3085
    if test "$kde_use_debug_code" != "no"; then
 
3086
    kde_use_warnings=yes
 
3087
  fi
 
3088
 
 
3089
  # Check whether --enable-profile was given.
 
3090
if test "${enable_profile+set}" = set; then
 
3091
  enableval=$enable_profile; kde_use_profiling=$enableval
 
3092
else
 
3093
  kde_use_profiling="no"
 
3094
  
 
3095
fi
 
3096
 
 
3097
 
 
3098
    CFLAGS=" $CFLAGS"
 
3099
 
 
3100
  ac_ext=c
 
3101
ac_cpp='$CPP $CPPFLAGS'
 
3102
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3103
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3104
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3105
if test -n "$ac_tool_prefix"; then
 
3106
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3107
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3108
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3110
if test "${ac_cv_prog_CC+set}" = set; then
 
3111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3112
else
 
3113
  if test -n "$CC"; then
 
3114
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3115
else
 
3116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3117
for as_dir in $PATH
 
3118
do
 
3119
  IFS=$as_save_IFS
 
3120
  test -z "$as_dir" && as_dir=.
 
3121
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3122
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3123
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3124
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3125
    break 2
 
3126
  fi
 
3127
done
 
3128
done
 
3129
IFS=$as_save_IFS
 
3130
 
 
3131
fi
 
3132
fi
 
3133
CC=$ac_cv_prog_CC
 
3134
if test -n "$CC"; then
 
3135
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3136
echo "${ECHO_T}$CC" >&6; }
 
3137
else
 
3138
  { echo "$as_me:$LINENO: result: no" >&5
 
3139
echo "${ECHO_T}no" >&6; }
 
3140
fi
 
3141
 
 
3142
 
 
3143
fi
 
3144
if test -z "$ac_cv_prog_CC"; then
 
3145
  ac_ct_CC=$CC
 
3146
  # Extract the first word of "gcc", so it can be a program name with args.
 
3147
set dummy gcc; ac_word=$2
 
3148
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3149
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3150
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3152
else
 
3153
  if test -n "$ac_ct_CC"; then
 
3154
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3155
else
 
3156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3157
for as_dir in $PATH
 
3158
do
 
3159
  IFS=$as_save_IFS
 
3160
  test -z "$as_dir" && as_dir=.
 
3161
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3162
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3163
    ac_cv_prog_ac_ct_CC="gcc"
 
3164
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3165
    break 2
 
3166
  fi
 
3167
done
 
3168
done
 
3169
IFS=$as_save_IFS
 
3170
 
 
3171
fi
 
3172
fi
 
3173
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3174
if test -n "$ac_ct_CC"; then
 
3175
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3176
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3177
else
 
3178
  { echo "$as_me:$LINENO: result: no" >&5
 
3179
echo "${ECHO_T}no" >&6; }
 
3180
fi
 
3181
 
 
3182
  if test "x$ac_ct_CC" = x; then
 
3183
    CC=""
 
3184
  else
 
3185
    case $cross_compiling:$ac_tool_warned in
 
3186
yes:)
 
3187
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3188
whose name does not start with the host triplet.  If you think this
 
3189
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3190
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3191
whose name does not start with the host triplet.  If you think this
 
3192
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3193
ac_tool_warned=yes ;;
 
3194
esac
 
3195
    CC=$ac_ct_CC
 
3196
  fi
 
3197
else
 
3198
  CC="$ac_cv_prog_CC"
 
3199
fi
 
3200
 
 
3201
if test -z "$CC"; then
 
3202
          if test -n "$ac_tool_prefix"; then
 
3203
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3204
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3205
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3207
if test "${ac_cv_prog_CC+set}" = set; then
 
3208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3209
else
 
3210
  if test -n "$CC"; then
 
3211
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3212
else
 
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3214
for as_dir in $PATH
 
3215
do
 
3216
  IFS=$as_save_IFS
 
3217
  test -z "$as_dir" && as_dir=.
 
3218
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3219
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3220
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3221
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3222
    break 2
 
3223
  fi
 
3224
done
 
3225
done
 
3226
IFS=$as_save_IFS
 
3227
 
 
3228
fi
 
3229
fi
 
3230
CC=$ac_cv_prog_CC
 
3231
if test -n "$CC"; then
 
3232
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3233
echo "${ECHO_T}$CC" >&6; }
 
3234
else
 
3235
  { echo "$as_me:$LINENO: result: no" >&5
 
3236
echo "${ECHO_T}no" >&6; }
 
3237
fi
 
3238
 
 
3239
 
 
3240
  fi
 
3241
fi
 
3242
if test -z "$CC"; then
 
3243
  # Extract the first word of "cc", so it can be a program name with args.
 
3244
set dummy cc; ac_word=$2
 
3245
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3246
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3247
if test "${ac_cv_prog_CC+set}" = set; then
 
3248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3249
else
 
3250
  if test -n "$CC"; then
 
3251
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3252
else
 
3253
  ac_prog_rejected=no
 
3254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3255
for as_dir in $PATH
 
3256
do
 
3257
  IFS=$as_save_IFS
 
3258
  test -z "$as_dir" && as_dir=.
 
3259
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3261
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3262
       ac_prog_rejected=yes
 
3263
       continue
 
3264
     fi
 
3265
    ac_cv_prog_CC="cc"
 
3266
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3267
    break 2
 
3268
  fi
 
3269
done
 
3270
done
 
3271
IFS=$as_save_IFS
 
3272
 
 
3273
if test $ac_prog_rejected = yes; then
 
3274
  # We found a bogon in the path, so make sure we never use it.
 
3275
  set dummy $ac_cv_prog_CC
 
3276
  shift
 
3277
  if test $@%:@ != 0; then
 
3278
    # We chose a different compiler from the bogus one.
 
3279
    # However, it has the same basename, so the bogon will be chosen
 
3280
    # first if we set CC to just the basename; use the full file name.
 
3281
    shift
 
3282
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3283
  fi
 
3284
fi
 
3285
fi
 
3286
fi
 
3287
CC=$ac_cv_prog_CC
 
3288
if test -n "$CC"; then
 
3289
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3290
echo "${ECHO_T}$CC" >&6; }
 
3291
else
 
3292
  { echo "$as_me:$LINENO: result: no" >&5
 
3293
echo "${ECHO_T}no" >&6; }
 
3294
fi
 
3295
 
 
3296
 
 
3297
fi
 
3298
if test -z "$CC"; then
 
3299
  if test -n "$ac_tool_prefix"; then
 
3300
  for ac_prog in cl.exe
 
3301
  do
 
3302
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3303
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3304
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3306
if test "${ac_cv_prog_CC+set}" = set; then
 
3307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3308
else
 
3309
  if test -n "$CC"; then
 
3310
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3311
else
 
3312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3313
for as_dir in $PATH
 
3314
do
 
3315
  IFS=$as_save_IFS
 
3316
  test -z "$as_dir" && as_dir=.
 
3317
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3318
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3319
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3320
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3321
    break 2
 
3322
  fi
 
3323
done
 
3324
done
 
3325
IFS=$as_save_IFS
 
3326
 
 
3327
fi
 
3328
fi
 
3329
CC=$ac_cv_prog_CC
 
3330
if test -n "$CC"; then
 
3331
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3332
echo "${ECHO_T}$CC" >&6; }
 
3333
else
 
3334
  { echo "$as_me:$LINENO: result: no" >&5
 
3335
echo "${ECHO_T}no" >&6; }
 
3336
fi
 
3337
 
 
3338
 
 
3339
    test -n "$CC" && break
 
3340
  done
 
3341
fi
 
3342
if test -z "$CC"; then
 
3343
  ac_ct_CC=$CC
 
3344
  for ac_prog in cl.exe
 
3345
do
 
3346
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3347
set dummy $ac_prog; ac_word=$2
 
3348
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3349
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3350
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3352
else
 
3353
  if test -n "$ac_ct_CC"; then
 
3354
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3355
else
 
3356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3357
for as_dir in $PATH
 
3358
do
 
3359
  IFS=$as_save_IFS
 
3360
  test -z "$as_dir" && as_dir=.
 
3361
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3362
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3363
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3364
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3365
    break 2
 
3366
  fi
 
3367
done
 
3368
done
 
3369
IFS=$as_save_IFS
 
3370
 
 
3371
fi
 
3372
fi
 
3373
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3374
if test -n "$ac_ct_CC"; then
 
3375
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3376
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3377
else
 
3378
  { echo "$as_me:$LINENO: result: no" >&5
 
3379
echo "${ECHO_T}no" >&6; }
 
3380
fi
 
3381
 
 
3382
 
 
3383
  test -n "$ac_ct_CC" && break
 
3384
done
 
3385
 
 
3386
  if test "x$ac_ct_CC" = x; then
 
3387
    CC=""
 
3388
  else
 
3389
    case $cross_compiling:$ac_tool_warned in
 
3390
yes:)
 
3391
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3392
whose name does not start with the host triplet.  If you think this
 
3393
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3394
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3395
whose name does not start with the host triplet.  If you think this
 
3396
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3397
ac_tool_warned=yes ;;
 
3398
esac
 
3399
    CC=$ac_ct_CC
 
3400
  fi
 
3401
fi
 
3402
 
 
3403
fi
 
3404
 
 
3405
 
 
3406
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3407
See \`config.log' for more details." >&5
 
3408
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3409
See \`config.log' for more details." >&2;}
 
3410
   { (exit 1); exit 1; }; }
 
3411
 
 
3412
# Provide some information about the compiler.
 
3413
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3414
ac_compiler=`set X $ac_compile; echo $2`
 
3415
{ (ac_try="$ac_compiler --version >&5"
 
3416
case "(($ac_try" in
 
3417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3418
  *) ac_try_echo=$ac_try;;
 
3419
esac
 
3420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3421
  (eval "$ac_compiler --version >&5") 2>&5
 
3422
  ac_status=$?
 
3423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3424
  (exit $ac_status); }
 
3425
{ (ac_try="$ac_compiler -v >&5"
 
3426
case "(($ac_try" in
 
3427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3428
  *) ac_try_echo=$ac_try;;
 
3429
esac
 
3430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3431
  (eval "$ac_compiler -v >&5") 2>&5
 
3432
  ac_status=$?
 
3433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3434
  (exit $ac_status); }
 
3435
{ (ac_try="$ac_compiler -V >&5"
 
3436
case "(($ac_try" in
 
3437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3438
  *) ac_try_echo=$ac_try;;
 
3439
esac
 
3440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3441
  (eval "$ac_compiler -V >&5") 2>&5
 
3442
  ac_status=$?
 
3443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3444
  (exit $ac_status); }
 
3445
 
 
3446
cat >conftest.$ac_ext <<_ACEOF
 
3447
/* confdefs.h.  */
 
3448
_ACEOF
 
3449
cat confdefs.h >>conftest.$ac_ext
 
3450
cat >>conftest.$ac_ext <<_ACEOF
 
3451
/* end confdefs.h.  */
 
3452
 
 
3453
int
 
3454
main ()
 
3455
{
 
3456
 
 
3457
  ;
 
3458
  return 0;
 
3459
}
 
3460
_ACEOF
 
3461
ac_clean_files_save=$ac_clean_files
 
3462
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3463
# Try to create an executable without -o first, disregard a.out.
 
3464
# It will help us diagnose broken compilers, and finding out an intuition
 
3465
# of exeext.
 
3466
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3467
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3468
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3469
#
 
3470
# List of possible output files, starting from the most likely.
 
3471
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3472
# only as a last resort.  b.out is created by i960 compilers.
 
3473
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3474
#
 
3475
# The IRIX 6 linker writes into existing files which may not be
 
3476
# executable, retaining their permissions.  Remove them first so a
 
3477
# subsequent execution test works.
 
3478
ac_rmfiles=
 
3479
for ac_file in $ac_files
 
3480
do
 
3481
  case $ac_file in
 
3482
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3483
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3484
  esac
 
3485
done
 
3486
rm -f $ac_rmfiles
 
3487
 
 
3488
if { (ac_try="$ac_link_default"
 
3489
case "(($ac_try" in
 
3490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3491
  *) ac_try_echo=$ac_try;;
 
3492
esac
 
3493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3494
  (eval "$ac_link_default") 2>&5
 
3495
  ac_status=$?
 
3496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3497
  (exit $ac_status); }; then
 
3498
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3499
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3500
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3501
# so that the user can short-circuit this test for compilers unknown to
 
3502
# Autoconf.
 
3503
for ac_file in $ac_files ''
 
3504
do
 
3505
  test -f "$ac_file" || continue
 
3506
  case $ac_file in
 
3507
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3508
        ;;
 
3509
    [ab].out )
 
3510
        # We found the default executable, but exeext='' is most
 
3511
        # certainly right.
 
3512
        break;;
 
3513
    *.* )
 
3514
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3515
        then :; else
 
3516
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3517
        fi
 
3518
        # We set ac_cv_exeext here because the later test for it is not
 
3519
        # safe: cross compilers may not add the suffix if given an `-o'
 
3520
        # argument, so we may need to know it at that point already.
 
3521
        # Even if this section looks crufty: it has the advantage of
 
3522
        # actually working.
 
3523
        break;;
 
3524
    * )
 
3525
        break;;
 
3526
  esac
 
3527
done
 
3528
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3529
 
 
3530
else
 
3531
  ac_file=''
 
3532
fi
 
3533
 
 
3534
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3535
echo "${ECHO_T}$ac_file" >&6; }
 
3536
if test -z "$ac_file"; then
 
3537
  echo "$as_me: failed program was:" >&5
 
3538
sed 's/^/| /' conftest.$ac_ext >&5
 
3539
 
 
3540
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3541
See \`config.log' for more details." >&5
 
3542
echo "$as_me: error: C compiler cannot create executables
 
3543
See \`config.log' for more details." >&2;}
 
3544
   { (exit 77); exit 77; }; }
 
3545
fi
 
3546
 
 
3547
ac_exeext=$ac_cv_exeext
 
3548
 
 
3549
# Check that the compiler produces executables we can run.  If not, either
 
3550
# the compiler is broken, or we cross compile.
 
3551
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3552
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3553
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3554
# If not cross compiling, check that we can run a simple program.
 
3555
if test "$cross_compiling" != yes; then
 
3556
  if { ac_try='./$ac_file'
 
3557
  { (case "(($ac_try" in
 
3558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3559
  *) ac_try_echo=$ac_try;;
 
3560
esac
 
3561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3562
  (eval "$ac_try") 2>&5
 
3563
  ac_status=$?
 
3564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3565
  (exit $ac_status); }; }; then
 
3566
    cross_compiling=no
 
3567
  else
 
3568
    if test "$cross_compiling" = maybe; then
 
3569
        cross_compiling=yes
 
3570
    else
 
3571
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3572
If you meant to cross compile, use \`--host'.
 
3573
See \`config.log' for more details." >&5
 
3574
echo "$as_me: error: cannot run C compiled programs.
 
3575
If you meant to cross compile, use \`--host'.
 
3576
See \`config.log' for more details." >&2;}
 
3577
   { (exit 1); exit 1; }; }
 
3578
    fi
 
3579
  fi
 
3580
fi
 
3581
{ echo "$as_me:$LINENO: result: yes" >&5
 
3582
echo "${ECHO_T}yes" >&6; }
 
3583
 
 
3584
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3585
ac_clean_files=$ac_clean_files_save
 
3586
# Check that the compiler produces executables we can run.  If not, either
 
3587
# the compiler is broken, or we cross compile.
 
3588
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3589
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3590
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3591
echo "${ECHO_T}$cross_compiling" >&6; }
 
3592
 
 
3593
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3594
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3595
if { (ac_try="$ac_link"
 
3596
case "(($ac_try" in
 
3597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3598
  *) ac_try_echo=$ac_try;;
 
3599
esac
 
3600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3601
  (eval "$ac_link") 2>&5
 
3602
  ac_status=$?
 
3603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3604
  (exit $ac_status); }; then
 
3605
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3606
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3607
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3608
# `rm'.
 
3609
for ac_file in conftest.exe conftest conftest.*; do
 
3610
  test -f "$ac_file" || continue
 
3611
  case $ac_file in
 
3612
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3613
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3614
          break;;
 
3615
    * ) break;;
 
3616
  esac
 
3617
done
 
3618
else
 
3619
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3620
See \`config.log' for more details." >&5
 
3621
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3622
See \`config.log' for more details." >&2;}
 
3623
   { (exit 1); exit 1; }; }
 
3624
fi
 
3625
 
 
3626
rm -f conftest$ac_cv_exeext
 
3627
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3628
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3629
 
 
3630
rm -f conftest.$ac_ext
 
3631
EXEEXT=$ac_cv_exeext
 
3632
ac_exeext=$EXEEXT
 
3633
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3634
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3635
if test "${ac_cv_objext+set}" = set; then
 
3636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3637
else
 
3638
  cat >conftest.$ac_ext <<_ACEOF
 
3639
/* confdefs.h.  */
 
3640
_ACEOF
 
3641
cat confdefs.h >>conftest.$ac_ext
 
3642
cat >>conftest.$ac_ext <<_ACEOF
 
3643
/* end confdefs.h.  */
 
3644
 
 
3645
int
 
3646
main ()
 
3647
{
 
3648
 
 
3649
  ;
 
3650
  return 0;
 
3651
}
 
3652
_ACEOF
 
3653
rm -f conftest.o conftest.obj
 
3654
if { (ac_try="$ac_compile"
 
3655
case "(($ac_try" in
 
3656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3657
  *) ac_try_echo=$ac_try;;
 
3658
esac
 
3659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3660
  (eval "$ac_compile") 2>&5
 
3661
  ac_status=$?
 
3662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3663
  (exit $ac_status); }; then
 
3664
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3665
  test -f "$ac_file" || continue;
 
3666
  case $ac_file in
 
3667
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3668
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3669
       break;;
 
3670
  esac
 
3671
done
 
3672
else
 
3673
  echo "$as_me: failed program was:" >&5
 
3674
sed 's/^/| /' conftest.$ac_ext >&5
 
3675
 
 
3676
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3677
See \`config.log' for more details." >&5
 
3678
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3679
See \`config.log' for more details." >&2;}
 
3680
   { (exit 1); exit 1; }; }
 
3681
fi
 
3682
 
 
3683
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3684
fi
 
3685
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3686
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3687
OBJEXT=$ac_cv_objext
 
3688
ac_objext=$OBJEXT
 
3689
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3690
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3691
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3693
else
 
3694
  cat >conftest.$ac_ext <<_ACEOF
 
3695
/* confdefs.h.  */
 
3696
_ACEOF
 
3697
cat confdefs.h >>conftest.$ac_ext
 
3698
cat >>conftest.$ac_ext <<_ACEOF
 
3699
/* end confdefs.h.  */
 
3700
 
 
3701
int
 
3702
main ()
 
3703
{
 
3704
#ifndef __GNUC__
 
3705
       choke me
 
3706
#endif
 
3707
 
 
3708
  ;
 
3709
  return 0;
 
3710
}
 
3711
_ACEOF
 
3712
rm -f conftest.$ac_objext
 
3713
if { (ac_try="$ac_compile"
 
3714
case "(($ac_try" in
 
3715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3716
  *) ac_try_echo=$ac_try;;
 
3717
esac
 
3718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3719
  (eval "$ac_compile") 2>conftest.er1
 
3720
  ac_status=$?
 
3721
  grep -v '^ *+' conftest.er1 >conftest.err
 
3722
  rm -f conftest.er1
 
3723
  cat conftest.err >&5
 
3724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3725
  (exit $ac_status); } && {
 
3726
         test -z "$ac_c_werror_flag" ||
 
3727
         test ! -s conftest.err
 
3728
       } && test -s conftest.$ac_objext; then
 
3729
  ac_compiler_gnu=yes
 
3730
else
 
3731
  echo "$as_me: failed program was:" >&5
 
3732
sed 's/^/| /' conftest.$ac_ext >&5
 
3733
 
 
3734
        ac_compiler_gnu=no
 
3735
fi
 
3736
 
 
3737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3738
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3739
 
 
3740
fi
 
3741
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3742
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3743
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3744
ac_test_CFLAGS=${CFLAGS+set}
 
3745
ac_save_CFLAGS=$CFLAGS
 
3746
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3747
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3748
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3750
else
 
3751
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3752
   ac_c_werror_flag=yes
 
3753
   ac_cv_prog_cc_g=no
 
3754
   CFLAGS="-g"
 
3755
   cat >conftest.$ac_ext <<_ACEOF
 
3756
/* confdefs.h.  */
 
3757
_ACEOF
 
3758
cat confdefs.h >>conftest.$ac_ext
 
3759
cat >>conftest.$ac_ext <<_ACEOF
 
3760
/* end confdefs.h.  */
 
3761
 
 
3762
int
 
3763
main ()
 
3764
{
 
3765
 
 
3766
  ;
 
3767
  return 0;
 
3768
}
 
3769
_ACEOF
 
3770
rm -f conftest.$ac_objext
 
3771
if { (ac_try="$ac_compile"
 
3772
case "(($ac_try" in
 
3773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3774
  *) ac_try_echo=$ac_try;;
 
3775
esac
 
3776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3777
  (eval "$ac_compile") 2>conftest.er1
 
3778
  ac_status=$?
 
3779
  grep -v '^ *+' conftest.er1 >conftest.err
 
3780
  rm -f conftest.er1
 
3781
  cat conftest.err >&5
 
3782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3783
  (exit $ac_status); } && {
 
3784
         test -z "$ac_c_werror_flag" ||
 
3785
         test ! -s conftest.err
 
3786
       } && test -s conftest.$ac_objext; then
 
3787
  ac_cv_prog_cc_g=yes
 
3788
else
 
3789
  echo "$as_me: failed program was:" >&5
 
3790
sed 's/^/| /' conftest.$ac_ext >&5
 
3791
 
 
3792
        CFLAGS=""
 
3793
      cat >conftest.$ac_ext <<_ACEOF
 
3794
/* confdefs.h.  */
 
3795
_ACEOF
 
3796
cat confdefs.h >>conftest.$ac_ext
 
3797
cat >>conftest.$ac_ext <<_ACEOF
 
3798
/* end confdefs.h.  */
 
3799
 
 
3800
int
 
3801
main ()
 
3802
{
 
3803
 
 
3804
  ;
 
3805
  return 0;
 
3806
}
 
3807
_ACEOF
 
3808
rm -f conftest.$ac_objext
 
3809
if { (ac_try="$ac_compile"
 
3810
case "(($ac_try" in
 
3811
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3812
  *) ac_try_echo=$ac_try;;
 
3813
esac
 
3814
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3815
  (eval "$ac_compile") 2>conftest.er1
 
3816
  ac_status=$?
 
3817
  grep -v '^ *+' conftest.er1 >conftest.err
 
3818
  rm -f conftest.er1
 
3819
  cat conftest.err >&5
 
3820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3821
  (exit $ac_status); } && {
 
3822
         test -z "$ac_c_werror_flag" ||
 
3823
         test ! -s conftest.err
 
3824
       } && test -s conftest.$ac_objext; then
 
3825
  :
 
3826
else
 
3827
  echo "$as_me: failed program was:" >&5
 
3828
sed 's/^/| /' conftest.$ac_ext >&5
 
3829
 
 
3830
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3831
         CFLAGS="-g"
 
3832
         cat >conftest.$ac_ext <<_ACEOF
 
3833
/* confdefs.h.  */
 
3834
_ACEOF
 
3835
cat confdefs.h >>conftest.$ac_ext
 
3836
cat >>conftest.$ac_ext <<_ACEOF
 
3837
/* end confdefs.h.  */
 
3838
 
 
3839
int
 
3840
main ()
 
3841
{
 
3842
 
 
3843
  ;
 
3844
  return 0;
 
3845
}
 
3846
_ACEOF
 
3847
rm -f conftest.$ac_objext
 
3848
if { (ac_try="$ac_compile"
 
3849
case "(($ac_try" in
 
3850
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3851
  *) ac_try_echo=$ac_try;;
 
3852
esac
 
3853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3854
  (eval "$ac_compile") 2>conftest.er1
 
3855
  ac_status=$?
 
3856
  grep -v '^ *+' conftest.er1 >conftest.err
 
3857
  rm -f conftest.er1
 
3858
  cat conftest.err >&5
 
3859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3860
  (exit $ac_status); } && {
 
3861
         test -z "$ac_c_werror_flag" ||
 
3862
         test ! -s conftest.err
 
3863
       } && test -s conftest.$ac_objext; then
 
3864
  ac_cv_prog_cc_g=yes
 
3865
else
 
3866
  echo "$as_me: failed program was:" >&5
 
3867
sed 's/^/| /' conftest.$ac_ext >&5
 
3868
 
 
3869
        
 
3870
fi
 
3871
 
 
3872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3873
fi
 
3874
 
 
3875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3876
fi
 
3877
 
 
3878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3879
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3880
fi
 
3881
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3882
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3883
if test "$ac_test_CFLAGS" = set; then
 
3884
  CFLAGS=$ac_save_CFLAGS
 
3885
elif test $ac_cv_prog_cc_g = yes; then
 
3886
  if test "$GCC" = yes; then
 
3887
    CFLAGS="-g -O2"
 
3888
  else
 
3889
    CFLAGS="-g"
 
3890
  fi
 
3891
else
 
3892
  if test "$GCC" = yes; then
 
3893
    CFLAGS="-O2"
 
3894
  else
 
3895
    CFLAGS=
 
3896
  fi
 
3897
fi
 
3898
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3899
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3900
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3902
else
 
3903
  ac_cv_prog_cc_c89=no
 
3904
ac_save_CC=$CC
 
3905
cat >conftest.$ac_ext <<_ACEOF
 
3906
/* confdefs.h.  */
 
3907
_ACEOF
 
3908
cat confdefs.h >>conftest.$ac_ext
 
3909
cat >>conftest.$ac_ext <<_ACEOF
 
3910
/* end confdefs.h.  */
 
3911
#include <stdarg.h>
 
3912
#include <stdio.h>
 
3913
#include <sys/types.h>
 
3914
#include <sys/stat.h>
 
3915
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3916
struct buf { int x; };
 
3917
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3918
static char *e (p, i)
 
3919
     char **p;
 
3920
     int i;
 
3921
{
 
3922
  return p[i];
 
3923
}
 
3924
static char *f (char * (*g) (char **, int), char **p, ...)
 
3925
{
 
3926
  char *s;
 
3927
  va_list v;
 
3928
  va_start (v,p);
 
3929
  s = g (p, va_arg (v,int));
 
3930
  va_end (v);
 
3931
  return s;
 
3932
}
 
3933
 
 
3934
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3935
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3936
   These don't provoke an error unfortunately, instead are silently treated
 
3937
   as 'x'.  The following induces an error, until -std is added to get
 
3938
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3939
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3940
   that's true only with -std.  */
 
3941
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3942
 
 
3943
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3944
   inside strings and character constants.  */
 
3945
#define FOO(x) 'x'
 
3946
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3947
 
 
3948
int test (int i, double x);
 
3949
struct s1 {int (*f) (int a);};
 
3950
struct s2 {int (*f) (double a);};
 
3951
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3952
int argc;
 
3953
char **argv;
 
3954
int
 
3955
main ()
 
3956
{
 
3957
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3958
  ;
 
3959
  return 0;
 
3960
}
 
3961
_ACEOF
 
3962
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3963
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3964
do
 
3965
  CC="$ac_save_CC $ac_arg"
 
3966
  rm -f conftest.$ac_objext
 
3967
if { (ac_try="$ac_compile"
 
3968
case "(($ac_try" in
 
3969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3970
  *) ac_try_echo=$ac_try;;
 
3971
esac
 
3972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3973
  (eval "$ac_compile") 2>conftest.er1
 
3974
  ac_status=$?
 
3975
  grep -v '^ *+' conftest.er1 >conftest.err
 
3976
  rm -f conftest.er1
 
3977
  cat conftest.err >&5
 
3978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3979
  (exit $ac_status); } && {
 
3980
         test -z "$ac_c_werror_flag" ||
 
3981
         test ! -s conftest.err
 
3982
       } && test -s conftest.$ac_objext; then
 
3983
  ac_cv_prog_cc_c89=$ac_arg
 
3984
else
 
3985
  echo "$as_me: failed program was:" >&5
 
3986
sed 's/^/| /' conftest.$ac_ext >&5
 
3987
 
 
3988
        
 
3989
fi
 
3990
 
 
3991
rm -f core conftest.err conftest.$ac_objext 
 
3992
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3993
done
 
3994
rm -f conftest.$ac_ext
 
3995
CC=$ac_save_CC
 
3996
 
 
3997
fi
 
3998
# AC_CACHE_VAL
 
3999
case "x$ac_cv_prog_cc_c89" in
 
4000
  x)
 
4001
    { echo "$as_me:$LINENO: result: none needed" >&5
 
4002
echo "${ECHO_T}none needed" >&6; } ;;
 
4003
  xno)
 
4004
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
4005
echo "${ECHO_T}unsupported" >&6; } ;;
 
4006
  *)
 
4007
    CC="$CC $ac_cv_prog_cc_c89"
 
4008
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4009
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
4010
esac
 
4011
 
 
4012
 
 
4013
ac_ext=c
 
4014
ac_cpp='$CPP $CPPFLAGS'
 
4015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4018
 
 
4019
depcc="$CC"   am_compiler_list=
 
4020
 
 
4021
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4022
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
4023
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4025
else
 
4026
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4027
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4028
  # making bogus files that we don't know about and never remove.  For
 
4029
  # instance it was reported that on HP-UX the gcc test will end up
 
4030
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4031
  # in D'.
 
4032
  mkdir conftest.dir
 
4033
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4034
  # using a relative directory.
 
4035
  cp "$am_depcomp" conftest.dir
 
4036
  cd conftest.dir
 
4037
  # We will build objects and dependencies in a subdirectory because
 
4038
  # it helps to detect inapplicable dependency modes.  For instance
 
4039
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4040
  # side effect of compilation, but ICC will put the dependencies in
 
4041
  # the current directory while Tru64 will put them in the object
 
4042
  # directory.
 
4043
  mkdir sub
 
4044
 
 
4045
  am_cv_CC_dependencies_compiler_type=none
 
4046
  if test "$am_compiler_list" = ""; then
 
4047
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4048
  fi
 
4049
  for depmode in $am_compiler_list; do
 
4050
    # Setup a source with many dependencies, because some compilers
 
4051
    # like to wrap large dependency lists on column 80 (with \), and
 
4052
    # we should not choose a depcomp mode which is confused by this.
 
4053
    #
 
4054
    # We need to recreate these files for each test, as the compiler may
 
4055
    # overwrite some of them when testing with obscure command lines.
 
4056
    # This happens at least with the AIX C compiler.
 
4057
    : > sub/conftest.c
 
4058
    for i in 1 2 3 4 5 6; do
 
4059
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4060
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4061
      # Solaris 8's {/usr,}/bin/sh.
 
4062
      touch sub/conftst$i.h
 
4063
    done
 
4064
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4065
 
 
4066
    case $depmode in
 
4067
    nosideeffect)
 
4068
      # after this tag, mechanisms are not by side-effect, so they'll
 
4069
      # only be used when explicitly requested
 
4070
      if test "x$enable_dependency_tracking" = xyes; then
 
4071
        continue
 
4072
      else
 
4073
        break
 
4074
      fi
 
4075
      ;;
 
4076
    none) break ;;
 
4077
    esac
 
4078
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4079
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4080
    # handle `-M -o', and we need to detect this.
 
4081
    if depmode=$depmode \
 
4082
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4083
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4084
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4085
         >/dev/null 2>conftest.err &&
 
4086
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4087
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4088
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4089
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4090
      # icc doesn't choke on unknown options, it will just issue warnings
 
4091
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4092
      # that says an option was ignored or not supported.
 
4093
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4094
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4095
      # The diagnosis changed in icc 8.0:
 
4096
      #   icc: Command line remark: option '-MP' not supported
 
4097
      if (grep 'ignoring option' conftest.err ||
 
4098
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4099
        am_cv_CC_dependencies_compiler_type=$depmode
 
4100
        break
 
4101
      fi
 
4102
    fi
 
4103
  done
 
4104
 
 
4105
  cd ..
 
4106
  rm -rf conftest.dir
 
4107
else
 
4108
  am_cv_CC_dependencies_compiler_type=none
 
4109
fi
 
4110
 
 
4111
fi
 
4112
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4113
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
4114
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4115
 
 
4116
 if 
 
4117
  test "x$enable_dependency_tracking" != xno \
 
4118
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4119
  am__fastdepCC_TRUE=
 
4120
  am__fastdepCC_FALSE='#'
 
4121
else
 
4122
  am__fastdepCC_TRUE='#'
 
4123
  am__fastdepCC_FALSE=
 
4124
fi
 
4125
 
 
4126
 
 
4127
 
 
4128
  ac_ext=c
 
4129
ac_cpp='$CPP $CPPFLAGS'
 
4130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4133
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4134
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4135
# On Suns, sometimes $CPP names a directory.
 
4136
if test -n "$CPP" && test -d "$CPP"; then
 
4137
  CPP=
 
4138
fi
 
4139
if test -z "$CPP"; then
 
4140
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4142
else
 
4143
      # Double quotes because CPP needs to be expanded
 
4144
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4145
    do
 
4146
      ac_preproc_ok=false
 
4147
for ac_c_preproc_warn_flag in '' yes
 
4148
do
 
4149
  # Use a header file that comes with gcc, so configuring glibc
 
4150
  # with a fresh cross-compiler works.
 
4151
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4152
  # <limits.h> exists even on freestanding compilers.
 
4153
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4154
  # not just through cpp. "Syntax error" is here to catch this case.
 
4155
  cat >conftest.$ac_ext <<_ACEOF
 
4156
/* confdefs.h.  */
 
4157
_ACEOF
 
4158
cat confdefs.h >>conftest.$ac_ext
 
4159
cat >>conftest.$ac_ext <<_ACEOF
 
4160
/* end confdefs.h.  */
 
4161
@%:@ifdef __STDC__
 
4162
@%:@ include <limits.h>
 
4163
@%:@else
 
4164
@%:@ include <assert.h>
 
4165
@%:@endif
 
4166
                     Syntax error
 
4167
_ACEOF
 
4168
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4169
case "(($ac_try" in
 
4170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4171
  *) ac_try_echo=$ac_try;;
 
4172
esac
 
4173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4174
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4175
  ac_status=$?
 
4176
  grep -v '^ *+' conftest.er1 >conftest.err
 
4177
  rm -f conftest.er1
 
4178
  cat conftest.err >&5
 
4179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4180
  (exit $ac_status); } >/dev/null && {
 
4181
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4182
         test ! -s conftest.err
 
4183
       }; then
 
4184
  :
 
4185
else
 
4186
  echo "$as_me: failed program was:" >&5
 
4187
sed 's/^/| /' conftest.$ac_ext >&5
 
4188
 
 
4189
  # Broken: fails on valid input.
 
4190
continue
 
4191
fi
 
4192
 
 
4193
rm -f conftest.err conftest.$ac_ext
 
4194
 
 
4195
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4196
  # can be detected and how.
 
4197
  cat >conftest.$ac_ext <<_ACEOF
 
4198
/* confdefs.h.  */
 
4199
_ACEOF
 
4200
cat confdefs.h >>conftest.$ac_ext
 
4201
cat >>conftest.$ac_ext <<_ACEOF
 
4202
/* end confdefs.h.  */
 
4203
@%:@include <ac_nonexistent.h>
 
4204
_ACEOF
 
4205
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4206
case "(($ac_try" in
 
4207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4208
  *) ac_try_echo=$ac_try;;
 
4209
esac
 
4210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4211
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4212
  ac_status=$?
 
4213
  grep -v '^ *+' conftest.er1 >conftest.err
 
4214
  rm -f conftest.er1
 
4215
  cat conftest.err >&5
 
4216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4217
  (exit $ac_status); } >/dev/null && {
 
4218
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4219
         test ! -s conftest.err
 
4220
       }; then
 
4221
  # Broken: success on invalid input.
 
4222
continue
 
4223
else
 
4224
  echo "$as_me: failed program was:" >&5
 
4225
sed 's/^/| /' conftest.$ac_ext >&5
 
4226
 
 
4227
  # Passes both tests.
 
4228
ac_preproc_ok=:
 
4229
break
 
4230
fi
 
4231
 
 
4232
rm -f conftest.err conftest.$ac_ext
 
4233
 
 
4234
done
 
4235
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4236
rm -f conftest.err conftest.$ac_ext
 
4237
if $ac_preproc_ok; then
 
4238
  break
 
4239
fi
 
4240
 
 
4241
    done
 
4242
    ac_cv_prog_CPP=$CPP
 
4243
  
 
4244
fi
 
4245
  CPP=$ac_cv_prog_CPP
 
4246
else
 
4247
  ac_cv_prog_CPP=$CPP
 
4248
fi
 
4249
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4250
echo "${ECHO_T}$CPP" >&6; }
 
4251
ac_preproc_ok=false
 
4252
for ac_c_preproc_warn_flag in '' yes
 
4253
do
 
4254
  # Use a header file that comes with gcc, so configuring glibc
 
4255
  # with a fresh cross-compiler works.
 
4256
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4257
  # <limits.h> exists even on freestanding compilers.
 
4258
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4259
  # not just through cpp. "Syntax error" is here to catch this case.
 
4260
  cat >conftest.$ac_ext <<_ACEOF
 
4261
/* confdefs.h.  */
 
4262
_ACEOF
 
4263
cat confdefs.h >>conftest.$ac_ext
 
4264
cat >>conftest.$ac_ext <<_ACEOF
 
4265
/* end confdefs.h.  */
 
4266
@%:@ifdef __STDC__
 
4267
@%:@ include <limits.h>
 
4268
@%:@else
 
4269
@%:@ include <assert.h>
 
4270
@%:@endif
 
4271
                     Syntax error
 
4272
_ACEOF
 
4273
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4274
case "(($ac_try" in
 
4275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4276
  *) ac_try_echo=$ac_try;;
 
4277
esac
 
4278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4279
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4280
  ac_status=$?
 
4281
  grep -v '^ *+' conftest.er1 >conftest.err
 
4282
  rm -f conftest.er1
 
4283
  cat conftest.err >&5
 
4284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4285
  (exit $ac_status); } >/dev/null && {
 
4286
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4287
         test ! -s conftest.err
 
4288
       }; then
 
4289
  :
 
4290
else
 
4291
  echo "$as_me: failed program was:" >&5
 
4292
sed 's/^/| /' conftest.$ac_ext >&5
 
4293
 
 
4294
  # Broken: fails on valid input.
 
4295
continue
 
4296
fi
 
4297
 
 
4298
rm -f conftest.err conftest.$ac_ext
 
4299
 
 
4300
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4301
  # can be detected and how.
 
4302
  cat >conftest.$ac_ext <<_ACEOF
 
4303
/* confdefs.h.  */
 
4304
_ACEOF
 
4305
cat confdefs.h >>conftest.$ac_ext
 
4306
cat >>conftest.$ac_ext <<_ACEOF
 
4307
/* end confdefs.h.  */
 
4308
@%:@include <ac_nonexistent.h>
 
4309
_ACEOF
 
4310
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4311
case "(($ac_try" in
 
4312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4313
  *) ac_try_echo=$ac_try;;
 
4314
esac
 
4315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4316
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4317
  ac_status=$?
 
4318
  grep -v '^ *+' conftest.er1 >conftest.err
 
4319
  rm -f conftest.er1
 
4320
  cat conftest.err >&5
 
4321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4322
  (exit $ac_status); } >/dev/null && {
 
4323
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4324
         test ! -s conftest.err
 
4325
       }; then
 
4326
  # Broken: success on invalid input.
 
4327
continue
 
4328
else
 
4329
  echo "$as_me: failed program was:" >&5
 
4330
sed 's/^/| /' conftest.$ac_ext >&5
 
4331
 
 
4332
  # Passes both tests.
 
4333
ac_preproc_ok=:
 
4334
break
 
4335
fi
 
4336
 
 
4337
rm -f conftest.err conftest.$ac_ext
 
4338
 
 
4339
done
 
4340
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4341
rm -f conftest.err conftest.$ac_ext
 
4342
if $ac_preproc_ok; then
 
4343
  :
 
4344
else
 
4345
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4346
See \`config.log' for more details." >&5
 
4347
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4348
See \`config.log' for more details." >&2;}
 
4349
   { (exit 1); exit 1; }; }
 
4350
fi
 
4351
 
 
4352
ac_ext=c
 
4353
ac_cpp='$CPP $CPPFLAGS'
 
4354
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4355
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4356
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4357
 
 
4358
 
 
4359
  if test "$GCC" = "yes"; then
 
4360
    if test "$kde_use_debug_code" != "no"; then
 
4361
      if test $kde_use_debug_code = "full"; then
 
4362
        CFLAGS="-g3 -fno-inline $CFLAGS"
 
4363
      else
 
4364
        CFLAGS="-g -O2 $CFLAGS"
 
4365
      fi
 
4366
    else
 
4367
      CFLAGS="-O2 $CFLAGS"
 
4368
    fi
 
4369
  fi
 
4370
 
 
4371
  if test "$kde_use_debug_define" = "yes"; then
 
4372
    CFLAGS="-DNDEBUG $CFLAGS"
 
4373
  fi
 
4374
 
 
4375
 
 
4376
  case "$host" in
 
4377
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
 
4378
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
 
4379
  esac
 
4380
 
 
4381
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
 
4382
     LDFLAGS=""
 
4383
  fi
 
4384
 
 
4385
  CXXFLAGS=" $CXXFLAGS"
 
4386
 
 
4387
  ac_ext=cpp
 
4388
ac_cpp='$CXXCPP $CPPFLAGS'
 
4389
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4390
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4391
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4392
if test -z "$CXX"; then
 
4393
  if test -n "$CCC"; then
 
4394
    CXX=$CCC
 
4395
  else
 
4396
    if test -n "$ac_tool_prefix"; then
 
4397
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4398
  do
 
4399
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4400
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4401
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4402
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4403
if test "${ac_cv_prog_CXX+set}" = set; then
 
4404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4405
else
 
4406
  if test -n "$CXX"; then
 
4407
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4408
else
 
4409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4410
for as_dir in $PATH
 
4411
do
 
4412
  IFS=$as_save_IFS
 
4413
  test -z "$as_dir" && as_dir=.
 
4414
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4415
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4416
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4417
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4418
    break 2
 
4419
  fi
 
4420
done
 
4421
done
 
4422
IFS=$as_save_IFS
 
4423
 
 
4424
fi
 
4425
fi
 
4426
CXX=$ac_cv_prog_CXX
 
4427
if test -n "$CXX"; then
 
4428
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
4429
echo "${ECHO_T}$CXX" >&6; }
 
4430
else
 
4431
  { echo "$as_me:$LINENO: result: no" >&5
 
4432
echo "${ECHO_T}no" >&6; }
 
4433
fi
 
4434
 
 
4435
 
 
4436
    test -n "$CXX" && break
 
4437
  done
 
4438
fi
 
4439
if test -z "$CXX"; then
 
4440
  ac_ct_CXX=$CXX
 
4441
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4442
do
 
4443
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4444
set dummy $ac_prog; ac_word=$2
 
4445
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4447
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4449
else
 
4450
  if test -n "$ac_ct_CXX"; then
 
4451
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4452
else
 
4453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4454
for as_dir in $PATH
 
4455
do
 
4456
  IFS=$as_save_IFS
 
4457
  test -z "$as_dir" && as_dir=.
 
4458
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4459
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4460
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4461
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4462
    break 2
 
4463
  fi
 
4464
done
 
4465
done
 
4466
IFS=$as_save_IFS
 
4467
 
 
4468
fi
 
4469
fi
 
4470
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4471
if test -n "$ac_ct_CXX"; then
 
4472
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4473
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
4474
else
 
4475
  { echo "$as_me:$LINENO: result: no" >&5
 
4476
echo "${ECHO_T}no" >&6; }
 
4477
fi
 
4478
 
 
4479
 
 
4480
  test -n "$ac_ct_CXX" && break
 
4481
done
 
4482
 
 
4483
  if test "x$ac_ct_CXX" = x; then
 
4484
    CXX="g++"
 
4485
  else
 
4486
    case $cross_compiling:$ac_tool_warned in
 
4487
yes:)
 
4488
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4489
whose name does not start with the host triplet.  If you think this
 
4490
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4491
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4492
whose name does not start with the host triplet.  If you think this
 
4493
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4494
ac_tool_warned=yes ;;
 
4495
esac
 
4496
    CXX=$ac_ct_CXX
 
4497
  fi
 
4498
fi
 
4499
 
 
4500
  fi
 
4501
fi
 
4502
# Provide some information about the compiler.
 
4503
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
4504
ac_compiler=`set X $ac_compile; echo $2`
 
4505
{ (ac_try="$ac_compiler --version >&5"
 
4506
case "(($ac_try" in
 
4507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4508
  *) ac_try_echo=$ac_try;;
 
4509
esac
 
4510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4511
  (eval "$ac_compiler --version >&5") 2>&5
 
4512
  ac_status=$?
 
4513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4514
  (exit $ac_status); }
 
4515
{ (ac_try="$ac_compiler -v >&5"
 
4516
case "(($ac_try" in
 
4517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4518
  *) ac_try_echo=$ac_try;;
 
4519
esac
 
4520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4521
  (eval "$ac_compiler -v >&5") 2>&5
 
4522
  ac_status=$?
 
4523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4524
  (exit $ac_status); }
 
4525
{ (ac_try="$ac_compiler -V >&5"
 
4526
case "(($ac_try" in
 
4527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4528
  *) ac_try_echo=$ac_try;;
 
4529
esac
 
4530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4531
  (eval "$ac_compiler -V >&5") 2>&5
 
4532
  ac_status=$?
 
4533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4534
  (exit $ac_status); }
 
4535
 
 
4536
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4537
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
4538
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4540
else
 
4541
  cat >conftest.$ac_ext <<_ACEOF
 
4542
/* confdefs.h.  */
 
4543
_ACEOF
 
4544
cat confdefs.h >>conftest.$ac_ext
 
4545
cat >>conftest.$ac_ext <<_ACEOF
 
4546
/* end confdefs.h.  */
 
4547
 
 
4548
int
 
4549
main ()
 
4550
{
 
4551
#ifndef __GNUC__
 
4552
       choke me
 
4553
#endif
 
4554
 
 
4555
  ;
 
4556
  return 0;
 
4557
}
 
4558
_ACEOF
 
4559
rm -f conftest.$ac_objext
 
4560
if { (ac_try="$ac_compile"
 
4561
case "(($ac_try" in
 
4562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4563
  *) ac_try_echo=$ac_try;;
 
4564
esac
 
4565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4566
  (eval "$ac_compile") 2>conftest.er1
 
4567
  ac_status=$?
 
4568
  grep -v '^ *+' conftest.er1 >conftest.err
 
4569
  rm -f conftest.er1
 
4570
  cat conftest.err >&5
 
4571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4572
  (exit $ac_status); } && {
 
4573
         test -z "$ac_cxx_werror_flag" ||
 
4574
         test ! -s conftest.err
 
4575
       } && test -s conftest.$ac_objext; then
 
4576
  ac_compiler_gnu=yes
 
4577
else
 
4578
  echo "$as_me: failed program was:" >&5
 
4579
sed 's/^/| /' conftest.$ac_ext >&5
 
4580
 
 
4581
        ac_compiler_gnu=no
 
4582
fi
 
4583
 
 
4584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4585
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4586
 
 
4587
fi
 
4588
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4589
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
4590
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4591
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4592
ac_save_CXXFLAGS=$CXXFLAGS
 
4593
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4594
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
4595
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4597
else
 
4598
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
4599
   ac_cxx_werror_flag=yes
 
4600
   ac_cv_prog_cxx_g=no
 
4601
   CXXFLAGS="-g"
 
4602
   cat >conftest.$ac_ext <<_ACEOF
 
4603
/* confdefs.h.  */
 
4604
_ACEOF
 
4605
cat confdefs.h >>conftest.$ac_ext
 
4606
cat >>conftest.$ac_ext <<_ACEOF
 
4607
/* end confdefs.h.  */
 
4608
 
 
4609
int
 
4610
main ()
 
4611
{
 
4612
 
 
4613
  ;
 
4614
  return 0;
 
4615
}
 
4616
_ACEOF
 
4617
rm -f conftest.$ac_objext
 
4618
if { (ac_try="$ac_compile"
 
4619
case "(($ac_try" in
 
4620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4621
  *) ac_try_echo=$ac_try;;
 
4622
esac
 
4623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4624
  (eval "$ac_compile") 2>conftest.er1
 
4625
  ac_status=$?
 
4626
  grep -v '^ *+' conftest.er1 >conftest.err
 
4627
  rm -f conftest.er1
 
4628
  cat conftest.err >&5
 
4629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4630
  (exit $ac_status); } && {
 
4631
         test -z "$ac_cxx_werror_flag" ||
 
4632
         test ! -s conftest.err
 
4633
       } && test -s conftest.$ac_objext; then
 
4634
  ac_cv_prog_cxx_g=yes
 
4635
else
 
4636
  echo "$as_me: failed program was:" >&5
 
4637
sed 's/^/| /' conftest.$ac_ext >&5
 
4638
 
 
4639
        CXXFLAGS=""
 
4640
      cat >conftest.$ac_ext <<_ACEOF
 
4641
/* confdefs.h.  */
 
4642
_ACEOF
 
4643
cat confdefs.h >>conftest.$ac_ext
 
4644
cat >>conftest.$ac_ext <<_ACEOF
 
4645
/* end confdefs.h.  */
 
4646
 
 
4647
int
 
4648
main ()
 
4649
{
 
4650
 
 
4651
  ;
 
4652
  return 0;
 
4653
}
 
4654
_ACEOF
 
4655
rm -f conftest.$ac_objext
 
4656
if { (ac_try="$ac_compile"
 
4657
case "(($ac_try" in
 
4658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4659
  *) ac_try_echo=$ac_try;;
 
4660
esac
 
4661
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4662
  (eval "$ac_compile") 2>conftest.er1
 
4663
  ac_status=$?
 
4664
  grep -v '^ *+' conftest.er1 >conftest.err
 
4665
  rm -f conftest.er1
 
4666
  cat conftest.err >&5
 
4667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4668
  (exit $ac_status); } && {
 
4669
         test -z "$ac_cxx_werror_flag" ||
 
4670
         test ! -s conftest.err
 
4671
       } && test -s conftest.$ac_objext; then
 
4672
  :
 
4673
else
 
4674
  echo "$as_me: failed program was:" >&5
 
4675
sed 's/^/| /' conftest.$ac_ext >&5
 
4676
 
 
4677
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4678
         CXXFLAGS="-g"
 
4679
         cat >conftest.$ac_ext <<_ACEOF
 
4680
/* confdefs.h.  */
 
4681
_ACEOF
 
4682
cat confdefs.h >>conftest.$ac_ext
 
4683
cat >>conftest.$ac_ext <<_ACEOF
 
4684
/* end confdefs.h.  */
 
4685
 
 
4686
int
 
4687
main ()
 
4688
{
 
4689
 
 
4690
  ;
 
4691
  return 0;
 
4692
}
 
4693
_ACEOF
 
4694
rm -f conftest.$ac_objext
 
4695
if { (ac_try="$ac_compile"
 
4696
case "(($ac_try" in
 
4697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4698
  *) ac_try_echo=$ac_try;;
 
4699
esac
 
4700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4701
  (eval "$ac_compile") 2>conftest.er1
 
4702
  ac_status=$?
 
4703
  grep -v '^ *+' conftest.er1 >conftest.err
 
4704
  rm -f conftest.er1
 
4705
  cat conftest.err >&5
 
4706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4707
  (exit $ac_status); } && {
 
4708
         test -z "$ac_cxx_werror_flag" ||
 
4709
         test ! -s conftest.err
 
4710
       } && test -s conftest.$ac_objext; then
 
4711
  ac_cv_prog_cxx_g=yes
 
4712
else
 
4713
  echo "$as_me: failed program was:" >&5
 
4714
sed 's/^/| /' conftest.$ac_ext >&5
 
4715
 
 
4716
        
 
4717
fi
 
4718
 
 
4719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4720
fi
 
4721
 
 
4722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4723
fi
 
4724
 
 
4725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4726
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4727
fi
 
4728
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4729
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
4730
if test "$ac_test_CXXFLAGS" = set; then
 
4731
  CXXFLAGS=$ac_save_CXXFLAGS
 
4732
elif test $ac_cv_prog_cxx_g = yes; then
 
4733
  if test "$GXX" = yes; then
 
4734
    CXXFLAGS="-g -O2"
 
4735
  else
 
4736
    CXXFLAGS="-g"
 
4737
  fi
 
4738
else
 
4739
  if test "$GXX" = yes; then
 
4740
    CXXFLAGS="-O2"
 
4741
  else
 
4742
    CXXFLAGS=
 
4743
  fi
 
4744
fi
 
4745
ac_ext=c
 
4746
ac_cpp='$CPP $CPPFLAGS'
 
4747
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4748
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4749
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4750
 
 
4751
depcc="$CXX"  am_compiler_list=
 
4752
 
 
4753
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4754
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
4755
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4757
else
 
4758
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4759
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4760
  # making bogus files that we don't know about and never remove.  For
 
4761
  # instance it was reported that on HP-UX the gcc test will end up
 
4762
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4763
  # in D'.
 
4764
  mkdir conftest.dir
 
4765
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4766
  # using a relative directory.
 
4767
  cp "$am_depcomp" conftest.dir
 
4768
  cd conftest.dir
 
4769
  # We will build objects and dependencies in a subdirectory because
 
4770
  # it helps to detect inapplicable dependency modes.  For instance
 
4771
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4772
  # side effect of compilation, but ICC will put the dependencies in
 
4773
  # the current directory while Tru64 will put them in the object
 
4774
  # directory.
 
4775
  mkdir sub
 
4776
 
 
4777
  am_cv_CXX_dependencies_compiler_type=none
 
4778
  if test "$am_compiler_list" = ""; then
 
4779
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4780
  fi
 
4781
  for depmode in $am_compiler_list; do
 
4782
    # Setup a source with many dependencies, because some compilers
 
4783
    # like to wrap large dependency lists on column 80 (with \), and
 
4784
    # we should not choose a depcomp mode which is confused by this.
 
4785
    #
 
4786
    # We need to recreate these files for each test, as the compiler may
 
4787
    # overwrite some of them when testing with obscure command lines.
 
4788
    # This happens at least with the AIX C compiler.
 
4789
    : > sub/conftest.c
 
4790
    for i in 1 2 3 4 5 6; do
 
4791
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4792
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4793
      # Solaris 8's {/usr,}/bin/sh.
 
4794
      touch sub/conftst$i.h
 
4795
    done
 
4796
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4797
 
 
4798
    case $depmode in
 
4799
    nosideeffect)
 
4800
      # after this tag, mechanisms are not by side-effect, so they'll
 
4801
      # only be used when explicitly requested
 
4802
      if test "x$enable_dependency_tracking" = xyes; then
 
4803
        continue
 
4804
      else
 
4805
        break
 
4806
      fi
 
4807
      ;;
 
4808
    none) break ;;
 
4809
    esac
 
4810
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4811
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4812
    # handle `-M -o', and we need to detect this.
 
4813
    if depmode=$depmode \
 
4814
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4815
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4816
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4817
         >/dev/null 2>conftest.err &&
 
4818
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4819
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4820
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4821
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4822
      # icc doesn't choke on unknown options, it will just issue warnings
 
4823
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4824
      # that says an option was ignored or not supported.
 
4825
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4826
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4827
      # The diagnosis changed in icc 8.0:
 
4828
      #   icc: Command line remark: option '-MP' not supported
 
4829
      if (grep 'ignoring option' conftest.err ||
 
4830
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4831
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4832
        break
 
4833
      fi
 
4834
    fi
 
4835
  done
 
4836
 
 
4837
  cd ..
 
4838
  rm -rf conftest.dir
 
4839
else
 
4840
  am_cv_CXX_dependencies_compiler_type=none
 
4841
fi
 
4842
 
 
4843
fi
 
4844
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4845
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4846
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4847
 
 
4848
 if 
 
4849
  test "x$enable_dependency_tracking" != xno \
 
4850
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4851
  am__fastdepCXX_TRUE=
 
4852
  am__fastdepCXX_FALSE='#'
 
4853
else
 
4854
  am__fastdepCXX_TRUE='#'
 
4855
  am__fastdepCXX_FALSE=
 
4856
fi
 
4857
 
 
4858
 
 
4859
 
 
4860
  
 
4861
  { echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
 
4862
echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6; }
 
4863
 
 
4864
            
 
4865
  cat >conftest.$ac_ext <<_ACEOF
 
4866
/* confdefs.h.  */
 
4867
_ACEOF
 
4868
cat confdefs.h >>conftest.$ac_ext
 
4869
cat >>conftest.$ac_ext <<_ACEOF
 
4870
/* end confdefs.h.  */
 
4871
 
 
4872
#ifdef __GNUC__
 
4873
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
 
4874
choke me
 
4875
#endif
 
4876
#endif
 
4877
 
 
4878
int
 
4879
main ()
 
4880
{
 
4881
 
 
4882
  ;
 
4883
  return 0;
 
4884
}
 
4885
_ACEOF
 
4886
rm -f conftest.$ac_objext
 
4887
if { (ac_try="$ac_compile"
 
4888
case "(($ac_try" in
 
4889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4890
  *) ac_try_echo=$ac_try;;
 
4891
esac
 
4892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4893
  (eval "$ac_compile") 2>conftest.er1
 
4894
  ac_status=$?
 
4895
  grep -v '^ *+' conftest.er1 >conftest.err
 
4896
  rm -f conftest.er1
 
4897
  cat conftest.err >&5
 
4898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4899
  (exit $ac_status); } && {
 
4900
         test -z "$ac_c_werror_flag" ||
 
4901
         test ! -s conftest.err
 
4902
       } && test -s conftest.$ac_objext; then
 
4903
  kde_bad_compiler=no
 
4904
else
 
4905
  echo "$as_me: failed program was:" >&5
 
4906
sed 's/^/| /' conftest.$ac_ext >&5
 
4907
 
 
4908
        kde_bad_compiler=yes
 
4909
 
 
4910
fi
 
4911
 
 
4912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4913
 
 
4914
  { echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
 
4915
echo "${ECHO_T}$kde_bad_compiler" >&6; }
 
4916
 
 
4917
if test "$kde_bad_compiler" = "yes"; then
 
4918
  { { echo "$as_me:$LINENO: error: 
 
4919
 
 
4920
This particular compiler version is blacklisted because it
 
4921
is known to miscompile KDE. Please use a newer version, or
 
4922
if that is not yet available, choose an older version. 
 
4923
 
 
4924
Please do not report a bug or bother us reporting this
 
4925
configure error. We know about it, and we introduced
 
4926
it by intention to avoid untraceable bugs or crashes in KDE.
 
4927
 
 
4928
" >&5
 
4929
echo "$as_me: error: 
 
4930
 
 
4931
This particular compiler version is blacklisted because it
 
4932
is known to miscompile KDE. Please use a newer version, or
 
4933
if that is not yet available, choose an older version. 
 
4934
 
 
4935
Please do not report a bug or bother us reporting this
 
4936
configure error. We know about it, and we introduced
 
4937
it by intention to avoid untraceable bugs or crashes in KDE.
 
4938
 
 
4939
" >&2;}
 
4940
   { (exit 1); exit 1; }; }
 
4941
fi
 
4942
 
 
4943
 
 
4944
 
 
4945
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
 
4946
    if test "$kde_use_debug_code" != "no"; then
 
4947
      if test "$CXX" = "KCC"; then
 
4948
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
 
4949
      else
 
4950
        if test "$kde_use_debug_code" = "full"; then
 
4951
          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
 
4952
        else
 
4953
          CXXFLAGS="-g -O2 $CXXFLAGS"
 
4954
        fi
 
4955
      fi
 
4956
      
 
4957
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
 
4958
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6; }
 
4959
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
 
4960
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
4961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4962
else
 
4963
  
 
4964
  
 
4965
  
 
4966
ac_ext=cpp
 
4967
ac_cpp='$CXXCPP $CPPFLAGS'
 
4968
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4969
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4970
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4971
 
 
4972
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4973
 
 
4974
 
 
4975
 
 
4976
  save_CXXFLAGS="$CXXFLAGS"
 
4977
  CXXFLAGS="$CXXFLAGS -fno-builtin"
 
4978
  cat >conftest.$ac_ext <<_ACEOF
 
4979
/* confdefs.h.  */
 
4980
_ACEOF
 
4981
cat confdefs.h >>conftest.$ac_ext
 
4982
cat >>conftest.$ac_ext <<_ACEOF
 
4983
/* end confdefs.h.  */
 
4984
 
 
4985
int
 
4986
main ()
 
4987
{
 
4988
 return 0; 
 
4989
  ;
 
4990
  return 0;
 
4991
}
 
4992
_ACEOF
 
4993
rm -f conftest.$ac_objext conftest$ac_exeext
 
4994
if { (ac_try="$ac_link"
 
4995
case "(($ac_try" in
 
4996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4997
  *) ac_try_echo=$ac_try;;
 
4998
esac
 
4999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5000
  (eval "$ac_link") 2>conftest.er1
 
5001
  ac_status=$?
 
5002
  grep -v '^ *+' conftest.er1 >conftest.err
 
5003
  rm -f conftest.er1
 
5004
  cat conftest.err >&5
 
5005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5006
  (exit $ac_status); } && {
 
5007
         test -z "$ac_cxx_werror_flag" ||
 
5008
         test ! -s conftest.err
 
5009
       } && test -s conftest$ac_exeext &&
 
5010
       $as_test_x conftest$ac_exeext; then
 
5011
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5012
else
 
5013
  echo "$as_me: failed program was:" >&5
 
5014
sed 's/^/| /' conftest.$ac_ext >&5
 
5015
 
 
5016
        
 
5017
fi
 
5018
 
 
5019
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5020
      conftest$ac_exeext conftest.$ac_ext
 
5021
  CXXFLAGS="$save_CXXFLAGS"
 
5022
  ac_ext=c
 
5023
ac_cpp='$CPP $CPPFLAGS'
 
5024
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5025
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5026
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5027
 
 
5028
 
 
5029
fi
 
5030
 
 
5031
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5032
 { echo "$as_me:$LINENO: result: yes" >&5
 
5033
echo "${ECHO_T}yes" >&6; }
 
5034
 :
 
5035
 CXXFLAGS="-fno-builtin $CXXFLAGS"
 
5036
else
 
5037
 { echo "$as_me:$LINENO: result: no" >&5
 
5038
echo "${ECHO_T}no" >&6; }
 
5039
 :
 
5040
 
 
5041
fi
 
5042
 
 
5043
 
 
5044
            
 
5045
{ echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
 
5046
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6; }
 
5047
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
 
5048
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5050
else
 
5051
  
 
5052
  
 
5053
   ac_ext=cpp
 
5054
ac_cpp='$CXXCPP $CPPFLAGS'
 
5055
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5056
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5057
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5058
 
 
5059
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5060
 
 
5061
 
 
5062
  save_CXXFLAGS="$CXXFLAGS"
 
5063
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
 
5064
  cat >conftest.$ac_ext <<_ACEOF
 
5065
/* confdefs.h.  */
 
5066
_ACEOF
 
5067
cat confdefs.h >>conftest.$ac_ext
 
5068
cat >>conftest.$ac_ext <<_ACEOF
 
5069
/* end confdefs.h.  */
 
5070
 
 
5071
int
 
5072
main ()
 
5073
{
 
5074
 return 0; 
 
5075
  ;
 
5076
  return 0;
 
5077
}
 
5078
_ACEOF
 
5079
rm -f conftest.$ac_objext conftest$ac_exeext
 
5080
if { (ac_try="$ac_link"
 
5081
case "(($ac_try" in
 
5082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5083
  *) ac_try_echo=$ac_try;;
 
5084
esac
 
5085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5086
  (eval "$ac_link") 2>conftest.er1
 
5087
  ac_status=$?
 
5088
  grep -v '^ *+' conftest.er1 >conftest.err
 
5089
  rm -f conftest.er1
 
5090
  cat conftest.err >&5
 
5091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5092
  (exit $ac_status); } && {
 
5093
         test -z "$ac_cxx_werror_flag" ||
 
5094
         test ! -s conftest.err
 
5095
       } && test -s conftest$ac_exeext &&
 
5096
       $as_test_x conftest$ac_exeext; then
 
5097
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5098
else
 
5099
  echo "$as_me: failed program was:" >&5
 
5100
sed 's/^/| /' conftest.$ac_ext >&5
 
5101
 
 
5102
        
 
5103
fi
 
5104
 
 
5105
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5106
      conftest$ac_exeext conftest.$ac_ext
 
5107
  CXXFLAGS="$save_CXXFLAGS"
 
5108
  ac_ext=c
 
5109
ac_cpp='$CPP $CPPFLAGS'
 
5110
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5111
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5112
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5113
 
 
5114
 
 
5115
fi
 
5116
 
 
5117
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5118
 { echo "$as_me:$LINENO: result: yes" >&5
 
5119
echo "${ECHO_T}yes" >&6; }
 
5120
 :
 
5121
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
 
5122
else
 
5123
 { echo "$as_me:$LINENO: result: no" >&5
 
5124
echo "${ECHO_T}no" >&6; }
 
5125
 :
 
5126
 WOVERLOADED_VRITUAL=""
 
5127
fi
 
5128
 
 
5129
      
 
5130
    else
 
5131
      if test "$CXX" = "KCC"; then
 
5132
        CXXFLAGS="+K3 $CXXFLAGS"
 
5133
      else
 
5134
        CXXFLAGS="-O2 $CXXFLAGS"
 
5135
      fi  
 
5136
    fi
 
5137
  fi
 
5138
 
 
5139
  if test "$kde_use_debug_define" = "yes"; then
 
5140
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
 
5141
  fi  
 
5142
 
 
5143
  if test "$kde_use_profiling" = "yes"; then
 
5144
    
 
5145
{ echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
 
5146
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6; }
 
5147
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
 
5148
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5150
else
 
5151
  
 
5152
  
 
5153
   ac_ext=cpp
 
5154
ac_cpp='$CXXCPP $CPPFLAGS'
 
5155
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5156
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5157
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5158
 
 
5159
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5160
 
 
5161
 
 
5162
  save_CXXFLAGS="$CXXFLAGS"
 
5163
  CXXFLAGS="$CXXFLAGS -pg"
 
5164
  cat >conftest.$ac_ext <<_ACEOF
 
5165
/* confdefs.h.  */
 
5166
_ACEOF
 
5167
cat confdefs.h >>conftest.$ac_ext
 
5168
cat >>conftest.$ac_ext <<_ACEOF
 
5169
/* end confdefs.h.  */
 
5170
 
 
5171
int
 
5172
main ()
 
5173
{
 
5174
 return 0; 
 
5175
  ;
 
5176
  return 0;
 
5177
}
 
5178
_ACEOF
 
5179
rm -f conftest.$ac_objext conftest$ac_exeext
 
5180
if { (ac_try="$ac_link"
 
5181
case "(($ac_try" in
 
5182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5183
  *) ac_try_echo=$ac_try;;
 
5184
esac
 
5185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5186
  (eval "$ac_link") 2>conftest.er1
 
5187
  ac_status=$?
 
5188
  grep -v '^ *+' conftest.er1 >conftest.err
 
5189
  rm -f conftest.er1
 
5190
  cat conftest.err >&5
 
5191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5192
  (exit $ac_status); } && {
 
5193
         test -z "$ac_cxx_werror_flag" ||
 
5194
         test ! -s conftest.err
 
5195
       } && test -s conftest$ac_exeext &&
 
5196
       $as_test_x conftest$ac_exeext; then
 
5197
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5198
else
 
5199
  echo "$as_me: failed program was:" >&5
 
5200
sed 's/^/| /' conftest.$ac_ext >&5
 
5201
 
 
5202
        
 
5203
fi
 
5204
 
 
5205
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5206
      conftest$ac_exeext conftest.$ac_ext
 
5207
  CXXFLAGS="$save_CXXFLAGS"
 
5208
  ac_ext=c
 
5209
ac_cpp='$CPP $CPPFLAGS'
 
5210
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5211
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5212
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5213
 
 
5214
 
 
5215
fi
 
5216
 
 
5217
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5218
 { echo "$as_me:$LINENO: result: yes" >&5
 
5219
echo "${ECHO_T}yes" >&6; }
 
5220
 :
 
5221
 
 
5222
      CFLAGS="-pg $CFLAGS"
 
5223
      CXXFLAGS="-pg $CXXFLAGS"
 
5224
    
 
5225
else
 
5226
 { echo "$as_me:$LINENO: result: no" >&5
 
5227
echo "${ECHO_T}no" >&6; }
 
5228
 :
 
5229
 
 
5230
fi
 
5231
 
 
5232
  fi
 
5233
 
 
5234
  if test "$kde_use_warnings" = "yes"; then
 
5235
      if test "$GCC" = "yes"; then
 
5236
        CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
 
5237
        case $host in
 
5238
          *-*-linux-gnu)        
 
5239
            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
 
5240
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
 
5241
            
 
5242
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
 
5243
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6; }
 
5244
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
5245
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5247
else
 
5248
  
 
5249
  
 
5250
   ac_ext=cpp
 
5251
ac_cpp='$CXXCPP $CPPFLAGS'
 
5252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5255
 
 
5256
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5257
 
 
5258
 
 
5259
  save_CXXFLAGS="$CXXFLAGS"
 
5260
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
 
5261
  cat >conftest.$ac_ext <<_ACEOF
 
5262
/* confdefs.h.  */
 
5263
_ACEOF
 
5264
cat confdefs.h >>conftest.$ac_ext
 
5265
cat >>conftest.$ac_ext <<_ACEOF
 
5266
/* end confdefs.h.  */
 
5267
 
 
5268
int
 
5269
main ()
 
5270
{
 
5271
 return 0; 
 
5272
  ;
 
5273
  return 0;
 
5274
}
 
5275
_ACEOF
 
5276
rm -f conftest.$ac_objext conftest$ac_exeext
 
5277
if { (ac_try="$ac_link"
 
5278
case "(($ac_try" in
 
5279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5280
  *) ac_try_echo=$ac_try;;
 
5281
esac
 
5282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5283
  (eval "$ac_link") 2>conftest.er1
 
5284
  ac_status=$?
 
5285
  grep -v '^ *+' conftest.er1 >conftest.err
 
5286
  rm -f conftest.er1
 
5287
  cat conftest.err >&5
 
5288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5289
  (exit $ac_status); } && {
 
5290
         test -z "$ac_cxx_werror_flag" ||
 
5291
         test ! -s conftest.err
 
5292
       } && test -s conftest$ac_exeext &&
 
5293
       $as_test_x conftest$ac_exeext; then
 
5294
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5295
else
 
5296
  echo "$as_me: failed program was:" >&5
 
5297
sed 's/^/| /' conftest.$ac_ext >&5
 
5298
 
 
5299
        
 
5300
fi
 
5301
 
 
5302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5303
      conftest$ac_exeext conftest.$ac_ext
 
5304
  CXXFLAGS="$save_CXXFLAGS"
 
5305
  ac_ext=c
 
5306
ac_cpp='$CPP $CPPFLAGS'
 
5307
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5308
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5309
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5310
 
 
5311
 
 
5312
fi
 
5313
 
 
5314
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5315
 { echo "$as_me:$LINENO: result: yes" >&5
 
5316
echo "${ECHO_T}yes" >&6; }
 
5317
 :
 
5318
 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
 
5319
else
 
5320
 { echo "$as_me:$LINENO: result: no" >&5
 
5321
echo "${ECHO_T}no" >&6; }
 
5322
 :
 
5323
 
 
5324
fi
 
5325
 
 
5326
            
 
5327
{ echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
 
5328
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
 
5329
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
5330
if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5332
else
 
5333
  
 
5334
  
 
5335
  ac_ext=c
 
5336
ac_cpp='$CPP $CPPFLAGS'
 
5337
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5338
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5339
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5340
 
 
5341
  save_CFLAGS="$CFLAGS"
 
5342
  CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
5343
  cat >conftest.$ac_ext <<_ACEOF
 
5344
/* confdefs.h.  */
 
5345
_ACEOF
 
5346
cat confdefs.h >>conftest.$ac_ext
 
5347
cat >>conftest.$ac_ext <<_ACEOF
 
5348
/* end confdefs.h.  */
 
5349
 
 
5350
int
 
5351
main ()
 
5352
{
 
5353
 return 0; 
 
5354
  ;
 
5355
  return 0;
 
5356
}
 
5357
_ACEOF
 
5358
rm -f conftest.$ac_objext conftest$ac_exeext
 
5359
if { (ac_try="$ac_link"
 
5360
case "(($ac_try" in
 
5361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5362
  *) ac_try_echo=$ac_try;;
 
5363
esac
 
5364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5365
  (eval "$ac_link") 2>conftest.er1
 
5366
  ac_status=$?
 
5367
  grep -v '^ *+' conftest.er1 >conftest.err
 
5368
  rm -f conftest.er1
 
5369
  cat conftest.err >&5
 
5370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5371
  (exit $ac_status); } && {
 
5372
         test -z "$ac_c_werror_flag" ||
 
5373
         test ! -s conftest.err
 
5374
       } && test -s conftest$ac_exeext &&
 
5375
       $as_test_x conftest$ac_exeext; then
 
5376
  eval "kde_cv_prog_cc_$kde_cache=yes"
 
5377
else
 
5378
  echo "$as_me: failed program was:" >&5
 
5379
sed 's/^/| /' conftest.$ac_ext >&5
 
5380
 
 
5381
        
 
5382
fi
 
5383
 
 
5384
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5385
      conftest$ac_exeext conftest.$ac_ext
 
5386
  CFLAGS="$save_CFLAGS"
 
5387
  ac_ext=c
 
5388
ac_cpp='$CPP $CPPFLAGS'
 
5389
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5390
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5391
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5392
 
 
5393
 
 
5394
fi
 
5395
 
 
5396
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
 
5397
 { echo "$as_me:$LINENO: result: yes" >&5
 
5398
echo "${ECHO_T}yes" >&6; }
 
5399
 :
 
5400
 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
 
5401
else
 
5402
 { echo "$as_me:$LINENO: result: no" >&5
 
5403
echo "${ECHO_T}no" >&6; }
 
5404
 :
 
5405
 
 
5406
fi
 
5407
 
 
5408
          ;;
 
5409
        esac
 
5410
        
 
5411
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
 
5412
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6; }
 
5413
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
 
5414
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5416
else
 
5417
  
 
5418
  
 
5419
   ac_ext=cpp
 
5420
ac_cpp='$CXXCPP $CPPFLAGS'
 
5421
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5422
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5423
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5424
 
 
5425
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5426
 
 
5427
 
 
5428
  save_CXXFLAGS="$CXXFLAGS"
 
5429
  CXXFLAGS="$CXXFLAGS -Wundef"
 
5430
  cat >conftest.$ac_ext <<_ACEOF
 
5431
/* confdefs.h.  */
 
5432
_ACEOF
 
5433
cat confdefs.h >>conftest.$ac_ext
 
5434
cat >>conftest.$ac_ext <<_ACEOF
 
5435
/* end confdefs.h.  */
 
5436
 
 
5437
int
 
5438
main ()
 
5439
{
 
5440
 return 0; 
 
5441
  ;
 
5442
  return 0;
 
5443
}
 
5444
_ACEOF
 
5445
rm -f conftest.$ac_objext conftest$ac_exeext
 
5446
if { (ac_try="$ac_link"
 
5447
case "(($ac_try" in
 
5448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5449
  *) ac_try_echo=$ac_try;;
 
5450
esac
 
5451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5452
  (eval "$ac_link") 2>conftest.er1
 
5453
  ac_status=$?
 
5454
  grep -v '^ *+' conftest.er1 >conftest.err
 
5455
  rm -f conftest.er1
 
5456
  cat conftest.err >&5
 
5457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5458
  (exit $ac_status); } && {
 
5459
         test -z "$ac_cxx_werror_flag" ||
 
5460
         test ! -s conftest.err
 
5461
       } && test -s conftest$ac_exeext &&
 
5462
       $as_test_x conftest$ac_exeext; then
 
5463
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5464
else
 
5465
  echo "$as_me: failed program was:" >&5
 
5466
sed 's/^/| /' conftest.$ac_ext >&5
 
5467
 
 
5468
        
 
5469
fi
 
5470
 
 
5471
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5472
      conftest$ac_exeext conftest.$ac_ext
 
5473
  CXXFLAGS="$save_CXXFLAGS"
 
5474
  ac_ext=c
 
5475
ac_cpp='$CPP $CPPFLAGS'
 
5476
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5477
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5478
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5479
 
 
5480
 
 
5481
fi
 
5482
 
 
5483
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5484
 { echo "$as_me:$LINENO: result: yes" >&5
 
5485
echo "${ECHO_T}yes" >&6; }
 
5486
 :
 
5487
 CXXFLAGS="-Wundef $CXXFLAGS"
 
5488
else
 
5489
 { echo "$as_me:$LINENO: result: no" >&5
 
5490
echo "${ECHO_T}no" >&6; }
 
5491
 :
 
5492
 
 
5493
fi
 
5494
 
 
5495
        
 
5496
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
 
5497
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6; }
 
5498
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
 
5499
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5501
else
 
5502
  
 
5503
  
 
5504
   ac_ext=cpp
 
5505
ac_cpp='$CXXCPP $CPPFLAGS'
 
5506
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5507
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5508
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5509
 
 
5510
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5511
 
 
5512
 
 
5513
  save_CXXFLAGS="$CXXFLAGS"
 
5514
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
 
5515
  cat >conftest.$ac_ext <<_ACEOF
 
5516
/* confdefs.h.  */
 
5517
_ACEOF
 
5518
cat confdefs.h >>conftest.$ac_ext
 
5519
cat >>conftest.$ac_ext <<_ACEOF
 
5520
/* end confdefs.h.  */
 
5521
 
 
5522
int
 
5523
main ()
 
5524
{
 
5525
 return 0; 
 
5526
  ;
 
5527
  return 0;
 
5528
}
 
5529
_ACEOF
 
5530
rm -f conftest.$ac_objext conftest$ac_exeext
 
5531
if { (ac_try="$ac_link"
 
5532
case "(($ac_try" in
 
5533
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5534
  *) ac_try_echo=$ac_try;;
 
5535
esac
 
5536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5537
  (eval "$ac_link") 2>conftest.er1
 
5538
  ac_status=$?
 
5539
  grep -v '^ *+' conftest.er1 >conftest.err
 
5540
  rm -f conftest.er1
 
5541
  cat conftest.err >&5
 
5542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5543
  (exit $ac_status); } && {
 
5544
         test -z "$ac_cxx_werror_flag" ||
 
5545
         test ! -s conftest.err
 
5546
       } && test -s conftest$ac_exeext &&
 
5547
       $as_test_x conftest$ac_exeext; then
 
5548
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5549
else
 
5550
  echo "$as_me: failed program was:" >&5
 
5551
sed 's/^/| /' conftest.$ac_ext >&5
 
5552
 
 
5553
        
 
5554
fi
 
5555
 
 
5556
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5557
      conftest$ac_exeext conftest.$ac_ext
 
5558
  CXXFLAGS="$save_CXXFLAGS"
 
5559
  ac_ext=c
 
5560
ac_cpp='$CPP $CPPFLAGS'
 
5561
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5562
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5563
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5564
 
 
5565
 
 
5566
fi
 
5567
 
 
5568
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5569
 { echo "$as_me:$LINENO: result: yes" >&5
 
5570
echo "${ECHO_T}yes" >&6; }
 
5571
 :
 
5572
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
 
5573
else
 
5574
 { echo "$as_me:$LINENO: result: no" >&5
 
5575
echo "${ECHO_T}no" >&6; }
 
5576
 :
 
5577
 
 
5578
fi
 
5579
 
 
5580
                
 
5581
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
 
5582
echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6; }
 
5583
kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
 
5584
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5585
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5586
else
 
5587
  
 
5588
  
 
5589
   ac_ext=cpp
 
5590
ac_cpp='$CXXCPP $CPPFLAGS'
 
5591
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5592
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5593
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5594
 
 
5595
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5596
 
 
5597
 
 
5598
  save_CXXFLAGS="$CXXFLAGS"
 
5599
  CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
 
5600
  cat >conftest.$ac_ext <<_ACEOF
 
5601
/* confdefs.h.  */
 
5602
_ACEOF
 
5603
cat confdefs.h >>conftest.$ac_ext
 
5604
cat >>conftest.$ac_ext <<_ACEOF
 
5605
/* end confdefs.h.  */
 
5606
 
 
5607
int
 
5608
main ()
 
5609
{
 
5610
 return 0; 
 
5611
  ;
 
5612
  return 0;
 
5613
}
 
5614
_ACEOF
 
5615
rm -f conftest.$ac_objext conftest$ac_exeext
 
5616
if { (ac_try="$ac_link"
 
5617
case "(($ac_try" in
 
5618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5619
  *) ac_try_echo=$ac_try;;
 
5620
esac
 
5621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5622
  (eval "$ac_link") 2>conftest.er1
 
5623
  ac_status=$?
 
5624
  grep -v '^ *+' conftest.er1 >conftest.err
 
5625
  rm -f conftest.er1
 
5626
  cat conftest.err >&5
 
5627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5628
  (exit $ac_status); } && {
 
5629
         test -z "$ac_cxx_werror_flag" ||
 
5630
         test ! -s conftest.err
 
5631
       } && test -s conftest$ac_exeext &&
 
5632
       $as_test_x conftest$ac_exeext; then
 
5633
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5634
else
 
5635
  echo "$as_me: failed program was:" >&5
 
5636
sed 's/^/| /' conftest.$ac_ext >&5
 
5637
 
 
5638
        
 
5639
fi
 
5640
 
 
5641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5642
      conftest$ac_exeext conftest.$ac_ext
 
5643
  CXXFLAGS="$save_CXXFLAGS"
 
5644
  ac_ext=c
 
5645
ac_cpp='$CPP $CPPFLAGS'
 
5646
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5647
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5648
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5649
 
 
5650
 
 
5651
fi
 
5652
 
 
5653
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5654
 { echo "$as_me:$LINENO: result: yes" >&5
 
5655
echo "${ECHO_T}yes" >&6; }
 
5656
 :
 
5657
 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
 
5658
else
 
5659
 { echo "$as_me:$LINENO: result: no" >&5
 
5660
echo "${ECHO_T}no" >&6; }
 
5661
 :
 
5662
 
 
5663
fi
 
5664
 
 
5665
     fi
 
5666
  fi
 
5667
 
 
5668
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
 
5669
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
 
5670
  fi
 
5671
 
 
5672
  # Check whether --enable-pch was given.
 
5673
if test "${enable_pch+set}" = set; then
 
5674
  enableval=$enable_pch;  kde_use_pch=$enableval 
 
5675
else
 
5676
   kde_use_pch=no 
 
5677
fi
 
5678
 
 
5679
 
 
5680
  HAVE_GCC_VISIBILITY=0
 
5681
  
 
5682
 
 
5683
  if test "$GXX" = "yes"; then
 
5684
    
 
5685
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
 
5686
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6; }
 
5687
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
 
5688
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5690
else
 
5691
  
 
5692
  
 
5693
   ac_ext=cpp
 
5694
ac_cpp='$CXXCPP $CPPFLAGS'
 
5695
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5696
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5697
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5698
 
 
5699
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5700
 
 
5701
 
 
5702
  save_CXXFLAGS="$CXXFLAGS"
 
5703
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
5704
  cat >conftest.$ac_ext <<_ACEOF
 
5705
/* confdefs.h.  */
 
5706
_ACEOF
 
5707
cat confdefs.h >>conftest.$ac_ext
 
5708
cat >>conftest.$ac_ext <<_ACEOF
 
5709
/* end confdefs.h.  */
 
5710
 
 
5711
int
 
5712
main ()
 
5713
{
 
5714
 return 0; 
 
5715
  ;
 
5716
  return 0;
 
5717
}
 
5718
_ACEOF
 
5719
rm -f conftest.$ac_objext conftest$ac_exeext
 
5720
if { (ac_try="$ac_link"
 
5721
case "(($ac_try" in
 
5722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5723
  *) ac_try_echo=$ac_try;;
 
5724
esac
 
5725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5726
  (eval "$ac_link") 2>conftest.er1
 
5727
  ac_status=$?
 
5728
  grep -v '^ *+' conftest.er1 >conftest.err
 
5729
  rm -f conftest.er1
 
5730
  cat conftest.err >&5
 
5731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5732
  (exit $ac_status); } && {
 
5733
         test -z "$ac_cxx_werror_flag" ||
 
5734
         test ! -s conftest.err
 
5735
       } && test -s conftest$ac_exeext &&
 
5736
       $as_test_x conftest$ac_exeext; then
 
5737
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5738
else
 
5739
  echo "$as_me: failed program was:" >&5
 
5740
sed 's/^/| /' conftest.$ac_ext >&5
 
5741
 
 
5742
        
 
5743
fi
 
5744
 
 
5745
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5746
      conftest$ac_exeext conftest.$ac_ext
 
5747
  CXXFLAGS="$save_CXXFLAGS"
 
5748
  ac_ext=c
 
5749
ac_cpp='$CPP $CPPFLAGS'
 
5750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5751
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5752
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5753
 
 
5754
 
 
5755
fi
 
5756
 
 
5757
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5758
 { echo "$as_me:$LINENO: result: yes" >&5
 
5759
echo "${ECHO_T}yes" >&6; }
 
5760
 :
 
5761
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
5762
else
 
5763
 { echo "$as_me:$LINENO: result: no" >&5
 
5764
echo "${ECHO_T}no" >&6; }
 
5765
 :
 
5766
 
 
5767
fi
 
5768
 
 
5769
    
 
5770
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
 
5771
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6; }
 
5772
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
 
5773
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5775
else
 
5776
  
 
5777
  
 
5778
   ac_ext=cpp
 
5779
ac_cpp='$CXXCPP $CPPFLAGS'
 
5780
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5781
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5782
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5783
 
 
5784
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5785
 
 
5786
 
 
5787
  save_CXXFLAGS="$CXXFLAGS"
 
5788
  CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5789
  cat >conftest.$ac_ext <<_ACEOF
 
5790
/* confdefs.h.  */
 
5791
_ACEOF
 
5792
cat confdefs.h >>conftest.$ac_ext
 
5793
cat >>conftest.$ac_ext <<_ACEOF
 
5794
/* end confdefs.h.  */
 
5795
 
 
5796
int
 
5797
main ()
 
5798
{
 
5799
 return 0; 
 
5800
  ;
 
5801
  return 0;
 
5802
}
 
5803
_ACEOF
 
5804
rm -f conftest.$ac_objext conftest$ac_exeext
 
5805
if { (ac_try="$ac_link"
 
5806
case "(($ac_try" in
 
5807
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5808
  *) ac_try_echo=$ac_try;;
 
5809
esac
 
5810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5811
  (eval "$ac_link") 2>conftest.er1
 
5812
  ac_status=$?
 
5813
  grep -v '^ *+' conftest.er1 >conftest.err
 
5814
  rm -f conftest.er1
 
5815
  cat conftest.err >&5
 
5816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5817
  (exit $ac_status); } && {
 
5818
         test -z "$ac_cxx_werror_flag" ||
 
5819
         test ! -s conftest.err
 
5820
       } && test -s conftest$ac_exeext &&
 
5821
       $as_test_x conftest$ac_exeext; then
 
5822
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5823
else
 
5824
  echo "$as_me: failed program was:" >&5
 
5825
sed 's/^/| /' conftest.$ac_ext >&5
 
5826
 
 
5827
        
 
5828
fi
 
5829
 
 
5830
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5831
      conftest$ac_exeext conftest.$ac_ext
 
5832
  CXXFLAGS="$save_CXXFLAGS"
 
5833
  ac_ext=c
 
5834
ac_cpp='$CPP $CPPFLAGS'
 
5835
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5836
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5837
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5838
 
 
5839
 
 
5840
fi
 
5841
 
 
5842
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5843
 { echo "$as_me:$LINENO: result: yes" >&5
 
5844
echo "${ECHO_T}yes" >&6; }
 
5845
 :
 
5846
 CXXFLAGS="$CXXFLAGS -fno-check-new"
 
5847
else
 
5848
 { echo "$as_me:$LINENO: result: no" >&5
 
5849
echo "${ECHO_T}no" >&6; }
 
5850
 :
 
5851
 
 
5852
fi
 
5853
 
 
5854
    
 
5855
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
 
5856
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6; }
 
5857
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
 
5858
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5860
else
 
5861
  
 
5862
  
 
5863
   ac_ext=cpp
 
5864
ac_cpp='$CXXCPP $CPPFLAGS'
 
5865
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5866
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5867
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5868
 
 
5869
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5870
 
 
5871
 
 
5872
  save_CXXFLAGS="$CXXFLAGS"
 
5873
  CXXFLAGS="$CXXFLAGS -fno-common"
 
5874
  cat >conftest.$ac_ext <<_ACEOF
 
5875
/* confdefs.h.  */
 
5876
_ACEOF
 
5877
cat confdefs.h >>conftest.$ac_ext
 
5878
cat >>conftest.$ac_ext <<_ACEOF
 
5879
/* end confdefs.h.  */
 
5880
 
 
5881
int
 
5882
main ()
 
5883
{
 
5884
 return 0; 
 
5885
  ;
 
5886
  return 0;
 
5887
}
 
5888
_ACEOF
 
5889
rm -f conftest.$ac_objext conftest$ac_exeext
 
5890
if { (ac_try="$ac_link"
 
5891
case "(($ac_try" in
 
5892
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5893
  *) ac_try_echo=$ac_try;;
 
5894
esac
 
5895
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5896
  (eval "$ac_link") 2>conftest.er1
 
5897
  ac_status=$?
 
5898
  grep -v '^ *+' conftest.er1 >conftest.err
 
5899
  rm -f conftest.er1
 
5900
  cat conftest.err >&5
 
5901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5902
  (exit $ac_status); } && {
 
5903
         test -z "$ac_cxx_werror_flag" ||
 
5904
         test ! -s conftest.err
 
5905
       } && test -s conftest$ac_exeext &&
 
5906
       $as_test_x conftest$ac_exeext; then
 
5907
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5908
else
 
5909
  echo "$as_me: failed program was:" >&5
 
5910
sed 's/^/| /' conftest.$ac_ext >&5
 
5911
 
 
5912
        
 
5913
fi
 
5914
 
 
5915
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5916
      conftest$ac_exeext conftest.$ac_ext
 
5917
  CXXFLAGS="$save_CXXFLAGS"
 
5918
  ac_ext=c
 
5919
ac_cpp='$CPP $CPPFLAGS'
 
5920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5923
 
 
5924
 
 
5925
fi
 
5926
 
 
5927
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5928
 { echo "$as_me:$LINENO: result: yes" >&5
 
5929
echo "${ECHO_T}yes" >&6; }
 
5930
 :
 
5931
 CXXFLAGS="$CXXFLAGS -fno-common"
 
5932
else
 
5933
 { echo "$as_me:$LINENO: result: no" >&5
 
5934
echo "${ECHO_T}no" >&6; }
 
5935
 :
 
5936
 
 
5937
fi
 
5938
 
 
5939
    
 
5940
{ echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
 
5941
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
 
5942
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
 
5943
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
5944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5945
else
 
5946
  
 
5947
  
 
5948
   ac_ext=cpp
 
5949
ac_cpp='$CXXCPP $CPPFLAGS'
 
5950
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5951
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5952
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5953
 
 
5954
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5955
 
 
5956
 
 
5957
  save_CXXFLAGS="$CXXFLAGS"
 
5958
  CXXFLAGS="$CXXFLAGS -fexceptions"
 
5959
  cat >conftest.$ac_ext <<_ACEOF
 
5960
/* confdefs.h.  */
 
5961
_ACEOF
 
5962
cat confdefs.h >>conftest.$ac_ext
 
5963
cat >>conftest.$ac_ext <<_ACEOF
 
5964
/* end confdefs.h.  */
 
5965
 
 
5966
int
 
5967
main ()
 
5968
{
 
5969
 return 0; 
 
5970
  ;
 
5971
  return 0;
 
5972
}
 
5973
_ACEOF
 
5974
rm -f conftest.$ac_objext conftest$ac_exeext
 
5975
if { (ac_try="$ac_link"
 
5976
case "(($ac_try" in
 
5977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5978
  *) ac_try_echo=$ac_try;;
 
5979
esac
 
5980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5981
  (eval "$ac_link") 2>conftest.er1
 
5982
  ac_status=$?
 
5983
  grep -v '^ *+' conftest.er1 >conftest.err
 
5984
  rm -f conftest.er1
 
5985
  cat conftest.err >&5
 
5986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5987
  (exit $ac_status); } && {
 
5988
         test -z "$ac_cxx_werror_flag" ||
 
5989
         test ! -s conftest.err
 
5990
       } && test -s conftest$ac_exeext &&
 
5991
       $as_test_x conftest$ac_exeext; then
 
5992
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5993
else
 
5994
  echo "$as_me: failed program was:" >&5
 
5995
sed 's/^/| /' conftest.$ac_ext >&5
 
5996
 
 
5997
        
 
5998
fi
 
5999
 
 
6000
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6001
      conftest$ac_exeext conftest.$ac_ext
 
6002
  CXXFLAGS="$save_CXXFLAGS"
 
6003
  ac_ext=c
 
6004
ac_cpp='$CPP $CPPFLAGS'
 
6005
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6006
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6007
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6008
 
 
6009
 
 
6010
fi
 
6011
 
 
6012
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6013
 { echo "$as_me:$LINENO: result: yes" >&5
 
6014
echo "${ECHO_T}yes" >&6; }
 
6015
 :
 
6016
 USE_EXCEPTIONS="-fexceptions"
 
6017
else
 
6018
 { echo "$as_me:$LINENO: result: no" >&5
 
6019
echo "${ECHO_T}no" >&6; }
 
6020
 :
 
6021
 USE_EXCEPTIONS=        
 
6022
fi
 
6023
 
 
6024
    ENABLE_PERMISSIVE_FLAG="-fpermissive"
 
6025
 
 
6026
    if test "$kde_use_pch" = "yes"; then
 
6027
        { echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
 
6028
echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6; }
 
6029
        echo >conftest.h
 
6030
        if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
 
6031
            kde_gcc_supports_pch=yes
 
6032
            { echo "$as_me:$LINENO: result: yes" >&5
 
6033
echo "${ECHO_T}yes" >&6; }
 
6034
        else
 
6035
            kde_gcc_supports_pch=no
 
6036
            { echo "$as_me:$LINENO: result: no" >&5
 
6037
echo "${ECHO_T}no" >&6; }
 
6038
        fi
 
6039
        if test "$kde_gcc_supports_pch" = "yes"; then
 
6040
            { echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
 
6041
echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6; }
 
6042
            if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
 
6043
                kde_gcc_supports_pch=yes
 
6044
                { echo "$as_me:$LINENO: result: yes" >&5
 
6045
echo "${ECHO_T}yes" >&6; }
 
6046
            else
 
6047
                kde_gcc_supports_pch=no
 
6048
                { echo "$as_me:$LINENO: result: no" >&5
 
6049
echo "${ECHO_T}no" >&6; }
 
6050
            fi
 
6051
        fi
 
6052
        rm -f conftest.h conftest.h.gch
 
6053
    fi
 
6054
  fi
 
6055
   if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
 
6056
  unsermake_enable_pch_TRUE=
 
6057
  unsermake_enable_pch_FALSE='#'
 
6058
else
 
6059
  unsermake_enable_pch_TRUE='#'
 
6060
  unsermake_enable_pch_FALSE=
 
6061
fi
 
6062
 
 
6063
  if test "$CXX" = "KCC"; then
 
6064
                
 
6065
    if test "$kde_use_pch" = "yes"; then
 
6066
            
 
6067
{ echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
 
6068
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6; }
 
6069
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
 
6070
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
6071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6072
else
 
6073
  
 
6074
  
 
6075
   ac_ext=cpp
 
6076
ac_cpp='$CXXCPP $CPPFLAGS'
 
6077
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6078
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6079
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6080
 
 
6081
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6082
 
 
6083
 
 
6084
  save_CXXFLAGS="$CXXFLAGS"
 
6085
  CXXFLAGS="$CXXFLAGS --pch"
 
6086
  cat >conftest.$ac_ext <<_ACEOF
 
6087
/* confdefs.h.  */
 
6088
_ACEOF
 
6089
cat confdefs.h >>conftest.$ac_ext
 
6090
cat >>conftest.$ac_ext <<_ACEOF
 
6091
/* end confdefs.h.  */
 
6092
 
 
6093
int
 
6094
main ()
 
6095
{
 
6096
 return 0; 
 
6097
  ;
 
6098
  return 0;
 
6099
}
 
6100
_ACEOF
 
6101
rm -f conftest.$ac_objext conftest$ac_exeext
 
6102
if { (ac_try="$ac_link"
 
6103
case "(($ac_try" in
 
6104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6105
  *) ac_try_echo=$ac_try;;
 
6106
esac
 
6107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6108
  (eval "$ac_link") 2>conftest.er1
 
6109
  ac_status=$?
 
6110
  grep -v '^ *+' conftest.er1 >conftest.err
 
6111
  rm -f conftest.er1
 
6112
  cat conftest.err >&5
 
6113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6114
  (exit $ac_status); } && {
 
6115
         test -z "$ac_cxx_werror_flag" ||
 
6116
         test ! -s conftest.err
 
6117
       } && test -s conftest$ac_exeext &&
 
6118
       $as_test_x conftest$ac_exeext; then
 
6119
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6120
else
 
6121
  echo "$as_me: failed program was:" >&5
 
6122
sed 's/^/| /' conftest.$ac_ext >&5
 
6123
 
 
6124
        
 
6125
fi
 
6126
 
 
6127
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6128
      conftest$ac_exeext conftest.$ac_ext
 
6129
  CXXFLAGS="$save_CXXFLAGS"
 
6130
  ac_ext=c
 
6131
ac_cpp='$CPP $CPPFLAGS'
 
6132
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6133
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6134
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6135
 
 
6136
 
 
6137
fi
 
6138
 
 
6139
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6140
 { echo "$as_me:$LINENO: result: yes" >&5
 
6141
echo "${ECHO_T}yes" >&6; }
 
6142
 :
 
6143
 CXXFLAGS="$CXXFLAGS --pch"
 
6144
else
 
6145
 { echo "$as_me:$LINENO: result: no" >&5
 
6146
echo "${ECHO_T}no" >&6; }
 
6147
 :
 
6148
 
 
6149
fi
 
6150
 
 
6151
                                              fi
 
6152
                    
 
6153
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
 
6154
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6; }
 
6155
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
 
6156
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
6157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6158
else
 
6159
  
 
6160
  
 
6161
   ac_ext=cpp
 
6162
ac_cpp='$CXXCPP $CPPFLAGS'
 
6163
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6164
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6165
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6166
 
 
6167
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6168
 
 
6169
 
 
6170
  save_CXXFLAGS="$CXXFLAGS"
 
6171
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
6172
  cat >conftest.$ac_ext <<_ACEOF
 
6173
/* confdefs.h.  */
 
6174
_ACEOF
 
6175
cat confdefs.h >>conftest.$ac_ext
 
6176
cat >>conftest.$ac_ext <<_ACEOF
 
6177
/* end confdefs.h.  */
 
6178
 
 
6179
int
 
6180
main ()
 
6181
{
 
6182
 return 0; 
 
6183
  ;
 
6184
  return 0;
 
6185
}
 
6186
_ACEOF
 
6187
rm -f conftest.$ac_objext conftest$ac_exeext
 
6188
if { (ac_try="$ac_link"
 
6189
case "(($ac_try" in
 
6190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6191
  *) ac_try_echo=$ac_try;;
 
6192
esac
 
6193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6194
  (eval "$ac_link") 2>conftest.er1
 
6195
  ac_status=$?
 
6196
  grep -v '^ *+' conftest.er1 >conftest.err
 
6197
  rm -f conftest.er1
 
6198
  cat conftest.err >&5
 
6199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6200
  (exit $ac_status); } && {
 
6201
         test -z "$ac_cxx_werror_flag" ||
 
6202
         test ! -s conftest.err
 
6203
       } && test -s conftest$ac_exeext &&
 
6204
       $as_test_x conftest$ac_exeext; then
 
6205
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6206
else
 
6207
  echo "$as_me: failed program was:" >&5
 
6208
sed 's/^/| /' conftest.$ac_ext >&5
 
6209
 
 
6210
        
 
6211
fi
 
6212
 
 
6213
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6214
      conftest$ac_exeext conftest.$ac_ext
 
6215
  CXXFLAGS="$save_CXXFLAGS"
 
6216
  ac_ext=c
 
6217
ac_cpp='$CPP $CPPFLAGS'
 
6218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6221
 
 
6222
 
 
6223
fi
 
6224
 
 
6225
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6226
 { echo "$as_me:$LINENO: result: yes" >&5
 
6227
echo "${ECHO_T}yes" >&6; }
 
6228
 :
 
6229
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
 
6230
else
 
6231
 { echo "$as_me:$LINENO: result: no" >&5
 
6232
echo "${ECHO_T}no" >&6; }
 
6233
 :
 
6234
 
 
6235
fi
 
6236
 
 
6237
    
 
6238
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
 
6239
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6; }
 
6240
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
 
6241
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
6242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6243
else
 
6244
  
 
6245
  
 
6246
   ac_ext=cpp
 
6247
ac_cpp='$CXXCPP $CPPFLAGS'
 
6248
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6249
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6250
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6251
 
 
6252
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6253
 
 
6254
 
 
6255
  save_CXXFLAGS="$CXXFLAGS"
 
6256
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
6257
  cat >conftest.$ac_ext <<_ACEOF
 
6258
/* confdefs.h.  */
 
6259
_ACEOF
 
6260
cat confdefs.h >>conftest.$ac_ext
 
6261
cat >>conftest.$ac_ext <<_ACEOF
 
6262
/* end confdefs.h.  */
 
6263
 
 
6264
int
 
6265
main ()
 
6266
{
 
6267
 return 0; 
 
6268
  ;
 
6269
  return 0;
 
6270
}
 
6271
_ACEOF
 
6272
rm -f conftest.$ac_objext conftest$ac_exeext
 
6273
if { (ac_try="$ac_link"
 
6274
case "(($ac_try" in
 
6275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6276
  *) ac_try_echo=$ac_try;;
 
6277
esac
 
6278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6279
  (eval "$ac_link") 2>conftest.er1
 
6280
  ac_status=$?
 
6281
  grep -v '^ *+' conftest.er1 >conftest.err
 
6282
  rm -f conftest.er1
 
6283
  cat conftest.err >&5
 
6284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6285
  (exit $ac_status); } && {
 
6286
         test -z "$ac_cxx_werror_flag" ||
 
6287
         test ! -s conftest.err
 
6288
       } && test -s conftest$ac_exeext &&
 
6289
       $as_test_x conftest$ac_exeext; then
 
6290
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6291
else
 
6292
  echo "$as_me: failed program was:" >&5
 
6293
sed 's/^/| /' conftest.$ac_ext >&5
 
6294
 
 
6295
        
 
6296
fi
 
6297
 
 
6298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6299
      conftest$ac_exeext conftest.$ac_ext
 
6300
  CXXFLAGS="$save_CXXFLAGS"
 
6301
  ac_ext=c
 
6302
ac_cpp='$CPP $CPPFLAGS'
 
6303
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6304
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6305
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6306
 
 
6307
 
 
6308
fi
 
6309
 
 
6310
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6311
 { echo "$as_me:$LINENO: result: yes" >&5
 
6312
echo "${ECHO_T}yes" >&6; }
 
6313
 :
 
6314
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
 
6315
else
 
6316
 { echo "$as_me:$LINENO: result: no" >&5
 
6317
echo "${ECHO_T}no" >&6; }
 
6318
 :
 
6319
 
 
6320
fi
 
6321
 
 
6322
    
 
6323
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
 
6324
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6; }
 
6325
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
6326
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
6327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6328
else
 
6329
  
 
6330
  
 
6331
   ac_ext=cpp
 
6332
ac_cpp='$CXXCPP $CPPFLAGS'
 
6333
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6334
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6335
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6336
 
 
6337
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6338
 
 
6339
 
 
6340
  save_CXXFLAGS="$CXXFLAGS"
 
6341
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
6342
  cat >conftest.$ac_ext <<_ACEOF
 
6343
/* confdefs.h.  */
 
6344
_ACEOF
 
6345
cat confdefs.h >>conftest.$ac_ext
 
6346
cat >>conftest.$ac_ext <<_ACEOF
 
6347
/* end confdefs.h.  */
 
6348
 
 
6349
int
 
6350
main ()
 
6351
{
 
6352
 return 0; 
 
6353
  ;
 
6354
  return 0;
 
6355
}
 
6356
_ACEOF
 
6357
rm -f conftest.$ac_objext conftest$ac_exeext
 
6358
if { (ac_try="$ac_link"
 
6359
case "(($ac_try" in
 
6360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6361
  *) ac_try_echo=$ac_try;;
 
6362
esac
 
6363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6364
  (eval "$ac_link") 2>conftest.er1
 
6365
  ac_status=$?
 
6366
  grep -v '^ *+' conftest.er1 >conftest.err
 
6367
  rm -f conftest.er1
 
6368
  cat conftest.err >&5
 
6369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6370
  (exit $ac_status); } && {
 
6371
         test -z "$ac_cxx_werror_flag" ||
 
6372
         test ! -s conftest.err
 
6373
       } && test -s conftest$ac_exeext &&
 
6374
       $as_test_x conftest$ac_exeext; then
 
6375
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6376
else
 
6377
  echo "$as_me: failed program was:" >&5
 
6378
sed 's/^/| /' conftest.$ac_ext >&5
 
6379
 
 
6380
        
 
6381
fi
 
6382
 
 
6383
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6384
      conftest$ac_exeext conftest.$ac_ext
 
6385
  CXXFLAGS="$save_CXXFLAGS"
 
6386
  ac_ext=c
 
6387
ac_cpp='$CPP $CPPFLAGS'
 
6388
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6389
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6390
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6391
 
 
6392
 
 
6393
fi
 
6394
 
 
6395
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6396
 { echo "$as_me:$LINENO: result: yes" >&5
 
6397
echo "${ECHO_T}yes" >&6; }
 
6398
 :
 
6399
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
 
6400
else
 
6401
 { echo "$as_me:$LINENO: result: no" >&5
 
6402
echo "${ECHO_T}no" >&6; }
 
6403
 :
 
6404
 
 
6405
fi
 
6406
 
 
6407
    
 
6408
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
 
6409
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6; }
 
6410
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
 
6411
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
6412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6413
else
 
6414
  
 
6415
  
 
6416
   ac_ext=cpp
 
6417
ac_cpp='$CXXCPP $CPPFLAGS'
 
6418
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6419
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6420
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6421
 
 
6422
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6423
 
 
6424
 
 
6425
  save_CXXFLAGS="$CXXFLAGS"
 
6426
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
6427
  cat >conftest.$ac_ext <<_ACEOF
 
6428
/* confdefs.h.  */
 
6429
_ACEOF
 
6430
cat confdefs.h >>conftest.$ac_ext
 
6431
cat >>conftest.$ac_ext <<_ACEOF
 
6432
/* end confdefs.h.  */
 
6433
 
 
6434
int
 
6435
main ()
 
6436
{
 
6437
 return 0; 
 
6438
  ;
 
6439
  return 0;
 
6440
}
 
6441
_ACEOF
 
6442
rm -f conftest.$ac_objext conftest$ac_exeext
 
6443
if { (ac_try="$ac_link"
 
6444
case "(($ac_try" in
 
6445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6446
  *) ac_try_echo=$ac_try;;
 
6447
esac
 
6448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6449
  (eval "$ac_link") 2>conftest.er1
 
6450
  ac_status=$?
 
6451
  grep -v '^ *+' conftest.er1 >conftest.err
 
6452
  rm -f conftest.er1
 
6453
  cat conftest.err >&5
 
6454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6455
  (exit $ac_status); } && {
 
6456
         test -z "$ac_cxx_werror_flag" ||
 
6457
         test ! -s conftest.err
 
6458
       } && test -s conftest$ac_exeext &&
 
6459
       $as_test_x conftest$ac_exeext; then
 
6460
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6461
else
 
6462
  echo "$as_me: failed program was:" >&5
 
6463
sed 's/^/| /' conftest.$ac_ext >&5
 
6464
 
 
6465
        
 
6466
fi
 
6467
 
 
6468
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6469
      conftest$ac_exeext conftest.$ac_ext
 
6470
  CXXFLAGS="$save_CXXFLAGS"
 
6471
  ac_ext=c
 
6472
ac_cpp='$CPP $CPPFLAGS'
 
6473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6476
 
 
6477
 
 
6478
fi
 
6479
 
 
6480
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6481
 { echo "$as_me:$LINENO: result: yes" >&5
 
6482
echo "${ECHO_T}yes" >&6; }
 
6483
 :
 
6484
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
 
6485
else
 
6486
 { echo "$as_me:$LINENO: result: no" >&5
 
6487
echo "${ECHO_T}no" >&6; }
 
6488
 :
 
6489
 
 
6490
fi
 
6491
 
 
6492
                        
 
6493
{ echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
 
6494
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6; }
 
6495
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
 
6496
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
6497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6498
else
 
6499
  
 
6500
  
 
6501
   ac_ext=cpp
 
6502
ac_cpp='$CXXCPP $CPPFLAGS'
 
6503
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6504
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6505
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6506
 
 
6507
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6508
 
 
6509
 
 
6510
  save_CXXFLAGS="$CXXFLAGS"
 
6511
  CXXFLAGS="$CXXFLAGS --one_per"
 
6512
  cat >conftest.$ac_ext <<_ACEOF
 
6513
/* confdefs.h.  */
 
6514
_ACEOF
 
6515
cat confdefs.h >>conftest.$ac_ext
 
6516
cat >>conftest.$ac_ext <<_ACEOF
 
6517
/* end confdefs.h.  */
 
6518
 
 
6519
int
 
6520
main ()
 
6521
{
 
6522
 return 0; 
 
6523
  ;
 
6524
  return 0;
 
6525
}
 
6526
_ACEOF
 
6527
rm -f conftest.$ac_objext conftest$ac_exeext
 
6528
if { (ac_try="$ac_link"
 
6529
case "(($ac_try" in
 
6530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6531
  *) ac_try_echo=$ac_try;;
 
6532
esac
 
6533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6534
  (eval "$ac_link") 2>conftest.er1
 
6535
  ac_status=$?
 
6536
  grep -v '^ *+' conftest.er1 >conftest.err
 
6537
  rm -f conftest.er1
 
6538
  cat conftest.err >&5
 
6539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6540
  (exit $ac_status); } && {
 
6541
         test -z "$ac_cxx_werror_flag" ||
 
6542
         test ! -s conftest.err
 
6543
       } && test -s conftest$ac_exeext &&
 
6544
       $as_test_x conftest$ac_exeext; then
 
6545
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6546
else
 
6547
  echo "$as_me: failed program was:" >&5
 
6548
sed 's/^/| /' conftest.$ac_ext >&5
 
6549
 
 
6550
        
 
6551
fi
 
6552
 
 
6553
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6554
      conftest$ac_exeext conftest.$ac_ext
 
6555
  CXXFLAGS="$save_CXXFLAGS"
 
6556
  ac_ext=c
 
6557
ac_cpp='$CPP $CPPFLAGS'
 
6558
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6559
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6560
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6561
 
 
6562
 
 
6563
fi
 
6564
 
 
6565
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6566
 { echo "$as_me:$LINENO: result: yes" >&5
 
6567
echo "${ECHO_T}yes" >&6; }
 
6568
 :
 
6569
 CXXFLAGS="$CXXFLAGS --one_per"
 
6570
else
 
6571
 { echo "$as_me:$LINENO: result: no" >&5
 
6572
echo "${ECHO_T}no" >&6; }
 
6573
 :
 
6574
 
 
6575
fi
 
6576
 
 
6577
  fi
 
6578
  
 
6579
    USE_RTTI=
 
6580
  
 
6581
 
 
6582
  case "$host" in
 
6583
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
 
6584
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
 
6585
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
 
6586
      *-*-solaris*) 
 
6587
        if test "$GXX" = yes; then
 
6588
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
 
6589
          if test ! -f $libstdcpp; then
 
6590
             { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
 
6591
echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
 
6592
   { (exit 1); exit 1; }; }
 
6593
          fi
 
6594
        fi
 
6595
        ;;
 
6596
  esac
 
6597
 
 
6598
  if test "x$kde_use_qt_emb" != "xyes"; then
 
6599
  __val=$CXX
 
6600
  __forbid=" -fno-rtti -rpath "
 
6601
  if test -n "$__val"; then
 
6602
    __new=""
 
6603
    ac_save_IFS=$IFS
 
6604
    IFS="       "
 
6605
    for i in $__val; do
 
6606
      case "$__forbid" in
 
6607
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
6608
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
6609
        *) # Careful to not add spaces, where there were none, because otherwise
 
6610
           # libtool gets confused, if we change e.g. CXX
 
6611
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6612
      esac
 
6613
    done
 
6614
    IFS=$ac_save_IFS
 
6615
    CXX=$__new
 
6616
  fi
 
6617
 
 
6618
  __val=$CXXFLAGS
 
6619
  __forbid=" -fno-rtti -rpath "
 
6620
  if test -n "$__val"; then
 
6621
    __new=""
 
6622
    ac_save_IFS=$IFS
 
6623
    IFS="       "
 
6624
    for i in $__val; do
 
6625
      case "$__forbid" in
 
6626
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
6627
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
6628
        *) # Careful to not add spaces, where there were none, because otherwise
 
6629
           # libtool gets confused, if we change e.g. CXX
 
6630
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6631
      esac
 
6632
    done
 
6633
    IFS=$ac_save_IFS
 
6634
    CXXFLAGS=$__new
 
6635
  fi
 
6636
 
 
6637
else
 
6638
  __val=$CXX
 
6639
  __forbid=" -rpath "
 
6640
  if test -n "$__val"; then
 
6641
    __new=""
 
6642
    ac_save_IFS=$IFS
 
6643
    IFS="       "
 
6644
    for i in $__val; do
 
6645
      case "$__forbid" in
 
6646
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
 
6647
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
 
6648
        *) # Careful to not add spaces, where there were none, because otherwise
 
6649
           # libtool gets confused, if we change e.g. CXX
 
6650
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6651
      esac
 
6652
    done
 
6653
    IFS=$ac_save_IFS
 
6654
    CXX=$__new
 
6655
  fi
 
6656
 
 
6657
  __val=$CXXFLAGS
 
6658
  __forbid=" -rpath "
 
6659
  if test -n "$__val"; then
 
6660
    __new=""
 
6661
    ac_save_IFS=$IFS
 
6662
    IFS="       "
 
6663
    for i in $__val; do
 
6664
      case "$__forbid" in
 
6665
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
 
6666
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
 
6667
        *) # Careful to not add spaces, where there were none, because otherwise
 
6668
           # libtool gets confused, if we change e.g. CXX
 
6669
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
6670
      esac
 
6671
    done
 
6672
    IFS=$ac_save_IFS
 
6673
    CXXFLAGS=$__new
 
6674
  fi
 
6675
 
 
6676
fi
 
6677
 
 
6678
 
 
6679
  ac_ext=cpp
 
6680
ac_cpp='$CXXCPP $CPPFLAGS'
 
6681
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6682
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6683
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6684
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6685
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
6686
if test -z "$CXXCPP"; then
 
6687
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6689
else
 
6690
      # Double quotes because CXXCPP needs to be expanded
 
6691
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6692
    do
 
6693
      ac_preproc_ok=false
 
6694
for ac_cxx_preproc_warn_flag in '' yes
 
6695
do
 
6696
  # Use a header file that comes with gcc, so configuring glibc
 
6697
  # with a fresh cross-compiler works.
 
6698
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6699
  # <limits.h> exists even on freestanding compilers.
 
6700
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6701
  # not just through cpp. "Syntax error" is here to catch this case.
 
6702
  cat >conftest.$ac_ext <<_ACEOF
 
6703
/* confdefs.h.  */
 
6704
_ACEOF
 
6705
cat confdefs.h >>conftest.$ac_ext
 
6706
cat >>conftest.$ac_ext <<_ACEOF
 
6707
/* end confdefs.h.  */
 
6708
@%:@ifdef __STDC__
 
6709
@%:@ include <limits.h>
 
6710
@%:@else
 
6711
@%:@ include <assert.h>
 
6712
@%:@endif
 
6713
                     Syntax error
 
6714
_ACEOF
 
6715
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6716
case "(($ac_try" in
 
6717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6718
  *) ac_try_echo=$ac_try;;
 
6719
esac
 
6720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6721
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6722
  ac_status=$?
 
6723
  grep -v '^ *+' conftest.er1 >conftest.err
 
6724
  rm -f conftest.er1
 
6725
  cat conftest.err >&5
 
6726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6727
  (exit $ac_status); } >/dev/null && {
 
6728
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6729
         test ! -s conftest.err
 
6730
       }; then
 
6731
  :
 
6732
else
 
6733
  echo "$as_me: failed program was:" >&5
 
6734
sed 's/^/| /' conftest.$ac_ext >&5
 
6735
 
 
6736
  # Broken: fails on valid input.
 
6737
continue
 
6738
fi
 
6739
 
 
6740
rm -f conftest.err conftest.$ac_ext
 
6741
 
 
6742
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6743
  # can be detected and how.
 
6744
  cat >conftest.$ac_ext <<_ACEOF
 
6745
/* confdefs.h.  */
 
6746
_ACEOF
 
6747
cat confdefs.h >>conftest.$ac_ext
 
6748
cat >>conftest.$ac_ext <<_ACEOF
 
6749
/* end confdefs.h.  */
 
6750
@%:@include <ac_nonexistent.h>
 
6751
_ACEOF
 
6752
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6753
case "(($ac_try" in
 
6754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6755
  *) ac_try_echo=$ac_try;;
 
6756
esac
 
6757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6758
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6759
  ac_status=$?
 
6760
  grep -v '^ *+' conftest.er1 >conftest.err
 
6761
  rm -f conftest.er1
 
6762
  cat conftest.err >&5
 
6763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6764
  (exit $ac_status); } >/dev/null && {
 
6765
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6766
         test ! -s conftest.err
 
6767
       }; then
 
6768
  # Broken: success on invalid input.
 
6769
continue
 
6770
else
 
6771
  echo "$as_me: failed program was:" >&5
 
6772
sed 's/^/| /' conftest.$ac_ext >&5
 
6773
 
 
6774
  # Passes both tests.
 
6775
ac_preproc_ok=:
 
6776
break
 
6777
fi
 
6778
 
 
6779
rm -f conftest.err conftest.$ac_ext
 
6780
 
 
6781
done
 
6782
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6783
rm -f conftest.err conftest.$ac_ext
 
6784
if $ac_preproc_ok; then
 
6785
  break
 
6786
fi
 
6787
 
 
6788
    done
 
6789
    ac_cv_prog_CXXCPP=$CXXCPP
 
6790
  
 
6791
fi
 
6792
  CXXCPP=$ac_cv_prog_CXXCPP
 
6793
else
 
6794
  ac_cv_prog_CXXCPP=$CXXCPP
 
6795
fi
 
6796
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6797
echo "${ECHO_T}$CXXCPP" >&6; }
 
6798
ac_preproc_ok=false
 
6799
for ac_cxx_preproc_warn_flag in '' yes
 
6800
do
 
6801
  # Use a header file that comes with gcc, so configuring glibc
 
6802
  # with a fresh cross-compiler works.
 
6803
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6804
  # <limits.h> exists even on freestanding compilers.
 
6805
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6806
  # not just through cpp. "Syntax error" is here to catch this case.
 
6807
  cat >conftest.$ac_ext <<_ACEOF
 
6808
/* confdefs.h.  */
 
6809
_ACEOF
 
6810
cat confdefs.h >>conftest.$ac_ext
 
6811
cat >>conftest.$ac_ext <<_ACEOF
 
6812
/* end confdefs.h.  */
 
6813
@%:@ifdef __STDC__
 
6814
@%:@ include <limits.h>
 
6815
@%:@else
 
6816
@%:@ include <assert.h>
 
6817
@%:@endif
 
6818
                     Syntax error
 
6819
_ACEOF
 
6820
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6821
case "(($ac_try" in
 
6822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6823
  *) ac_try_echo=$ac_try;;
 
6824
esac
 
6825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6826
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6827
  ac_status=$?
 
6828
  grep -v '^ *+' conftest.er1 >conftest.err
 
6829
  rm -f conftest.er1
 
6830
  cat conftest.err >&5
 
6831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6832
  (exit $ac_status); } >/dev/null && {
 
6833
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6834
         test ! -s conftest.err
 
6835
       }; then
 
6836
  :
 
6837
else
 
6838
  echo "$as_me: failed program was:" >&5
 
6839
sed 's/^/| /' conftest.$ac_ext >&5
 
6840
 
 
6841
  # Broken: fails on valid input.
 
6842
continue
 
6843
fi
 
6844
 
 
6845
rm -f conftest.err conftest.$ac_ext
 
6846
 
 
6847
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6848
  # can be detected and how.
 
6849
  cat >conftest.$ac_ext <<_ACEOF
 
6850
/* confdefs.h.  */
 
6851
_ACEOF
 
6852
cat confdefs.h >>conftest.$ac_ext
 
6853
cat >>conftest.$ac_ext <<_ACEOF
 
6854
/* end confdefs.h.  */
 
6855
@%:@include <ac_nonexistent.h>
 
6856
_ACEOF
 
6857
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6858
case "(($ac_try" in
 
6859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6860
  *) ac_try_echo=$ac_try;;
 
6861
esac
 
6862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6863
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6864
  ac_status=$?
 
6865
  grep -v '^ *+' conftest.er1 >conftest.err
 
6866
  rm -f conftest.er1
 
6867
  cat conftest.err >&5
 
6868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6869
  (exit $ac_status); } >/dev/null && {
 
6870
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6871
         test ! -s conftest.err
 
6872
       }; then
 
6873
  # Broken: success on invalid input.
 
6874
continue
 
6875
else
 
6876
  echo "$as_me: failed program was:" >&5
 
6877
sed 's/^/| /' conftest.$ac_ext >&5
 
6878
 
 
6879
  # Passes both tests.
 
6880
ac_preproc_ok=:
 
6881
break
 
6882
fi
 
6883
 
 
6884
rm -f conftest.err conftest.$ac_ext
 
6885
 
 
6886
done
 
6887
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6888
rm -f conftest.err conftest.$ac_ext
 
6889
if $ac_preproc_ok; then
 
6890
  :
 
6891
else
 
6892
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6893
See \`config.log' for more details." >&5
 
6894
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6895
See \`config.log' for more details." >&2;}
 
6896
   { (exit 1); exit 1; }; }
 
6897
fi
 
6898
 
 
6899
ac_ext=c
 
6900
ac_cpp='$CPP $CPPFLAGS'
 
6901
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6902
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6903
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6904
 
 
6905
 
 
6906
  if test "$GCC" = yes; then
 
6907
     NOOPT_CFLAGS=-O0
 
6908
  fi
 
6909
  
 
6910
{ echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
 
6911
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6; }
 
6912
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
 
6913
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
6914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6915
else
 
6916
  
 
6917
  
 
6918
   ac_ext=cpp
 
6919
ac_cpp='$CXXCPP $CPPFLAGS'
 
6920
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6921
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6922
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6923
 
 
6924
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6925
 
 
6926
 
 
6927
  save_CXXFLAGS="$CXXFLAGS"
 
6928
  CXXFLAGS="$CXXFLAGS -O0"
 
6929
  cat >conftest.$ac_ext <<_ACEOF
 
6930
/* confdefs.h.  */
 
6931
_ACEOF
 
6932
cat confdefs.h >>conftest.$ac_ext
 
6933
cat >>conftest.$ac_ext <<_ACEOF
 
6934
/* end confdefs.h.  */
 
6935
 
 
6936
int
 
6937
main ()
 
6938
{
 
6939
 return 0; 
 
6940
  ;
 
6941
  return 0;
 
6942
}
 
6943
_ACEOF
 
6944
rm -f conftest.$ac_objext conftest$ac_exeext
 
6945
if { (ac_try="$ac_link"
 
6946
case "(($ac_try" in
 
6947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6948
  *) ac_try_echo=$ac_try;;
 
6949
esac
 
6950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6951
  (eval "$ac_link") 2>conftest.er1
 
6952
  ac_status=$?
 
6953
  grep -v '^ *+' conftest.er1 >conftest.err
 
6954
  rm -f conftest.er1
 
6955
  cat conftest.err >&5
 
6956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6957
  (exit $ac_status); } && {
 
6958
         test -z "$ac_cxx_werror_flag" ||
 
6959
         test ! -s conftest.err
 
6960
       } && test -s conftest$ac_exeext &&
 
6961
       $as_test_x conftest$ac_exeext; then
 
6962
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6963
else
 
6964
  echo "$as_me: failed program was:" >&5
 
6965
sed 's/^/| /' conftest.$ac_ext >&5
 
6966
 
 
6967
        
 
6968
fi
 
6969
 
 
6970
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6971
      conftest$ac_exeext conftest.$ac_ext
 
6972
  CXXFLAGS="$save_CXXFLAGS"
 
6973
  ac_ext=c
 
6974
ac_cpp='$CPP $CPPFLAGS'
 
6975
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6976
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6977
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6978
 
 
6979
 
 
6980
fi
 
6981
 
 
6982
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6983
 { echo "$as_me:$LINENO: result: yes" >&5
 
6984
echo "${ECHO_T}yes" >&6; }
 
6985
 :
 
6986
 NOOPT_CXXFLAGS=-O0
 
6987
else
 
6988
 { echo "$as_me:$LINENO: result: no" >&5
 
6989
echo "${ECHO_T}no" >&6; }
 
6990
 :
 
6991
 
 
6992
fi
 
6993
 
 
6994
 
 
6995
  # Check whether --enable-coverage was given.
 
6996
if test "${enable_coverage+set}" = set; then
 
6997
  enableval=$enable_coverage; 
 
6998
      if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
 
6999
        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
 
7000
        ac_coverage_linker="-lgcc"
 
7001
      elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
 
7002
        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
 
7003
        ac_coverage_linker=""
 
7004
      else
 
7005
        { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
 
7006
echo "$as_me: error: coverage with your compiler is not supported" >&2;}
 
7007
   { (exit 1); exit 1; }; }
 
7008
      fi
 
7009
      CFLAGS="$CFLAGS $ac_coverage_compiler"
 
7010
      CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
 
7011
      LDFLAGS="$LDFLAGS $ac_coverage_linker"
 
7012
    
 
7013
fi
 
7014
 
 
7015
 
 
7016
  
 
7017
  
 
7018
  
 
7019
 
 
7020
  
 
7021
  # Check whether --enable-new_ldflags was given.
 
7022
if test "${enable_new_ldflags+set}" = set; then
 
7023
  enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
 
7024
else
 
7025
  kde_use_new_ldflags=no
 
7026
fi
 
7027
 
 
7028
 
 
7029
  LDFLAGS_AS_NEEDED=""
 
7030
  LDFLAGS_NEW_DTAGS=""
 
7031
  if test "x$kde_use_new_ldflags" = "xyes"; then
 
7032
       LDFLAGS_NEW_DTAGS=""
 
7033
       
 
7034
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
 
7035
echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
 
7036
kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
 
7037
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
7038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7039
else
 
7040
  
 
7041
  
 
7042
   ac_ext=cpp
 
7043
ac_cpp='$CXXCPP $CPPFLAGS'
 
7044
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7045
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7046
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7047
 
 
7048
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
7049
 
 
7050
 
 
7051
  save_CXXFLAGS="$CXXFLAGS"
 
7052
  CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
 
7053
  cat >conftest.$ac_ext <<_ACEOF
 
7054
/* confdefs.h.  */
 
7055
_ACEOF
 
7056
cat confdefs.h >>conftest.$ac_ext
 
7057
cat >>conftest.$ac_ext <<_ACEOF
 
7058
/* end confdefs.h.  */
 
7059
 
 
7060
int
 
7061
main ()
 
7062
{
 
7063
 return 0; 
 
7064
  ;
 
7065
  return 0;
 
7066
}
 
7067
_ACEOF
 
7068
rm -f conftest.$ac_objext conftest$ac_exeext
 
7069
if { (ac_try="$ac_link"
 
7070
case "(($ac_try" in
 
7071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7072
  *) ac_try_echo=$ac_try;;
 
7073
esac
 
7074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7075
  (eval "$ac_link") 2>conftest.er1
 
7076
  ac_status=$?
 
7077
  grep -v '^ *+' conftest.er1 >conftest.err
 
7078
  rm -f conftest.er1
 
7079
  cat conftest.err >&5
 
7080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7081
  (exit $ac_status); } && {
 
7082
         test -z "$ac_cxx_werror_flag" ||
 
7083
         test ! -s conftest.err
 
7084
       } && test -s conftest$ac_exeext &&
 
7085
       $as_test_x conftest$ac_exeext; then
 
7086
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
7087
else
 
7088
  echo "$as_me: failed program was:" >&5
 
7089
sed 's/^/| /' conftest.$ac_ext >&5
 
7090
 
 
7091
        
 
7092
fi
 
7093
 
 
7094
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7095
      conftest$ac_exeext conftest.$ac_ext
 
7096
  CXXFLAGS="$save_CXXFLAGS"
 
7097
  ac_ext=c
 
7098
ac_cpp='$CPP $CPPFLAGS'
 
7099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7102
 
 
7103
 
 
7104
fi
 
7105
 
 
7106
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
7107
 { echo "$as_me:$LINENO: result: yes" >&5
 
7108
echo "${ECHO_T}yes" >&6; }
 
7109
 :
 
7110
 LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
 
7111
else
 
7112
 { echo "$as_me:$LINENO: result: no" >&5
 
7113
echo "${ECHO_T}no" >&6; }
 
7114
 :
 
7115
 
 
7116
fi
 
7117
 
 
7118
 
 
7119
       
 
7120
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
 
7121
echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6; }
 
7122
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
 
7123
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
7124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7125
else
 
7126
  
 
7127
  
 
7128
   ac_ext=cpp
 
7129
ac_cpp='$CXXCPP $CPPFLAGS'
 
7130
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7131
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7132
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7133
 
 
7134
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
7135
 
 
7136
 
 
7137
  save_CXXFLAGS="$CXXFLAGS"
 
7138
  CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
 
7139
  cat >conftest.$ac_ext <<_ACEOF
 
7140
/* confdefs.h.  */
 
7141
_ACEOF
 
7142
cat confdefs.h >>conftest.$ac_ext
 
7143
cat >>conftest.$ac_ext <<_ACEOF
 
7144
/* end confdefs.h.  */
 
7145
 
 
7146
int
 
7147
main ()
 
7148
{
 
7149
 return 0; 
 
7150
  ;
 
7151
  return 0;
 
7152
}
 
7153
_ACEOF
 
7154
rm -f conftest.$ac_objext conftest$ac_exeext
 
7155
if { (ac_try="$ac_link"
 
7156
case "(($ac_try" in
 
7157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7158
  *) ac_try_echo=$ac_try;;
 
7159
esac
 
7160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7161
  (eval "$ac_link") 2>conftest.er1
 
7162
  ac_status=$?
 
7163
  grep -v '^ *+' conftest.er1 >conftest.err
 
7164
  rm -f conftest.er1
 
7165
  cat conftest.err >&5
 
7166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7167
  (exit $ac_status); } && {
 
7168
         test -z "$ac_cxx_werror_flag" ||
 
7169
         test ! -s conftest.err
 
7170
       } && test -s conftest$ac_exeext &&
 
7171
       $as_test_x conftest$ac_exeext; then
 
7172
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
7173
else
 
7174
  echo "$as_me: failed program was:" >&5
 
7175
sed 's/^/| /' conftest.$ac_ext >&5
 
7176
 
 
7177
        
 
7178
fi
 
7179
 
 
7180
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7181
      conftest$ac_exeext conftest.$ac_ext
 
7182
  CXXFLAGS="$save_CXXFLAGS"
 
7183
  ac_ext=c
 
7184
ac_cpp='$CPP $CPPFLAGS'
 
7185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7188
 
 
7189
 
 
7190
fi
 
7191
 
 
7192
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
7193
 { echo "$as_me:$LINENO: result: yes" >&5
 
7194
echo "${ECHO_T}yes" >&6; }
 
7195
 :
 
7196
 LDFLAGS_AS_NEEDED="-Wl,--as-needed"
 
7197
else
 
7198
 { echo "$as_me:$LINENO: result: no" >&5
 
7199
echo "${ECHO_T}no" >&6; }
 
7200
 :
 
7201
 
 
7202
fi
 
7203
 
 
7204
  fi
 
7205
  
 
7206
  
 
7207
 
 
7208
  
 
7209
  # Check whether --enable-final was given.
 
7210
if test "${enable_final+set}" = set; then
 
7211
  enableval=$enable_final; kde_use_final=$enableval
 
7212
else
 
7213
  kde_use_final=no
 
7214
fi
 
7215
 
 
7216
 
 
7217
  if test "x$kde_use_final" = "xyes"; then
 
7218
      KDE_USE_FINAL_TRUE=""
 
7219
      KDE_USE_FINAL_FALSE="#"
 
7220
   else
 
7221
      KDE_USE_FINAL_TRUE="#"
 
7222
      KDE_USE_FINAL_FALSE=""
 
7223
  fi
 
7224
  
 
7225
  
 
7226
 
 
7227
  
 
7228
  # Check whether --enable-closure was given.
 
7229
if test "${enable_closure+set}" = set; then
 
7230
  enableval=$enable_closure; kde_use_closure=$enableval
 
7231
else
 
7232
  kde_use_closure=no
 
7233
fi
 
7234
 
 
7235
 
 
7236
  KDE_NO_UNDEFINED=""
 
7237
  if test "x$kde_use_closure" = "xyes"; then
 
7238
       KDE_USE_CLOSURE_TRUE=""
 
7239
       KDE_USE_CLOSURE_FALSE="#"
 
7240
#       CXXFLAGS="$CXXFLAGS $REPO"
 
7241
  else
 
7242
       KDE_USE_CLOSURE_TRUE="#"
 
7243
       KDE_USE_CLOSURE_FALSE=""
 
7244
       KDE_NO_UNDEFINED=""
 
7245
       case $host in 
 
7246
         *-*-linux-gnu)
 
7247
           
 
7248
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
 
7249
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6; }
 
7250
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
 
7251
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
7252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7253
else
 
7254
  
 
7255
  
 
7256
   ac_ext=cpp
 
7257
ac_cpp='$CXXCPP $CPPFLAGS'
 
7258
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7259
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7260
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7261
 
 
7262
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
7263
 
 
7264
 
 
7265
  save_CXXFLAGS="$CXXFLAGS"
 
7266
  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
 
7267
  cat >conftest.$ac_ext <<_ACEOF
 
7268
/* confdefs.h.  */
 
7269
_ACEOF
 
7270
cat confdefs.h >>conftest.$ac_ext
 
7271
cat >>conftest.$ac_ext <<_ACEOF
 
7272
/* end confdefs.h.  */
 
7273
 
 
7274
int
 
7275
main ()
 
7276
{
 
7277
 return 0; 
 
7278
  ;
 
7279
  return 0;
 
7280
}
 
7281
_ACEOF
 
7282
rm -f conftest.$ac_objext conftest$ac_exeext
 
7283
if { (ac_try="$ac_link"
 
7284
case "(($ac_try" in
 
7285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7286
  *) ac_try_echo=$ac_try;;
 
7287
esac
 
7288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7289
  (eval "$ac_link") 2>conftest.er1
 
7290
  ac_status=$?
 
7291
  grep -v '^ *+' conftest.er1 >conftest.err
 
7292
  rm -f conftest.er1
 
7293
  cat conftest.err >&5
 
7294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7295
  (exit $ac_status); } && {
 
7296
         test -z "$ac_cxx_werror_flag" ||
 
7297
         test ! -s conftest.err
 
7298
       } && test -s conftest$ac_exeext &&
 
7299
       $as_test_x conftest$ac_exeext; then
 
7300
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
7301
else
 
7302
  echo "$as_me: failed program was:" >&5
 
7303
sed 's/^/| /' conftest.$ac_ext >&5
 
7304
 
 
7305
        
 
7306
fi
 
7307
 
 
7308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7309
      conftest$ac_exeext conftest.$ac_ext
 
7310
  CXXFLAGS="$save_CXXFLAGS"
 
7311
  ac_ext=c
 
7312
ac_cpp='$CPP $CPPFLAGS'
 
7313
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7314
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7315
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7316
 
 
7317
 
 
7318
fi
 
7319
 
 
7320
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
7321
 { echo "$as_me:$LINENO: result: yes" >&5
 
7322
echo "${ECHO_T}yes" >&6; }
 
7323
 :
 
7324
 
 
7325
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
 
7326
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6; }
 
7327
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
 
7328
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
7329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7330
else
 
7331
  
 
7332
  
 
7333
   ac_ext=cpp
 
7334
ac_cpp='$CXXCPP $CPPFLAGS'
 
7335
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7336
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7337
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7338
 
 
7339
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
7340
 
 
7341
 
 
7342
  save_CXXFLAGS="$CXXFLAGS"
 
7343
  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
 
7344
  cat >conftest.$ac_ext <<_ACEOF
 
7345
/* confdefs.h.  */
 
7346
_ACEOF
 
7347
cat confdefs.h >>conftest.$ac_ext
 
7348
cat >>conftest.$ac_ext <<_ACEOF
 
7349
/* end confdefs.h.  */
 
7350
 
 
7351
int
 
7352
main ()
 
7353
{
 
7354
 return 0; 
 
7355
  ;
 
7356
  return 0;
 
7357
}
 
7358
_ACEOF
 
7359
rm -f conftest.$ac_objext conftest$ac_exeext
 
7360
if { (ac_try="$ac_link"
 
7361
case "(($ac_try" in
 
7362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7363
  *) ac_try_echo=$ac_try;;
 
7364
esac
 
7365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7366
  (eval "$ac_link") 2>conftest.er1
 
7367
  ac_status=$?
 
7368
  grep -v '^ *+' conftest.er1 >conftest.err
 
7369
  rm -f conftest.er1
 
7370
  cat conftest.err >&5
 
7371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7372
  (exit $ac_status); } && {
 
7373
         test -z "$ac_cxx_werror_flag" ||
 
7374
         test ! -s conftest.err
 
7375
       } && test -s conftest$ac_exeext &&
 
7376
       $as_test_x conftest$ac_exeext; then
 
7377
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
7378
else
 
7379
  echo "$as_me: failed program was:" >&5
 
7380
sed 's/^/| /' conftest.$ac_ext >&5
 
7381
 
 
7382
        
 
7383
fi
 
7384
 
 
7385
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7386
      conftest$ac_exeext conftest.$ac_ext
 
7387
  CXXFLAGS="$save_CXXFLAGS"
 
7388
  ac_ext=c
 
7389
ac_cpp='$CPP $CPPFLAGS'
 
7390
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7391
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7392
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7393
 
 
7394
 
 
7395
fi
 
7396
 
 
7397
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
7398
 { echo "$as_me:$LINENO: result: yes" >&5
 
7399
echo "${ECHO_T}yes" >&6; }
 
7400
 :
 
7401
 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
 
7402
else
 
7403
 { echo "$as_me:$LINENO: result: no" >&5
 
7404
echo "${ECHO_T}no" >&6; }
 
7405
 :
 
7406
 KDE_NO_UNDEFINED=""
 
7407
fi
 
7408
 
 
7409
else
 
7410
 { echo "$as_me:$LINENO: result: no" >&5
 
7411
echo "${ECHO_T}no" >&6; }
 
7412
 :
 
7413
 KDE_NO_UNDEFINED=""
 
7414
fi
 
7415
 
 
7416
           ;;
 
7417
       esac
 
7418
  fi
 
7419
  
 
7420
  
 
7421
  
 
7422
 
 
7423
  
 
7424
  # Check whether --enable-nmcheck was given.
 
7425
if test "${enable_nmcheck+set}" = set; then
 
7426
  enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
 
7427
else
 
7428
  kde_use_nmcheck=no
 
7429
fi
 
7430
 
 
7431
 
 
7432
  if test "$kde_use_nmcheck" = "yes"; then
 
7433
      KDE_USE_NMCHECK_TRUE=""
 
7434
      KDE_USE_NMCHECK_FALSE="#"
 
7435
   else
 
7436
      KDE_USE_NMCHECK_TRUE="#"
 
7437
      KDE_USE_NMCHECK_FALSE=""
 
7438
  fi
 
7439
  
 
7440
  
 
7441
 
 
7442
 
 
7443
  
 
7444
 
 
7445
# Check whether --enable-shared was given.
 
7446
if test "${enable_shared+set}" = set; then
 
7447
  enableval=$enable_shared; p=${PACKAGE-default}
 
7448
    case $enableval in
 
7449
    yes) enable_shared=yes ;;
 
7450
    no) enable_shared=no ;;
 
7451
    *)
 
7452
      enable_shared=no
 
7453
      # Look at the argument we got.  We use all the common list separators.
 
7454
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7455
      for pkg in $enableval; do
 
7456
        IFS="$lt_save_ifs"
 
7457
        if test "X$pkg" = "X$p"; then
 
7458
          enable_shared=yes
 
7459
        fi
 
7460
      done
 
7461
      IFS="$lt_save_ifs"
 
7462
      ;;
 
7463
    esac
 
7464
else
 
7465
  enable_shared=yes
 
7466
fi
 
7467
 
 
7468
 
 
7469
# Check whether --enable-static was given.
 
7470
if test "${enable_static+set}" = set; then
 
7471
  enableval=$enable_static; p=${PACKAGE-default}
 
7472
    case $enableval in
 
7473
    yes) enable_static=yes ;;
 
7474
    no) enable_static=no ;;
 
7475
    *)
 
7476
     enable_static=no
 
7477
      # Look at the argument we got.  We use all the common list separators.
 
7478
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7479
      for pkg in $enableval; do
 
7480
        IFS="$lt_save_ifs"
 
7481
        if test "X$pkg" = "X$p"; then
 
7482
          enable_static=yes
 
7483
        fi
 
7484
      done
 
7485
      IFS="$lt_save_ifs"
 
7486
      ;;
 
7487
    esac
 
7488
else
 
7489
  enable_static=no
 
7490
fi
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
 
 
7496
    kdelibsuff="$kde_libs_suffix"
 
7497
    if test -z "$kdelibsuff"; then
 
7498
       kdelibsuff=no
 
7499
    fi
 
7500
    # Check whether --enable-libsuffix was given.
 
7501
if test "${enable_libsuffix+set}" = set; then
 
7502
  enableval=$enable_libsuffix; kdelibsuff=$enableval
 
7503
fi
 
7504
 
 
7505
    # TODO: add an auto case that compiles a little C app to check
 
7506
    # where the glibc is
 
7507
    if test "$kdelibsuff" = "no"; then
 
7508
       kdelibsuff=
 
7509
    fi
 
7510
    if test -z "$kdelibsuff"; then
 
7511
        { echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
 
7512
echo "${ECHO_T}not using lib directory suffix" >&6; }
 
7513
        
 
7514
cat >>confdefs.h <<\_ACEOF
 
7515
@%:@define KDELIBSUFF ""
 
7516
_ACEOF
 
7517
 
 
7518
    else
 
7519
        if test "$libdir" = '${exec_prefix}/lib'; then
 
7520
            libdir="$libdir${kdelibsuff}"
 
7521
            libdir="$libdir"
 
7522
          fi
 
7523
        
 
7524
cat >>confdefs.h <<_ACEOF
 
7525
@%:@define KDELIBSUFF "${kdelibsuff}"
 
7526
_ACEOF
 
7527
 
 
7528
        { echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
 
7529
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6; }
 
7530
    fi
 
7531
 
 
7532
# Check whether --enable-fast-install was given.
 
7533
if test "${enable_fast_install+set}" = set; then
 
7534
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7535
    case $enableval in
 
7536
    yes) enable_fast_install=yes ;;
 
7537
    no) enable_fast_install=no ;;
 
7538
    *)
 
7539
      enable_fast_install=no
 
7540
      # Look at the argument we got.  We use all the common list separators.
 
7541
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7542
      for pkg in $enableval; do
 
7543
        IFS="$lt_save_ifs"
 
7544
        if test "X$pkg" = "X$p"; then
 
7545
          enable_fast_install=yes
 
7546
        fi
 
7547
      done
 
7548
      IFS="$lt_save_ifs"
 
7549
      ;;
 
7550
    esac
 
7551
else
 
7552
  enable_fast_install=yes
 
7553
fi
 
7554
 
 
7555
 
 
7556
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
7557
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
7558
if test "${lt_cv_path_SED+set}" = set; then
 
7559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7560
else
 
7561
  # Loop through the user's path and test for sed and gsed.
 
7562
# Then use that list of sed's as ones to test for truncation.
 
7563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7564
for as_dir in $PATH
 
7565
do
 
7566
  IFS=$as_save_IFS
 
7567
  test -z "$as_dir" && as_dir=.
 
7568
  for lt_ac_prog in sed gsed; do
 
7569
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7570
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7571
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
7572
      fi
 
7573
    done
 
7574
  done
 
7575
done
 
7576
lt_ac_max=0
 
7577
lt_ac_count=0
 
7578
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
7579
# along with /bin/sed that truncates output.
 
7580
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
7581
  test ! -f $lt_ac_sed && break
 
7582
  cat /dev/null > conftest.in
 
7583
  lt_ac_count=0
 
7584
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
7585
  # Check for GNU sed and select it if it is found.
 
7586
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
7587
    lt_cv_path_SED=$lt_ac_sed
 
7588
    break
 
7589
  fi
 
7590
  while true; do
 
7591
    cat conftest.in conftest.in >conftest.tmp
 
7592
    mv conftest.tmp conftest.in
 
7593
    cp conftest.in conftest.nl
 
7594
    echo >>conftest.nl
 
7595
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
7596
    cmp -s conftest.out conftest.nl || break
 
7597
    # 10000 chars as input seems more than enough
 
7598
    test $lt_ac_count -gt 10 && break
 
7599
    lt_ac_count=`expr $lt_ac_count + 1`
 
7600
    if test $lt_ac_count -gt $lt_ac_max; then
 
7601
      lt_ac_max=$lt_ac_count
 
7602
      lt_cv_path_SED=$lt_ac_sed
 
7603
    fi
 
7604
  done
 
7605
done
 
7606
 
 
7607
fi
 
7608
 
 
7609
SED=$lt_cv_path_SED
 
7610
{ echo "$as_me:$LINENO: result: $SED" >&5
 
7611
echo "${ECHO_T}$SED" >&6; }
 
7612
 
 
7613
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
7614
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
7615
if test "${ac_cv_path_GREP+set}" = set; then
 
7616
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7617
else
 
7618
  # Extract the first word of "grep ggrep" to use in msg output
 
7619
if test -z "$GREP"; then
 
7620
set dummy grep ggrep; ac_prog_name=$2
 
7621
if test "${ac_cv_path_GREP+set}" = set; then
 
7622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7623
else
 
7624
  ac_path_GREP_found=false
 
7625
# Loop through the user's path and test for each of PROGNAME-LIST
 
7626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7627
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
7628
do
 
7629
  IFS=$as_save_IFS
 
7630
  test -z "$as_dir" && as_dir=.
 
7631
  for ac_prog in grep ggrep; do
 
7632
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7633
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
7634
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
7635
    # Check for GNU ac_path_GREP and select it if it is found.
 
7636
  # Check for GNU $ac_path_GREP
 
7637
case `"$ac_path_GREP" --version 2>&1` in
 
7638
*GNU*)
 
7639
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
7640
*)
 
7641
  ac_count=0
 
7642
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
7643
  while :
 
7644
  do
 
7645
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
7646
    mv "conftest.tmp" "conftest.in"
 
7647
    cp "conftest.in" "conftest.nl"
 
7648
    echo 'GREP' >> "conftest.nl"
 
7649
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
7650
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
7651
    ac_count=`expr $ac_count + 1`
 
7652
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
7653
      # Best one so far, save it but keep looking for a better one
 
7654
      ac_cv_path_GREP="$ac_path_GREP"
 
7655
      ac_path_GREP_max=$ac_count
 
7656
    fi
 
7657
    # 10*(2^10) chars as input seems more than enough
 
7658
    test $ac_count -gt 10 && break
 
7659
  done
 
7660
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
7661
esac
 
7662
 
 
7663
 
 
7664
    $ac_path_GREP_found && break 3
 
7665
  done
 
7666
done
 
7667
 
 
7668
done
 
7669
IFS=$as_save_IFS
 
7670
 
 
7671
 
 
7672
fi
 
7673
 
 
7674
GREP="$ac_cv_path_GREP"
 
7675
if test -z "$GREP"; then
 
7676
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
7677
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
7678
   { (exit 1); exit 1; }; }
 
7679
fi
 
7680
 
 
7681
else
 
7682
  ac_cv_path_GREP=$GREP
 
7683
fi
 
7684
 
 
7685
 
 
7686
fi
 
7687
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
7688
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
7689
 GREP="$ac_cv_path_GREP"
 
7690
 
 
7691
 
 
7692
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
7693
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
7694
if test "${ac_cv_path_EGREP+set}" = set; then
 
7695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7696
else
 
7697
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
7698
   then ac_cv_path_EGREP="$GREP -E"
 
7699
   else
 
7700
     # Extract the first word of "egrep" to use in msg output
 
7701
if test -z "$EGREP"; then
 
7702
set dummy egrep; ac_prog_name=$2
 
7703
if test "${ac_cv_path_EGREP+set}" = set; then
 
7704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7705
else
 
7706
  ac_path_EGREP_found=false
 
7707
# Loop through the user's path and test for each of PROGNAME-LIST
 
7708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7709
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
7710
do
 
7711
  IFS=$as_save_IFS
 
7712
  test -z "$as_dir" && as_dir=.
 
7713
  for ac_prog in egrep; do
 
7714
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7715
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
7716
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
7717
    # Check for GNU ac_path_EGREP and select it if it is found.
 
7718
  # Check for GNU $ac_path_EGREP
 
7719
case `"$ac_path_EGREP" --version 2>&1` in
 
7720
*GNU*)
 
7721
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
7722
*)
 
7723
  ac_count=0
 
7724
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
7725
  while :
 
7726
  do
 
7727
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
7728
    mv "conftest.tmp" "conftest.in"
 
7729
    cp "conftest.in" "conftest.nl"
 
7730
    echo 'EGREP' >> "conftest.nl"
 
7731
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
7732
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
7733
    ac_count=`expr $ac_count + 1`
 
7734
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
7735
      # Best one so far, save it but keep looking for a better one
 
7736
      ac_cv_path_EGREP="$ac_path_EGREP"
 
7737
      ac_path_EGREP_max=$ac_count
 
7738
    fi
 
7739
    # 10*(2^10) chars as input seems more than enough
 
7740
    test $ac_count -gt 10 && break
 
7741
  done
 
7742
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
7743
esac
 
7744
 
 
7745
 
 
7746
    $ac_path_EGREP_found && break 3
 
7747
  done
 
7748
done
 
7749
 
 
7750
done
 
7751
IFS=$as_save_IFS
 
7752
 
 
7753
 
 
7754
fi
 
7755
 
 
7756
EGREP="$ac_cv_path_EGREP"
 
7757
if test -z "$EGREP"; then
 
7758
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
7759
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
7760
   { (exit 1); exit 1; }; }
 
7761
fi
 
7762
 
 
7763
else
 
7764
  ac_cv_path_EGREP=$EGREP
 
7765
fi
 
7766
 
 
7767
 
 
7768
   fi
 
7769
fi
 
7770
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
7771
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
7772
 EGREP="$ac_cv_path_EGREP"
 
7773
 
 
7774
 
 
7775
 
 
7776
# Check whether --with-gnu-ld was given.
 
7777
if test "${with_gnu_ld+set}" = set; then
 
7778
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
7779
else
 
7780
  with_gnu_ld=no
 
7781
fi
 
7782
 
 
7783
ac_prog=ld
 
7784
if test "$GCC" = yes; then
 
7785
  # Check if gcc -print-prog-name=ld gives a path.
 
7786
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
7787
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
7788
  case $host in
 
7789
  *-*-mingw*)
 
7790
    # gcc leaves a trailing carriage return which upsets mingw
 
7791
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
7792
  *)
 
7793
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
7794
  esac
 
7795
  case $ac_prog in
 
7796
    # Accept absolute paths.
 
7797
    [\\/]* | ?:[\\/]*)
 
7798
      re_direlt='/[^/][^/]*/\.\./'
 
7799
      # Canonicalize the pathname of ld
 
7800
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
7801
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
7802
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
7803
      done
 
7804
      test -z "$LD" && LD="$ac_prog"
 
7805
      ;;
 
7806
  "")
 
7807
    # If it fails, then pretend we aren't using GCC.
 
7808
    ac_prog=ld
 
7809
    ;;
 
7810
  *)
 
7811
    # If it is relative, then search for the first ld in PATH.
 
7812
    with_gnu_ld=unknown
 
7813
    ;;
 
7814
  esac
 
7815
elif test "$with_gnu_ld" = yes; then
 
7816
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
7817
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
7818
else
 
7819
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
7820
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
7821
fi
 
7822
if test "${lt_cv_path_LD+set}" = set; then
 
7823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7824
else
 
7825
  if test -z "$LD"; then
 
7826
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7827
  for ac_dir in $PATH; do
 
7828
    IFS="$lt_save_ifs"
 
7829
    test -z "$ac_dir" && ac_dir=.
 
7830
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
7831
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
7832
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
7833
      # but apparently some GNU ld's only accept -v.
 
7834
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
7835
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
7836
      *GNU* | *'with BFD'*)
 
7837
        test "$with_gnu_ld" != no && break
 
7838
        ;;
 
7839
      *)
 
7840
        test "$with_gnu_ld" != yes && break
 
7841
        ;;
 
7842
      esac
 
7843
    fi
 
7844
  done
 
7845
  IFS="$lt_save_ifs"
 
7846
else
 
7847
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
7848
fi
 
7849
fi
 
7850
 
 
7851
LD="$lt_cv_path_LD"
 
7852
if test -n "$LD"; then
 
7853
  { echo "$as_me:$LINENO: result: $LD" >&5
 
7854
echo "${ECHO_T}$LD" >&6; }
 
7855
else
 
7856
  { echo "$as_me:$LINENO: result: no" >&5
 
7857
echo "${ECHO_T}no" >&6; }
 
7858
fi
 
7859
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
7860
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
7861
   { (exit 1); exit 1; }; }
 
7862
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
7863
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
7864
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
7865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7866
else
 
7867
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
7868
case `$LD -v 2>&1 </dev/null` in
 
7869
*GNU* | *'with BFD'*)
 
7870
  lt_cv_prog_gnu_ld=yes
 
7871
  ;;
 
7872
*)
 
7873
  lt_cv_prog_gnu_ld=no
 
7874
  ;;
 
7875
esac
 
7876
fi
 
7877
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
7878
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
7879
with_gnu_ld=$lt_cv_prog_gnu_ld
 
7880
 
 
7881
 
 
7882
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
7883
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
7884
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
7885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7886
else
 
7887
  lt_cv_ld_reload_flag='-r'
 
7888
fi
 
7889
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
7890
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
7891
reload_flag=$lt_cv_ld_reload_flag
 
7892
case $reload_flag in
 
7893
"" | " "*) ;;
 
7894
*) reload_flag=" $reload_flag" ;;
 
7895
esac
 
7896
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7897
 
 
7898
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
7899
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
7900
if test "${lt_cv_path_NM+set}" = set; then
 
7901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7902
else
 
7903
  if test -n "$NM"; then
 
7904
  # Let the user override the test.
 
7905
  lt_cv_path_NM="$NM"
 
7906
else
 
7907
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7908
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
7909
    IFS="$lt_save_ifs"
 
7910
    test -z "$ac_dir" && ac_dir=.
 
7911
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
7912
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
7913
      # Check to see if the nm accepts a BSD-compat flag.
 
7914
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
7915
      #   nm: unknown option "B" ignored
 
7916
      # Tru64's nm complains that /dev/null is an invalid object file
 
7917
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
7918
      */dev/null* | *'Invalid file or object type'*)
 
7919
        lt_cv_path_NM="$tmp_nm -B"
 
7920
        break
 
7921
        ;;
 
7922
      *)
 
7923
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
7924
        */dev/null*)
 
7925
          lt_cv_path_NM="$tmp_nm -p"
 
7926
          break
 
7927
          ;;
 
7928
        *)
 
7929
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
7930
          continue # so that we can try to find one that supports BSD flags
 
7931
          ;;
 
7932
        esac
 
7933
      esac
 
7934
    fi
 
7935
  done
 
7936
  IFS="$lt_save_ifs"
 
7937
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
7938
fi
 
7939
fi
 
7940
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
7941
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
7942
NM="$lt_cv_path_NM"
 
7943
 
 
7944
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
7945
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
7946
LN_S=$as_ln_s
 
7947
if test "$LN_S" = "ln -s"; then
 
7948
  { echo "$as_me:$LINENO: result: yes" >&5
 
7949
echo "${ECHO_T}yes" >&6; }
 
7950
else
 
7951
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
7952
echo "${ECHO_T}no, using $LN_S" >&6; }
 
7953
fi
 
7954
 
 
7955
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
7956
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
7957
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
7958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7959
else
 
7960
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
7961
lt_cv_file_magic_test_file=
 
7962
lt_cv_deplibs_check_method='unknown'
 
7963
# Need to set the preceding variable on all platforms that support
 
7964
# interlibrary dependencies.
 
7965
# 'none' -- dependencies not supported.
 
7966
# `unknown' -- same as none, but documents that we really don't know.
 
7967
# 'pass_all' -- all dependencies passed with no checks.
 
7968
# 'test_compile' -- check by making test program.
 
7969
# 'file_magic [[regex]]' -- check by looking for files in library path
 
7970
# which responds to the $file_magic_cmd with a given extended regex.
 
7971
# If you have `file' or equivalent on your system and you're not sure
 
7972
# whether `pass_all' will *always* work, you probably want this one.
 
7973
 
 
7974
case $host_os in
 
7975
aix4* | aix5*)
 
7976
  lt_cv_deplibs_check_method=pass_all
 
7977
  ;;
 
7978
 
 
7979
beos*)
 
7980
  lt_cv_deplibs_check_method=pass_all
 
7981
  ;;
 
7982
 
 
7983
bsdi4*)
 
7984
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
7985
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
7986
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7987
  ;;
 
7988
 
 
7989
cygwin*)
 
7990
  lt_cv_deplibs_check_method=pass_all
 
7991
  ;;
 
7992
  
 
7993
mingw* | pw32*)
 
7994
  # win32_libid is a shell function defined in ltmain.sh
 
7995
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
7996
  lt_cv_file_magic_cmd='win32_libid'
 
7997
  ;;
 
7998
 
 
7999
darwin* | rhapsody*)
 
8000
  # this will be overwritten by pass_all, but leave it in just in case
 
8001
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
8002
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
8003
  case "$host_os" in
 
8004
  rhapsody* | darwin1.[012])
 
8005
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
 
8006
    ;;
 
8007
  *) # Darwin 1.3 on
 
8008
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
8009
    ;;
 
8010
  esac
 
8011
  lt_cv_deplibs_check_method=pass_all
 
8012
  ;;
 
8013
 
 
8014
freebsd*)
 
8015
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
8016
    case $host_cpu in
 
8017
    i*86 )
 
8018
      # Not sure whether the presence of OpenBSD here was a mistake.
 
8019
      # Let's accept both of them until this is cleared up.
 
8020
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
8021
      lt_cv_file_magic_cmd=/usr/bin/file
 
8022
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
8023
      ;;
 
8024
    esac
 
8025
  else
 
8026
    lt_cv_deplibs_check_method=pass_all
 
8027
  fi
 
8028
  ;;
 
8029
 
 
8030
gnu*)
 
8031
  lt_cv_deplibs_check_method=pass_all
 
8032
  ;;
 
8033
 
 
8034
hpux10.20* | hpux11*)
 
8035
  lt_cv_file_magic_cmd=/usr/bin/file
 
8036
  case "$host_cpu" in
 
8037
  ia64*)
 
8038
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
8039
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
8040
    ;;
 
8041
  hppa*64*)
 
8042
    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]'
 
8043
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
8044
    ;;
 
8045
  *)
 
8046
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
8047
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
8048
    ;;
 
8049
  esac
 
8050
  ;;
 
8051
 
 
8052
irix5* | irix6* | nonstopux*)
 
8053
  case $host_os in
 
8054
  irix5* | nonstopux*)
 
8055
    # this will be overridden with pass_all, but let us keep it just in case
 
8056
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
8057
    ;;
 
8058
  *)
 
8059
    case $LD in
 
8060
    *-32|*"-32 ") libmagic=32-bit;;
 
8061
    *-n32|*"-n32 ") libmagic=N32;;
 
8062
    *-64|*"-64 ") libmagic=64-bit;;
 
8063
    *) libmagic=never-match;;
 
8064
    esac
 
8065
    # this will be overridden with pass_all, but let us keep it just in case
 
8066
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
8067
    ;;
 
8068
  esac
 
8069
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
8070
  lt_cv_deplibs_check_method=pass_all
 
8071
  ;;
 
8072
 
 
8073
# This must be Linux ELF.
 
8074
linux*)
 
8075
  case $host_cpu in
 
8076
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
 
8077
    lt_cv_deplibs_check_method=pass_all ;;
 
8078
  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
 
8079
  arm* )
 
8080
    lt_cv_deplibs_check_method=pass_all ;;
 
8081
  *)
 
8082
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
8083
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
8084
  esac
 
8085
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
8086
  ;;
 
8087
 
 
8088
netbsd*)
 
8089
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
8090
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
8091
  else
 
8092
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
8093
  fi
 
8094
  ;;
 
8095
 
 
8096
newos6*)
 
8097
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
8098
  lt_cv_file_magic_cmd=/usr/bin/file
 
8099
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
8100
  ;;
 
8101
 
 
8102
nto-qnx*)
 
8103
  lt_cv_deplibs_check_method=unknown
 
8104
  ;;
 
8105
 
 
8106
openbsd*)
 
8107
  lt_cv_file_magic_cmd=/usr/bin/file
 
8108
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
8109
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8110
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
8111
  else
 
8112
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
8113
  fi
 
8114
  ;;
 
8115
 
 
8116
osf3* | osf4* | osf5*)
 
8117
  # this will be overridden with pass_all, but let us keep it just in case
 
8118
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
8119
  lt_cv_file_magic_test_file=/shlib/libc.so
 
8120
  lt_cv_deplibs_check_method=pass_all
 
8121
  ;;
 
8122
 
 
8123
sco3.2v5*)
 
8124
  lt_cv_deplibs_check_method=pass_all
 
8125
  ;;
 
8126
 
 
8127
solaris*)
 
8128
  lt_cv_deplibs_check_method=pass_all
 
8129
  lt_cv_file_magic_test_file=/lib/libc.so
 
8130
  ;;
 
8131
 
 
8132
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8133
  case $host_vendor in
 
8134
  motorola)
 
8135
    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]'
 
8136
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
8137
    ;;
 
8138
  ncr)
 
8139
    lt_cv_deplibs_check_method=pass_all
 
8140
    ;;
 
8141
  sequent)
 
8142
    lt_cv_file_magic_cmd='/bin/file'
 
8143
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
8144
    ;;
 
8145
  sni)
 
8146
    lt_cv_file_magic_cmd='/bin/file'
 
8147
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
8148
    lt_cv_file_magic_test_file=/lib/libc.so
 
8149
    ;;
 
8150
  siemens)
 
8151
    lt_cv_deplibs_check_method=pass_all
 
8152
    ;;
 
8153
  esac
 
8154
  ;;
 
8155
 
 
8156
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
8157
  lt_cv_deplibs_check_method=pass_all
 
8158
  ;;
 
8159
esac
 
8160
 
 
8161
fi
 
8162
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
8163
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
8164
file_magic_cmd=$lt_cv_file_magic_cmd
 
8165
deplibs_check_method=$lt_cv_deplibs_check_method
 
8166
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
8167
 
 
8168
 
 
8169
# If no C compiler was specified, use CC.
 
8170
LTCC=${LTCC-"$CC"}
 
8171
 
 
8172
# Allow CC to be a program name with arguments.
 
8173
compiler=$CC
 
8174
 
 
8175
# Check whether --enable-libtool-lock was given.
 
8176
if test "${enable_libtool_lock+set}" = set; then
 
8177
  enableval=$enable_libtool_lock; 
 
8178
fi
 
8179
 
 
8180
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8181
 
 
8182
# Some flags need to be propagated to the compiler or linker for good
 
8183
# libtool support.
 
8184
case $host in
 
8185
ia64-*-hpux*)
 
8186
  # Find out which ABI we are using.
 
8187
  echo 'int i;' > conftest.$ac_ext
 
8188
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8189
  (eval $ac_compile) 2>&5
 
8190
  ac_status=$?
 
8191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8192
  (exit $ac_status); }; then
 
8193
    case `/usr/bin/file conftest.$ac_objext` in
 
8194
    *ELF-32*)
 
8195
      HPUX_IA64_MODE="32"
 
8196
      ;;
 
8197
    *ELF-64*)
 
8198
      HPUX_IA64_MODE="64"
 
8199
      ;;
 
8200
    esac
 
8201
  fi
 
8202
  rm -rf conftest*
 
8203
  ;;
 
8204
*-*-irix6*)
 
8205
  # Find out which ABI we are using.
 
8206
  echo '#line __oline__ "configure"' > conftest.$ac_ext
 
8207
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8208
  (eval $ac_compile) 2>&5
 
8209
  ac_status=$?
 
8210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8211
  (exit $ac_status); }; then
 
8212
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
8213
    case `/usr/bin/file conftest.$ac_objext` in
 
8214
    *32-bit*)
 
8215
      LD="${LD-ld} -melf32bsmip"
 
8216
      ;;
 
8217
    *N32*)
 
8218
      LD="${LD-ld} -melf32bmipn32"
 
8219
      ;;
 
8220
    *64-bit*)
 
8221
      LD="${LD-ld} -melf64bmip"
 
8222
      ;;
 
8223
    esac
 
8224
   else
 
8225
    case `/usr/bin/file conftest.$ac_objext` in
 
8226
    *32-bit*)
 
8227
      LD="${LD-ld} -32"
 
8228
      ;;
 
8229
    *N32*)
 
8230
      LD="${LD-ld} -n32"
 
8231
      ;;
 
8232
    *64-bit*)
 
8233
      LD="${LD-ld} -64"
 
8234
      ;;
 
8235
    esac
 
8236
   fi
 
8237
  fi
 
8238
  rm -rf conftest*
 
8239
  ;;
 
8240
 
 
8241
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
8242
  # Find out which ABI we are using.
 
8243
  echo 'int i;' > conftest.$ac_ext
 
8244
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8245
  (eval $ac_compile) 2>&5
 
8246
  ac_status=$?
 
8247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8248
  (exit $ac_status); }; then
 
8249
    case "`/usr/bin/file conftest.o`" in
 
8250
    *32-bit*)
 
8251
      LINUX_64_MODE="32"
 
8252
      case $host in
 
8253
        x86_64-*linux*)
 
8254
          LD="${LD-ld} -m elf_i386"
 
8255
          ;;
 
8256
        ppc64-*linux*)
 
8257
          LD="${LD-ld} -m elf32ppclinux"
 
8258
          ;;
 
8259
        s390x-*linux*)
 
8260
          LD="${LD-ld} -m elf_s390"
 
8261
          ;;
 
8262
        sparc64-*linux*)
 
8263
          LD="${LD-ld} -m elf32_sparc"
 
8264
          ;;
 
8265
      esac
 
8266
      ;;
 
8267
    *64-bit*)
 
8268
      LINUX_64_MODE="64"
 
8269
      case $host in
 
8270
        x86_64-*linux*)
 
8271
          LD="${LD-ld} -m elf_x86_64"
 
8272
          ;;
 
8273
        ppc*-*linux*|powerpc*-*linux*)
 
8274
          LD="${LD-ld} -m elf64ppc"
 
8275
          ;;
 
8276
        s390*-*linux*)
 
8277
          LD="${LD-ld} -m elf64_s390"
 
8278
          ;;
 
8279
        sparc*-*linux*)
 
8280
          LD="${LD-ld} -m elf64_sparc"
 
8281
          ;;
 
8282
      esac
 
8283
      ;;
 
8284
    esac
 
8285
  fi
 
8286
  rm -rf conftest*
 
8287
  ;;
 
8288
 
 
8289
*-*-sco3.2v5*)
 
8290
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
8291
  SAVE_CFLAGS="$CFLAGS"
 
8292
  CFLAGS="$CFLAGS -belf"
 
8293
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
8294
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
8295
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
8296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8297
else
 
8298
  ac_ext=c
 
8299
ac_cpp='$CPP $CPPFLAGS'
 
8300
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8303
 
 
8304
     cat >conftest.$ac_ext <<_ACEOF
 
8305
/* confdefs.h.  */
 
8306
_ACEOF
 
8307
cat confdefs.h >>conftest.$ac_ext
 
8308
cat >>conftest.$ac_ext <<_ACEOF
 
8309
/* end confdefs.h.  */
 
8310
 
 
8311
int
 
8312
main ()
 
8313
{
 
8314
 
 
8315
  ;
 
8316
  return 0;
 
8317
}
 
8318
_ACEOF
 
8319
rm -f conftest.$ac_objext conftest$ac_exeext
 
8320
if { (ac_try="$ac_link"
 
8321
case "(($ac_try" in
 
8322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8323
  *) ac_try_echo=$ac_try;;
 
8324
esac
 
8325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8326
  (eval "$ac_link") 2>conftest.er1
 
8327
  ac_status=$?
 
8328
  grep -v '^ *+' conftest.er1 >conftest.err
 
8329
  rm -f conftest.er1
 
8330
  cat conftest.err >&5
 
8331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8332
  (exit $ac_status); } && {
 
8333
         test -z "$ac_c_werror_flag" ||
 
8334
         test ! -s conftest.err
 
8335
       } && test -s conftest$ac_exeext &&
 
8336
       $as_test_x conftest$ac_exeext; then
 
8337
  lt_cv_cc_needs_belf=yes
 
8338
else
 
8339
  echo "$as_me: failed program was:" >&5
 
8340
sed 's/^/| /' conftest.$ac_ext >&5
 
8341
 
 
8342
        lt_cv_cc_needs_belf=no
 
8343
fi
 
8344
 
 
8345
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8346
      conftest$ac_exeext conftest.$ac_ext
 
8347
     ac_ext=c
 
8348
ac_cpp='$CPP $CPPFLAGS'
 
8349
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8350
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8351
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8352
 
 
8353
fi
 
8354
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
8355
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
8356
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
8357
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
8358
    CFLAGS="$SAVE_CFLAGS"
 
8359
  fi
 
8360
  ;;
 
8361
 
 
8362
esac
 
8363
 
 
8364
need_locks="$enable_libtool_lock"
 
8365
 
 
8366
 
 
8367
 
 
8368
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
8369
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
8370
if test "${ac_cv_header_stdc+set}" = set; then
 
8371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8372
else
 
8373
  cat >conftest.$ac_ext <<_ACEOF
 
8374
/* confdefs.h.  */
 
8375
_ACEOF
 
8376
cat confdefs.h >>conftest.$ac_ext
 
8377
cat >>conftest.$ac_ext <<_ACEOF
 
8378
/* end confdefs.h.  */
 
8379
#include <stdlib.h>
 
8380
#include <stdarg.h>
 
8381
#include <string.h>
 
8382
#include <float.h>
 
8383
 
 
8384
int
 
8385
main ()
 
8386
{
 
8387
 
 
8388
  ;
 
8389
  return 0;
 
8390
}
 
8391
_ACEOF
 
8392
rm -f conftest.$ac_objext
 
8393
if { (ac_try="$ac_compile"
 
8394
case "(($ac_try" in
 
8395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8396
  *) ac_try_echo=$ac_try;;
 
8397
esac
 
8398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8399
  (eval "$ac_compile") 2>conftest.er1
 
8400
  ac_status=$?
 
8401
  grep -v '^ *+' conftest.er1 >conftest.err
 
8402
  rm -f conftest.er1
 
8403
  cat conftest.err >&5
 
8404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8405
  (exit $ac_status); } && {
 
8406
         test -z "$ac_c_werror_flag" ||
 
8407
         test ! -s conftest.err
 
8408
       } && test -s conftest.$ac_objext; then
 
8409
  ac_cv_header_stdc=yes
 
8410
else
 
8411
  echo "$as_me: failed program was:" >&5
 
8412
sed 's/^/| /' conftest.$ac_ext >&5
 
8413
 
 
8414
        ac_cv_header_stdc=no
 
8415
fi
 
8416
 
 
8417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8418
 
 
8419
if test $ac_cv_header_stdc = yes; then
 
8420
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8421
  cat >conftest.$ac_ext <<_ACEOF
 
8422
/* confdefs.h.  */
 
8423
_ACEOF
 
8424
cat confdefs.h >>conftest.$ac_ext
 
8425
cat >>conftest.$ac_ext <<_ACEOF
 
8426
/* end confdefs.h.  */
 
8427
#include <string.h>
 
8428
 
 
8429
_ACEOF
 
8430
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8431
  $EGREP "memchr" >/dev/null 2>&1; then
 
8432
  :
 
8433
else
 
8434
  ac_cv_header_stdc=no
 
8435
fi
 
8436
rm -f conftest*
 
8437
 
 
8438
fi
 
8439
 
 
8440
if test $ac_cv_header_stdc = yes; then
 
8441
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8442
  cat >conftest.$ac_ext <<_ACEOF
 
8443
/* confdefs.h.  */
 
8444
_ACEOF
 
8445
cat confdefs.h >>conftest.$ac_ext
 
8446
cat >>conftest.$ac_ext <<_ACEOF
 
8447
/* end confdefs.h.  */
 
8448
#include <stdlib.h>
 
8449
 
 
8450
_ACEOF
 
8451
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8452
  $EGREP "free" >/dev/null 2>&1; then
 
8453
  :
 
8454
else
 
8455
  ac_cv_header_stdc=no
 
8456
fi
 
8457
rm -f conftest*
 
8458
 
 
8459
fi
 
8460
 
 
8461
if test $ac_cv_header_stdc = yes; then
 
8462
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8463
  if test "$cross_compiling" = yes; then
 
8464
  :
 
8465
else
 
8466
  cat >conftest.$ac_ext <<_ACEOF
 
8467
/* confdefs.h.  */
 
8468
_ACEOF
 
8469
cat confdefs.h >>conftest.$ac_ext
 
8470
cat >>conftest.$ac_ext <<_ACEOF
 
8471
/* end confdefs.h.  */
 
8472
#include <ctype.h>
 
8473
#include <stdlib.h>
 
8474
#if ((' ' & 0x0FF) == 0x020)
 
8475
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8476
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8477
#else
 
8478
# define ISLOWER(c) \
 
8479
                   (('a' <= (c) && (c) <= 'i') \
 
8480
                     || ('j' <= (c) && (c) <= 'r') \
 
8481
                     || ('s' <= (c) && (c) <= 'z'))
 
8482
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8483
#endif
 
8484
 
 
8485
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8486
int
 
8487
main ()
 
8488
{
 
8489
  int i;
 
8490
  for (i = 0; i < 256; i++)
 
8491
    if (XOR (islower (i), ISLOWER (i))
 
8492
        || toupper (i) != TOUPPER (i))
 
8493
      return 2;
 
8494
  return 0;
 
8495
}
 
8496
_ACEOF
 
8497
rm -f conftest$ac_exeext
 
8498
if { (ac_try="$ac_link"
 
8499
case "(($ac_try" in
 
8500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8501
  *) ac_try_echo=$ac_try;;
 
8502
esac
 
8503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8504
  (eval "$ac_link") 2>&5
 
8505
  ac_status=$?
 
8506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8507
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8508
  { (case "(($ac_try" in
 
8509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8510
  *) ac_try_echo=$ac_try;;
 
8511
esac
 
8512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8513
  (eval "$ac_try") 2>&5
 
8514
  ac_status=$?
 
8515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8516
  (exit $ac_status); }; }; then
 
8517
  :
 
8518
else
 
8519
  echo "$as_me: program exited with status $ac_status" >&5
 
8520
echo "$as_me: failed program was:" >&5
 
8521
sed 's/^/| /' conftest.$ac_ext >&5
 
8522
 
 
8523
( exit $ac_status )
 
8524
ac_cv_header_stdc=no
 
8525
fi
 
8526
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8527
fi
 
8528
 
 
8529
 
 
8530
fi
 
8531
fi
 
8532
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
8533
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
8534
if test $ac_cv_header_stdc = yes; then
 
8535
  
 
8536
cat >>confdefs.h <<\_ACEOF
 
8537
@%:@define STDC_HEADERS 1
 
8538
_ACEOF
 
8539
 
 
8540
fi
 
8541
 
 
8542
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8543
 
 
8544
 
 
8545
 
 
8546
 
 
8547
 
 
8548
 
 
8549
 
 
8550
 
 
8551
 
 
8552
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8553
                  inttypes.h stdint.h unistd.h
 
8554
do
 
8555
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8556
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8557
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8558
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8560
else
 
8561
  cat >conftest.$ac_ext <<_ACEOF
 
8562
/* confdefs.h.  */
 
8563
_ACEOF
 
8564
cat confdefs.h >>conftest.$ac_ext
 
8565
cat >>conftest.$ac_ext <<_ACEOF
 
8566
/* end confdefs.h.  */
 
8567
$ac_includes_default
 
8568
 
 
8569
@%:@include <$ac_header>
 
8570
_ACEOF
 
8571
rm -f conftest.$ac_objext
 
8572
if { (ac_try="$ac_compile"
 
8573
case "(($ac_try" in
 
8574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8575
  *) ac_try_echo=$ac_try;;
 
8576
esac
 
8577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8578
  (eval "$ac_compile") 2>conftest.er1
 
8579
  ac_status=$?
 
8580
  grep -v '^ *+' conftest.er1 >conftest.err
 
8581
  rm -f conftest.er1
 
8582
  cat conftest.err >&5
 
8583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8584
  (exit $ac_status); } && {
 
8585
         test -z "$ac_c_werror_flag" ||
 
8586
         test ! -s conftest.err
 
8587
       } && test -s conftest.$ac_objext; then
 
8588
  eval "$as_ac_Header=yes"
 
8589
else
 
8590
  echo "$as_me: failed program was:" >&5
 
8591
sed 's/^/| /' conftest.$ac_ext >&5
 
8592
 
 
8593
        eval "$as_ac_Header=no"
 
8594
fi
 
8595
 
 
8596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8597
fi
 
8598
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8599
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8600
echo "${ECHO_T}$ac_res" >&6; }
 
8601
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8602
  cat >>confdefs.h <<_ACEOF
 
8603
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8604
_ACEOF
 
8605
 
 
8606
fi
 
8607
 
 
8608
done
 
8609
 
 
8610
 
 
8611
 
 
8612
for ac_header in dlfcn.h
 
8613
do
 
8614
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8615
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8616
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8617
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8618
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8620
fi
 
8621
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8622
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8623
echo "${ECHO_T}$ac_res" >&6; }
 
8624
else
 
8625
  # Is the header compilable?
 
8626
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8627
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
8628
cat >conftest.$ac_ext <<_ACEOF
 
8629
/* confdefs.h.  */
 
8630
_ACEOF
 
8631
cat confdefs.h >>conftest.$ac_ext
 
8632
cat >>conftest.$ac_ext <<_ACEOF
 
8633
/* end confdefs.h.  */
 
8634
$ac_includes_default
 
8635
@%:@include <$ac_header>
 
8636
_ACEOF
 
8637
rm -f conftest.$ac_objext
 
8638
if { (ac_try="$ac_compile"
 
8639
case "(($ac_try" in
 
8640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8641
  *) ac_try_echo=$ac_try;;
 
8642
esac
 
8643
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8644
  (eval "$ac_compile") 2>conftest.er1
 
8645
  ac_status=$?
 
8646
  grep -v '^ *+' conftest.er1 >conftest.err
 
8647
  rm -f conftest.er1
 
8648
  cat conftest.err >&5
 
8649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8650
  (exit $ac_status); } && {
 
8651
         test -z "$ac_c_werror_flag" ||
 
8652
         test ! -s conftest.err
 
8653
       } && test -s conftest.$ac_objext; then
 
8654
  ac_header_compiler=yes
 
8655
else
 
8656
  echo "$as_me: failed program was:" >&5
 
8657
sed 's/^/| /' conftest.$ac_ext >&5
 
8658
 
 
8659
        ac_header_compiler=no
 
8660
fi
 
8661
 
 
8662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8663
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8664
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
8665
 
 
8666
# Is the header present?
 
8667
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8668
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
8669
cat >conftest.$ac_ext <<_ACEOF
 
8670
/* confdefs.h.  */
 
8671
_ACEOF
 
8672
cat confdefs.h >>conftest.$ac_ext
 
8673
cat >>conftest.$ac_ext <<_ACEOF
 
8674
/* end confdefs.h.  */
 
8675
@%:@include <$ac_header>
 
8676
_ACEOF
 
8677
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8678
case "(($ac_try" in
 
8679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8680
  *) ac_try_echo=$ac_try;;
 
8681
esac
 
8682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8683
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8684
  ac_status=$?
 
8685
  grep -v '^ *+' conftest.er1 >conftest.err
 
8686
  rm -f conftest.er1
 
8687
  cat conftest.err >&5
 
8688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8689
  (exit $ac_status); } >/dev/null && {
 
8690
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
8691
         test ! -s conftest.err
 
8692
       }; then
 
8693
  ac_header_preproc=yes
 
8694
else
 
8695
  echo "$as_me: failed program was:" >&5
 
8696
sed 's/^/| /' conftest.$ac_ext >&5
 
8697
 
 
8698
  ac_header_preproc=no
 
8699
fi
 
8700
 
 
8701
rm -f conftest.err conftest.$ac_ext
 
8702
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8703
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
8704
 
 
8705
# So?  What about this header?
 
8706
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8707
  yes:no: )
 
8708
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8709
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8710
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8711
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8712
    ac_header_preproc=yes
 
8713
    ;;
 
8714
  no:yes:* )
 
8715
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8716
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8717
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8718
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8719
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8720
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8721
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8722
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8723
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8724
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8725
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8726
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8727
    
 
8728
    ;;
 
8729
esac
 
8730
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8731
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8732
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8734
else
 
8735
  eval "$as_ac_Header=\$ac_header_preproc"
 
8736
fi
 
8737
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8738
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8739
echo "${ECHO_T}$ac_res" >&6; }
 
8740
 
 
8741
fi
 
8742
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8743
  cat >>confdefs.h <<_ACEOF
 
8744
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8745
_ACEOF
 
8746
 
 
8747
fi
 
8748
 
 
8749
done
 
8750
 
 
8751
ac_ext=f
 
8752
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
8753
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8754
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
8755
if test -n "$ac_tool_prefix"; then
 
8756
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
8757
  do
 
8758
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
8759
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
8760
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8762
if test "${ac_cv_prog_F77+set}" = set; then
 
8763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8764
else
 
8765
  if test -n "$F77"; then
 
8766
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
8767
else
 
8768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8769
for as_dir in $PATH
 
8770
do
 
8771
  IFS=$as_save_IFS
 
8772
  test -z "$as_dir" && as_dir=.
 
8773
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8774
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8775
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
8776
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8777
    break 2
 
8778
  fi
 
8779
done
 
8780
done
 
8781
IFS=$as_save_IFS
 
8782
 
 
8783
fi
 
8784
fi
 
8785
F77=$ac_cv_prog_F77
 
8786
if test -n "$F77"; then
 
8787
  { echo "$as_me:$LINENO: result: $F77" >&5
 
8788
echo "${ECHO_T}$F77" >&6; }
 
8789
else
 
8790
  { echo "$as_me:$LINENO: result: no" >&5
 
8791
echo "${ECHO_T}no" >&6; }
 
8792
fi
 
8793
 
 
8794
 
 
8795
    test -n "$F77" && break
 
8796
  done
 
8797
fi
 
8798
if test -z "$F77"; then
 
8799
  ac_ct_F77=$F77
 
8800
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
8801
do
 
8802
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
8803
set dummy $ac_prog; ac_word=$2
 
8804
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8806
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
8807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8808
else
 
8809
  if test -n "$ac_ct_F77"; then
 
8810
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
8811
else
 
8812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8813
for as_dir in $PATH
 
8814
do
 
8815
  IFS=$as_save_IFS
 
8816
  test -z "$as_dir" && as_dir=.
 
8817
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8818
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8819
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
8820
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8821
    break 2
 
8822
  fi
 
8823
done
 
8824
done
 
8825
IFS=$as_save_IFS
 
8826
 
 
8827
fi
 
8828
fi
 
8829
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
8830
if test -n "$ac_ct_F77"; then
 
8831
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
8832
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
8833
else
 
8834
  { echo "$as_me:$LINENO: result: no" >&5
 
8835
echo "${ECHO_T}no" >&6; }
 
8836
fi
 
8837
 
 
8838
 
 
8839
  test -n "$ac_ct_F77" && break
 
8840
done
 
8841
 
 
8842
  if test "x$ac_ct_F77" = x; then
 
8843
    F77=""
 
8844
  else
 
8845
    case $cross_compiling:$ac_tool_warned in
 
8846
yes:)
 
8847
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8848
whose name does not start with the host triplet.  If you think this
 
8849
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8850
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8851
whose name does not start with the host triplet.  If you think this
 
8852
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8853
ac_tool_warned=yes ;;
 
8854
esac
 
8855
    F77=$ac_ct_F77
 
8856
  fi
 
8857
fi
 
8858
 
 
8859
 
 
8860
# Provide some information about the compiler.
 
8861
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
8862
ac_compiler=`set X $ac_compile; echo $2`
 
8863
{ (ac_try="$ac_compiler --version >&5"
 
8864
case "(($ac_try" in
 
8865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8866
  *) ac_try_echo=$ac_try;;
 
8867
esac
 
8868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8869
  (eval "$ac_compiler --version >&5") 2>&5
 
8870
  ac_status=$?
 
8871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8872
  (exit $ac_status); }
 
8873
{ (ac_try="$ac_compiler -v >&5"
 
8874
case "(($ac_try" in
 
8875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8876
  *) ac_try_echo=$ac_try;;
 
8877
esac
 
8878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8879
  (eval "$ac_compiler -v >&5") 2>&5
 
8880
  ac_status=$?
 
8881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8882
  (exit $ac_status); }
 
8883
{ (ac_try="$ac_compiler -V >&5"
 
8884
case "(($ac_try" in
 
8885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8886
  *) ac_try_echo=$ac_try;;
 
8887
esac
 
8888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8889
  (eval "$ac_compiler -V >&5") 2>&5
 
8890
  ac_status=$?
 
8891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8892
  (exit $ac_status); }
 
8893
rm -f a.out
 
8894
 
 
8895
# If we don't use `.F' as extension, the preprocessor is not run on the
 
8896
# input file.  (Note that this only needs to work for GNU compilers.)
 
8897
ac_save_ext=$ac_ext
 
8898
ac_ext=F
 
8899
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
8900
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
8901
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
8902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8903
else
 
8904
  cat >conftest.$ac_ext <<_ACEOF
 
8905
      program main
 
8906
#ifndef __GNUC__
 
8907
       choke me
 
8908
#endif
 
8909
 
 
8910
      end
 
8911
_ACEOF
 
8912
rm -f conftest.$ac_objext
 
8913
if { (ac_try="$ac_compile"
 
8914
case "(($ac_try" in
 
8915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8916
  *) ac_try_echo=$ac_try;;
 
8917
esac
 
8918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8919
  (eval "$ac_compile") 2>conftest.er1
 
8920
  ac_status=$?
 
8921
  grep -v '^ *+' conftest.er1 >conftest.err
 
8922
  rm -f conftest.er1
 
8923
  cat conftest.err >&5
 
8924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8925
  (exit $ac_status); } && {
 
8926
         test -z "$ac_f77_werror_flag" ||
 
8927
         test ! -s conftest.err
 
8928
       } && test -s conftest.$ac_objext; then
 
8929
  ac_compiler_gnu=yes
 
8930
else
 
8931
  echo "$as_me: failed program was:" >&5
 
8932
sed 's/^/| /' conftest.$ac_ext >&5
 
8933
 
 
8934
        ac_compiler_gnu=no
 
8935
fi
 
8936
 
 
8937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8938
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
8939
 
 
8940
fi
 
8941
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
8942
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
8943
ac_ext=$ac_save_ext
 
8944
ac_test_FFLAGS=${FFLAGS+set}
 
8945
ac_save_FFLAGS=$FFLAGS
 
8946
FFLAGS=
 
8947
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
8948
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
8949
if test "${ac_cv_prog_f77_g+set}" = set; then
 
8950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8951
else
 
8952
  FFLAGS=-g
 
8953
cat >conftest.$ac_ext <<_ACEOF
 
8954
      program main
 
8955
 
 
8956
      end
 
8957
_ACEOF
 
8958
rm -f conftest.$ac_objext
 
8959
if { (ac_try="$ac_compile"
 
8960
case "(($ac_try" in
 
8961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8962
  *) ac_try_echo=$ac_try;;
 
8963
esac
 
8964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8965
  (eval "$ac_compile") 2>conftest.er1
 
8966
  ac_status=$?
 
8967
  grep -v '^ *+' conftest.er1 >conftest.err
 
8968
  rm -f conftest.er1
 
8969
  cat conftest.err >&5
 
8970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8971
  (exit $ac_status); } && {
 
8972
         test -z "$ac_f77_werror_flag" ||
 
8973
         test ! -s conftest.err
 
8974
       } && test -s conftest.$ac_objext; then
 
8975
  ac_cv_prog_f77_g=yes
 
8976
else
 
8977
  echo "$as_me: failed program was:" >&5
 
8978
sed 's/^/| /' conftest.$ac_ext >&5
 
8979
 
 
8980
        ac_cv_prog_f77_g=no
 
8981
fi
 
8982
 
 
8983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8984
 
 
8985
fi
 
8986
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
8987
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
8988
if test "$ac_test_FFLAGS" = set; then
 
8989
  FFLAGS=$ac_save_FFLAGS
 
8990
elif test $ac_cv_prog_f77_g = yes; then
 
8991
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8992
    FFLAGS="-g -O2"
 
8993
  else
 
8994
    FFLAGS="-g"
 
8995
  fi
 
8996
else
 
8997
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8998
    FFLAGS="-O2"
 
8999
  else
 
9000
    FFLAGS=
 
9001
  fi
 
9002
fi
 
9003
 
 
9004
G77=`test $ac_compiler_gnu = yes && echo yes`
 
9005
ac_ext=c
 
9006
ac_cpp='$CPP $CPPFLAGS'
 
9007
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9008
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9009
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9010
 
 
9011
 
 
9012
 
 
9013
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
9014
 
 
9015
# find the maximum length of command line arguments
 
9016
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
9017
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
9018
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
9019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9020
else
 
9021
    i=0
 
9022
  testring="ABCD"
 
9023
 
 
9024
  case $build_os in
 
9025
  msdosdjgpp*)
 
9026
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
9027
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
9028
    # during glob expansion).  Even if it were fixed, the result of this
 
9029
    # check would be larger than it should be.
 
9030
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
9031
    ;;
 
9032
 
 
9033
  gnu*)
 
9034
    # Under GNU Hurd, this test is not required because there is
 
9035
    # no limit to the length of command line arguments.
 
9036
    # Libtool will interpret -1 as no limit whatsoever
 
9037
    lt_cv_sys_max_cmd_len=-1;
 
9038
    ;;
 
9039
 
 
9040
  cygwin* | mingw*)
 
9041
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
9042
    # about 5 minutes as the teststring grows exponentially.
 
9043
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
9044
    # you end up with a "frozen" computer, even though with patience
 
9045
    # the test eventually succeeds (with a max line length of 256k).
 
9046
    # Instead, let's just punt: use the minimum linelength reported by
 
9047
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
9048
    lt_cv_sys_max_cmd_len=8192;
 
9049
    ;;
 
9050
 
 
9051
 *)
 
9052
    # If test is not a shell built-in, we'll probably end up computing a
 
9053
    # maximum length that is only half of the actual maximum length, but
 
9054
    # we can't tell.
 
9055
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
9056
               = "XX$testring") >/dev/null 2>&1 &&
 
9057
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
9058
            lt_cv_sys_max_cmd_len=$new_result &&
 
9059
            test $i != 17 # 1/2 MB should be enough
 
9060
    do
 
9061
      i=`expr $i + 1`
 
9062
      testring=$testring$testring
 
9063
    done
 
9064
    testring=
 
9065
    # Add a significant safety factor because C++ compilers can tack on massive
 
9066
    # amounts of additional arguments before passing them to the linker.
 
9067
    # It appears as though 1/2 is a usable value.
 
9068
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
9069
    ;;
 
9070
  esac
 
9071
 
 
9072
fi
 
9073
 
 
9074
if test -n $lt_cv_sys_max_cmd_len ; then
 
9075
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
9076
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
9077
else
 
9078
  { echo "$as_me:$LINENO: result: none" >&5
 
9079
echo "${ECHO_T}none" >&6; }
 
9080
fi
 
9081
 
 
9082
 
 
9083
 
 
9084
 
 
9085
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
9086
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
9087
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
9088
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
9089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9090
else
 
9091
  
 
9092
# These are sane defaults that work on at least a few old systems.
 
9093
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
9094
 
 
9095
# Character class describing NM global symbol codes.
 
9096
symcode='[BCDEGRST]'
 
9097
 
 
9098
# Regexp to match symbols that can be accessed directly from C.
 
9099
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
9100
 
 
9101
# Transform the above into a raw symbol and a C symbol.
 
9102
symxfrm='\1 \2\3 \3'
 
9103
 
 
9104
# Transform an extracted symbol line into a proper C declaration
 
9105
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
9106
 
 
9107
# Transform an extracted symbol line into symbol name and symbol address
 
9108
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
9109
 
 
9110
# Define system-specific variables.
 
9111
case $host_os in
 
9112
aix*)
 
9113
  symcode='[BCDT]'
 
9114
  ;;
 
9115
cygwin* | mingw* | pw32*)
 
9116
  symcode='[ABCDGISTW]'
 
9117
  ;;
 
9118
hpux*) # Its linker distinguishes data from code symbols
 
9119
  if test "$host_cpu" = ia64; then
 
9120
    symcode='[ABCDEGRST]'
 
9121
  fi
 
9122
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
9123
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
9124
  ;;
 
9125
irix* | nonstopux*)
 
9126
  symcode='[BCDEGRST]'
 
9127
  ;;
 
9128
osf*)
 
9129
  symcode='[BCDEGQRST]'
 
9130
  ;;
 
9131
solaris* | sysv5*)
 
9132
  symcode='[BDT]'
 
9133
  ;;
 
9134
sysv4)
 
9135
  symcode='[DFNSTU]'
 
9136
  ;;
 
9137
esac
 
9138
 
 
9139
# Handle CRLF in mingw tool chain
 
9140
opt_cr=
 
9141
case $build_os in
 
9142
mingw*)
 
9143
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
9144
  ;;
 
9145
esac
 
9146
 
 
9147
# If we're using GNU nm, then use its standard symbol codes.
 
9148
case `$NM -V 2>&1` in
 
9149
*GNU* | *'with BFD'*)
 
9150
  symcode='[ABCDGISTW]' ;;
 
9151
esac
 
9152
 
 
9153
# Try without a prefix undercore, then with it.
 
9154
for ac_symprfx in "" "_"; do
 
9155
 
 
9156
  # Write the raw and C identifiers.
 
9157
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
9158
 
 
9159
  # Check to see that the pipe works correctly.
 
9160
  pipe_works=no
 
9161
 
 
9162
  rm -f conftest*
 
9163
  cat > conftest.$ac_ext <<EOF
 
9164
#ifdef __cplusplus
 
9165
extern "C" {
 
9166
#endif
 
9167
char nm_test_var;
 
9168
void nm_test_func(){}
 
9169
#ifdef __cplusplus
 
9170
}
 
9171
#endif
 
9172
int main(){nm_test_var='a';nm_test_func();return(0);}
 
9173
EOF
 
9174
 
 
9175
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9176
  (eval $ac_compile) 2>&5
 
9177
  ac_status=$?
 
9178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9179
  (exit $ac_status); }; then
 
9180
    # Now try to grab the symbols.
 
9181
    nlist=conftest.nm
 
9182
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
9183
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
9184
  ac_status=$?
 
9185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9186
  (exit $ac_status); } && test -s "$nlist"; then
 
9187
      # Try sorting and uniquifying the output.
 
9188
      if sort "$nlist" | uniq > "$nlist"T; then
 
9189
        mv -f "$nlist"T "$nlist"
 
9190
      else
 
9191
        rm -f "$nlist"T
 
9192
      fi
 
9193
 
 
9194
      # Make sure that we snagged all the symbols we need.
 
9195
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
9196
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
9197
          cat <<EOF > conftest.$ac_ext
 
9198
#ifdef __cplusplus
 
9199
extern "C" {
 
9200
#endif
 
9201
 
 
9202
EOF
 
9203
          # Now generate the symbol file.
 
9204
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
9205
 
 
9206
          cat <<EOF >> conftest.$ac_ext
 
9207
#if defined (__STDC__) && __STDC__
 
9208
# define lt_ptr_t void *
 
9209
#else
 
9210
# define lt_ptr_t char *
 
9211
# define const
 
9212
#endif
 
9213
 
 
9214
/* The mapping between symbol names and symbols. */
 
9215
const struct {
 
9216
  const char *name;
 
9217
  lt_ptr_t address;
 
9218
}
 
9219
lt_preloaded_symbols[] =
 
9220
{
 
9221
EOF
 
9222
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
9223
          cat <<\EOF >> conftest.$ac_ext
 
9224
  {0, (lt_ptr_t) 0}
 
9225
};
 
9226
 
 
9227
#ifdef __cplusplus
 
9228
}
 
9229
#endif
 
9230
EOF
 
9231
          # Now try linking the two files.
 
9232
          mv conftest.$ac_objext conftstm.$ac_objext
 
9233
          lt_save_LIBS="$LIBS"
 
9234
          lt_save_CFLAGS="$CFLAGS"
 
9235
          LIBS="conftstm.$ac_objext"
 
9236
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
9237
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9238
  (eval $ac_link) 2>&5
 
9239
  ac_status=$?
 
9240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9241
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
9242
            pipe_works=yes
 
9243
          fi
 
9244
          LIBS="$lt_save_LIBS"
 
9245
          CFLAGS="$lt_save_CFLAGS"
 
9246
        else
 
9247
          echo "cannot find nm_test_func in $nlist" >&5
 
9248
        fi
 
9249
      else
 
9250
        echo "cannot find nm_test_var in $nlist" >&5
 
9251
      fi
 
9252
    else
 
9253
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
9254
    fi
 
9255
  else
 
9256
    echo "$progname: failed program was:" >&5
 
9257
    cat conftest.$ac_ext >&5
 
9258
  fi
 
9259
  rm -f conftest* conftst*
 
9260
 
 
9261
  # Do not use the global_symbol_pipe unless it works.
 
9262
  if test "$pipe_works" = yes; then
 
9263
    break
 
9264
  else
 
9265
    lt_cv_sys_global_symbol_pipe=
 
9266
  fi
 
9267
done
 
9268
 
 
9269
fi
 
9270
 
 
9271
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
9272
  lt_cv_sys_global_symbol_to_cdecl=
 
9273
fi
 
9274
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
9275
  { echo "$as_me:$LINENO: result: failed" >&5
 
9276
echo "${ECHO_T}failed" >&6; }
 
9277
else
 
9278
  { echo "$as_me:$LINENO: result: ok" >&5
 
9279
echo "${ECHO_T}ok" >&6; }
 
9280
fi
 
9281
 
 
9282
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
9283
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
9284
if test "${lt_cv_objdir+set}" = set; then
 
9285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9286
else
 
9287
  rm -f .libs 2>/dev/null
 
9288
mkdir .libs 2>/dev/null
 
9289
if test -d .libs; then
 
9290
  lt_cv_objdir=.libs
 
9291
else
 
9292
  # MS-DOS does not allow filenames that begin with a dot.
 
9293
  lt_cv_objdir=_libs
 
9294
fi
 
9295
rmdir .libs 2>/dev/null
 
9296
fi
 
9297
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
9298
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
9299
objdir=$lt_cv_objdir
 
9300
 
 
9301
 
 
9302
 
 
9303
 
 
9304
 
 
9305
case $host_os in
 
9306
aix3*)
 
9307
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
9308
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
9309
  # vanish in a puff of smoke.
 
9310
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
9311
    COLLECT_NAMES=
 
9312
    export COLLECT_NAMES
 
9313
  fi
 
9314
  ;;
 
9315
esac
 
9316
 
 
9317
# Sed substitution that helps us do robust quoting.  It backslashifies
 
9318
# metacharacters that are still active within double-quoted strings.
 
9319
Xsed='sed -e s/^X//'
 
9320
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
9321
 
 
9322
# Same as above, but do not quote variable references.
 
9323
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
9324
 
 
9325
# Sed substitution to delay expansion of an escaped shell variable in a
 
9326
# double_quote_subst'ed string.
 
9327
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
9328
 
 
9329
# Sed substitution to avoid accidental globbing in evaled expressions
 
9330
no_glob_subst='s/\*/\\\*/g'
 
9331
 
 
9332
# Constants:
 
9333
rm="rm -f"
 
9334
 
 
9335
# Global variables:
 
9336
default_ofile=libtool
 
9337
can_build_shared=yes
 
9338
 
 
9339
# All known linkers require a `.a' archive for static linking (except M$VC,
 
9340
# which needs '.lib').
 
9341
libext=a
 
9342
ltmain="$ac_aux_dir/ltmain.sh"
 
9343
ofile="$default_ofile"
 
9344
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
9345
 
 
9346
if test -n "$ac_tool_prefix"; then
 
9347
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
9348
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
9349
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9351
if test "${ac_cv_prog_AR+set}" = set; then
 
9352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9353
else
 
9354
  if test -n "$AR"; then
 
9355
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
9356
else
 
9357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9358
for as_dir in $PATH
 
9359
do
 
9360
  IFS=$as_save_IFS
 
9361
  test -z "$as_dir" && as_dir=.
 
9362
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9363
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9364
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
9365
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9366
    break 2
 
9367
  fi
 
9368
done
 
9369
done
 
9370
IFS=$as_save_IFS
 
9371
 
 
9372
fi
 
9373
fi
 
9374
AR=$ac_cv_prog_AR
 
9375
if test -n "$AR"; then
 
9376
  { echo "$as_me:$LINENO: result: $AR" >&5
 
9377
echo "${ECHO_T}$AR" >&6; }
 
9378
else
 
9379
  { echo "$as_me:$LINENO: result: no" >&5
 
9380
echo "${ECHO_T}no" >&6; }
 
9381
fi
 
9382
 
 
9383
 
 
9384
fi
 
9385
if test -z "$ac_cv_prog_AR"; then
 
9386
  ac_ct_AR=$AR
 
9387
  # Extract the first word of "ar", so it can be a program name with args.
 
9388
set dummy ar; ac_word=$2
 
9389
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9390
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9391
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
9392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9393
else
 
9394
  if test -n "$ac_ct_AR"; then
 
9395
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
9396
else
 
9397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9398
for as_dir in $PATH
 
9399
do
 
9400
  IFS=$as_save_IFS
 
9401
  test -z "$as_dir" && as_dir=.
 
9402
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9403
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9404
    ac_cv_prog_ac_ct_AR="ar"
 
9405
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9406
    break 2
 
9407
  fi
 
9408
done
 
9409
done
 
9410
IFS=$as_save_IFS
 
9411
 
 
9412
fi
 
9413
fi
 
9414
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
9415
if test -n "$ac_ct_AR"; then
 
9416
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
9417
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
9418
else
 
9419
  { echo "$as_me:$LINENO: result: no" >&5
 
9420
echo "${ECHO_T}no" >&6; }
 
9421
fi
 
9422
 
 
9423
  if test "x$ac_ct_AR" = x; then
 
9424
    AR="false"
 
9425
  else
 
9426
    case $cross_compiling:$ac_tool_warned in
 
9427
yes:)
 
9428
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9429
whose name does not start with the host triplet.  If you think this
 
9430
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9431
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9432
whose name does not start with the host triplet.  If you think this
 
9433
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9434
ac_tool_warned=yes ;;
 
9435
esac
 
9436
    AR=$ac_ct_AR
 
9437
  fi
 
9438
else
 
9439
  AR="$ac_cv_prog_AR"
 
9440
fi
 
9441
 
 
9442
if test -n "$ac_tool_prefix"; then
 
9443
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
9444
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
9445
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9447
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
9448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9449
else
 
9450
  if test -n "$RANLIB"; then
 
9451
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
9452
else
 
9453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9454
for as_dir in $PATH
 
9455
do
 
9456
  IFS=$as_save_IFS
 
9457
  test -z "$as_dir" && as_dir=.
 
9458
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9459
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9460
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
9461
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9462
    break 2
 
9463
  fi
 
9464
done
 
9465
done
 
9466
IFS=$as_save_IFS
 
9467
 
 
9468
fi
 
9469
fi
 
9470
RANLIB=$ac_cv_prog_RANLIB
 
9471
if test -n "$RANLIB"; then
 
9472
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
9473
echo "${ECHO_T}$RANLIB" >&6; }
 
9474
else
 
9475
  { echo "$as_me:$LINENO: result: no" >&5
 
9476
echo "${ECHO_T}no" >&6; }
 
9477
fi
 
9478
 
 
9479
 
 
9480
fi
 
9481
if test -z "$ac_cv_prog_RANLIB"; then
 
9482
  ac_ct_RANLIB=$RANLIB
 
9483
  # Extract the first word of "ranlib", so it can be a program name with args.
 
9484
set dummy ranlib; ac_word=$2
 
9485
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9487
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
9488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9489
else
 
9490
  if test -n "$ac_ct_RANLIB"; then
 
9491
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
9492
else
 
9493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9494
for as_dir in $PATH
 
9495
do
 
9496
  IFS=$as_save_IFS
 
9497
  test -z "$as_dir" && as_dir=.
 
9498
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9499
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9500
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
9501
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9502
    break 2
 
9503
  fi
 
9504
done
 
9505
done
 
9506
IFS=$as_save_IFS
 
9507
 
 
9508
fi
 
9509
fi
 
9510
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
9511
if test -n "$ac_ct_RANLIB"; then
 
9512
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
9513
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
9514
else
 
9515
  { echo "$as_me:$LINENO: result: no" >&5
 
9516
echo "${ECHO_T}no" >&6; }
 
9517
fi
 
9518
 
 
9519
  if test "x$ac_ct_RANLIB" = x; then
 
9520
    RANLIB=":"
 
9521
  else
 
9522
    case $cross_compiling:$ac_tool_warned in
 
9523
yes:)
 
9524
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9525
whose name does not start with the host triplet.  If you think this
 
9526
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9527
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9528
whose name does not start with the host triplet.  If you think this
 
9529
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9530
ac_tool_warned=yes ;;
 
9531
esac
 
9532
    RANLIB=$ac_ct_RANLIB
 
9533
  fi
 
9534
else
 
9535
  RANLIB="$ac_cv_prog_RANLIB"
 
9536
fi
 
9537
 
 
9538
if test -n "$ac_tool_prefix"; then
 
9539
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
9540
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
9541
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9542
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9543
if test "${ac_cv_prog_STRIP+set}" = set; then
 
9544
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9545
else
 
9546
  if test -n "$STRIP"; then
 
9547
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
9548
else
 
9549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9550
for as_dir in $PATH
 
9551
do
 
9552
  IFS=$as_save_IFS
 
9553
  test -z "$as_dir" && as_dir=.
 
9554
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9555
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9556
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
9557
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9558
    break 2
 
9559
  fi
 
9560
done
 
9561
done
 
9562
IFS=$as_save_IFS
 
9563
 
 
9564
fi
 
9565
fi
 
9566
STRIP=$ac_cv_prog_STRIP
 
9567
if test -n "$STRIP"; then
 
9568
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
9569
echo "${ECHO_T}$STRIP" >&6; }
 
9570
else
 
9571
  { echo "$as_me:$LINENO: result: no" >&5
 
9572
echo "${ECHO_T}no" >&6; }
 
9573
fi
 
9574
 
 
9575
 
 
9576
fi
 
9577
if test -z "$ac_cv_prog_STRIP"; then
 
9578
  ac_ct_STRIP=$STRIP
 
9579
  # Extract the first word of "strip", so it can be a program name with args.
 
9580
set dummy strip; ac_word=$2
 
9581
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9582
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9583
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
9584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9585
else
 
9586
  if test -n "$ac_ct_STRIP"; then
 
9587
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
9588
else
 
9589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9590
for as_dir in $PATH
 
9591
do
 
9592
  IFS=$as_save_IFS
 
9593
  test -z "$as_dir" && as_dir=.
 
9594
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9595
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9596
    ac_cv_prog_ac_ct_STRIP="strip"
 
9597
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9598
    break 2
 
9599
  fi
 
9600
done
 
9601
done
 
9602
IFS=$as_save_IFS
 
9603
 
 
9604
fi
 
9605
fi
 
9606
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
9607
if test -n "$ac_ct_STRIP"; then
 
9608
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
9609
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
9610
else
 
9611
  { echo "$as_me:$LINENO: result: no" >&5
 
9612
echo "${ECHO_T}no" >&6; }
 
9613
fi
 
9614
 
 
9615
  if test "x$ac_ct_STRIP" = x; then
 
9616
    STRIP=":"
 
9617
  else
 
9618
    case $cross_compiling:$ac_tool_warned in
 
9619
yes:)
 
9620
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9621
whose name does not start with the host triplet.  If you think this
 
9622
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9623
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9624
whose name does not start with the host triplet.  If you think this
 
9625
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9626
ac_tool_warned=yes ;;
 
9627
esac
 
9628
    STRIP=$ac_ct_STRIP
 
9629
  fi
 
9630
else
 
9631
  STRIP="$ac_cv_prog_STRIP"
 
9632
fi
 
9633
 
 
9634
 
 
9635
old_CC="$CC"
 
9636
old_CFLAGS="$CFLAGS"
 
9637
 
 
9638
# Set sane defaults for various variables
 
9639
test -z "$AR" && AR=ar
 
9640
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
9641
test -z "$AS" && AS=as
 
9642
test -z "$CC" && CC=cc
 
9643
test -z "$LTCC" && LTCC=$CC
 
9644
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
9645
test -z "$LD" && LD=ld
 
9646
test -z "$LN_S" && LN_S="ln -s"
 
9647
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
9648
test -z "$NM" && NM=nm
 
9649
test -z "$SED" && SED=sed
 
9650
test -z "$OBJDUMP" && OBJDUMP=objdump
 
9651
test -z "$RANLIB" && RANLIB=:
 
9652
test -z "$STRIP" && STRIP=:
 
9653
test -z "$ac_objext" && ac_objext=o
 
9654
 
 
9655
# Determine commands to create old-style static archives.
 
9656
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
9657
old_postinstall_cmds='chmod 644 $oldlib'
 
9658
old_postuninstall_cmds=
 
9659
 
 
9660
if test -n "$RANLIB"; then
 
9661
  case $host_os in
 
9662
  openbsd*)
 
9663
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
9664
    ;;
 
9665
  *)
 
9666
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
9667
    ;;
 
9668
  esac
 
9669
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
9670
fi
 
9671
 
 
9672
# Only perform the check for file, if the check method requires it
 
9673
case $deplibs_check_method in
 
9674
file_magic*)
 
9675
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
9676
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
9677
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
9678
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
9679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9680
else
 
9681
  case $MAGIC_CMD in
 
9682
[\\/*] |  ?:[\\/]*)
 
9683
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9684
  ;;
 
9685
*)
 
9686
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9687
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9688
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9689
  for ac_dir in $ac_dummy; do
 
9690
    IFS="$lt_save_ifs"
 
9691
    test -z "$ac_dir" && ac_dir=.
 
9692
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
9693
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
9694
      if test -n "$file_magic_test_file"; then
 
9695
        case $deplibs_check_method in
 
9696
        "file_magic "*)
 
9697
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
9698
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9699
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9700
            $EGREP "$file_magic_regex" > /dev/null; then
 
9701
            :
 
9702
          else
 
9703
            cat <<EOF 1>&2
 
9704
 
 
9705
*** Warning: the command libtool uses to detect shared libraries,
 
9706
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9707
*** The result is that libtool may fail to recognize shared libraries
 
9708
*** as such.  This will affect the creation of libtool libraries that
 
9709
*** depend on shared libraries, but programs linked with such libtool
 
9710
*** libraries will work regardless of this problem.  Nevertheless, you
 
9711
*** may want to report the problem to your system manager and/or to
 
9712
*** bug-libtool@gnu.org
 
9713
 
 
9714
EOF
 
9715
          fi ;;
 
9716
        esac
 
9717
      fi
 
9718
      break
 
9719
    fi
 
9720
  done
 
9721
  IFS="$lt_save_ifs"
 
9722
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9723
  ;;
 
9724
esac
 
9725
fi
 
9726
 
 
9727
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9728
if test -n "$MAGIC_CMD"; then
 
9729
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
9730
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
9731
else
 
9732
  { echo "$as_me:$LINENO: result: no" >&5
 
9733
echo "${ECHO_T}no" >&6; }
 
9734
fi
 
9735
 
 
9736
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
9737
  if test -n "$ac_tool_prefix"; then
 
9738
    { echo "$as_me:$LINENO: checking for file" >&5
 
9739
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
9740
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
9741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9742
else
 
9743
  case $MAGIC_CMD in
 
9744
[\\/*] |  ?:[\\/]*)
 
9745
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9746
  ;;
 
9747
*)
 
9748
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9749
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9750
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9751
  for ac_dir in $ac_dummy; do
 
9752
    IFS="$lt_save_ifs"
 
9753
    test -z "$ac_dir" && ac_dir=.
 
9754
    if test -f $ac_dir/file; then
 
9755
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
9756
      if test -n "$file_magic_test_file"; then
 
9757
        case $deplibs_check_method in
 
9758
        "file_magic "*)
 
9759
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
9760
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9761
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9762
            $EGREP "$file_magic_regex" > /dev/null; then
 
9763
            :
 
9764
          else
 
9765
            cat <<EOF 1>&2
 
9766
 
 
9767
*** Warning: the command libtool uses to detect shared libraries,
 
9768
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9769
*** The result is that libtool may fail to recognize shared libraries
 
9770
*** as such.  This will affect the creation of libtool libraries that
 
9771
*** depend on shared libraries, but programs linked with such libtool
 
9772
*** libraries will work regardless of this problem.  Nevertheless, you
 
9773
*** may want to report the problem to your system manager and/or to
 
9774
*** bug-libtool@gnu.org
 
9775
 
 
9776
EOF
 
9777
          fi ;;
 
9778
        esac
 
9779
      fi
 
9780
      break
 
9781
    fi
 
9782
  done
 
9783
  IFS="$lt_save_ifs"
 
9784
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9785
  ;;
 
9786
esac
 
9787
fi
 
9788
 
 
9789
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9790
if test -n "$MAGIC_CMD"; then
 
9791
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
9792
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
9793
else
 
9794
  { echo "$as_me:$LINENO: result: no" >&5
 
9795
echo "${ECHO_T}no" >&6; }
 
9796
fi
 
9797
 
 
9798
  else
 
9799
    MAGIC_CMD=:
 
9800
  fi
 
9801
fi
 
9802
 
 
9803
  fi
 
9804
  ;;
 
9805
esac
 
9806
 
 
9807
enable_dlopen=yes
 
9808
enable_win32_dll=no
 
9809
 
 
9810
# Check whether --enable-libtool-lock was given.
 
9811
if test "${enable_libtool_lock+set}" = set; then
 
9812
  enableval=$enable_libtool_lock; 
 
9813
fi
 
9814
 
 
9815
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
9816
 
 
9817
 
 
9818
# Check whether --with-pic was given.
 
9819
if test "${with_pic+set}" = set; then
 
9820
  withval=$with_pic; pic_mode="$withval"
 
9821
else
 
9822
  pic_mode=default
 
9823
fi
 
9824
 
 
9825
test -z "$pic_mode" && pic_mode=default
 
9826
 
 
9827
# Use C for the default configuration in the libtool script
 
9828
tagname=
 
9829
lt_save_CC="$CC"
 
9830
ac_ext=c
 
9831
ac_cpp='$CPP $CPPFLAGS'
 
9832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9835
 
 
9836
 
 
9837
# Source file extension for C test sources.
 
9838
ac_ext=c
 
9839
 
 
9840
# Object file extension for compiled C test sources.
 
9841
objext=o
 
9842
objext=$objext
 
9843
 
 
9844
# Code to be used in simple compile tests
 
9845
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9846
 
 
9847
# Code to be used in simple link tests
 
9848
lt_simple_link_test_code='int main(){return(0);}\n'
 
9849
 
 
9850
 
 
9851
# If no C compiler was specified, use CC.
 
9852
LTCC=${LTCC-"$CC"}
 
9853
 
 
9854
# Allow CC to be a program name with arguments.
 
9855
compiler=$CC
 
9856
 
 
9857
 
 
9858
#
 
9859
# Check for any special shared library compilation flags.
 
9860
#
 
9861
lt_prog_cc_shlib=
 
9862
if test "$GCC" = no; then
 
9863
  case $host_os in
 
9864
  sco3.2v5*)
 
9865
    lt_prog_cc_shlib='-belf'
 
9866
    ;;
 
9867
  esac
 
9868
fi
 
9869
if test -n "$lt_prog_cc_shlib"; then
 
9870
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
9871
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
9872
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
9873
  else
 
9874
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
9875
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
9876
    lt_cv_prog_cc_can_build_shared=no
 
9877
  fi
 
9878
fi
 
9879
 
 
9880
 
 
9881
#
 
9882
# Check to make sure the static flag actually works.
 
9883
#
 
9884
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
9885
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
 
9886
if test "${lt_prog_compiler_static_works+set}" = set; then
 
9887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9888
else
 
9889
  lt_prog_compiler_static_works=no
 
9890
   save_LDFLAGS="$LDFLAGS"
 
9891
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
9892
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
9893
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9894
     # The compiler can only warn and ignore the option if not recognized
 
9895
     # So say no if there are warnings
 
9896
     if test -s conftest.err; then
 
9897
       # Append any errors to the config.log.
 
9898
       cat conftest.err 1>&5
 
9899
     else
 
9900
       lt_prog_compiler_static_works=yes
 
9901
     fi
 
9902
   fi
 
9903
   $rm conftest*
 
9904
   LDFLAGS="$save_LDFLAGS"
 
9905
 
 
9906
fi
 
9907
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
9908
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
9909
 
 
9910
if test x"$lt_prog_compiler_static_works" = xyes; then
 
9911
    :
 
9912
else
 
9913
    lt_prog_compiler_static=
 
9914
fi
 
9915
 
 
9916
 
 
9917
 
 
9918
## CAVEAT EMPTOR:
 
9919
## There is no encapsulation within the following macros, do not change
 
9920
## the running order or otherwise move them around unless you know exactly
 
9921
## what you are doing...
 
9922
 
 
9923
lt_prog_compiler_no_builtin_flag=
 
9924
 
 
9925
if test "$GCC" = yes; then
 
9926
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
9927
 
 
9928
  
 
9929
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9930
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
9931
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
9932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9933
else
 
9934
  lt_cv_prog_compiler_rtti_exceptions=no
 
9935
  ac_outfile=conftest.$ac_objext
 
9936
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9937
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9938
   # Insert the option either (1) after the last *FLAGS variable, or
 
9939
   # (2) before a word containing "conftest.", or (3) at the end.
 
9940
   # Note that $ac_compile itself does not contain backslashes and begins
 
9941
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9942
   # The option is referenced via a variable to avoid confusing sed.
 
9943
   lt_compile=`echo "$ac_compile" | $SED \
 
9944
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9945
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9946
   -e 's:$: $lt_compiler_flag:'`
 
9947
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
9948
   (eval "$lt_compile" 2>conftest.err)
 
9949
   ac_status=$?
 
9950
   cat conftest.err >&5
 
9951
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
9952
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9953
     # The compiler can only warn and ignore the option if not recognized
 
9954
     # So say no if there are warnings
 
9955
     if test ! -s conftest.err; then
 
9956
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9957
     fi
 
9958
   fi
 
9959
   $rm conftest*
 
9960
 
 
9961
fi
 
9962
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9963
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9964
 
 
9965
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9966
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9967
else
 
9968
    :
 
9969
fi
 
9970
 
 
9971
fi
 
9972
 
 
9973
lt_prog_compiler_wl=
 
9974
lt_prog_compiler_pic=
 
9975
lt_prog_compiler_static=
 
9976
 
 
9977
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
9978
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
9979
 
 
9980
  if test "$GCC" = yes; then
 
9981
    lt_prog_compiler_wl='-Wl,'
 
9982
    lt_prog_compiler_static='-static'
 
9983
 
 
9984
    case $host_os in
 
9985
      aix*)
 
9986
      # All AIX code is PIC.
 
9987
      if test "$host_cpu" = ia64; then
 
9988
        # AIX 5 now supports IA64 processor
 
9989
        lt_prog_compiler_static='-Bstatic'
 
9990
      fi
 
9991
      ;;
 
9992
 
 
9993
    amigaos*)
 
9994
      # FIXME: we need at least 68020 code to build shared libraries, but
 
9995
      # adding the `-m68020' flag to GCC prevents building anything better,
 
9996
      # like `-m68040'.
 
9997
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9998
      ;;
 
9999
 
 
10000
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10001
      # PIC is the default for these OSes.
 
10002
      ;;
 
10003
 
 
10004
    mingw* | pw32* | os2*)
 
10005
      # This hack is so that the source file can tell whether it is being
 
10006
      # built for inclusion in a dll (and should export symbols for example).
 
10007
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
10008
      ;;
 
10009
 
 
10010
    darwin* | rhapsody*)
 
10011
      # PIC is the default on this platform
 
10012
      # Common symbols not allowed in MH_DYLIB files
 
10013
      lt_prog_compiler_pic='-fno-common'
 
10014
      ;;
 
10015
 
 
10016
    msdosdjgpp*)
 
10017
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
10018
      # on systems that don't support them.
 
10019
      lt_prog_compiler_can_build_shared=no
 
10020
      enable_shared=no
 
10021
      ;;
 
10022
 
 
10023
    sysv4*MP*)
 
10024
      if test -d /usr/nec; then
 
10025
        lt_prog_compiler_pic=-Kconform_pic
 
10026
      fi
 
10027
      ;;
 
10028
 
 
10029
    hpux*)
 
10030
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10031
      # not for PA HP-UX.
 
10032
      case "$host_cpu" in
 
10033
      hppa*64*|ia64*)
 
10034
        # +Z the default
 
10035
        ;;
 
10036
      *)
 
10037
        lt_prog_compiler_pic='-fPIC'
 
10038
        ;;
 
10039
      esac
 
10040
      ;;
 
10041
 
 
10042
    *)
 
10043
      lt_prog_compiler_pic='-fPIC'
 
10044
      ;;
 
10045
    esac
 
10046
  else
 
10047
    # PORTME Check for flag to pass linker flags through the system compiler.
 
10048
    case $host_os in
 
10049
    aix*)
 
10050
      lt_prog_compiler_wl='-Wl,'
 
10051
      if test "$host_cpu" = ia64; then
 
10052
        # AIX 5 now supports IA64 processor
 
10053
        lt_prog_compiler_static='-Bstatic'
 
10054
      else
 
10055
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
10056
      fi
 
10057
      ;;
 
10058
 
 
10059
    mingw* | pw32* | os2*)
 
10060
      # This hack is so that the source file can tell whether it is being
 
10061
      # built for inclusion in a dll (and should export symbols for example).
 
10062
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
10063
      ;;
 
10064
 
 
10065
    hpux9* | hpux10* | hpux11*)
 
10066
      lt_prog_compiler_wl='-Wl,'
 
10067
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10068
      # not for PA HP-UX.
 
10069
      case "$host_cpu" in
 
10070
      hppa*64*|ia64*)
 
10071
        # +Z the default
 
10072
        ;;
 
10073
      *)
 
10074
        lt_prog_compiler_pic='+Z'
 
10075
        ;;
 
10076
      esac
 
10077
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
10078
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
10079
      ;;
 
10080
 
 
10081
    irix5* | irix6* | nonstopux*)
 
10082
      lt_prog_compiler_wl='-Wl,'
 
10083
      # PIC (with -KPIC) is the default.
 
10084
      lt_prog_compiler_static='-non_shared'
 
10085
      ;;
 
10086
 
 
10087
    newsos6)
 
10088
      lt_prog_compiler_pic='-KPIC'
 
10089
      lt_prog_compiler_static='-Bstatic'
 
10090
      ;;
 
10091
 
 
10092
    linux*)
 
10093
      case $CC in
 
10094
      icc* | ecc*)
 
10095
        lt_prog_compiler_wl='-Wl,'
 
10096
        lt_prog_compiler_pic='-KPIC'
 
10097
        lt_prog_compiler_static='-static'
 
10098
        ;;
 
10099
      ccc*)
 
10100
        lt_prog_compiler_wl='-Wl,'
 
10101
        # All Alpha code is PIC.
 
10102
        lt_prog_compiler_static='-non_shared'
 
10103
        ;;
 
10104
      esac
 
10105
      ;;
 
10106
 
 
10107
    osf3* | osf4* | osf5*)
 
10108
      lt_prog_compiler_wl='-Wl,'
 
10109
      # All OSF/1 code is PIC.
 
10110
      lt_prog_compiler_static='-non_shared'
 
10111
      ;;
 
10112
 
 
10113
    sco3.2v5*)
 
10114
      lt_prog_compiler_pic='-Kpic'
 
10115
      lt_prog_compiler_static='-dn'
 
10116
      ;;
 
10117
 
 
10118
    solaris*)
 
10119
      lt_prog_compiler_wl='-Wl,'
 
10120
      lt_prog_compiler_pic='-KPIC'
 
10121
      lt_prog_compiler_static='-Bstatic'
 
10122
      ;;
 
10123
 
 
10124
    sunos4*)
 
10125
      lt_prog_compiler_wl='-Qoption ld '
 
10126
      lt_prog_compiler_pic='-PIC'
 
10127
      lt_prog_compiler_static='-Bstatic'
 
10128
      ;;
 
10129
 
 
10130
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10131
      lt_prog_compiler_wl='-Wl,'
 
10132
      lt_prog_compiler_pic='-KPIC'
 
10133
      lt_prog_compiler_static='-Bstatic'
 
10134
      ;;
 
10135
 
 
10136
    sysv4*MP*)
 
10137
      if test -d /usr/nec ;then
 
10138
        lt_prog_compiler_pic='-Kconform_pic'
 
10139
        lt_prog_compiler_static='-Bstatic'
 
10140
      fi
 
10141
      ;;
 
10142
 
 
10143
    uts4*)
 
10144
      lt_prog_compiler_pic='-pic'
 
10145
      lt_prog_compiler_static='-Bstatic'
 
10146
      ;;
 
10147
 
 
10148
    *)
 
10149
      lt_prog_compiler_can_build_shared=no
 
10150
      ;;
 
10151
    esac
 
10152
  fi
 
10153
 
 
10154
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
10155
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
10156
 
 
10157
#
 
10158
# Check to make sure the PIC flag actually works.
 
10159
#
 
10160
if test -n "$lt_prog_compiler_pic"; then
 
10161
  
 
10162
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
10163
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
10164
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
10165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10166
else
 
10167
  lt_prog_compiler_pic_works=no
 
10168
  ac_outfile=conftest.$ac_objext
 
10169
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10170
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
10171
   # Insert the option either (1) after the last *FLAGS variable, or
 
10172
   # (2) before a word containing "conftest.", or (3) at the end.
 
10173
   # Note that $ac_compile itself does not contain backslashes and begins
 
10174
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10175
   # The option is referenced via a variable to avoid confusing sed.
 
10176
   lt_compile=`echo "$ac_compile" | $SED \
 
10177
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10178
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10179
   -e 's:$: $lt_compiler_flag:'`
 
10180
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
10181
   (eval "$lt_compile" 2>conftest.err)
 
10182
   ac_status=$?
 
10183
   cat conftest.err >&5
 
10184
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
10185
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10186
     # The compiler can only warn and ignore the option if not recognized
 
10187
     # So say no if there are warnings
 
10188
     if test ! -s conftest.err; then
 
10189
       lt_prog_compiler_pic_works=yes
 
10190
     fi
 
10191
   fi
 
10192
   $rm conftest*
 
10193
 
 
10194
fi
 
10195
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
10196
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
10197
 
 
10198
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
10199
    case $lt_prog_compiler_pic in
 
10200
     "" | " "*) ;;
 
10201
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
10202
     esac
 
10203
else
 
10204
    lt_prog_compiler_pic=
 
10205
     lt_prog_compiler_can_build_shared=no
 
10206
fi
 
10207
 
 
10208
fi
 
10209
case "$host_os" in
 
10210
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10211
  *djgpp*)
 
10212
    lt_prog_compiler_pic=
 
10213
    ;;
 
10214
  *)
 
10215
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
10216
    ;;
 
10217
esac
 
10218
 
 
10219
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10220
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
10221
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
10222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10223
else
 
10224
  lt_cv_prog_compiler_c_o=no
 
10225
   $rm -r conftest 2>/dev/null
 
10226
   mkdir conftest
 
10227
   cd conftest
 
10228
   mkdir out
 
10229
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10230
 
 
10231
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
10232
   # that will create temporary files in the current directory regardless of
 
10233
   # the output directory.  Thus, making CWD read-only will cause this test
 
10234
   # to fail, enabling locking or at least warning the user not to do parallel
 
10235
   # builds.
 
10236
   chmod -w .
 
10237
 
 
10238
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10239
   # Insert the option either (1) after the last *FLAGS variable, or
 
10240
   # (2) before a word containing "conftest.", or (3) at the end.
 
10241
   # Note that $ac_compile itself does not contain backslashes and begins
 
10242
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10243
   lt_compile=`echo "$ac_compile" | $SED \
 
10244
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10245
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10246
   -e 's:$: $lt_compiler_flag:'`
 
10247
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
10248
   (eval "$lt_compile" 2>out/conftest.err)
 
10249
   ac_status=$?
 
10250
   cat out/conftest.err >&5
 
10251
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
10252
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10253
   then
 
10254
     # The compiler can only warn and ignore the option if not recognized
 
10255
     # So say no if there are warnings
 
10256
     if test ! -s out/conftest.err; then
 
10257
       lt_cv_prog_compiler_c_o=yes
 
10258
     fi
 
10259
   fi
 
10260
   chmod u+w .
 
10261
   $rm conftest* out/*
 
10262
   rmdir out
 
10263
   cd ..
 
10264
   rmdir conftest
 
10265
   $rm conftest*
 
10266
 
 
10267
fi
 
10268
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
10269
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
10270
 
 
10271
 
 
10272
hard_links="nottested"
 
10273
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
10274
  # do not overwrite the value of need_locks provided by the user
 
10275
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10276
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
10277
  hard_links=yes
 
10278
  $rm conftest*
 
10279
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10280
  touch conftest.a
 
10281
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10282
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10283
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
10284
echo "${ECHO_T}$hard_links" >&6; }
 
10285
  if test "$hard_links" = no; then
 
10286
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10287
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10288
    need_locks=warn
 
10289
  fi
 
10290
else
 
10291
  need_locks=no
 
10292
fi
 
10293
 
 
10294
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10295
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10296
 
 
10297
  runpath_var=
 
10298
  allow_undefined_flag=
 
10299
  enable_shared_with_static_runtimes=no
 
10300
  archive_cmds=
 
10301
  archive_expsym_cmds=
 
10302
  old_archive_From_new_cmds=
 
10303
  old_archive_from_expsyms_cmds=
 
10304
  export_dynamic_flag_spec=
 
10305
  whole_archive_flag_spec=
 
10306
  thread_safe_flag_spec=
 
10307
  hardcode_libdir_flag_spec=
 
10308
  hardcode_libdir_flag_spec_ld=
 
10309
  hardcode_libdir_separator=
 
10310
  hardcode_direct=no
 
10311
  hardcode_minus_L=no
 
10312
  hardcode_shlibpath_var=unsupported
 
10313
  link_all_deplibs=unknown
 
10314
  hardcode_automatic=no
 
10315
  module_cmds=
 
10316
  module_expsym_cmds=  
 
10317
  always_export_symbols=no
 
10318
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10319
  # include_expsyms should be a list of space-separated symbols to be *always*
 
10320
  # included in the symbol list
 
10321
  include_expsyms=
 
10322
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
10323
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
10324
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
10325
  # as well as any symbol that contains `d'.
 
10326
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
10327
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
10328
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
10329
  # the symbol is explicitly referenced.  Since portable code cannot
 
10330
  # rely on this symbol name, it's probably fine to never include it in
 
10331
  # preloaded symbol tables.
 
10332
  extract_expsyms_cmds=
 
10333
 
 
10334
  case $host_os in
 
10335
  cygwin* | mingw* | pw32*)
 
10336
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
10337
    # When not using gcc, we currently assume that we are using
 
10338
    # Microsoft Visual C++.
 
10339
    if test "$GCC" != yes; then
 
10340
      with_gnu_ld=no
 
10341
    fi
 
10342
    ;;
 
10343
  openbsd*)
 
10344
    with_gnu_ld=no
 
10345
    ;;
 
10346
  esac
 
10347
 
 
10348
  ld_shlibs=yes
 
10349
  if test "$with_gnu_ld" = yes; then
 
10350
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10351
    wlarc='${wl}'
 
10352
 
 
10353
    # See if GNU ld supports shared libraries.
 
10354
    case $host_os in
 
10355
    aix3* | aix4* | aix5*)
 
10356
      # On AIX/PPC, the GNU linker is very broken
 
10357
      if test "$host_cpu" != ia64; then
 
10358
        ld_shlibs=no
 
10359
        cat <<EOF 1>&2
 
10360
 
 
10361
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
10362
*** to be unable to reliably create shared libraries on AIX.
 
10363
*** Therefore, libtool is disabling shared libraries support.  If you
 
10364
*** really care for shared libraries, you may want to modify your PATH
 
10365
*** so that a non-GNU linker is found, and then restart.
 
10366
 
 
10367
EOF
 
10368
      fi
 
10369
      ;;
 
10370
 
 
10371
    amigaos*)
 
10372
      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)'
 
10373
      hardcode_libdir_flag_spec='-L$libdir'
 
10374
      hardcode_minus_L=yes
 
10375
 
 
10376
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
10377
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
10378
      # to version 4, is to share data among multiple programs linked
 
10379
      # with the same dynamic library.  Since this doesn't match the
 
10380
      # behavior of shared libraries on other platforms, we can't use
 
10381
      # them.
 
10382
      ld_shlibs=no
 
10383
      ;;
 
10384
 
 
10385
    beos*)
 
10386
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10387
        allow_undefined_flag=unsupported
 
10388
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10389
        # support --undefined.  This deserves some investigation.  FIXME
 
10390
        archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
10391
      else
 
10392
        ld_shlibs=no
 
10393
      fi
 
10394
      ;;
 
10395
 
 
10396
    cygwin* | mingw* | pw32*)
 
10397
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
10398
      # as there is no search path for DLLs.
 
10399
      hardcode_libdir_flag_spec='-L$libdir'
 
10400
      allow_undefined_flag=no
 
10401
      always_export_symbols=no
 
10402
      enable_shared_with_static_runtimes=yes
 
10403
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
10404
 
 
10405
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10406
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10407
        # If the export-symbols file already is a .def file (1st line
 
10408
        # is EXPORTS), use it as is; otherwise, prepend...
 
10409
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10410
          cp $export_symbols $output_objdir/$soname.def;
 
10411
        else
 
10412
          echo EXPORTS > $output_objdir/$soname.def;
 
10413
          cat $export_symbols >> $output_objdir/$soname.def;
 
10414
        fi~
 
10415
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
10416
      else
 
10417
        ld_shlibs=no
 
10418
      fi
 
10419
      ;;
 
10420
 
 
10421
    netbsd*)
 
10422
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10423
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
10424
        wlarc=
 
10425
      else
 
10426
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
10427
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10428
      fi
 
10429
      ;;
 
10430
 
 
10431
    solaris* | sysv5*)
 
10432
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
10433
        ld_shlibs=no
 
10434
        cat <<EOF 1>&2
 
10435
 
 
10436
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10437
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10438
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10439
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10440
*** your PATH or compiler configuration so that the native linker is
 
10441
*** used, and then restart.
 
10442
 
 
10443
EOF
 
10444
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10445
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
10446
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10447
      else
 
10448
        ld_shlibs=no
 
10449
      fi
 
10450
      ;;
 
10451
 
 
10452
    sunos4*)
 
10453
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10454
      wlarc=
 
10455
      hardcode_direct=yes
 
10456
      hardcode_shlibpath_var=no
 
10457
      ;;
 
10458
 
 
10459
    *)
 
10460
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10461
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
10462
        archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10463
      else
 
10464
        ld_shlibs=no
 
10465
      fi
 
10466
      ;;
 
10467
    esac
 
10468
 
 
10469
    if test "$ld_shlibs" = yes; then
 
10470
      runpath_var=LD_RUN_PATH
 
10471
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
10472
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
10473
      # ancient GNU ld didn't support --whole-archive et. al.
 
10474
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
10475
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10476
      else
 
10477
        whole_archive_flag_spec=
 
10478
      fi
 
10479
    fi
 
10480
  else
 
10481
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10482
    case $host_os in
 
10483
    aix3*)
 
10484
      allow_undefined_flag=unsupported
 
10485
      always_export_symbols=yes
 
10486
      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'
 
10487
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10488
      # are no directories specified by -L.
 
10489
      hardcode_minus_L=yes
 
10490
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
10491
        # Neither direct hardcoding nor static linking is supported with a
 
10492
        # broken collect2.
 
10493
        hardcode_direct=unsupported
 
10494
      fi
 
10495
      ;;
 
10496
 
 
10497
    aix4* | aix5*)
 
10498
      if test "$host_cpu" = ia64; then
 
10499
        # On IA64, the linker does run time linking by default, so we don't
 
10500
        # have to do anything special.
 
10501
        aix_use_runtimelinking=no
 
10502
        exp_sym_flag='-Bexport'
 
10503
        no_entry_flag=""
 
10504
      else
 
10505
        # If we're using GNU nm, then we don't want the "-C" option.
 
10506
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10507
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
10508
          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'
 
10509
        else
 
10510
          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'
 
10511
        fi
 
10512
 
 
10513
        # KDE requires run time linking.  Make it the default.
 
10514
        aix_use_runtimelinking=yes
 
10515
        exp_sym_flag='-bexport'
 
10516
        no_entry_flag='-bnoentry'
 
10517
      fi
 
10518
 
 
10519
      # When large executables or shared objects are built, AIX ld can
 
10520
      # have problems creating the table of contents.  If linking a library
 
10521
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10522
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10523
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10524
 
 
10525
      archive_cmds=''
 
10526
      hardcode_direct=yes
 
10527
      hardcode_libdir_separator=':'
 
10528
      link_all_deplibs=yes
 
10529
 
 
10530
      if test "$GCC" = yes; then
 
10531
        case $host_os in aix4.012|aix4.012.*)
 
10532
        # We only want to do this on AIX 4.2 and lower, the check
 
10533
        # below for broken collect2 doesn't work under 4.3+
 
10534
          collect2name=`${CC} -print-prog-name=collect2`
 
10535
          if test -f "$collect2name" && \
 
10536
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10537
          then
 
10538
          # We have reworked collect2
 
10539
          hardcode_direct=yes
 
10540
          else
 
10541
          # We have old collect2
 
10542
          hardcode_direct=unsupported
 
10543
          # It fails to find uninstalled libraries when the uninstalled
 
10544
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10545
          # to unsupported forces relinking
 
10546
          hardcode_minus_L=yes
 
10547
          hardcode_libdir_flag_spec='-L$libdir'
 
10548
          hardcode_libdir_separator=
 
10549
          fi
 
10550
        esac
 
10551
        shared_flag='-shared'
 
10552
      else
 
10553
        # not using gcc
 
10554
        if test "$host_cpu" = ia64; then
 
10555
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10556
        # chokes on -Wl,-G. The following line is correct:
 
10557
          shared_flag='-G'
 
10558
        else
 
10559
        if test "$aix_use_runtimelinking" = yes; then
 
10560
            shared_flag='-qmkshrobj ${wl}-G'
 
10561
          else
 
10562
            shared_flag='-qmkshrobj'
 
10563
        fi
 
10564
        fi
 
10565
      fi
 
10566
 
 
10567
      # Let the compiler handle the export list.
 
10568
      always_export_symbols=no
 
10569
      if test "$aix_use_runtimelinking" = yes; then
 
10570
        # Warning - without using the other runtime loading flags (-brtl),
 
10571
        # -berok will link without error, but may produce a broken library.
 
10572
        allow_undefined_flag='-berok'
 
10573
       # Determine the default libpath from the value encoded in an empty executable.
 
10574
        cat >conftest.$ac_ext <<_ACEOF
 
10575
/* confdefs.h.  */
 
10576
_ACEOF
 
10577
cat confdefs.h >>conftest.$ac_ext
 
10578
cat >>conftest.$ac_ext <<_ACEOF
 
10579
/* end confdefs.h.  */
 
10580
 
 
10581
int
 
10582
main ()
 
10583
{
 
10584
 
 
10585
  ;
 
10586
  return 0;
 
10587
}
 
10588
_ACEOF
 
10589
rm -f conftest.$ac_objext conftest$ac_exeext
 
10590
if { (ac_try="$ac_link"
 
10591
case "(($ac_try" in
 
10592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10593
  *) ac_try_echo=$ac_try;;
 
10594
esac
 
10595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10596
  (eval "$ac_link") 2>conftest.er1
 
10597
  ac_status=$?
 
10598
  grep -v '^ *+' conftest.er1 >conftest.err
 
10599
  rm -f conftest.er1
 
10600
  cat conftest.err >&5
 
10601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10602
  (exit $ac_status); } && {
 
10603
         test -z "$ac_c_werror_flag" ||
 
10604
         test ! -s conftest.err
 
10605
       } && test -s conftest$ac_exeext &&
 
10606
       $as_test_x conftest$ac_exeext; then
 
10607
  
 
10608
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10609
}'`
 
10610
# Check for a 64-bit object if we didn't find anything.
 
10611
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10612
}'`; fi
 
10613
else
 
10614
  echo "$as_me: failed program was:" >&5
 
10615
sed 's/^/| /' conftest.$ac_ext >&5
 
10616
 
 
10617
        
 
10618
fi
 
10619
 
 
10620
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10621
      conftest$ac_exeext conftest.$ac_ext
 
10622
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10623
 
 
10624
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10625
        archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
10626
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10627
       else
 
10628
        if test "$host_cpu" = ia64; then
 
10629
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10630
          allow_undefined_flag="-z nodefs"
 
10631
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
10632
        else
 
10633
         # Determine the default libpath from the value encoded in an empty executable.
 
10634
         cat >conftest.$ac_ext <<_ACEOF
 
10635
/* confdefs.h.  */
 
10636
_ACEOF
 
10637
cat confdefs.h >>conftest.$ac_ext
 
10638
cat >>conftest.$ac_ext <<_ACEOF
 
10639
/* end confdefs.h.  */
 
10640
 
 
10641
int
 
10642
main ()
 
10643
{
 
10644
 
 
10645
  ;
 
10646
  return 0;
 
10647
}
 
10648
_ACEOF
 
10649
rm -f conftest.$ac_objext conftest$ac_exeext
 
10650
if { (ac_try="$ac_link"
 
10651
case "(($ac_try" in
 
10652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10653
  *) ac_try_echo=$ac_try;;
 
10654
esac
 
10655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10656
  (eval "$ac_link") 2>conftest.er1
 
10657
  ac_status=$?
 
10658
  grep -v '^ *+' conftest.er1 >conftest.err
 
10659
  rm -f conftest.er1
 
10660
  cat conftest.err >&5
 
10661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10662
  (exit $ac_status); } && {
 
10663
         test -z "$ac_c_werror_flag" ||
 
10664
         test ! -s conftest.err
 
10665
       } && test -s conftest$ac_exeext &&
 
10666
       $as_test_x conftest$ac_exeext; then
 
10667
  
 
10668
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10669
}'`
 
10670
# Check for a 64-bit object if we didn't find anything.
 
10671
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10672
}'`; fi
 
10673
else
 
10674
  echo "$as_me: failed program was:" >&5
 
10675
sed 's/^/| /' conftest.$ac_ext >&5
 
10676
 
 
10677
        
 
10678
fi
 
10679
 
 
10680
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10681
      conftest$ac_exeext conftest.$ac_ext
 
10682
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10683
 
 
10684
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10685
          # Warning - without using the other run time loading flags,
 
10686
          # -berok will link without error, but may produce a broken library.
 
10687
          no_undefined_flag=' ${wl}-bernotok'
 
10688
          allow_undefined_flag=' ${wl}-berok'
 
10689
          # -bexpall does not export symbols beginning with underscore (_)
 
10690
          always_export_symbols=yes
 
10691
          # Exported symbols can be pulled into shared objects from archives
 
10692
          whole_archive_flag_spec=' '
 
10693
          archive_cmds_need_lc=yes
 
10694
          # This is similar to how AIX traditionally builds it's shared libraries.
 
10695
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10696
        fi
 
10697
      fi
 
10698
      ;;
 
10699
 
 
10700
    amigaos*)
 
10701
      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)'
 
10702
      hardcode_libdir_flag_spec='-L$libdir'
 
10703
      hardcode_minus_L=yes
 
10704
      # see comment about different semantics on the GNU ld section
 
10705
      ld_shlibs=no
 
10706
      ;;
 
10707
 
 
10708
    bsdi4*)
 
10709
      export_dynamic_flag_spec=-rdynamic
 
10710
      ;;
 
10711
 
 
10712
    cygwin* | mingw* | pw32*)
 
10713
      # When not using gcc, we currently assume that we are using
 
10714
      # Microsoft Visual C++.
 
10715
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10716
      # no search path for DLLs.
 
10717
      hardcode_libdir_flag_spec=' '
 
10718
      allow_undefined_flag=no
 
10719
      # Tell ltmain to make .lib files, not .a files.
 
10720
      libext=lib
 
10721
      # Tell ltmain to make .dll files, not .so files.
 
10722
      shrext=".dll"
 
10723
      # FIXME: Setting linknames here is a bad hack.
 
10724
      archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
10725
      # The linker will automatically build a .lib file if we build a DLL.
 
10726
      old_archive_From_new_cmds='true'
 
10727
      # FIXME: Should let the user specify the lib program.
 
10728
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
10729
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
10730
      enable_shared_with_static_runtimes=yes
 
10731
      ;;
 
10732
 
 
10733
    darwin* | rhapsody*)
 
10734
    if test "$GXX" = yes ; then
 
10735
      archive_cmds_need_lc=no
 
10736
      case "$host_os" in
 
10737
      rhapsody* | darwin1.[012])
 
10738
        allow_undefined_flag='-Wl,-undefined -Wl,suppress'
 
10739
        ;;
 
10740
      *) # Darwin 1.3 on
 
10741
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10742
          allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
10743
        else
 
10744
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
10745
            10.012)
 
10746
              allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
10747
              ;;
 
10748
            10.*)
 
10749
              allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
10750
              ;;
 
10751
          esac
 
10752
        fi
 
10753
        ;;
 
10754
      esac
 
10755
        lt_int_apple_cc_single_mod=no
 
10756
        output_verbose_link_cmd='echo'
 
10757
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10758
          lt_int_apple_cc_single_mod=yes
 
10759
        fi
 
10760
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10761
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
10762
        else
 
10763
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
10764
      fi
 
10765
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
10766
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10767
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10768
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10769
        else
 
10770
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10771
        fi
 
10772
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10773
      hardcode_direct=no
 
10774
      hardcode_automatic=yes
 
10775
      hardcode_shlibpath_var=unsupported
 
10776
      whole_archive_flag_spec='-all_load $convenience'
 
10777
      link_all_deplibs=yes
 
10778
    else  
 
10779
      ld_shlibs=no
 
10780
    fi  
 
10781
      ;;
 
10782
 
 
10783
    dgux*)
 
10784
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10785
      hardcode_libdir_flag_spec='-L$libdir'
 
10786
      hardcode_shlibpath_var=no
 
10787
      ;;
 
10788
 
 
10789
    freebsd1*)
 
10790
      ld_shlibs=no
 
10791
      ;;
 
10792
 
 
10793
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10794
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10795
    # does not break anything, and helps significantly (at the cost of a little
 
10796
    # extra space).
 
10797
    freebsd2.2*)
 
10798
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10799
      hardcode_libdir_flag_spec='-R$libdir'
 
10800
      hardcode_direct=yes
 
10801
      hardcode_shlibpath_var=no
 
10802
      ;;
 
10803
 
 
10804
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10805
    freebsd2*)
 
10806
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10807
      hardcode_direct=yes
 
10808
      hardcode_minus_L=yes
 
10809
      hardcode_shlibpath_var=no
 
10810
      ;;
 
10811
 
 
10812
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10813
    freebsd*)
 
10814
      archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
10815
      hardcode_libdir_flag_spec='-R$libdir'
 
10816
      hardcode_direct=yes
 
10817
      hardcode_shlibpath_var=no
 
10818
      ;;
 
10819
 
 
10820
    hpux9*)
 
10821
      if test "$GCC" = yes; then
 
10822
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10823
      else
 
10824
        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'
 
10825
      fi
 
10826
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10827
      hardcode_libdir_separator=:
 
10828
      hardcode_direct=yes
 
10829
 
 
10830
      # hardcode_minus_L: Not really in the search PATH,
 
10831
      # but as the default location of the library.
 
10832
      hardcode_minus_L=yes
 
10833
      export_dynamic_flag_spec='${wl}-E'
 
10834
      ;;
 
10835
 
 
10836
    hpux10* | hpux11*)
 
10837
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10838
        case "$host_cpu" in
 
10839
        hppa*64*|ia64*)
 
10840
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10841
          ;;
 
10842
        *)
 
10843
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
10844
          ;;
 
10845
        esac
 
10846
      else
 
10847
        case "$host_cpu" in
 
10848
        hppa*64*|ia64*)
 
10849
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10850
          ;;
 
10851
        *)
 
10852
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10853
          ;;
 
10854
        esac
 
10855
      fi
 
10856
      if test "$with_gnu_ld" = no; then
 
10857
        case "$host_cpu" in
 
10858
        hppa*64*)
 
10859
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10860
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
10861
          hardcode_libdir_separator=:
 
10862
          hardcode_direct=no
 
10863
          hardcode_shlibpath_var=no
 
10864
          ;;
 
10865
        ia64*)
 
10866
          hardcode_libdir_flag_spec='-L$libdir'
 
10867
          hardcode_direct=no
 
10868
          hardcode_shlibpath_var=no
 
10869
 
 
10870
          # hardcode_minus_L: Not really in the search PATH,
 
10871
          # but as the default location of the library.
 
10872
          hardcode_minus_L=yes
 
10873
          ;;
 
10874
        *)
 
10875
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10876
          hardcode_libdir_separator=:
 
10877
          hardcode_direct=yes
 
10878
          export_dynamic_flag_spec='${wl}-E'
 
10879
 
 
10880
          # hardcode_minus_L: Not really in the search PATH,
 
10881
          # but as the default location of the library.
 
10882
          hardcode_minus_L=yes
 
10883
          ;;
 
10884
        esac
 
10885
      fi
 
10886
      ;;
 
10887
 
 
10888
    irix5* | irix6* | nonstopux*)
 
10889
      if test "$GCC" = yes; then
 
10890
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10891
      else
 
10892
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10893
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10894
      fi
 
10895
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10896
      hardcode_libdir_separator=:
 
10897
      link_all_deplibs=yes
 
10898
      ;;
 
10899
 
 
10900
    netbsd*)
 
10901
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10902
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10903
      else
 
10904
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10905
      fi
 
10906
      hardcode_libdir_flag_spec='-R$libdir'
 
10907
      hardcode_direct=yes
 
10908
      hardcode_shlibpath_var=no
 
10909
      ;;
 
10910
 
 
10911
    newsos6)
 
10912
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10913
      hardcode_direct=yes
 
10914
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10915
      hardcode_libdir_separator=:
 
10916
      hardcode_shlibpath_var=no
 
10917
      ;;
 
10918
 
 
10919
    openbsd*)
 
10920
      hardcode_direct=yes
 
10921
      hardcode_shlibpath_var=no
 
10922
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10923
        archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
10924
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10925
        export_dynamic_flag_spec='${wl}-E'
 
10926
      else
 
10927
       case $host_os in
 
10928
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10929
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10930
           hardcode_libdir_flag_spec='-R$libdir'
 
10931
           ;;
 
10932
         *)
 
10933
           archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
10934
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10935
           ;;
 
10936
       esac
 
10937
      fi
 
10938
      ;;
 
10939
 
 
10940
    os2*)
 
10941
      hardcode_libdir_flag_spec='-L$libdir'
 
10942
      hardcode_minus_L=yes
 
10943
      allow_undefined_flag=unsupported
 
10944
      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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
 
10945
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10946
      ;;
 
10947
 
 
10948
    osf3*)
 
10949
      if test "$GCC" = yes; then
 
10950
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10951
        archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10952
      else
 
10953
        allow_undefined_flag=' -expect_unresolved \*'
 
10954
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10955
      fi
 
10956
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10957
      hardcode_libdir_separator=:
 
10958
      ;;
 
10959
 
 
10960
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10961
      if test "$GCC" = yes; then
 
10962
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10963
        archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10964
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10965
      else
 
10966
        allow_undefined_flag=' -expect_unresolved \*'
 
10967
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10968
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
10969
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
10970
 
 
10971
        # Both c and cxx compiler support -rpath directly
 
10972
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10973
      fi
 
10974
      hardcode_libdir_separator=:
 
10975
      ;;
 
10976
 
 
10977
    sco3.2v5*)
 
10978
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10979
      hardcode_shlibpath_var=no
 
10980
      export_dynamic_flag_spec='${wl}-Bexport'
 
10981
      runpath_var=LD_RUN_PATH
 
10982
      hardcode_runpath_var=yes
 
10983
      ;;
 
10984
 
 
10985
    solaris*)
 
10986
      no_undefined_flag=' -z text'
 
10987
      if test "$GCC" = yes; then
 
10988
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
10989
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10990
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
10991
      else
 
10992
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10993
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10994
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10995
      fi
 
10996
      hardcode_libdir_flag_spec='-R$libdir'
 
10997
      hardcode_shlibpath_var=no
 
10998
      case $host_os in
 
10999
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11000
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11001
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
11002
      esac
 
11003
      link_all_deplibs=yes
 
11004
      ;;
 
11005
 
 
11006
    sunos4*)
 
11007
      if test "x$host_vendor" = xsequent; then
 
11008
        # Use $CC to link under sequent, because it throws in some extra .o
 
11009
        # files that make .init and .fini sections work.
 
11010
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
11011
      else
 
11012
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
11013
      fi
 
11014
      hardcode_libdir_flag_spec='-L$libdir'
 
11015
      hardcode_direct=yes
 
11016
      hardcode_minus_L=yes
 
11017
      hardcode_shlibpath_var=no
 
11018
      ;;
 
11019
 
 
11020
    sysv4)
 
11021
      case $host_vendor in
 
11022
        sni)
 
11023
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11024
          hardcode_direct=yes # is this really true???
 
11025
        ;;
 
11026
        siemens)
 
11027
          ## LD is ld it makes a PLAMLIB
 
11028
          ## CC just makes a GrossModule.
 
11029
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11030
          reload_cmds='$CC -r -o $output$reload_objs'
 
11031
          hardcode_direct=no
 
11032
        ;;
 
11033
        motorola)
 
11034
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11035
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
11036
        ;;
 
11037
      esac
 
11038
      runpath_var='LD_RUN_PATH'
 
11039
      hardcode_shlibpath_var=no
 
11040
      ;;
 
11041
 
 
11042
    sysv4.3*)
 
11043
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11044
      hardcode_shlibpath_var=no
 
11045
      export_dynamic_flag_spec='-Bexport'
 
11046
      ;;
 
11047
 
 
11048
    sysv4*MP*)
 
11049
      if test -d /usr/nec; then
 
11050
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11051
        hardcode_shlibpath_var=no
 
11052
        runpath_var=LD_RUN_PATH
 
11053
        hardcode_runpath_var=yes
 
11054
        ld_shlibs=yes
 
11055
      fi
 
11056
      ;;
 
11057
 
 
11058
    sysv4.2uw2*)
 
11059
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11060
      hardcode_direct=yes
 
11061
      hardcode_minus_L=no
 
11062
      hardcode_shlibpath_var=no
 
11063
      hardcode_runpath_var=yes
 
11064
      runpath_var=LD_RUN_PATH
 
11065
      ;;
 
11066
 
 
11067
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
11068
      no_undefined_flag='${wl}-z ${wl}text'
 
11069
      if test "$GCC" = yes; then
 
11070
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
11071
      else
 
11072
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
11073
      fi
 
11074
      runpath_var='LD_RUN_PATH'
 
11075
      hardcode_shlibpath_var=no
 
11076
      ;;
 
11077
 
 
11078
    sysv5*)
 
11079
      no_undefined_flag=' -z text'
 
11080
      # $CC -shared without GNU ld will not create a library from C++
 
11081
      # object files and a static libstdc++, better avoid it by now
 
11082
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11083
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11084
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
11085
      hardcode_libdir_flag_spec=
 
11086
      hardcode_shlibpath_var=no
 
11087
      runpath_var='LD_RUN_PATH'
 
11088
      ;;
 
11089
 
 
11090
    uts4*)
 
11091
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11092
      hardcode_libdir_flag_spec='-L$libdir'
 
11093
      hardcode_shlibpath_var=no
 
11094
      ;;
 
11095
 
 
11096
    *)
 
11097
      ld_shlibs=no
 
11098
      ;;
 
11099
    esac
 
11100
  fi
 
11101
 
 
11102
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
11103
echo "${ECHO_T}$ld_shlibs" >&6; }
 
11104
test "$ld_shlibs" = no && can_build_shared=no
 
11105
 
 
11106
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11107
if test "$GCC" = yes; then
 
11108
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11109
fi
 
11110
 
 
11111
#
 
11112
# Do we need to explicitly link libc?
 
11113
#
 
11114
case "x$archive_cmds_need_lc" in
 
11115
x|xyes)
 
11116
  # Assume -lc should be added
 
11117
  archive_cmds_need_lc=yes
 
11118
 
 
11119
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11120
    case $archive_cmds in
 
11121
    *'~'*)
 
11122
      # FIXME: we may have to deal with multi-command sequences.
 
11123
      ;;
 
11124
    '$CC '*)
 
11125
      # Test whether the compiler implicitly links with -lc since on some
 
11126
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11127
      # to ld, don't add -lc before -lgcc.
 
11128
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11129
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
11130
      $rm conftest*
 
11131
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11132
  
 
11133
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11134
  (eval $ac_compile) 2>&5
 
11135
  ac_status=$?
 
11136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11137
  (exit $ac_status); } 2>conftest.err; then
 
11138
        soname=conftest
 
11139
        lib=conftest
 
11140
        libobjs=conftest.$ac_objext
 
11141
        deplibs=
 
11142
        wl=$lt_prog_compiler_wl
 
11143
        compiler_flags=-v
 
11144
        linker_flags=-v
 
11145
        verstring=
 
11146
        output_objdir=.
 
11147
        libname=conftest
 
11148
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
11149
        allow_undefined_flag=
 
11150
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11151
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11152
  ac_status=$?
 
11153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11154
  (exit $ac_status); }
 
11155
        then
 
11156
          archive_cmds_need_lc=no
 
11157
        else
 
11158
          archive_cmds_need_lc=yes
 
11159
        fi
 
11160
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
11161
      else
 
11162
        cat conftest.err 1>&5
 
11163
      fi
 
11164
      $rm conftest*
 
11165
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
11166
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
11167
      ;;
 
11168
    esac
 
11169
  fi
 
11170
  ;;
 
11171
esac
 
11172
 
 
11173
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11174
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
11175
library_names_spec=
 
11176
libname_spec='lib$name'
 
11177
soname_spec=
 
11178
shrext=".so"
 
11179
postinstall_cmds=
 
11180
postuninstall_cmds=
 
11181
finish_cmds=
 
11182
finish_eval=
 
11183
shlibpath_var=
 
11184
shlibpath_overrides_runpath=unknown
 
11185
version_type=none
 
11186
dynamic_linker="$host_os ld.so"
 
11187
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11188
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11189
need_lib_prefix=unknown
 
11190
hardcode_into_libs=no
 
11191
 
 
11192
# when you set need_version to no, make sure it does not cause -set_version
 
11193
# flags to be left without arguments
 
11194
need_version=unknown
 
11195
 
 
11196
case $host_os in
 
11197
aix3*)
 
11198
  version_type=linux
 
11199
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11200
  shlibpath_var=LIBPATH
 
11201
 
 
11202
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11203
  soname_spec='${libname}${release}${shared_ext}$major'
 
11204
  ;;
 
11205
 
 
11206
aix4* | aix5*)
 
11207
  version_type=linux
 
11208
  need_lib_prefix=no
 
11209
  need_version=no
 
11210
  hardcode_into_libs=yes
 
11211
  if test "$host_cpu" = ia64; then
 
11212
    # AIX 5 supports IA64
 
11213
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11214
    shlibpath_var=LD_LIBRARY_PATH
 
11215
  else
 
11216
    # With GCC up to 2.95.x, collect2 would create an import file
 
11217
    # for dependence libraries.  The import file would start with
 
11218
    # the line `#! .'.  This would cause the generated library to
 
11219
    # depend on `.', always an invalid library.  This was fixed in
 
11220
    # development snapshots of GCC prior to 3.0.
 
11221
    case $host_os in
 
11222
      aix4 | aix4.[01] | aix4.[01].*)
 
11223
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11224
           echo ' yes '
 
11225
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11226
        :
 
11227
      else
 
11228
        can_build_shared=no
 
11229
      fi
 
11230
      ;;
 
11231
    esac
 
11232
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11233
    # soname into executable. Probably we can add versioning support to
 
11234
    # collect2, so additional links can be useful in future.
 
11235
    if test "$aix_use_runtimelinking" = yes; then
 
11236
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11237
      # instead of lib<name>.a to let people know that these are not
 
11238
      # typical AIX shared libraries.
 
11239
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11240
    else
 
11241
      # We preserve .a as extension for shared libraries through AIX4.2
 
11242
      # and later when we are not doing run time linking.
 
11243
      library_names_spec='${libname}${release}.a $libname.a'
 
11244
      soname_spec='${libname}${release}${shared_ext}$major'
 
11245
    fi
 
11246
    shlibpath_var=LIBPATH
 
11247
  fi
 
11248
  ;;
 
11249
 
 
11250
amigaos*)
 
11251
  library_names_spec='$libname.ixlibrary $libname.a'
 
11252
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11253
  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'
 
11254
  ;;
 
11255
 
 
11256
beos*)
 
11257
  library_names_spec='${libname}${shared_ext}'
 
11258
  dynamic_linker="$host_os ld.so"
 
11259
  shlibpath_var=LIBRARY_PATH
 
11260
  ;;
 
11261
 
 
11262
bsdi4*)
 
11263
  version_type=linux
 
11264
  need_version=no
 
11265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11266
  soname_spec='${libname}${release}${shared_ext}$major'
 
11267
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11268
  shlibpath_var=LD_LIBRARY_PATH
 
11269
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11270
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11271
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11272
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11273
  # libtool to hard-code these into programs
 
11274
  ;;
 
11275
 
 
11276
cygwin* | mingw* | pw32*)
 
11277
  version_type=windows
 
11278
  shrext=".dll"
 
11279
  need_version=no
 
11280
  need_lib_prefix=no
 
11281
 
 
11282
  case $GCC,$host_os in
 
11283
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11284
    library_names_spec='$libname.dll.a'
 
11285
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11286
    postinstall_cmds='base_file=`basename \${file}`~
 
11287
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11288
      dldir=$destdir/`dirname \$dlpath`~
 
11289
      test -d \$dldir || mkdir -p \$dldir~
 
11290
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11291
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11292
      dlpath=$dir/\$dldll~
 
11293
       $rm \$dlpath'
 
11294
    shlibpath_overrides_runpath=yes
 
11295
 
 
11296
    case $host_os in
 
11297
    cygwin*)
 
11298
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11299
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11300
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11301
      ;;
 
11302
    mingw*)
 
11303
      # MinGW DLLs use traditional 'lib' prefix
 
11304
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11305
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11306
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11307
        # It is most probably a Windows format PATH printed by
 
11308
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11309
        # path with ; separators, and with drive letters. We can handle the
 
11310
        # drive letters (cygwin fileutils understands them), so leave them,
 
11311
        # especially as we might pass files found there to a mingw objdump,
 
11312
        # which wouldn't understand a cygwinified path. Ahh.
 
11313
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11314
      else
 
11315
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11316
      fi
 
11317
      ;;
 
11318
    pw32*)
 
11319
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11320
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11321
      ;;
 
11322
    esac
 
11323
    ;;
 
11324
 
 
11325
  *)
 
11326
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11327
    ;;
 
11328
  esac
 
11329
  dynamic_linker='Win32 ld.exe'
 
11330
  # FIXME: first we should search . and the directory the executable is in
 
11331
  shlibpath_var=PATH
 
11332
  ;;
 
11333
 
 
11334
darwin* | rhapsody*)
 
11335
  dynamic_linker="$host_os dyld"
 
11336
  version_type=darwin
 
11337
  need_lib_prefix=no
 
11338
  need_version=no
 
11339
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11340
  soname_spec='${libname}${release}${major}$shared_ext'
 
11341
  shlibpath_overrides_runpath=yes
 
11342
  shlibpath_var=DYLD_LIBRARY_PATH
 
11343
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
11344
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11345
  if test "$GCC" = yes; then
 
11346
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
11347
  else
 
11348
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11349
  fi
 
11350
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11351
  ;;
 
11352
 
 
11353
dgux*)
 
11354
  version_type=linux
 
11355
  need_lib_prefix=no
 
11356
  need_version=no
 
11357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11358
  soname_spec='${libname}${release}${shared_ext}$major'
 
11359
  shlibpath_var=LD_LIBRARY_PATH
 
11360
  ;;
 
11361
 
 
11362
freebsd1*)
 
11363
  dynamic_linker=no
 
11364
  ;;
 
11365
 
 
11366
freebsd*-gnu*)
 
11367
  version_type=linux
 
11368
  need_lib_prefix=no
 
11369
  need_version=no
 
11370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11371
  soname_spec='${libname}${release}${shared_ext}$major'
 
11372
  shlibpath_var=LD_LIBRARY_PATH
 
11373
  shlibpath_overrides_runpath=no
 
11374
  hardcode_into_libs=yes
 
11375
  dynamic_linker='GNU ld.so'
 
11376
  ;;
 
11377
 
 
11378
freebsd*)
 
11379
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11380
  version_type=freebsd-$objformat
 
11381
  case $version_type in
 
11382
    freebsd-elf*)
 
11383
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11384
      need_version=no
 
11385
      need_lib_prefix=no
 
11386
      ;;
 
11387
    freebsd-*)
 
11388
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11389
      need_version=yes
 
11390
      ;;
 
11391
  esac
 
11392
  shlibpath_var=LD_LIBRARY_PATH
 
11393
  case $host_os in
 
11394
  freebsd2*)
 
11395
    shlibpath_overrides_runpath=yes
 
11396
    ;;
 
11397
  freebsd3.01* | freebsdelf3.01*)
 
11398
    shlibpath_overrides_runpath=yes
 
11399
    hardcode_into_libs=yes
 
11400
    ;;
 
11401
  *) # from 3.2 on
 
11402
    shlibpath_overrides_runpath=no
 
11403
    hardcode_into_libs=yes
 
11404
    ;;
 
11405
  esac
 
11406
  ;;
 
11407
 
 
11408
gnu*)
 
11409
  version_type=linux
 
11410
  need_lib_prefix=no
 
11411
  need_version=no
 
11412
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11413
  soname_spec='${libname}${release}${shared_ext}$major'
 
11414
  shlibpath_var=LD_LIBRARY_PATH
 
11415
  hardcode_into_libs=yes
 
11416
  ;;
 
11417
 
 
11418
hpux9* | hpux10* | hpux11*)
 
11419
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11420
  # link against other versions.
 
11421
  version_type=sunos
 
11422
  need_lib_prefix=no
 
11423
  need_version=no
 
11424
  case "$host_cpu" in
 
11425
  ia64*)
 
11426
    shrext='.so'
 
11427
    hardcode_into_libs=yes
 
11428
    dynamic_linker="$host_os dld.so"
 
11429
    shlibpath_var=LD_LIBRARY_PATH
 
11430
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11431
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11432
    soname_spec='${libname}${release}${shared_ext}$major'
 
11433
    if test "X$HPUX_IA64_MODE" = X32; then
 
11434
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11435
    else
 
11436
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11437
    fi
 
11438
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11439
    ;;
 
11440
   hppa*64*)
 
11441
     shrext='.sl'
 
11442
     hardcode_into_libs=yes
 
11443
     dynamic_linker="$host_os dld.sl"
 
11444
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11445
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11446
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11447
     soname_spec='${libname}${release}${shared_ext}$major'
 
11448
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11449
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11450
     ;;
 
11451
   *)
 
11452
    shrext='.sl'
 
11453
    dynamic_linker="$host_os dld.sl"
 
11454
    shlibpath_var=SHLIB_PATH
 
11455
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11456
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11457
    soname_spec='${libname}${release}${shared_ext}$major'
 
11458
    ;;
 
11459
  esac
 
11460
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11461
  postinstall_cmds='chmod 555 $lib'
 
11462
  ;;
 
11463
 
 
11464
irix5* | irix6* | nonstopux*)
 
11465
  case $host_os in
 
11466
    nonstopux*) version_type=nonstopux ;;
 
11467
    *)
 
11468
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11469
                version_type=linux
 
11470
        else
 
11471
                version_type=irix
 
11472
        fi ;;
 
11473
  esac
 
11474
  need_lib_prefix=no
 
11475
  need_version=no
 
11476
  soname_spec='${libname}${release}${shared_ext}$major'
 
11477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11478
  case $host_os in
 
11479
  irix5* | nonstopux*)
 
11480
    libsuff= shlibsuff=
 
11481
    ;;
 
11482
  *)
 
11483
    case $LD in # libtool.m4 will add one of these switches to LD
 
11484
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11485
      libsuff= shlibsuff= libmagic=32-bit;;
 
11486
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11487
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11488
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11489
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11490
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11491
    esac
 
11492
    ;;
 
11493
  esac
 
11494
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11495
  shlibpath_overrides_runpath=no
 
11496
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11497
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11498
  hardcode_into_libs=yes
 
11499
  ;;
 
11500
 
 
11501
# No shared lib support for Linux oldld, aout, or coff.
 
11502
linux*oldld* | linux*aout* | linux*coff*)
 
11503
  dynamic_linker=no
 
11504
  ;;
 
11505
 
 
11506
# This must be Linux ELF.
 
11507
linux*)
 
11508
  version_type=linux
 
11509
  need_lib_prefix=no
 
11510
  need_version=no
 
11511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11512
  soname_spec='${libname}${release}${shared_ext}$major'
 
11513
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11514
  libsuff=
 
11515
  if test "x$LINUX_64_MODE" = x64; then
 
11516
    # Some platforms are per default 64-bit, so there's no /lib64
 
11517
    if test -d /lib64; then
 
11518
      libsuff=64
 
11519
    fi
 
11520
  fi
 
11521
  shlibpath_var=LD_LIBRARY_PATH
 
11522
  shlibpath_overrides_runpath=no
 
11523
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
11524
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
11525
  # This implies no fast_install, which is unacceptable.
 
11526
  # Some rework will be needed to allow for fast_install
 
11527
  # before this can be enabled.
 
11528
  hardcode_into_libs=yes
 
11529
 
 
11530
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11531
  # powerpc, because MkLinux only supported shared libraries with the
 
11532
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11533
  # most powerpc-linux boxes support dynamic linking these days and
 
11534
  # people can always --disable-shared, the test was removed, and we
 
11535
  # assume the GNU/Linux dynamic linker is in use.
 
11536
  dynamic_linker='GNU/Linux ld.so'
 
11537
  ;;
 
11538
 
 
11539
netbsd*)
 
11540
  version_type=sunos
 
11541
  need_lib_prefix=no
 
11542
  need_version=no
 
11543
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11544
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11545
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11546
    dynamic_linker='NetBSD (a.out) ld.so'
 
11547
  else
 
11548
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
11549
    soname_spec='${libname}${release}${shared_ext}$major'
 
11550
    dynamic_linker='NetBSD ld.elf_so'
 
11551
  fi
 
11552
  shlibpath_var=LD_LIBRARY_PATH
 
11553
  shlibpath_overrides_runpath=yes
 
11554
  hardcode_into_libs=yes
 
11555
  ;;
 
11556
 
 
11557
newsos6)
 
11558
  version_type=linux
 
11559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11560
  shlibpath_var=LD_LIBRARY_PATH
 
11561
  shlibpath_overrides_runpath=yes
 
11562
  ;;
 
11563
 
 
11564
nto-qnx*)
 
11565
  version_type=linux
 
11566
  need_lib_prefix=no
 
11567
  need_version=no
 
11568
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11569
  soname_spec='${libname}${release}${shared_ext}$major'
 
11570
  shlibpath_var=LD_LIBRARY_PATH
 
11571
  shlibpath_overrides_runpath=yes
 
11572
  ;;
 
11573
 
 
11574
openbsd*)
 
11575
  version_type=sunos
 
11576
  need_lib_prefix=no
 
11577
  need_version=no
 
11578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11579
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11580
  shlibpath_var=LD_LIBRARY_PATH
 
11581
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11582
    case $host_os in
 
11583
      openbsd2.[89] | openbsd2.[89].*)
 
11584
        shlibpath_overrides_runpath=no
 
11585
        ;;
 
11586
      *)
 
11587
        shlibpath_overrides_runpath=yes
 
11588
        ;;
 
11589
      esac
 
11590
  else
 
11591
    shlibpath_overrides_runpath=yes
 
11592
  fi
 
11593
  ;;
 
11594
 
 
11595
os2*)
 
11596
  libname_spec='$name'
 
11597
  shrext=".dll"
 
11598
  need_lib_prefix=no
 
11599
  library_names_spec='$libname${shared_ext} $libname.a'
 
11600
  dynamic_linker='OS/2 ld.exe'
 
11601
  shlibpath_var=LIBPATH
 
11602
  ;;
 
11603
 
 
11604
osf3* | osf4* | osf5*)
 
11605
  version_type=osf
 
11606
  need_lib_prefix=no
 
11607
  need_version=no
 
11608
  soname_spec='${libname}${release}${shared_ext}$major'
 
11609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11610
  shlibpath_var=LD_LIBRARY_PATH
 
11611
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11612
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11613
  ;;
 
11614
 
 
11615
sco3.2v5*)
 
11616
  version_type=osf
 
11617
  soname_spec='${libname}${release}${shared_ext}$major'
 
11618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11619
  shlibpath_var=LD_LIBRARY_PATH
 
11620
  ;;
 
11621
 
 
11622
solaris*)
 
11623
  version_type=linux
 
11624
  need_lib_prefix=no
 
11625
  need_version=no
 
11626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11627
  soname_spec='${libname}${release}${shared_ext}$major'
 
11628
  shlibpath_var=LD_LIBRARY_PATH
 
11629
  shlibpath_overrides_runpath=yes
 
11630
  hardcode_into_libs=yes
 
11631
  # ldd complains unless libraries are executable
 
11632
  postinstall_cmds='chmod +x $lib'
 
11633
  ;;
 
11634
 
 
11635
sunos4*)
 
11636
  version_type=sunos
 
11637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11638
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11639
  shlibpath_var=LD_LIBRARY_PATH
 
11640
  shlibpath_overrides_runpath=yes
 
11641
  if test "$with_gnu_ld" = yes; then
 
11642
    need_lib_prefix=no
 
11643
  fi
 
11644
  need_version=yes
 
11645
  ;;
 
11646
 
 
11647
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11648
  version_type=linux
 
11649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11650
  soname_spec='${libname}${release}${shared_ext}$major'
 
11651
  shlibpath_var=LD_LIBRARY_PATH
 
11652
  case $host_vendor in
 
11653
    sni)
 
11654
      shlibpath_overrides_runpath=no
 
11655
      need_lib_prefix=no
 
11656
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11657
      runpath_var=LD_RUN_PATH
 
11658
      ;;
 
11659
    siemens)
 
11660
      need_lib_prefix=no
 
11661
      ;;
 
11662
    motorola)
 
11663
      need_lib_prefix=no
 
11664
      need_version=no
 
11665
      shlibpath_overrides_runpath=no
 
11666
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11667
      ;;
 
11668
  esac
 
11669
  ;;
 
11670
 
 
11671
sysv4*MP*)
 
11672
  if test -d /usr/nec ;then
 
11673
    version_type=linux
 
11674
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11675
    soname_spec='$libname${shared_ext}.$major'
 
11676
    shlibpath_var=LD_LIBRARY_PATH
 
11677
  fi
 
11678
  ;;
 
11679
 
 
11680
uts4*)
 
11681
  version_type=linux
 
11682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11683
  soname_spec='${libname}${release}${shared_ext}$major'
 
11684
  shlibpath_var=LD_LIBRARY_PATH
 
11685
  ;;
 
11686
 
 
11687
*)
 
11688
  dynamic_linker=no
 
11689
  ;;
 
11690
esac
 
11691
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11692
echo "${ECHO_T}$dynamic_linker" >&6; }
 
11693
test "$dynamic_linker" = no && can_build_shared=no
 
11694
 
 
11695
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11696
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
11697
hardcode_action=
 
11698
if test -n "$hardcode_libdir_flag_spec" || \
 
11699
   test -n "$runpath_var " || \
 
11700
   test "X$hardcode_automatic"="Xyes" ; then
 
11701
 
 
11702
  # We can hardcode non-existant directories.
 
11703
  if test "$hardcode_direct" != no &&
 
11704
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11705
     # have to relink, otherwise we might link with an installed library
 
11706
     # when we should be linking with a yet-to-be-installed one
 
11707
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11708
     test "$hardcode_minus_L" != no; then
 
11709
    # Linking always hardcodes the temporary library directory.
 
11710
    hardcode_action=relink
 
11711
  else
 
11712
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11713
    hardcode_action=immediate
 
11714
  fi
 
11715
else
 
11716
  # We cannot hardcode anything, or else we can only hardcode existing
 
11717
  # directories.
 
11718
  hardcode_action=unsupported
 
11719
fi
 
11720
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
11721
echo "${ECHO_T}$hardcode_action" >&6; }
 
11722
 
 
11723
if test "$hardcode_action" = relink; then
 
11724
  # Fast installation is not supported
 
11725
  enable_fast_install=no
 
11726
elif test "$shlibpath_overrides_runpath" = yes ||
 
11727
     test "$enable_shared" = no; then
 
11728
  # Fast installation is not necessary
 
11729
  enable_fast_install=needless
 
11730
fi
 
11731
 
 
11732
striplib=
 
11733
old_striplib=
 
11734
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11735
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
11736
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11737
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11738
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11739
  { echo "$as_me:$LINENO: result: yes" >&5
 
11740
echo "${ECHO_T}yes" >&6; }
 
11741
else
 
11742
# FIXME - insert some real tests, host_os isn't really good enough
 
11743
  case $host_os in
 
11744
   darwin*)
 
11745
       if test -n "$STRIP" ; then
 
11746
         striplib="$STRIP -x"
 
11747
         { echo "$as_me:$LINENO: result: yes" >&5
 
11748
echo "${ECHO_T}yes" >&6; }
 
11749
       else
 
11750
  { echo "$as_me:$LINENO: result: no" >&5
 
11751
echo "${ECHO_T}no" >&6; }
 
11752
fi
 
11753
       ;;
 
11754
   *)
 
11755
  { echo "$as_me:$LINENO: result: no" >&5
 
11756
echo "${ECHO_T}no" >&6; }
 
11757
    ;;
 
11758
  esac  
 
11759
fi
 
11760
 
 
11761
if test "x$enable_dlopen" != xyes; then
 
11762
  enable_dlopen=unknown
 
11763
  enable_dlopen_self=unknown
 
11764
  enable_dlopen_self_static=unknown
 
11765
else
 
11766
  lt_cv_dlopen=no
 
11767
  lt_cv_dlopen_libs=
 
11768
 
 
11769
  case $host_os in
 
11770
  beos*)
 
11771
    lt_cv_dlopen="load_add_on"
 
11772
    lt_cv_dlopen_libs=
 
11773
    lt_cv_dlopen_self=yes
 
11774
    ;;
 
11775
 
 
11776
  mingw* | pw32*)
 
11777
    lt_cv_dlopen="LoadLibrary"
 
11778
    lt_cv_dlopen_libs=
 
11779
   ;;
 
11780
 
 
11781
  cygwin*)
 
11782
    lt_cv_dlopen="dlopen"
 
11783
    lt_cv_dlopen_libs=
 
11784
   ;;
 
11785
 
 
11786
  darwin*)
 
11787
  # if libdl is installed we need to link against it
 
11788
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11789
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
11790
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11792
else
 
11793
  ac_check_lib_save_LIBS=$LIBS
 
11794
LIBS="-ldl  $LIBS"
 
11795
cat >conftest.$ac_ext <<_ACEOF
 
11796
/* confdefs.h.  */
 
11797
_ACEOF
 
11798
cat confdefs.h >>conftest.$ac_ext
 
11799
cat >>conftest.$ac_ext <<_ACEOF
 
11800
/* end confdefs.h.  */
 
11801
 
 
11802
/* Override any GCC internal prototype to avoid an error.
 
11803
   Use char because int might match the return type of a GCC
 
11804
   builtin and then its argument prototype would still apply.  */
 
11805
#ifdef __cplusplus
 
11806
extern "C"
 
11807
#endif
 
11808
char dlopen ();
 
11809
int
 
11810
main ()
 
11811
{
 
11812
return dlopen ();
 
11813
  ;
 
11814
  return 0;
 
11815
}
 
11816
_ACEOF
 
11817
rm -f conftest.$ac_objext conftest$ac_exeext
 
11818
if { (ac_try="$ac_link"
 
11819
case "(($ac_try" in
 
11820
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11821
  *) ac_try_echo=$ac_try;;
 
11822
esac
 
11823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11824
  (eval "$ac_link") 2>conftest.er1
 
11825
  ac_status=$?
 
11826
  grep -v '^ *+' conftest.er1 >conftest.err
 
11827
  rm -f conftest.er1
 
11828
  cat conftest.err >&5
 
11829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11830
  (exit $ac_status); } && {
 
11831
         test -z "$ac_c_werror_flag" ||
 
11832
         test ! -s conftest.err
 
11833
       } && test -s conftest$ac_exeext &&
 
11834
       $as_test_x conftest$ac_exeext; then
 
11835
  ac_cv_lib_dl_dlopen=yes
 
11836
else
 
11837
  echo "$as_me: failed program was:" >&5
 
11838
sed 's/^/| /' conftest.$ac_ext >&5
 
11839
 
 
11840
        ac_cv_lib_dl_dlopen=no
 
11841
fi
 
11842
 
 
11843
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11844
      conftest$ac_exeext conftest.$ac_ext
 
11845
LIBS=$ac_check_lib_save_LIBS
 
11846
fi
 
11847
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11848
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
11849
if test $ac_cv_lib_dl_dlopen = yes; then
 
11850
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11851
else
 
11852
  
 
11853
    lt_cv_dlopen="dyld"
 
11854
    lt_cv_dlopen_libs=
 
11855
    lt_cv_dlopen_self=yes
 
11856
    
 
11857
fi
 
11858
 
 
11859
   ;;
 
11860
    
 
11861
  *)
 
11862
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
11863
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
11864
if test "${ac_cv_func_shl_load+set}" = set; then
 
11865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11866
else
 
11867
  cat >conftest.$ac_ext <<_ACEOF
 
11868
/* confdefs.h.  */
 
11869
_ACEOF
 
11870
cat confdefs.h >>conftest.$ac_ext
 
11871
cat >>conftest.$ac_ext <<_ACEOF
 
11872
/* end confdefs.h.  */
 
11873
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11874
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11875
#define shl_load innocuous_shl_load
 
11876
 
 
11877
/* System header to define __stub macros and hopefully few prototypes,
 
11878
    which can conflict with char shl_load (); below.
 
11879
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11880
    <limits.h> exists even on freestanding compilers.  */
 
11881
 
 
11882
#ifdef __STDC__
 
11883
# include <limits.h>
 
11884
#else
 
11885
# include <assert.h>
 
11886
#endif
 
11887
 
 
11888
#undef shl_load
 
11889
 
 
11890
/* Override any GCC internal prototype to avoid an error.
 
11891
   Use char because int might match the return type of a GCC
 
11892
   builtin and then its argument prototype would still apply.  */
 
11893
#ifdef __cplusplus
 
11894
extern "C"
 
11895
#endif
 
11896
char shl_load ();
 
11897
/* The GNU C library defines this for functions which it implements
 
11898
    to always fail with ENOSYS.  Some functions are actually named
 
11899
    something starting with __ and the normal name is an alias.  */
 
11900
#if defined __stub_shl_load || defined __stub___shl_load
 
11901
choke me
 
11902
#endif
 
11903
 
 
11904
int
 
11905
main ()
 
11906
{
 
11907
return shl_load ();
 
11908
  ;
 
11909
  return 0;
 
11910
}
 
11911
_ACEOF
 
11912
rm -f conftest.$ac_objext conftest$ac_exeext
 
11913
if { (ac_try="$ac_link"
 
11914
case "(($ac_try" in
 
11915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11916
  *) ac_try_echo=$ac_try;;
 
11917
esac
 
11918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11919
  (eval "$ac_link") 2>conftest.er1
 
11920
  ac_status=$?
 
11921
  grep -v '^ *+' conftest.er1 >conftest.err
 
11922
  rm -f conftest.er1
 
11923
  cat conftest.err >&5
 
11924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11925
  (exit $ac_status); } && {
 
11926
         test -z "$ac_c_werror_flag" ||
 
11927
         test ! -s conftest.err
 
11928
       } && test -s conftest$ac_exeext &&
 
11929
       $as_test_x conftest$ac_exeext; then
 
11930
  ac_cv_func_shl_load=yes
 
11931
else
 
11932
  echo "$as_me: failed program was:" >&5
 
11933
sed 's/^/| /' conftest.$ac_ext >&5
 
11934
 
 
11935
        ac_cv_func_shl_load=no
 
11936
fi
 
11937
 
 
11938
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11939
      conftest$ac_exeext conftest.$ac_ext
 
11940
fi
 
11941
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11942
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
11943
if test $ac_cv_func_shl_load = yes; then
 
11944
  lt_cv_dlopen="shl_load"
 
11945
else
 
11946
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11947
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
11948
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11950
else
 
11951
  ac_check_lib_save_LIBS=$LIBS
 
11952
LIBS="-ldld  $LIBS"
 
11953
cat >conftest.$ac_ext <<_ACEOF
 
11954
/* confdefs.h.  */
 
11955
_ACEOF
 
11956
cat confdefs.h >>conftest.$ac_ext
 
11957
cat >>conftest.$ac_ext <<_ACEOF
 
11958
/* end confdefs.h.  */
 
11959
 
 
11960
/* Override any GCC internal prototype to avoid an error.
 
11961
   Use char because int might match the return type of a GCC
 
11962
   builtin and then its argument prototype would still apply.  */
 
11963
#ifdef __cplusplus
 
11964
extern "C"
 
11965
#endif
 
11966
char shl_load ();
 
11967
int
 
11968
main ()
 
11969
{
 
11970
return shl_load ();
 
11971
  ;
 
11972
  return 0;
 
11973
}
 
11974
_ACEOF
 
11975
rm -f conftest.$ac_objext conftest$ac_exeext
 
11976
if { (ac_try="$ac_link"
 
11977
case "(($ac_try" in
 
11978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11979
  *) ac_try_echo=$ac_try;;
 
11980
esac
 
11981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11982
  (eval "$ac_link") 2>conftest.er1
 
11983
  ac_status=$?
 
11984
  grep -v '^ *+' conftest.er1 >conftest.err
 
11985
  rm -f conftest.er1
 
11986
  cat conftest.err >&5
 
11987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11988
  (exit $ac_status); } && {
 
11989
         test -z "$ac_c_werror_flag" ||
 
11990
         test ! -s conftest.err
 
11991
       } && test -s conftest$ac_exeext &&
 
11992
       $as_test_x conftest$ac_exeext; then
 
11993
  ac_cv_lib_dld_shl_load=yes
 
11994
else
 
11995
  echo "$as_me: failed program was:" >&5
 
11996
sed 's/^/| /' conftest.$ac_ext >&5
 
11997
 
 
11998
        ac_cv_lib_dld_shl_load=no
 
11999
fi
 
12000
 
 
12001
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12002
      conftest$ac_exeext conftest.$ac_ext
 
12003
LIBS=$ac_check_lib_save_LIBS
 
12004
fi
 
12005
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12006
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
12007
if test $ac_cv_lib_dld_shl_load = yes; then
 
12008
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12009
else
 
12010
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
12011
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
12012
if test "${ac_cv_func_dlopen+set}" = set; then
 
12013
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12014
else
 
12015
  cat >conftest.$ac_ext <<_ACEOF
 
12016
/* confdefs.h.  */
 
12017
_ACEOF
 
12018
cat confdefs.h >>conftest.$ac_ext
 
12019
cat >>conftest.$ac_ext <<_ACEOF
 
12020
/* end confdefs.h.  */
 
12021
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12022
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12023
#define dlopen innocuous_dlopen
 
12024
 
 
12025
/* System header to define __stub macros and hopefully few prototypes,
 
12026
    which can conflict with char dlopen (); below.
 
12027
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12028
    <limits.h> exists even on freestanding compilers.  */
 
12029
 
 
12030
#ifdef __STDC__
 
12031
# include <limits.h>
 
12032
#else
 
12033
# include <assert.h>
 
12034
#endif
 
12035
 
 
12036
#undef dlopen
 
12037
 
 
12038
/* Override any GCC internal prototype to avoid an error.
 
12039
   Use char because int might match the return type of a GCC
 
12040
   builtin and then its argument prototype would still apply.  */
 
12041
#ifdef __cplusplus
 
12042
extern "C"
 
12043
#endif
 
12044
char dlopen ();
 
12045
/* The GNU C library defines this for functions which it implements
 
12046
    to always fail with ENOSYS.  Some functions are actually named
 
12047
    something starting with __ and the normal name is an alias.  */
 
12048
#if defined __stub_dlopen || defined __stub___dlopen
 
12049
choke me
 
12050
#endif
 
12051
 
 
12052
int
 
12053
main ()
 
12054
{
 
12055
return dlopen ();
 
12056
  ;
 
12057
  return 0;
 
12058
}
 
12059
_ACEOF
 
12060
rm -f conftest.$ac_objext conftest$ac_exeext
 
12061
if { (ac_try="$ac_link"
 
12062
case "(($ac_try" in
 
12063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12064
  *) ac_try_echo=$ac_try;;
 
12065
esac
 
12066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12067
  (eval "$ac_link") 2>conftest.er1
 
12068
  ac_status=$?
 
12069
  grep -v '^ *+' conftest.er1 >conftest.err
 
12070
  rm -f conftest.er1
 
12071
  cat conftest.err >&5
 
12072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12073
  (exit $ac_status); } && {
 
12074
         test -z "$ac_c_werror_flag" ||
 
12075
         test ! -s conftest.err
 
12076
       } && test -s conftest$ac_exeext &&
 
12077
       $as_test_x conftest$ac_exeext; then
 
12078
  ac_cv_func_dlopen=yes
 
12079
else
 
12080
  echo "$as_me: failed program was:" >&5
 
12081
sed 's/^/| /' conftest.$ac_ext >&5
 
12082
 
 
12083
        ac_cv_func_dlopen=no
 
12084
fi
 
12085
 
 
12086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12087
      conftest$ac_exeext conftest.$ac_ext
 
12088
fi
 
12089
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12090
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
12091
if test $ac_cv_func_dlopen = yes; then
 
12092
  lt_cv_dlopen="dlopen"
 
12093
else
 
12094
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12095
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
12096
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12098
else
 
12099
  ac_check_lib_save_LIBS=$LIBS
 
12100
LIBS="-ldl  $LIBS"
 
12101
cat >conftest.$ac_ext <<_ACEOF
 
12102
/* confdefs.h.  */
 
12103
_ACEOF
 
12104
cat confdefs.h >>conftest.$ac_ext
 
12105
cat >>conftest.$ac_ext <<_ACEOF
 
12106
/* end confdefs.h.  */
 
12107
 
 
12108
/* Override any GCC internal prototype to avoid an error.
 
12109
   Use char because int might match the return type of a GCC
 
12110
   builtin and then its argument prototype would still apply.  */
 
12111
#ifdef __cplusplus
 
12112
extern "C"
 
12113
#endif
 
12114
char dlopen ();
 
12115
int
 
12116
main ()
 
12117
{
 
12118
return dlopen ();
 
12119
  ;
 
12120
  return 0;
 
12121
}
 
12122
_ACEOF
 
12123
rm -f conftest.$ac_objext conftest$ac_exeext
 
12124
if { (ac_try="$ac_link"
 
12125
case "(($ac_try" in
 
12126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12127
  *) ac_try_echo=$ac_try;;
 
12128
esac
 
12129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12130
  (eval "$ac_link") 2>conftest.er1
 
12131
  ac_status=$?
 
12132
  grep -v '^ *+' conftest.er1 >conftest.err
 
12133
  rm -f conftest.er1
 
12134
  cat conftest.err >&5
 
12135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12136
  (exit $ac_status); } && {
 
12137
         test -z "$ac_c_werror_flag" ||
 
12138
         test ! -s conftest.err
 
12139
       } && test -s conftest$ac_exeext &&
 
12140
       $as_test_x conftest$ac_exeext; then
 
12141
  ac_cv_lib_dl_dlopen=yes
 
12142
else
 
12143
  echo "$as_me: failed program was:" >&5
 
12144
sed 's/^/| /' conftest.$ac_ext >&5
 
12145
 
 
12146
        ac_cv_lib_dl_dlopen=no
 
12147
fi
 
12148
 
 
12149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12150
      conftest$ac_exeext conftest.$ac_ext
 
12151
LIBS=$ac_check_lib_save_LIBS
 
12152
fi
 
12153
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12154
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
12155
if test $ac_cv_lib_dl_dlopen = yes; then
 
12156
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12157
else
 
12158
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12159
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
12160
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12162
else
 
12163
  ac_check_lib_save_LIBS=$LIBS
 
12164
LIBS="-lsvld  $LIBS"
 
12165
cat >conftest.$ac_ext <<_ACEOF
 
12166
/* confdefs.h.  */
 
12167
_ACEOF
 
12168
cat confdefs.h >>conftest.$ac_ext
 
12169
cat >>conftest.$ac_ext <<_ACEOF
 
12170
/* end confdefs.h.  */
 
12171
 
 
12172
/* Override any GCC internal prototype to avoid an error.
 
12173
   Use char because int might match the return type of a GCC
 
12174
   builtin and then its argument prototype would still apply.  */
 
12175
#ifdef __cplusplus
 
12176
extern "C"
 
12177
#endif
 
12178
char dlopen ();
 
12179
int
 
12180
main ()
 
12181
{
 
12182
return dlopen ();
 
12183
  ;
 
12184
  return 0;
 
12185
}
 
12186
_ACEOF
 
12187
rm -f conftest.$ac_objext conftest$ac_exeext
 
12188
if { (ac_try="$ac_link"
 
12189
case "(($ac_try" in
 
12190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12191
  *) ac_try_echo=$ac_try;;
 
12192
esac
 
12193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12194
  (eval "$ac_link") 2>conftest.er1
 
12195
  ac_status=$?
 
12196
  grep -v '^ *+' conftest.er1 >conftest.err
 
12197
  rm -f conftest.er1
 
12198
  cat conftest.err >&5
 
12199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12200
  (exit $ac_status); } && {
 
12201
         test -z "$ac_c_werror_flag" ||
 
12202
         test ! -s conftest.err
 
12203
       } && test -s conftest$ac_exeext &&
 
12204
       $as_test_x conftest$ac_exeext; then
 
12205
  ac_cv_lib_svld_dlopen=yes
 
12206
else
 
12207
  echo "$as_me: failed program was:" >&5
 
12208
sed 's/^/| /' conftest.$ac_ext >&5
 
12209
 
 
12210
        ac_cv_lib_svld_dlopen=no
 
12211
fi
 
12212
 
 
12213
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12214
      conftest$ac_exeext conftest.$ac_ext
 
12215
LIBS=$ac_check_lib_save_LIBS
 
12216
fi
 
12217
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12218
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
12219
if test $ac_cv_lib_svld_dlopen = yes; then
 
12220
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12221
else
 
12222
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12223
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
12224
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12226
else
 
12227
  ac_check_lib_save_LIBS=$LIBS
 
12228
LIBS="-ldld  $LIBS"
 
12229
cat >conftest.$ac_ext <<_ACEOF
 
12230
/* confdefs.h.  */
 
12231
_ACEOF
 
12232
cat confdefs.h >>conftest.$ac_ext
 
12233
cat >>conftest.$ac_ext <<_ACEOF
 
12234
/* end confdefs.h.  */
 
12235
 
 
12236
/* Override any GCC internal prototype to avoid an error.
 
12237
   Use char because int might match the return type of a GCC
 
12238
   builtin and then its argument prototype would still apply.  */
 
12239
#ifdef __cplusplus
 
12240
extern "C"
 
12241
#endif
 
12242
char dld_link ();
 
12243
int
 
12244
main ()
 
12245
{
 
12246
return dld_link ();
 
12247
  ;
 
12248
  return 0;
 
12249
}
 
12250
_ACEOF
 
12251
rm -f conftest.$ac_objext conftest$ac_exeext
 
12252
if { (ac_try="$ac_link"
 
12253
case "(($ac_try" in
 
12254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12255
  *) ac_try_echo=$ac_try;;
 
12256
esac
 
12257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12258
  (eval "$ac_link") 2>conftest.er1
 
12259
  ac_status=$?
 
12260
  grep -v '^ *+' conftest.er1 >conftest.err
 
12261
  rm -f conftest.er1
 
12262
  cat conftest.err >&5
 
12263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12264
  (exit $ac_status); } && {
 
12265
         test -z "$ac_c_werror_flag" ||
 
12266
         test ! -s conftest.err
 
12267
       } && test -s conftest$ac_exeext &&
 
12268
       $as_test_x conftest$ac_exeext; then
 
12269
  ac_cv_lib_dld_dld_link=yes
 
12270
else
 
12271
  echo "$as_me: failed program was:" >&5
 
12272
sed 's/^/| /' conftest.$ac_ext >&5
 
12273
 
 
12274
        ac_cv_lib_dld_dld_link=no
 
12275
fi
 
12276
 
 
12277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12278
      conftest$ac_exeext conftest.$ac_ext
 
12279
LIBS=$ac_check_lib_save_LIBS
 
12280
fi
 
12281
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12282
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
12283
if test $ac_cv_lib_dld_dld_link = yes; then
 
12284
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12285
fi
 
12286
 
 
12287
              
 
12288
fi
 
12289
 
 
12290
            
 
12291
fi
 
12292
 
 
12293
          
 
12294
fi
 
12295
 
 
12296
        
 
12297
fi
 
12298
 
 
12299
      
 
12300
fi
 
12301
 
 
12302
    ;;
 
12303
  esac
 
12304
 
 
12305
  if test "x$lt_cv_dlopen" != xno; then
 
12306
    enable_dlopen=yes
 
12307
  else
 
12308
    enable_dlopen=no
 
12309
  fi
 
12310
 
 
12311
  case $lt_cv_dlopen in
 
12312
  dlopen)
 
12313
    save_CPPFLAGS="$CPPFLAGS"
 
12314
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12315
 
 
12316
    save_LDFLAGS="$LDFLAGS"
 
12317
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12318
 
 
12319
    save_LIBS="$LIBS"
 
12320
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12321
 
 
12322
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12323
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
12324
if test "${lt_cv_dlopen_self+set}" = set; then
 
12325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12326
else
 
12327
          if test "$cross_compiling" = yes; then :
 
12328
  lt_cv_dlopen_self=cross
 
12329
else
 
12330
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12331
  lt_status=$lt_dlunknown
 
12332
  cat > conftest.$ac_ext <<EOF
 
12333
#line __oline__ "configure"
 
12334
#include "confdefs.h"
 
12335
 
 
12336
#if HAVE_DLFCN_H
 
12337
#include <dlfcn.h>
 
12338
#endif
 
12339
 
 
12340
#include <stdio.h>
 
12341
 
 
12342
#ifdef RTLD_GLOBAL
 
12343
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12344
#else
 
12345
#  ifdef DL_GLOBAL
 
12346
#    define LT_DLGLOBAL         DL_GLOBAL
 
12347
#  else
 
12348
#    define LT_DLGLOBAL         0
 
12349
#  endif
 
12350
#endif
 
12351
 
 
12352
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12353
   find out it does not work in some platform. */
 
12354
#ifndef LT_DLLAZY_OR_NOW
 
12355
#  ifdef RTLD_LAZY
 
12356
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12357
#  else
 
12358
#    ifdef DL_LAZY
 
12359
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12360
#    else
 
12361
#      ifdef RTLD_NOW
 
12362
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12363
#      else
 
12364
#        ifdef DL_NOW
 
12365
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12366
#        else
 
12367
#          define LT_DLLAZY_OR_NOW      0
 
12368
#        endif
 
12369
#      endif
 
12370
#    endif
 
12371
#  endif
 
12372
#endif
 
12373
 
 
12374
#ifdef __cplusplus
 
12375
extern "C" void exit (int);
 
12376
#endif
 
12377
 
 
12378
void fnord() { int i=42;}
 
12379
int main ()
 
12380
{
 
12381
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12382
  int status = $lt_dlunknown;
 
12383
 
 
12384
  if (self)
 
12385
    {
 
12386
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12387
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12388
      /* dlclose (self); */
 
12389
    }
 
12390
 
 
12391
    exit (status);
 
12392
}
 
12393
EOF
 
12394
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12395
  (eval $ac_link) 2>&5
 
12396
  ac_status=$?
 
12397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12398
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12399
    (./conftest; exit; ) 2>/dev/null
 
12400
    lt_status=$?
 
12401
    case x$lt_status in
 
12402
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12403
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12404
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12405
    esac
 
12406
  else :
 
12407
    # compilation failed
 
12408
    lt_cv_dlopen_self=no
 
12409
  fi
 
12410
fi
 
12411
rm -fr conftest*
 
12412
 
 
12413
    
 
12414
fi
 
12415
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12416
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
12417
 
 
12418
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12419
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12420
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12421
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
12422
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12424
else
 
12425
          if test "$cross_compiling" = yes; then :
 
12426
  lt_cv_dlopen_self_static=cross
 
12427
else
 
12428
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12429
  lt_status=$lt_dlunknown
 
12430
  cat > conftest.$ac_ext <<EOF
 
12431
#line __oline__ "configure"
 
12432
#include "confdefs.h"
 
12433
 
 
12434
#if HAVE_DLFCN_H
 
12435
#include <dlfcn.h>
 
12436
#endif
 
12437
 
 
12438
#include <stdio.h>
 
12439
 
 
12440
#ifdef RTLD_GLOBAL
 
12441
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12442
#else
 
12443
#  ifdef DL_GLOBAL
 
12444
#    define LT_DLGLOBAL         DL_GLOBAL
 
12445
#  else
 
12446
#    define LT_DLGLOBAL         0
 
12447
#  endif
 
12448
#endif
 
12449
 
 
12450
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12451
   find out it does not work in some platform. */
 
12452
#ifndef LT_DLLAZY_OR_NOW
 
12453
#  ifdef RTLD_LAZY
 
12454
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12455
#  else
 
12456
#    ifdef DL_LAZY
 
12457
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12458
#    else
 
12459
#      ifdef RTLD_NOW
 
12460
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12461
#      else
 
12462
#        ifdef DL_NOW
 
12463
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12464
#        else
 
12465
#          define LT_DLLAZY_OR_NOW      0
 
12466
#        endif
 
12467
#      endif
 
12468
#    endif
 
12469
#  endif
 
12470
#endif
 
12471
 
 
12472
#ifdef __cplusplus
 
12473
extern "C" void exit (int);
 
12474
#endif
 
12475
 
 
12476
void fnord() { int i=42;}
 
12477
int main ()
 
12478
{
 
12479
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12480
  int status = $lt_dlunknown;
 
12481
 
 
12482
  if (self)
 
12483
    {
 
12484
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12485
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12486
      /* dlclose (self); */
 
12487
    }
 
12488
 
 
12489
    exit (status);
 
12490
}
 
12491
EOF
 
12492
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12493
  (eval $ac_link) 2>&5
 
12494
  ac_status=$?
 
12495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12496
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12497
    (./conftest; exit; ) 2>/dev/null
 
12498
    lt_status=$?
 
12499
    case x$lt_status in
 
12500
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12501
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12502
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12503
    esac
 
12504
  else :
 
12505
    # compilation failed
 
12506
    lt_cv_dlopen_self_static=no
 
12507
  fi
 
12508
fi
 
12509
rm -fr conftest*
 
12510
 
 
12511
      
 
12512
fi
 
12513
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12514
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
12515
    fi
 
12516
 
 
12517
    CPPFLAGS="$save_CPPFLAGS"
 
12518
    LDFLAGS="$save_LDFLAGS"
 
12519
    LIBS="$save_LIBS"
 
12520
    ;;
 
12521
  esac
 
12522
 
 
12523
  case $lt_cv_dlopen_self in
 
12524
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12525
  *) enable_dlopen_self=unknown ;;
 
12526
  esac
 
12527
 
 
12528
  case $lt_cv_dlopen_self_static in
 
12529
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12530
  *) enable_dlopen_self_static=unknown ;;
 
12531
  esac
 
12532
fi
 
12533
 
 
12534
 
 
12535
# Report which librarie types wil actually be built
 
12536
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12537
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
12538
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12539
echo "${ECHO_T}$can_build_shared" >&6; }
 
12540
 
 
12541
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12542
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
12543
test "$can_build_shared" = "no" && enable_shared=no
 
12544
 
 
12545
# On AIX, shared libraries and static libraries use the same namespace, and
 
12546
# are all built from PIC.
 
12547
case "$host_os" in
 
12548
aix3*)
 
12549
  test "$enable_shared" = yes && enable_static=no
 
12550
  if test -n "$RANLIB"; then
 
12551
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12552
    postinstall_cmds='$RANLIB $lib'
 
12553
  fi
 
12554
  ;;
 
12555
 
 
12556
aix4*)
 
12557
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12558
    test "$enable_shared" = yes && enable_static=no
 
12559
  fi
 
12560
  ;;
 
12561
  darwin* | rhapsody*)
 
12562
  if test "$GCC" = yes; then
 
12563
    archive_cmds_need_lc=no
 
12564
    case "$host_os" in
 
12565
    rhapsody* | darwin1.[012])
 
12566
      allow_undefined_flag='-Wl,-undefined -Wl,suppress'
 
12567
      ;;
 
12568
    *) # Darwin 1.3 on
 
12569
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12570
        allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
12571
      else
 
12572
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
12573
          10.012)
 
12574
            allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
12575
            ;;
 
12576
          10.*)
 
12577
            allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
12578
            ;;
 
12579
        esac
 
12580
      fi
 
12581
      ;;
 
12582
    esac
 
12583
    output_verbose_link_cmd='echo'
 
12584
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
12585
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
12586
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12587
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12588
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12589
    hardcode_direct=no
 
12590
    hardcode_automatic=yes
 
12591
    hardcode_shlibpath_var=unsupported
 
12592
    whole_archive_flag_spec='-all_load $convenience'
 
12593
    link_all_deplibs=yes
 
12594
  else
 
12595
    ld_shlibs=no
 
12596
  fi  
 
12597
    ;;  
 
12598
esac
 
12599
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12600
echo "${ECHO_T}$enable_shared" >&6; }
 
12601
 
 
12602
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12603
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
12604
# Make sure either enable_shared or enable_static is yes.
 
12605
test "$enable_shared" = yes || enable_static=yes
 
12606
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
12607
echo "${ECHO_T}$enable_static" >&6; }
 
12608
 
 
12609
# The else clause should only fire when bootstrapping the
 
12610
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12611
# with your package, and you will get complaints that there are
 
12612
# no rules to generate ltmain.sh.
 
12613
if test -f "$ltmain"; then
 
12614
  # See if we are running on zsh, and set the options which allow our commands through
 
12615
  # without removal of \ escapes.
 
12616
  if test -n "${ZSH_VERSION+set}" ; then
 
12617
    setopt NO_GLOB_SUBST
 
12618
  fi  
 
12619
  # Now quote all the things that may contain metacharacters while being
 
12620
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12621
  # variables and quote the copies for generation of the libtool script.
 
12622
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
12623
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12624
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12625
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12626
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12627
    lt_cv_sys_global_symbol_to_c_name_address \
 
12628
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12629
    old_postinstall_cmds old_postuninstall_cmds \
 
12630
    compiler \
 
12631
    CC \
 
12632
    LD \
 
12633
    lt_prog_compiler_wl \
 
12634
    lt_prog_compiler_pic \
 
12635
    lt_prog_compiler_static \
 
12636
    lt_prog_compiler_no_builtin_flag \
 
12637
    export_dynamic_flag_spec \
 
12638
    thread_safe_flag_spec \
 
12639
    whole_archive_flag_spec \
 
12640
    enable_shared_with_static_runtimes \
 
12641
    old_archive_cmds \
 
12642
    old_archive_from_new_cmds \
 
12643
    predep_objects \
 
12644
    postdep_objects \
 
12645
    predeps \
 
12646
    postdeps \
 
12647
    compiler_lib_search_path \
 
12648
    archive_cmds \
 
12649
    archive_expsym_cmds \
 
12650
    postinstall_cmds \
 
12651
    postuninstall_cmds \
 
12652
    old_archive_from_expsyms_cmds \
 
12653
    allow_undefined_flag \
 
12654
    no_undefined_flag \
 
12655
    export_symbols_cmds \
 
12656
    hardcode_libdir_flag_spec \
 
12657
    hardcode_libdir_flag_spec_ld \
 
12658
    hardcode_libdir_separator \
 
12659
    hardcode_automatic \
 
12660
    module_cmds \
 
12661
    module_expsym_cmds \
 
12662
    lt_cv_prog_compiler_c_o \
 
12663
    exclude_expsyms \
 
12664
    include_expsyms; do
 
12665
 
 
12666
    case $var in
 
12667
    old_archive_cmds | \
 
12668
    old_archive_from_new_cmds | \
 
12669
    archive_cmds | \
 
12670
    archive_expsym_cmds | \
 
12671
    module_cmds | \
 
12672
    module_expsym_cmds | \   
 
12673
    old_archive_from_expsyms_cmds | \
 
12674
    export_symbols_cmds | \
 
12675
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12676
    postinstall_cmds | postuninstall_cmds | \
 
12677
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12678
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12679
      # Double-quote double-evaled strings.
 
12680
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12681
      ;;
 
12682
    *)
 
12683
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12684
      ;;
 
12685
    esac
 
12686
  done
 
12687
 
 
12688
  case $lt_echo in
 
12689
  *'\$0 --fallback-echo"')
 
12690
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12691
    ;;
 
12692
  esac
 
12693
 
 
12694
cfgfile="${ofile}T"
 
12695
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
12696
  $rm -f "$cfgfile"
 
12697
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
12698
echo "$as_me: creating $ofile" >&6;}
 
12699
 
 
12700
  cat <<__EOF__ >> "$cfgfile"
 
12701
#! $SHELL
 
12702
 
 
12703
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
12704
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
12705
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
12706
#
 
12707
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
12708
# Free Software Foundation, Inc.
 
12709
#
 
12710
# This file is part of GNU Libtool:
 
12711
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
12712
#
 
12713
# This program is free software; you can redistribute it and/or modify
 
12714
# it under the terms of the GNU General Public License as published by
 
12715
# the Free Software Foundation; either version 2 of the License, or
 
12716
# (at your option) any later version.
 
12717
#
 
12718
# This program is distributed in the hope that it will be useful, but
 
12719
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
12720
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12721
# General Public License for more details.
 
12722
#
 
12723
# You should have received a copy of the GNU General Public License
 
12724
# along with this program; if not, write to the Free Software
 
12725
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
12726
#
 
12727
# As a special exception to the GNU General Public License, if you
 
12728
# distribute this file as part of a program that contains a
 
12729
# configuration script generated by Autoconf, you may include it under
 
12730
# the same distribution terms that you use for the rest of that program.
 
12731
 
 
12732
# A sed program that does not truncate output.
 
12733
SED=$lt_SED
 
12734
 
 
12735
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
12736
Xsed="$SED -e s/^X//"
 
12737
 
 
12738
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
12739
# if CDPATH is set.
 
12740
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
12741
 
 
12742
# The names of the tagged configurations supported by this script.
 
12743
available_tags=
 
12744
 
 
12745
# ### BEGIN LIBTOOL CONFIG
 
12746
 
 
12747
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12748
 
 
12749
# Shell to use when invoking shell scripts.
 
12750
SHELL=$lt_SHELL
 
12751
 
 
12752
# Whether or not to build shared libraries.
 
12753
build_libtool_libs=$enable_shared
 
12754
 
 
12755
# Whether or not to build static libraries.
 
12756
build_old_libs=$enable_static
 
12757
 
 
12758
# Whether or not to add -lc for building shared libraries.
 
12759
build_libtool_need_lc=$archive_cmds_need_lc
 
12760
 
 
12761
# Whether or not to disallow shared libs when runtime libs are static
 
12762
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
12763
 
 
12764
# Whether or not to optimize for fast installation.
 
12765
fast_install=$enable_fast_install
 
12766
 
 
12767
# The host system.
 
12768
host_alias=$host_alias
 
12769
host=$host
 
12770
 
 
12771
# An echo program that does not interpret backslashes.
 
12772
echo=$lt_echo
 
12773
 
 
12774
# The archiver.
 
12775
AR=$lt_AR
 
12776
AR_FLAGS=$lt_AR_FLAGS
 
12777
 
 
12778
# A C compiler.
 
12779
LTCC=$lt_LTCC
 
12780
 
 
12781
# A language-specific compiler.
 
12782
CC=$lt_compiler
 
12783
 
 
12784
# Is the compiler the GNU C compiler?
 
12785
with_gcc=$GCC
 
12786
 
 
12787
# An ERE matcher.
 
12788
EGREP=$lt_EGREP
 
12789
 
 
12790
# The linker used to build libraries.
 
12791
LD=$lt_LD
 
12792
 
 
12793
# Whether we need hard or soft links.
 
12794
LN_S=$lt_LN_S
 
12795
 
 
12796
# A BSD-compatible nm program.
 
12797
NM=$lt_NM
 
12798
 
 
12799
# A symbol stripping program
 
12800
STRIP=$STRIP
 
12801
 
 
12802
# Used to examine libraries when file_magic_cmd begins "file"
 
12803
MAGIC_CMD=$MAGIC_CMD
 
12804
 
 
12805
# Used on cygwin: DLL creation program.
 
12806
DLLTOOL="$DLLTOOL"
 
12807
 
 
12808
# Used on cygwin: object dumper.
 
12809
OBJDUMP="$OBJDUMP"
 
12810
 
 
12811
# Used on cygwin: assembler.
 
12812
AS="$AS"
 
12813
 
 
12814
# The name of the directory that contains temporary libtool files.
 
12815
objdir=$objdir
 
12816
 
 
12817
# How to create reloadable object files.
 
12818
reload_flag=$lt_reload_flag
 
12819
reload_cmds=$lt_reload_cmds
 
12820
 
 
12821
# How to pass a linker flag through the compiler.
 
12822
wl=$lt_lt_prog_compiler_wl
 
12823
 
 
12824
# Object file suffix (normally "o").
 
12825
objext="$ac_objext"
 
12826
 
 
12827
# Old archive suffix (normally "a").
 
12828
libext="$libext"
 
12829
 
 
12830
# Shared library suffix (normally ".so").
 
12831
shrext='$shrext'
 
12832
 
 
12833
# Executable file suffix (normally "").
 
12834
exeext="$exeext"
 
12835
 
 
12836
# Additional compiler flags for building library objects.
 
12837
pic_flag=$lt_lt_prog_compiler_pic
 
12838
pic_mode=$pic_mode
 
12839
 
 
12840
# What is the maximum length of a command?
 
12841
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12842
 
 
12843
# Does compiler simultaneously support -c and -o options?
 
12844
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
12845
 
 
12846
# Must we lock files when doing compilation ?
 
12847
need_locks=$lt_need_locks
 
12848
 
 
12849
# Do we need the lib prefix for modules?
 
12850
need_lib_prefix=$need_lib_prefix
 
12851
 
 
12852
# Do we need a version for libraries?
 
12853
need_version=$need_version
 
12854
 
 
12855
# Whether dlopen is supported.
 
12856
dlopen_support=$enable_dlopen
 
12857
 
 
12858
# Whether dlopen of programs is supported.
 
12859
dlopen_self=$enable_dlopen_self
 
12860
 
 
12861
# Whether dlopen of statically linked programs is supported.
 
12862
dlopen_self_static=$enable_dlopen_self_static
 
12863
 
 
12864
# Compiler flag to prevent dynamic linking.
 
12865
link_static_flag=$lt_lt_prog_compiler_static
 
12866
 
 
12867
# Compiler flag to turn off builtin functions.
 
12868
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
12869
 
 
12870
# Compiler flag to allow reflexive dlopens.
 
12871
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
12872
 
 
12873
# Compiler flag to generate shared objects directly from archives.
 
12874
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
12875
 
 
12876
# Compiler flag to generate thread-safe objects.
 
12877
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
12878
 
 
12879
# Library versioning type.
 
12880
version_type=$version_type
 
12881
 
 
12882
# Format of library name prefix.
 
12883
libname_spec=$lt_libname_spec
 
12884
 
 
12885
# List of archive names.  First name is the real one, the rest are links.
 
12886
# The last name is the one that the linker finds with -lNAME.
 
12887
library_names_spec=$lt_library_names_spec
 
12888
 
 
12889
# The coded name of the library, if different from the real name.
 
12890
soname_spec=$lt_soname_spec
 
12891
 
 
12892
# Commands used to build and install an old-style archive.
 
12893
RANLIB=$lt_RANLIB
 
12894
old_archive_cmds=$lt_old_archive_cmds
 
12895
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12896
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12897
 
 
12898
# Create an old-style archive from a shared archive.
 
12899
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
12900
 
 
12901
# Create a temporary old-style archive to link instead of a shared archive.
 
12902
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
12903
 
 
12904
# Commands used to build and install a shared archive.
 
12905
archive_cmds=$lt_archive_cmds
 
12906
archive_expsym_cmds=$lt_archive_expsym_cmds
 
12907
postinstall_cmds=$lt_postinstall_cmds
 
12908
postuninstall_cmds=$lt_postuninstall_cmds
 
12909
 
 
12910
# Commands used to build a loadable module (assumed same as above if empty)
 
12911
module_cmds=$lt_module_cmds
 
12912
module_expsym_cmds=$lt_module_expsym_cmds
 
12913
 
 
12914
# Commands to strip libraries.
 
12915
old_striplib=$lt_old_striplib
 
12916
striplib=$lt_striplib
 
12917
 
 
12918
# Dependencies to place before the objects being linked to create a
 
12919
# shared library.
 
12920
predep_objects=$lt_predep_objects
 
12921
 
 
12922
# Dependencies to place after the objects being linked to create a
 
12923
# shared library.
 
12924
postdep_objects=$lt_postdep_objects
 
12925
 
 
12926
# Dependencies to place before the objects being linked to create a
 
12927
# shared library.
 
12928
predeps=$lt_predeps
 
12929
 
 
12930
# Dependencies to place after the objects being linked to create a
 
12931
# shared library.
 
12932
postdeps=$lt_postdeps
 
12933
 
 
12934
# The library search path used internally by the compiler when linking
 
12935
# a shared library.
 
12936
compiler_lib_search_path=$lt_compiler_lib_search_path
 
12937
 
 
12938
# Method to check whether dependent libraries are shared objects.
 
12939
deplibs_check_method=$lt_deplibs_check_method
 
12940
 
 
12941
# Command to use when deplibs_check_method == file_magic.
 
12942
file_magic_cmd=$lt_file_magic_cmd
 
12943
 
 
12944
# Flag that allows shared libraries with undefined symbols to be built.
 
12945
allow_undefined_flag=$lt_allow_undefined_flag
 
12946
 
 
12947
# Flag that forces no undefined symbols.
 
12948
no_undefined_flag=$lt_no_undefined_flag
 
12949
 
 
12950
# Commands used to finish a libtool library installation in a directory.
 
12951
finish_cmds=$lt_finish_cmds
 
12952
 
 
12953
# Same as above, but a single script fragment to be evaled but not shown.
 
12954
finish_eval=$lt_finish_eval
 
12955
 
 
12956
# Take the output of nm and produce a listing of raw symbols and C names.
 
12957
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12958
 
 
12959
# Transform the output of nm in a proper C declaration
 
12960
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12961
 
 
12962
# Transform the output of nm in a C name address pair
 
12963
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12964
 
 
12965
# This is the shared library runtime path variable.
 
12966
runpath_var=$runpath_var
 
12967
 
 
12968
# This is the shared library path variable.
 
12969
shlibpath_var=$shlibpath_var
 
12970
 
 
12971
# Is shlibpath searched before the hard-coded library search path?
 
12972
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12973
 
 
12974
# How to hardcode a shared library path into an executable.
 
12975
hardcode_action=$hardcode_action
 
12976
 
 
12977
# Whether we should hardcode library paths into libraries.
 
12978
hardcode_into_libs=$hardcode_into_libs
 
12979
 
 
12980
# Flag to hardcode \$libdir into a binary during linking.
 
12981
# This must work even if \$libdir does not exist.
 
12982
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
12983
 
 
12984
# If ld is used when linking, flag to hardcode \$libdir into
 
12985
# a binary during linking. This must work even if \$libdir does
 
12986
# not exist.
 
12987
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
12988
 
 
12989
# Whether we need a single -rpath flag with a separated argument.
 
12990
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
12991
 
 
12992
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12993
# resulting binary.
 
12994
hardcode_direct=$hardcode_direct
 
12995
 
 
12996
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12997
# resulting binary.
 
12998
hardcode_minus_L=$hardcode_minus_L
 
12999
 
 
13000
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13001
# the resulting binary.
 
13002
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
13003
 
 
13004
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13005
# and all subsequent libraries and executables linked against it.
 
13006
hardcode_automatic=$hardcode_automatic
 
13007
 
 
13008
# Variables whose values should be saved in libtool wrapper scripts and
 
13009
# restored at relink time.
 
13010
variables_saved_for_relink="$variables_saved_for_relink"
 
13011
 
 
13012
# Whether libtool must link a program against all its dependency libraries.
 
13013
link_all_deplibs=$link_all_deplibs
 
13014
 
 
13015
# Compile-time system search path for libraries
 
13016
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13017
 
 
13018
# Run-time system search path for libraries
 
13019
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13020
 
 
13021
# Fix the shell variable \$srcfile for the compiler.
 
13022
fix_srcfile_path="$fix_srcfile_path"
 
13023
 
 
13024
# Set to yes if exported symbols are required.
 
13025
always_export_symbols=$always_export_symbols
 
13026
 
 
13027
# The commands to list exported symbols.
 
13028
export_symbols_cmds=$lt_export_symbols_cmds
 
13029
 
 
13030
# The commands to extract the exported symbol list from a shared archive.
 
13031
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13032
 
 
13033
# Symbols that should not be listed in the preloaded symbols.
 
13034
exclude_expsyms=$lt_exclude_expsyms
 
13035
 
 
13036
# Symbols that must always be exported.
 
13037
include_expsyms=$lt_include_expsyms
 
13038
 
 
13039
# ### END LIBTOOL CONFIG
 
13040
 
 
13041
__EOF__
 
13042
 
 
13043
 
 
13044
  case $host_os in
 
13045
  aix3*)
 
13046
    cat <<\EOF >> "$cfgfile"
 
13047
 
 
13048
# AIX sometimes has problems with the GCC collect2 program.  For some
 
13049
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
13050
# vanish in a puff of smoke.
 
13051
if test "X${COLLECT_NAMES+set}" != Xset; then
 
13052
  COLLECT_NAMES=
 
13053
  export COLLECT_NAMES
 
13054
fi
 
13055
EOF
 
13056
    ;;
 
13057
  esac
 
13058
 
 
13059
  # We use sed instead of cat because bash on DJGPP gets confused if
 
13060
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
13061
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
13062
  # is reportedly fixed, but why not run on old versions too?
 
13063
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
13064
 
 
13065
  mv -f "$cfgfile" "$ofile" || \
 
13066
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
13067
  chmod +x "$ofile"
 
13068
 
 
13069
else
 
13070
  # If there is no Makefile yet, we rely on a make rule to execute
 
13071
  # `config.status --recheck' to rerun these tests and create the
 
13072
  # libtool script then.
 
13073
  test -f Makefile && make "$ltmain"
 
13074
fi
 
13075
 
 
13076
 
 
13077
ac_ext=c
 
13078
ac_cpp='$CPP $CPPFLAGS'
 
13079
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13080
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13081
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13082
 
 
13083
CC="$lt_save_CC"
 
13084
 
 
13085
 
 
13086
# Check whether --with-tags was given.
 
13087
if test "${with_tags+set}" = set; then
 
13088
  withval=$with_tags; tagnames="$withval"
 
13089
fi
 
13090
 
 
13091
 
 
13092
if test -f "$ltmain" && test -n "$tagnames"; then
 
13093
  if test ! -f "${ofile}"; then
 
13094
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
13095
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
13096
  fi
 
13097
 
 
13098
  if test -z "$LTCC"; then
 
13099
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
13100
    if test -z "$LTCC"; then
 
13101
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
13102
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
13103
    else
 
13104
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
13105
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
13106
    fi
 
13107
  fi
 
13108
 
 
13109
  # Extract list of available tagged configurations in $ofile.
 
13110
  # Note that this assumes the entire list is on one line.
 
13111
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
13112
 
 
13113
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
13114
  for tagname in $tagnames; do
 
13115
    IFS="$lt_save_ifs"
 
13116
    # Check whether tagname contains only valid characters
 
13117
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
13118
    "") ;;
 
13119
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
13120
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
13121
   { (exit 1); exit 1; }; }
 
13122
        ;;
 
13123
    esac
 
13124
 
 
13125
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
13126
    then
 
13127
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
13128
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
13129
   { (exit 1); exit 1; }; }
 
13130
    fi
 
13131
 
 
13132
    # Update the list of available tags.
 
13133
    if test -n "$tagname"; then
 
13134
      echo appending configuration tag \"$tagname\" to $ofile
 
13135
 
 
13136
      case $tagname in
 
13137
      CXX)
 
13138
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
13139
          ac_ext=cpp
 
13140
ac_cpp='$CXXCPP $CPPFLAGS'
 
13141
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13142
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13143
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
13144
 
 
13145
 
 
13146
 
 
13147
 
 
13148
archive_cmds_need_lc_CXX=no
 
13149
allow_undefined_flag_CXX=
 
13150
always_export_symbols_CXX=no
 
13151
archive_expsym_cmds_CXX=
 
13152
export_dynamic_flag_spec_CXX=
 
13153
hardcode_direct_CXX=no
 
13154
hardcode_libdir_flag_spec_CXX=
 
13155
hardcode_libdir_flag_spec_ld_CXX=
 
13156
hardcode_libdir_separator_CXX=
 
13157
hardcode_minus_L_CXX=no
 
13158
hardcode_automatic_CXX=no
 
13159
module_cmds_CXX=
 
13160
module_expsym_cmds_CXX=
 
13161
link_all_deplibs_CXX=unknown
 
13162
old_archive_cmds_CXX=$old_archive_cmds
 
13163
no_undefined_flag_CXX=
 
13164
whole_archive_flag_spec_CXX=
 
13165
enable_shared_with_static_runtimes_CXX=no
 
13166
 
 
13167
# Dependencies to place before and after the object being linked:
 
13168
predep_objects_CXX=
 
13169
postdep_objects_CXX=
 
13170
predeps_CXX=
 
13171
postdeps_CXX=
 
13172
compiler_lib_search_path_CXX=
 
13173
 
 
13174
# Source file extension for C++ test sources.
 
13175
ac_ext=cc
 
13176
 
 
13177
# Object file extension for compiled C++ test sources.
 
13178
objext=o
 
13179
objext_CXX=$objext
 
13180
 
 
13181
# Code to be used in simple compile tests
 
13182
lt_simple_compile_test_code="int some_variable = 0;\n"
 
13183
 
 
13184
# Code to be used in simple link tests
 
13185
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
13186
 
 
13187
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13188
 
 
13189
# If no C compiler was specified, use CC.
 
13190
LTCC=${LTCC-"$CC"}
 
13191
 
 
13192
# Allow CC to be a program name with arguments.
 
13193
compiler=$CC
 
13194
 
 
13195
 
 
13196
# Allow CC to be a program name with arguments.
 
13197
lt_save_CC=$CC
 
13198
lt_save_LD=$LD
 
13199
lt_save_GCC=$GCC
 
13200
GCC=$GXX
 
13201
lt_save_with_gnu_ld=$with_gnu_ld
 
13202
lt_save_path_LD=$lt_cv_path_LD
 
13203
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
13204
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
13205
else
 
13206
  unset lt_cv_prog_gnu_ld
 
13207
fi
 
13208
if test -n "${lt_cv_path_LDCXX+set}"; then
 
13209
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
13210
else
 
13211
  unset lt_cv_path_LD
 
13212
fi
 
13213
test -z "${LDCXX+set}" || LD=$LDCXX
 
13214
CC=${CXX-"c++"}
 
13215
compiler=$CC
 
13216
compiler_CXX=$CC
 
13217
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13218
 
 
13219
# We don't want -fno-exception wen compiling C++ code, so set the
 
13220
# no_builtin_flag separately
 
13221
if test "$GXX" = yes; then
 
13222
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
13223
else
 
13224
  lt_prog_compiler_no_builtin_flag_CXX=
 
13225
fi
 
13226
 
 
13227
if test "$GXX" = yes; then
 
13228
  # Set up default GNU C++ configuration
 
13229
 
 
13230
  
 
13231
# Check whether --with-gnu-ld was given.
 
13232
if test "${with_gnu_ld+set}" = set; then
 
13233
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
13234
else
 
13235
  with_gnu_ld=no
 
13236
fi
 
13237
 
 
13238
ac_prog=ld
 
13239
if test "$GCC" = yes; then
 
13240
  # Check if gcc -print-prog-name=ld gives a path.
 
13241
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
13242
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
13243
  case $host in
 
13244
  *-*-mingw*)
 
13245
    # gcc leaves a trailing carriage return which upsets mingw
 
13246
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
13247
  *)
 
13248
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
13249
  esac
 
13250
  case $ac_prog in
 
13251
    # Accept absolute paths.
 
13252
    [\\/]* | ?:[\\/]*)
 
13253
      re_direlt='/[^/][^/]*/\.\./'
 
13254
      # Canonicalize the pathname of ld
 
13255
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
13256
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
13257
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
13258
      done
 
13259
      test -z "$LD" && LD="$ac_prog"
 
13260
      ;;
 
13261
  "")
 
13262
    # If it fails, then pretend we aren't using GCC.
 
13263
    ac_prog=ld
 
13264
    ;;
 
13265
  *)
 
13266
    # If it is relative, then search for the first ld in PATH.
 
13267
    with_gnu_ld=unknown
 
13268
    ;;
 
13269
  esac
 
13270
elif test "$with_gnu_ld" = yes; then
 
13271
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
13272
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
13273
else
 
13274
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
13275
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
13276
fi
 
13277
if test "${lt_cv_path_LD+set}" = set; then
 
13278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13279
else
 
13280
  if test -z "$LD"; then
 
13281
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13282
  for ac_dir in $PATH; do
 
13283
    IFS="$lt_save_ifs"
 
13284
    test -z "$ac_dir" && ac_dir=.
 
13285
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
13286
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
13287
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
13288
      # but apparently some GNU ld's only accept -v.
 
13289
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
13290
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
13291
      *GNU* | *'with BFD'*)
 
13292
        test "$with_gnu_ld" != no && break
 
13293
        ;;
 
13294
      *)
 
13295
        test "$with_gnu_ld" != yes && break
 
13296
        ;;
 
13297
      esac
 
13298
    fi
 
13299
  done
 
13300
  IFS="$lt_save_ifs"
 
13301
else
 
13302
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
13303
fi
 
13304
fi
 
13305
 
 
13306
LD="$lt_cv_path_LD"
 
13307
if test -n "$LD"; then
 
13308
  { echo "$as_me:$LINENO: result: $LD" >&5
 
13309
echo "${ECHO_T}$LD" >&6; }
 
13310
else
 
13311
  { echo "$as_me:$LINENO: result: no" >&5
 
13312
echo "${ECHO_T}no" >&6; }
 
13313
fi
 
13314
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
13315
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
13316
   { (exit 1); exit 1; }; }
 
13317
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
13318
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
13319
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
13320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13321
else
 
13322
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
13323
case `$LD -v 2>&1 </dev/null` in
 
13324
*GNU* | *'with BFD'*)
 
13325
  lt_cv_prog_gnu_ld=yes
 
13326
  ;;
 
13327
*)
 
13328
  lt_cv_prog_gnu_ld=no
 
13329
  ;;
 
13330
esac
 
13331
fi
 
13332
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
13333
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
13334
with_gnu_ld=$lt_cv_prog_gnu_ld
 
13335
 
 
13336
 
 
13337
 
 
13338
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
13339
  # archiving commands below assume that GNU ld is being used.
 
13340
  if test "$with_gnu_ld" = yes; then
 
13341
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
13342
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13343
 
 
13344
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13345
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13346
 
 
13347
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13348
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
13349
    #     investigate it a little bit more. (MM)
 
13350
    wlarc='${wl}'
 
13351
 
 
13352
    # ancient GNU ld didn't support --whole-archive et. al.
 
13353
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
13354
        grep 'no-whole-archive' > /dev/null; then
 
13355
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13356
    else
 
13357
      whole_archive_flag_spec_CXX=
 
13358
    fi
 
13359
  else
 
13360
    with_gnu_ld=no
 
13361
    wlarc=
 
13362
 
 
13363
    # A generic and very simple default shared library creation
 
13364
    # command for GNU C++ for the case where it uses the native
 
13365
    # linker, instead of GNU ld.  If possible, this setting should
 
13366
    # overridden to take advantage of the native linker features on
 
13367
    # the platform it is being used on.
 
13368
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
 
13369
  fi
 
13370
 
 
13371
  # Commands to make compiler produce verbose output that lists
 
13372
  # what "hidden" libraries, object files and flags are used when
 
13373
  # linking a shared library.
 
13374
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13375
 
 
13376
else
 
13377
  GXX=no
 
13378
  with_gnu_ld=no
 
13379
  wlarc=
 
13380
fi
 
13381
 
 
13382
# PORTME: fill in a description of your system's C++ link characteristics
 
13383
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13384
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13385
ld_shlibs_CXX=yes
 
13386
case $host_os in
 
13387
  aix3*)
 
13388
    # FIXME: insert proper C++ library support
 
13389
    ld_shlibs_CXX=no
 
13390
    ;;
 
13391
  aix4* | aix5*)
 
13392
    if test "$host_cpu" = ia64; then
 
13393
      # On IA64, the linker does run time linking by default, so we don't
 
13394
      # have to do anything special.
 
13395
      aix_use_runtimelinking=no
 
13396
      exp_sym_flag='-Bexport'
 
13397
      no_entry_flag=""
 
13398
    else
 
13399
      # KDE requires run time linking.  Make it the default.
 
13400
      aix_use_runtimelinking=yes
 
13401
      exp_sym_flag='-bexport'
 
13402
      no_entry_flag='-bnoentry'
 
13403
    fi
 
13404
 
 
13405
    # When large executables or shared objects are built, AIX ld can
 
13406
    # have problems creating the table of contents.  If linking a library
 
13407
    # or program results in "error TOC overflow" add -mminimal-toc to
 
13408
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13409
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13410
 
 
13411
    archive_cmds_CXX=''
 
13412
    hardcode_direct_CXX=yes
 
13413
    hardcode_libdir_separator_CXX=':'
 
13414
    link_all_deplibs_CXX=yes
 
13415
 
 
13416
    if test "$GXX" = yes; then
 
13417
      case $host_os in aix4.012|aix4.012.*)
 
13418
      # We only want to do this on AIX 4.2 and lower, the check
 
13419
      # below for broken collect2 doesn't work under 4.3+
 
13420
        collect2name=`${CC} -print-prog-name=collect2`
 
13421
        if test -f "$collect2name" && \
 
13422
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13423
        then
 
13424
          # We have reworked collect2
 
13425
          hardcode_direct_CXX=yes
 
13426
        else
 
13427
          # We have old collect2
 
13428
          hardcode_direct_CXX=unsupported
 
13429
          # It fails to find uninstalled libraries when the uninstalled
 
13430
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13431
          # to unsupported forces relinking
 
13432
          hardcode_minus_L_CXX=yes
 
13433
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13434
          hardcode_libdir_separator_CXX=
 
13435
        fi
 
13436
      esac
 
13437
      shared_flag='-shared'
 
13438
    else
 
13439
      # not using gcc
 
13440
      if test "$host_cpu" = ia64; then
 
13441
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13442
        # chokes on -Wl,-G. The following line is correct:
 
13443
        shared_flag='-G'
 
13444
      else
 
13445
        if test "$aix_use_runtimelinking" = yes; then
 
13446
          shared_flag='-qmkshrobj ${wl}-G'
 
13447
        else
 
13448
          shared_flag='-qmkshrobj'
 
13449
        fi
 
13450
      fi
 
13451
    fi
 
13452
 
 
13453
    # Let the compiler handle the export list.
 
13454
    always_export_symbols_CXX=no
 
13455
    if test "$aix_use_runtimelinking" = yes; then
 
13456
      # Warning - without using the other runtime loading flags (-brtl),
 
13457
      # -berok will link without error, but may produce a broken library.
 
13458
      allow_undefined_flag_CXX='-berok'
 
13459
      # Determine the default libpath from the value encoded in an empty executable.
 
13460
      cat >conftest.$ac_ext <<_ACEOF
 
13461
/* confdefs.h.  */
 
13462
_ACEOF
 
13463
cat confdefs.h >>conftest.$ac_ext
 
13464
cat >>conftest.$ac_ext <<_ACEOF
 
13465
/* end confdefs.h.  */
 
13466
 
 
13467
int
 
13468
main ()
 
13469
{
 
13470
 
 
13471
  ;
 
13472
  return 0;
 
13473
}
 
13474
_ACEOF
 
13475
rm -f conftest.$ac_objext conftest$ac_exeext
 
13476
if { (ac_try="$ac_link"
 
13477
case "(($ac_try" in
 
13478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13479
  *) ac_try_echo=$ac_try;;
 
13480
esac
 
13481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13482
  (eval "$ac_link") 2>conftest.er1
 
13483
  ac_status=$?
 
13484
  grep -v '^ *+' conftest.er1 >conftest.err
 
13485
  rm -f conftest.er1
 
13486
  cat conftest.err >&5
 
13487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13488
  (exit $ac_status); } && {
 
13489
         test -z "$ac_cxx_werror_flag" ||
 
13490
         test ! -s conftest.err
 
13491
       } && test -s conftest$ac_exeext &&
 
13492
       $as_test_x conftest$ac_exeext; then
 
13493
  
 
13494
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13495
}'`
 
13496
# Check for a 64-bit object if we didn't find anything.
 
13497
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13498
}'`; fi
 
13499
else
 
13500
  echo "$as_me: failed program was:" >&5
 
13501
sed 's/^/| /' conftest.$ac_ext >&5
 
13502
 
 
13503
        
 
13504
fi
 
13505
 
 
13506
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13507
      conftest$ac_exeext conftest.$ac_ext
 
13508
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13509
 
 
13510
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13511
 
 
13512
      archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
13513
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13514
     else
 
13515
      if test "$host_cpu" = ia64; then
 
13516
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13517
        allow_undefined_flag_CXX="-z nodefs"
 
13518
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
13519
      else
 
13520
        # Determine the default libpath from the value encoded in an empty executable.
 
13521
        cat >conftest.$ac_ext <<_ACEOF
 
13522
/* confdefs.h.  */
 
13523
_ACEOF
 
13524
cat confdefs.h >>conftest.$ac_ext
 
13525
cat >>conftest.$ac_ext <<_ACEOF
 
13526
/* end confdefs.h.  */
 
13527
 
 
13528
int
 
13529
main ()
 
13530
{
 
13531
 
 
13532
  ;
 
13533
  return 0;
 
13534
}
 
13535
_ACEOF
 
13536
rm -f conftest.$ac_objext conftest$ac_exeext
 
13537
if { (ac_try="$ac_link"
 
13538
case "(($ac_try" in
 
13539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13540
  *) ac_try_echo=$ac_try;;
 
13541
esac
 
13542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13543
  (eval "$ac_link") 2>conftest.er1
 
13544
  ac_status=$?
 
13545
  grep -v '^ *+' conftest.er1 >conftest.err
 
13546
  rm -f conftest.er1
 
13547
  cat conftest.err >&5
 
13548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13549
  (exit $ac_status); } && {
 
13550
         test -z "$ac_cxx_werror_flag" ||
 
13551
         test ! -s conftest.err
 
13552
       } && test -s conftest$ac_exeext &&
 
13553
       $as_test_x conftest$ac_exeext; then
 
13554
  
 
13555
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13556
}'`
 
13557
# Check for a 64-bit object if we didn't find anything.
 
13558
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13559
}'`; fi
 
13560
else
 
13561
  echo "$as_me: failed program was:" >&5
 
13562
sed 's/^/| /' conftest.$ac_ext >&5
 
13563
 
 
13564
        
 
13565
fi
 
13566
 
 
13567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13568
      conftest$ac_exeext conftest.$ac_ext
 
13569
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13570
 
 
13571
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13572
        # Warning - without using the other run time loading flags,
 
13573
        # -berok will link without error, but may produce a broken library.
 
13574
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
13575
        allow_undefined_flag_CXX=' ${wl}-berok'
 
13576
        # -bexpall does not export symbols beginning with underscore (_)
 
13577
        always_export_symbols_CXX=yes
 
13578
        # Exported symbols can be pulled into shared objects from archives
 
13579
        whole_archive_flag_spec_CXX=' '
 
13580
        archive_cmds_need_lc_CXX=yes
 
13581
        # This is similar to how AIX traditionally builds it's shared libraries.
 
13582
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13583
      fi
 
13584
    fi
 
13585
    ;;
 
13586
  chorus*)
 
13587
    case $cc_basename in
 
13588
      *)
 
13589
        # FIXME: insert proper C++ library support
 
13590
        ld_shlibs_CXX=no
 
13591
        ;;
 
13592
    esac
 
13593
    ;;
 
13594
 
 
13595
  cygwin* | mingw* | pw32*)
 
13596
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13597
    # as there is no search path for DLLs.
 
13598
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13599
    allow_undefined_flag_CXX=no
 
13600
    always_export_symbols_CXX=no
 
13601
    enable_shared_with_static_runtimes_CXX=yes
 
13602
 
 
13603
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13604
      archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13605
      # If the export-symbols file already is a .def file (1st line
 
13606
      # is EXPORTS), use it as is; otherwise, prepend...
 
13607
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13608
        cp $export_symbols $output_objdir/$soname.def;
 
13609
      else
 
13610
        echo EXPORTS > $output_objdir/$soname.def;
 
13611
        cat $export_symbols >> $output_objdir/$soname.def;
 
13612
      fi~
 
13613
      $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13614
    else
 
13615
      ld_shlibs_CXX=no
 
13616
    fi
 
13617
  ;;
 
13618
 
 
13619
  darwin* | rhapsody*)
 
13620
  if test "$GXX" = yes; then
 
13621
    archive_cmds_need_lc_CXX=no
 
13622
    case "$host_os" in
 
13623
    rhapsody* | darwin1.[012])
 
13624
      allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
 
13625
      ;;
 
13626
    *) # Darwin 1.3 on
 
13627
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13628
        allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
13629
      else
 
13630
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
13631
          10.012)
 
13632
            allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
13633
            ;;
 
13634
          10.*)
 
13635
            allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
13636
            ;;
 
13637
        esac
 
13638
      fi
 
13639
      ;;
 
13640
    esac
 
13641
    lt_int_apple_cc_single_mod=no
 
13642
    output_verbose_link_cmd='echo'
 
13643
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
13644
      lt_int_apple_cc_single_mod=yes
 
13645
    fi
 
13646
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13647
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
13648
    else
 
13649
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
13650
    fi
 
13651
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
13652
 
 
13653
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13654
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13655
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13656
    else
 
13657
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13658
    fi
 
13659
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13660
    hardcode_direct_CXX=no
 
13661
    hardcode_automatic_CXX=yes
 
13662
    hardcode_shlibpath_var_CXX=unsupported
 
13663
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
13664
    link_all_deplibs_CXX=yes
 
13665
  else
 
13666
    ld_shlibs_CXX=no
 
13667
  fi
 
13668
    ;;
 
13669
 
 
13670
  dgux*)
 
13671
    case $cc_basename in
 
13672
      ec++)
 
13673
        # FIXME: insert proper C++ library support
 
13674
        ld_shlibs_CXX=no
 
13675
        ;;
 
13676
      ghcx)
 
13677
        # Green Hills C++ Compiler
 
13678
        # FIXME: insert proper C++ library support
 
13679
        ld_shlibs_CXX=no
 
13680
        ;;
 
13681
      *)
 
13682
        # FIXME: insert proper C++ library support
 
13683
        ld_shlibs_CXX=no
 
13684
        ;;
 
13685
    esac
 
13686
    ;;
 
13687
  freebsd12*)
 
13688
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
13689
    ld_shlibs_CXX=no
 
13690
    ;;
 
13691
  freebsd-elf*)
 
13692
    archive_cmds_need_lc_CXX=no
 
13693
    ;;
 
13694
  freebsd*)
 
13695
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13696
    # conventions
 
13697
    ld_shlibs_CXX=yes
 
13698
    ;;
 
13699
  gnu*)
 
13700
    ;;
 
13701
  hpux9*)
 
13702
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13703
    hardcode_libdir_separator_CXX=:
 
13704
    export_dynamic_flag_spec_CXX='${wl}-E'
 
13705
    hardcode_direct_CXX=yes
 
13706
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13707
                                # but as the default
 
13708
                                # location of the library.
 
13709
 
 
13710
    case $cc_basename in
 
13711
    CC)
 
13712
      # FIXME: insert proper C++ library support
 
13713
      ld_shlibs_CXX=no
 
13714
      ;;
 
13715
    aCC)
 
13716
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
13717
      # Commands to make compiler produce verbose output that lists
 
13718
      # what "hidden" libraries, object files and flags are used when
 
13719
      # linking a shared library.
 
13720
      #
 
13721
      # There doesn't appear to be a way to prevent this compiler from
 
13722
      # explicitly linking system object files so we need to strip them
 
13723
      # from the output so that they don't get included in the library
 
13724
      # dependencies.
 
13725
      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 $list'
 
13726
      ;;
 
13727
    *)
 
13728
      if test "$GXX" = yes; then
 
13729
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
13730
      else
 
13731
        # FIXME: insert proper C++ library support
 
13732
        ld_shlibs_CXX=no
 
13733
      fi
 
13734
      ;;
 
13735
    esac
 
13736
    ;;
 
13737
  hpux10*|hpux11*)
 
13738
    if test $with_gnu_ld = no; then
 
13739
      case "$host_cpu" in
 
13740
      hppa*64*)
 
13741
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13742
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
13743
        hardcode_libdir_separator_CXX=:
 
13744
        ;;
 
13745
      ia64*)
 
13746
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13747
        ;;
 
13748
      *)
 
13749
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13750
        hardcode_libdir_separator_CXX=:
 
13751
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13752
        ;;
 
13753
      esac
 
13754
    fi
 
13755
    case "$host_cpu" in
 
13756
    hppa*64*)
 
13757
      hardcode_direct_CXX=no
 
13758
      hardcode_shlibpath_var_CXX=no
 
13759
      ;;
 
13760
    ia64*)
 
13761
      hardcode_direct_CXX=no
 
13762
      hardcode_shlibpath_var_CXX=no
 
13763
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13764
                                              # but as the default
 
13765
                                              # location of the library.
 
13766
      ;;
 
13767
    *)
 
13768
      hardcode_direct_CXX=yes
 
13769
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13770
                                              # but as the default
 
13771
                                              # location of the library.
 
13772
      ;;
 
13773
    esac
 
13774
 
 
13775
    case $cc_basename in
 
13776
      CC)
 
13777
        # FIXME: insert proper C++ library support
 
13778
        ld_shlibs_CXX=no
 
13779
        ;;
 
13780
      aCC)
 
13781
        case "$host_cpu" in
 
13782
        hppa*64*|ia64*)
 
13783
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13784
          ;;
 
13785
        *)
 
13786
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
13787
          ;;
 
13788
        esac
 
13789
        # Commands to make compiler produce verbose output that lists
 
13790
        # what "hidden" libraries, object files and flags are used when
 
13791
        # linking a shared library.
 
13792
        #
 
13793
        # There doesn't appear to be a way to prevent this compiler from
 
13794
        # explicitly linking system object files so we need to strip them
 
13795
        # from the output so that they don't get included in the library
 
13796
        # dependencies.
 
13797
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13798
        ;;
 
13799
      *)
 
13800
        if test "$GXX" = yes; then
 
13801
          if test $with_gnu_ld = no; then
 
13802
            case "$host_cpu" in
 
13803
            ia64*|hppa*64*)
 
13804
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13805
              ;;
 
13806
            *)
 
13807
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
13808
              ;;
 
13809
            esac
 
13810
          fi
 
13811
        else
 
13812
          # FIXME: insert proper C++ library support
 
13813
          ld_shlibs_CXX=no
 
13814
        fi
 
13815
        ;;
 
13816
    esac
 
13817
    ;;
 
13818
  irix5* | irix6*)
 
13819
    case $cc_basename in
 
13820
      CC)
 
13821
        # SGI C++
 
13822
        archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
13823
 
 
13824
        # Archives containing C++ object files must be created using
 
13825
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13826
        # necessary to make sure instantiated templates are included
 
13827
        # in the archive.
 
13828
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13829
        ;;
 
13830
      *)
 
13831
        if test "$GXX" = yes; then
 
13832
          if test "$with_gnu_ld" = no; then
 
13833
            archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
13834
          else
 
13835
            archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
13836
          fi
 
13837
        fi
 
13838
        link_all_deplibs_CXX=yes
 
13839
        ;;
 
13840
    esac
 
13841
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13842
    hardcode_libdir_separator_CXX=:
 
13843
    ;;
 
13844
  linux*)
 
13845
    case $cc_basename in
 
13846
      KCC)
 
13847
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13848
 
 
13849
        # KCC will only create a shared library if the output file
 
13850
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13851
        # to its proper name (with version) after linking.
 
13852
        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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
 
13853
        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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
13854
        # Commands to make compiler produce verbose output that lists
 
13855
        # what "hidden" libraries, object files and flags are used when
 
13856
        # linking a shared library.
 
13857
        #
 
13858
        # There doesn't appear to be a way to prevent this compiler from
 
13859
        # explicitly linking system object files so we need to strip them
 
13860
        # from the output so that they don't get included in the library
 
13861
        # dependencies.
 
13862
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13863
 
 
13864
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
13865
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13866
 
 
13867
        # Archives containing C++ object files must be created using
 
13868
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13869
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13870
        ;;
 
13871
      icpc)
 
13872
        # Intel C++
 
13873
        with_gnu_ld=yes
 
13874
        archive_cmds_need_lc_CXX=no
 
13875
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
13876
        archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13877
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13878
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13879
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13880
        ;;
 
13881
      cxx)
 
13882
        # Compaq C++
 
13883
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
13884
        archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
13885
 
 
13886
        runpath_var=LD_RUN_PATH
 
13887
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13888
        hardcode_libdir_separator_CXX=:
 
13889
 
 
13890
        # Commands to make compiler produce verbose output that lists
 
13891
        # what "hidden" libraries, object files and flags are used when
 
13892
        # linking a shared library.
 
13893
        #
 
13894
        # There doesn't appear to be a way to prevent this compiler from
 
13895
        # explicitly linking system object files so we need to strip them
 
13896
        # from the output so that they don't get included in the library
 
13897
        # dependencies.
 
13898
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13899
        ;;
 
13900
    esac
 
13901
    ;;
 
13902
  lynxos*)
 
13903
    # FIXME: insert proper C++ library support
 
13904
    ld_shlibs_CXX=no
 
13905
    ;;
 
13906
  m88k*)
 
13907
    # FIXME: insert proper C++ library support
 
13908
    ld_shlibs_CXX=no
 
13909
    ;;
 
13910
  mvs*)
 
13911
    case $cc_basename in
 
13912
      cxx)
 
13913
        # FIXME: insert proper C++ library support
 
13914
        ld_shlibs_CXX=no
 
13915
        ;;
 
13916
      *)
 
13917
        # FIXME: insert proper C++ library support
 
13918
        ld_shlibs_CXX=no
 
13919
        ;;
 
13920
    esac
 
13921
    ;;
 
13922
  netbsd*)
 
13923
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13924
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13925
      wlarc=
 
13926
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13927
      hardcode_direct_CXX=yes
 
13928
      hardcode_shlibpath_var_CXX=no
 
13929
    fi
 
13930
    # Workaround some broken pre-1.5 toolchains
 
13931
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13932
    ;;
 
13933
  osf3*)
 
13934
    case $cc_basename in
 
13935
      KCC)
 
13936
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13937
 
 
13938
        # KCC will only create a shared library if the output file
 
13939
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13940
        # to its proper name (with version) after linking.
 
13941
        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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
 
13942
 
 
13943
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13944
        hardcode_libdir_separator_CXX=:
 
13945
 
 
13946
        # Archives containing C++ object files must be created using
 
13947
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13948
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13949
 
 
13950
        ;;
 
13951
      RCC)
 
13952
        # Rational C++ 2.4.1
 
13953
        # FIXME: insert proper C++ library support
 
13954
        ld_shlibs_CXX=no
 
13955
        ;;
 
13956
      cxx)
 
13957
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13958
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
13959
 
 
13960
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13961
        hardcode_libdir_separator_CXX=:
 
13962
 
 
13963
        # Commands to make compiler produce verbose output that lists
 
13964
        # what "hidden" libraries, object files and flags are used when
 
13965
        # linking a shared library.
 
13966
        #
 
13967
        # There doesn't appear to be a way to prevent this compiler from
 
13968
        # explicitly linking system object files so we need to strip them
 
13969
        # from the output so that they don't get included in the library
 
13970
        # dependencies.
 
13971
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13972
        ;;
 
13973
      *)
 
13974
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13975
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13976
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
13977
 
 
13978
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13979
          hardcode_libdir_separator_CXX=:
 
13980
 
 
13981
          # Commands to make compiler produce verbose output that lists
 
13982
          # what "hidden" libraries, object files and flags are used when
 
13983
          # linking a shared library.
 
13984
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13985
 
 
13986
        else
 
13987
          # FIXME: insert proper C++ library support
 
13988
          ld_shlibs_CXX=no
 
13989
        fi
 
13990
        ;;
 
13991
    esac
 
13992
    ;;
 
13993
  osf4* | osf5*)
 
13994
    case $cc_basename in
 
13995
      KCC)
 
13996
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13997
 
 
13998
        # KCC will only create a shared library if the output file
 
13999
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
14000
        # to its proper name (with version) after linking.
 
14001
        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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
 
14002
 
 
14003
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14004
        hardcode_libdir_separator_CXX=:
 
14005
 
 
14006
        # Archives containing C++ object files must be created using
 
14007
        # the KAI C++ compiler.
 
14008
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
14009
        ;;
 
14010
      RCC)
 
14011
        # Rational C++ 2.4.1
 
14012
        # FIXME: insert proper C++ library support
 
14013
        ld_shlibs_CXX=no
 
14014
        ;;
 
14015
      cxx)
 
14016
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
14017
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
14018
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
14019
          echo "-hidden">> $lib.exp~
 
14020
          $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
14021
          $rm $lib.exp'
 
14022
 
 
14023
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
14024
        hardcode_libdir_separator_CXX=:
 
14025
 
 
14026
        # Commands to make compiler produce verbose output that lists
 
14027
        # what "hidden" libraries, object files and flags are used when
 
14028
        # linking a shared library.
 
14029
        #
 
14030
        # There doesn't appear to be a way to prevent this compiler from
 
14031
        # explicitly linking system object files so we need to strip them
 
14032
        # from the output so that they don't get included in the library
 
14033
        # dependencies.
 
14034
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14035
        ;;
 
14036
      *)
 
14037
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14038
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14039
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
14040
 
 
14041
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14042
          hardcode_libdir_separator_CXX=:
 
14043
 
 
14044
          # Commands to make compiler produce verbose output that lists
 
14045
          # what "hidden" libraries, object files and flags are used when
 
14046
          # linking a shared library.
 
14047
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
14048
 
 
14049
        else
 
14050
          # FIXME: insert proper C++ library support
 
14051
          ld_shlibs_CXX=no
 
14052
        fi
 
14053
        ;;
 
14054
    esac
 
14055
    ;;
 
14056
  psos*)
 
14057
    # FIXME: insert proper C++ library support
 
14058
    ld_shlibs_CXX=no
 
14059
    ;;
 
14060
  sco*)
 
14061
    archive_cmds_need_lc_CXX=no
 
14062
    case $cc_basename in
 
14063
      CC)
 
14064
        # FIXME: insert proper C++ library support
 
14065
        ld_shlibs_CXX=no
 
14066
        ;;
 
14067
      *)
 
14068
        # FIXME: insert proper C++ library support
 
14069
        ld_shlibs_CXX=no
 
14070
        ;;
 
14071
    esac
 
14072
    ;;
 
14073
  sunos4*)
 
14074
    case $cc_basename in
 
14075
      CC)
 
14076
        # Sun C++ 4.x
 
14077
        # FIXME: insert proper C++ library support
 
14078
        ld_shlibs_CXX=no
 
14079
        ;;
 
14080
      lcc)
 
14081
        # Lucid
 
14082
        # FIXME: insert proper C++ library support
 
14083
        ld_shlibs_CXX=no
 
14084
        ;;
 
14085
      *)
 
14086
        # FIXME: insert proper C++ library support
 
14087
        ld_shlibs_CXX=no
 
14088
        ;;
 
14089
    esac
 
14090
    ;;
 
14091
  solaris*)
 
14092
    case $cc_basename in
 
14093
      CC)
 
14094
        # Sun C++ 4.2, 5.x and Centerline C++
 
14095
        no_undefined_flag_CXX=' -zdefs'
 
14096
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
 
14097
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14098
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
14099
 
 
14100
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
14101
        hardcode_shlibpath_var_CXX=no
 
14102
        case $host_os in
 
14103
          solaris2.0-5 | solaris2.0-5.*) ;;
 
14104
          *)
 
14105
            # The C++ compiler is used as linker so we must use $wl
 
14106
            # flag to pass the commands to the underlying system
 
14107
            # linker.
 
14108
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14109
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
14110
            ;;
 
14111
        esac
 
14112
        link_all_deplibs_CXX=yes
 
14113
 
 
14114
        # Commands to make compiler produce verbose output that lists
 
14115
        # what "hidden" libraries, object files and flags are used when
 
14116
        # linking a shared library.
 
14117
        #
 
14118
        # There doesn't appear to be a way to prevent this compiler from
 
14119
        # explicitly linking system object files so we need to strip them
 
14120
        # from the output so that they don't get included in the library
 
14121
        # dependencies.
 
14122
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14123
 
 
14124
        # Archives containing C++ object files must be created using
 
14125
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
14126
        # necessary to make sure instantiated templates are included
 
14127
        # in the archive.
 
14128
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
14129
        ;;
 
14130
      gcx)
 
14131
        # Green Hills C++ Compiler
 
14132
        archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
14133
 
 
14134
        # The C++ compiler must be used to create the archive.
 
14135
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
14136
        ;;
 
14137
      *)
 
14138
        # GNU C++ compiler with Solaris linker
 
14139
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14140
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
14141
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
14142
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
14143
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14144
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
14145
 
 
14146
            # Commands to make compiler produce verbose output that lists
 
14147
            # what "hidden" libraries, object files and flags are used when
 
14148
            # linking a shared library.
 
14149
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
14150
          else
 
14151
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
14152
            # platform.
 
14153
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
 
14154
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14155
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
 
14156
 
 
14157
            # Commands to make compiler produce verbose output that lists
 
14158
            # what "hidden" libraries, object files and flags are used when
 
14159
            # linking a shared library.
 
14160
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
14161
          fi
 
14162
 
 
14163
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
14164
        fi
 
14165
        ;;
 
14166
    esac
 
14167
    ;;
 
14168
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
14169
    archive_cmds_need_lc_CXX=no
 
14170
    ;;
 
14171
  tandem*)
 
14172
    case $cc_basename in
 
14173
      NCC)
 
14174
        # NonStop-UX NCC 3.20
 
14175
        # FIXME: insert proper C++ library support
 
14176
        ld_shlibs_CXX=no
 
14177
        ;;
 
14178
      *)
 
14179
        # FIXME: insert proper C++ library support
 
14180
        ld_shlibs_CXX=no
 
14181
        ;;
 
14182
    esac
 
14183
    ;;
 
14184
  vxworks*)
 
14185
    # FIXME: insert proper C++ library support
 
14186
    ld_shlibs_CXX=no
 
14187
    ;;
 
14188
  *)
 
14189
    # FIXME: insert proper C++ library support
 
14190
    ld_shlibs_CXX=no
 
14191
    ;;
 
14192
esac
 
14193
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
14194
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
14195
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14196
 
 
14197
GCC_CXX="$GXX"
 
14198
LD_CXX="$LD"
 
14199
 
 
14200
## CAVEAT EMPTOR:
 
14201
## There is no encapsulation within the following macros, do not change
 
14202
## the running order or otherwise move them around unless you know exactly
 
14203
## what you are doing...
 
14204
 
 
14205
cat > conftest.$ac_ext <<EOF
 
14206
class Foo
 
14207
{
 
14208
public:
 
14209
  Foo (void) { a = 0; }
 
14210
private:
 
14211
  int a;
 
14212
};
 
14213
EOF
 
14214
 
 
14215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14216
  (eval $ac_compile) 2>&5
 
14217
  ac_status=$?
 
14218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14219
  (exit $ac_status); }; then
 
14220
  # Parse the compiler output and extract the necessary
 
14221
  # objects, libraries and library flags.
 
14222
 
 
14223
  # Sentinel used to keep track of whether or not we are before
 
14224
  # the conftest object file.
 
14225
  pre_test_object_deps_done=no
 
14226
 
 
14227
  # The `*' in the case matches for architectures that use `case' in
 
14228
  # $output_verbose_cmd can trigger glob expansion during the loop
 
14229
  # eval without this substitution.
 
14230
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
14231
 
 
14232
  for p in `eval $output_verbose_link_cmd`; do
 
14233
    case $p in
 
14234
 
 
14235
    -L* | -R* | -l*)
 
14236
       # Some compilers place space between "-{L,R}" and the path.
 
14237
       # Remove the space.
 
14238
       if test $p = "-L" \
 
14239
          || test $p = "-R"; then
 
14240
         prev=$p
 
14241
         continue
 
14242
       else
 
14243
         prev=
 
14244
       fi
 
14245
 
 
14246
       if test "$pre_test_object_deps_done" = no; then
 
14247
         case $p in
 
14248
         -L* | -R*)
 
14249
           # Internal compiler library paths should come after those
 
14250
           # provided the user.  The postdeps already come after the
 
14251
           # user supplied libs so there is no need to process them.
 
14252
           if test -z "$compiler_lib_search_path_CXX"; then
 
14253
             compiler_lib_search_path_CXX="${prev}${p}"
 
14254
           else
 
14255
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
14256
           fi
 
14257
           ;;
 
14258
         # The "-l" case would never come before the object being
 
14259
         # linked, so don't bother handling this case.
 
14260
         esac
 
14261
       else
 
14262
         if test -z "$postdeps_CXX"; then
 
14263
           postdeps_CXX="${prev}${p}"
 
14264
         else
 
14265
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
14266
         fi
 
14267
       fi
 
14268
       ;;
 
14269
 
 
14270
    *.$objext|*.$libext)
 
14271
       # This assumes that the test object file only shows up
 
14272
       # once in the compiler output.
 
14273
       if test "$p" = "conftest.$objext"; then
 
14274
         pre_test_object_deps_done=yes
 
14275
         continue
 
14276
       fi
 
14277
 
 
14278
       if test "$pre_test_object_deps_done" = no; then
 
14279
         if test -z "$predep_objects_CXX"; then
 
14280
           predep_objects_CXX="$p"
 
14281
         else
 
14282
           predep_objects_CXX="$predep_objects_CXX $p"
 
14283
         fi
 
14284
       else
 
14285
         if test -z "$postdep_objects_CXX"; then
 
14286
           postdep_objects_CXX="$p"
 
14287
         else
 
14288
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
14289
         fi
 
14290
       fi
 
14291
       ;;
 
14292
 
 
14293
    *) ;; # Ignore the rest.
 
14294
 
 
14295
    esac
 
14296
  done
 
14297
 
 
14298
  # Clean up.
 
14299
  rm -f a.out a.exe
 
14300
else
 
14301
  echo "libtool.m4: error: problem compiling CXX test program"
 
14302
fi
 
14303
 
 
14304
$rm -f confest.$objext
 
14305
 
 
14306
case " $postdeps_CXX " in
 
14307
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
14308
esac
 
14309
 
 
14310
lt_prog_compiler_wl_CXX=
 
14311
lt_prog_compiler_pic_CXX=
 
14312
lt_prog_compiler_static_CXX=
 
14313
 
 
14314
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14315
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14316
 
 
14317
  # C++ specific cases for pic, static, wl, etc.
 
14318
  if test "$GXX" = yes; then
 
14319
    lt_prog_compiler_wl_CXX='-Wl,'
 
14320
    lt_prog_compiler_static_CXX='-static'
 
14321
 
 
14322
    case $host_os in
 
14323
    aix*)
 
14324
      # All AIX code is PIC.
 
14325
      if test "$host_cpu" = ia64; then
 
14326
        # AIX 5 now supports IA64 processor
 
14327
        lt_prog_compiler_static_CXX='-Bstatic'
 
14328
      fi
 
14329
      ;;
 
14330
    amigaos*)
 
14331
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14332
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14333
      # like `-m68040'.
 
14334
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
14335
      ;;
 
14336
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14337
      # PIC is the default for these OSes.
 
14338
      ;;
 
14339
    mingw* | os2* | pw32*)
 
14340
      # This hack is so that the source file can tell whether it is being
 
14341
      # built for inclusion in a dll (and should export symbols for example).
 
14342
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14343
      ;;
 
14344
    darwin* | rhapsody*)
 
14345
      # PIC is the default on this platform
 
14346
      # Common symbols not allowed in MH_DYLIB files
 
14347
      lt_prog_compiler_pic_CXX='-fno-common'
 
14348
      ;;
 
14349
    *djgpp*)
 
14350
      # DJGPP does not support shared libraries at all
 
14351
      lt_prog_compiler_pic_CXX=
 
14352
      ;;
 
14353
    sysv4*MP*)
 
14354
      if test -d /usr/nec; then
 
14355
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
14356
      fi
 
14357
      ;;
 
14358
    hpux*)
 
14359
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14360
      # not for PA HP-UX.
 
14361
      case "$host_cpu" in
 
14362
      hppa*64*|ia64*)
 
14363
        ;;
 
14364
      *)
 
14365
        lt_prog_compiler_pic_CXX='-fPIC'
 
14366
        ;;
 
14367
      esac
 
14368
      ;;
 
14369
    *)
 
14370
      lt_prog_compiler_pic_CXX='-fPIC'
 
14371
      ;;
 
14372
    esac
 
14373
  else
 
14374
    case $host_os in
 
14375
      aix4* | aix5*)
 
14376
        # All AIX code is PIC.
 
14377
        if test "$host_cpu" = ia64; then
 
14378
          # AIX 5 now supports IA64 processor
 
14379
          lt_prog_compiler_static_CXX='-Bstatic'
 
14380
        else
 
14381
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
14382
        fi
 
14383
        ;;
 
14384
      chorus*)
 
14385
        case $cc_basename in
 
14386
        cxch68)
 
14387
          # Green Hills C++ Compiler
 
14388
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
14389
          ;;
 
14390
        esac
 
14391
        ;;
 
14392
      dgux*)
 
14393
        case $cc_basename in
 
14394
          ec++)
 
14395
            lt_prog_compiler_pic_CXX='-KPIC'
 
14396
            ;;
 
14397
          ghcx)
 
14398
            # Green Hills C++ Compiler
 
14399
            lt_prog_compiler_pic_CXX='-pic'
 
14400
            ;;
 
14401
          *)
 
14402
            ;;
 
14403
        esac
 
14404
        ;;
 
14405
      freebsd*)
 
14406
        # FreeBSD uses GNU C++
 
14407
        ;;
 
14408
      hpux9* | hpux10* | hpux11*)
 
14409
        case $cc_basename in
 
14410
          CC)
 
14411
            lt_prog_compiler_wl_CXX='-Wl,'
 
14412
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
14413
            if test "$host_cpu" != ia64; then
 
14414
              lt_prog_compiler_pic_CXX='+Z'
 
14415
            fi
 
14416
            ;;
 
14417
          aCC)
 
14418
            lt_prog_compiler_wl_CXX='-Wl,'
 
14419
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
14420
            case "$host_cpu" in
 
14421
            hppa*64*|ia64*)
 
14422
              # +Z the default
 
14423
              ;;
 
14424
            *)
 
14425
              lt_prog_compiler_pic_CXX='+Z'
 
14426
              ;;
 
14427
            esac
 
14428
            ;;
 
14429
          *)
 
14430
            ;;
 
14431
        esac
 
14432
        ;;
 
14433
      irix5* | irix6* | nonstopux*)
 
14434
        case $cc_basename in
 
14435
          CC)
 
14436
            lt_prog_compiler_wl_CXX='-Wl,'
 
14437
            lt_prog_compiler_static_CXX='-non_shared'
 
14438
            # CC pic flag -KPIC is the default.
 
14439
            ;;
 
14440
          *)
 
14441
            ;;
 
14442
        esac
 
14443
        ;;
 
14444
      linux*)
 
14445
        case $cc_basename in
 
14446
          KCC)
 
14447
            # KAI C++ Compiler
 
14448
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14449
            lt_prog_compiler_pic_CXX='-fPIC'
 
14450
            ;;
 
14451
          icpc)
 
14452
            # Intel C++
 
14453
            lt_prog_compiler_wl_CXX='-Wl,'
 
14454
            lt_prog_compiler_pic_CXX='-KPIC'
 
14455
            lt_prog_compiler_static_CXX='-static'
 
14456
            ;; 
 
14457
          cxx)
 
14458
            # Compaq C++
 
14459
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14460
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14461
            lt_prog_compiler_pic_CXX=
 
14462
            lt_prog_compiler_static_CXX='-non_shared'
 
14463
            ;;
 
14464
          *)
 
14465
            ;;
 
14466
        esac
 
14467
        ;;
 
14468
      lynxos*)
 
14469
        ;;
 
14470
      m88k*)
 
14471
        ;;
 
14472
      mvs*)
 
14473
        case $cc_basename in
 
14474
          cxx)
 
14475
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14476
            ;;
 
14477
          *)
 
14478
            ;;
 
14479
        esac
 
14480
        ;;
 
14481
      netbsd*)
 
14482
        ;;
 
14483
      osf3* | osf4* | osf5*)
 
14484
        case $cc_basename in
 
14485
          KCC)
 
14486
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14487
            ;;
 
14488
          RCC)
 
14489
            # Rational C++ 2.4.1
 
14490
            lt_prog_compiler_pic_CXX='-pic'
 
14491
            ;;
 
14492
          cxx)
 
14493
            # Digital/Compaq C++
 
14494
            lt_prog_compiler_wl_CXX='-Wl,'
 
14495
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14496
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14497
            lt_prog_compiler_pic_CXX=
 
14498
            lt_prog_compiler_static_CXX='-non_shared'
 
14499
            ;;
 
14500
          *)
 
14501
            ;;
 
14502
        esac
 
14503
        ;;
 
14504
      psos*)
 
14505
        ;;
 
14506
      sco*)
 
14507
        case $cc_basename in
 
14508
          CC)
 
14509
            lt_prog_compiler_pic_CXX='-fPIC'
 
14510
            ;;
 
14511
          *)
 
14512
            ;;
 
14513
        esac
 
14514
        ;;
 
14515
      solaris*)
 
14516
        case $cc_basename in
 
14517
          CC)
 
14518
            # Sun C++ 4.2, 5.x and Centerline C++
 
14519
            lt_prog_compiler_pic_CXX='-KPIC'
 
14520
            lt_prog_compiler_static_CXX='-Bstatic'
 
14521
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14522
            ;;
 
14523
          gcx)
 
14524
            # Green Hills C++ Compiler
 
14525
            lt_prog_compiler_pic_CXX='-PIC'
 
14526
            ;;
 
14527
          *)
 
14528
            ;;
 
14529
        esac
 
14530
        ;;
 
14531
      sunos4*)
 
14532
        case $cc_basename in
 
14533
          CC)
 
14534
            # Sun C++ 4.x
 
14535
            lt_prog_compiler_pic_CXX='-pic'
 
14536
            lt_prog_compiler_static_CXX='-Bstatic'
 
14537
            ;;
 
14538
          lcc)
 
14539
            # Lucid
 
14540
            lt_prog_compiler_pic_CXX='-pic'
 
14541
            ;;
 
14542
          *)
 
14543
            ;;
 
14544
        esac
 
14545
        ;;
 
14546
      tandem*)
 
14547
        case $cc_basename in
 
14548
          NCC)
 
14549
            # NonStop-UX NCC 3.20
 
14550
            lt_prog_compiler_pic_CXX='-KPIC'
 
14551
            ;;
 
14552
          *)
 
14553
            ;;
 
14554
        esac
 
14555
        ;;
 
14556
      unixware*)
 
14557
        ;;
 
14558
      vxworks*)
 
14559
        ;;
 
14560
      *)
 
14561
        lt_prog_compiler_can_build_shared_CXX=no
 
14562
        ;;
 
14563
    esac
 
14564
  fi
 
14565
 
 
14566
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
14567
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
14568
 
 
14569
#
 
14570
# Check to make sure the PIC flag actually works.
 
14571
#
 
14572
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14573
  
 
14574
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14575
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
14576
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
14577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14578
else
 
14579
  lt_prog_compiler_pic_works_CXX=no
 
14580
  ac_outfile=conftest.$ac_objext
 
14581
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14582
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14583
   # Insert the option either (1) after the last *FLAGS variable, or
 
14584
   # (2) before a word containing "conftest.", or (3) at the end.
 
14585
   # Note that $ac_compile itself does not contain backslashes and begins
 
14586
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14587
   # The option is referenced via a variable to avoid confusing sed.
 
14588
   lt_compile=`echo "$ac_compile" | $SED \
 
14589
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14590
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14591
   -e 's:$: $lt_compiler_flag:'`
 
14592
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
14593
   (eval "$lt_compile" 2>conftest.err)
 
14594
   ac_status=$?
 
14595
   cat conftest.err >&5
 
14596
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
14597
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14598
     # The compiler can only warn and ignore the option if not recognized
 
14599
     # So say no if there are warnings
 
14600
     if test ! -s conftest.err; then
 
14601
       lt_prog_compiler_pic_works_CXX=yes
 
14602
     fi
 
14603
   fi
 
14604
   $rm conftest*
 
14605
 
 
14606
fi
 
14607
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
14608
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
14609
 
 
14610
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
14611
    case $lt_prog_compiler_pic_CXX in
 
14612
     "" | " "*) ;;
 
14613
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14614
     esac
 
14615
else
 
14616
    lt_prog_compiler_pic_CXX=
 
14617
     lt_prog_compiler_can_build_shared_CXX=no
 
14618
fi
 
14619
 
 
14620
fi
 
14621
case "$host_os" in
 
14622
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14623
  *djgpp*)
 
14624
    lt_prog_compiler_pic_CXX=
 
14625
    ;;
 
14626
  *)
 
14627
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14628
    ;;
 
14629
esac
 
14630
 
 
14631
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14632
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14633
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
14634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14635
else
 
14636
  lt_cv_prog_compiler_c_o_CXX=no
 
14637
   $rm -r conftest 2>/dev/null
 
14638
   mkdir conftest
 
14639
   cd conftest
 
14640
   mkdir out
 
14641
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14642
 
 
14643
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
14644
   # that will create temporary files in the current directory regardless of
 
14645
   # the output directory.  Thus, making CWD read-only will cause this test
 
14646
   # to fail, enabling locking or at least warning the user not to do parallel
 
14647
   # builds.
 
14648
   chmod -w .
 
14649
 
 
14650
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14651
   # Insert the option either (1) after the last *FLAGS variable, or
 
14652
   # (2) before a word containing "conftest.", or (3) at the end.
 
14653
   # Note that $ac_compile itself does not contain backslashes and begins
 
14654
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14655
   lt_compile=`echo "$ac_compile" | $SED \
 
14656
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14657
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14658
   -e 's:$: $lt_compiler_flag:'`
 
14659
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
14660
   (eval "$lt_compile" 2>out/conftest.err)
 
14661
   ac_status=$?
 
14662
   cat out/conftest.err >&5
 
14663
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
14664
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14665
   then
 
14666
     # The compiler can only warn and ignore the option if not recognized
 
14667
     # So say no if there are warnings
 
14668
     if test ! -s out/conftest.err; then
 
14669
       lt_cv_prog_compiler_c_o_CXX=yes
 
14670
     fi
 
14671
   fi
 
14672
   chmod u+w .
 
14673
   $rm conftest* out/*
 
14674
   rmdir out
 
14675
   cd ..
 
14676
   rmdir conftest
 
14677
   $rm conftest*
 
14678
 
 
14679
fi
 
14680
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14681
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14682
 
 
14683
 
 
14684
hard_links="nottested"
 
14685
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14686
  # do not overwrite the value of need_locks provided by the user
 
14687
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14688
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14689
  hard_links=yes
 
14690
  $rm conftest*
 
14691
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14692
  touch conftest.a
 
14693
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14694
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14695
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14696
echo "${ECHO_T}$hard_links" >&6; }
 
14697
  if test "$hard_links" = no; then
 
14698
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14699
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14700
    need_locks=warn
 
14701
  fi
 
14702
else
 
14703
  need_locks=no
 
14704
fi
 
14705
 
 
14706
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14707
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14708
 
 
14709
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14710
  case $host_os in
 
14711
  aix4* | aix5*)
 
14712
    # If we're using GNU nm, then we don't want the "-C" option.
 
14713
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14714
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14715
      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'
 
14716
    else
 
14717
      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'
 
14718
    fi
 
14719
    ;;
 
14720
  pw32*)
 
14721
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14722
  ;;
 
14723
  cygwin* | mingw*)
 
14724
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14725
  ;;
 
14726
  *)
 
14727
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14728
  ;;
 
14729
  esac
 
14730
 
 
14731
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
14732
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
14733
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14734
 
 
14735
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14736
if test "$GCC" = yes; then
 
14737
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14738
fi
 
14739
 
 
14740
#
 
14741
# Do we need to explicitly link libc?
 
14742
#
 
14743
case "x$archive_cmds_need_lc_CXX" in
 
14744
x|xyes)
 
14745
  # Assume -lc should be added
 
14746
  archive_cmds_need_lc_CXX=yes
 
14747
 
 
14748
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14749
    case $archive_cmds_CXX in
 
14750
    *'~'*)
 
14751
      # FIXME: we may have to deal with multi-command sequences.
 
14752
      ;;
 
14753
    '$CC '*)
 
14754
      # Test whether the compiler implicitly links with -lc since on some
 
14755
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14756
      # to ld, don't add -lc before -lgcc.
 
14757
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14758
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
14759
      $rm conftest*
 
14760
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14761
  
 
14762
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14763
  (eval $ac_compile) 2>&5
 
14764
  ac_status=$?
 
14765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14766
  (exit $ac_status); } 2>conftest.err; then
 
14767
        soname=conftest
 
14768
        lib=conftest
 
14769
        libobjs=conftest.$ac_objext
 
14770
        deplibs=
 
14771
        wl=$lt_prog_compiler_wl_CXX
 
14772
        compiler_flags=-v
 
14773
        linker_flags=-v
 
14774
        verstring=
 
14775
        output_objdir=.
 
14776
        libname=conftest
 
14777
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14778
        allow_undefined_flag_CXX=
 
14779
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14780
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14781
  ac_status=$?
 
14782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14783
  (exit $ac_status); }
 
14784
        then
 
14785
          archive_cmds_need_lc_CXX=no
 
14786
        else
 
14787
          archive_cmds_need_lc_CXX=yes
 
14788
        fi
 
14789
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14790
      else
 
14791
        cat conftest.err 1>&5
 
14792
      fi
 
14793
      $rm conftest*
 
14794
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
14795
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
14796
      ;;
 
14797
    esac
 
14798
  fi
 
14799
  ;;
 
14800
esac
 
14801
 
 
14802
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14803
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
14804
library_names_spec=
 
14805
libname_spec='lib$name'
 
14806
soname_spec=
 
14807
shrext=".so"
 
14808
postinstall_cmds=
 
14809
postuninstall_cmds=
 
14810
finish_cmds=
 
14811
finish_eval=
 
14812
shlibpath_var=
 
14813
shlibpath_overrides_runpath=unknown
 
14814
version_type=none
 
14815
dynamic_linker="$host_os ld.so"
 
14816
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14817
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14818
need_lib_prefix=unknown
 
14819
hardcode_into_libs=no
 
14820
 
 
14821
# when you set need_version to no, make sure it does not cause -set_version
 
14822
# flags to be left without arguments
 
14823
need_version=unknown
 
14824
 
 
14825
case $host_os in
 
14826
aix3*)
 
14827
  version_type=linux
 
14828
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14829
  shlibpath_var=LIBPATH
 
14830
 
 
14831
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14832
  soname_spec='${libname}${release}${shared_ext}$major'
 
14833
  ;;
 
14834
 
 
14835
aix4* | aix5*)
 
14836
  version_type=linux
 
14837
  need_lib_prefix=no
 
14838
  need_version=no
 
14839
  hardcode_into_libs=yes
 
14840
  if test "$host_cpu" = ia64; then
 
14841
    # AIX 5 supports IA64
 
14842
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14843
    shlibpath_var=LD_LIBRARY_PATH
 
14844
  else
 
14845
    # With GCC up to 2.95.x, collect2 would create an import file
 
14846
    # for dependence libraries.  The import file would start with
 
14847
    # the line `#! .'.  This would cause the generated library to
 
14848
    # depend on `.', always an invalid library.  This was fixed in
 
14849
    # development snapshots of GCC prior to 3.0.
 
14850
    case $host_os in
 
14851
      aix4 | aix4.[01] | aix4.[01].*)
 
14852
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14853
           echo ' yes '
 
14854
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14855
        :
 
14856
      else
 
14857
        can_build_shared=no
 
14858
      fi
 
14859
      ;;
 
14860
    esac
 
14861
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14862
    # soname into executable. Probably we can add versioning support to
 
14863
    # collect2, so additional links can be useful in future.
 
14864
    if test "$aix_use_runtimelinking" = yes; then
 
14865
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14866
      # instead of lib<name>.a to let people know that these are not
 
14867
      # typical AIX shared libraries.
 
14868
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14869
    else
 
14870
      # We preserve .a as extension for shared libraries through AIX4.2
 
14871
      # and later when we are not doing run time linking.
 
14872
      library_names_spec='${libname}${release}.a $libname.a'
 
14873
      soname_spec='${libname}${release}${shared_ext}$major'
 
14874
    fi
 
14875
    shlibpath_var=LIBPATH
 
14876
  fi
 
14877
  ;;
 
14878
 
 
14879
amigaos*)
 
14880
  library_names_spec='$libname.ixlibrary $libname.a'
 
14881
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14882
  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'
 
14883
  ;;
 
14884
 
 
14885
beos*)
 
14886
  library_names_spec='${libname}${shared_ext}'
 
14887
  dynamic_linker="$host_os ld.so"
 
14888
  shlibpath_var=LIBRARY_PATH
 
14889
  ;;
 
14890
 
 
14891
bsdi4*)
 
14892
  version_type=linux
 
14893
  need_version=no
 
14894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14895
  soname_spec='${libname}${release}${shared_ext}$major'
 
14896
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14897
  shlibpath_var=LD_LIBRARY_PATH
 
14898
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14899
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14900
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14901
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14902
  # libtool to hard-code these into programs
 
14903
  ;;
 
14904
 
 
14905
cygwin* | mingw* | pw32*)
 
14906
  version_type=windows
 
14907
  shrext=".dll"
 
14908
  need_version=no
 
14909
  need_lib_prefix=no
 
14910
 
 
14911
  case $GCC,$host_os in
 
14912
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14913
    library_names_spec='$libname.dll.a'
 
14914
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14915
    postinstall_cmds='base_file=`basename \${file}`~
 
14916
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14917
      dldir=$destdir/`dirname \$dlpath`~
 
14918
      test -d \$dldir || mkdir -p \$dldir~
 
14919
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14920
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14921
      dlpath=$dir/\$dldll~
 
14922
       $rm \$dlpath'
 
14923
    shlibpath_overrides_runpath=yes
 
14924
 
 
14925
    case $host_os in
 
14926
    cygwin*)
 
14927
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14928
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14929
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14930
      ;;
 
14931
    mingw*)
 
14932
      # MinGW DLLs use traditional 'lib' prefix
 
14933
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14934
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14935
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14936
        # It is most probably a Windows format PATH printed by
 
14937
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14938
        # path with ; separators, and with drive letters. We can handle the
 
14939
        # drive letters (cygwin fileutils understands them), so leave them,
 
14940
        # especially as we might pass files found there to a mingw objdump,
 
14941
        # which wouldn't understand a cygwinified path. Ahh.
 
14942
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14943
      else
 
14944
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14945
      fi
 
14946
      ;;
 
14947
    pw32*)
 
14948
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14949
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14950
      ;;
 
14951
    esac
 
14952
    ;;
 
14953
 
 
14954
  *)
 
14955
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14956
    ;;
 
14957
  esac
 
14958
  dynamic_linker='Win32 ld.exe'
 
14959
  # FIXME: first we should search . and the directory the executable is in
 
14960
  shlibpath_var=PATH
 
14961
  ;;
 
14962
 
 
14963
darwin* | rhapsody*)
 
14964
  dynamic_linker="$host_os dyld"
 
14965
  version_type=darwin
 
14966
  need_lib_prefix=no
 
14967
  need_version=no
 
14968
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14969
  soname_spec='${libname}${release}${major}$shared_ext'
 
14970
  shlibpath_overrides_runpath=yes
 
14971
  shlibpath_var=DYLD_LIBRARY_PATH
 
14972
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
14973
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14974
  if test "$GCC" = yes; then
 
14975
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
14976
  else
 
14977
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14978
  fi
 
14979
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14980
  ;;
 
14981
 
 
14982
dgux*)
 
14983
  version_type=linux
 
14984
  need_lib_prefix=no
 
14985
  need_version=no
 
14986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14987
  soname_spec='${libname}${release}${shared_ext}$major'
 
14988
  shlibpath_var=LD_LIBRARY_PATH
 
14989
  ;;
 
14990
 
 
14991
freebsd1*)
 
14992
  dynamic_linker=no
 
14993
  ;;
 
14994
 
 
14995
freebsd*-gnu*)
 
14996
  version_type=linux
 
14997
  need_lib_prefix=no
 
14998
  need_version=no
 
14999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15000
  soname_spec='${libname}${release}${shared_ext}$major'
 
15001
  shlibpath_var=LD_LIBRARY_PATH
 
15002
  shlibpath_overrides_runpath=no
 
15003
  hardcode_into_libs=yes
 
15004
  dynamic_linker='GNU ld.so'
 
15005
  ;;
 
15006
 
 
15007
freebsd*)
 
15008
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15009
  version_type=freebsd-$objformat
 
15010
  case $version_type in
 
15011
    freebsd-elf*)
 
15012
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15013
      need_version=no
 
15014
      need_lib_prefix=no
 
15015
      ;;
 
15016
    freebsd-*)
 
15017
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15018
      need_version=yes
 
15019
      ;;
 
15020
  esac
 
15021
  shlibpath_var=LD_LIBRARY_PATH
 
15022
  case $host_os in
 
15023
  freebsd2*)
 
15024
    shlibpath_overrides_runpath=yes
 
15025
    ;;
 
15026
  freebsd3.01* | freebsdelf3.01*)
 
15027
    shlibpath_overrides_runpath=yes
 
15028
    hardcode_into_libs=yes
 
15029
    ;;
 
15030
  *) # from 3.2 on
 
15031
    shlibpath_overrides_runpath=no
 
15032
    hardcode_into_libs=yes
 
15033
    ;;
 
15034
  esac
 
15035
  ;;
 
15036
 
 
15037
gnu*)
 
15038
  version_type=linux
 
15039
  need_lib_prefix=no
 
15040
  need_version=no
 
15041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15042
  soname_spec='${libname}${release}${shared_ext}$major'
 
15043
  shlibpath_var=LD_LIBRARY_PATH
 
15044
  hardcode_into_libs=yes
 
15045
  ;;
 
15046
 
 
15047
hpux9* | hpux10* | hpux11*)
 
15048
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15049
  # link against other versions.
 
15050
  version_type=sunos
 
15051
  need_lib_prefix=no
 
15052
  need_version=no
 
15053
  case "$host_cpu" in
 
15054
  ia64*)
 
15055
    shrext='.so'
 
15056
    hardcode_into_libs=yes
 
15057
    dynamic_linker="$host_os dld.so"
 
15058
    shlibpath_var=LD_LIBRARY_PATH
 
15059
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15060
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15061
    soname_spec='${libname}${release}${shared_ext}$major'
 
15062
    if test "X$HPUX_IA64_MODE" = X32; then
 
15063
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15064
    else
 
15065
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15066
    fi
 
15067
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15068
    ;;
 
15069
   hppa*64*)
 
15070
     shrext='.sl'
 
15071
     hardcode_into_libs=yes
 
15072
     dynamic_linker="$host_os dld.sl"
 
15073
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15074
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15075
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15076
     soname_spec='${libname}${release}${shared_ext}$major'
 
15077
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15078
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15079
     ;;
 
15080
   *)
 
15081
    shrext='.sl'
 
15082
    dynamic_linker="$host_os dld.sl"
 
15083
    shlibpath_var=SHLIB_PATH
 
15084
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15085
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15086
    soname_spec='${libname}${release}${shared_ext}$major'
 
15087
    ;;
 
15088
  esac
 
15089
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15090
  postinstall_cmds='chmod 555 $lib'
 
15091
  ;;
 
15092
 
 
15093
irix5* | irix6* | nonstopux*)
 
15094
  case $host_os in
 
15095
    nonstopux*) version_type=nonstopux ;;
 
15096
    *)
 
15097
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15098
                version_type=linux
 
15099
        else
 
15100
                version_type=irix
 
15101
        fi ;;
 
15102
  esac
 
15103
  need_lib_prefix=no
 
15104
  need_version=no
 
15105
  soname_spec='${libname}${release}${shared_ext}$major'
 
15106
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15107
  case $host_os in
 
15108
  irix5* | nonstopux*)
 
15109
    libsuff= shlibsuff=
 
15110
    ;;
 
15111
  *)
 
15112
    case $LD in # libtool.m4 will add one of these switches to LD
 
15113
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15114
      libsuff= shlibsuff= libmagic=32-bit;;
 
15115
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15116
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15117
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15118
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15119
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15120
    esac
 
15121
    ;;
 
15122
  esac
 
15123
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15124
  shlibpath_overrides_runpath=no
 
15125
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15126
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15127
  hardcode_into_libs=yes
 
15128
  ;;
 
15129
 
 
15130
# No shared lib support for Linux oldld, aout, or coff.
 
15131
linux*oldld* | linux*aout* | linux*coff*)
 
15132
  dynamic_linker=no
 
15133
  ;;
 
15134
 
 
15135
# This must be Linux ELF.
 
15136
linux*)
 
15137
  version_type=linux
 
15138
  need_lib_prefix=no
 
15139
  need_version=no
 
15140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15141
  soname_spec='${libname}${release}${shared_ext}$major'
 
15142
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15143
  libsuff=
 
15144
  if test "x$LINUX_64_MODE" = x64; then
 
15145
    # Some platforms are per default 64-bit, so there's no /lib64
 
15146
    if test -d /lib64; then
 
15147
      libsuff=64
 
15148
    fi
 
15149
  fi
 
15150
  shlibpath_var=LD_LIBRARY_PATH
 
15151
  shlibpath_overrides_runpath=no
 
15152
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
15153
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
15154
  # This implies no fast_install, which is unacceptable.
 
15155
  # Some rework will be needed to allow for fast_install
 
15156
  # before this can be enabled.
 
15157
  hardcode_into_libs=yes
 
15158
 
 
15159
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15160
  # powerpc, because MkLinux only supported shared libraries with the
 
15161
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15162
  # most powerpc-linux boxes support dynamic linking these days and
 
15163
  # people can always --disable-shared, the test was removed, and we
 
15164
  # assume the GNU/Linux dynamic linker is in use.
 
15165
  dynamic_linker='GNU/Linux ld.so'
 
15166
  ;;
 
15167
 
 
15168
netbsd*)
 
15169
  version_type=sunos
 
15170
  need_lib_prefix=no
 
15171
  need_version=no
 
15172
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15173
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15174
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15175
    dynamic_linker='NetBSD (a.out) ld.so'
 
15176
  else
 
15177
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
15178
    soname_spec='${libname}${release}${shared_ext}$major'
 
15179
    dynamic_linker='NetBSD ld.elf_so'
 
15180
  fi
 
15181
  shlibpath_var=LD_LIBRARY_PATH
 
15182
  shlibpath_overrides_runpath=yes
 
15183
  hardcode_into_libs=yes
 
15184
  ;;
 
15185
 
 
15186
newsos6)
 
15187
  version_type=linux
 
15188
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15189
  shlibpath_var=LD_LIBRARY_PATH
 
15190
  shlibpath_overrides_runpath=yes
 
15191
  ;;
 
15192
 
 
15193
nto-qnx*)
 
15194
  version_type=linux
 
15195
  need_lib_prefix=no
 
15196
  need_version=no
 
15197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15198
  soname_spec='${libname}${release}${shared_ext}$major'
 
15199
  shlibpath_var=LD_LIBRARY_PATH
 
15200
  shlibpath_overrides_runpath=yes
 
15201
  ;;
 
15202
 
 
15203
openbsd*)
 
15204
  version_type=sunos
 
15205
  need_lib_prefix=no
 
15206
  need_version=no
 
15207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15208
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15209
  shlibpath_var=LD_LIBRARY_PATH
 
15210
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15211
    case $host_os in
 
15212
      openbsd2.[89] | openbsd2.[89].*)
 
15213
        shlibpath_overrides_runpath=no
 
15214
        ;;
 
15215
      *)
 
15216
        shlibpath_overrides_runpath=yes
 
15217
        ;;
 
15218
      esac
 
15219
  else
 
15220
    shlibpath_overrides_runpath=yes
 
15221
  fi
 
15222
  ;;
 
15223
 
 
15224
os2*)
 
15225
  libname_spec='$name'
 
15226
  shrext=".dll"
 
15227
  need_lib_prefix=no
 
15228
  library_names_spec='$libname${shared_ext} $libname.a'
 
15229
  dynamic_linker='OS/2 ld.exe'
 
15230
  shlibpath_var=LIBPATH
 
15231
  ;;
 
15232
 
 
15233
osf3* | osf4* | osf5*)
 
15234
  version_type=osf
 
15235
  need_lib_prefix=no
 
15236
  need_version=no
 
15237
  soname_spec='${libname}${release}${shared_ext}$major'
 
15238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15239
  shlibpath_var=LD_LIBRARY_PATH
 
15240
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15241
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15242
  ;;
 
15243
 
 
15244
sco3.2v5*)
 
15245
  version_type=osf
 
15246
  soname_spec='${libname}${release}${shared_ext}$major'
 
15247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15248
  shlibpath_var=LD_LIBRARY_PATH
 
15249
  ;;
 
15250
 
 
15251
solaris*)
 
15252
  version_type=linux
 
15253
  need_lib_prefix=no
 
15254
  need_version=no
 
15255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15256
  soname_spec='${libname}${release}${shared_ext}$major'
 
15257
  shlibpath_var=LD_LIBRARY_PATH
 
15258
  shlibpath_overrides_runpath=yes
 
15259
  hardcode_into_libs=yes
 
15260
  # ldd complains unless libraries are executable
 
15261
  postinstall_cmds='chmod +x $lib'
 
15262
  ;;
 
15263
 
 
15264
sunos4*)
 
15265
  version_type=sunos
 
15266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15267
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15268
  shlibpath_var=LD_LIBRARY_PATH
 
15269
  shlibpath_overrides_runpath=yes
 
15270
  if test "$with_gnu_ld" = yes; then
 
15271
    need_lib_prefix=no
 
15272
  fi
 
15273
  need_version=yes
 
15274
  ;;
 
15275
 
 
15276
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15277
  version_type=linux
 
15278
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15279
  soname_spec='${libname}${release}${shared_ext}$major'
 
15280
  shlibpath_var=LD_LIBRARY_PATH
 
15281
  case $host_vendor in
 
15282
    sni)
 
15283
      shlibpath_overrides_runpath=no
 
15284
      need_lib_prefix=no
 
15285
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15286
      runpath_var=LD_RUN_PATH
 
15287
      ;;
 
15288
    siemens)
 
15289
      need_lib_prefix=no
 
15290
      ;;
 
15291
    motorola)
 
15292
      need_lib_prefix=no
 
15293
      need_version=no
 
15294
      shlibpath_overrides_runpath=no
 
15295
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15296
      ;;
 
15297
  esac
 
15298
  ;;
 
15299
 
 
15300
sysv4*MP*)
 
15301
  if test -d /usr/nec ;then
 
15302
    version_type=linux
 
15303
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15304
    soname_spec='$libname${shared_ext}.$major'
 
15305
    shlibpath_var=LD_LIBRARY_PATH
 
15306
  fi
 
15307
  ;;
 
15308
 
 
15309
uts4*)
 
15310
  version_type=linux
 
15311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15312
  soname_spec='${libname}${release}${shared_ext}$major'
 
15313
  shlibpath_var=LD_LIBRARY_PATH
 
15314
  ;;
 
15315
 
 
15316
*)
 
15317
  dynamic_linker=no
 
15318
  ;;
 
15319
esac
 
15320
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15321
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15322
test "$dynamic_linker" = no && can_build_shared=no
 
15323
 
 
15324
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15325
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15326
hardcode_action_CXX=
 
15327
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
15328
   test -n "$runpath_var CXX" || \
 
15329
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
15330
 
 
15331
  # We can hardcode non-existant directories.
 
15332
  if test "$hardcode_direct_CXX" != no &&
 
15333
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15334
     # have to relink, otherwise we might link with an installed library
 
15335
     # when we should be linking with a yet-to-be-installed one
 
15336
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15337
     test "$hardcode_minus_L_CXX" != no; then
 
15338
    # Linking always hardcodes the temporary library directory.
 
15339
    hardcode_action_CXX=relink
 
15340
  else
 
15341
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15342
    hardcode_action_CXX=immediate
 
15343
  fi
 
15344
else
 
15345
  # We cannot hardcode anything, or else we can only hardcode existing
 
15346
  # directories.
 
15347
  hardcode_action_CXX=unsupported
 
15348
fi
 
15349
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
15350
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
15351
 
 
15352
if test "$hardcode_action_CXX" = relink; then
 
15353
  # Fast installation is not supported
 
15354
  enable_fast_install=no
 
15355
elif test "$shlibpath_overrides_runpath" = yes ||
 
15356
     test "$enable_shared" = no; then
 
15357
  # Fast installation is not necessary
 
15358
  enable_fast_install=needless
 
15359
fi
 
15360
 
 
15361
striplib=
 
15362
old_striplib=
 
15363
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15364
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
15365
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15366
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15367
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15368
  { echo "$as_me:$LINENO: result: yes" >&5
 
15369
echo "${ECHO_T}yes" >&6; }
 
15370
else
 
15371
# FIXME - insert some real tests, host_os isn't really good enough
 
15372
  case $host_os in
 
15373
   darwin*)
 
15374
       if test -n "$STRIP" ; then
 
15375
         striplib="$STRIP -x"
 
15376
         { echo "$as_me:$LINENO: result: yes" >&5
 
15377
echo "${ECHO_T}yes" >&6; }
 
15378
       else
 
15379
  { echo "$as_me:$LINENO: result: no" >&5
 
15380
echo "${ECHO_T}no" >&6; }
 
15381
fi
 
15382
       ;;
 
15383
   *)
 
15384
  { echo "$as_me:$LINENO: result: no" >&5
 
15385
echo "${ECHO_T}no" >&6; }
 
15386
    ;;
 
15387
  esac  
 
15388
fi
 
15389
 
 
15390
if test "x$enable_dlopen" != xyes; then
 
15391
  enable_dlopen=unknown
 
15392
  enable_dlopen_self=unknown
 
15393
  enable_dlopen_self_static=unknown
 
15394
else
 
15395
  lt_cv_dlopen=no
 
15396
  lt_cv_dlopen_libs=
 
15397
 
 
15398
  case $host_os in
 
15399
  beos*)
 
15400
    lt_cv_dlopen="load_add_on"
 
15401
    lt_cv_dlopen_libs=
 
15402
    lt_cv_dlopen_self=yes
 
15403
    ;;
 
15404
 
 
15405
  mingw* | pw32*)
 
15406
    lt_cv_dlopen="LoadLibrary"
 
15407
    lt_cv_dlopen_libs=
 
15408
   ;;
 
15409
 
 
15410
  cygwin*)
 
15411
    lt_cv_dlopen="dlopen"
 
15412
    lt_cv_dlopen_libs=
 
15413
   ;;
 
15414
 
 
15415
  darwin*)
 
15416
  # if libdl is installed we need to link against it
 
15417
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
15418
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
15419
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
15420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15421
else
 
15422
  ac_check_lib_save_LIBS=$LIBS
 
15423
LIBS="-ldl  $LIBS"
 
15424
cat >conftest.$ac_ext <<_ACEOF
 
15425
/* confdefs.h.  */
 
15426
_ACEOF
 
15427
cat confdefs.h >>conftest.$ac_ext
 
15428
cat >>conftest.$ac_ext <<_ACEOF
 
15429
/* end confdefs.h.  */
 
15430
 
 
15431
/* Override any GCC internal prototype to avoid an error.
 
15432
   Use char because int might match the return type of a GCC
 
15433
   builtin and then its argument prototype would still apply.  */
 
15434
#ifdef __cplusplus
 
15435
extern "C"
 
15436
#endif
 
15437
char dlopen ();
 
15438
int
 
15439
main ()
 
15440
{
 
15441
return dlopen ();
 
15442
  ;
 
15443
  return 0;
 
15444
}
 
15445
_ACEOF
 
15446
rm -f conftest.$ac_objext conftest$ac_exeext
 
15447
if { (ac_try="$ac_link"
 
15448
case "(($ac_try" in
 
15449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15450
  *) ac_try_echo=$ac_try;;
 
15451
esac
 
15452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15453
  (eval "$ac_link") 2>conftest.er1
 
15454
  ac_status=$?
 
15455
  grep -v '^ *+' conftest.er1 >conftest.err
 
15456
  rm -f conftest.er1
 
15457
  cat conftest.err >&5
 
15458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15459
  (exit $ac_status); } && {
 
15460
         test -z "$ac_cxx_werror_flag" ||
 
15461
         test ! -s conftest.err
 
15462
       } && test -s conftest$ac_exeext &&
 
15463
       $as_test_x conftest$ac_exeext; then
 
15464
  ac_cv_lib_dl_dlopen=yes
 
15465
else
 
15466
  echo "$as_me: failed program was:" >&5
 
15467
sed 's/^/| /' conftest.$ac_ext >&5
 
15468
 
 
15469
        ac_cv_lib_dl_dlopen=no
 
15470
fi
 
15471
 
 
15472
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15473
      conftest$ac_exeext conftest.$ac_ext
 
15474
LIBS=$ac_check_lib_save_LIBS
 
15475
fi
 
15476
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
15477
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
15478
if test $ac_cv_lib_dl_dlopen = yes; then
 
15479
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
15480
else
 
15481
  
 
15482
    lt_cv_dlopen="dyld"
 
15483
    lt_cv_dlopen_libs=
 
15484
    lt_cv_dlopen_self=yes
 
15485
    
 
15486
fi
 
15487
 
 
15488
   ;;
 
15489
    
 
15490
  *)
 
15491
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
15492
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
15493
if test "${ac_cv_func_shl_load+set}" = set; then
 
15494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15495
else
 
15496
  cat >conftest.$ac_ext <<_ACEOF
 
15497
/* confdefs.h.  */
 
15498
_ACEOF
 
15499
cat confdefs.h >>conftest.$ac_ext
 
15500
cat >>conftest.$ac_ext <<_ACEOF
 
15501
/* end confdefs.h.  */
 
15502
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
15503
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15504
#define shl_load innocuous_shl_load
 
15505
 
 
15506
/* System header to define __stub macros and hopefully few prototypes,
 
15507
    which can conflict with char shl_load (); below.
 
15508
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15509
    <limits.h> exists even on freestanding compilers.  */
 
15510
 
 
15511
#ifdef __STDC__
 
15512
# include <limits.h>
 
15513
#else
 
15514
# include <assert.h>
 
15515
#endif
 
15516
 
 
15517
#undef shl_load
 
15518
 
 
15519
/* Override any GCC internal prototype to avoid an error.
 
15520
   Use char because int might match the return type of a GCC
 
15521
   builtin and then its argument prototype would still apply.  */
 
15522
#ifdef __cplusplus
 
15523
extern "C"
 
15524
#endif
 
15525
char shl_load ();
 
15526
/* The GNU C library defines this for functions which it implements
 
15527
    to always fail with ENOSYS.  Some functions are actually named
 
15528
    something starting with __ and the normal name is an alias.  */
 
15529
#if defined __stub_shl_load || defined __stub___shl_load
 
15530
choke me
 
15531
#endif
 
15532
 
 
15533
int
 
15534
main ()
 
15535
{
 
15536
return shl_load ();
 
15537
  ;
 
15538
  return 0;
 
15539
}
 
15540
_ACEOF
 
15541
rm -f conftest.$ac_objext conftest$ac_exeext
 
15542
if { (ac_try="$ac_link"
 
15543
case "(($ac_try" in
 
15544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15545
  *) ac_try_echo=$ac_try;;
 
15546
esac
 
15547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15548
  (eval "$ac_link") 2>conftest.er1
 
15549
  ac_status=$?
 
15550
  grep -v '^ *+' conftest.er1 >conftest.err
 
15551
  rm -f conftest.er1
 
15552
  cat conftest.err >&5
 
15553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15554
  (exit $ac_status); } && {
 
15555
         test -z "$ac_cxx_werror_flag" ||
 
15556
         test ! -s conftest.err
 
15557
       } && test -s conftest$ac_exeext &&
 
15558
       $as_test_x conftest$ac_exeext; then
 
15559
  ac_cv_func_shl_load=yes
 
15560
else
 
15561
  echo "$as_me: failed program was:" >&5
 
15562
sed 's/^/| /' conftest.$ac_ext >&5
 
15563
 
 
15564
        ac_cv_func_shl_load=no
 
15565
fi
 
15566
 
 
15567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15568
      conftest$ac_exeext conftest.$ac_ext
 
15569
fi
 
15570
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
15571
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
15572
if test $ac_cv_func_shl_load = yes; then
 
15573
  lt_cv_dlopen="shl_load"
 
15574
else
 
15575
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
15576
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
15577
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
15578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15579
else
 
15580
  ac_check_lib_save_LIBS=$LIBS
 
15581
LIBS="-ldld  $LIBS"
 
15582
cat >conftest.$ac_ext <<_ACEOF
 
15583
/* confdefs.h.  */
 
15584
_ACEOF
 
15585
cat confdefs.h >>conftest.$ac_ext
 
15586
cat >>conftest.$ac_ext <<_ACEOF
 
15587
/* end confdefs.h.  */
 
15588
 
 
15589
/* Override any GCC internal prototype to avoid an error.
 
15590
   Use char because int might match the return type of a GCC
 
15591
   builtin and then its argument prototype would still apply.  */
 
15592
#ifdef __cplusplus
 
15593
extern "C"
 
15594
#endif
 
15595
char shl_load ();
 
15596
int
 
15597
main ()
 
15598
{
 
15599
return shl_load ();
 
15600
  ;
 
15601
  return 0;
 
15602
}
 
15603
_ACEOF
 
15604
rm -f conftest.$ac_objext conftest$ac_exeext
 
15605
if { (ac_try="$ac_link"
 
15606
case "(($ac_try" in
 
15607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15608
  *) ac_try_echo=$ac_try;;
 
15609
esac
 
15610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15611
  (eval "$ac_link") 2>conftest.er1
 
15612
  ac_status=$?
 
15613
  grep -v '^ *+' conftest.er1 >conftest.err
 
15614
  rm -f conftest.er1
 
15615
  cat conftest.err >&5
 
15616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15617
  (exit $ac_status); } && {
 
15618
         test -z "$ac_cxx_werror_flag" ||
 
15619
         test ! -s conftest.err
 
15620
       } && test -s conftest$ac_exeext &&
 
15621
       $as_test_x conftest$ac_exeext; then
 
15622
  ac_cv_lib_dld_shl_load=yes
 
15623
else
 
15624
  echo "$as_me: failed program was:" >&5
 
15625
sed 's/^/| /' conftest.$ac_ext >&5
 
15626
 
 
15627
        ac_cv_lib_dld_shl_load=no
 
15628
fi
 
15629
 
 
15630
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15631
      conftest$ac_exeext conftest.$ac_ext
 
15632
LIBS=$ac_check_lib_save_LIBS
 
15633
fi
 
15634
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
15635
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
15636
if test $ac_cv_lib_dld_shl_load = yes; then
 
15637
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
15638
else
 
15639
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
15640
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
15641
if test "${ac_cv_func_dlopen+set}" = set; then
 
15642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15643
else
 
15644
  cat >conftest.$ac_ext <<_ACEOF
 
15645
/* confdefs.h.  */
 
15646
_ACEOF
 
15647
cat confdefs.h >>conftest.$ac_ext
 
15648
cat >>conftest.$ac_ext <<_ACEOF
 
15649
/* end confdefs.h.  */
 
15650
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
15651
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15652
#define dlopen innocuous_dlopen
 
15653
 
 
15654
/* System header to define __stub macros and hopefully few prototypes,
 
15655
    which can conflict with char dlopen (); below.
 
15656
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15657
    <limits.h> exists even on freestanding compilers.  */
 
15658
 
 
15659
#ifdef __STDC__
 
15660
# include <limits.h>
 
15661
#else
 
15662
# include <assert.h>
 
15663
#endif
 
15664
 
 
15665
#undef dlopen
 
15666
 
 
15667
/* Override any GCC internal prototype to avoid an error.
 
15668
   Use char because int might match the return type of a GCC
 
15669
   builtin and then its argument prototype would still apply.  */
 
15670
#ifdef __cplusplus
 
15671
extern "C"
 
15672
#endif
 
15673
char dlopen ();
 
15674
/* The GNU C library defines this for functions which it implements
 
15675
    to always fail with ENOSYS.  Some functions are actually named
 
15676
    something starting with __ and the normal name is an alias.  */
 
15677
#if defined __stub_dlopen || defined __stub___dlopen
 
15678
choke me
 
15679
#endif
 
15680
 
 
15681
int
 
15682
main ()
 
15683
{
 
15684
return dlopen ();
 
15685
  ;
 
15686
  return 0;
 
15687
}
 
15688
_ACEOF
 
15689
rm -f conftest.$ac_objext conftest$ac_exeext
 
15690
if { (ac_try="$ac_link"
 
15691
case "(($ac_try" in
 
15692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15693
  *) ac_try_echo=$ac_try;;
 
15694
esac
 
15695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15696
  (eval "$ac_link") 2>conftest.er1
 
15697
  ac_status=$?
 
15698
  grep -v '^ *+' conftest.er1 >conftest.err
 
15699
  rm -f conftest.er1
 
15700
  cat conftest.err >&5
 
15701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15702
  (exit $ac_status); } && {
 
15703
         test -z "$ac_cxx_werror_flag" ||
 
15704
         test ! -s conftest.err
 
15705
       } && test -s conftest$ac_exeext &&
 
15706
       $as_test_x conftest$ac_exeext; then
 
15707
  ac_cv_func_dlopen=yes
 
15708
else
 
15709
  echo "$as_me: failed program was:" >&5
 
15710
sed 's/^/| /' conftest.$ac_ext >&5
 
15711
 
 
15712
        ac_cv_func_dlopen=no
 
15713
fi
 
15714
 
 
15715
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15716
      conftest$ac_exeext conftest.$ac_ext
 
15717
fi
 
15718
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
15719
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
15720
if test $ac_cv_func_dlopen = yes; then
 
15721
  lt_cv_dlopen="dlopen"
 
15722
else
 
15723
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
15724
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
15725
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
15726
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15727
else
 
15728
  ac_check_lib_save_LIBS=$LIBS
 
15729
LIBS="-ldl  $LIBS"
 
15730
cat >conftest.$ac_ext <<_ACEOF
 
15731
/* confdefs.h.  */
 
15732
_ACEOF
 
15733
cat confdefs.h >>conftest.$ac_ext
 
15734
cat >>conftest.$ac_ext <<_ACEOF
 
15735
/* end confdefs.h.  */
 
15736
 
 
15737
/* Override any GCC internal prototype to avoid an error.
 
15738
   Use char because int might match the return type of a GCC
 
15739
   builtin and then its argument prototype would still apply.  */
 
15740
#ifdef __cplusplus
 
15741
extern "C"
 
15742
#endif
 
15743
char dlopen ();
 
15744
int
 
15745
main ()
 
15746
{
 
15747
return dlopen ();
 
15748
  ;
 
15749
  return 0;
 
15750
}
 
15751
_ACEOF
 
15752
rm -f conftest.$ac_objext conftest$ac_exeext
 
15753
if { (ac_try="$ac_link"
 
15754
case "(($ac_try" in
 
15755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15756
  *) ac_try_echo=$ac_try;;
 
15757
esac
 
15758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15759
  (eval "$ac_link") 2>conftest.er1
 
15760
  ac_status=$?
 
15761
  grep -v '^ *+' conftest.er1 >conftest.err
 
15762
  rm -f conftest.er1
 
15763
  cat conftest.err >&5
 
15764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15765
  (exit $ac_status); } && {
 
15766
         test -z "$ac_cxx_werror_flag" ||
 
15767
         test ! -s conftest.err
 
15768
       } && test -s conftest$ac_exeext &&
 
15769
       $as_test_x conftest$ac_exeext; then
 
15770
  ac_cv_lib_dl_dlopen=yes
 
15771
else
 
15772
  echo "$as_me: failed program was:" >&5
 
15773
sed 's/^/| /' conftest.$ac_ext >&5
 
15774
 
 
15775
        ac_cv_lib_dl_dlopen=no
 
15776
fi
 
15777
 
 
15778
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15779
      conftest$ac_exeext conftest.$ac_ext
 
15780
LIBS=$ac_check_lib_save_LIBS
 
15781
fi
 
15782
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
15783
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
15784
if test $ac_cv_lib_dl_dlopen = yes; then
 
15785
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
15786
else
 
15787
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
15788
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
15789
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
15790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15791
else
 
15792
  ac_check_lib_save_LIBS=$LIBS
 
15793
LIBS="-lsvld  $LIBS"
 
15794
cat >conftest.$ac_ext <<_ACEOF
 
15795
/* confdefs.h.  */
 
15796
_ACEOF
 
15797
cat confdefs.h >>conftest.$ac_ext
 
15798
cat >>conftest.$ac_ext <<_ACEOF
 
15799
/* end confdefs.h.  */
 
15800
 
 
15801
/* Override any GCC internal prototype to avoid an error.
 
15802
   Use char because int might match the return type of a GCC
 
15803
   builtin and then its argument prototype would still apply.  */
 
15804
#ifdef __cplusplus
 
15805
extern "C"
 
15806
#endif
 
15807
char dlopen ();
 
15808
int
 
15809
main ()
 
15810
{
 
15811
return dlopen ();
 
15812
  ;
 
15813
  return 0;
 
15814
}
 
15815
_ACEOF
 
15816
rm -f conftest.$ac_objext conftest$ac_exeext
 
15817
if { (ac_try="$ac_link"
 
15818
case "(($ac_try" in
 
15819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15820
  *) ac_try_echo=$ac_try;;
 
15821
esac
 
15822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15823
  (eval "$ac_link") 2>conftest.er1
 
15824
  ac_status=$?
 
15825
  grep -v '^ *+' conftest.er1 >conftest.err
 
15826
  rm -f conftest.er1
 
15827
  cat conftest.err >&5
 
15828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15829
  (exit $ac_status); } && {
 
15830
         test -z "$ac_cxx_werror_flag" ||
 
15831
         test ! -s conftest.err
 
15832
       } && test -s conftest$ac_exeext &&
 
15833
       $as_test_x conftest$ac_exeext; then
 
15834
  ac_cv_lib_svld_dlopen=yes
 
15835
else
 
15836
  echo "$as_me: failed program was:" >&5
 
15837
sed 's/^/| /' conftest.$ac_ext >&5
 
15838
 
 
15839
        ac_cv_lib_svld_dlopen=no
 
15840
fi
 
15841
 
 
15842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15843
      conftest$ac_exeext conftest.$ac_ext
 
15844
LIBS=$ac_check_lib_save_LIBS
 
15845
fi
 
15846
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
15847
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
15848
if test $ac_cv_lib_svld_dlopen = yes; then
 
15849
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
15850
else
 
15851
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
15852
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
15853
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
15854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15855
else
 
15856
  ac_check_lib_save_LIBS=$LIBS
 
15857
LIBS="-ldld  $LIBS"
 
15858
cat >conftest.$ac_ext <<_ACEOF
 
15859
/* confdefs.h.  */
 
15860
_ACEOF
 
15861
cat confdefs.h >>conftest.$ac_ext
 
15862
cat >>conftest.$ac_ext <<_ACEOF
 
15863
/* end confdefs.h.  */
 
15864
 
 
15865
/* Override any GCC internal prototype to avoid an error.
 
15866
   Use char because int might match the return type of a GCC
 
15867
   builtin and then its argument prototype would still apply.  */
 
15868
#ifdef __cplusplus
 
15869
extern "C"
 
15870
#endif
 
15871
char dld_link ();
 
15872
int
 
15873
main ()
 
15874
{
 
15875
return dld_link ();
 
15876
  ;
 
15877
  return 0;
 
15878
}
 
15879
_ACEOF
 
15880
rm -f conftest.$ac_objext conftest$ac_exeext
 
15881
if { (ac_try="$ac_link"
 
15882
case "(($ac_try" in
 
15883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15884
  *) ac_try_echo=$ac_try;;
 
15885
esac
 
15886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15887
  (eval "$ac_link") 2>conftest.er1
 
15888
  ac_status=$?
 
15889
  grep -v '^ *+' conftest.er1 >conftest.err
 
15890
  rm -f conftest.er1
 
15891
  cat conftest.err >&5
 
15892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15893
  (exit $ac_status); } && {
 
15894
         test -z "$ac_cxx_werror_flag" ||
 
15895
         test ! -s conftest.err
 
15896
       } && test -s conftest$ac_exeext &&
 
15897
       $as_test_x conftest$ac_exeext; then
 
15898
  ac_cv_lib_dld_dld_link=yes
 
15899
else
 
15900
  echo "$as_me: failed program was:" >&5
 
15901
sed 's/^/| /' conftest.$ac_ext >&5
 
15902
 
 
15903
        ac_cv_lib_dld_dld_link=no
 
15904
fi
 
15905
 
 
15906
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15907
      conftest$ac_exeext conftest.$ac_ext
 
15908
LIBS=$ac_check_lib_save_LIBS
 
15909
fi
 
15910
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
15911
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
15912
if test $ac_cv_lib_dld_dld_link = yes; then
 
15913
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
15914
fi
 
15915
 
 
15916
              
 
15917
fi
 
15918
 
 
15919
            
 
15920
fi
 
15921
 
 
15922
          
 
15923
fi
 
15924
 
 
15925
        
 
15926
fi
 
15927
 
 
15928
      
 
15929
fi
 
15930
 
 
15931
    ;;
 
15932
  esac
 
15933
 
 
15934
  if test "x$lt_cv_dlopen" != xno; then
 
15935
    enable_dlopen=yes
 
15936
  else
 
15937
    enable_dlopen=no
 
15938
  fi
 
15939
 
 
15940
  case $lt_cv_dlopen in
 
15941
  dlopen)
 
15942
    save_CPPFLAGS="$CPPFLAGS"
 
15943
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
15944
 
 
15945
    save_LDFLAGS="$LDFLAGS"
 
15946
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
15947
 
 
15948
    save_LIBS="$LIBS"
 
15949
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
15950
 
 
15951
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
15952
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
15953
if test "${lt_cv_dlopen_self+set}" = set; then
 
15954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15955
else
 
15956
          if test "$cross_compiling" = yes; then :
 
15957
  lt_cv_dlopen_self=cross
 
15958
else
 
15959
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15960
  lt_status=$lt_dlunknown
 
15961
  cat > conftest.$ac_ext <<EOF
 
15962
#line __oline__ "configure"
 
15963
#include "confdefs.h"
 
15964
 
 
15965
#if HAVE_DLFCN_H
 
15966
#include <dlfcn.h>
 
15967
#endif
 
15968
 
 
15969
#include <stdio.h>
 
15970
 
 
15971
#ifdef RTLD_GLOBAL
 
15972
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15973
#else
 
15974
#  ifdef DL_GLOBAL
 
15975
#    define LT_DLGLOBAL         DL_GLOBAL
 
15976
#  else
 
15977
#    define LT_DLGLOBAL         0
 
15978
#  endif
 
15979
#endif
 
15980
 
 
15981
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15982
   find out it does not work in some platform. */
 
15983
#ifndef LT_DLLAZY_OR_NOW
 
15984
#  ifdef RTLD_LAZY
 
15985
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15986
#  else
 
15987
#    ifdef DL_LAZY
 
15988
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15989
#    else
 
15990
#      ifdef RTLD_NOW
 
15991
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15992
#      else
 
15993
#        ifdef DL_NOW
 
15994
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15995
#        else
 
15996
#          define LT_DLLAZY_OR_NOW      0
 
15997
#        endif
 
15998
#      endif
 
15999
#    endif
 
16000
#  endif
 
16001
#endif
 
16002
 
 
16003
#ifdef __cplusplus
 
16004
extern "C" void exit (int);
 
16005
#endif
 
16006
 
 
16007
void fnord() { int i=42;}
 
16008
int main ()
 
16009
{
 
16010
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
16011
  int status = $lt_dlunknown;
 
16012
 
 
16013
  if (self)
 
16014
    {
 
16015
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
16016
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
16017
      /* dlclose (self); */
 
16018
    }
 
16019
 
 
16020
    exit (status);
 
16021
}
 
16022
EOF
 
16023
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16024
  (eval $ac_link) 2>&5
 
16025
  ac_status=$?
 
16026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16027
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
16028
    (./conftest; exit; ) 2>/dev/null
 
16029
    lt_status=$?
 
16030
    case x$lt_status in
 
16031
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
16032
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
16033
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
16034
    esac
 
16035
  else :
 
16036
    # compilation failed
 
16037
    lt_cv_dlopen_self=no
 
16038
  fi
 
16039
fi
 
16040
rm -fr conftest*
 
16041
 
 
16042
    
 
16043
fi
 
16044
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
16045
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
16046
 
 
16047
    if test "x$lt_cv_dlopen_self" = xyes; then
 
16048
      LDFLAGS="$LDFLAGS $link_static_flag"
 
16049
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
16050
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
16051
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
16052
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16053
else
 
16054
          if test "$cross_compiling" = yes; then :
 
16055
  lt_cv_dlopen_self_static=cross
 
16056
else
 
16057
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
16058
  lt_status=$lt_dlunknown
 
16059
  cat > conftest.$ac_ext <<EOF
 
16060
#line __oline__ "configure"
 
16061
#include "confdefs.h"
 
16062
 
 
16063
#if HAVE_DLFCN_H
 
16064
#include <dlfcn.h>
 
16065
#endif
 
16066
 
 
16067
#include <stdio.h>
 
16068
 
 
16069
#ifdef RTLD_GLOBAL
 
16070
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
16071
#else
 
16072
#  ifdef DL_GLOBAL
 
16073
#    define LT_DLGLOBAL         DL_GLOBAL
 
16074
#  else
 
16075
#    define LT_DLGLOBAL         0
 
16076
#  endif
 
16077
#endif
 
16078
 
 
16079
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
16080
   find out it does not work in some platform. */
 
16081
#ifndef LT_DLLAZY_OR_NOW
 
16082
#  ifdef RTLD_LAZY
 
16083
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
16084
#  else
 
16085
#    ifdef DL_LAZY
 
16086
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
16087
#    else
 
16088
#      ifdef RTLD_NOW
 
16089
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
16090
#      else
 
16091
#        ifdef DL_NOW
 
16092
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
16093
#        else
 
16094
#          define LT_DLLAZY_OR_NOW      0
 
16095
#        endif
 
16096
#      endif
 
16097
#    endif
 
16098
#  endif
 
16099
#endif
 
16100
 
 
16101
#ifdef __cplusplus
 
16102
extern "C" void exit (int);
 
16103
#endif
 
16104
 
 
16105
void fnord() { int i=42;}
 
16106
int main ()
 
16107
{
 
16108
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
16109
  int status = $lt_dlunknown;
 
16110
 
 
16111
  if (self)
 
16112
    {
 
16113
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
16114
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
16115
      /* dlclose (self); */
 
16116
    }
 
16117
 
 
16118
    exit (status);
 
16119
}
 
16120
EOF
 
16121
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16122
  (eval $ac_link) 2>&5
 
16123
  ac_status=$?
 
16124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16125
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
16126
    (./conftest; exit; ) 2>/dev/null
 
16127
    lt_status=$?
 
16128
    case x$lt_status in
 
16129
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
16130
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
16131
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
16132
    esac
 
16133
  else :
 
16134
    # compilation failed
 
16135
    lt_cv_dlopen_self_static=no
 
16136
  fi
 
16137
fi
 
16138
rm -fr conftest*
 
16139
 
 
16140
      
 
16141
fi
 
16142
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
16143
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
16144
    fi
 
16145
 
 
16146
    CPPFLAGS="$save_CPPFLAGS"
 
16147
    LDFLAGS="$save_LDFLAGS"
 
16148
    LIBS="$save_LIBS"
 
16149
    ;;
 
16150
  esac
 
16151
 
 
16152
  case $lt_cv_dlopen_self in
 
16153
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
16154
  *) enable_dlopen_self=unknown ;;
 
16155
  esac
 
16156
 
 
16157
  case $lt_cv_dlopen_self_static in
 
16158
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
16159
  *) enable_dlopen_self_static=unknown ;;
 
16160
  esac
 
16161
fi
 
16162
 
 
16163
 
 
16164
# The else clause should only fire when bootstrapping the
 
16165
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16166
# with your package, and you will get complaints that there are
 
16167
# no rules to generate ltmain.sh.
 
16168
if test -f "$ltmain"; then
 
16169
  # See if we are running on zsh, and set the options which allow our commands through
 
16170
  # without removal of \ escapes.
 
16171
  if test -n "${ZSH_VERSION+set}" ; then
 
16172
    setopt NO_GLOB_SUBST
 
16173
  fi  
 
16174
  # Now quote all the things that may contain metacharacters while being
 
16175
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16176
  # variables and quote the copies for generation of the libtool script.
 
16177
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
16178
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16179
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16180
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16181
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16182
    lt_cv_sys_global_symbol_to_c_name_address \
 
16183
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16184
    old_postinstall_cmds old_postuninstall_cmds \
 
16185
    compiler_CXX \
 
16186
    CC_CXX \
 
16187
    LD_CXX \
 
16188
    lt_prog_compiler_wl_CXX \
 
16189
    lt_prog_compiler_pic_CXX \
 
16190
    lt_prog_compiler_static_CXX \
 
16191
    lt_prog_compiler_no_builtin_flag_CXX \
 
16192
    export_dynamic_flag_spec_CXX \
 
16193
    thread_safe_flag_spec_CXX \
 
16194
    whole_archive_flag_spec_CXX \
 
16195
    enable_shared_with_static_runtimes_CXX \
 
16196
    old_archive_cmds_CXX \
 
16197
    old_archive_from_new_cmds_CXX \
 
16198
    predep_objects_CXX \
 
16199
    postdep_objects_CXX \
 
16200
    predeps_CXX \
 
16201
    postdeps_CXX \
 
16202
    compiler_lib_search_path_CXX \
 
16203
    archive_cmds_CXX \
 
16204
    archive_expsym_cmds_CXX \
 
16205
    postinstall_cmds_CXX \
 
16206
    postuninstall_cmds_CXX \
 
16207
    old_archive_from_expsyms_cmds_CXX \
 
16208
    allow_undefined_flag_CXX \
 
16209
    no_undefined_flag_CXX \
 
16210
    export_symbols_cmds_CXX \
 
16211
    hardcode_libdir_flag_spec_CXX \
 
16212
    hardcode_libdir_flag_spec_ld_CXX \
 
16213
    hardcode_libdir_separator_CXX \
 
16214
    hardcode_automatic_CXX \
 
16215
    module_cmds_CXX \
 
16216
    module_expsym_cmds_CXX \
 
16217
    lt_cv_prog_compiler_c_o_CXX \
 
16218
    exclude_expsyms_CXX \
 
16219
    include_expsyms_CXX; do
 
16220
 
 
16221
    case $var in
 
16222
    old_archive_cmds_CXX | \
 
16223
    old_archive_from_new_cmds_CXX | \
 
16224
    archive_cmds_CXX | \
 
16225
    archive_expsym_cmds_CXX | \
 
16226
    module_cmds_CXX | \
 
16227
    module_expsym_cmds_CXX | \   
 
16228
    old_archive_from_expsyms_cmds_CXX | \
 
16229
    export_symbols_cmds_CXX | \
 
16230
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16231
    postinstall_cmds | postuninstall_cmds | \
 
16232
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16233
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16234
      # Double-quote double-evaled strings.
 
16235
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16236
      ;;
 
16237
    *)
 
16238
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16239
      ;;
 
16240
    esac
 
16241
  done
 
16242
 
 
16243
  case $lt_echo in
 
16244
  *'\$0 --fallback-echo"')
 
16245
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16246
    ;;
 
16247
  esac
 
16248
 
 
16249
cfgfile="$ofile"
 
16250
 
 
16251
  cat <<__EOF__ >> "$cfgfile"
 
16252
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16253
 
 
16254
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16255
 
 
16256
# Shell to use when invoking shell scripts.
 
16257
SHELL=$lt_SHELL
 
16258
 
 
16259
# Whether or not to build shared libraries.
 
16260
build_libtool_libs=$enable_shared
 
16261
 
 
16262
# Whether or not to build static libraries.
 
16263
build_old_libs=$enable_static
 
16264
 
 
16265
# Whether or not to add -lc for building shared libraries.
 
16266
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
16267
 
 
16268
# Whether or not to disallow shared libs when runtime libs are static
 
16269
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
16270
 
 
16271
# Whether or not to optimize for fast installation.
 
16272
fast_install=$enable_fast_install
 
16273
 
 
16274
# The host system.
 
16275
host_alias=$host_alias
 
16276
host=$host
 
16277
 
 
16278
# An echo program that does not interpret backslashes.
 
16279
echo=$lt_echo
 
16280
 
 
16281
# The archiver.
 
16282
AR=$lt_AR
 
16283
AR_FLAGS=$lt_AR_FLAGS
 
16284
 
 
16285
# A C compiler.
 
16286
LTCC=$lt_LTCC
 
16287
 
 
16288
# A language-specific compiler.
 
16289
CC=$lt_compiler_CXX
 
16290
 
 
16291
# Is the compiler the GNU C compiler?
 
16292
with_gcc=$GCC_CXX
 
16293
 
 
16294
# An ERE matcher.
 
16295
EGREP=$lt_EGREP
 
16296
 
 
16297
# The linker used to build libraries.
 
16298
LD=$lt_LD_CXX
 
16299
 
 
16300
# Whether we need hard or soft links.
 
16301
LN_S=$lt_LN_S
 
16302
 
 
16303
# A BSD-compatible nm program.
 
16304
NM=$lt_NM
 
16305
 
 
16306
# A symbol stripping program
 
16307
STRIP=$STRIP
 
16308
 
 
16309
# Used to examine libraries when file_magic_cmd begins "file"
 
16310
MAGIC_CMD=$MAGIC_CMD
 
16311
 
 
16312
# Used on cygwin: DLL creation program.
 
16313
DLLTOOL="$DLLTOOL"
 
16314
 
 
16315
# Used on cygwin: object dumper.
 
16316
OBJDUMP="$OBJDUMP"
 
16317
 
 
16318
# Used on cygwin: assembler.
 
16319
AS="$AS"
 
16320
 
 
16321
# The name of the directory that contains temporary libtool files.
 
16322
objdir=$objdir
 
16323
 
 
16324
# How to create reloadable object files.
 
16325
reload_flag=$lt_reload_flag
 
16326
reload_cmds=$lt_reload_cmds
 
16327
 
 
16328
# How to pass a linker flag through the compiler.
 
16329
wl=$lt_lt_prog_compiler_wl_CXX
 
16330
 
 
16331
# Object file suffix (normally "o").
 
16332
objext="$ac_objext"
 
16333
 
 
16334
# Old archive suffix (normally "a").
 
16335
libext="$libext"
 
16336
 
 
16337
# Shared library suffix (normally ".so").
 
16338
shrext='$shrext'
 
16339
 
 
16340
# Executable file suffix (normally "").
 
16341
exeext="$exeext"
 
16342
 
 
16343
# Additional compiler flags for building library objects.
 
16344
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
16345
pic_mode=$pic_mode
 
16346
 
 
16347
# What is the maximum length of a command?
 
16348
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16349
 
 
16350
# Does compiler simultaneously support -c and -o options?
 
16351
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
16352
 
 
16353
# Must we lock files when doing compilation ?
 
16354
need_locks=$lt_need_locks
 
16355
 
 
16356
# Do we need the lib prefix for modules?
 
16357
need_lib_prefix=$need_lib_prefix
 
16358
 
 
16359
# Do we need a version for libraries?
 
16360
need_version=$need_version
 
16361
 
 
16362
# Whether dlopen is supported.
 
16363
dlopen_support=$enable_dlopen
 
16364
 
 
16365
# Whether dlopen of programs is supported.
 
16366
dlopen_self=$enable_dlopen_self
 
16367
 
 
16368
# Whether dlopen of statically linked programs is supported.
 
16369
dlopen_self_static=$enable_dlopen_self_static
 
16370
 
 
16371
# Compiler flag to prevent dynamic linking.
 
16372
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
16373
 
 
16374
# Compiler flag to turn off builtin functions.
 
16375
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
16376
 
 
16377
# Compiler flag to allow reflexive dlopens.
 
16378
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
16379
 
 
16380
# Compiler flag to generate shared objects directly from archives.
 
16381
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
16382
 
 
16383
# Compiler flag to generate thread-safe objects.
 
16384
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
16385
 
 
16386
# Library versioning type.
 
16387
version_type=$version_type
 
16388
 
 
16389
# Format of library name prefix.
 
16390
libname_spec=$lt_libname_spec
 
16391
 
 
16392
# List of archive names.  First name is the real one, the rest are links.
 
16393
# The last name is the one that the linker finds with -lNAME.
 
16394
library_names_spec=$lt_library_names_spec
 
16395
 
 
16396
# The coded name of the library, if different from the real name.
 
16397
soname_spec=$lt_soname_spec
 
16398
 
 
16399
# Commands used to build and install an old-style archive.
 
16400
RANLIB=$lt_RANLIB
 
16401
old_archive_cmds=$lt_old_archive_cmds_CXX
 
16402
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16403
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16404
 
 
16405
# Create an old-style archive from a shared archive.
 
16406
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
16407
 
 
16408
# Create a temporary old-style archive to link instead of a shared archive.
 
16409
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
16410
 
 
16411
# Commands used to build and install a shared archive.
 
16412
archive_cmds=$lt_archive_cmds_CXX
 
16413
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
16414
postinstall_cmds=$lt_postinstall_cmds
 
16415
postuninstall_cmds=$lt_postuninstall_cmds
 
16416
 
 
16417
# Commands used to build a loadable module (assumed same as above if empty)
 
16418
module_cmds=$lt_module_cmds_CXX
 
16419
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
16420
 
 
16421
# Commands to strip libraries.
 
16422
old_striplib=$lt_old_striplib
 
16423
striplib=$lt_striplib
 
16424
 
 
16425
# Dependencies to place before the objects being linked to create a
 
16426
# shared library.
 
16427
predep_objects=$lt_predep_objects_CXX
 
16428
 
 
16429
# Dependencies to place after the objects being linked to create a
 
16430
# shared library.
 
16431
postdep_objects=$lt_postdep_objects_CXX
 
16432
 
 
16433
# Dependencies to place before the objects being linked to create a
 
16434
# shared library.
 
16435
predeps=$lt_predeps_CXX
 
16436
 
 
16437
# Dependencies to place after the objects being linked to create a
 
16438
# shared library.
 
16439
postdeps=$lt_postdeps_CXX
 
16440
 
 
16441
# The library search path used internally by the compiler when linking
 
16442
# a shared library.
 
16443
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
16444
 
 
16445
# Method to check whether dependent libraries are shared objects.
 
16446
deplibs_check_method=$lt_deplibs_check_method
 
16447
 
 
16448
# Command to use when deplibs_check_method == file_magic.
 
16449
file_magic_cmd=$lt_file_magic_cmd
 
16450
 
 
16451
# Flag that allows shared libraries with undefined symbols to be built.
 
16452
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
16453
 
 
16454
# Flag that forces no undefined symbols.
 
16455
no_undefined_flag=$lt_no_undefined_flag_CXX
 
16456
 
 
16457
# Commands used to finish a libtool library installation in a directory.
 
16458
finish_cmds=$lt_finish_cmds
 
16459
 
 
16460
# Same as above, but a single script fragment to be evaled but not shown.
 
16461
finish_eval=$lt_finish_eval
 
16462
 
 
16463
# Take the output of nm and produce a listing of raw symbols and C names.
 
16464
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16465
 
 
16466
# Transform the output of nm in a proper C declaration
 
16467
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16468
 
 
16469
# Transform the output of nm in a C name address pair
 
16470
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16471
 
 
16472
# This is the shared library runtime path variable.
 
16473
runpath_var=$runpath_var
 
16474
 
 
16475
# This is the shared library path variable.
 
16476
shlibpath_var=$shlibpath_var
 
16477
 
 
16478
# Is shlibpath searched before the hard-coded library search path?
 
16479
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16480
 
 
16481
# How to hardcode a shared library path into an executable.
 
16482
hardcode_action=$hardcode_action_CXX
 
16483
 
 
16484
# Whether we should hardcode library paths into libraries.
 
16485
hardcode_into_libs=$hardcode_into_libs
 
16486
 
 
16487
# Flag to hardcode \$libdir into a binary during linking.
 
16488
# This must work even if \$libdir does not exist.
 
16489
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
16490
 
 
16491
# If ld is used when linking, flag to hardcode \$libdir into
 
16492
# a binary during linking. This must work even if \$libdir does
 
16493
# not exist.
 
16494
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
16495
 
 
16496
# Whether we need a single -rpath flag with a separated argument.
 
16497
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
16498
 
 
16499
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16500
# resulting binary.
 
16501
hardcode_direct=$hardcode_direct_CXX
 
16502
 
 
16503
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16504
# resulting binary.
 
16505
hardcode_minus_L=$hardcode_minus_L_CXX
 
16506
 
 
16507
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16508
# the resulting binary.
 
16509
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
16510
 
 
16511
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16512
# and all subsequent libraries and executables linked against it.
 
16513
hardcode_automatic=$hardcode_automatic_CXX
 
16514
 
 
16515
# Variables whose values should be saved in libtool wrapper scripts and
 
16516
# restored at relink time.
 
16517
variables_saved_for_relink="$variables_saved_for_relink"
 
16518
 
 
16519
# Whether libtool must link a program against all its dependency libraries.
 
16520
link_all_deplibs=$link_all_deplibs_CXX
 
16521
 
 
16522
# Compile-time system search path for libraries
 
16523
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16524
 
 
16525
# Run-time system search path for libraries
 
16526
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16527
 
 
16528
# Fix the shell variable \$srcfile for the compiler.
 
16529
fix_srcfile_path="$fix_srcfile_path_CXX"
 
16530
 
 
16531
# Set to yes if exported symbols are required.
 
16532
always_export_symbols=$always_export_symbols_CXX
 
16533
 
 
16534
# The commands to list exported symbols.
 
16535
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
16536
 
 
16537
# The commands to extract the exported symbol list from a shared archive.
 
16538
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16539
 
 
16540
# Symbols that should not be listed in the preloaded symbols.
 
16541
exclude_expsyms=$lt_exclude_expsyms_CXX
 
16542
 
 
16543
# Symbols that must always be exported.
 
16544
include_expsyms=$lt_include_expsyms_CXX
 
16545
 
 
16546
# ### END LIBTOOL TAG CONFIG: $tagname
 
16547
 
 
16548
__EOF__
 
16549
 
 
16550
 
 
16551
else
 
16552
  # If there is no Makefile yet, we rely on a make rule to execute
 
16553
  # `config.status --recheck' to rerun these tests and create the
 
16554
  # libtool script then.
 
16555
  test -f Makefile && make "$ltmain"
 
16556
fi
 
16557
 
 
16558
 
 
16559
ac_ext=c
 
16560
ac_cpp='$CPP $CPPFLAGS'
 
16561
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16562
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16563
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16564
 
 
16565
CC=$lt_save_CC
 
16566
LDCXX=$LD
 
16567
LD=$lt_save_LD
 
16568
GCC=$lt_save_GCC
 
16569
with_gnu_ldcxx=$with_gnu_ld
 
16570
with_gnu_ld=$lt_save_with_gnu_ld
 
16571
lt_cv_path_LDCXX=$lt_cv_path_LD
 
16572
lt_cv_path_LD=$lt_save_path_LD
 
16573
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
16574
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
16575
 
 
16576
        else
 
16577
          tagname=""
 
16578
        fi
 
16579
        ;;
 
16580
 
 
16581
      F77)
 
16582
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
16583
          
 
16584
ac_ext=f
 
16585
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
16586
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16587
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
16588
 
 
16589
 
 
16590
archive_cmds_need_lc_F77=no
 
16591
allow_undefined_flag_F77=
 
16592
always_export_symbols_F77=no
 
16593
archive_expsym_cmds_F77=
 
16594
export_dynamic_flag_spec_F77=
 
16595
hardcode_direct_F77=no
 
16596
hardcode_libdir_flag_spec_F77=
 
16597
hardcode_libdir_flag_spec_ld_F77=
 
16598
hardcode_libdir_separator_F77=
 
16599
hardcode_minus_L_F77=no
 
16600
hardcode_automatic_F77=no
 
16601
module_cmds_F77=
 
16602
module_expsym_cmds_F77=
 
16603
link_all_deplibs_F77=unknown
 
16604
old_archive_cmds_F77=$old_archive_cmds
 
16605
no_undefined_flag_F77=
 
16606
whole_archive_flag_spec_F77=
 
16607
enable_shared_with_static_runtimes_F77=no
 
16608
 
 
16609
# Source file extension for f77 test sources.
 
16610
ac_ext=f
 
16611
 
 
16612
# Object file extension for compiled f77 test sources.
 
16613
objext=o
 
16614
objext_F77=$objext
 
16615
 
 
16616
# Code to be used in simple compile tests
 
16617
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
16618
 
 
16619
# Code to be used in simple link tests
 
16620
lt_simple_link_test_code="      program t\n      end\n"
 
16621
 
 
16622
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16623
 
 
16624
# If no C compiler was specified, use CC.
 
16625
LTCC=${LTCC-"$CC"}
 
16626
 
 
16627
# Allow CC to be a program name with arguments.
 
16628
compiler=$CC
 
16629
 
 
16630
 
 
16631
# Allow CC to be a program name with arguments.
 
16632
lt_save_CC="$CC"
 
16633
CC=${F77-"f77"}
 
16634
compiler=$CC
 
16635
compiler_F77=$CC
 
16636
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
16637
 
 
16638
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
16639
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
16640
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
16641
echo "${ECHO_T}$can_build_shared" >&6; }
 
16642
 
 
16643
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
16644
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
16645
test "$can_build_shared" = "no" && enable_shared=no
 
16646
 
 
16647
# On AIX, shared libraries and static libraries use the same namespace, and
 
16648
# are all built from PIC.
 
16649
case "$host_os" in
 
16650
aix3*)
 
16651
  test "$enable_shared" = yes && enable_static=no
 
16652
  if test -n "$RANLIB"; then
 
16653
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
16654
    postinstall_cmds='$RANLIB $lib'
 
16655
  fi
 
16656
  ;;
 
16657
aix4*)
 
16658
  test "$enable_shared" = yes && enable_static=no
 
16659
  ;;
 
16660
esac
 
16661
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
16662
echo "${ECHO_T}$enable_shared" >&6; }
 
16663
 
 
16664
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
16665
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
16666
# Make sure either enable_shared or enable_static is yes.
 
16667
test "$enable_shared" = yes || enable_static=yes
 
16668
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
16669
echo "${ECHO_T}$enable_static" >&6; }
 
16670
 
 
16671
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16672
 
 
16673
GCC_F77="$G77"
 
16674
LD_F77="$LD"
 
16675
 
 
16676
lt_prog_compiler_wl_F77=
 
16677
lt_prog_compiler_pic_F77=
 
16678
lt_prog_compiler_static_F77=
 
16679
 
 
16680
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16681
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16682
 
 
16683
  if test "$GCC" = yes; then
 
16684
    lt_prog_compiler_wl_F77='-Wl,'
 
16685
    lt_prog_compiler_static_F77='-static'
 
16686
 
 
16687
    case $host_os in
 
16688
      aix*)
 
16689
      # All AIX code is PIC.
 
16690
      if test "$host_cpu" = ia64; then
 
16691
        # AIX 5 now supports IA64 processor
 
16692
        lt_prog_compiler_static_F77='-Bstatic'
 
16693
      fi
 
16694
      ;;
 
16695
 
 
16696
    amigaos*)
 
16697
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16698
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16699
      # like `-m68040'.
 
16700
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
16701
      ;;
 
16702
 
 
16703
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16704
      # PIC is the default for these OSes.
 
16705
      ;;
 
16706
 
 
16707
    mingw* | pw32* | os2*)
 
16708
      # This hack is so that the source file can tell whether it is being
 
16709
      # built for inclusion in a dll (and should export symbols for example).
 
16710
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16711
      ;;
 
16712
 
 
16713
    darwin* | rhapsody*)
 
16714
      # PIC is the default on this platform
 
16715
      # Common symbols not allowed in MH_DYLIB files
 
16716
      lt_prog_compiler_pic_F77='-fno-common'
 
16717
      ;;
 
16718
 
 
16719
    msdosdjgpp*)
 
16720
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16721
      # on systems that don't support them.
 
16722
      lt_prog_compiler_can_build_shared_F77=no
 
16723
      enable_shared=no
 
16724
      ;;
 
16725
 
 
16726
    sysv4*MP*)
 
16727
      if test -d /usr/nec; then
 
16728
        lt_prog_compiler_pic_F77=-Kconform_pic
 
16729
      fi
 
16730
      ;;
 
16731
 
 
16732
    hpux*)
 
16733
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16734
      # not for PA HP-UX.
 
16735
      case "$host_cpu" in
 
16736
      hppa*64*|ia64*)
 
16737
        # +Z the default
 
16738
        ;;
 
16739
      *)
 
16740
        lt_prog_compiler_pic_F77='-fPIC'
 
16741
        ;;
 
16742
      esac
 
16743
      ;;
 
16744
 
 
16745
    *)
 
16746
      lt_prog_compiler_pic_F77='-fPIC'
 
16747
      ;;
 
16748
    esac
 
16749
  else
 
16750
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16751
    case $host_os in
 
16752
    aix*)
 
16753
      lt_prog_compiler_wl_F77='-Wl,'
 
16754
      if test "$host_cpu" = ia64; then
 
16755
        # AIX 5 now supports IA64 processor
 
16756
        lt_prog_compiler_static_F77='-Bstatic'
 
16757
      else
 
16758
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
16759
      fi
 
16760
      ;;
 
16761
 
 
16762
    mingw* | pw32* | os2*)
 
16763
      # This hack is so that the source file can tell whether it is being
 
16764
      # built for inclusion in a dll (and should export symbols for example).
 
16765
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16766
      ;;
 
16767
 
 
16768
    hpux9* | hpux10* | hpux11*)
 
16769
      lt_prog_compiler_wl_F77='-Wl,'
 
16770
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16771
      # not for PA HP-UX.
 
16772
      case "$host_cpu" in
 
16773
      hppa*64*|ia64*)
 
16774
        # +Z the default
 
16775
        ;;
 
16776
      *)
 
16777
        lt_prog_compiler_pic_F77='+Z'
 
16778
        ;;
 
16779
      esac
 
16780
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16781
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
16782
      ;;
 
16783
 
 
16784
    irix5* | irix6* | nonstopux*)
 
16785
      lt_prog_compiler_wl_F77='-Wl,'
 
16786
      # PIC (with -KPIC) is the default.
 
16787
      lt_prog_compiler_static_F77='-non_shared'
 
16788
      ;;
 
16789
 
 
16790
    newsos6)
 
16791
      lt_prog_compiler_pic_F77='-KPIC'
 
16792
      lt_prog_compiler_static_F77='-Bstatic'
 
16793
      ;;
 
16794
 
 
16795
    linux*)
 
16796
      case $CC in
 
16797
      icc* | ecc*)
 
16798
        lt_prog_compiler_wl_F77='-Wl,'
 
16799
        lt_prog_compiler_pic_F77='-KPIC'
 
16800
        lt_prog_compiler_static_F77='-static'
 
16801
        ;;
 
16802
      ccc*)
 
16803
        lt_prog_compiler_wl_F77='-Wl,'
 
16804
        # All Alpha code is PIC.
 
16805
        lt_prog_compiler_static_F77='-non_shared'
 
16806
        ;;
 
16807
      esac
 
16808
      ;;
 
16809
 
 
16810
    osf3* | osf4* | osf5*)
 
16811
      lt_prog_compiler_wl_F77='-Wl,'
 
16812
      # All OSF/1 code is PIC.
 
16813
      lt_prog_compiler_static_F77='-non_shared'
 
16814
      ;;
 
16815
 
 
16816
    sco3.2v5*)
 
16817
      lt_prog_compiler_pic_F77='-Kpic'
 
16818
      lt_prog_compiler_static_F77='-dn'
 
16819
      ;;
 
16820
 
 
16821
    solaris*)
 
16822
      lt_prog_compiler_wl_F77='-Wl,'
 
16823
      lt_prog_compiler_pic_F77='-KPIC'
 
16824
      lt_prog_compiler_static_F77='-Bstatic'
 
16825
      ;;
 
16826
 
 
16827
    sunos4*)
 
16828
      lt_prog_compiler_wl_F77='-Qoption ld '
 
16829
      lt_prog_compiler_pic_F77='-PIC'
 
16830
      lt_prog_compiler_static_F77='-Bstatic'
 
16831
      ;;
 
16832
 
 
16833
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16834
      lt_prog_compiler_wl_F77='-Wl,'
 
16835
      lt_prog_compiler_pic_F77='-KPIC'
 
16836
      lt_prog_compiler_static_F77='-Bstatic'
 
16837
      ;;
 
16838
 
 
16839
    sysv4*MP*)
 
16840
      if test -d /usr/nec ;then
 
16841
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
16842
        lt_prog_compiler_static_F77='-Bstatic'
 
16843
      fi
 
16844
      ;;
 
16845
 
 
16846
    uts4*)
 
16847
      lt_prog_compiler_pic_F77='-pic'
 
16848
      lt_prog_compiler_static_F77='-Bstatic'
 
16849
      ;;
 
16850
 
 
16851
    *)
 
16852
      lt_prog_compiler_can_build_shared_F77=no
 
16853
      ;;
 
16854
    esac
 
16855
  fi
 
16856
 
 
16857
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
16858
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
16859
 
 
16860
#
 
16861
# Check to make sure the PIC flag actually works.
 
16862
#
 
16863
if test -n "$lt_prog_compiler_pic_F77"; then
 
16864
  
 
16865
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
16866
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
16867
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
16868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16869
else
 
16870
  lt_prog_compiler_pic_works_F77=no
 
16871
  ac_outfile=conftest.$ac_objext
 
16872
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16873
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
16874
   # Insert the option either (1) after the last *FLAGS variable, or
 
16875
   # (2) before a word containing "conftest.", or (3) at the end.
 
16876
   # Note that $ac_compile itself does not contain backslashes and begins
 
16877
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16878
   # The option is referenced via a variable to avoid confusing sed.
 
16879
   lt_compile=`echo "$ac_compile" | $SED \
 
16880
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16881
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16882
   -e 's:$: $lt_compiler_flag:'`
 
16883
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16884
   (eval "$lt_compile" 2>conftest.err)
 
16885
   ac_status=$?
 
16886
   cat conftest.err >&5
 
16887
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16888
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16889
     # The compiler can only warn and ignore the option if not recognized
 
16890
     # So say no if there are warnings
 
16891
     if test ! -s conftest.err; then
 
16892
       lt_prog_compiler_pic_works_F77=yes
 
16893
     fi
 
16894
   fi
 
16895
   $rm conftest*
 
16896
 
 
16897
fi
 
16898
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
16899
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
16900
 
 
16901
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
16902
    case $lt_prog_compiler_pic_F77 in
 
16903
     "" | " "*) ;;
 
16904
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
16905
     esac
 
16906
else
 
16907
    lt_prog_compiler_pic_F77=
 
16908
     lt_prog_compiler_can_build_shared_F77=no
 
16909
fi
 
16910
 
 
16911
fi
 
16912
case "$host_os" in
 
16913
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16914
  *djgpp*)
 
16915
    lt_prog_compiler_pic_F77=
 
16916
    ;;
 
16917
  *)
 
16918
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
16919
    ;;
 
16920
esac
 
16921
 
 
16922
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16923
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16924
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
16925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16926
else
 
16927
  lt_cv_prog_compiler_c_o_F77=no
 
16928
   $rm -r conftest 2>/dev/null
 
16929
   mkdir conftest
 
16930
   cd conftest
 
16931
   mkdir out
 
16932
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16933
 
 
16934
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
16935
   # that will create temporary files in the current directory regardless of
 
16936
   # the output directory.  Thus, making CWD read-only will cause this test
 
16937
   # to fail, enabling locking or at least warning the user not to do parallel
 
16938
   # builds.
 
16939
   chmod -w .
 
16940
 
 
16941
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16942
   # Insert the option either (1) after the last *FLAGS variable, or
 
16943
   # (2) before a word containing "conftest.", or (3) at the end.
 
16944
   # Note that $ac_compile itself does not contain backslashes and begins
 
16945
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16946
   lt_compile=`echo "$ac_compile" | $SED \
 
16947
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16948
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16949
   -e 's:$: $lt_compiler_flag:'`
 
16950
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16951
   (eval "$lt_compile" 2>out/conftest.err)
 
16952
   ac_status=$?
 
16953
   cat out/conftest.err >&5
 
16954
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16955
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16956
   then
 
16957
     # The compiler can only warn and ignore the option if not recognized
 
16958
     # So say no if there are warnings
 
16959
     if test ! -s out/conftest.err; then
 
16960
       lt_cv_prog_compiler_c_o_F77=yes
 
16961
     fi
 
16962
   fi
 
16963
   chmod u+w .
 
16964
   $rm conftest* out/*
 
16965
   rmdir out
 
16966
   cd ..
 
16967
   rmdir conftest
 
16968
   $rm conftest*
 
16969
 
 
16970
fi
 
16971
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16972
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
16973
 
 
16974
 
 
16975
hard_links="nottested"
 
16976
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
16977
  # do not overwrite the value of need_locks provided by the user
 
16978
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16979
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16980
  hard_links=yes
 
16981
  $rm conftest*
 
16982
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16983
  touch conftest.a
 
16984
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16985
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16986
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16987
echo "${ECHO_T}$hard_links" >&6; }
 
16988
  if test "$hard_links" = no; then
 
16989
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16990
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16991
    need_locks=warn
 
16992
  fi
 
16993
else
 
16994
  need_locks=no
 
16995
fi
 
16996
 
 
16997
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16998
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16999
 
 
17000
  runpath_var=
 
17001
  allow_undefined_flag_F77=
 
17002
  enable_shared_with_static_runtimes_F77=no
 
17003
  archive_cmds_F77=
 
17004
  archive_expsym_cmds_F77=
 
17005
  old_archive_From_new_cmds_F77=
 
17006
  old_archive_from_expsyms_cmds_F77=
 
17007
  export_dynamic_flag_spec_F77=
 
17008
  whole_archive_flag_spec_F77=
 
17009
  thread_safe_flag_spec_F77=
 
17010
  hardcode_libdir_flag_spec_F77=
 
17011
  hardcode_libdir_flag_spec_ld_F77=
 
17012
  hardcode_libdir_separator_F77=
 
17013
  hardcode_direct_F77=no
 
17014
  hardcode_minus_L_F77=no
 
17015
  hardcode_shlibpath_var_F77=unsupported
 
17016
  link_all_deplibs_F77=unknown
 
17017
  hardcode_automatic_F77=no
 
17018
  module_cmds_F77=
 
17019
  module_expsym_cmds_F77=  
 
17020
  always_export_symbols_F77=no
 
17021
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17022
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17023
  # included in the symbol list
 
17024
  include_expsyms_F77=
 
17025
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17026
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17027
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17028
  # as well as any symbol that contains `d'.
 
17029
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
17030
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17031
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17032
  # the symbol is explicitly referenced.  Since portable code cannot
 
17033
  # rely on this symbol name, it's probably fine to never include it in
 
17034
  # preloaded symbol tables.
 
17035
  extract_expsyms_cmds=
 
17036
 
 
17037
  case $host_os in
 
17038
  cygwin* | mingw* | pw32*)
 
17039
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17040
    # When not using gcc, we currently assume that we are using
 
17041
    # Microsoft Visual C++.
 
17042
    if test "$GCC" != yes; then
 
17043
      with_gnu_ld=no
 
17044
    fi
 
17045
    ;;
 
17046
  openbsd*)
 
17047
    with_gnu_ld=no
 
17048
    ;;
 
17049
  esac
 
17050
 
 
17051
  ld_shlibs_F77=yes
 
17052
  if test "$with_gnu_ld" = yes; then
 
17053
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17054
    wlarc='${wl}'
 
17055
 
 
17056
    # See if GNU ld supports shared libraries.
 
17057
    case $host_os in
 
17058
    aix3* | aix4* | aix5*)
 
17059
      # On AIX/PPC, the GNU linker is very broken
 
17060
      if test "$host_cpu" != ia64; then
 
17061
        ld_shlibs_F77=no
 
17062
        cat <<EOF 1>&2
 
17063
 
 
17064
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17065
*** to be unable to reliably create shared libraries on AIX.
 
17066
*** Therefore, libtool is disabling shared libraries support.  If you
 
17067
*** really care for shared libraries, you may want to modify your PATH
 
17068
*** so that a non-GNU linker is found, and then restart.
 
17069
 
 
17070
EOF
 
17071
      fi
 
17072
      ;;
 
17073
 
 
17074
    amigaos*)
 
17075
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17076
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17077
      hardcode_minus_L_F77=yes
 
17078
 
 
17079
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17080
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17081
      # to version 4, is to share data among multiple programs linked
 
17082
      # with the same dynamic library.  Since this doesn't match the
 
17083
      # behavior of shared libraries on other platforms, we can't use
 
17084
      # them.
 
17085
      ld_shlibs_F77=no
 
17086
      ;;
 
17087
 
 
17088
    beos*)
 
17089
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17090
        allow_undefined_flag_F77=unsupported
 
17091
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17092
        # support --undefined.  This deserves some investigation.  FIXME
 
17093
        archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
17094
      else
 
17095
        ld_shlibs_F77=no
 
17096
      fi
 
17097
      ;;
 
17098
 
 
17099
    cygwin* | mingw* | pw32*)
 
17100
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
17101
      # as there is no search path for DLLs.
 
17102
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17103
      allow_undefined_flag_F77=no
 
17104
      always_export_symbols_F77=no
 
17105
      enable_shared_with_static_runtimes_F77=yes
 
17106
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17107
 
 
17108
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17109
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17110
        # If the export-symbols file already is a .def file (1st line
 
17111
        # is EXPORTS), use it as is; otherwise, prepend...
 
17112
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17113
          cp $export_symbols $output_objdir/$soname.def;
 
17114
        else
 
17115
          echo EXPORTS > $output_objdir/$soname.def;
 
17116
          cat $export_symbols >> $output_objdir/$soname.def;
 
17117
        fi~
 
17118
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17119
      else
 
17120
        ld_shlibs=no
 
17121
      fi
 
17122
      ;;
 
17123
 
 
17124
    netbsd*)
 
17125
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17126
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17127
        wlarc=
 
17128
      else
 
17129
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
17130
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17131
      fi
 
17132
      ;;
 
17133
 
 
17134
    solaris* | sysv5*)
 
17135
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17136
        ld_shlibs_F77=no
 
17137
        cat <<EOF 1>&2
 
17138
 
 
17139
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17140
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17141
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17142
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17143
*** your PATH or compiler configuration so that the native linker is
 
17144
*** used, and then restart.
 
17145
 
 
17146
EOF
 
17147
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17148
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
17149
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17150
      else
 
17151
        ld_shlibs_F77=no
 
17152
      fi
 
17153
      ;;
 
17154
 
 
17155
    sunos4*)
 
17156
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17157
      wlarc=
 
17158
      hardcode_direct_F77=yes
 
17159
      hardcode_shlibpath_var_F77=no
 
17160
      ;;
 
17161
 
 
17162
    *)
 
17163
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17164
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
17165
        archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17166
      else
 
17167
        ld_shlibs_F77=no
 
17168
      fi
 
17169
      ;;
 
17170
    esac
 
17171
 
 
17172
    if test "$ld_shlibs_F77" = yes; then
 
17173
      runpath_var=LD_RUN_PATH
 
17174
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
17175
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
17176
      # ancient GNU ld didn't support --whole-archive et. al.
 
17177
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17178
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17179
      else
 
17180
        whole_archive_flag_spec_F77=
 
17181
      fi
 
17182
    fi
 
17183
  else
 
17184
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17185
    case $host_os in
 
17186
    aix3*)
 
17187
      allow_undefined_flag_F77=unsupported
 
17188
      always_export_symbols_F77=yes
 
17189
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17190
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17191
      # are no directories specified by -L.
 
17192
      hardcode_minus_L_F77=yes
 
17193
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17194
        # Neither direct hardcoding nor static linking is supported with a
 
17195
        # broken collect2.
 
17196
        hardcode_direct_F77=unsupported
 
17197
      fi
 
17198
      ;;
 
17199
 
 
17200
    aix4* | aix5*)
 
17201
      if test "$host_cpu" = ia64; then
 
17202
        # On IA64, the linker does run time linking by default, so we don't
 
17203
        # have to do anything special.
 
17204
        aix_use_runtimelinking=no
 
17205
        exp_sym_flag='-Bexport'
 
17206
        no_entry_flag=""
 
17207
      else
 
17208
        # If we're using GNU nm, then we don't want the "-C" option.
 
17209
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17210
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17211
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17212
        else
 
17213
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17214
        fi
 
17215
 
 
17216
        # KDE requires run time linking.  Make it the default.
 
17217
        aix_use_runtimelinking=yes
 
17218
        exp_sym_flag='-bexport'
 
17219
        no_entry_flag='-bnoentry'
 
17220
      fi
 
17221
 
 
17222
      # When large executables or shared objects are built, AIX ld can
 
17223
      # have problems creating the table of contents.  If linking a library
 
17224
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17225
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17226
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17227
 
 
17228
      archive_cmds_F77=''
 
17229
      hardcode_direct_F77=yes
 
17230
      hardcode_libdir_separator_F77=':'
 
17231
      link_all_deplibs_F77=yes
 
17232
 
 
17233
      if test "$GCC" = yes; then
 
17234
        case $host_os in aix4.012|aix4.012.*)
 
17235
        # We only want to do this on AIX 4.2 and lower, the check
 
17236
        # below for broken collect2 doesn't work under 4.3+
 
17237
          collect2name=`${CC} -print-prog-name=collect2`
 
17238
          if test -f "$collect2name" && \
 
17239
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17240
          then
 
17241
          # We have reworked collect2
 
17242
          hardcode_direct_F77=yes
 
17243
          else
 
17244
          # We have old collect2
 
17245
          hardcode_direct_F77=unsupported
 
17246
          # It fails to find uninstalled libraries when the uninstalled
 
17247
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17248
          # to unsupported forces relinking
 
17249
          hardcode_minus_L_F77=yes
 
17250
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
17251
          hardcode_libdir_separator_F77=
 
17252
          fi
 
17253
        esac
 
17254
        shared_flag='-shared'
 
17255
      else
 
17256
        # not using gcc
 
17257
        if test "$host_cpu" = ia64; then
 
17258
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17259
        # chokes on -Wl,-G. The following line is correct:
 
17260
          shared_flag='-G'
 
17261
        else
 
17262
        if test "$aix_use_runtimelinking" = yes; then
 
17263
            shared_flag='-qmkshrobj ${wl}-G'
 
17264
          else
 
17265
            shared_flag='-qmkshrobj'
 
17266
        fi
 
17267
        fi
 
17268
      fi
 
17269
 
 
17270
      # Let the compiler handle the export list.
 
17271
      always_export_symbols_F77=no
 
17272
      if test "$aix_use_runtimelinking" = yes; then
 
17273
        # Warning - without using the other runtime loading flags (-brtl),
 
17274
        # -berok will link without error, but may produce a broken library.
 
17275
        allow_undefined_flag_F77='-berok'
 
17276
       # Determine the default libpath from the value encoded in an empty executable.
 
17277
        cat >conftest.$ac_ext <<_ACEOF
 
17278
      program main
 
17279
 
 
17280
      end
 
17281
_ACEOF
 
17282
rm -f conftest.$ac_objext conftest$ac_exeext
 
17283
if { (ac_try="$ac_link"
 
17284
case "(($ac_try" in
 
17285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17286
  *) ac_try_echo=$ac_try;;
 
17287
esac
 
17288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17289
  (eval "$ac_link") 2>conftest.er1
 
17290
  ac_status=$?
 
17291
  grep -v '^ *+' conftest.er1 >conftest.err
 
17292
  rm -f conftest.er1
 
17293
  cat conftest.err >&5
 
17294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17295
  (exit $ac_status); } && {
 
17296
         test -z "$ac_f77_werror_flag" ||
 
17297
         test ! -s conftest.err
 
17298
       } && test -s conftest$ac_exeext &&
 
17299
       $as_test_x conftest$ac_exeext; then
 
17300
  
 
17301
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17302
}'`
 
17303
# Check for a 64-bit object if we didn't find anything.
 
17304
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17305
}'`; fi
 
17306
else
 
17307
  echo "$as_me: failed program was:" >&5
 
17308
sed 's/^/| /' conftest.$ac_ext >&5
 
17309
 
 
17310
        
 
17311
fi
 
17312
 
 
17313
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17314
      conftest$ac_exeext conftest.$ac_ext
 
17315
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17316
 
 
17317
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17318
        archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
17319
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17320
       else
 
17321
        if test "$host_cpu" = ia64; then
 
17322
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
17323
          allow_undefined_flag_F77="-z nodefs"
 
17324
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
17325
        else
 
17326
         # Determine the default libpath from the value encoded in an empty executable.
 
17327
         cat >conftest.$ac_ext <<_ACEOF
 
17328
      program main
 
17329
 
 
17330
      end
 
17331
_ACEOF
 
17332
rm -f conftest.$ac_objext conftest$ac_exeext
 
17333
if { (ac_try="$ac_link"
 
17334
case "(($ac_try" in
 
17335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17336
  *) ac_try_echo=$ac_try;;
 
17337
esac
 
17338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17339
  (eval "$ac_link") 2>conftest.er1
 
17340
  ac_status=$?
 
17341
  grep -v '^ *+' conftest.er1 >conftest.err
 
17342
  rm -f conftest.er1
 
17343
  cat conftest.err >&5
 
17344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17345
  (exit $ac_status); } && {
 
17346
         test -z "$ac_f77_werror_flag" ||
 
17347
         test ! -s conftest.err
 
17348
       } && test -s conftest$ac_exeext &&
 
17349
       $as_test_x conftest$ac_exeext; then
 
17350
  
 
17351
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17352
}'`
 
17353
# Check for a 64-bit object if we didn't find anything.
 
17354
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17355
}'`; fi
 
17356
else
 
17357
  echo "$as_me: failed program was:" >&5
 
17358
sed 's/^/| /' conftest.$ac_ext >&5
 
17359
 
 
17360
        
 
17361
fi
 
17362
 
 
17363
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17364
      conftest$ac_exeext conftest.$ac_ext
 
17365
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17366
 
 
17367
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17368
          # Warning - without using the other run time loading flags,
 
17369
          # -berok will link without error, but may produce a broken library.
 
17370
          no_undefined_flag_F77=' ${wl}-bernotok'
 
17371
          allow_undefined_flag_F77=' ${wl}-berok'
 
17372
          # -bexpall does not export symbols beginning with underscore (_)
 
17373
          always_export_symbols_F77=yes
 
17374
          # Exported symbols can be pulled into shared objects from archives
 
17375
          whole_archive_flag_spec_F77=' '
 
17376
          archive_cmds_need_lc_F77=yes
 
17377
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17378
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17379
        fi
 
17380
      fi
 
17381
      ;;
 
17382
 
 
17383
    amigaos*)
 
17384
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17385
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17386
      hardcode_minus_L_F77=yes
 
17387
      # see comment about different semantics on the GNU ld section
 
17388
      ld_shlibs_F77=no
 
17389
      ;;
 
17390
 
 
17391
    bsdi4*)
 
17392
      export_dynamic_flag_spec_F77=-rdynamic
 
17393
      ;;
 
17394
 
 
17395
    cygwin* | mingw* | pw32*)
 
17396
      # When not using gcc, we currently assume that we are using
 
17397
      # Microsoft Visual C++.
 
17398
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17399
      # no search path for DLLs.
 
17400
      hardcode_libdir_flag_spec_F77=' '
 
17401
      allow_undefined_flag_F77=no
 
17402
      # Tell ltmain to make .lib files, not .a files.
 
17403
      libext=lib
 
17404
      # Tell ltmain to make .dll files, not .so files.
 
17405
      shrext=".dll"
 
17406
      # FIXME: Setting linknames here is a bad hack.
 
17407
      archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17408
      # The linker will automatically build a .lib file if we build a DLL.
 
17409
      old_archive_From_new_cmds_F77='true'
 
17410
      # FIXME: Should let the user specify the lib program.
 
17411
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17412
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17413
      enable_shared_with_static_runtimes_F77=yes
 
17414
      ;;
 
17415
 
 
17416
    darwin* | rhapsody*)
 
17417
    if test "$GXX" = yes ; then
 
17418
      archive_cmds_need_lc_F77=no
 
17419
      case "$host_os" in
 
17420
      rhapsody* | darwin1.[012])
 
17421
        allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
 
17422
        ;;
 
17423
      *) # Darwin 1.3 on
 
17424
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17425
          allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
17426
        else
 
17427
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
17428
            10.012)
 
17429
              allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
17430
              ;;
 
17431
            10.*)
 
17432
              allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
17433
              ;;
 
17434
          esac
 
17435
        fi
 
17436
        ;;
 
17437
      esac
 
17438
        lt_int_apple_cc_single_mod=no
 
17439
        output_verbose_link_cmd='echo'
 
17440
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
17441
          lt_int_apple_cc_single_mod=yes
 
17442
        fi
 
17443
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17444
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
17445
        else
 
17446
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
17447
      fi
 
17448
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
17449
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17450
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17451
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17452
        else
 
17453
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17454
        fi
 
17455
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17456
      hardcode_direct_F77=no
 
17457
      hardcode_automatic_F77=yes
 
17458
      hardcode_shlibpath_var_F77=unsupported
 
17459
      whole_archive_flag_spec_F77='-all_load $convenience'
 
17460
      link_all_deplibs_F77=yes
 
17461
    else  
 
17462
      ld_shlibs_F77=no
 
17463
    fi  
 
17464
      ;;
 
17465
 
 
17466
    dgux*)
 
17467
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17468
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17469
      hardcode_shlibpath_var_F77=no
 
17470
      ;;
 
17471
 
 
17472
    freebsd1*)
 
17473
      ld_shlibs_F77=no
 
17474
      ;;
 
17475
 
 
17476
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17477
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17478
    # does not break anything, and helps significantly (at the cost of a little
 
17479
    # extra space).
 
17480
    freebsd2.2*)
 
17481
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17482
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17483
      hardcode_direct_F77=yes
 
17484
      hardcode_shlibpath_var_F77=no
 
17485
      ;;
 
17486
 
 
17487
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17488
    freebsd2*)
 
17489
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17490
      hardcode_direct_F77=yes
 
17491
      hardcode_minus_L_F77=yes
 
17492
      hardcode_shlibpath_var_F77=no
 
17493
      ;;
 
17494
 
 
17495
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17496
    freebsd*)
 
17497
      archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
17498
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17499
      hardcode_direct_F77=yes
 
17500
      hardcode_shlibpath_var_F77=no
 
17501
      ;;
 
17502
 
 
17503
    hpux9*)
 
17504
      if test "$GCC" = yes; then
 
17505
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17506
      else
 
17507
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17508
      fi
 
17509
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17510
      hardcode_libdir_separator_F77=:
 
17511
      hardcode_direct_F77=yes
 
17512
 
 
17513
      # hardcode_minus_L: Not really in the search PATH,
 
17514
      # but as the default location of the library.
 
17515
      hardcode_minus_L_F77=yes
 
17516
      export_dynamic_flag_spec_F77='${wl}-E'
 
17517
      ;;
 
17518
 
 
17519
    hpux10* | hpux11*)
 
17520
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17521
        case "$host_cpu" in
 
17522
        hppa*64*|ia64*)
 
17523
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
17524
          ;;
 
17525
        *)
 
17526
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
17527
          ;;
 
17528
        esac
 
17529
      else
 
17530
        case "$host_cpu" in
 
17531
        hppa*64*|ia64*)
 
17532
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17533
          ;;
 
17534
        *)
 
17535
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17536
          ;;
 
17537
        esac
 
17538
      fi
 
17539
      if test "$with_gnu_ld" = no; then
 
17540
        case "$host_cpu" in
 
17541
        hppa*64*)
 
17542
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17543
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
17544
          hardcode_libdir_separator_F77=:
 
17545
          hardcode_direct_F77=no
 
17546
          hardcode_shlibpath_var_F77=no
 
17547
          ;;
 
17548
        ia64*)
 
17549
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
17550
          hardcode_direct_F77=no
 
17551
          hardcode_shlibpath_var_F77=no
 
17552
 
 
17553
          # hardcode_minus_L: Not really in the search PATH,
 
17554
          # but as the default location of the library.
 
17555
          hardcode_minus_L_F77=yes
 
17556
          ;;
 
17557
        *)
 
17558
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17559
          hardcode_libdir_separator_F77=:
 
17560
          hardcode_direct_F77=yes
 
17561
          export_dynamic_flag_spec_F77='${wl}-E'
 
17562
 
 
17563
          # hardcode_minus_L: Not really in the search PATH,
 
17564
          # but as the default location of the library.
 
17565
          hardcode_minus_L_F77=yes
 
17566
          ;;
 
17567
        esac
 
17568
      fi
 
17569
      ;;
 
17570
 
 
17571
    irix5* | irix6* | nonstopux*)
 
17572
      if test "$GCC" = yes; then
 
17573
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17574
      else
 
17575
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17576
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
17577
      fi
 
17578
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17579
      hardcode_libdir_separator_F77=:
 
17580
      link_all_deplibs_F77=yes
 
17581
      ;;
 
17582
 
 
17583
    netbsd*)
 
17584
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17585
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17586
      else
 
17587
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17588
      fi
 
17589
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17590
      hardcode_direct_F77=yes
 
17591
      hardcode_shlibpath_var_F77=no
 
17592
      ;;
 
17593
 
 
17594
    newsos6)
 
17595
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17596
      hardcode_direct_F77=yes
 
17597
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17598
      hardcode_libdir_separator_F77=:
 
17599
      hardcode_shlibpath_var_F77=no
 
17600
      ;;
 
17601
 
 
17602
    openbsd*)
 
17603
      hardcode_direct_F77=yes
 
17604
      hardcode_shlibpath_var_F77=no
 
17605
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17606
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
17607
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
17608
        export_dynamic_flag_spec_F77='${wl}-E'
 
17609
      else
 
17610
       case $host_os in
 
17611
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17612
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17613
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
17614
           ;;
 
17615
         *)
 
17616
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
17617
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
17618
           ;;
 
17619
       esac
 
17620
      fi
 
17621
      ;;
 
17622
 
 
17623
    os2*)
 
17624
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17625
      hardcode_minus_L_F77=yes
 
17626
      allow_undefined_flag_F77=unsupported
 
17627
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
 
17628
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17629
      ;;
 
17630
 
 
17631
    osf3*)
 
17632
      if test "$GCC" = yes; then
 
17633
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
17634
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17635
      else
 
17636
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
17637
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17638
      fi
 
17639
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17640
      hardcode_libdir_separator_F77=:
 
17641
      ;;
 
17642
 
 
17643
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17644
      if test "$GCC" = yes; then
 
17645
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
17646
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17647
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17648
      else
 
17649
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
17650
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17651
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17652
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17653
 
 
17654
        # Both c and cxx compiler support -rpath directly
 
17655
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
17656
      fi
 
17657
      hardcode_libdir_separator_F77=:
 
17658
      ;;
 
17659
 
 
17660
    sco3.2v5*)
 
17661
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17662
      hardcode_shlibpath_var_F77=no
 
17663
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
17664
      runpath_var=LD_RUN_PATH
 
17665
      hardcode_runpath_var=yes
 
17666
      ;;
 
17667
 
 
17668
    solaris*)
 
17669
      no_undefined_flag_F77=' -z text'
 
17670
      if test "$GCC" = yes; then
 
17671
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
17672
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17673
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
17674
      else
 
17675
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17676
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17677
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17678
      fi
 
17679
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17680
      hardcode_shlibpath_var_F77=no
 
17681
      case $host_os in
 
17682
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17683
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17684
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
17685
      esac
 
17686
      link_all_deplibs_F77=yes
 
17687
      ;;
 
17688
 
 
17689
    sunos4*)
 
17690
      if test "x$host_vendor" = xsequent; then
 
17691
        # Use $CC to link under sequent, because it throws in some extra .o
 
17692
        # files that make .init and .fini sections work.
 
17693
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
17694
      else
 
17695
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17696
      fi
 
17697
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17698
      hardcode_direct_F77=yes
 
17699
      hardcode_minus_L_F77=yes
 
17700
      hardcode_shlibpath_var_F77=no
 
17701
      ;;
 
17702
 
 
17703
    sysv4)
 
17704
      case $host_vendor in
 
17705
        sni)
 
17706
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17707
          hardcode_direct_F77=yes # is this really true???
 
17708
        ;;
 
17709
        siemens)
 
17710
          ## LD is ld it makes a PLAMLIB
 
17711
          ## CC just makes a GrossModule.
 
17712
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17713
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
17714
          hardcode_direct_F77=no
 
17715
        ;;
 
17716
        motorola)
 
17717
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17718
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
17719
        ;;
 
17720
      esac
 
17721
      runpath_var='LD_RUN_PATH'
 
17722
      hardcode_shlibpath_var_F77=no
 
17723
      ;;
 
17724
 
 
17725
    sysv4.3*)
 
17726
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17727
      hardcode_shlibpath_var_F77=no
 
17728
      export_dynamic_flag_spec_F77='-Bexport'
 
17729
      ;;
 
17730
 
 
17731
    sysv4*MP*)
 
17732
      if test -d /usr/nec; then
 
17733
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17734
        hardcode_shlibpath_var_F77=no
 
17735
        runpath_var=LD_RUN_PATH
 
17736
        hardcode_runpath_var=yes
 
17737
        ld_shlibs_F77=yes
 
17738
      fi
 
17739
      ;;
 
17740
 
 
17741
    sysv4.2uw2*)
 
17742
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17743
      hardcode_direct_F77=yes
 
17744
      hardcode_minus_L_F77=no
 
17745
      hardcode_shlibpath_var_F77=no
 
17746
      hardcode_runpath_var=yes
 
17747
      runpath_var=LD_RUN_PATH
 
17748
      ;;
 
17749
 
 
17750
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17751
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
17752
      if test "$GCC" = yes; then
 
17753
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
17754
      else
 
17755
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
17756
      fi
 
17757
      runpath_var='LD_RUN_PATH'
 
17758
      hardcode_shlibpath_var_F77=no
 
17759
      ;;
 
17760
 
 
17761
    sysv5*)
 
17762
      no_undefined_flag_F77=' -z text'
 
17763
      # $CC -shared without GNU ld will not create a library from C++
 
17764
      # object files and a static libstdc++, better avoid it by now
 
17765
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17766
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17767
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17768
      hardcode_libdir_flag_spec_F77=
 
17769
      hardcode_shlibpath_var_F77=no
 
17770
      runpath_var='LD_RUN_PATH'
 
17771
      ;;
 
17772
 
 
17773
    uts4*)
 
17774
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17775
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17776
      hardcode_shlibpath_var_F77=no
 
17777
      ;;
 
17778
 
 
17779
    *)
 
17780
      ld_shlibs_F77=no
 
17781
      ;;
 
17782
    esac
 
17783
  fi
 
17784
 
 
17785
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
17786
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
17787
test "$ld_shlibs_F77" = no && can_build_shared=no
 
17788
 
 
17789
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17790
if test "$GCC" = yes; then
 
17791
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17792
fi
 
17793
 
 
17794
#
 
17795
# Do we need to explicitly link libc?
 
17796
#
 
17797
case "x$archive_cmds_need_lc_F77" in
 
17798
x|xyes)
 
17799
  # Assume -lc should be added
 
17800
  archive_cmds_need_lc_F77=yes
 
17801
 
 
17802
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17803
    case $archive_cmds_F77 in
 
17804
    *'~'*)
 
17805
      # FIXME: we may have to deal with multi-command sequences.
 
17806
      ;;
 
17807
    '$CC '*)
 
17808
      # Test whether the compiler implicitly links with -lc since on some
 
17809
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17810
      # to ld, don't add -lc before -lgcc.
 
17811
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17812
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17813
      $rm conftest*
 
17814
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17815
  
 
17816
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17817
  (eval $ac_compile) 2>&5
 
17818
  ac_status=$?
 
17819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17820
  (exit $ac_status); } 2>conftest.err; then
 
17821
        soname=conftest
 
17822
        lib=conftest
 
17823
        libobjs=conftest.$ac_objext
 
17824
        deplibs=
 
17825
        wl=$lt_prog_compiler_wl_F77
 
17826
        compiler_flags=-v
 
17827
        linker_flags=-v
 
17828
        verstring=
 
17829
        output_objdir=.
 
17830
        libname=conftest
 
17831
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
17832
        allow_undefined_flag_F77=
 
17833
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17834
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17835
  ac_status=$?
 
17836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17837
  (exit $ac_status); }
 
17838
        then
 
17839
          archive_cmds_need_lc_F77=no
 
17840
        else
 
17841
          archive_cmds_need_lc_F77=yes
 
17842
        fi
 
17843
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
17844
      else
 
17845
        cat conftest.err 1>&5
 
17846
      fi
 
17847
      $rm conftest*
 
17848
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
17849
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
17850
      ;;
 
17851
    esac
 
17852
  fi
 
17853
  ;;
 
17854
esac
 
17855
 
 
17856
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17857
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17858
library_names_spec=
 
17859
libname_spec='lib$name'
 
17860
soname_spec=
 
17861
shrext=".so"
 
17862
postinstall_cmds=
 
17863
postuninstall_cmds=
 
17864
finish_cmds=
 
17865
finish_eval=
 
17866
shlibpath_var=
 
17867
shlibpath_overrides_runpath=unknown
 
17868
version_type=none
 
17869
dynamic_linker="$host_os ld.so"
 
17870
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17871
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17872
need_lib_prefix=unknown
 
17873
hardcode_into_libs=no
 
17874
 
 
17875
# when you set need_version to no, make sure it does not cause -set_version
 
17876
# flags to be left without arguments
 
17877
need_version=unknown
 
17878
 
 
17879
case $host_os in
 
17880
aix3*)
 
17881
  version_type=linux
 
17882
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17883
  shlibpath_var=LIBPATH
 
17884
 
 
17885
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17886
  soname_spec='${libname}${release}${shared_ext}$major'
 
17887
  ;;
 
17888
 
 
17889
aix4* | aix5*)
 
17890
  version_type=linux
 
17891
  need_lib_prefix=no
 
17892
  need_version=no
 
17893
  hardcode_into_libs=yes
 
17894
  if test "$host_cpu" = ia64; then
 
17895
    # AIX 5 supports IA64
 
17896
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17897
    shlibpath_var=LD_LIBRARY_PATH
 
17898
  else
 
17899
    # With GCC up to 2.95.x, collect2 would create an import file
 
17900
    # for dependence libraries.  The import file would start with
 
17901
    # the line `#! .'.  This would cause the generated library to
 
17902
    # depend on `.', always an invalid library.  This was fixed in
 
17903
    # development snapshots of GCC prior to 3.0.
 
17904
    case $host_os in
 
17905
      aix4 | aix4.[01] | aix4.[01].*)
 
17906
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17907
           echo ' yes '
 
17908
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17909
        :
 
17910
      else
 
17911
        can_build_shared=no
 
17912
      fi
 
17913
      ;;
 
17914
    esac
 
17915
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17916
    # soname into executable. Probably we can add versioning support to
 
17917
    # collect2, so additional links can be useful in future.
 
17918
    if test "$aix_use_runtimelinking" = yes; then
 
17919
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17920
      # instead of lib<name>.a to let people know that these are not
 
17921
      # typical AIX shared libraries.
 
17922
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17923
    else
 
17924
      # We preserve .a as extension for shared libraries through AIX4.2
 
17925
      # and later when we are not doing run time linking.
 
17926
      library_names_spec='${libname}${release}.a $libname.a'
 
17927
      soname_spec='${libname}${release}${shared_ext}$major'
 
17928
    fi
 
17929
    shlibpath_var=LIBPATH
 
17930
  fi
 
17931
  ;;
 
17932
 
 
17933
amigaos*)
 
17934
  library_names_spec='$libname.ixlibrary $libname.a'
 
17935
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17936
  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'
 
17937
  ;;
 
17938
 
 
17939
beos*)
 
17940
  library_names_spec='${libname}${shared_ext}'
 
17941
  dynamic_linker="$host_os ld.so"
 
17942
  shlibpath_var=LIBRARY_PATH
 
17943
  ;;
 
17944
 
 
17945
bsdi4*)
 
17946
  version_type=linux
 
17947
  need_version=no
 
17948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17949
  soname_spec='${libname}${release}${shared_ext}$major'
 
17950
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17951
  shlibpath_var=LD_LIBRARY_PATH
 
17952
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17953
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17954
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17955
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17956
  # libtool to hard-code these into programs
 
17957
  ;;
 
17958
 
 
17959
cygwin* | mingw* | pw32*)
 
17960
  version_type=windows
 
17961
  shrext=".dll"
 
17962
  need_version=no
 
17963
  need_lib_prefix=no
 
17964
 
 
17965
  case $GCC,$host_os in
 
17966
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17967
    library_names_spec='$libname.dll.a'
 
17968
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17969
    postinstall_cmds='base_file=`basename \${file}`~
 
17970
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17971
      dldir=$destdir/`dirname \$dlpath`~
 
17972
      test -d \$dldir || mkdir -p \$dldir~
 
17973
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17974
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17975
      dlpath=$dir/\$dldll~
 
17976
       $rm \$dlpath'
 
17977
    shlibpath_overrides_runpath=yes
 
17978
 
 
17979
    case $host_os in
 
17980
    cygwin*)
 
17981
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17982
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17983
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17984
      ;;
 
17985
    mingw*)
 
17986
      # MinGW DLLs use traditional 'lib' prefix
 
17987
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17988
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17989
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17990
        # It is most probably a Windows format PATH printed by
 
17991
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17992
        # path with ; separators, and with drive letters. We can handle the
 
17993
        # drive letters (cygwin fileutils understands them), so leave them,
 
17994
        # especially as we might pass files found there to a mingw objdump,
 
17995
        # which wouldn't understand a cygwinified path. Ahh.
 
17996
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17997
      else
 
17998
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17999
      fi
 
18000
      ;;
 
18001
    pw32*)
 
18002
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18003
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18004
      ;;
 
18005
    esac
 
18006
    ;;
 
18007
 
 
18008
  *)
 
18009
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18010
    ;;
 
18011
  esac
 
18012
  dynamic_linker='Win32 ld.exe'
 
18013
  # FIXME: first we should search . and the directory the executable is in
 
18014
  shlibpath_var=PATH
 
18015
  ;;
 
18016
 
 
18017
darwin* | rhapsody*)
 
18018
  dynamic_linker="$host_os dyld"
 
18019
  version_type=darwin
 
18020
  need_lib_prefix=no
 
18021
  need_version=no
 
18022
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18023
  soname_spec='${libname}${release}${major}$shared_ext'
 
18024
  shlibpath_overrides_runpath=yes
 
18025
  shlibpath_var=DYLD_LIBRARY_PATH
 
18026
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
18027
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18028
  if test "$GCC" = yes; then
 
18029
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
18030
  else
 
18031
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18032
  fi
 
18033
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18034
  ;;
 
18035
 
 
18036
dgux*)
 
18037
  version_type=linux
 
18038
  need_lib_prefix=no
 
18039
  need_version=no
 
18040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18041
  soname_spec='${libname}${release}${shared_ext}$major'
 
18042
  shlibpath_var=LD_LIBRARY_PATH
 
18043
  ;;
 
18044
 
 
18045
freebsd1*)
 
18046
  dynamic_linker=no
 
18047
  ;;
 
18048
 
 
18049
freebsd*-gnu*)
 
18050
  version_type=linux
 
18051
  need_lib_prefix=no
 
18052
  need_version=no
 
18053
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18054
  soname_spec='${libname}${release}${shared_ext}$major'
 
18055
  shlibpath_var=LD_LIBRARY_PATH
 
18056
  shlibpath_overrides_runpath=no
 
18057
  hardcode_into_libs=yes
 
18058
  dynamic_linker='GNU ld.so'
 
18059
  ;;
 
18060
 
 
18061
freebsd*)
 
18062
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18063
  version_type=freebsd-$objformat
 
18064
  case $version_type in
 
18065
    freebsd-elf*)
 
18066
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18067
      need_version=no
 
18068
      need_lib_prefix=no
 
18069
      ;;
 
18070
    freebsd-*)
 
18071
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18072
      need_version=yes
 
18073
      ;;
 
18074
  esac
 
18075
  shlibpath_var=LD_LIBRARY_PATH
 
18076
  case $host_os in
 
18077
  freebsd2*)
 
18078
    shlibpath_overrides_runpath=yes
 
18079
    ;;
 
18080
  freebsd3.01* | freebsdelf3.01*)
 
18081
    shlibpath_overrides_runpath=yes
 
18082
    hardcode_into_libs=yes
 
18083
    ;;
 
18084
  *) # from 3.2 on
 
18085
    shlibpath_overrides_runpath=no
 
18086
    hardcode_into_libs=yes
 
18087
    ;;
 
18088
  esac
 
18089
  ;;
 
18090
 
 
18091
gnu*)
 
18092
  version_type=linux
 
18093
  need_lib_prefix=no
 
18094
  need_version=no
 
18095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18096
  soname_spec='${libname}${release}${shared_ext}$major'
 
18097
  shlibpath_var=LD_LIBRARY_PATH
 
18098
  hardcode_into_libs=yes
 
18099
  ;;
 
18100
 
 
18101
hpux9* | hpux10* | hpux11*)
 
18102
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18103
  # link against other versions.
 
18104
  version_type=sunos
 
18105
  need_lib_prefix=no
 
18106
  need_version=no
 
18107
  case "$host_cpu" in
 
18108
  ia64*)
 
18109
    shrext='.so'
 
18110
    hardcode_into_libs=yes
 
18111
    dynamic_linker="$host_os dld.so"
 
18112
    shlibpath_var=LD_LIBRARY_PATH
 
18113
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18114
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18115
    soname_spec='${libname}${release}${shared_ext}$major'
 
18116
    if test "X$HPUX_IA64_MODE" = X32; then
 
18117
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18118
    else
 
18119
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18120
    fi
 
18121
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18122
    ;;
 
18123
   hppa*64*)
 
18124
     shrext='.sl'
 
18125
     hardcode_into_libs=yes
 
18126
     dynamic_linker="$host_os dld.sl"
 
18127
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18128
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18129
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18130
     soname_spec='${libname}${release}${shared_ext}$major'
 
18131
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18132
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18133
     ;;
 
18134
   *)
 
18135
    shrext='.sl'
 
18136
    dynamic_linker="$host_os dld.sl"
 
18137
    shlibpath_var=SHLIB_PATH
 
18138
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18139
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18140
    soname_spec='${libname}${release}${shared_ext}$major'
 
18141
    ;;
 
18142
  esac
 
18143
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18144
  postinstall_cmds='chmod 555 $lib'
 
18145
  ;;
 
18146
 
 
18147
irix5* | irix6* | nonstopux*)
 
18148
  case $host_os in
 
18149
    nonstopux*) version_type=nonstopux ;;
 
18150
    *)
 
18151
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18152
                version_type=linux
 
18153
        else
 
18154
                version_type=irix
 
18155
        fi ;;
 
18156
  esac
 
18157
  need_lib_prefix=no
 
18158
  need_version=no
 
18159
  soname_spec='${libname}${release}${shared_ext}$major'
 
18160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18161
  case $host_os in
 
18162
  irix5* | nonstopux*)
 
18163
    libsuff= shlibsuff=
 
18164
    ;;
 
18165
  *)
 
18166
    case $LD in # libtool.m4 will add one of these switches to LD
 
18167
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18168
      libsuff= shlibsuff= libmagic=32-bit;;
 
18169
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18170
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18171
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18172
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18173
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18174
    esac
 
18175
    ;;
 
18176
  esac
 
18177
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18178
  shlibpath_overrides_runpath=no
 
18179
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18180
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18181
  hardcode_into_libs=yes
 
18182
  ;;
 
18183
 
 
18184
# No shared lib support for Linux oldld, aout, or coff.
 
18185
linux*oldld* | linux*aout* | linux*coff*)
 
18186
  dynamic_linker=no
 
18187
  ;;
 
18188
 
 
18189
# This must be Linux ELF.
 
18190
linux*)
 
18191
  version_type=linux
 
18192
  need_lib_prefix=no
 
18193
  need_version=no
 
18194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18195
  soname_spec='${libname}${release}${shared_ext}$major'
 
18196
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18197
  libsuff=
 
18198
  if test "x$LINUX_64_MODE" = x64; then
 
18199
    # Some platforms are per default 64-bit, so there's no /lib64
 
18200
    if test -d /lib64; then
 
18201
      libsuff=64
 
18202
    fi
 
18203
  fi
 
18204
  shlibpath_var=LD_LIBRARY_PATH
 
18205
  shlibpath_overrides_runpath=no
 
18206
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
18207
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
18208
  # This implies no fast_install, which is unacceptable.
 
18209
  # Some rework will be needed to allow for fast_install
 
18210
  # before this can be enabled.
 
18211
  hardcode_into_libs=yes
 
18212
 
 
18213
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18214
  # powerpc, because MkLinux only supported shared libraries with the
 
18215
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18216
  # most powerpc-linux boxes support dynamic linking these days and
 
18217
  # people can always --disable-shared, the test was removed, and we
 
18218
  # assume the GNU/Linux dynamic linker is in use.
 
18219
  dynamic_linker='GNU/Linux ld.so'
 
18220
  ;;
 
18221
 
 
18222
netbsd*)
 
18223
  version_type=sunos
 
18224
  need_lib_prefix=no
 
18225
  need_version=no
 
18226
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18227
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18228
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18229
    dynamic_linker='NetBSD (a.out) ld.so'
 
18230
  else
 
18231
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
18232
    soname_spec='${libname}${release}${shared_ext}$major'
 
18233
    dynamic_linker='NetBSD ld.elf_so'
 
18234
  fi
 
18235
  shlibpath_var=LD_LIBRARY_PATH
 
18236
  shlibpath_overrides_runpath=yes
 
18237
  hardcode_into_libs=yes
 
18238
  ;;
 
18239
 
 
18240
newsos6)
 
18241
  version_type=linux
 
18242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18243
  shlibpath_var=LD_LIBRARY_PATH
 
18244
  shlibpath_overrides_runpath=yes
 
18245
  ;;
 
18246
 
 
18247
nto-qnx*)
 
18248
  version_type=linux
 
18249
  need_lib_prefix=no
 
18250
  need_version=no
 
18251
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18252
  soname_spec='${libname}${release}${shared_ext}$major'
 
18253
  shlibpath_var=LD_LIBRARY_PATH
 
18254
  shlibpath_overrides_runpath=yes
 
18255
  ;;
 
18256
 
 
18257
openbsd*)
 
18258
  version_type=sunos
 
18259
  need_lib_prefix=no
 
18260
  need_version=no
 
18261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18262
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18263
  shlibpath_var=LD_LIBRARY_PATH
 
18264
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18265
    case $host_os in
 
18266
      openbsd2.[89] | openbsd2.[89].*)
 
18267
        shlibpath_overrides_runpath=no
 
18268
        ;;
 
18269
      *)
 
18270
        shlibpath_overrides_runpath=yes
 
18271
        ;;
 
18272
      esac
 
18273
  else
 
18274
    shlibpath_overrides_runpath=yes
 
18275
  fi
 
18276
  ;;
 
18277
 
 
18278
os2*)
 
18279
  libname_spec='$name'
 
18280
  shrext=".dll"
 
18281
  need_lib_prefix=no
 
18282
  library_names_spec='$libname${shared_ext} $libname.a'
 
18283
  dynamic_linker='OS/2 ld.exe'
 
18284
  shlibpath_var=LIBPATH
 
18285
  ;;
 
18286
 
 
18287
osf3* | osf4* | osf5*)
 
18288
  version_type=osf
 
18289
  need_lib_prefix=no
 
18290
  need_version=no
 
18291
  soname_spec='${libname}${release}${shared_ext}$major'
 
18292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18293
  shlibpath_var=LD_LIBRARY_PATH
 
18294
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18295
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18296
  ;;
 
18297
 
 
18298
sco3.2v5*)
 
18299
  version_type=osf
 
18300
  soname_spec='${libname}${release}${shared_ext}$major'
 
18301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18302
  shlibpath_var=LD_LIBRARY_PATH
 
18303
  ;;
 
18304
 
 
18305
solaris*)
 
18306
  version_type=linux
 
18307
  need_lib_prefix=no
 
18308
  need_version=no
 
18309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18310
  soname_spec='${libname}${release}${shared_ext}$major'
 
18311
  shlibpath_var=LD_LIBRARY_PATH
 
18312
  shlibpath_overrides_runpath=yes
 
18313
  hardcode_into_libs=yes
 
18314
  # ldd complains unless libraries are executable
 
18315
  postinstall_cmds='chmod +x $lib'
 
18316
  ;;
 
18317
 
 
18318
sunos4*)
 
18319
  version_type=sunos
 
18320
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18321
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18322
  shlibpath_var=LD_LIBRARY_PATH
 
18323
  shlibpath_overrides_runpath=yes
 
18324
  if test "$with_gnu_ld" = yes; then
 
18325
    need_lib_prefix=no
 
18326
  fi
 
18327
  need_version=yes
 
18328
  ;;
 
18329
 
 
18330
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18331
  version_type=linux
 
18332
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18333
  soname_spec='${libname}${release}${shared_ext}$major'
 
18334
  shlibpath_var=LD_LIBRARY_PATH
 
18335
  case $host_vendor in
 
18336
    sni)
 
18337
      shlibpath_overrides_runpath=no
 
18338
      need_lib_prefix=no
 
18339
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18340
      runpath_var=LD_RUN_PATH
 
18341
      ;;
 
18342
    siemens)
 
18343
      need_lib_prefix=no
 
18344
      ;;
 
18345
    motorola)
 
18346
      need_lib_prefix=no
 
18347
      need_version=no
 
18348
      shlibpath_overrides_runpath=no
 
18349
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18350
      ;;
 
18351
  esac
 
18352
  ;;
 
18353
 
 
18354
sysv4*MP*)
 
18355
  if test -d /usr/nec ;then
 
18356
    version_type=linux
 
18357
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18358
    soname_spec='$libname${shared_ext}.$major'
 
18359
    shlibpath_var=LD_LIBRARY_PATH
 
18360
  fi
 
18361
  ;;
 
18362
 
 
18363
uts4*)
 
18364
  version_type=linux
 
18365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18366
  soname_spec='${libname}${release}${shared_ext}$major'
 
18367
  shlibpath_var=LD_LIBRARY_PATH
 
18368
  ;;
 
18369
 
 
18370
*)
 
18371
  dynamic_linker=no
 
18372
  ;;
 
18373
esac
 
18374
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18375
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18376
test "$dynamic_linker" = no && can_build_shared=no
 
18377
 
 
18378
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18379
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18380
hardcode_action_F77=
 
18381
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
18382
   test -n "$runpath_var F77" || \
 
18383
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
18384
 
 
18385
  # We can hardcode non-existant directories.
 
18386
  if test "$hardcode_direct_F77" != no &&
 
18387
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18388
     # have to relink, otherwise we might link with an installed library
 
18389
     # when we should be linking with a yet-to-be-installed one
 
18390
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
18391
     test "$hardcode_minus_L_F77" != no; then
 
18392
    # Linking always hardcodes the temporary library directory.
 
18393
    hardcode_action_F77=relink
 
18394
  else
 
18395
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18396
    hardcode_action_F77=immediate
 
18397
  fi
 
18398
else
 
18399
  # We cannot hardcode anything, or else we can only hardcode existing
 
18400
  # directories.
 
18401
  hardcode_action_F77=unsupported
 
18402
fi
 
18403
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
18404
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
18405
 
 
18406
if test "$hardcode_action_F77" = relink; then
 
18407
  # Fast installation is not supported
 
18408
  enable_fast_install=no
 
18409
elif test "$shlibpath_overrides_runpath" = yes ||
 
18410
     test "$enable_shared" = no; then
 
18411
  # Fast installation is not necessary
 
18412
  enable_fast_install=needless
 
18413
fi
 
18414
 
 
18415
striplib=
 
18416
old_striplib=
 
18417
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18418
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
18419
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18420
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18421
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18422
  { echo "$as_me:$LINENO: result: yes" >&5
 
18423
echo "${ECHO_T}yes" >&6; }
 
18424
else
 
18425
# FIXME - insert some real tests, host_os isn't really good enough
 
18426
  case $host_os in
 
18427
   darwin*)
 
18428
       if test -n "$STRIP" ; then
 
18429
         striplib="$STRIP -x"
 
18430
         { echo "$as_me:$LINENO: result: yes" >&5
 
18431
echo "${ECHO_T}yes" >&6; }
 
18432
       else
 
18433
  { echo "$as_me:$LINENO: result: no" >&5
 
18434
echo "${ECHO_T}no" >&6; }
 
18435
fi
 
18436
       ;;
 
18437
   *)
 
18438
  { echo "$as_me:$LINENO: result: no" >&5
 
18439
echo "${ECHO_T}no" >&6; }
 
18440
    ;;
 
18441
  esac  
 
18442
fi
 
18443
 
 
18444
 
 
18445
 
 
18446
# The else clause should only fire when bootstrapping the
 
18447
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18448
# with your package, and you will get complaints that there are
 
18449
# no rules to generate ltmain.sh.
 
18450
if test -f "$ltmain"; then
 
18451
  # See if we are running on zsh, and set the options which allow our commands through
 
18452
  # without removal of \ escapes.
 
18453
  if test -n "${ZSH_VERSION+set}" ; then
 
18454
    setopt NO_GLOB_SUBST
 
18455
  fi  
 
18456
  # Now quote all the things that may contain metacharacters while being
 
18457
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18458
  # variables and quote the copies for generation of the libtool script.
 
18459
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
18460
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18461
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18462
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18463
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18464
    lt_cv_sys_global_symbol_to_c_name_address \
 
18465
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18466
    old_postinstall_cmds old_postuninstall_cmds \
 
18467
    compiler_F77 \
 
18468
    CC_F77 \
 
18469
    LD_F77 \
 
18470
    lt_prog_compiler_wl_F77 \
 
18471
    lt_prog_compiler_pic_F77 \
 
18472
    lt_prog_compiler_static_F77 \
 
18473
    lt_prog_compiler_no_builtin_flag_F77 \
 
18474
    export_dynamic_flag_spec_F77 \
 
18475
    thread_safe_flag_spec_F77 \
 
18476
    whole_archive_flag_spec_F77 \
 
18477
    enable_shared_with_static_runtimes_F77 \
 
18478
    old_archive_cmds_F77 \
 
18479
    old_archive_from_new_cmds_F77 \
 
18480
    predep_objects_F77 \
 
18481
    postdep_objects_F77 \
 
18482
    predeps_F77 \
 
18483
    postdeps_F77 \
 
18484
    compiler_lib_search_path_F77 \
 
18485
    archive_cmds_F77 \
 
18486
    archive_expsym_cmds_F77 \
 
18487
    postinstall_cmds_F77 \
 
18488
    postuninstall_cmds_F77 \
 
18489
    old_archive_from_expsyms_cmds_F77 \
 
18490
    allow_undefined_flag_F77 \
 
18491
    no_undefined_flag_F77 \
 
18492
    export_symbols_cmds_F77 \
 
18493
    hardcode_libdir_flag_spec_F77 \
 
18494
    hardcode_libdir_flag_spec_ld_F77 \
 
18495
    hardcode_libdir_separator_F77 \
 
18496
    hardcode_automatic_F77 \
 
18497
    module_cmds_F77 \
 
18498
    module_expsym_cmds_F77 \
 
18499
    lt_cv_prog_compiler_c_o_F77 \
 
18500
    exclude_expsyms_F77 \
 
18501
    include_expsyms_F77; do
 
18502
 
 
18503
    case $var in
 
18504
    old_archive_cmds_F77 | \
 
18505
    old_archive_from_new_cmds_F77 | \
 
18506
    archive_cmds_F77 | \
 
18507
    archive_expsym_cmds_F77 | \
 
18508
    module_cmds_F77 | \
 
18509
    module_expsym_cmds_F77 | \   
 
18510
    old_archive_from_expsyms_cmds_F77 | \
 
18511
    export_symbols_cmds_F77 | \
 
18512
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18513
    postinstall_cmds | postuninstall_cmds | \
 
18514
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18515
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18516
      # Double-quote double-evaled strings.
 
18517
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18518
      ;;
 
18519
    *)
 
18520
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18521
      ;;
 
18522
    esac
 
18523
  done
 
18524
 
 
18525
  case $lt_echo in
 
18526
  *'\$0 --fallback-echo"')
 
18527
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18528
    ;;
 
18529
  esac
 
18530
 
 
18531
cfgfile="$ofile"
 
18532
 
 
18533
  cat <<__EOF__ >> "$cfgfile"
 
18534
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18535
 
 
18536
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18537
 
 
18538
# Shell to use when invoking shell scripts.
 
18539
SHELL=$lt_SHELL
 
18540
 
 
18541
# Whether or not to build shared libraries.
 
18542
build_libtool_libs=$enable_shared
 
18543
 
 
18544
# Whether or not to build static libraries.
 
18545
build_old_libs=$enable_static
 
18546
 
 
18547
# Whether or not to add -lc for building shared libraries.
 
18548
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
18549
 
 
18550
# Whether or not to disallow shared libs when runtime libs are static
 
18551
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
18552
 
 
18553
# Whether or not to optimize for fast installation.
 
18554
fast_install=$enable_fast_install
 
18555
 
 
18556
# The host system.
 
18557
host_alias=$host_alias
 
18558
host=$host
 
18559
 
 
18560
# An echo program that does not interpret backslashes.
 
18561
echo=$lt_echo
 
18562
 
 
18563
# The archiver.
 
18564
AR=$lt_AR
 
18565
AR_FLAGS=$lt_AR_FLAGS
 
18566
 
 
18567
# A C compiler.
 
18568
LTCC=$lt_LTCC
 
18569
 
 
18570
# A language-specific compiler.
 
18571
CC=$lt_compiler_F77
 
18572
 
 
18573
# Is the compiler the GNU C compiler?
 
18574
with_gcc=$GCC_F77
 
18575
 
 
18576
# An ERE matcher.
 
18577
EGREP=$lt_EGREP
 
18578
 
 
18579
# The linker used to build libraries.
 
18580
LD=$lt_LD_F77
 
18581
 
 
18582
# Whether we need hard or soft links.
 
18583
LN_S=$lt_LN_S
 
18584
 
 
18585
# A BSD-compatible nm program.
 
18586
NM=$lt_NM
 
18587
 
 
18588
# A symbol stripping program
 
18589
STRIP=$STRIP
 
18590
 
 
18591
# Used to examine libraries when file_magic_cmd begins "file"
 
18592
MAGIC_CMD=$MAGIC_CMD
 
18593
 
 
18594
# Used on cygwin: DLL creation program.
 
18595
DLLTOOL="$DLLTOOL"
 
18596
 
 
18597
# Used on cygwin: object dumper.
 
18598
OBJDUMP="$OBJDUMP"
 
18599
 
 
18600
# Used on cygwin: assembler.
 
18601
AS="$AS"
 
18602
 
 
18603
# The name of the directory that contains temporary libtool files.
 
18604
objdir=$objdir
 
18605
 
 
18606
# How to create reloadable object files.
 
18607
reload_flag=$lt_reload_flag
 
18608
reload_cmds=$lt_reload_cmds
 
18609
 
 
18610
# How to pass a linker flag through the compiler.
 
18611
wl=$lt_lt_prog_compiler_wl_F77
 
18612
 
 
18613
# Object file suffix (normally "o").
 
18614
objext="$ac_objext"
 
18615
 
 
18616
# Old archive suffix (normally "a").
 
18617
libext="$libext"
 
18618
 
 
18619
# Shared library suffix (normally ".so").
 
18620
shrext='$shrext'
 
18621
 
 
18622
# Executable file suffix (normally "").
 
18623
exeext="$exeext"
 
18624
 
 
18625
# Additional compiler flags for building library objects.
 
18626
pic_flag=$lt_lt_prog_compiler_pic_F77
 
18627
pic_mode=$pic_mode
 
18628
 
 
18629
# What is the maximum length of a command?
 
18630
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18631
 
 
18632
# Does compiler simultaneously support -c and -o options?
 
18633
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
18634
 
 
18635
# Must we lock files when doing compilation ?
 
18636
need_locks=$lt_need_locks
 
18637
 
 
18638
# Do we need the lib prefix for modules?
 
18639
need_lib_prefix=$need_lib_prefix
 
18640
 
 
18641
# Do we need a version for libraries?
 
18642
need_version=$need_version
 
18643
 
 
18644
# Whether dlopen is supported.
 
18645
dlopen_support=$enable_dlopen
 
18646
 
 
18647
# Whether dlopen of programs is supported.
 
18648
dlopen_self=$enable_dlopen_self
 
18649
 
 
18650
# Whether dlopen of statically linked programs is supported.
 
18651
dlopen_self_static=$enable_dlopen_self_static
 
18652
 
 
18653
# Compiler flag to prevent dynamic linking.
 
18654
link_static_flag=$lt_lt_prog_compiler_static_F77
 
18655
 
 
18656
# Compiler flag to turn off builtin functions.
 
18657
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
18658
 
 
18659
# Compiler flag to allow reflexive dlopens.
 
18660
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
18661
 
 
18662
# Compiler flag to generate shared objects directly from archives.
 
18663
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
18664
 
 
18665
# Compiler flag to generate thread-safe objects.
 
18666
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
18667
 
 
18668
# Library versioning type.
 
18669
version_type=$version_type
 
18670
 
 
18671
# Format of library name prefix.
 
18672
libname_spec=$lt_libname_spec
 
18673
 
 
18674
# List of archive names.  First name is the real one, the rest are links.
 
18675
# The last name is the one that the linker finds with -lNAME.
 
18676
library_names_spec=$lt_library_names_spec
 
18677
 
 
18678
# The coded name of the library, if different from the real name.
 
18679
soname_spec=$lt_soname_spec
 
18680
 
 
18681
# Commands used to build and install an old-style archive.
 
18682
RANLIB=$lt_RANLIB
 
18683
old_archive_cmds=$lt_old_archive_cmds_F77
 
18684
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18685
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18686
 
 
18687
# Create an old-style archive from a shared archive.
 
18688
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
18689
 
 
18690
# Create a temporary old-style archive to link instead of a shared archive.
 
18691
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
18692
 
 
18693
# Commands used to build and install a shared archive.
 
18694
archive_cmds=$lt_archive_cmds_F77
 
18695
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
18696
postinstall_cmds=$lt_postinstall_cmds
 
18697
postuninstall_cmds=$lt_postuninstall_cmds
 
18698
 
 
18699
# Commands used to build a loadable module (assumed same as above if empty)
 
18700
module_cmds=$lt_module_cmds_F77
 
18701
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
18702
 
 
18703
# Commands to strip libraries.
 
18704
old_striplib=$lt_old_striplib
 
18705
striplib=$lt_striplib
 
18706
 
 
18707
# Dependencies to place before the objects being linked to create a
 
18708
# shared library.
 
18709
predep_objects=$lt_predep_objects_F77
 
18710
 
 
18711
# Dependencies to place after the objects being linked to create a
 
18712
# shared library.
 
18713
postdep_objects=$lt_postdep_objects_F77
 
18714
 
 
18715
# Dependencies to place before the objects being linked to create a
 
18716
# shared library.
 
18717
predeps=$lt_predeps_F77
 
18718
 
 
18719
# Dependencies to place after the objects being linked to create a
 
18720
# shared library.
 
18721
postdeps=$lt_postdeps_F77
 
18722
 
 
18723
# The library search path used internally by the compiler when linking
 
18724
# a shared library.
 
18725
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
18726
 
 
18727
# Method to check whether dependent libraries are shared objects.
 
18728
deplibs_check_method=$lt_deplibs_check_method
 
18729
 
 
18730
# Command to use when deplibs_check_method == file_magic.
 
18731
file_magic_cmd=$lt_file_magic_cmd
 
18732
 
 
18733
# Flag that allows shared libraries with undefined symbols to be built.
 
18734
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
18735
 
 
18736
# Flag that forces no undefined symbols.
 
18737
no_undefined_flag=$lt_no_undefined_flag_F77
 
18738
 
 
18739
# Commands used to finish a libtool library installation in a directory.
 
18740
finish_cmds=$lt_finish_cmds
 
18741
 
 
18742
# Same as above, but a single script fragment to be evaled but not shown.
 
18743
finish_eval=$lt_finish_eval
 
18744
 
 
18745
# Take the output of nm and produce a listing of raw symbols and C names.
 
18746
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18747
 
 
18748
# Transform the output of nm in a proper C declaration
 
18749
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18750
 
 
18751
# Transform the output of nm in a C name address pair
 
18752
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18753
 
 
18754
# This is the shared library runtime path variable.
 
18755
runpath_var=$runpath_var
 
18756
 
 
18757
# This is the shared library path variable.
 
18758
shlibpath_var=$shlibpath_var
 
18759
 
 
18760
# Is shlibpath searched before the hard-coded library search path?
 
18761
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18762
 
 
18763
# How to hardcode a shared library path into an executable.
 
18764
hardcode_action=$hardcode_action_F77
 
18765
 
 
18766
# Whether we should hardcode library paths into libraries.
 
18767
hardcode_into_libs=$hardcode_into_libs
 
18768
 
 
18769
# Flag to hardcode \$libdir into a binary during linking.
 
18770
# This must work even if \$libdir does not exist.
 
18771
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
18772
 
 
18773
# If ld is used when linking, flag to hardcode \$libdir into
 
18774
# a binary during linking. This must work even if \$libdir does
 
18775
# not exist.
 
18776
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
18777
 
 
18778
# Whether we need a single -rpath flag with a separated argument.
 
18779
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
18780
 
 
18781
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18782
# resulting binary.
 
18783
hardcode_direct=$hardcode_direct_F77
 
18784
 
 
18785
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18786
# resulting binary.
 
18787
hardcode_minus_L=$hardcode_minus_L_F77
 
18788
 
 
18789
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18790
# the resulting binary.
 
18791
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
18792
 
 
18793
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18794
# and all subsequent libraries and executables linked against it.
 
18795
hardcode_automatic=$hardcode_automatic_F77
 
18796
 
 
18797
# Variables whose values should be saved in libtool wrapper scripts and
 
18798
# restored at relink time.
 
18799
variables_saved_for_relink="$variables_saved_for_relink"
 
18800
 
 
18801
# Whether libtool must link a program against all its dependency libraries.
 
18802
link_all_deplibs=$link_all_deplibs_F77
 
18803
 
 
18804
# Compile-time system search path for libraries
 
18805
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18806
 
 
18807
# Run-time system search path for libraries
 
18808
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18809
 
 
18810
# Fix the shell variable \$srcfile for the compiler.
 
18811
fix_srcfile_path="$fix_srcfile_path_F77"
 
18812
 
 
18813
# Set to yes if exported symbols are required.
 
18814
always_export_symbols=$always_export_symbols_F77
 
18815
 
 
18816
# The commands to list exported symbols.
 
18817
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
18818
 
 
18819
# The commands to extract the exported symbol list from a shared archive.
 
18820
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18821
 
 
18822
# Symbols that should not be listed in the preloaded symbols.
 
18823
exclude_expsyms=$lt_exclude_expsyms_F77
 
18824
 
 
18825
# Symbols that must always be exported.
 
18826
include_expsyms=$lt_include_expsyms_F77
 
18827
 
 
18828
# ### END LIBTOOL TAG CONFIG: $tagname
 
18829
 
 
18830
__EOF__
 
18831
 
 
18832
 
 
18833
else
 
18834
  # If there is no Makefile yet, we rely on a make rule to execute
 
18835
  # `config.status --recheck' to rerun these tests and create the
 
18836
  # libtool script then.
 
18837
  test -f Makefile && make "$ltmain"
 
18838
fi
 
18839
 
 
18840
 
 
18841
ac_ext=c
 
18842
ac_cpp='$CPP $CPPFLAGS'
 
18843
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18844
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18845
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18846
 
 
18847
CC="$lt_save_CC"
 
18848
 
 
18849
        else
 
18850
          tagname=""
 
18851
        fi
 
18852
        ;;
 
18853
 
 
18854
      GCJ)
 
18855
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
18856
          
 
18857
 
 
18858
# Source file extension for Java test sources.
 
18859
ac_ext=java
 
18860
 
 
18861
# Object file extension for compiled Java test sources.
 
18862
objext=o
 
18863
objext_GCJ=$objext
 
18864
 
 
18865
# Code to be used in simple compile tests
 
18866
lt_simple_compile_test_code="class foo {}\n"
 
18867
 
 
18868
# Code to be used in simple link tests
 
18869
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
18870
 
 
18871
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18872
 
 
18873
# If no C compiler was specified, use CC.
 
18874
LTCC=${LTCC-"$CC"}
 
18875
 
 
18876
# Allow CC to be a program name with arguments.
 
18877
compiler=$CC
 
18878
 
 
18879
 
 
18880
# Allow CC to be a program name with arguments.
 
18881
lt_save_CC="$CC"
 
18882
CC=${GCJ-"gcj"}
 
18883
compiler=$CC
 
18884
compiler_GCJ=$CC
 
18885
 
 
18886
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
18887
archive_cmds_need_lc_GCJ=no
 
18888
 
 
18889
## CAVEAT EMPTOR:
 
18890
## There is no encapsulation within the following macros, do not change
 
18891
## the running order or otherwise move them around unless you know exactly
 
18892
## what you are doing...
 
18893
 
 
18894
lt_prog_compiler_no_builtin_flag_GCJ=
 
18895
 
 
18896
if test "$GCC" = yes; then
 
18897
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
18898
 
 
18899
  
 
18900
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
18901
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
18902
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
18903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18904
else
 
18905
  lt_cv_prog_compiler_rtti_exceptions=no
 
18906
  ac_outfile=conftest.$ac_objext
 
18907
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18908
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
18909
   # Insert the option either (1) after the last *FLAGS variable, or
 
18910
   # (2) before a word containing "conftest.", or (3) at the end.
 
18911
   # Note that $ac_compile itself does not contain backslashes and begins
 
18912
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18913
   # The option is referenced via a variable to avoid confusing sed.
 
18914
   lt_compile=`echo "$ac_compile" | $SED \
 
18915
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18916
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18917
   -e 's:$: $lt_compiler_flag:'`
 
18918
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
18919
   (eval "$lt_compile" 2>conftest.err)
 
18920
   ac_status=$?
 
18921
   cat conftest.err >&5
 
18922
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
18923
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18924
     # The compiler can only warn and ignore the option if not recognized
 
18925
     # So say no if there are warnings
 
18926
     if test ! -s conftest.err; then
 
18927
       lt_cv_prog_compiler_rtti_exceptions=yes
 
18928
     fi
 
18929
   fi
 
18930
   $rm conftest*
 
18931
 
 
18932
fi
 
18933
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
18934
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
18935
 
 
18936
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
18937
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
18938
else
 
18939
    :
 
18940
fi
 
18941
 
 
18942
fi
 
18943
 
 
18944
lt_prog_compiler_wl_GCJ=
 
18945
lt_prog_compiler_pic_GCJ=
 
18946
lt_prog_compiler_static_GCJ=
 
18947
 
 
18948
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18949
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
18950
 
 
18951
  if test "$GCC" = yes; then
 
18952
    lt_prog_compiler_wl_GCJ='-Wl,'
 
18953
    lt_prog_compiler_static_GCJ='-static'
 
18954
 
 
18955
    case $host_os in
 
18956
      aix*)
 
18957
      # All AIX code is PIC.
 
18958
      if test "$host_cpu" = ia64; then
 
18959
        # AIX 5 now supports IA64 processor
 
18960
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18961
      fi
 
18962
      ;;
 
18963
 
 
18964
    amigaos*)
 
18965
      # FIXME: we need at least 68020 code to build shared libraries, but
 
18966
      # adding the `-m68020' flag to GCC prevents building anything better,
 
18967
      # like `-m68040'.
 
18968
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
18969
      ;;
 
18970
 
 
18971
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
18972
      # PIC is the default for these OSes.
 
18973
      ;;
 
18974
 
 
18975
    mingw* | pw32* | os2*)
 
18976
      # This hack is so that the source file can tell whether it is being
 
18977
      # built for inclusion in a dll (and should export symbols for example).
 
18978
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18979
      ;;
 
18980
 
 
18981
    darwin* | rhapsody*)
 
18982
      # PIC is the default on this platform
 
18983
      # Common symbols not allowed in MH_DYLIB files
 
18984
      lt_prog_compiler_pic_GCJ='-fno-common'
 
18985
      ;;
 
18986
 
 
18987
    msdosdjgpp*)
 
18988
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
18989
      # on systems that don't support them.
 
18990
      lt_prog_compiler_can_build_shared_GCJ=no
 
18991
      enable_shared=no
 
18992
      ;;
 
18993
 
 
18994
    sysv4*MP*)
 
18995
      if test -d /usr/nec; then
 
18996
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
18997
      fi
 
18998
      ;;
 
18999
 
 
19000
    hpux*)
 
19001
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
19002
      # not for PA HP-UX.
 
19003
      case "$host_cpu" in
 
19004
      hppa*64*|ia64*)
 
19005
        # +Z the default
 
19006
        ;;
 
19007
      *)
 
19008
        lt_prog_compiler_pic_GCJ='-fPIC'
 
19009
        ;;
 
19010
      esac
 
19011
      ;;
 
19012
 
 
19013
    *)
 
19014
      lt_prog_compiler_pic_GCJ='-fPIC'
 
19015
      ;;
 
19016
    esac
 
19017
  else
 
19018
    # PORTME Check for flag to pass linker flags through the system compiler.
 
19019
    case $host_os in
 
19020
    aix*)
 
19021
      lt_prog_compiler_wl_GCJ='-Wl,'
 
19022
      if test "$host_cpu" = ia64; then
 
19023
        # AIX 5 now supports IA64 processor
 
19024
        lt_prog_compiler_static_GCJ='-Bstatic'
 
19025
      else
 
19026
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
19027
      fi
 
19028
      ;;
 
19029
 
 
19030
    mingw* | pw32* | os2*)
 
19031
      # This hack is so that the source file can tell whether it is being
 
19032
      # built for inclusion in a dll (and should export symbols for example).
 
19033
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
19034
      ;;
 
19035
 
 
19036
    hpux9* | hpux10* | hpux11*)
 
19037
      lt_prog_compiler_wl_GCJ='-Wl,'
 
19038
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
19039
      # not for PA HP-UX.
 
19040
      case "$host_cpu" in
 
19041
      hppa*64*|ia64*)
 
19042
        # +Z the default
 
19043
        ;;
 
19044
      *)
 
19045
        lt_prog_compiler_pic_GCJ='+Z'
 
19046
        ;;
 
19047
      esac
 
19048
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
19049
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
19050
      ;;
 
19051
 
 
19052
    irix5* | irix6* | nonstopux*)
 
19053
      lt_prog_compiler_wl_GCJ='-Wl,'
 
19054
      # PIC (with -KPIC) is the default.
 
19055
      lt_prog_compiler_static_GCJ='-non_shared'
 
19056
      ;;
 
19057
 
 
19058
    newsos6)
 
19059
      lt_prog_compiler_pic_GCJ='-KPIC'
 
19060
      lt_prog_compiler_static_GCJ='-Bstatic'
 
19061
      ;;
 
19062
 
 
19063
    linux*)
 
19064
      case $CC in
 
19065
      icc* | ecc*)
 
19066
        lt_prog_compiler_wl_GCJ='-Wl,'
 
19067
        lt_prog_compiler_pic_GCJ='-KPIC'
 
19068
        lt_prog_compiler_static_GCJ='-static'
 
19069
        ;;
 
19070
      ccc*)
 
19071
        lt_prog_compiler_wl_GCJ='-Wl,'
 
19072
        # All Alpha code is PIC.
 
19073
        lt_prog_compiler_static_GCJ='-non_shared'
 
19074
        ;;
 
19075
      esac
 
19076
      ;;
 
19077
 
 
19078
    osf3* | osf4* | osf5*)
 
19079
      lt_prog_compiler_wl_GCJ='-Wl,'
 
19080
      # All OSF/1 code is PIC.
 
19081
      lt_prog_compiler_static_GCJ='-non_shared'
 
19082
      ;;
 
19083
 
 
19084
    sco3.2v5*)
 
19085
      lt_prog_compiler_pic_GCJ='-Kpic'
 
19086
      lt_prog_compiler_static_GCJ='-dn'
 
19087
      ;;
 
19088
 
 
19089
    solaris*)
 
19090
      lt_prog_compiler_wl_GCJ='-Wl,'
 
19091
      lt_prog_compiler_pic_GCJ='-KPIC'
 
19092
      lt_prog_compiler_static_GCJ='-Bstatic'
 
19093
      ;;
 
19094
 
 
19095
    sunos4*)
 
19096
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
19097
      lt_prog_compiler_pic_GCJ='-PIC'
 
19098
      lt_prog_compiler_static_GCJ='-Bstatic'
 
19099
      ;;
 
19100
 
 
19101
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19102
      lt_prog_compiler_wl_GCJ='-Wl,'
 
19103
      lt_prog_compiler_pic_GCJ='-KPIC'
 
19104
      lt_prog_compiler_static_GCJ='-Bstatic'
 
19105
      ;;
 
19106
 
 
19107
    sysv4*MP*)
 
19108
      if test -d /usr/nec ;then
 
19109
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
19110
        lt_prog_compiler_static_GCJ='-Bstatic'
 
19111
      fi
 
19112
      ;;
 
19113
 
 
19114
    uts4*)
 
19115
      lt_prog_compiler_pic_GCJ='-pic'
 
19116
      lt_prog_compiler_static_GCJ='-Bstatic'
 
19117
      ;;
 
19118
 
 
19119
    *)
 
19120
      lt_prog_compiler_can_build_shared_GCJ=no
 
19121
      ;;
 
19122
    esac
 
19123
  fi
 
19124
 
 
19125
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
19126
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
19127
 
 
19128
#
 
19129
# Check to make sure the PIC flag actually works.
 
19130
#
 
19131
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
19132
  
 
19133
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
19134
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
19135
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
19136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19137
else
 
19138
  lt_prog_compiler_pic_works_GCJ=no
 
19139
  ac_outfile=conftest.$ac_objext
 
19140
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19141
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
19142
   # Insert the option either (1) after the last *FLAGS variable, or
 
19143
   # (2) before a word containing "conftest.", or (3) at the end.
 
19144
   # Note that $ac_compile itself does not contain backslashes and begins
 
19145
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
19146
   # The option is referenced via a variable to avoid confusing sed.
 
19147
   lt_compile=`echo "$ac_compile" | $SED \
 
19148
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
19149
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
19150
   -e 's:$: $lt_compiler_flag:'`
 
19151
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
19152
   (eval "$lt_compile" 2>conftest.err)
 
19153
   ac_status=$?
 
19154
   cat conftest.err >&5
 
19155
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
19156
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
19157
     # The compiler can only warn and ignore the option if not recognized
 
19158
     # So say no if there are warnings
 
19159
     if test ! -s conftest.err; then
 
19160
       lt_prog_compiler_pic_works_GCJ=yes
 
19161
     fi
 
19162
   fi
 
19163
   $rm conftest*
 
19164
 
 
19165
fi
 
19166
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
19167
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
19168
 
 
19169
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
19170
    case $lt_prog_compiler_pic_GCJ in
 
19171
     "" | " "*) ;;
 
19172
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
19173
     esac
 
19174
else
 
19175
    lt_prog_compiler_pic_GCJ=
 
19176
     lt_prog_compiler_can_build_shared_GCJ=no
 
19177
fi
 
19178
 
 
19179
fi
 
19180
case "$host_os" in
 
19181
  # For platforms which do not support PIC, -DPIC is meaningless:
 
19182
  *djgpp*)
 
19183
    lt_prog_compiler_pic_GCJ=
 
19184
    ;;
 
19185
  *)
 
19186
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
19187
    ;;
 
19188
esac
 
19189
 
 
19190
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
19191
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
19192
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
19193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19194
else
 
19195
  lt_cv_prog_compiler_c_o_GCJ=no
 
19196
   $rm -r conftest 2>/dev/null
 
19197
   mkdir conftest
 
19198
   cd conftest
 
19199
   mkdir out
 
19200
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19201
 
 
19202
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
19203
   # that will create temporary files in the current directory regardless of
 
19204
   # the output directory.  Thus, making CWD read-only will cause this test
 
19205
   # to fail, enabling locking or at least warning the user not to do parallel
 
19206
   # builds.
 
19207
   chmod -w .
 
19208
 
 
19209
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
19210
   # Insert the option either (1) after the last *FLAGS variable, or
 
19211
   # (2) before a word containing "conftest.", or (3) at the end.
 
19212
   # Note that $ac_compile itself does not contain backslashes and begins
 
19213
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
19214
   lt_compile=`echo "$ac_compile" | $SED \
 
19215
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
19216
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
19217
   -e 's:$: $lt_compiler_flag:'`
 
19218
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
19219
   (eval "$lt_compile" 2>out/conftest.err)
 
19220
   ac_status=$?
 
19221
   cat out/conftest.err >&5
 
19222
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
19223
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
19224
   then
 
19225
     # The compiler can only warn and ignore the option if not recognized
 
19226
     # So say no if there are warnings
 
19227
     if test ! -s out/conftest.err; then
 
19228
       lt_cv_prog_compiler_c_o_GCJ=yes
 
19229
     fi
 
19230
   fi
 
19231
   chmod u+w .
 
19232
   $rm conftest* out/*
 
19233
   rmdir out
 
19234
   cd ..
 
19235
   rmdir conftest
 
19236
   $rm conftest*
 
19237
 
 
19238
fi
 
19239
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
19240
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
19241
 
 
19242
 
 
19243
hard_links="nottested"
 
19244
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
19245
  # do not overwrite the value of need_locks provided by the user
 
19246
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
19247
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
19248
  hard_links=yes
 
19249
  $rm conftest*
 
19250
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
19251
  touch conftest.a
 
19252
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
19253
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
19254
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
19255
echo "${ECHO_T}$hard_links" >&6; }
 
19256
  if test "$hard_links" = no; then
 
19257
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
19258
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
19259
    need_locks=warn
 
19260
  fi
 
19261
else
 
19262
  need_locks=no
 
19263
fi
 
19264
 
 
19265
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
19266
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
19267
 
 
19268
  runpath_var=
 
19269
  allow_undefined_flag_GCJ=
 
19270
  enable_shared_with_static_runtimes_GCJ=no
 
19271
  archive_cmds_GCJ=
 
19272
  archive_expsym_cmds_GCJ=
 
19273
  old_archive_From_new_cmds_GCJ=
 
19274
  old_archive_from_expsyms_cmds_GCJ=
 
19275
  export_dynamic_flag_spec_GCJ=
 
19276
  whole_archive_flag_spec_GCJ=
 
19277
  thread_safe_flag_spec_GCJ=
 
19278
  hardcode_libdir_flag_spec_GCJ=
 
19279
  hardcode_libdir_flag_spec_ld_GCJ=
 
19280
  hardcode_libdir_separator_GCJ=
 
19281
  hardcode_direct_GCJ=no
 
19282
  hardcode_minus_L_GCJ=no
 
19283
  hardcode_shlibpath_var_GCJ=unsupported
 
19284
  link_all_deplibs_GCJ=unknown
 
19285
  hardcode_automatic_GCJ=no
 
19286
  module_cmds_GCJ=
 
19287
  module_expsym_cmds_GCJ=  
 
19288
  always_export_symbols_GCJ=no
 
19289
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
19290
  # include_expsyms should be a list of space-separated symbols to be *always*
 
19291
  # included in the symbol list
 
19292
  include_expsyms_GCJ=
 
19293
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
19294
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
19295
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
19296
  # as well as any symbol that contains `d'.
 
19297
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
19298
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
19299
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
19300
  # the symbol is explicitly referenced.  Since portable code cannot
 
19301
  # rely on this symbol name, it's probably fine to never include it in
 
19302
  # preloaded symbol tables.
 
19303
  extract_expsyms_cmds=
 
19304
 
 
19305
  case $host_os in
 
19306
  cygwin* | mingw* | pw32*)
 
19307
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
19308
    # When not using gcc, we currently assume that we are using
 
19309
    # Microsoft Visual C++.
 
19310
    if test "$GCC" != yes; then
 
19311
      with_gnu_ld=no
 
19312
    fi
 
19313
    ;;
 
19314
  openbsd*)
 
19315
    with_gnu_ld=no
 
19316
    ;;
 
19317
  esac
 
19318
 
 
19319
  ld_shlibs_GCJ=yes
 
19320
  if test "$with_gnu_ld" = yes; then
 
19321
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
19322
    wlarc='${wl}'
 
19323
 
 
19324
    # See if GNU ld supports shared libraries.
 
19325
    case $host_os in
 
19326
    aix3* | aix4* | aix5*)
 
19327
      # On AIX/PPC, the GNU linker is very broken
 
19328
      if test "$host_cpu" != ia64; then
 
19329
        ld_shlibs_GCJ=no
 
19330
        cat <<EOF 1>&2
 
19331
 
 
19332
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
19333
*** to be unable to reliably create shared libraries on AIX.
 
19334
*** Therefore, libtool is disabling shared libraries support.  If you
 
19335
*** really care for shared libraries, you may want to modify your PATH
 
19336
*** so that a non-GNU linker is found, and then restart.
 
19337
 
 
19338
EOF
 
19339
      fi
 
19340
      ;;
 
19341
 
 
19342
    amigaos*)
 
19343
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
19344
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19345
      hardcode_minus_L_GCJ=yes
 
19346
 
 
19347
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
19348
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
19349
      # to version 4, is to share data among multiple programs linked
 
19350
      # with the same dynamic library.  Since this doesn't match the
 
19351
      # behavior of shared libraries on other platforms, we can't use
 
19352
      # them.
 
19353
      ld_shlibs_GCJ=no
 
19354
      ;;
 
19355
 
 
19356
    beos*)
 
19357
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
19358
        allow_undefined_flag_GCJ=unsupported
 
19359
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
19360
        # support --undefined.  This deserves some investigation.  FIXME
 
19361
        archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
19362
      else
 
19363
        ld_shlibs_GCJ=no
 
19364
      fi
 
19365
      ;;
 
19366
 
 
19367
    cygwin* | mingw* | pw32*)
 
19368
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
19369
      # as there is no search path for DLLs.
 
19370
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19371
      allow_undefined_flag_GCJ=no
 
19372
      always_export_symbols_GCJ=no
 
19373
      enable_shared_with_static_runtimes_GCJ=yes
 
19374
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
19375
 
 
19376
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
19377
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
19378
        # If the export-symbols file already is a .def file (1st line
 
19379
        # is EXPORTS), use it as is; otherwise, prepend...
 
19380
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
19381
          cp $export_symbols $output_objdir/$soname.def;
 
19382
        else
 
19383
          echo EXPORTS > $output_objdir/$soname.def;
 
19384
          cat $export_symbols >> $output_objdir/$soname.def;
 
19385
        fi~
 
19386
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
19387
      else
 
19388
        ld_shlibs=no
 
19389
      fi
 
19390
      ;;
 
19391
 
 
19392
    netbsd*)
 
19393
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19394
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
19395
        wlarc=
 
19396
      else
 
19397
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
19398
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
19399
      fi
 
19400
      ;;
 
19401
 
 
19402
    solaris* | sysv5*)
 
19403
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
19404
        ld_shlibs_GCJ=no
 
19405
        cat <<EOF 1>&2
 
19406
 
 
19407
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
19408
*** create shared libraries on Solaris systems.  Therefore, libtool
 
19409
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
19410
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
19411
*** your PATH or compiler configuration so that the native linker is
 
19412
*** used, and then restart.
 
19413
 
 
19414
EOF
 
19415
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
19416
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
19417
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
19418
      else
 
19419
        ld_shlibs_GCJ=no
 
19420
      fi
 
19421
      ;;
 
19422
 
 
19423
    sunos4*)
 
19424
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19425
      wlarc=
 
19426
      hardcode_direct_GCJ=yes
 
19427
      hardcode_shlibpath_var_GCJ=no
 
19428
      ;;
 
19429
 
 
19430
    *)
 
19431
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
19432
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
19433
        archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
19434
      else
 
19435
        ld_shlibs_GCJ=no
 
19436
      fi
 
19437
      ;;
 
19438
    esac
 
19439
 
 
19440
    if test "$ld_shlibs_GCJ" = yes; then
 
19441
      runpath_var=LD_RUN_PATH
 
19442
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
19443
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
19444
      # ancient GNU ld didn't support --whole-archive et. al.
 
19445
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
19446
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
19447
      else
 
19448
        whole_archive_flag_spec_GCJ=
 
19449
      fi
 
19450
    fi
 
19451
  else
 
19452
    # PORTME fill in a description of your system's linker (not GNU ld)
 
19453
    case $host_os in
 
19454
    aix3*)
 
19455
      allow_undefined_flag_GCJ=unsupported
 
19456
      always_export_symbols_GCJ=yes
 
19457
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
19458
      # Note: this linker hardcodes the directories in LIBPATH if there
 
19459
      # are no directories specified by -L.
 
19460
      hardcode_minus_L_GCJ=yes
 
19461
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
19462
        # Neither direct hardcoding nor static linking is supported with a
 
19463
        # broken collect2.
 
19464
        hardcode_direct_GCJ=unsupported
 
19465
      fi
 
19466
      ;;
 
19467
 
 
19468
    aix4* | aix5*)
 
19469
      if test "$host_cpu" = ia64; then
 
19470
        # On IA64, the linker does run time linking by default, so we don't
 
19471
        # have to do anything special.
 
19472
        aix_use_runtimelinking=no
 
19473
        exp_sym_flag='-Bexport'
 
19474
        no_entry_flag=""
 
19475
      else
 
19476
        # If we're using GNU nm, then we don't want the "-C" option.
 
19477
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
19478
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
19479
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
19480
        else
 
19481
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
19482
        fi
 
19483
 
 
19484
        # KDE requires run time linking.  Make it the default.
 
19485
        aix_use_runtimelinking=yes
 
19486
        exp_sym_flag='-bexport'
 
19487
        no_entry_flag='-bnoentry'
 
19488
      fi
 
19489
 
 
19490
      # When large executables or shared objects are built, AIX ld can
 
19491
      # have problems creating the table of contents.  If linking a library
 
19492
      # or program results in "error TOC overflow" add -mminimal-toc to
 
19493
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
19494
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
19495
 
 
19496
      archive_cmds_GCJ=''
 
19497
      hardcode_direct_GCJ=yes
 
19498
      hardcode_libdir_separator_GCJ=':'
 
19499
      link_all_deplibs_GCJ=yes
 
19500
 
 
19501
      if test "$GCC" = yes; then
 
19502
        case $host_os in aix4.012|aix4.012.*)
 
19503
        # We only want to do this on AIX 4.2 and lower, the check
 
19504
        # below for broken collect2 doesn't work under 4.3+
 
19505
          collect2name=`${CC} -print-prog-name=collect2`
 
19506
          if test -f "$collect2name" && \
 
19507
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
19508
          then
 
19509
          # We have reworked collect2
 
19510
          hardcode_direct_GCJ=yes
 
19511
          else
 
19512
          # We have old collect2
 
19513
          hardcode_direct_GCJ=unsupported
 
19514
          # It fails to find uninstalled libraries when the uninstalled
 
19515
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
19516
          # to unsupported forces relinking
 
19517
          hardcode_minus_L_GCJ=yes
 
19518
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19519
          hardcode_libdir_separator_GCJ=
 
19520
          fi
 
19521
        esac
 
19522
        shared_flag='-shared'
 
19523
      else
 
19524
        # not using gcc
 
19525
        if test "$host_cpu" = ia64; then
 
19526
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
19527
        # chokes on -Wl,-G. The following line is correct:
 
19528
          shared_flag='-G'
 
19529
        else
 
19530
        if test "$aix_use_runtimelinking" = yes; then
 
19531
            shared_flag='-qmkshrobj ${wl}-G'
 
19532
          else
 
19533
            shared_flag='-qmkshrobj'
 
19534
        fi
 
19535
        fi
 
19536
      fi
 
19537
 
 
19538
      # Let the compiler handle the export list.
 
19539
      always_export_symbols_GCJ=no
 
19540
      if test "$aix_use_runtimelinking" = yes; then
 
19541
        # Warning - without using the other runtime loading flags (-brtl),
 
19542
        # -berok will link without error, but may produce a broken library.
 
19543
        allow_undefined_flag_GCJ='-berok'
 
19544
       # Determine the default libpath from the value encoded in an empty executable.
 
19545
        cat >conftest.$ac_ext <<_ACEOF
 
19546
/* confdefs.h.  */
 
19547
_ACEOF
 
19548
cat confdefs.h >>conftest.$ac_ext
 
19549
cat >>conftest.$ac_ext <<_ACEOF
 
19550
/* end confdefs.h.  */
 
19551
 
 
19552
int
 
19553
main ()
 
19554
{
 
19555
 
 
19556
  ;
 
19557
  return 0;
 
19558
}
 
19559
_ACEOF
 
19560
rm -f conftest.$ac_objext conftest$ac_exeext
 
19561
if { (ac_try="$ac_link"
 
19562
case "(($ac_try" in
 
19563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19564
  *) ac_try_echo=$ac_try;;
 
19565
esac
 
19566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19567
  (eval "$ac_link") 2>conftest.er1
 
19568
  ac_status=$?
 
19569
  grep -v '^ *+' conftest.er1 >conftest.err
 
19570
  rm -f conftest.er1
 
19571
  cat conftest.err >&5
 
19572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19573
  (exit $ac_status); } && {
 
19574
         test -z "$ac_c_werror_flag" ||
 
19575
         test ! -s conftest.err
 
19576
       } && test -s conftest$ac_exeext &&
 
19577
       $as_test_x conftest$ac_exeext; then
 
19578
  
 
19579
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
19580
}'`
 
19581
# Check for a 64-bit object if we didn't find anything.
 
19582
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
19583
}'`; fi
 
19584
else
 
19585
  echo "$as_me: failed program was:" >&5
 
19586
sed 's/^/| /' conftest.$ac_ext >&5
 
19587
 
 
19588
        
 
19589
fi
 
19590
 
 
19591
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19592
      conftest$ac_exeext conftest.$ac_ext
 
19593
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
19594
 
 
19595
        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
19596
        archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
19597
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
19598
       else
 
19599
        if test "$host_cpu" = ia64; then
 
19600
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
19601
          allow_undefined_flag_GCJ="-z nodefs"
 
19602
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
19603
        else
 
19604
         # Determine the default libpath from the value encoded in an empty executable.
 
19605
         cat >conftest.$ac_ext <<_ACEOF
 
19606
/* confdefs.h.  */
 
19607
_ACEOF
 
19608
cat confdefs.h >>conftest.$ac_ext
 
19609
cat >>conftest.$ac_ext <<_ACEOF
 
19610
/* end confdefs.h.  */
 
19611
 
 
19612
int
 
19613
main ()
 
19614
{
 
19615
 
 
19616
  ;
 
19617
  return 0;
 
19618
}
 
19619
_ACEOF
 
19620
rm -f conftest.$ac_objext conftest$ac_exeext
 
19621
if { (ac_try="$ac_link"
 
19622
case "(($ac_try" in
 
19623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19624
  *) ac_try_echo=$ac_try;;
 
19625
esac
 
19626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19627
  (eval "$ac_link") 2>conftest.er1
 
19628
  ac_status=$?
 
19629
  grep -v '^ *+' conftest.er1 >conftest.err
 
19630
  rm -f conftest.er1
 
19631
  cat conftest.err >&5
 
19632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19633
  (exit $ac_status); } && {
 
19634
         test -z "$ac_c_werror_flag" ||
 
19635
         test ! -s conftest.err
 
19636
       } && test -s conftest$ac_exeext &&
 
19637
       $as_test_x conftest$ac_exeext; then
 
19638
  
 
19639
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
19640
}'`
 
19641
# Check for a 64-bit object if we didn't find anything.
 
19642
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
19643
}'`; fi
 
19644
else
 
19645
  echo "$as_me: failed program was:" >&5
 
19646
sed 's/^/| /' conftest.$ac_ext >&5
 
19647
 
 
19648
        
 
19649
fi
 
19650
 
 
19651
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19652
      conftest$ac_exeext conftest.$ac_ext
 
19653
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
19654
 
 
19655
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
19656
          # Warning - without using the other run time loading flags,
 
19657
          # -berok will link without error, but may produce a broken library.
 
19658
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
19659
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
19660
          # -bexpall does not export symbols beginning with underscore (_)
 
19661
          always_export_symbols_GCJ=yes
 
19662
          # Exported symbols can be pulled into shared objects from archives
 
19663
          whole_archive_flag_spec_GCJ=' '
 
19664
          archive_cmds_need_lc_GCJ=yes
 
19665
          # This is similar to how AIX traditionally builds it's shared libraries.
 
19666
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
19667
        fi
 
19668
      fi
 
19669
      ;;
 
19670
 
 
19671
    amigaos*)
 
19672
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
19673
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19674
      hardcode_minus_L_GCJ=yes
 
19675
      # see comment about different semantics on the GNU ld section
 
19676
      ld_shlibs_GCJ=no
 
19677
      ;;
 
19678
 
 
19679
    bsdi4*)
 
19680
      export_dynamic_flag_spec_GCJ=-rdynamic
 
19681
      ;;
 
19682
 
 
19683
    cygwin* | mingw* | pw32*)
 
19684
      # When not using gcc, we currently assume that we are using
 
19685
      # Microsoft Visual C++.
 
19686
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
19687
      # no search path for DLLs.
 
19688
      hardcode_libdir_flag_spec_GCJ=' '
 
19689
      allow_undefined_flag_GCJ=no
 
19690
      # Tell ltmain to make .lib files, not .a files.
 
19691
      libext=lib
 
19692
      # Tell ltmain to make .dll files, not .so files.
 
19693
      shrext=".dll"
 
19694
      # FIXME: Setting linknames here is a bad hack.
 
19695
      archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
19696
      # The linker will automatically build a .lib file if we build a DLL.
 
19697
      old_archive_From_new_cmds_GCJ='true'
 
19698
      # FIXME: Should let the user specify the lib program.
 
19699
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
19700
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
19701
      enable_shared_with_static_runtimes_GCJ=yes
 
19702
      ;;
 
19703
 
 
19704
    darwin* | rhapsody*)
 
19705
    if test "$GXX" = yes ; then
 
19706
      archive_cmds_need_lc_GCJ=no
 
19707
      case "$host_os" in
 
19708
      rhapsody* | darwin1.[012])
 
19709
        allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
 
19710
        ;;
 
19711
      *) # Darwin 1.3 on
 
19712
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
19713
          allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
19714
        else
 
19715
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
19716
            10.012)
 
19717
              allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
19718
              ;;
 
19719
            10.*)
 
19720
              allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
 
19721
              ;;
 
19722
          esac
 
19723
        fi
 
19724
        ;;
 
19725
      esac
 
19726
        lt_int_apple_cc_single_mod=no
 
19727
        output_verbose_link_cmd='echo'
 
19728
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
19729
          lt_int_apple_cc_single_mod=yes
 
19730
        fi
 
19731
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19732
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
19733
        else
 
19734
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
19735
      fi
 
19736
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
19737
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
19738
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19739
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19740
        else
 
19741
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19742
        fi
 
19743
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19744
      hardcode_direct_GCJ=no
 
19745
      hardcode_automatic_GCJ=yes
 
19746
      hardcode_shlibpath_var_GCJ=unsupported
 
19747
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
19748
      link_all_deplibs_GCJ=yes
 
19749
    else  
 
19750
      ld_shlibs_GCJ=no
 
19751
    fi  
 
19752
      ;;
 
19753
 
 
19754
    dgux*)
 
19755
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19756
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19757
      hardcode_shlibpath_var_GCJ=no
 
19758
      ;;
 
19759
 
 
19760
    freebsd1*)
 
19761
      ld_shlibs_GCJ=no
 
19762
      ;;
 
19763
 
 
19764
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
19765
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
19766
    # does not break anything, and helps significantly (at the cost of a little
 
19767
    # extra space).
 
19768
    freebsd2.2*)
 
19769
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
19770
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19771
      hardcode_direct_GCJ=yes
 
19772
      hardcode_shlibpath_var_GCJ=no
 
19773
      ;;
 
19774
 
 
19775
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
19776
    freebsd2*)
 
19777
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19778
      hardcode_direct_GCJ=yes
 
19779
      hardcode_minus_L_GCJ=yes
 
19780
      hardcode_shlibpath_var_GCJ=no
 
19781
      ;;
 
19782
 
 
19783
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
19784
    freebsd*)
 
19785
      archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
 
19786
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19787
      hardcode_direct_GCJ=yes
 
19788
      hardcode_shlibpath_var_GCJ=no
 
19789
      ;;
 
19790
 
 
19791
    hpux9*)
 
19792
      if test "$GCC" = yes; then
 
19793
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
19794
      else
 
19795
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
19796
      fi
 
19797
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19798
      hardcode_libdir_separator_GCJ=:
 
19799
      hardcode_direct_GCJ=yes
 
19800
 
 
19801
      # hardcode_minus_L: Not really in the search PATH,
 
19802
      # but as the default location of the library.
 
19803
      hardcode_minus_L_GCJ=yes
 
19804
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
19805
      ;;
 
19806
 
 
19807
    hpux10* | hpux11*)
 
19808
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19809
        case "$host_cpu" in
 
19810
        hppa*64*|ia64*)
 
19811
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19812
          ;;
 
19813
        *)
 
19814
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
19815
          ;;
 
19816
        esac
 
19817
      else
 
19818
        case "$host_cpu" in
 
19819
        hppa*64*|ia64*)
 
19820
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19821
          ;;
 
19822
        *)
 
19823
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
19824
          ;;
 
19825
        esac
 
19826
      fi
 
19827
      if test "$with_gnu_ld" = no; then
 
19828
        case "$host_cpu" in
 
19829
        hppa*64*)
 
19830
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19831
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
19832
          hardcode_libdir_separator_GCJ=:
 
19833
          hardcode_direct_GCJ=no
 
19834
          hardcode_shlibpath_var_GCJ=no
 
19835
          ;;
 
19836
        ia64*)
 
19837
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19838
          hardcode_direct_GCJ=no
 
19839
          hardcode_shlibpath_var_GCJ=no
 
19840
 
 
19841
          # hardcode_minus_L: Not really in the search PATH,
 
19842
          # but as the default location of the library.
 
19843
          hardcode_minus_L_GCJ=yes
 
19844
          ;;
 
19845
        *)
 
19846
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19847
          hardcode_libdir_separator_GCJ=:
 
19848
          hardcode_direct_GCJ=yes
 
19849
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
19850
 
 
19851
          # hardcode_minus_L: Not really in the search PATH,
 
19852
          # but as the default location of the library.
 
19853
          hardcode_minus_L_GCJ=yes
 
19854
          ;;
 
19855
        esac
 
19856
      fi
 
19857
      ;;
 
19858
 
 
19859
    irix5* | irix6* | nonstopux*)
 
19860
      if test "$GCC" = yes; then
 
19861
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
19862
      else
 
19863
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
19864
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
19865
      fi
 
19866
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19867
      hardcode_libdir_separator_GCJ=:
 
19868
      link_all_deplibs_GCJ=yes
 
19869
      ;;
 
19870
 
 
19871
    netbsd*)
 
19872
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19873
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
19874
      else
 
19875
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
19876
      fi
 
19877
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19878
      hardcode_direct_GCJ=yes
 
19879
      hardcode_shlibpath_var_GCJ=no
 
19880
      ;;
 
19881
 
 
19882
    newsos6)
 
19883
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19884
      hardcode_direct_GCJ=yes
 
19885
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19886
      hardcode_libdir_separator_GCJ=:
 
19887
      hardcode_shlibpath_var_GCJ=no
 
19888
      ;;
 
19889
 
 
19890
    openbsd*)
 
19891
      hardcode_direct_GCJ=yes
 
19892
      hardcode_shlibpath_var_GCJ=no
 
19893
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19894
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
19895
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19896
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
19897
      else
 
19898
       case $host_os in
 
19899
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
19900
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19901
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19902
           ;;
 
19903
         *)
 
19904
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
 
19905
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19906
           ;;
 
19907
       esac
 
19908
      fi
 
19909
      ;;
 
19910
 
 
19911
    os2*)
 
19912
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19913
      hardcode_minus_L_GCJ=yes
 
19914
      allow_undefined_flag_GCJ=unsupported
 
19915
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
 
19916
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
19917
      ;;
 
19918
 
 
19919
    osf3*)
 
19920
      if test "$GCC" = yes; then
 
19921
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19922
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
19923
      else
 
19924
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19925
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
19926
      fi
 
19927
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19928
      hardcode_libdir_separator_GCJ=:
 
19929
      ;;
 
19930
 
 
19931
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
19932
      if test "$GCC" = yes; then
 
19933
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19934
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
19935
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19936
      else
 
19937
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19938
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
19939
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
19940
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
19941
 
 
19942
        # Both c and cxx compiler support -rpath directly
 
19943
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
19944
      fi
 
19945
      hardcode_libdir_separator_GCJ=:
 
19946
      ;;
 
19947
 
 
19948
    sco3.2v5*)
 
19949
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19950
      hardcode_shlibpath_var_GCJ=no
 
19951
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
19952
      runpath_var=LD_RUN_PATH
 
19953
      hardcode_runpath_var=yes
 
19954
      ;;
 
19955
 
 
19956
    solaris*)
 
19957
      no_undefined_flag_GCJ=' -z text'
 
19958
      if test "$GCC" = yes; then
 
19959
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
19960
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19961
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
 
19962
      else
 
19963
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19964
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19965
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19966
      fi
 
19967
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19968
      hardcode_shlibpath_var_GCJ=no
 
19969
      case $host_os in
 
19970
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
19971
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
19972
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
19973
      esac
 
19974
      link_all_deplibs_GCJ=yes
 
19975
      ;;
 
19976
 
 
19977
    sunos4*)
 
19978
      if test "x$host_vendor" = xsequent; then
 
19979
        # Use $CC to link under sequent, because it throws in some extra .o
 
19980
        # files that make .init and .fini sections work.
 
19981
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
 
19982
      else
 
19983
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
19984
      fi
 
19985
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19986
      hardcode_direct_GCJ=yes
 
19987
      hardcode_minus_L_GCJ=yes
 
19988
      hardcode_shlibpath_var_GCJ=no
 
19989
      ;;
 
19990
 
 
19991
    sysv4)
 
19992
      case $host_vendor in
 
19993
        sni)
 
19994
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19995
          hardcode_direct_GCJ=yes # is this really true???
 
19996
        ;;
 
19997
        siemens)
 
19998
          ## LD is ld it makes a PLAMLIB
 
19999
          ## CC just makes a GrossModule.
 
20000
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
20001
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
20002
          hardcode_direct_GCJ=no
 
20003
        ;;
 
20004
        motorola)
 
20005
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
20006
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
20007
        ;;
 
20008
      esac
 
20009
      runpath_var='LD_RUN_PATH'
 
20010
      hardcode_shlibpath_var_GCJ=no
 
20011
      ;;
 
20012
 
 
20013
    sysv4.3*)
 
20014
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
20015
      hardcode_shlibpath_var_GCJ=no
 
20016
      export_dynamic_flag_spec_GCJ='-Bexport'
 
20017
      ;;
 
20018
 
 
20019
    sysv4*MP*)
 
20020
      if test -d /usr/nec; then
 
20021
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
20022
        hardcode_shlibpath_var_GCJ=no
 
20023
        runpath_var=LD_RUN_PATH
 
20024
        hardcode_runpath_var=yes
 
20025
        ld_shlibs_GCJ=yes
 
20026
      fi
 
20027
      ;;
 
20028
 
 
20029
    sysv4.2uw2*)
 
20030
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
20031
      hardcode_direct_GCJ=yes
 
20032
      hardcode_minus_L_GCJ=no
 
20033
      hardcode_shlibpath_var_GCJ=no
 
20034
      hardcode_runpath_var=yes
 
20035
      runpath_var=LD_RUN_PATH
 
20036
      ;;
 
20037
 
 
20038
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
20039
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
20040
      if test "$GCC" = yes; then
 
20041
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
20042
      else
 
20043
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
20044
      fi
 
20045
      runpath_var='LD_RUN_PATH'
 
20046
      hardcode_shlibpath_var_GCJ=no
 
20047
      ;;
 
20048
 
 
20049
    sysv5*)
 
20050
      no_undefined_flag_GCJ=' -z text'
 
20051
      # $CC -shared without GNU ld will not create a library from C++
 
20052
      # object files and a static libstdc++, better avoid it by now
 
20053
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
20054
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
20055
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
20056
      hardcode_libdir_flag_spec_GCJ=
 
20057
      hardcode_shlibpath_var_GCJ=no
 
20058
      runpath_var='LD_RUN_PATH'
 
20059
      ;;
 
20060
 
 
20061
    uts4*)
 
20062
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
20063
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
20064
      hardcode_shlibpath_var_GCJ=no
 
20065
      ;;
 
20066
 
 
20067
    *)
 
20068
      ld_shlibs_GCJ=no
 
20069
      ;;
 
20070
    esac
 
20071
  fi
 
20072
 
 
20073
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
20074
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
20075
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
20076
 
 
20077
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
20078
if test "$GCC" = yes; then
 
20079
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
20080
fi
 
20081
 
 
20082
#
 
20083
# Do we need to explicitly link libc?
 
20084
#
 
20085
case "x$archive_cmds_need_lc_GCJ" in
 
20086
x|xyes)
 
20087
  # Assume -lc should be added
 
20088
  archive_cmds_need_lc_GCJ=yes
 
20089
 
 
20090
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
20091
    case $archive_cmds_GCJ in
 
20092
    *'~'*)
 
20093
      # FIXME: we may have to deal with multi-command sequences.
 
20094
      ;;
 
20095
    '$CC '*)
 
20096
      # Test whether the compiler implicitly links with -lc since on some
 
20097
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
20098
      # to ld, don't add -lc before -lgcc.
 
20099
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
20100
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
20101
      $rm conftest*
 
20102
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20103
  
 
20104
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20105
  (eval $ac_compile) 2>&5
 
20106
  ac_status=$?
 
20107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20108
  (exit $ac_status); } 2>conftest.err; then
 
20109
        soname=conftest
 
20110
        lib=conftest
 
20111
        libobjs=conftest.$ac_objext
 
20112
        deplibs=
 
20113
        wl=$lt_prog_compiler_wl_GCJ
 
20114
        compiler_flags=-v
 
20115
        linker_flags=-v
 
20116
        verstring=
 
20117
        output_objdir=.
 
20118
        libname=conftest
 
20119
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
20120
        allow_undefined_flag_GCJ=
 
20121
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
20122
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
20123
  ac_status=$?
 
20124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20125
  (exit $ac_status); }
 
20126
        then
 
20127
          archive_cmds_need_lc_GCJ=no
 
20128
        else
 
20129
          archive_cmds_need_lc_GCJ=yes
 
20130
        fi
 
20131
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
20132
      else
 
20133
        cat conftest.err 1>&5
 
20134
      fi
 
20135
      $rm conftest*
 
20136
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
20137
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
20138
      ;;
 
20139
    esac
 
20140
  fi
 
20141
  ;;
 
20142
esac
 
20143
 
 
20144
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
20145
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
20146
library_names_spec=
 
20147
libname_spec='lib$name'
 
20148
soname_spec=
 
20149
shrext=".so"
 
20150
postinstall_cmds=
 
20151
postuninstall_cmds=
 
20152
finish_cmds=
 
20153
finish_eval=
 
20154
shlibpath_var=
 
20155
shlibpath_overrides_runpath=unknown
 
20156
version_type=none
 
20157
dynamic_linker="$host_os ld.so"
 
20158
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
20159
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
20160
need_lib_prefix=unknown
 
20161
hardcode_into_libs=no
 
20162
 
 
20163
# when you set need_version to no, make sure it does not cause -set_version
 
20164
# flags to be left without arguments
 
20165
need_version=unknown
 
20166
 
 
20167
case $host_os in
 
20168
aix3*)
 
20169
  version_type=linux
 
20170
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
20171
  shlibpath_var=LIBPATH
 
20172
 
 
20173
  # AIX 3 has no versioning support, so we append a major version to the name.
 
20174
  soname_spec='${libname}${release}${shared_ext}$major'
 
20175
  ;;
 
20176
 
 
20177
aix4* | aix5*)
 
20178
  version_type=linux
 
20179
  need_lib_prefix=no
 
20180
  need_version=no
 
20181
  hardcode_into_libs=yes
 
20182
  if test "$host_cpu" = ia64; then
 
20183
    # AIX 5 supports IA64
 
20184
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
20185
    shlibpath_var=LD_LIBRARY_PATH
 
20186
  else
 
20187
    # With GCC up to 2.95.x, collect2 would create an import file
 
20188
    # for dependence libraries.  The import file would start with
 
20189
    # the line `#! .'.  This would cause the generated library to
 
20190
    # depend on `.', always an invalid library.  This was fixed in
 
20191
    # development snapshots of GCC prior to 3.0.
 
20192
    case $host_os in
 
20193
      aix4 | aix4.[01] | aix4.[01].*)
 
20194
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
20195
           echo ' yes '
 
20196
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
20197
        :
 
20198
      else
 
20199
        can_build_shared=no
 
20200
      fi
 
20201
      ;;
 
20202
    esac
 
20203
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
20204
    # soname into executable. Probably we can add versioning support to
 
20205
    # collect2, so additional links can be useful in future.
 
20206
    if test "$aix_use_runtimelinking" = yes; then
 
20207
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
20208
      # instead of lib<name>.a to let people know that these are not
 
20209
      # typical AIX shared libraries.
 
20210
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20211
    else
 
20212
      # We preserve .a as extension for shared libraries through AIX4.2
 
20213
      # and later when we are not doing run time linking.
 
20214
      library_names_spec='${libname}${release}.a $libname.a'
 
20215
      soname_spec='${libname}${release}${shared_ext}$major'
 
20216
    fi
 
20217
    shlibpath_var=LIBPATH
 
20218
  fi
 
20219
  ;;
 
20220
 
 
20221
amigaos*)
 
20222
  library_names_spec='$libname.ixlibrary $libname.a'
 
20223
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
20224
  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'
 
20225
  ;;
 
20226
 
 
20227
beos*)
 
20228
  library_names_spec='${libname}${shared_ext}'
 
20229
  dynamic_linker="$host_os ld.so"
 
20230
  shlibpath_var=LIBRARY_PATH
 
20231
  ;;
 
20232
 
 
20233
bsdi4*)
 
20234
  version_type=linux
 
20235
  need_version=no
 
20236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20237
  soname_spec='${libname}${release}${shared_ext}$major'
 
20238
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
20239
  shlibpath_var=LD_LIBRARY_PATH
 
20240
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
20241
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
20242
  # the default ld.so.conf also contains /usr/contrib/lib and
 
20243
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
20244
  # libtool to hard-code these into programs
 
20245
  ;;
 
20246
 
 
20247
cygwin* | mingw* | pw32*)
 
20248
  version_type=windows
 
20249
  shrext=".dll"
 
20250
  need_version=no
 
20251
  need_lib_prefix=no
 
20252
 
 
20253
  case $GCC,$host_os in
 
20254
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
20255
    library_names_spec='$libname.dll.a'
 
20256
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
20257
    postinstall_cmds='base_file=`basename \${file}`~
 
20258
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
20259
      dldir=$destdir/`dirname \$dlpath`~
 
20260
      test -d \$dldir || mkdir -p \$dldir~
 
20261
      $install_prog $dir/$dlname \$dldir/$dlname'
 
20262
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
20263
      dlpath=$dir/\$dldll~
 
20264
       $rm \$dlpath'
 
20265
    shlibpath_overrides_runpath=yes
 
20266
 
 
20267
    case $host_os in
 
20268
    cygwin*)
 
20269
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
20270
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
20271
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
20272
      ;;
 
20273
    mingw*)
 
20274
      # MinGW DLLs use traditional 'lib' prefix
 
20275
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
20276
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
20277
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
20278
        # It is most probably a Windows format PATH printed by
 
20279
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
20280
        # path with ; separators, and with drive letters. We can handle the
 
20281
        # drive letters (cygwin fileutils understands them), so leave them,
 
20282
        # especially as we might pass files found there to a mingw objdump,
 
20283
        # which wouldn't understand a cygwinified path. Ahh.
 
20284
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
20285
      else
 
20286
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
20287
      fi
 
20288
      ;;
 
20289
    pw32*)
 
20290
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
20291
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
20292
      ;;
 
20293
    esac
 
20294
    ;;
 
20295
 
 
20296
  *)
 
20297
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
20298
    ;;
 
20299
  esac
 
20300
  dynamic_linker='Win32 ld.exe'
 
20301
  # FIXME: first we should search . and the directory the executable is in
 
20302
  shlibpath_var=PATH
 
20303
  ;;
 
20304
 
 
20305
darwin* | rhapsody*)
 
20306
  dynamic_linker="$host_os dyld"
 
20307
  version_type=darwin
 
20308
  need_lib_prefix=no
 
20309
  need_version=no
 
20310
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
20311
  soname_spec='${libname}${release}${major}$shared_ext'
 
20312
  shlibpath_overrides_runpath=yes
 
20313
  shlibpath_var=DYLD_LIBRARY_PATH
 
20314
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
20315
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
20316
  if test "$GCC" = yes; then
 
20317
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
20318
  else
 
20319
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
20320
  fi
 
20321
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
20322
  ;;
 
20323
 
 
20324
dgux*)
 
20325
  version_type=linux
 
20326
  need_lib_prefix=no
 
20327
  need_version=no
 
20328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
20329
  soname_spec='${libname}${release}${shared_ext}$major'
 
20330
  shlibpath_var=LD_LIBRARY_PATH
 
20331
  ;;
 
20332
 
 
20333
freebsd1*)
 
20334
  dynamic_linker=no
 
20335
  ;;
 
20336
 
 
20337
freebsd*-gnu*)
 
20338
  version_type=linux
 
20339
  need_lib_prefix=no
 
20340
  need_version=no
 
20341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
20342
  soname_spec='${libname}${release}${shared_ext}$major'
 
20343
  shlibpath_var=LD_LIBRARY_PATH
 
20344
  shlibpath_overrides_runpath=no
 
20345
  hardcode_into_libs=yes
 
20346
  dynamic_linker='GNU ld.so'
 
20347
  ;;
 
20348
 
 
20349
freebsd*)
 
20350
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
20351
  version_type=freebsd-$objformat
 
20352
  case $version_type in
 
20353
    freebsd-elf*)
 
20354
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
20355
      need_version=no
 
20356
      need_lib_prefix=no
 
20357
      ;;
 
20358
    freebsd-*)
 
20359
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
20360
      need_version=yes
 
20361
      ;;
 
20362
  esac
 
20363
  shlibpath_var=LD_LIBRARY_PATH
 
20364
  case $host_os in
 
20365
  freebsd2*)
 
20366
    shlibpath_overrides_runpath=yes
 
20367
    ;;
 
20368
  freebsd3.01* | freebsdelf3.01*)
 
20369
    shlibpath_overrides_runpath=yes
 
20370
    hardcode_into_libs=yes
 
20371
    ;;
 
20372
  *) # from 3.2 on
 
20373
    shlibpath_overrides_runpath=no
 
20374
    hardcode_into_libs=yes
 
20375
    ;;
 
20376
  esac
 
20377
  ;;
 
20378
 
 
20379
gnu*)
 
20380
  version_type=linux
 
20381
  need_lib_prefix=no
 
20382
  need_version=no
 
20383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
20384
  soname_spec='${libname}${release}${shared_ext}$major'
 
20385
  shlibpath_var=LD_LIBRARY_PATH
 
20386
  hardcode_into_libs=yes
 
20387
  ;;
 
20388
 
 
20389
hpux9* | hpux10* | hpux11*)
 
20390
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
20391
  # link against other versions.
 
20392
  version_type=sunos
 
20393
  need_lib_prefix=no
 
20394
  need_version=no
 
20395
  case "$host_cpu" in
 
20396
  ia64*)
 
20397
    shrext='.so'
 
20398
    hardcode_into_libs=yes
 
20399
    dynamic_linker="$host_os dld.so"
 
20400
    shlibpath_var=LD_LIBRARY_PATH
 
20401
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
20402
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20403
    soname_spec='${libname}${release}${shared_ext}$major'
 
20404
    if test "X$HPUX_IA64_MODE" = X32; then
 
20405
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
20406
    else
 
20407
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
20408
    fi
 
20409
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
20410
    ;;
 
20411
   hppa*64*)
 
20412
     shrext='.sl'
 
20413
     hardcode_into_libs=yes
 
20414
     dynamic_linker="$host_os dld.sl"
 
20415
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
20416
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
20417
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20418
     soname_spec='${libname}${release}${shared_ext}$major'
 
20419
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
20420
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
20421
     ;;
 
20422
   *)
 
20423
    shrext='.sl'
 
20424
    dynamic_linker="$host_os dld.sl"
 
20425
    shlibpath_var=SHLIB_PATH
 
20426
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
20427
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20428
    soname_spec='${libname}${release}${shared_ext}$major'
 
20429
    ;;
 
20430
  esac
 
20431
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
20432
  postinstall_cmds='chmod 555 $lib'
 
20433
  ;;
 
20434
 
 
20435
irix5* | irix6* | nonstopux*)
 
20436
  case $host_os in
 
20437
    nonstopux*) version_type=nonstopux ;;
 
20438
    *)
 
20439
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
20440
                version_type=linux
 
20441
        else
 
20442
                version_type=irix
 
20443
        fi ;;
 
20444
  esac
 
20445
  need_lib_prefix=no
 
20446
  need_version=no
 
20447
  soname_spec='${libname}${release}${shared_ext}$major'
 
20448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
20449
  case $host_os in
 
20450
  irix5* | nonstopux*)
 
20451
    libsuff= shlibsuff=
 
20452
    ;;
 
20453
  *)
 
20454
    case $LD in # libtool.m4 will add one of these switches to LD
 
20455
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
20456
      libsuff= shlibsuff= libmagic=32-bit;;
 
20457
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
20458
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
20459
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
20460
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
20461
    *) libsuff= shlibsuff= libmagic=never-match;;
 
20462
    esac
 
20463
    ;;
 
20464
  esac
 
20465
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
20466
  shlibpath_overrides_runpath=no
 
20467
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
20468
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
20469
  hardcode_into_libs=yes
 
20470
  ;;
 
20471
 
 
20472
# No shared lib support for Linux oldld, aout, or coff.
 
20473
linux*oldld* | linux*aout* | linux*coff*)
 
20474
  dynamic_linker=no
 
20475
  ;;
 
20476
 
 
20477
# This must be Linux ELF.
 
20478
linux*)
 
20479
  version_type=linux
 
20480
  need_lib_prefix=no
 
20481
  need_version=no
 
20482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20483
  soname_spec='${libname}${release}${shared_ext}$major'
 
20484
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
20485
  libsuff=
 
20486
  if test "x$LINUX_64_MODE" = x64; then
 
20487
    # Some platforms are per default 64-bit, so there's no /lib64
 
20488
    if test -d /lib64; then
 
20489
      libsuff=64
 
20490
    fi
 
20491
  fi
 
20492
  shlibpath_var=LD_LIBRARY_PATH
 
20493
  shlibpath_overrides_runpath=no
 
20494
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
20495
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
20496
  # This implies no fast_install, which is unacceptable.
 
20497
  # Some rework will be needed to allow for fast_install
 
20498
  # before this can be enabled.
 
20499
  hardcode_into_libs=yes
 
20500
 
 
20501
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
20502
  # powerpc, because MkLinux only supported shared libraries with the
 
20503
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
20504
  # most powerpc-linux boxes support dynamic linking these days and
 
20505
  # people can always --disable-shared, the test was removed, and we
 
20506
  # assume the GNU/Linux dynamic linker is in use.
 
20507
  dynamic_linker='GNU/Linux ld.so'
 
20508
  ;;
 
20509
 
 
20510
netbsd*)
 
20511
  version_type=sunos
 
20512
  need_lib_prefix=no
 
20513
  need_version=no
 
20514
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
20515
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20516
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
20517
    dynamic_linker='NetBSD (a.out) ld.so'
 
20518
  else
 
20519
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
20520
    soname_spec='${libname}${release}${shared_ext}$major'
 
20521
    dynamic_linker='NetBSD ld.elf_so'
 
20522
  fi
 
20523
  shlibpath_var=LD_LIBRARY_PATH
 
20524
  shlibpath_overrides_runpath=yes
 
20525
  hardcode_into_libs=yes
 
20526
  ;;
 
20527
 
 
20528
newsos6)
 
20529
  version_type=linux
 
20530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20531
  shlibpath_var=LD_LIBRARY_PATH
 
20532
  shlibpath_overrides_runpath=yes
 
20533
  ;;
 
20534
 
 
20535
nto-qnx*)
 
20536
  version_type=linux
 
20537
  need_lib_prefix=no
 
20538
  need_version=no
 
20539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20540
  soname_spec='${libname}${release}${shared_ext}$major'
 
20541
  shlibpath_var=LD_LIBRARY_PATH
 
20542
  shlibpath_overrides_runpath=yes
 
20543
  ;;
 
20544
 
 
20545
openbsd*)
 
20546
  version_type=sunos
 
20547
  need_lib_prefix=no
 
20548
  need_version=no
 
20549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20550
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
20551
  shlibpath_var=LD_LIBRARY_PATH
 
20552
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
20553
    case $host_os in
 
20554
      openbsd2.[89] | openbsd2.[89].*)
 
20555
        shlibpath_overrides_runpath=no
 
20556
        ;;
 
20557
      *)
 
20558
        shlibpath_overrides_runpath=yes
 
20559
        ;;
 
20560
      esac
 
20561
  else
 
20562
    shlibpath_overrides_runpath=yes
 
20563
  fi
 
20564
  ;;
 
20565
 
 
20566
os2*)
 
20567
  libname_spec='$name'
 
20568
  shrext=".dll"
 
20569
  need_lib_prefix=no
 
20570
  library_names_spec='$libname${shared_ext} $libname.a'
 
20571
  dynamic_linker='OS/2 ld.exe'
 
20572
  shlibpath_var=LIBPATH
 
20573
  ;;
 
20574
 
 
20575
osf3* | osf4* | osf5*)
 
20576
  version_type=osf
 
20577
  need_lib_prefix=no
 
20578
  need_version=no
 
20579
  soname_spec='${libname}${release}${shared_ext}$major'
 
20580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20581
  shlibpath_var=LD_LIBRARY_PATH
 
20582
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
20583
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
20584
  ;;
 
20585
 
 
20586
sco3.2v5*)
 
20587
  version_type=osf
 
20588
  soname_spec='${libname}${release}${shared_ext}$major'
 
20589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20590
  shlibpath_var=LD_LIBRARY_PATH
 
20591
  ;;
 
20592
 
 
20593
solaris*)
 
20594
  version_type=linux
 
20595
  need_lib_prefix=no
 
20596
  need_version=no
 
20597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20598
  soname_spec='${libname}${release}${shared_ext}$major'
 
20599
  shlibpath_var=LD_LIBRARY_PATH
 
20600
  shlibpath_overrides_runpath=yes
 
20601
  hardcode_into_libs=yes
 
20602
  # ldd complains unless libraries are executable
 
20603
  postinstall_cmds='chmod +x $lib'
 
20604
  ;;
 
20605
 
 
20606
sunos4*)
 
20607
  version_type=sunos
 
20608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20609
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
20610
  shlibpath_var=LD_LIBRARY_PATH
 
20611
  shlibpath_overrides_runpath=yes
 
20612
  if test "$with_gnu_ld" = yes; then
 
20613
    need_lib_prefix=no
 
20614
  fi
 
20615
  need_version=yes
 
20616
  ;;
 
20617
 
 
20618
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
20619
  version_type=linux
 
20620
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20621
  soname_spec='${libname}${release}${shared_ext}$major'
 
20622
  shlibpath_var=LD_LIBRARY_PATH
 
20623
  case $host_vendor in
 
20624
    sni)
 
20625
      shlibpath_overrides_runpath=no
 
20626
      need_lib_prefix=no
 
20627
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
20628
      runpath_var=LD_RUN_PATH
 
20629
      ;;
 
20630
    siemens)
 
20631
      need_lib_prefix=no
 
20632
      ;;
 
20633
    motorola)
 
20634
      need_lib_prefix=no
 
20635
      need_version=no
 
20636
      shlibpath_overrides_runpath=no
 
20637
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
20638
      ;;
 
20639
  esac
 
20640
  ;;
 
20641
 
 
20642
sysv4*MP*)
 
20643
  if test -d /usr/nec ;then
 
20644
    version_type=linux
 
20645
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
20646
    soname_spec='$libname${shared_ext}.$major'
 
20647
    shlibpath_var=LD_LIBRARY_PATH
 
20648
  fi
 
20649
  ;;
 
20650
 
 
20651
uts4*)
 
20652
  version_type=linux
 
20653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20654
  soname_spec='${libname}${release}${shared_ext}$major'
 
20655
  shlibpath_var=LD_LIBRARY_PATH
 
20656
  ;;
 
20657
 
 
20658
*)
 
20659
  dynamic_linker=no
 
20660
  ;;
 
20661
esac
 
20662
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
20663
echo "${ECHO_T}$dynamic_linker" >&6; }
 
20664
test "$dynamic_linker" = no && can_build_shared=no
 
20665
 
 
20666
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
20667
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
20668
hardcode_action_GCJ=
 
20669
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
20670
   test -n "$runpath_var GCJ" || \
 
20671
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
20672
 
 
20673
  # We can hardcode non-existant directories.
 
20674
  if test "$hardcode_direct_GCJ" != no &&
 
20675
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
20676
     # have to relink, otherwise we might link with an installed library
 
20677
     # when we should be linking with a yet-to-be-installed one
 
20678
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
20679
     test "$hardcode_minus_L_GCJ" != no; then
 
20680
    # Linking always hardcodes the temporary library directory.
 
20681
    hardcode_action_GCJ=relink
 
20682
  else
 
20683
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
20684
    hardcode_action_GCJ=immediate
 
20685
  fi
 
20686
else
 
20687
  # We cannot hardcode anything, or else we can only hardcode existing
 
20688
  # directories.
 
20689
  hardcode_action_GCJ=unsupported
 
20690
fi
 
20691
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
20692
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
20693
 
 
20694
if test "$hardcode_action_GCJ" = relink; then
 
20695
  # Fast installation is not supported
 
20696
  enable_fast_install=no
 
20697
elif test "$shlibpath_overrides_runpath" = yes ||
 
20698
     test "$enable_shared" = no; then
 
20699
  # Fast installation is not necessary
 
20700
  enable_fast_install=needless
 
20701
fi
 
20702
 
 
20703
striplib=
 
20704
old_striplib=
 
20705
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
20706
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
20707
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
20708
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
20709
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
20710
  { echo "$as_me:$LINENO: result: yes" >&5
 
20711
echo "${ECHO_T}yes" >&6; }
 
20712
else
 
20713
# FIXME - insert some real tests, host_os isn't really good enough
 
20714
  case $host_os in
 
20715
   darwin*)
 
20716
       if test -n "$STRIP" ; then
 
20717
         striplib="$STRIP -x"
 
20718
         { echo "$as_me:$LINENO: result: yes" >&5
 
20719
echo "${ECHO_T}yes" >&6; }
 
20720
       else
 
20721
  { echo "$as_me:$LINENO: result: no" >&5
 
20722
echo "${ECHO_T}no" >&6; }
 
20723
fi
 
20724
       ;;
 
20725
   *)
 
20726
  { echo "$as_me:$LINENO: result: no" >&5
 
20727
echo "${ECHO_T}no" >&6; }
 
20728
    ;;
 
20729
  esac  
 
20730
fi
 
20731
 
 
20732
if test "x$enable_dlopen" != xyes; then
 
20733
  enable_dlopen=unknown
 
20734
  enable_dlopen_self=unknown
 
20735
  enable_dlopen_self_static=unknown
 
20736
else
 
20737
  lt_cv_dlopen=no
 
20738
  lt_cv_dlopen_libs=
 
20739
 
 
20740
  case $host_os in
 
20741
  beos*)
 
20742
    lt_cv_dlopen="load_add_on"
 
20743
    lt_cv_dlopen_libs=
 
20744
    lt_cv_dlopen_self=yes
 
20745
    ;;
 
20746
 
 
20747
  mingw* | pw32*)
 
20748
    lt_cv_dlopen="LoadLibrary"
 
20749
    lt_cv_dlopen_libs=
 
20750
   ;;
 
20751
 
 
20752
  cygwin*)
 
20753
    lt_cv_dlopen="dlopen"
 
20754
    lt_cv_dlopen_libs=
 
20755
   ;;
 
20756
 
 
20757
  darwin*)
 
20758
  # if libdl is installed we need to link against it
 
20759
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20760
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
20761
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20763
else
 
20764
  ac_check_lib_save_LIBS=$LIBS
 
20765
LIBS="-ldl  $LIBS"
 
20766
cat >conftest.$ac_ext <<_ACEOF
 
20767
/* confdefs.h.  */
 
20768
_ACEOF
 
20769
cat confdefs.h >>conftest.$ac_ext
 
20770
cat >>conftest.$ac_ext <<_ACEOF
 
20771
/* end confdefs.h.  */
 
20772
 
 
20773
/* Override any GCC internal prototype to avoid an error.
 
20774
   Use char because int might match the return type of a GCC
 
20775
   builtin and then its argument prototype would still apply.  */
 
20776
#ifdef __cplusplus
 
20777
extern "C"
 
20778
#endif
 
20779
char dlopen ();
 
20780
int
 
20781
main ()
 
20782
{
 
20783
return dlopen ();
 
20784
  ;
 
20785
  return 0;
 
20786
}
 
20787
_ACEOF
 
20788
rm -f conftest.$ac_objext conftest$ac_exeext
 
20789
if { (ac_try="$ac_link"
 
20790
case "(($ac_try" in
 
20791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20792
  *) ac_try_echo=$ac_try;;
 
20793
esac
 
20794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20795
  (eval "$ac_link") 2>conftest.er1
 
20796
  ac_status=$?
 
20797
  grep -v '^ *+' conftest.er1 >conftest.err
 
20798
  rm -f conftest.er1
 
20799
  cat conftest.err >&5
 
20800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20801
  (exit $ac_status); } && {
 
20802
         test -z "$ac_c_werror_flag" ||
 
20803
         test ! -s conftest.err
 
20804
       } && test -s conftest$ac_exeext &&
 
20805
       $as_test_x conftest$ac_exeext; then
 
20806
  ac_cv_lib_dl_dlopen=yes
 
20807
else
 
20808
  echo "$as_me: failed program was:" >&5
 
20809
sed 's/^/| /' conftest.$ac_ext >&5
 
20810
 
 
20811
        ac_cv_lib_dl_dlopen=no
 
20812
fi
 
20813
 
 
20814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20815
      conftest$ac_exeext conftest.$ac_ext
 
20816
LIBS=$ac_check_lib_save_LIBS
 
20817
fi
 
20818
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20819
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
20820
if test $ac_cv_lib_dl_dlopen = yes; then
 
20821
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20822
else
 
20823
  
 
20824
    lt_cv_dlopen="dyld"
 
20825
    lt_cv_dlopen_libs=
 
20826
    lt_cv_dlopen_self=yes
 
20827
    
 
20828
fi
 
20829
 
 
20830
   ;;
 
20831
    
 
20832
  *)
 
20833
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
20834
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
20835
if test "${ac_cv_func_shl_load+set}" = set; then
 
20836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20837
else
 
20838
  cat >conftest.$ac_ext <<_ACEOF
 
20839
/* confdefs.h.  */
 
20840
_ACEOF
 
20841
cat confdefs.h >>conftest.$ac_ext
 
20842
cat >>conftest.$ac_ext <<_ACEOF
 
20843
/* end confdefs.h.  */
 
20844
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
20845
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20846
#define shl_load innocuous_shl_load
 
20847
 
 
20848
/* System header to define __stub macros and hopefully few prototypes,
 
20849
    which can conflict with char shl_load (); below.
 
20850
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20851
    <limits.h> exists even on freestanding compilers.  */
 
20852
 
 
20853
#ifdef __STDC__
 
20854
# include <limits.h>
 
20855
#else
 
20856
# include <assert.h>
 
20857
#endif
 
20858
 
 
20859
#undef shl_load
 
20860
 
 
20861
/* Override any GCC internal prototype to avoid an error.
 
20862
   Use char because int might match the return type of a GCC
 
20863
   builtin and then its argument prototype would still apply.  */
 
20864
#ifdef __cplusplus
 
20865
extern "C"
 
20866
#endif
 
20867
char shl_load ();
 
20868
/* The GNU C library defines this for functions which it implements
 
20869
    to always fail with ENOSYS.  Some functions are actually named
 
20870
    something starting with __ and the normal name is an alias.  */
 
20871
#if defined __stub_shl_load || defined __stub___shl_load
 
20872
choke me
 
20873
#endif
 
20874
 
 
20875
int
 
20876
main ()
 
20877
{
 
20878
return shl_load ();
 
20879
  ;
 
20880
  return 0;
 
20881
}
 
20882
_ACEOF
 
20883
rm -f conftest.$ac_objext conftest$ac_exeext
 
20884
if { (ac_try="$ac_link"
 
20885
case "(($ac_try" in
 
20886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20887
  *) ac_try_echo=$ac_try;;
 
20888
esac
 
20889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20890
  (eval "$ac_link") 2>conftest.er1
 
20891
  ac_status=$?
 
20892
  grep -v '^ *+' conftest.er1 >conftest.err
 
20893
  rm -f conftest.er1
 
20894
  cat conftest.err >&5
 
20895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20896
  (exit $ac_status); } && {
 
20897
         test -z "$ac_c_werror_flag" ||
 
20898
         test ! -s conftest.err
 
20899
       } && test -s conftest$ac_exeext &&
 
20900
       $as_test_x conftest$ac_exeext; then
 
20901
  ac_cv_func_shl_load=yes
 
20902
else
 
20903
  echo "$as_me: failed program was:" >&5
 
20904
sed 's/^/| /' conftest.$ac_ext >&5
 
20905
 
 
20906
        ac_cv_func_shl_load=no
 
20907
fi
 
20908
 
 
20909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20910
      conftest$ac_exeext conftest.$ac_ext
 
20911
fi
 
20912
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
20913
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
20914
if test $ac_cv_func_shl_load = yes; then
 
20915
  lt_cv_dlopen="shl_load"
 
20916
else
 
20917
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
20918
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
20919
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
20920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20921
else
 
20922
  ac_check_lib_save_LIBS=$LIBS
 
20923
LIBS="-ldld  $LIBS"
 
20924
cat >conftest.$ac_ext <<_ACEOF
 
20925
/* confdefs.h.  */
 
20926
_ACEOF
 
20927
cat confdefs.h >>conftest.$ac_ext
 
20928
cat >>conftest.$ac_ext <<_ACEOF
 
20929
/* end confdefs.h.  */
 
20930
 
 
20931
/* Override any GCC internal prototype to avoid an error.
 
20932
   Use char because int might match the return type of a GCC
 
20933
   builtin and then its argument prototype would still apply.  */
 
20934
#ifdef __cplusplus
 
20935
extern "C"
 
20936
#endif
 
20937
char shl_load ();
 
20938
int
 
20939
main ()
 
20940
{
 
20941
return shl_load ();
 
20942
  ;
 
20943
  return 0;
 
20944
}
 
20945
_ACEOF
 
20946
rm -f conftest.$ac_objext conftest$ac_exeext
 
20947
if { (ac_try="$ac_link"
 
20948
case "(($ac_try" in
 
20949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20950
  *) ac_try_echo=$ac_try;;
 
20951
esac
 
20952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20953
  (eval "$ac_link") 2>conftest.er1
 
20954
  ac_status=$?
 
20955
  grep -v '^ *+' conftest.er1 >conftest.err
 
20956
  rm -f conftest.er1
 
20957
  cat conftest.err >&5
 
20958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20959
  (exit $ac_status); } && {
 
20960
         test -z "$ac_c_werror_flag" ||
 
20961
         test ! -s conftest.err
 
20962
       } && test -s conftest$ac_exeext &&
 
20963
       $as_test_x conftest$ac_exeext; then
 
20964
  ac_cv_lib_dld_shl_load=yes
 
20965
else
 
20966
  echo "$as_me: failed program was:" >&5
 
20967
sed 's/^/| /' conftest.$ac_ext >&5
 
20968
 
 
20969
        ac_cv_lib_dld_shl_load=no
 
20970
fi
 
20971
 
 
20972
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20973
      conftest$ac_exeext conftest.$ac_ext
 
20974
LIBS=$ac_check_lib_save_LIBS
 
20975
fi
 
20976
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
20977
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
20978
if test $ac_cv_lib_dld_shl_load = yes; then
 
20979
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
20980
else
 
20981
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
20982
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
20983
if test "${ac_cv_func_dlopen+set}" = set; then
 
20984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20985
else
 
20986
  cat >conftest.$ac_ext <<_ACEOF
 
20987
/* confdefs.h.  */
 
20988
_ACEOF
 
20989
cat confdefs.h >>conftest.$ac_ext
 
20990
cat >>conftest.$ac_ext <<_ACEOF
 
20991
/* end confdefs.h.  */
 
20992
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
20993
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20994
#define dlopen innocuous_dlopen
 
20995
 
 
20996
/* System header to define __stub macros and hopefully few prototypes,
 
20997
    which can conflict with char dlopen (); below.
 
20998
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20999
    <limits.h> exists even on freestanding compilers.  */
 
21000
 
 
21001
#ifdef __STDC__
 
21002
# include <limits.h>
 
21003
#else
 
21004
# include <assert.h>
 
21005
#endif
 
21006
 
 
21007
#undef dlopen
 
21008
 
 
21009
/* Override any GCC internal prototype to avoid an error.
 
21010
   Use char because int might match the return type of a GCC
 
21011
   builtin and then its argument prototype would still apply.  */
 
21012
#ifdef __cplusplus
 
21013
extern "C"
 
21014
#endif
 
21015
char dlopen ();
 
21016
/* The GNU C library defines this for functions which it implements
 
21017
    to always fail with ENOSYS.  Some functions are actually named
 
21018
    something starting with __ and the normal name is an alias.  */
 
21019
#if defined __stub_dlopen || defined __stub___dlopen
 
21020
choke me
 
21021
#endif
 
21022
 
 
21023
int
 
21024
main ()
 
21025
{
 
21026
return dlopen ();
 
21027
  ;
 
21028
  return 0;
 
21029
}
 
21030
_ACEOF
 
21031
rm -f conftest.$ac_objext conftest$ac_exeext
 
21032
if { (ac_try="$ac_link"
 
21033
case "(($ac_try" in
 
21034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21035
  *) ac_try_echo=$ac_try;;
 
21036
esac
 
21037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21038
  (eval "$ac_link") 2>conftest.er1
 
21039
  ac_status=$?
 
21040
  grep -v '^ *+' conftest.er1 >conftest.err
 
21041
  rm -f conftest.er1
 
21042
  cat conftest.err >&5
 
21043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21044
  (exit $ac_status); } && {
 
21045
         test -z "$ac_c_werror_flag" ||
 
21046
         test ! -s conftest.err
 
21047
       } && test -s conftest$ac_exeext &&
 
21048
       $as_test_x conftest$ac_exeext; then
 
21049
  ac_cv_func_dlopen=yes
 
21050
else
 
21051
  echo "$as_me: failed program was:" >&5
 
21052
sed 's/^/| /' conftest.$ac_ext >&5
 
21053
 
 
21054
        ac_cv_func_dlopen=no
 
21055
fi
 
21056
 
 
21057
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21058
      conftest$ac_exeext conftest.$ac_ext
 
21059
fi
 
21060
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
21061
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
21062
if test $ac_cv_func_dlopen = yes; then
 
21063
  lt_cv_dlopen="dlopen"
 
21064
else
 
21065
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
21066
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
21067
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
21068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21069
else
 
21070
  ac_check_lib_save_LIBS=$LIBS
 
21071
LIBS="-ldl  $LIBS"
 
21072
cat >conftest.$ac_ext <<_ACEOF
 
21073
/* confdefs.h.  */
 
21074
_ACEOF
 
21075
cat confdefs.h >>conftest.$ac_ext
 
21076
cat >>conftest.$ac_ext <<_ACEOF
 
21077
/* end confdefs.h.  */
 
21078
 
 
21079
/* Override any GCC internal prototype to avoid an error.
 
21080
   Use char because int might match the return type of a GCC
 
21081
   builtin and then its argument prototype would still apply.  */
 
21082
#ifdef __cplusplus
 
21083
extern "C"
 
21084
#endif
 
21085
char dlopen ();
 
21086
int
 
21087
main ()
 
21088
{
 
21089
return dlopen ();
 
21090
  ;
 
21091
  return 0;
 
21092
}
 
21093
_ACEOF
 
21094
rm -f conftest.$ac_objext conftest$ac_exeext
 
21095
if { (ac_try="$ac_link"
 
21096
case "(($ac_try" in
 
21097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21098
  *) ac_try_echo=$ac_try;;
 
21099
esac
 
21100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21101
  (eval "$ac_link") 2>conftest.er1
 
21102
  ac_status=$?
 
21103
  grep -v '^ *+' conftest.er1 >conftest.err
 
21104
  rm -f conftest.er1
 
21105
  cat conftest.err >&5
 
21106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21107
  (exit $ac_status); } && {
 
21108
         test -z "$ac_c_werror_flag" ||
 
21109
         test ! -s conftest.err
 
21110
       } && test -s conftest$ac_exeext &&
 
21111
       $as_test_x conftest$ac_exeext; then
 
21112
  ac_cv_lib_dl_dlopen=yes
 
21113
else
 
21114
  echo "$as_me: failed program was:" >&5
 
21115
sed 's/^/| /' conftest.$ac_ext >&5
 
21116
 
 
21117
        ac_cv_lib_dl_dlopen=no
 
21118
fi
 
21119
 
 
21120
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21121
      conftest$ac_exeext conftest.$ac_ext
 
21122
LIBS=$ac_check_lib_save_LIBS
 
21123
fi
 
21124
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
21125
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
21126
if test $ac_cv_lib_dl_dlopen = yes; then
 
21127
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
21128
else
 
21129
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
21130
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
21131
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
21132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21133
else
 
21134
  ac_check_lib_save_LIBS=$LIBS
 
21135
LIBS="-lsvld  $LIBS"
 
21136
cat >conftest.$ac_ext <<_ACEOF
 
21137
/* confdefs.h.  */
 
21138
_ACEOF
 
21139
cat confdefs.h >>conftest.$ac_ext
 
21140
cat >>conftest.$ac_ext <<_ACEOF
 
21141
/* end confdefs.h.  */
 
21142
 
 
21143
/* Override any GCC internal prototype to avoid an error.
 
21144
   Use char because int might match the return type of a GCC
 
21145
   builtin and then its argument prototype would still apply.  */
 
21146
#ifdef __cplusplus
 
21147
extern "C"
 
21148
#endif
 
21149
char dlopen ();
 
21150
int
 
21151
main ()
 
21152
{
 
21153
return dlopen ();
 
21154
  ;
 
21155
  return 0;
 
21156
}
 
21157
_ACEOF
 
21158
rm -f conftest.$ac_objext conftest$ac_exeext
 
21159
if { (ac_try="$ac_link"
 
21160
case "(($ac_try" in
 
21161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21162
  *) ac_try_echo=$ac_try;;
 
21163
esac
 
21164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21165
  (eval "$ac_link") 2>conftest.er1
 
21166
  ac_status=$?
 
21167
  grep -v '^ *+' conftest.er1 >conftest.err
 
21168
  rm -f conftest.er1
 
21169
  cat conftest.err >&5
 
21170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21171
  (exit $ac_status); } && {
 
21172
         test -z "$ac_c_werror_flag" ||
 
21173
         test ! -s conftest.err
 
21174
       } && test -s conftest$ac_exeext &&
 
21175
       $as_test_x conftest$ac_exeext; then
 
21176
  ac_cv_lib_svld_dlopen=yes
 
21177
else
 
21178
  echo "$as_me: failed program was:" >&5
 
21179
sed 's/^/| /' conftest.$ac_ext >&5
 
21180
 
 
21181
        ac_cv_lib_svld_dlopen=no
 
21182
fi
 
21183
 
 
21184
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21185
      conftest$ac_exeext conftest.$ac_ext
 
21186
LIBS=$ac_check_lib_save_LIBS
 
21187
fi
 
21188
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
21189
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
21190
if test $ac_cv_lib_svld_dlopen = yes; then
 
21191
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
21192
else
 
21193
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
21194
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
21195
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
21196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21197
else
 
21198
  ac_check_lib_save_LIBS=$LIBS
 
21199
LIBS="-ldld  $LIBS"
 
21200
cat >conftest.$ac_ext <<_ACEOF
 
21201
/* confdefs.h.  */
 
21202
_ACEOF
 
21203
cat confdefs.h >>conftest.$ac_ext
 
21204
cat >>conftest.$ac_ext <<_ACEOF
 
21205
/* end confdefs.h.  */
 
21206
 
 
21207
/* Override any GCC internal prototype to avoid an error.
 
21208
   Use char because int might match the return type of a GCC
 
21209
   builtin and then its argument prototype would still apply.  */
 
21210
#ifdef __cplusplus
 
21211
extern "C"
 
21212
#endif
 
21213
char dld_link ();
 
21214
int
 
21215
main ()
 
21216
{
 
21217
return dld_link ();
 
21218
  ;
 
21219
  return 0;
 
21220
}
 
21221
_ACEOF
 
21222
rm -f conftest.$ac_objext conftest$ac_exeext
 
21223
if { (ac_try="$ac_link"
 
21224
case "(($ac_try" in
 
21225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21226
  *) ac_try_echo=$ac_try;;
 
21227
esac
 
21228
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21229
  (eval "$ac_link") 2>conftest.er1
 
21230
  ac_status=$?
 
21231
  grep -v '^ *+' conftest.er1 >conftest.err
 
21232
  rm -f conftest.er1
 
21233
  cat conftest.err >&5
 
21234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21235
  (exit $ac_status); } && {
 
21236
         test -z "$ac_c_werror_flag" ||
 
21237
         test ! -s conftest.err
 
21238
       } && test -s conftest$ac_exeext &&
 
21239
       $as_test_x conftest$ac_exeext; then
 
21240
  ac_cv_lib_dld_dld_link=yes
 
21241
else
 
21242
  echo "$as_me: failed program was:" >&5
 
21243
sed 's/^/| /' conftest.$ac_ext >&5
 
21244
 
 
21245
        ac_cv_lib_dld_dld_link=no
 
21246
fi
 
21247
 
 
21248
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21249
      conftest$ac_exeext conftest.$ac_ext
 
21250
LIBS=$ac_check_lib_save_LIBS
 
21251
fi
 
21252
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
21253
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
21254
if test $ac_cv_lib_dld_dld_link = yes; then
 
21255
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
21256
fi
 
21257
 
 
21258
              
 
21259
fi
 
21260
 
 
21261
            
 
21262
fi
 
21263
 
 
21264
          
 
21265
fi
 
21266
 
 
21267
        
 
21268
fi
 
21269
 
 
21270
      
 
21271
fi
 
21272
 
 
21273
    ;;
 
21274
  esac
 
21275
 
 
21276
  if test "x$lt_cv_dlopen" != xno; then
 
21277
    enable_dlopen=yes
 
21278
  else
 
21279
    enable_dlopen=no
 
21280
  fi
 
21281
 
 
21282
  case $lt_cv_dlopen in
 
21283
  dlopen)
 
21284
    save_CPPFLAGS="$CPPFLAGS"
 
21285
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
21286
 
 
21287
    save_LDFLAGS="$LDFLAGS"
 
21288
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
21289
 
 
21290
    save_LIBS="$LIBS"
 
21291
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
21292
 
 
21293
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
21294
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
21295
if test "${lt_cv_dlopen_self+set}" = set; then
 
21296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21297
else
 
21298
          if test "$cross_compiling" = yes; then :
 
21299
  lt_cv_dlopen_self=cross
 
21300
else
 
21301
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
21302
  lt_status=$lt_dlunknown
 
21303
  cat > conftest.$ac_ext <<EOF
 
21304
#line __oline__ "configure"
 
21305
#include "confdefs.h"
 
21306
 
 
21307
#if HAVE_DLFCN_H
 
21308
#include <dlfcn.h>
 
21309
#endif
 
21310
 
 
21311
#include <stdio.h>
 
21312
 
 
21313
#ifdef RTLD_GLOBAL
 
21314
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
21315
#else
 
21316
#  ifdef DL_GLOBAL
 
21317
#    define LT_DLGLOBAL         DL_GLOBAL
 
21318
#  else
 
21319
#    define LT_DLGLOBAL         0
 
21320
#  endif
 
21321
#endif
 
21322
 
 
21323
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
21324
   find out it does not work in some platform. */
 
21325
#ifndef LT_DLLAZY_OR_NOW
 
21326
#  ifdef RTLD_LAZY
 
21327
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
21328
#  else
 
21329
#    ifdef DL_LAZY
 
21330
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
21331
#    else
 
21332
#      ifdef RTLD_NOW
 
21333
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
21334
#      else
 
21335
#        ifdef DL_NOW
 
21336
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
21337
#        else
 
21338
#          define LT_DLLAZY_OR_NOW      0
 
21339
#        endif
 
21340
#      endif
 
21341
#    endif
 
21342
#  endif
 
21343
#endif
 
21344
 
 
21345
#ifdef __cplusplus
 
21346
extern "C" void exit (int);
 
21347
#endif
 
21348
 
 
21349
void fnord() { int i=42;}
 
21350
int main ()
 
21351
{
 
21352
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
21353
  int status = $lt_dlunknown;
 
21354
 
 
21355
  if (self)
 
21356
    {
 
21357
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
21358
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
21359
      /* dlclose (self); */
 
21360
    }
 
21361
 
 
21362
    exit (status);
 
21363
}
 
21364
EOF
 
21365
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21366
  (eval $ac_link) 2>&5
 
21367
  ac_status=$?
 
21368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21369
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
21370
    (./conftest; exit; ) 2>/dev/null
 
21371
    lt_status=$?
 
21372
    case x$lt_status in
 
21373
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
21374
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
21375
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
21376
    esac
 
21377
  else :
 
21378
    # compilation failed
 
21379
    lt_cv_dlopen_self=no
 
21380
  fi
 
21381
fi
 
21382
rm -fr conftest*
 
21383
 
 
21384
    
 
21385
fi
 
21386
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
21387
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
21388
 
 
21389
    if test "x$lt_cv_dlopen_self" = xyes; then
 
21390
      LDFLAGS="$LDFLAGS $link_static_flag"
 
21391
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
21392
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
21393
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
21394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21395
else
 
21396
          if test "$cross_compiling" = yes; then :
 
21397
  lt_cv_dlopen_self_static=cross
 
21398
else
 
21399
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
21400
  lt_status=$lt_dlunknown
 
21401
  cat > conftest.$ac_ext <<EOF
 
21402
#line __oline__ "configure"
 
21403
#include "confdefs.h"
 
21404
 
 
21405
#if HAVE_DLFCN_H
 
21406
#include <dlfcn.h>
 
21407
#endif
 
21408
 
 
21409
#include <stdio.h>
 
21410
 
 
21411
#ifdef RTLD_GLOBAL
 
21412
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
21413
#else
 
21414
#  ifdef DL_GLOBAL
 
21415
#    define LT_DLGLOBAL         DL_GLOBAL
 
21416
#  else
 
21417
#    define LT_DLGLOBAL         0
 
21418
#  endif
 
21419
#endif
 
21420
 
 
21421
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
21422
   find out it does not work in some platform. */
 
21423
#ifndef LT_DLLAZY_OR_NOW
 
21424
#  ifdef RTLD_LAZY
 
21425
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
21426
#  else
 
21427
#    ifdef DL_LAZY
 
21428
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
21429
#    else
 
21430
#      ifdef RTLD_NOW
 
21431
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
21432
#      else
 
21433
#        ifdef DL_NOW
 
21434
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
21435
#        else
 
21436
#          define LT_DLLAZY_OR_NOW      0
 
21437
#        endif
 
21438
#      endif
 
21439
#    endif
 
21440
#  endif
 
21441
#endif
 
21442
 
 
21443
#ifdef __cplusplus
 
21444
extern "C" void exit (int);
 
21445
#endif
 
21446
 
 
21447
void fnord() { int i=42;}
 
21448
int main ()
 
21449
{
 
21450
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
21451
  int status = $lt_dlunknown;
 
21452
 
 
21453
  if (self)
 
21454
    {
 
21455
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
21456
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
21457
      /* dlclose (self); */
 
21458
    }
 
21459
 
 
21460
    exit (status);
 
21461
}
 
21462
EOF
 
21463
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21464
  (eval $ac_link) 2>&5
 
21465
  ac_status=$?
 
21466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21467
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
21468
    (./conftest; exit; ) 2>/dev/null
 
21469
    lt_status=$?
 
21470
    case x$lt_status in
 
21471
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
21472
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
21473
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
21474
    esac
 
21475
  else :
 
21476
    # compilation failed
 
21477
    lt_cv_dlopen_self_static=no
 
21478
  fi
 
21479
fi
 
21480
rm -fr conftest*
 
21481
 
 
21482
      
 
21483
fi
 
21484
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
21485
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
21486
    fi
 
21487
 
 
21488
    CPPFLAGS="$save_CPPFLAGS"
 
21489
    LDFLAGS="$save_LDFLAGS"
 
21490
    LIBS="$save_LIBS"
 
21491
    ;;
 
21492
  esac
 
21493
 
 
21494
  case $lt_cv_dlopen_self in
 
21495
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
21496
  *) enable_dlopen_self=unknown ;;
 
21497
  esac
 
21498
 
 
21499
  case $lt_cv_dlopen_self_static in
 
21500
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
21501
  *) enable_dlopen_self_static=unknown ;;
 
21502
  esac
 
21503
fi
 
21504
 
 
21505
 
 
21506
# The else clause should only fire when bootstrapping the
 
21507
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
21508
# with your package, and you will get complaints that there are
 
21509
# no rules to generate ltmain.sh.
 
21510
if test -f "$ltmain"; then
 
21511
  # See if we are running on zsh, and set the options which allow our commands through
 
21512
  # without removal of \ escapes.
 
21513
  if test -n "${ZSH_VERSION+set}" ; then
 
21514
    setopt NO_GLOB_SUBST
 
21515
  fi  
 
21516
  # Now quote all the things that may contain metacharacters while being
 
21517
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
21518
  # variables and quote the copies for generation of the libtool script.
 
21519
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
21520
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
21521
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
21522
    deplibs_check_method reload_flag reload_cmds need_locks \
 
21523
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
21524
    lt_cv_sys_global_symbol_to_c_name_address \
 
21525
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
21526
    old_postinstall_cmds old_postuninstall_cmds \
 
21527
    compiler_GCJ \
 
21528
    CC_GCJ \
 
21529
    LD_GCJ \
 
21530
    lt_prog_compiler_wl_GCJ \
 
21531
    lt_prog_compiler_pic_GCJ \
 
21532
    lt_prog_compiler_static_GCJ \
 
21533
    lt_prog_compiler_no_builtin_flag_GCJ \
 
21534
    export_dynamic_flag_spec_GCJ \
 
21535
    thread_safe_flag_spec_GCJ \
 
21536
    whole_archive_flag_spec_GCJ \
 
21537
    enable_shared_with_static_runtimes_GCJ \
 
21538
    old_archive_cmds_GCJ \
 
21539
    old_archive_from_new_cmds_GCJ \
 
21540
    predep_objects_GCJ \
 
21541
    postdep_objects_GCJ \
 
21542
    predeps_GCJ \
 
21543
    postdeps_GCJ \
 
21544
    compiler_lib_search_path_GCJ \
 
21545
    archive_cmds_GCJ \
 
21546
    archive_expsym_cmds_GCJ \
 
21547
    postinstall_cmds_GCJ \
 
21548
    postuninstall_cmds_GCJ \
 
21549
    old_archive_from_expsyms_cmds_GCJ \
 
21550
    allow_undefined_flag_GCJ \
 
21551
    no_undefined_flag_GCJ \
 
21552
    export_symbols_cmds_GCJ \
 
21553
    hardcode_libdir_flag_spec_GCJ \
 
21554
    hardcode_libdir_flag_spec_ld_GCJ \
 
21555
    hardcode_libdir_separator_GCJ \
 
21556
    hardcode_automatic_GCJ \
 
21557
    module_cmds_GCJ \
 
21558
    module_expsym_cmds_GCJ \
 
21559
    lt_cv_prog_compiler_c_o_GCJ \
 
21560
    exclude_expsyms_GCJ \
 
21561
    include_expsyms_GCJ; do
 
21562
 
 
21563
    case $var in
 
21564
    old_archive_cmds_GCJ | \
 
21565
    old_archive_from_new_cmds_GCJ | \
 
21566
    archive_cmds_GCJ | \
 
21567
    archive_expsym_cmds_GCJ | \
 
21568
    module_cmds_GCJ | \
 
21569
    module_expsym_cmds_GCJ | \   
 
21570
    old_archive_from_expsyms_cmds_GCJ | \
 
21571
    export_symbols_cmds_GCJ | \
 
21572
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
21573
    postinstall_cmds | postuninstall_cmds | \
 
21574
    old_postinstall_cmds | old_postuninstall_cmds | \
 
21575
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
21576
      # Double-quote double-evaled strings.
 
21577
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
21578
      ;;
 
21579
    *)
 
21580
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
21581
      ;;
 
21582
    esac
 
21583
  done
 
21584
 
 
21585
  case $lt_echo in
 
21586
  *'\$0 --fallback-echo"')
 
21587
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
21588
    ;;
 
21589
  esac
 
21590
 
 
21591
cfgfile="$ofile"
 
21592
 
 
21593
  cat <<__EOF__ >> "$cfgfile"
 
21594
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
21595
 
 
21596
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21597
 
 
21598
# Shell to use when invoking shell scripts.
 
21599
SHELL=$lt_SHELL
 
21600
 
 
21601
# Whether or not to build shared libraries.
 
21602
build_libtool_libs=$enable_shared
 
21603
 
 
21604
# Whether or not to build static libraries.
 
21605
build_old_libs=$enable_static
 
21606
 
 
21607
# Whether or not to add -lc for building shared libraries.
 
21608
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
21609
 
 
21610
# Whether or not to disallow shared libs when runtime libs are static
 
21611
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
21612
 
 
21613
# Whether or not to optimize for fast installation.
 
21614
fast_install=$enable_fast_install
 
21615
 
 
21616
# The host system.
 
21617
host_alias=$host_alias
 
21618
host=$host
 
21619
 
 
21620
# An echo program that does not interpret backslashes.
 
21621
echo=$lt_echo
 
21622
 
 
21623
# The archiver.
 
21624
AR=$lt_AR
 
21625
AR_FLAGS=$lt_AR_FLAGS
 
21626
 
 
21627
# A C compiler.
 
21628
LTCC=$lt_LTCC
 
21629
 
 
21630
# A language-specific compiler.
 
21631
CC=$lt_compiler_GCJ
 
21632
 
 
21633
# Is the compiler the GNU C compiler?
 
21634
with_gcc=$GCC_GCJ
 
21635
 
 
21636
# An ERE matcher.
 
21637
EGREP=$lt_EGREP
 
21638
 
 
21639
# The linker used to build libraries.
 
21640
LD=$lt_LD_GCJ
 
21641
 
 
21642
# Whether we need hard or soft links.
 
21643
LN_S=$lt_LN_S
 
21644
 
 
21645
# A BSD-compatible nm program.
 
21646
NM=$lt_NM
 
21647
 
 
21648
# A symbol stripping program
 
21649
STRIP=$STRIP
 
21650
 
 
21651
# Used to examine libraries when file_magic_cmd begins "file"
 
21652
MAGIC_CMD=$MAGIC_CMD
 
21653
 
 
21654
# Used on cygwin: DLL creation program.
 
21655
DLLTOOL="$DLLTOOL"
 
21656
 
 
21657
# Used on cygwin: object dumper.
 
21658
OBJDUMP="$OBJDUMP"
 
21659
 
 
21660
# Used on cygwin: assembler.
 
21661
AS="$AS"
 
21662
 
 
21663
# The name of the directory that contains temporary libtool files.
 
21664
objdir=$objdir
 
21665
 
 
21666
# How to create reloadable object files.
 
21667
reload_flag=$lt_reload_flag
 
21668
reload_cmds=$lt_reload_cmds
 
21669
 
 
21670
# How to pass a linker flag through the compiler.
 
21671
wl=$lt_lt_prog_compiler_wl_GCJ
 
21672
 
 
21673
# Object file suffix (normally "o").
 
21674
objext="$ac_objext"
 
21675
 
 
21676
# Old archive suffix (normally "a").
 
21677
libext="$libext"
 
21678
 
 
21679
# Shared library suffix (normally ".so").
 
21680
shrext='$shrext'
 
21681
 
 
21682
# Executable file suffix (normally "").
 
21683
exeext="$exeext"
 
21684
 
 
21685
# Additional compiler flags for building library objects.
 
21686
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
21687
pic_mode=$pic_mode
 
21688
 
 
21689
# What is the maximum length of a command?
 
21690
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21691
 
 
21692
# Does compiler simultaneously support -c and -o options?
 
21693
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
21694
 
 
21695
# Must we lock files when doing compilation ?
 
21696
need_locks=$lt_need_locks
 
21697
 
 
21698
# Do we need the lib prefix for modules?
 
21699
need_lib_prefix=$need_lib_prefix
 
21700
 
 
21701
# Do we need a version for libraries?
 
21702
need_version=$need_version
 
21703
 
 
21704
# Whether dlopen is supported.
 
21705
dlopen_support=$enable_dlopen
 
21706
 
 
21707
# Whether dlopen of programs is supported.
 
21708
dlopen_self=$enable_dlopen_self
 
21709
 
 
21710
# Whether dlopen of statically linked programs is supported.
 
21711
dlopen_self_static=$enable_dlopen_self_static
 
21712
 
 
21713
# Compiler flag to prevent dynamic linking.
 
21714
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
21715
 
 
21716
# Compiler flag to turn off builtin functions.
 
21717
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
21718
 
 
21719
# Compiler flag to allow reflexive dlopens.
 
21720
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
21721
 
 
21722
# Compiler flag to generate shared objects directly from archives.
 
21723
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
21724
 
 
21725
# Compiler flag to generate thread-safe objects.
 
21726
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
21727
 
 
21728
# Library versioning type.
 
21729
version_type=$version_type
 
21730
 
 
21731
# Format of library name prefix.
 
21732
libname_spec=$lt_libname_spec
 
21733
 
 
21734
# List of archive names.  First name is the real one, the rest are links.
 
21735
# The last name is the one that the linker finds with -lNAME.
 
21736
library_names_spec=$lt_library_names_spec
 
21737
 
 
21738
# The coded name of the library, if different from the real name.
 
21739
soname_spec=$lt_soname_spec
 
21740
 
 
21741
# Commands used to build and install an old-style archive.
 
21742
RANLIB=$lt_RANLIB
 
21743
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
21744
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21745
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21746
 
 
21747
# Create an old-style archive from a shared archive.
 
21748
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
21749
 
 
21750
# Create a temporary old-style archive to link instead of a shared archive.
 
21751
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
21752
 
 
21753
# Commands used to build and install a shared archive.
 
21754
archive_cmds=$lt_archive_cmds_GCJ
 
21755
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
21756
postinstall_cmds=$lt_postinstall_cmds
 
21757
postuninstall_cmds=$lt_postuninstall_cmds
 
21758
 
 
21759
# Commands used to build a loadable module (assumed same as above if empty)
 
21760
module_cmds=$lt_module_cmds_GCJ
 
21761
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
21762
 
 
21763
# Commands to strip libraries.
 
21764
old_striplib=$lt_old_striplib
 
21765
striplib=$lt_striplib
 
21766
 
 
21767
# Dependencies to place before the objects being linked to create a
 
21768
# shared library.
 
21769
predep_objects=$lt_predep_objects_GCJ
 
21770
 
 
21771
# Dependencies to place after the objects being linked to create a
 
21772
# shared library.
 
21773
postdep_objects=$lt_postdep_objects_GCJ
 
21774
 
 
21775
# Dependencies to place before the objects being linked to create a
 
21776
# shared library.
 
21777
predeps=$lt_predeps_GCJ
 
21778
 
 
21779
# Dependencies to place after the objects being linked to create a
 
21780
# shared library.
 
21781
postdeps=$lt_postdeps_GCJ
 
21782
 
 
21783
# The library search path used internally by the compiler when linking
 
21784
# a shared library.
 
21785
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
21786
 
 
21787
# Method to check whether dependent libraries are shared objects.
 
21788
deplibs_check_method=$lt_deplibs_check_method
 
21789
 
 
21790
# Command to use when deplibs_check_method == file_magic.
 
21791
file_magic_cmd=$lt_file_magic_cmd
 
21792
 
 
21793
# Flag that allows shared libraries with undefined symbols to be built.
 
21794
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
21795
 
 
21796
# Flag that forces no undefined symbols.
 
21797
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
21798
 
 
21799
# Commands used to finish a libtool library installation in a directory.
 
21800
finish_cmds=$lt_finish_cmds
 
21801
 
 
21802
# Same as above, but a single script fragment to be evaled but not shown.
 
21803
finish_eval=$lt_finish_eval
 
21804
 
 
21805
# Take the output of nm and produce a listing of raw symbols and C names.
 
21806
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21807
 
 
21808
# Transform the output of nm in a proper C declaration
 
21809
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21810
 
 
21811
# Transform the output of nm in a C name address pair
 
21812
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21813
 
 
21814
# This is the shared library runtime path variable.
 
21815
runpath_var=$runpath_var
 
21816
 
 
21817
# This is the shared library path variable.
 
21818
shlibpath_var=$shlibpath_var
 
21819
 
 
21820
# Is shlibpath searched before the hard-coded library search path?
 
21821
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21822
 
 
21823
# How to hardcode a shared library path into an executable.
 
21824
hardcode_action=$hardcode_action_GCJ
 
21825
 
 
21826
# Whether we should hardcode library paths into libraries.
 
21827
hardcode_into_libs=$hardcode_into_libs
 
21828
 
 
21829
# Flag to hardcode \$libdir into a binary during linking.
 
21830
# This must work even if \$libdir does not exist.
 
21831
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
21832
 
 
21833
# If ld is used when linking, flag to hardcode \$libdir into
 
21834
# a binary during linking. This must work even if \$libdir does
 
21835
# not exist.
 
21836
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
21837
 
 
21838
# Whether we need a single -rpath flag with a separated argument.
 
21839
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
21840
 
 
21841
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21842
# resulting binary.
 
21843
hardcode_direct=$hardcode_direct_GCJ
 
21844
 
 
21845
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21846
# resulting binary.
 
21847
hardcode_minus_L=$hardcode_minus_L_GCJ
 
21848
 
 
21849
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21850
# the resulting binary.
 
21851
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
21852
 
 
21853
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21854
# and all subsequent libraries and executables linked against it.
 
21855
hardcode_automatic=$hardcode_automatic_GCJ
 
21856
 
 
21857
# Variables whose values should be saved in libtool wrapper scripts and
 
21858
# restored at relink time.
 
21859
variables_saved_for_relink="$variables_saved_for_relink"
 
21860
 
 
21861
# Whether libtool must link a program against all its dependency libraries.
 
21862
link_all_deplibs=$link_all_deplibs_GCJ
 
21863
 
 
21864
# Compile-time system search path for libraries
 
21865
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21866
 
 
21867
# Run-time system search path for libraries
 
21868
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21869
 
 
21870
# Fix the shell variable \$srcfile for the compiler.
 
21871
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
21872
 
 
21873
# Set to yes if exported symbols are required.
 
21874
always_export_symbols=$always_export_symbols_GCJ
 
21875
 
 
21876
# The commands to list exported symbols.
 
21877
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
21878
 
 
21879
# The commands to extract the exported symbol list from a shared archive.
 
21880
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21881
 
 
21882
# Symbols that should not be listed in the preloaded symbols.
 
21883
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
21884
 
 
21885
# Symbols that must always be exported.
 
21886
include_expsyms=$lt_include_expsyms_GCJ
 
21887
 
 
21888
# ### END LIBTOOL TAG CONFIG: $tagname
 
21889
 
 
21890
__EOF__
 
21891
 
 
21892
 
 
21893
else
 
21894
  # If there is no Makefile yet, we rely on a make rule to execute
 
21895
  # `config.status --recheck' to rerun these tests and create the
 
21896
  # libtool script then.
 
21897
  test -f Makefile && make "$ltmain"
 
21898
fi
 
21899
 
 
21900
 
 
21901
ac_ext=c
 
21902
ac_cpp='$CPP $CPPFLAGS'
 
21903
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21904
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21905
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21906
 
 
21907
CC="$lt_save_CC"
 
21908
 
 
21909
        else
 
21910
          tagname=""
 
21911
        fi
 
21912
        ;;
 
21913
 
 
21914
      RC)
 
21915
        
 
21916
 
 
21917
# Source file extension for RC test sources.
 
21918
ac_ext=rc
 
21919
 
 
21920
# Object file extension for compiled RC test sources.
 
21921
objext=o
 
21922
objext_RC=$objext
 
21923
 
 
21924
# Code to be used in simple compile tests
 
21925
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
21926
 
 
21927
# Code to be used in simple link tests
 
21928
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
21929
 
 
21930
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
21931
 
 
21932
# If no C compiler was specified, use CC.
 
21933
LTCC=${LTCC-"$CC"}
 
21934
 
 
21935
# Allow CC to be a program name with arguments.
 
21936
compiler=$CC
 
21937
 
 
21938
 
 
21939
# Allow CC to be a program name with arguments.
 
21940
lt_save_CC="$CC"
 
21941
CC=${RC-"windres"}
 
21942
compiler=$CC
 
21943
compiler_RC=$CC
 
21944
lt_cv_prog_compiler_c_o_RC=yes
 
21945
 
 
21946
# The else clause should only fire when bootstrapping the
 
21947
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
21948
# with your package, and you will get complaints that there are
 
21949
# no rules to generate ltmain.sh.
 
21950
if test -f "$ltmain"; then
 
21951
  # See if we are running on zsh, and set the options which allow our commands through
 
21952
  # without removal of \ escapes.
 
21953
  if test -n "${ZSH_VERSION+set}" ; then
 
21954
    setopt NO_GLOB_SUBST
 
21955
  fi  
 
21956
  # Now quote all the things that may contain metacharacters while being
 
21957
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
21958
  # variables and quote the copies for generation of the libtool script.
 
21959
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
21960
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
21961
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
21962
    deplibs_check_method reload_flag reload_cmds need_locks \
 
21963
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
21964
    lt_cv_sys_global_symbol_to_c_name_address \
 
21965
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
21966
    old_postinstall_cmds old_postuninstall_cmds \
 
21967
    compiler_RC \
 
21968
    CC_RC \
 
21969
    LD_RC \
 
21970
    lt_prog_compiler_wl_RC \
 
21971
    lt_prog_compiler_pic_RC \
 
21972
    lt_prog_compiler_static_RC \
 
21973
    lt_prog_compiler_no_builtin_flag_RC \
 
21974
    export_dynamic_flag_spec_RC \
 
21975
    thread_safe_flag_spec_RC \
 
21976
    whole_archive_flag_spec_RC \
 
21977
    enable_shared_with_static_runtimes_RC \
 
21978
    old_archive_cmds_RC \
 
21979
    old_archive_from_new_cmds_RC \
 
21980
    predep_objects_RC \
 
21981
    postdep_objects_RC \
 
21982
    predeps_RC \
 
21983
    postdeps_RC \
 
21984
    compiler_lib_search_path_RC \
 
21985
    archive_cmds_RC \
 
21986
    archive_expsym_cmds_RC \
 
21987
    postinstall_cmds_RC \
 
21988
    postuninstall_cmds_RC \
 
21989
    old_archive_from_expsyms_cmds_RC \
 
21990
    allow_undefined_flag_RC \
 
21991
    no_undefined_flag_RC \
 
21992
    export_symbols_cmds_RC \
 
21993
    hardcode_libdir_flag_spec_RC \
 
21994
    hardcode_libdir_flag_spec_ld_RC \
 
21995
    hardcode_libdir_separator_RC \
 
21996
    hardcode_automatic_RC \
 
21997
    module_cmds_RC \
 
21998
    module_expsym_cmds_RC \
 
21999
    lt_cv_prog_compiler_c_o_RC \
 
22000
    exclude_expsyms_RC \
 
22001
    include_expsyms_RC; do
 
22002
 
 
22003
    case $var in
 
22004
    old_archive_cmds_RC | \
 
22005
    old_archive_from_new_cmds_RC | \
 
22006
    archive_cmds_RC | \
 
22007
    archive_expsym_cmds_RC | \
 
22008
    module_cmds_RC | \
 
22009
    module_expsym_cmds_RC | \   
 
22010
    old_archive_from_expsyms_cmds_RC | \
 
22011
    export_symbols_cmds_RC | \
 
22012
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
22013
    postinstall_cmds | postuninstall_cmds | \
 
22014
    old_postinstall_cmds | old_postuninstall_cmds | \
 
22015
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
22016
      # Double-quote double-evaled strings.
 
22017
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
22018
      ;;
 
22019
    *)
 
22020
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
22021
      ;;
 
22022
    esac
 
22023
  done
 
22024
 
 
22025
  case $lt_echo in
 
22026
  *'\$0 --fallback-echo"')
 
22027
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
22028
    ;;
 
22029
  esac
 
22030
 
 
22031
cfgfile="$ofile"
 
22032
 
 
22033
  cat <<__EOF__ >> "$cfgfile"
 
22034
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
22035
 
 
22036
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
22037
 
 
22038
# Shell to use when invoking shell scripts.
 
22039
SHELL=$lt_SHELL
 
22040
 
 
22041
# Whether or not to build shared libraries.
 
22042
build_libtool_libs=$enable_shared
 
22043
 
 
22044
# Whether or not to build static libraries.
 
22045
build_old_libs=$enable_static
 
22046
 
 
22047
# Whether or not to add -lc for building shared libraries.
 
22048
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
22049
 
 
22050
# Whether or not to disallow shared libs when runtime libs are static
 
22051
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
22052
 
 
22053
# Whether or not to optimize for fast installation.
 
22054
fast_install=$enable_fast_install
 
22055
 
 
22056
# The host system.
 
22057
host_alias=$host_alias
 
22058
host=$host
 
22059
 
 
22060
# An echo program that does not interpret backslashes.
 
22061
echo=$lt_echo
 
22062
 
 
22063
# The archiver.
 
22064
AR=$lt_AR
 
22065
AR_FLAGS=$lt_AR_FLAGS
 
22066
 
 
22067
# A C compiler.
 
22068
LTCC=$lt_LTCC
 
22069
 
 
22070
# A language-specific compiler.
 
22071
CC=$lt_compiler_RC
 
22072
 
 
22073
# Is the compiler the GNU C compiler?
 
22074
with_gcc=$GCC_RC
 
22075
 
 
22076
# An ERE matcher.
 
22077
EGREP=$lt_EGREP
 
22078
 
 
22079
# The linker used to build libraries.
 
22080
LD=$lt_LD_RC
 
22081
 
 
22082
# Whether we need hard or soft links.
 
22083
LN_S=$lt_LN_S
 
22084
 
 
22085
# A BSD-compatible nm program.
 
22086
NM=$lt_NM
 
22087
 
 
22088
# A symbol stripping program
 
22089
STRIP=$STRIP
 
22090
 
 
22091
# Used to examine libraries when file_magic_cmd begins "file"
 
22092
MAGIC_CMD=$MAGIC_CMD
 
22093
 
 
22094
# Used on cygwin: DLL creation program.
 
22095
DLLTOOL="$DLLTOOL"
 
22096
 
 
22097
# Used on cygwin: object dumper.
 
22098
OBJDUMP="$OBJDUMP"
 
22099
 
 
22100
# Used on cygwin: assembler.
 
22101
AS="$AS"
 
22102
 
 
22103
# The name of the directory that contains temporary libtool files.
 
22104
objdir=$objdir
 
22105
 
 
22106
# How to create reloadable object files.
 
22107
reload_flag=$lt_reload_flag
 
22108
reload_cmds=$lt_reload_cmds
 
22109
 
 
22110
# How to pass a linker flag through the compiler.
 
22111
wl=$lt_lt_prog_compiler_wl_RC
 
22112
 
 
22113
# Object file suffix (normally "o").
 
22114
objext="$ac_objext"
 
22115
 
 
22116
# Old archive suffix (normally "a").
 
22117
libext="$libext"
 
22118
 
 
22119
# Shared library suffix (normally ".so").
 
22120
shrext='$shrext'
 
22121
 
 
22122
# Executable file suffix (normally "").
 
22123
exeext="$exeext"
 
22124
 
 
22125
# Additional compiler flags for building library objects.
 
22126
pic_flag=$lt_lt_prog_compiler_pic_RC
 
22127
pic_mode=$pic_mode
 
22128
 
 
22129
# What is the maximum length of a command?
 
22130
max_cmd_len=$lt_cv_sys_max_cmd_len
 
22131
 
 
22132
# Does compiler simultaneously support -c and -o options?
 
22133
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
22134
 
 
22135
# Must we lock files when doing compilation ?
 
22136
need_locks=$lt_need_locks
 
22137
 
 
22138
# Do we need the lib prefix for modules?
 
22139
need_lib_prefix=$need_lib_prefix
 
22140
 
 
22141
# Do we need a version for libraries?
 
22142
need_version=$need_version
 
22143
 
 
22144
# Whether dlopen is supported.
 
22145
dlopen_support=$enable_dlopen
 
22146
 
 
22147
# Whether dlopen of programs is supported.
 
22148
dlopen_self=$enable_dlopen_self
 
22149
 
 
22150
# Whether dlopen of statically linked programs is supported.
 
22151
dlopen_self_static=$enable_dlopen_self_static
 
22152
 
 
22153
# Compiler flag to prevent dynamic linking.
 
22154
link_static_flag=$lt_lt_prog_compiler_static_RC
 
22155
 
 
22156
# Compiler flag to turn off builtin functions.
 
22157
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
22158
 
 
22159
# Compiler flag to allow reflexive dlopens.
 
22160
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
22161
 
 
22162
# Compiler flag to generate shared objects directly from archives.
 
22163
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
22164
 
 
22165
# Compiler flag to generate thread-safe objects.
 
22166
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
22167
 
 
22168
# Library versioning type.
 
22169
version_type=$version_type
 
22170
 
 
22171
# Format of library name prefix.
 
22172
libname_spec=$lt_libname_spec
 
22173
 
 
22174
# List of archive names.  First name is the real one, the rest are links.
 
22175
# The last name is the one that the linker finds with -lNAME.
 
22176
library_names_spec=$lt_library_names_spec
 
22177
 
 
22178
# The coded name of the library, if different from the real name.
 
22179
soname_spec=$lt_soname_spec
 
22180
 
 
22181
# Commands used to build and install an old-style archive.
 
22182
RANLIB=$lt_RANLIB
 
22183
old_archive_cmds=$lt_old_archive_cmds_RC
 
22184
old_postinstall_cmds=$lt_old_postinstall_cmds
 
22185
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
22186
 
 
22187
# Create an old-style archive from a shared archive.
 
22188
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
22189
 
 
22190
# Create a temporary old-style archive to link instead of a shared archive.
 
22191
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
22192
 
 
22193
# Commands used to build and install a shared archive.
 
22194
archive_cmds=$lt_archive_cmds_RC
 
22195
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
22196
postinstall_cmds=$lt_postinstall_cmds
 
22197
postuninstall_cmds=$lt_postuninstall_cmds
 
22198
 
 
22199
# Commands used to build a loadable module (assumed same as above if empty)
 
22200
module_cmds=$lt_module_cmds_RC
 
22201
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
22202
 
 
22203
# Commands to strip libraries.
 
22204
old_striplib=$lt_old_striplib
 
22205
striplib=$lt_striplib
 
22206
 
 
22207
# Dependencies to place before the objects being linked to create a
 
22208
# shared library.
 
22209
predep_objects=$lt_predep_objects_RC
 
22210
 
 
22211
# Dependencies to place after the objects being linked to create a
 
22212
# shared library.
 
22213
postdep_objects=$lt_postdep_objects_RC
 
22214
 
 
22215
# Dependencies to place before the objects being linked to create a
 
22216
# shared library.
 
22217
predeps=$lt_predeps_RC
 
22218
 
 
22219
# Dependencies to place after the objects being linked to create a
 
22220
# shared library.
 
22221
postdeps=$lt_postdeps_RC
 
22222
 
 
22223
# The library search path used internally by the compiler when linking
 
22224
# a shared library.
 
22225
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
22226
 
 
22227
# Method to check whether dependent libraries are shared objects.
 
22228
deplibs_check_method=$lt_deplibs_check_method
 
22229
 
 
22230
# Command to use when deplibs_check_method == file_magic.
 
22231
file_magic_cmd=$lt_file_magic_cmd
 
22232
 
 
22233
# Flag that allows shared libraries with undefined symbols to be built.
 
22234
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
22235
 
 
22236
# Flag that forces no undefined symbols.
 
22237
no_undefined_flag=$lt_no_undefined_flag_RC
 
22238
 
 
22239
# Commands used to finish a libtool library installation in a directory.
 
22240
finish_cmds=$lt_finish_cmds
 
22241
 
 
22242
# Same as above, but a single script fragment to be evaled but not shown.
 
22243
finish_eval=$lt_finish_eval
 
22244
 
 
22245
# Take the output of nm and produce a listing of raw symbols and C names.
 
22246
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
22247
 
 
22248
# Transform the output of nm in a proper C declaration
 
22249
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
22250
 
 
22251
# Transform the output of nm in a C name address pair
 
22252
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
22253
 
 
22254
# This is the shared library runtime path variable.
 
22255
runpath_var=$runpath_var
 
22256
 
 
22257
# This is the shared library path variable.
 
22258
shlibpath_var=$shlibpath_var
 
22259
 
 
22260
# Is shlibpath searched before the hard-coded library search path?
 
22261
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
22262
 
 
22263
# How to hardcode a shared library path into an executable.
 
22264
hardcode_action=$hardcode_action_RC
 
22265
 
 
22266
# Whether we should hardcode library paths into libraries.
 
22267
hardcode_into_libs=$hardcode_into_libs
 
22268
 
 
22269
# Flag to hardcode \$libdir into a binary during linking.
 
22270
# This must work even if \$libdir does not exist.
 
22271
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
22272
 
 
22273
# If ld is used when linking, flag to hardcode \$libdir into
 
22274
# a binary during linking. This must work even if \$libdir does
 
22275
# not exist.
 
22276
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
22277
 
 
22278
# Whether we need a single -rpath flag with a separated argument.
 
22279
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
22280
 
 
22281
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
22282
# resulting binary.
 
22283
hardcode_direct=$hardcode_direct_RC
 
22284
 
 
22285
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
22286
# resulting binary.
 
22287
hardcode_minus_L=$hardcode_minus_L_RC
 
22288
 
 
22289
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
22290
# the resulting binary.
 
22291
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
22292
 
 
22293
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
22294
# and all subsequent libraries and executables linked against it.
 
22295
hardcode_automatic=$hardcode_automatic_RC
 
22296
 
 
22297
# Variables whose values should be saved in libtool wrapper scripts and
 
22298
# restored at relink time.
 
22299
variables_saved_for_relink="$variables_saved_for_relink"
 
22300
 
 
22301
# Whether libtool must link a program against all its dependency libraries.
 
22302
link_all_deplibs=$link_all_deplibs_RC
 
22303
 
 
22304
# Compile-time system search path for libraries
 
22305
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
22306
 
 
22307
# Run-time system search path for libraries
 
22308
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
22309
 
 
22310
# Fix the shell variable \$srcfile for the compiler.
 
22311
fix_srcfile_path="$fix_srcfile_path_RC"
 
22312
 
 
22313
# Set to yes if exported symbols are required.
 
22314
always_export_symbols=$always_export_symbols_RC
 
22315
 
 
22316
# The commands to list exported symbols.
 
22317
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
22318
 
 
22319
# The commands to extract the exported symbol list from a shared archive.
 
22320
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
22321
 
 
22322
# Symbols that should not be listed in the preloaded symbols.
 
22323
exclude_expsyms=$lt_exclude_expsyms_RC
 
22324
 
 
22325
# Symbols that must always be exported.
 
22326
include_expsyms=$lt_include_expsyms_RC
 
22327
 
 
22328
# ### END LIBTOOL TAG CONFIG: $tagname
 
22329
 
 
22330
__EOF__
 
22331
 
 
22332
 
 
22333
else
 
22334
  # If there is no Makefile yet, we rely on a make rule to execute
 
22335
  # `config.status --recheck' to rerun these tests and create the
 
22336
  # libtool script then.
 
22337
  test -f Makefile && make "$ltmain"
 
22338
fi
 
22339
 
 
22340
 
 
22341
ac_ext=c
 
22342
ac_cpp='$CPP $CPPFLAGS'
 
22343
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22344
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22345
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22346
 
 
22347
CC="$lt_save_CC"
 
22348
 
 
22349
        ;;
 
22350
 
 
22351
      *)
 
22352
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
22353
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
22354
   { (exit 1); exit 1; }; }
 
22355
        ;;
 
22356
      esac
 
22357
 
 
22358
      # Append the new tag name to the list of available tags.
 
22359
      if test -n "$tagname" ; then
 
22360
      available_tags="$available_tags $tagname"
 
22361
    fi
 
22362
    fi
 
22363
  done
 
22364
  IFS="$lt_save_ifs"
 
22365
 
 
22366
  # Now substitute the updated list of available tags.
 
22367
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
22368
    mv "${ofile}T" "$ofile"
 
22369
    chmod +x "$ofile"
 
22370
  else
 
22371
    rm -f "${ofile}T"
 
22372
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
22373
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
22374
   { (exit 1); exit 1; }; }
 
22375
  fi
 
22376
fi
 
22377
 
 
22378
 
 
22379
 
 
22380
# This can be used to rebuild libtool when needed
 
22381
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
22382
 
 
22383
# Always use our own libtool.
 
22384
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
 
22385
 
 
22386
# Prevent multiple expansion
 
22387
 
 
22388
 
 
22389
 
 
22390
 
 
22391
 
 
22392
 
 
22393
 
 
22394
 
 
22395
 
 
22396
 
 
22397
 
 
22398
 
 
22399
 
 
22400
 
 
22401
 
 
22402
 
 
22403
 
 
22404
 
 
22405
 
 
22406
 
 
22407
 
 
22408
 
 
22409
  
 
22410
 
 
22411
  
 
22412
 
 
22413
 
 
22414
  
 
22415
       
 
22416
       
 
22417
 
 
22418
 
 
22419
 
 
22420
 
 
22421
LIBTOOL_SHELL="/bin/sh ./libtool"
 
22422
#  LIBTOOL="$LIBTOOL --silent"
 
22423
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
 
22424
 
 
22425
 
 
22426
# we patch configure quite some so we better keep that consistent for incremental runs 
 
22427
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
 
22428
 
 
22429
 
 
22430
 
 
22431
 
 
22432
    
 
22433
    # Extract the first word of "msgfmt", so it can be a program name with args.
 
22434
set dummy msgfmt; ac_word=$2
 
22435
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22436
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22437
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
22438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22439
else
 
22440
  case "$MSGFMT" in
 
22441
  /*)
 
22442
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
22443
  ;;
 
22444
  *)
 
22445
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
22446
  for ac_dir in $PATH; do
 
22447
    test -z "$ac_dir" && ac_dir=.
 
22448
    if test -f $ac_dir/$ac_word; then
 
22449
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
 
22450
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
22451
        break
 
22452
      fi
 
22453
    fi
 
22454
  done
 
22455
  IFS="$ac_save_ifs"
 
22456
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
22457
  ;;
 
22458
esac
 
22459
fi
 
22460
MSGFMT="$ac_cv_path_MSGFMT"
 
22461
if test -n "$MSGFMT"; then
 
22462
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
22463
echo "${ECHO_T}$MSGFMT" >&6; }
 
22464
else
 
22465
  { echo "$as_me:$LINENO: result: no" >&5
 
22466
echo "${ECHO_T}no" >&6; }
 
22467
fi
 
22468
 
 
22469
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
22470
set dummy gmsgfmt; ac_word=$2
 
22471
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22473
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
22474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22475
else
 
22476
  case $GMSGFMT in
 
22477
  [\\/]* | ?:[\\/]*)
 
22478
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
22479
  ;;
 
22480
  *)
 
22481
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22482
for as_dir in $PATH
 
22483
do
 
22484
  IFS=$as_save_IFS
 
22485
  test -z "$as_dir" && as_dir=.
 
22486
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22487
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22488
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
22489
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22490
    break 2
 
22491
  fi
 
22492
done
 
22493
done
 
22494
IFS=$as_save_IFS
 
22495
 
 
22496
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
22497
  ;;
 
22498
esac
 
22499
fi
 
22500
GMSGFMT=$ac_cv_path_GMSGFMT
 
22501
if test -n "$GMSGFMT"; then
 
22502
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
22503
echo "${ECHO_T}$GMSGFMT" >&6; }
 
22504
else
 
22505
  { echo "$as_me:$LINENO: result: no" >&5
 
22506
echo "${ECHO_T}no" >&6; }
 
22507
fi
 
22508
 
 
22509
 
 
22510
 
 
22511
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
 
22512
        { echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
 
22513
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6; }
 
22514
        GMSGFMT=":"
 
22515
      fi
 
22516
      MSGFMT=$GMSGFMT
 
22517
      
 
22518
      
 
22519
 
 
22520
      # Extract the first word of "xgettext", so it can be a program name with args.
 
22521
set dummy xgettext; ac_word=$2
 
22522
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22524
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
22525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22526
else
 
22527
  case "$XGETTEXT" in
 
22528
  /*)
 
22529
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
22530
  ;;
 
22531
  *)
 
22532
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
22533
  for ac_dir in $PATH; do
 
22534
    test -z "$ac_dir" && ac_dir=.
 
22535
    if test -f $ac_dir/$ac_word; then
 
22536
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
22537
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
22538
        break
 
22539
      fi
 
22540
    fi
 
22541
  done
 
22542
  IFS="$ac_save_ifs"
 
22543
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
22544
  ;;
 
22545
esac
 
22546
fi
 
22547
XGETTEXT="$ac_cv_path_XGETTEXT"
 
22548
if test -n "$XGETTEXT"; then
 
22549
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
22550
echo "${ECHO_T}$XGETTEXT" >&6; }
 
22551
else
 
22552
  { echo "$as_me:$LINENO: result: no" >&5
 
22553
echo "${ECHO_T}no" >&6; }
 
22554
fi
 
22555
 
 
22556
 
 
22557
            if test "$XGETTEXT" != ":"; then
 
22558
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
22559
          : ;
 
22560
        else
 
22561
          { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
 
22562
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
 
22563
          XGETTEXT=":"
 
22564
        fi
 
22565
      fi
 
22566
     
 
22567
 
 
22568
  
 
22569
 
 
22570
 
 
22571
if test -z "3.2.0"; then
 
22572
  # Current default Qt version: 3.3
 
22573
  kde_qtver=3
 
22574
  kde_qtsubver=3
 
22575
else
 
22576
  kde_qtsubver=`echo "3.2.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
 
22577
  # following is the check if subversion isnt found in passed argument
 
22578
  if test "$kde_qtsubver" = "3.2.0"; then
 
22579
    kde_qtsubver=1
 
22580
  fi
 
22581
  kde_qtver=`echo "3.2.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
 
22582
  if test "$kde_qtver" = "1"; then
 
22583
    kde_qtsubver=42
 
22584
  fi
 
22585
fi
 
22586
 
 
22587
if test -z ""; then
 
22588
  if test "$kde_qtver" = "2"; then
 
22589
    if test $kde_qtsubver -gt 0; then
 
22590
      kde_qt_minversion=">= Qt 2.2.2"
 
22591
    else
 
22592
      kde_qt_minversion=">= Qt 2.0.2"
 
22593
    fi
 
22594
  fi
 
22595
  if test "$kde_qtver" = "3"; then
 
22596
    if test $kde_qtsubver -gt 0; then
 
22597
         if test $kde_qtsubver -gt 1; then
 
22598
            if test $kde_qtsubver -gt 2; then
 
22599
                kde_qt_minversion=">= Qt 3.3 and < 4.0"
 
22600
            else
 
22601
                kde_qt_minversion=">= Qt 3.2 and < 4.0"
 
22602
            fi
 
22603
         else
 
22604
            kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
 
22605
         fi
 
22606
    else
 
22607
      kde_qt_minversion=">= Qt 3.0 and < 4.0"
 
22608
    fi
 
22609
  fi
 
22610
  if test "$kde_qtver" = "1"; then
 
22611
    kde_qt_minversion=">= 1.42 and < 2.0"
 
22612
  fi
 
22613
else
 
22614
   kde_qt_minversion=""
 
22615
fi
 
22616
 
 
22617
if test -z ""; then
 
22618
   if test $kde_qtver = 3; then
 
22619
     if test $kde_qtsubver -gt 0; then
 
22620
       kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
 
22621
       qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
 
22622
       kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
 
22623
     else
 
22624
       kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
 
22625
     fi
 
22626
   fi
 
22627
   if test $kde_qtver = 2; then
 
22628
     if test $kde_qtsubver -gt 0; then
 
22629
       kde_qt_verstring="QT_VERSION >= 222"
 
22630
     else
 
22631
       kde_qt_verstring="QT_VERSION >= 200"
 
22632
     fi
 
22633
   fi
 
22634
   if test $kde_qtver = 1; then
 
22635
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
 
22636
   fi
 
22637
else
 
22638
   kde_qt_verstring=""
 
22639
fi
 
22640
 
 
22641
if test $kde_qtver = 4; then
 
22642
  kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
 
22643
fi
 
22644
if test $kde_qtver = 3; then
 
22645
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
 
22646
fi
 
22647
if test $kde_qtver = 2; then
 
22648
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
 
22649
fi
 
22650
if test $kde_qtver = 1; then
 
22651
   kde_qt_dirs="$QTDIR /usr/lib/qt"
 
22652
fi
 
22653
 
 
22654
 
 
22655
    
 
22656
     ac_ext=cpp
 
22657
ac_cpp='$CXXCPP $CPPFLAGS'
 
22658
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22659
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22660
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22661
 
 
22662
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22663
 
 
22664
 
 
22665
    ac_save_CXXFLAGS="$CXXFLAGS"
 
22666
    CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
 
22667
 
 
22668
    { echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
 
22669
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6; }
 
22670
    if test "${kde_cv_stl_works+set}" = set; then
 
22671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22672
else
 
22673
  
 
22674
      cat >conftest.$ac_ext <<_ACEOF
 
22675
/* confdefs.h.  */
 
22676
_ACEOF
 
22677
cat confdefs.h >>conftest.$ac_ext
 
22678
cat >>conftest.$ac_ext <<_ACEOF
 
22679
/* end confdefs.h.  */
 
22680
 
 
22681
#include <string>
 
22682
using namespace std;
 
22683
 
 
22684
int
 
22685
main ()
 
22686
{
 
22687
 
 
22688
  string astring="Hallo Welt.";
 
22689
  astring.erase(0, 6); // now astring is "Welt"
 
22690
  return 0;
 
22691
 
 
22692
  ;
 
22693
  return 0;
 
22694
}
 
22695
_ACEOF
 
22696
rm -f conftest.$ac_objext
 
22697
if { (ac_try="$ac_compile"
 
22698
case "(($ac_try" in
 
22699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22700
  *) ac_try_echo=$ac_try;;
 
22701
esac
 
22702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22703
  (eval "$ac_compile") 2>conftest.er1
 
22704
  ac_status=$?
 
22705
  grep -v '^ *+' conftest.er1 >conftest.err
 
22706
  rm -f conftest.er1
 
22707
  cat conftest.err >&5
 
22708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22709
  (exit $ac_status); } && {
 
22710
         test -z "$ac_cxx_werror_flag" ||
 
22711
         test ! -s conftest.err
 
22712
       } && test -s conftest.$ac_objext; then
 
22713
  kde_cv_stl_works=yes
 
22714
else
 
22715
  echo "$as_me: failed program was:" >&5
 
22716
sed 's/^/| /' conftest.$ac_ext >&5
 
22717
 
 
22718
        kde_cv_stl_works=no
 
22719
fi
 
22720
 
 
22721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22722
 
 
22723
fi
 
22724
 
 
22725
 
 
22726
   { echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
 
22727
echo "${ECHO_T}$kde_cv_stl_works" >&6; }
 
22728
 
 
22729
   if test "$kde_cv_stl_works" = "yes"; then
 
22730
     # back compatible
 
22731
         
 
22732
cat >>confdefs.h <<_ACEOF
 
22733
@%:@define HAVE_SGI_STL 1
 
22734
_ACEOF
 
22735
 
 
22736
   else
 
22737
         { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
 
22738
Check config.log for details - if you're using a Linux distribution you might miss
 
22739
a package named similar to libstdc++-dev." >&5
 
22740
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
 
22741
Check config.log for details - if you're using a Linux distribution you might miss
 
22742
a package named similar to libstdc++-dev." >&2;}
 
22743
   { (exit 1); exit 1; }; }
 
22744
   fi
 
22745
 
 
22746
   CXXFLAGS="$ac_save_CXXFLAGS"
 
22747
   ac_ext=c
 
22748
ac_cpp='$CPP $CPPFLAGS'
 
22749
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22750
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22751
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22752
 
 
22753
 
 
22754
 
 
22755
        
 
22756
{ echo "$as_me:$LINENO: checking for strlcat" >&5
 
22757
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
 
22758
if test "${kde_cv_func_strlcat+set}" = set; then
 
22759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22760
else
 
22761
  
 
22762
 
 
22763
 ac_ext=cpp
 
22764
ac_cpp='$CXXCPP $CPPFLAGS'
 
22765
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22766
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22767
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22768
 
 
22769
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22770
 
 
22771
 
 
22772
save_CXXFLAGS="$CXXFLAGS"
 
22773
kde_safe_LIBS="$LIBS"
 
22774
LIBS="$LIBS $X_EXTRA_LIBS"
 
22775
if test "$GXX" = "yes"; then
 
22776
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
22777
fi
 
22778
cat >conftest.$ac_ext <<_ACEOF
 
22779
/* confdefs.h.  */
 
22780
_ACEOF
 
22781
cat confdefs.h >>conftest.$ac_ext
 
22782
cat >>conftest.$ac_ext <<_ACEOF
 
22783
/* end confdefs.h.  */
 
22784
 
 
22785
 
 
22786
#include <string.h>
 
22787
 
 
22788
 
 
22789
int
 
22790
main ()
 
22791
{
 
22792
 
 
22793
 char buf[20];
 
22794
  buf[0]='\0';
 
22795
  strlcat(buf, "KDE function test", sizeof(buf));
 
22796
 
 
22797
 
 
22798
  ;
 
22799
  return 0;
 
22800
}
 
22801
_ACEOF
 
22802
rm -f conftest.$ac_objext
 
22803
if { (ac_try="$ac_compile"
 
22804
case "(($ac_try" in
 
22805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22806
  *) ac_try_echo=$ac_try;;
 
22807
esac
 
22808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22809
  (eval "$ac_compile") 2>conftest.er1
 
22810
  ac_status=$?
 
22811
  grep -v '^ *+' conftest.er1 >conftest.err
 
22812
  rm -f conftest.er1
 
22813
  cat conftest.err >&5
 
22814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22815
  (exit $ac_status); } && {
 
22816
         test -z "$ac_cxx_werror_flag" ||
 
22817
         test ! -s conftest.err
 
22818
       } && test -s conftest.$ac_objext; then
 
22819
  kde_cv_func_strlcat=yes
 
22820
else
 
22821
  echo "$as_me: failed program was:" >&5
 
22822
sed 's/^/| /' conftest.$ac_ext >&5
 
22823
 
 
22824
        kde_cv_func_strlcat=no
 
22825
fi
 
22826
 
 
22827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22828
CXXFLAGS="$save_CXXFLAGS"
 
22829
LIBS="$kde_safe_LIBS"
 
22830
ac_ext=c
 
22831
ac_cpp='$CPP $CPPFLAGS'
 
22832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22835
 
 
22836
 
 
22837
fi
 
22838
 
 
22839
 
 
22840
{ echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
 
22841
echo "${ECHO_T}$kde_cv_func_strlcat" >&6; }
 
22842
 
 
22843
{ echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
 
22844
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6; }
 
22845
if test "${kde_cv_proto_strlcat+set}" = set; then
 
22846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22847
else
 
22848
  
 
22849
if test "x$kde_cv_func_strlcat" = xyes; then
 
22850
  kde_cv_proto_strlcat=no
 
22851
else
 
22852
  case "strlcat" in
 
22853
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
22854
                kde_cv_proto_strlcat="yes - in libkdefakes"
 
22855
                ;;
 
22856
        *)
 
22857
                kde_cv_proto_strlcat=unknown
 
22858
                ;;
 
22859
  esac
 
22860
fi
 
22861
 
 
22862
if test "x$kde_cv_proto_strlcat" = xunknown; then
 
22863
 
 
22864
 
 
22865
 ac_ext=cpp
 
22866
ac_cpp='$CXXCPP $CPPFLAGS'
 
22867
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22868
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22869
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22870
 
 
22871
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22872
 
 
22873
 
 
22874
  kde_safe_libs=$LIBS
 
22875
  LIBS="$LIBS $X_EXTRA_LIBS"
 
22876
  cat >conftest.$ac_ext <<_ACEOF
 
22877
/* confdefs.h.  */
 
22878
_ACEOF
 
22879
cat confdefs.h >>conftest.$ac_ext
 
22880
cat >>conftest.$ac_ext <<_ACEOF
 
22881
/* end confdefs.h.  */
 
22882
 
 
22883
 
 
22884
#include <string.h>
 
22885
 
 
22886
 
 
22887
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
 
22888
 
 
22889
int
 
22890
main ()
 
22891
{
 
22892
 
 
22893
 char buf[20];
 
22894
  buf[0]='\0';
 
22895
  strlcat(buf, "KDE function test", sizeof(buf));
 
22896
 
 
22897
 
 
22898
  ;
 
22899
  return 0;
 
22900
}
 
22901
_ACEOF
 
22902
rm -f conftest.$ac_objext conftest$ac_exeext
 
22903
if { (ac_try="$ac_link"
 
22904
case "(($ac_try" in
 
22905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22906
  *) ac_try_echo=$ac_try;;
 
22907
esac
 
22908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22909
  (eval "$ac_link") 2>conftest.er1
 
22910
  ac_status=$?
 
22911
  grep -v '^ *+' conftest.er1 >conftest.err
 
22912
  rm -f conftest.er1
 
22913
  cat conftest.err >&5
 
22914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22915
  (exit $ac_status); } && {
 
22916
         test -z "$ac_cxx_werror_flag" ||
 
22917
         test ! -s conftest.err
 
22918
       } && test -s conftest$ac_exeext &&
 
22919
       $as_test_x conftest$ac_exeext; then
 
22920
   kde_cv_func_strlcat=yes
 
22921
  kde_cv_proto_strlcat=yes 
 
22922
else
 
22923
  echo "$as_me: failed program was:" >&5
 
22924
sed 's/^/| /' conftest.$ac_ext >&5
 
22925
 
 
22926
        kde_cv_proto_strlcat="strlcat unavailable"
 
22927
 
 
22928
fi
 
22929
 
 
22930
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22931
      conftest$ac_exeext conftest.$ac_ext
 
22932
LIBS=$kde_safe_libs
 
22933
ac_ext=c
 
22934
ac_cpp='$CPP $CPPFLAGS'
 
22935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22938
 
 
22939
fi
 
22940
 
 
22941
fi
 
22942
 
 
22943
{ echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
 
22944
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6; }
 
22945
 
 
22946
if test "x$kde_cv_func_strlcat" = xyes; then
 
22947
  
 
22948
cat >>confdefs.h <<\_ACEOF
 
22949
@%:@define HAVE_STRLCAT 1
 
22950
_ACEOF
 
22951
 
 
22952
  
 
22953
fi
 
22954
if test "x$kde_cv_proto_strlcat" = xno; then
 
22955
  
 
22956
cat >>confdefs.h <<\_ACEOF
 
22957
@%:@define HAVE_STRLCAT_PROTO 1
 
22958
_ACEOF
 
22959
 
 
22960
fi
 
22961
 
 
22962
 
 
22963
 
 
22964
 
 
22965
 
 
22966
 
 
22967
        
 
22968
{ echo "$as_me:$LINENO: checking for strlcpy" >&5
 
22969
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
 
22970
if test "${kde_cv_func_strlcpy+set}" = set; then
 
22971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22972
else
 
22973
  
 
22974
 
 
22975
 ac_ext=cpp
 
22976
ac_cpp='$CXXCPP $CPPFLAGS'
 
22977
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22978
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22979
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22980
 
 
22981
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
22982
 
 
22983
 
 
22984
save_CXXFLAGS="$CXXFLAGS"
 
22985
kde_safe_LIBS="$LIBS"
 
22986
LIBS="$LIBS $X_EXTRA_LIBS"
 
22987
if test "$GXX" = "yes"; then
 
22988
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
22989
fi
 
22990
cat >conftest.$ac_ext <<_ACEOF
 
22991
/* confdefs.h.  */
 
22992
_ACEOF
 
22993
cat confdefs.h >>conftest.$ac_ext
 
22994
cat >>conftest.$ac_ext <<_ACEOF
 
22995
/* end confdefs.h.  */
 
22996
 
 
22997
 
 
22998
#include <string.h>
 
22999
 
 
23000
 
 
23001
int
 
23002
main ()
 
23003
{
 
23004
 
 
23005
 char buf[20];
 
23006
  strlcpy(buf, "KDE function test", sizeof(buf));
 
23007
 
 
23008
 
 
23009
  ;
 
23010
  return 0;
 
23011
}
 
23012
_ACEOF
 
23013
rm -f conftest.$ac_objext
 
23014
if { (ac_try="$ac_compile"
 
23015
case "(($ac_try" in
 
23016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23017
  *) ac_try_echo=$ac_try;;
 
23018
esac
 
23019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23020
  (eval "$ac_compile") 2>conftest.er1
 
23021
  ac_status=$?
 
23022
  grep -v '^ *+' conftest.er1 >conftest.err
 
23023
  rm -f conftest.er1
 
23024
  cat conftest.err >&5
 
23025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23026
  (exit $ac_status); } && {
 
23027
         test -z "$ac_cxx_werror_flag" ||
 
23028
         test ! -s conftest.err
 
23029
       } && test -s conftest.$ac_objext; then
 
23030
  kde_cv_func_strlcpy=yes
 
23031
else
 
23032
  echo "$as_me: failed program was:" >&5
 
23033
sed 's/^/| /' conftest.$ac_ext >&5
 
23034
 
 
23035
        kde_cv_func_strlcpy=no
 
23036
fi
 
23037
 
 
23038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23039
CXXFLAGS="$save_CXXFLAGS"
 
23040
LIBS="$kde_safe_LIBS"
 
23041
ac_ext=c
 
23042
ac_cpp='$CPP $CPPFLAGS'
 
23043
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23044
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23045
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23046
 
 
23047
 
 
23048
fi
 
23049
 
 
23050
 
 
23051
{ echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
 
23052
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6; }
 
23053
 
 
23054
{ echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
 
23055
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6; }
 
23056
if test "${kde_cv_proto_strlcpy+set}" = set; then
 
23057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23058
else
 
23059
  
 
23060
if test "x$kde_cv_func_strlcpy" = xyes; then
 
23061
  kde_cv_proto_strlcpy=no
 
23062
else
 
23063
  case "strlcpy" in
 
23064
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
23065
                kde_cv_proto_strlcpy="yes - in libkdefakes"
 
23066
                ;;
 
23067
        *)
 
23068
                kde_cv_proto_strlcpy=unknown
 
23069
                ;;
 
23070
  esac
 
23071
fi
 
23072
 
 
23073
if test "x$kde_cv_proto_strlcpy" = xunknown; then
 
23074
 
 
23075
 
 
23076
 ac_ext=cpp
 
23077
ac_cpp='$CXXCPP $CPPFLAGS'
 
23078
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23079
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23080
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23081
 
 
23082
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
23083
 
 
23084
 
 
23085
  kde_safe_libs=$LIBS
 
23086
  LIBS="$LIBS $X_EXTRA_LIBS"
 
23087
  cat >conftest.$ac_ext <<_ACEOF
 
23088
/* confdefs.h.  */
 
23089
_ACEOF
 
23090
cat confdefs.h >>conftest.$ac_ext
 
23091
cat >>conftest.$ac_ext <<_ACEOF
 
23092
/* end confdefs.h.  */
 
23093
 
 
23094
 
 
23095
#include <string.h>
 
23096
 
 
23097
 
 
23098
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
 
23099
 
 
23100
int
 
23101
main ()
 
23102
{
 
23103
 
 
23104
 char buf[20];
 
23105
  strlcpy(buf, "KDE function test", sizeof(buf));
 
23106
 
 
23107
 
 
23108
  ;
 
23109
  return 0;
 
23110
}
 
23111
_ACEOF
 
23112
rm -f conftest.$ac_objext conftest$ac_exeext
 
23113
if { (ac_try="$ac_link"
 
23114
case "(($ac_try" in
 
23115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23116
  *) ac_try_echo=$ac_try;;
 
23117
esac
 
23118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23119
  (eval "$ac_link") 2>conftest.er1
 
23120
  ac_status=$?
 
23121
  grep -v '^ *+' conftest.er1 >conftest.err
 
23122
  rm -f conftest.er1
 
23123
  cat conftest.err >&5
 
23124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23125
  (exit $ac_status); } && {
 
23126
         test -z "$ac_cxx_werror_flag" ||
 
23127
         test ! -s conftest.err
 
23128
       } && test -s conftest$ac_exeext &&
 
23129
       $as_test_x conftest$ac_exeext; then
 
23130
   kde_cv_func_strlcpy=yes
 
23131
  kde_cv_proto_strlcpy=yes 
 
23132
else
 
23133
  echo "$as_me: failed program was:" >&5
 
23134
sed 's/^/| /' conftest.$ac_ext >&5
 
23135
 
 
23136
        kde_cv_proto_strlcpy="strlcpy unavailable"
 
23137
 
 
23138
fi
 
23139
 
 
23140
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23141
      conftest$ac_exeext conftest.$ac_ext
 
23142
LIBS=$kde_safe_libs
 
23143
ac_ext=c
 
23144
ac_cpp='$CPP $CPPFLAGS'
 
23145
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23146
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23147
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23148
 
 
23149
fi
 
23150
 
 
23151
fi
 
23152
 
 
23153
{ echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
 
23154
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6; }
 
23155
 
 
23156
if test "x$kde_cv_func_strlcpy" = xyes; then
 
23157
  
 
23158
cat >>confdefs.h <<\_ACEOF
 
23159
@%:@define HAVE_STRLCPY 1
 
23160
_ACEOF
 
23161
 
 
23162
  
 
23163
fi
 
23164
if test "x$kde_cv_proto_strlcpy" = xno; then
 
23165
  
 
23166
cat >>confdefs.h <<\_ACEOF
 
23167
@%:@define HAVE_STRLCPY_PROTO 1
 
23168
_ACEOF
 
23169
 
 
23170
fi
 
23171
 
 
23172
 
 
23173
 
 
23174
 
 
23175
 
 
23176
 
 
23177
      { echo "$as_me:$LINENO: checking for main in -lutil" >&5
 
23178
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6; }
 
23179
if test "${ac_cv_lib_util_main+set}" = set; then
 
23180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23181
else
 
23182
  ac_check_lib_save_LIBS=$LIBS
 
23183
LIBS="-lutil  $LIBS"
 
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
 
 
23191
 
 
23192
int
 
23193
main ()
 
23194
{
 
23195
return main ();
 
23196
  ;
 
23197
  return 0;
 
23198
}
 
23199
_ACEOF
 
23200
rm -f conftest.$ac_objext conftest$ac_exeext
 
23201
if { (ac_try="$ac_link"
 
23202
case "(($ac_try" in
 
23203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23204
  *) ac_try_echo=$ac_try;;
 
23205
esac
 
23206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23207
  (eval "$ac_link") 2>conftest.er1
 
23208
  ac_status=$?
 
23209
  grep -v '^ *+' conftest.er1 >conftest.err
 
23210
  rm -f conftest.er1
 
23211
  cat conftest.err >&5
 
23212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23213
  (exit $ac_status); } && {
 
23214
         test -z "$ac_c_werror_flag" ||
 
23215
         test ! -s conftest.err
 
23216
       } && test -s conftest$ac_exeext &&
 
23217
       $as_test_x conftest$ac_exeext; then
 
23218
  ac_cv_lib_util_main=yes
 
23219
else
 
23220
  echo "$as_me: failed program was:" >&5
 
23221
sed 's/^/| /' conftest.$ac_ext >&5
 
23222
 
 
23223
        ac_cv_lib_util_main=no
 
23224
fi
 
23225
 
 
23226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23227
      conftest$ac_exeext conftest.$ac_ext
 
23228
LIBS=$ac_check_lib_save_LIBS
 
23229
fi
 
23230
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
 
23231
echo "${ECHO_T}$ac_cv_lib_util_main" >&6; }
 
23232
if test $ac_cv_lib_util_main = yes; then
 
23233
  LIBUTIL="-lutil"
 
23234
fi
 
23235
    
 
23236
   { echo "$as_me:$LINENO: checking for main in -lcompat" >&5
 
23237
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6; }
 
23238
if test "${ac_cv_lib_compat_main+set}" = set; then
 
23239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23240
else
 
23241
  ac_check_lib_save_LIBS=$LIBS
 
23242
LIBS="-lcompat  $LIBS"
 
23243
cat >conftest.$ac_ext <<_ACEOF
 
23244
/* confdefs.h.  */
 
23245
_ACEOF
 
23246
cat confdefs.h >>conftest.$ac_ext
 
23247
cat >>conftest.$ac_ext <<_ACEOF
 
23248
/* end confdefs.h.  */
 
23249
 
 
23250
 
 
23251
int
 
23252
main ()
 
23253
{
 
23254
return main ();
 
23255
  ;
 
23256
  return 0;
 
23257
}
 
23258
_ACEOF
 
23259
rm -f conftest.$ac_objext conftest$ac_exeext
 
23260
if { (ac_try="$ac_link"
 
23261
case "(($ac_try" in
 
23262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23263
  *) ac_try_echo=$ac_try;;
 
23264
esac
 
23265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23266
  (eval "$ac_link") 2>conftest.er1
 
23267
  ac_status=$?
 
23268
  grep -v '^ *+' conftest.er1 >conftest.err
 
23269
  rm -f conftest.er1
 
23270
  cat conftest.err >&5
 
23271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23272
  (exit $ac_status); } && {
 
23273
         test -z "$ac_c_werror_flag" ||
 
23274
         test ! -s conftest.err
 
23275
       } && test -s conftest$ac_exeext &&
 
23276
       $as_test_x conftest$ac_exeext; then
 
23277
  ac_cv_lib_compat_main=yes
 
23278
else
 
23279
  echo "$as_me: failed program was:" >&5
 
23280
sed 's/^/| /' conftest.$ac_ext >&5
 
23281
 
 
23282
        ac_cv_lib_compat_main=no
 
23283
fi
 
23284
 
 
23285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23286
      conftest$ac_exeext conftest.$ac_ext
 
23287
LIBS=$ac_check_lib_save_LIBS
 
23288
fi
 
23289
{ echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
 
23290
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6; }
 
23291
if test $ac_cv_lib_compat_main = yes; then
 
23292
  LIBCOMPAT="-lcompat"
 
23293
fi
 
23294
    
 
23295
   kde_have_crypt=
 
23296
   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
23297
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
 
23298
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
 
23299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23300
else
 
23301
  ac_check_lib_save_LIBS=$LIBS
 
23302
LIBS="-lcrypt  $LIBS"
 
23303
cat >conftest.$ac_ext <<_ACEOF
 
23304
/* confdefs.h.  */
 
23305
_ACEOF
 
23306
cat confdefs.h >>conftest.$ac_ext
 
23307
cat >>conftest.$ac_ext <<_ACEOF
 
23308
/* end confdefs.h.  */
 
23309
 
 
23310
/* Override any GCC internal prototype to avoid an error.
 
23311
   Use char because int might match the return type of a GCC
 
23312
   builtin and then its argument prototype would still apply.  */
 
23313
#ifdef __cplusplus
 
23314
extern "C"
 
23315
#endif
 
23316
char crypt ();
 
23317
int
 
23318
main ()
 
23319
{
 
23320
return crypt ();
 
23321
  ;
 
23322
  return 0;
 
23323
}
 
23324
_ACEOF
 
23325
rm -f conftest.$ac_objext conftest$ac_exeext
 
23326
if { (ac_try="$ac_link"
 
23327
case "(($ac_try" in
 
23328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23329
  *) ac_try_echo=$ac_try;;
 
23330
esac
 
23331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23332
  (eval "$ac_link") 2>conftest.er1
 
23333
  ac_status=$?
 
23334
  grep -v '^ *+' conftest.er1 >conftest.err
 
23335
  rm -f conftest.er1
 
23336
  cat conftest.err >&5
 
23337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23338
  (exit $ac_status); } && {
 
23339
         test -z "$ac_c_werror_flag" ||
 
23340
         test ! -s conftest.err
 
23341
       } && test -s conftest$ac_exeext &&
 
23342
       $as_test_x conftest$ac_exeext; then
 
23343
  ac_cv_lib_crypt_crypt=yes
 
23344
else
 
23345
  echo "$as_me: failed program was:" >&5
 
23346
sed 's/^/| /' conftest.$ac_ext >&5
 
23347
 
 
23348
        ac_cv_lib_crypt_crypt=no
 
23349
fi
 
23350
 
 
23351
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23352
      conftest$ac_exeext conftest.$ac_ext
 
23353
LIBS=$ac_check_lib_save_LIBS
 
23354
fi
 
23355
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
23356
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
 
23357
if test $ac_cv_lib_crypt_crypt = yes; then
 
23358
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
 
23359
else
 
23360
  { echo "$as_me:$LINENO: checking for crypt in -lc" >&5
 
23361
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
 
23362
if test "${ac_cv_lib_c_crypt+set}" = set; then
 
23363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23364
else
 
23365
  ac_check_lib_save_LIBS=$LIBS
 
23366
LIBS="-lc  $LIBS"
 
23367
cat >conftest.$ac_ext <<_ACEOF
 
23368
/* confdefs.h.  */
 
23369
_ACEOF
 
23370
cat confdefs.h >>conftest.$ac_ext
 
23371
cat >>conftest.$ac_ext <<_ACEOF
 
23372
/* end confdefs.h.  */
 
23373
 
 
23374
/* Override any GCC internal prototype to avoid an error.
 
23375
   Use char because int might match the return type of a GCC
 
23376
   builtin and then its argument prototype would still apply.  */
 
23377
#ifdef __cplusplus
 
23378
extern "C"
 
23379
#endif
 
23380
char crypt ();
 
23381
int
 
23382
main ()
 
23383
{
 
23384
return crypt ();
 
23385
  ;
 
23386
  return 0;
 
23387
}
 
23388
_ACEOF
 
23389
rm -f conftest.$ac_objext conftest$ac_exeext
 
23390
if { (ac_try="$ac_link"
 
23391
case "(($ac_try" in
 
23392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23393
  *) ac_try_echo=$ac_try;;
 
23394
esac
 
23395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23396
  (eval "$ac_link") 2>conftest.er1
 
23397
  ac_status=$?
 
23398
  grep -v '^ *+' conftest.er1 >conftest.err
 
23399
  rm -f conftest.er1
 
23400
  cat conftest.err >&5
 
23401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23402
  (exit $ac_status); } && {
 
23403
         test -z "$ac_c_werror_flag" ||
 
23404
         test ! -s conftest.err
 
23405
       } && test -s conftest$ac_exeext &&
 
23406
       $as_test_x conftest$ac_exeext; then
 
23407
  ac_cv_lib_c_crypt=yes
 
23408
else
 
23409
  echo "$as_me: failed program was:" >&5
 
23410
sed 's/^/| /' conftest.$ac_ext >&5
 
23411
 
 
23412
        ac_cv_lib_c_crypt=no
 
23413
fi
 
23414
 
 
23415
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23416
      conftest$ac_exeext conftest.$ac_ext
 
23417
LIBS=$ac_check_lib_save_LIBS
 
23418
fi
 
23419
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
 
23420
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
 
23421
if test $ac_cv_lib_c_crypt = yes; then
 
23422
  kde_have_crypt=yes
 
23423
else
 
23424
  
 
23425
        { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
 
23426
You should install libcrypt from another source or configure with PAM
 
23427
support" >&5
 
23428
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
 
23429
You should install libcrypt from another source or configure with PAM
 
23430
support" >&2;}
 
23431
        kde_have_crypt=no
 
23432
      
 
23433
fi
 
23434
 
 
23435
fi
 
23436
 
 
23437
   
 
23438
   if test $kde_have_crypt = yes; then
 
23439
      
 
23440
cat >>confdefs.h <<_ACEOF
 
23441
@%:@define HAVE_CRYPT 1
 
23442
_ACEOF
 
23443
 
 
23444
   fi
 
23445
   
 
23446
   { echo "$as_me:$LINENO: checking for socklen_t" >&5
 
23447
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
 
23448
   if test "${kde_cv_socklen_t+set}" = set; then
 
23449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23450
else
 
23451
  
 
23452
      ac_ext=cpp
 
23453
ac_cpp='$CXXCPP $CPPFLAGS'
 
23454
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23455
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23456
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23457
 
 
23458
      kde_cv_socklen_t=no
 
23459
      cat >conftest.$ac_ext <<_ACEOF
 
23460
/* confdefs.h.  */
 
23461
_ACEOF
 
23462
cat confdefs.h >>conftest.$ac_ext
 
23463
cat >>conftest.$ac_ext <<_ACEOF
 
23464
/* end confdefs.h.  */
 
23465
 
 
23466
         #include <sys/types.h>
 
23467
         #include <sys/socket.h>
 
23468
      
 
23469
int
 
23470
main ()
 
23471
{
 
23472
 
 
23473
         socklen_t len;
 
23474
         getpeername(0,0,&len);
 
23475
      
 
23476
  ;
 
23477
  return 0;
 
23478
}
 
23479
_ACEOF
 
23480
rm -f conftest.$ac_objext
 
23481
if { (ac_try="$ac_compile"
 
23482
case "(($ac_try" in
 
23483
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23484
  *) ac_try_echo=$ac_try;;
 
23485
esac
 
23486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23487
  (eval "$ac_compile") 2>conftest.er1
 
23488
  ac_status=$?
 
23489
  grep -v '^ *+' conftest.er1 >conftest.err
 
23490
  rm -f conftest.er1
 
23491
  cat conftest.err >&5
 
23492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23493
  (exit $ac_status); } && {
 
23494
         test -z "$ac_cxx_werror_flag" ||
 
23495
         test ! -s conftest.err
 
23496
       } && test -s conftest.$ac_objext; then
 
23497
  
 
23498
         kde_cv_socklen_t=yes
 
23499
         kde_cv_socklen_t_equiv=socklen_t
 
23500
      
 
23501
else
 
23502
  echo "$as_me: failed program was:" >&5
 
23503
sed 's/^/| /' conftest.$ac_ext >&5
 
23504
 
 
23505
        
 
23506
fi
 
23507
 
 
23508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23509
      ac_ext=c
 
23510
ac_cpp='$CPP $CPPFLAGS'
 
23511
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23512
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23513
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23514
 
 
23515
   
 
23516
fi
 
23517
 
 
23518
   { echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
 
23519
echo "${ECHO_T}$kde_cv_socklen_t" >&6; }
 
23520
   if test $kde_cv_socklen_t = no; then
 
23521
      { echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
 
23522
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6; }
 
23523
      if test "${kde_cv_socklen_t_equiv+set}" = set; then
 
23524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23525
else
 
23526
  
 
23527
         kde_cv_socklen_t_equiv=int
 
23528
         ac_ext=cpp
 
23529
ac_cpp='$CXXCPP $CPPFLAGS'
 
23530
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23531
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23532
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23533
 
 
23534
         for t in int size_t unsigned long "unsigned long"; do
 
23535
            cat >conftest.$ac_ext <<_ACEOF
 
23536
/* confdefs.h.  */
 
23537
_ACEOF
 
23538
cat confdefs.h >>conftest.$ac_ext
 
23539
cat >>conftest.$ac_ext <<_ACEOF
 
23540
/* end confdefs.h.  */
 
23541
 
 
23542
               #include <sys/types.h>
 
23543
               #include <sys/socket.h>
 
23544
            
 
23545
int
 
23546
main ()
 
23547
{
 
23548
 
 
23549
               $t len;
 
23550
               getpeername(0,0,&len);
 
23551
            
 
23552
  ;
 
23553
  return 0;
 
23554
}
 
23555
_ACEOF
 
23556
rm -f conftest.$ac_objext
 
23557
if { (ac_try="$ac_compile"
 
23558
case "(($ac_try" in
 
23559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23560
  *) ac_try_echo=$ac_try;;
 
23561
esac
 
23562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23563
  (eval "$ac_compile") 2>conftest.er1
 
23564
  ac_status=$?
 
23565
  grep -v '^ *+' conftest.er1 >conftest.err
 
23566
  rm -f conftest.er1
 
23567
  cat conftest.err >&5
 
23568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23569
  (exit $ac_status); } && {
 
23570
         test -z "$ac_cxx_werror_flag" ||
 
23571
         test ! -s conftest.err
 
23572
       } && test -s conftest.$ac_objext; then
 
23573
  
 
23574
               kde_cv_socklen_t_equiv="$t"
 
23575
               break
 
23576
            
 
23577
else
 
23578
  echo "$as_me: failed program was:" >&5
 
23579
sed 's/^/| /' conftest.$ac_ext >&5
 
23580
 
 
23581
        
 
23582
fi
 
23583
 
 
23584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23585
         done
 
23586
         ac_ext=c
 
23587
ac_cpp='$CPP $CPPFLAGS'
 
23588
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23589
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23590
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23591
 
 
23592
      
 
23593
fi
 
23594
 
 
23595
      { echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
 
23596
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6; }
 
23597
   fi
 
23598
   
 
23599
cat >>confdefs.h <<_ACEOF
 
23600
@%:@define kde_socklen_t $kde_cv_socklen_t_equiv
 
23601
_ACEOF
 
23602
 
 
23603
   
 
23604
cat >>confdefs.h <<_ACEOF
 
23605
@%:@define ksize_t $kde_cv_socklen_t_equiv
 
23606
_ACEOF
 
23607
 
 
23608
 
 
23609
   { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
23610
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
 
23611
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
23612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23613
else
 
23614
  ac_check_lib_save_LIBS=$LIBS
 
23615
LIBS="-ldnet  $LIBS"
 
23616
cat >conftest.$ac_ext <<_ACEOF
 
23617
/* confdefs.h.  */
 
23618
_ACEOF
 
23619
cat confdefs.h >>conftest.$ac_ext
 
23620
cat >>conftest.$ac_ext <<_ACEOF
 
23621
/* end confdefs.h.  */
 
23622
 
 
23623
/* Override any GCC internal prototype to avoid an error.
 
23624
   Use char because int might match the return type of a GCC
 
23625
   builtin and then its argument prototype would still apply.  */
 
23626
#ifdef __cplusplus
 
23627
extern "C"
 
23628
#endif
 
23629
char dnet_ntoa ();
 
23630
int
 
23631
main ()
 
23632
{
 
23633
return dnet_ntoa ();
 
23634
  ;
 
23635
  return 0;
 
23636
}
 
23637
_ACEOF
 
23638
rm -f conftest.$ac_objext conftest$ac_exeext
 
23639
if { (ac_try="$ac_link"
 
23640
case "(($ac_try" in
 
23641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23642
  *) ac_try_echo=$ac_try;;
 
23643
esac
 
23644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23645
  (eval "$ac_link") 2>conftest.er1
 
23646
  ac_status=$?
 
23647
  grep -v '^ *+' conftest.er1 >conftest.err
 
23648
  rm -f conftest.er1
 
23649
  cat conftest.err >&5
 
23650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23651
  (exit $ac_status); } && {
 
23652
         test -z "$ac_c_werror_flag" ||
 
23653
         test ! -s conftest.err
 
23654
       } && test -s conftest$ac_exeext &&
 
23655
       $as_test_x conftest$ac_exeext; then
 
23656
  ac_cv_lib_dnet_dnet_ntoa=yes
 
23657
else
 
23658
  echo "$as_me: failed program was:" >&5
 
23659
sed 's/^/| /' conftest.$ac_ext >&5
 
23660
 
 
23661
        ac_cv_lib_dnet_dnet_ntoa=no
 
23662
fi
 
23663
 
 
23664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23665
      conftest$ac_exeext conftest.$ac_ext
 
23666
LIBS=$ac_check_lib_save_LIBS
 
23667
fi
 
23668
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
23669
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
23670
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
23671
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
23672
fi
 
23673
 
 
23674
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
23675
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
23676
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
 
23677
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
23678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23679
else
 
23680
  ac_check_lib_save_LIBS=$LIBS
 
23681
LIBS="-ldnet_stub  $LIBS"
 
23682
cat >conftest.$ac_ext <<_ACEOF
 
23683
/* confdefs.h.  */
 
23684
_ACEOF
 
23685
cat confdefs.h >>conftest.$ac_ext
 
23686
cat >>conftest.$ac_ext <<_ACEOF
 
23687
/* end confdefs.h.  */
 
23688
 
 
23689
/* Override any GCC internal prototype to avoid an error.
 
23690
   Use char because int might match the return type of a GCC
 
23691
   builtin and then its argument prototype would still apply.  */
 
23692
#ifdef __cplusplus
 
23693
extern "C"
 
23694
#endif
 
23695
char dnet_ntoa ();
 
23696
int
 
23697
main ()
 
23698
{
 
23699
return dnet_ntoa ();
 
23700
  ;
 
23701
  return 0;
 
23702
}
 
23703
_ACEOF
 
23704
rm -f conftest.$ac_objext conftest$ac_exeext
 
23705
if { (ac_try="$ac_link"
 
23706
case "(($ac_try" in
 
23707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23708
  *) ac_try_echo=$ac_try;;
 
23709
esac
 
23710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23711
  (eval "$ac_link") 2>conftest.er1
 
23712
  ac_status=$?
 
23713
  grep -v '^ *+' conftest.er1 >conftest.err
 
23714
  rm -f conftest.er1
 
23715
  cat conftest.err >&5
 
23716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23717
  (exit $ac_status); } && {
 
23718
         test -z "$ac_c_werror_flag" ||
 
23719
         test ! -s conftest.err
 
23720
       } && test -s conftest$ac_exeext &&
 
23721
       $as_test_x conftest$ac_exeext; then
 
23722
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
23723
else
 
23724
  echo "$as_me: failed program was:" >&5
 
23725
sed 's/^/| /' conftest.$ac_ext >&5
 
23726
 
 
23727
        ac_cv_lib_dnet_stub_dnet_ntoa=no
 
23728
fi
 
23729
 
 
23730
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23731
      conftest$ac_exeext conftest.$ac_ext
 
23732
LIBS=$ac_check_lib_save_LIBS
 
23733
fi
 
23734
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
23735
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
23736
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
23737
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
23738
fi
 
23739
 
 
23740
   fi
 
23741
   { echo "$as_me:$LINENO: checking for inet_ntoa" >&5
 
23742
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; }
 
23743
if test "${ac_cv_func_inet_ntoa+set}" = set; then
 
23744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23745
else
 
23746
  cat >conftest.$ac_ext <<_ACEOF
 
23747
/* confdefs.h.  */
 
23748
_ACEOF
 
23749
cat confdefs.h >>conftest.$ac_ext
 
23750
cat >>conftest.$ac_ext <<_ACEOF
 
23751
/* end confdefs.h.  */
 
23752
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
 
23753
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23754
#define inet_ntoa innocuous_inet_ntoa
 
23755
 
 
23756
/* System header to define __stub macros and hopefully few prototypes,
 
23757
    which can conflict with char inet_ntoa (); below.
 
23758
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23759
    <limits.h> exists even on freestanding compilers.  */
 
23760
 
 
23761
#ifdef __STDC__
 
23762
# include <limits.h>
 
23763
#else
 
23764
# include <assert.h>
 
23765
#endif
 
23766
 
 
23767
#undef inet_ntoa
 
23768
 
 
23769
/* Override any GCC internal prototype to avoid an error.
 
23770
   Use char because int might match the return type of a GCC
 
23771
   builtin and then its argument prototype would still apply.  */
 
23772
#ifdef __cplusplus
 
23773
extern "C"
 
23774
#endif
 
23775
char inet_ntoa ();
 
23776
/* The GNU C library defines this for functions which it implements
 
23777
    to always fail with ENOSYS.  Some functions are actually named
 
23778
    something starting with __ and the normal name is an alias.  */
 
23779
#if defined __stub_inet_ntoa || defined __stub___inet_ntoa
 
23780
choke me
 
23781
#endif
 
23782
 
 
23783
int
 
23784
main ()
 
23785
{
 
23786
return inet_ntoa ();
 
23787
  ;
 
23788
  return 0;
 
23789
}
 
23790
_ACEOF
 
23791
rm -f conftest.$ac_objext conftest$ac_exeext
 
23792
if { (ac_try="$ac_link"
 
23793
case "(($ac_try" in
 
23794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23795
  *) ac_try_echo=$ac_try;;
 
23796
esac
 
23797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23798
  (eval "$ac_link") 2>conftest.er1
 
23799
  ac_status=$?
 
23800
  grep -v '^ *+' conftest.er1 >conftest.err
 
23801
  rm -f conftest.er1
 
23802
  cat conftest.err >&5
 
23803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23804
  (exit $ac_status); } && {
 
23805
         test -z "$ac_c_werror_flag" ||
 
23806
         test ! -s conftest.err
 
23807
       } && test -s conftest$ac_exeext &&
 
23808
       $as_test_x conftest$ac_exeext; then
 
23809
  ac_cv_func_inet_ntoa=yes
 
23810
else
 
23811
  echo "$as_me: failed program was:" >&5
 
23812
sed 's/^/| /' conftest.$ac_ext >&5
 
23813
 
 
23814
        ac_cv_func_inet_ntoa=no
 
23815
fi
 
23816
 
 
23817
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23818
      conftest$ac_exeext conftest.$ac_ext
 
23819
fi
 
23820
{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
 
23821
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; }
 
23822
 
 
23823
   if test $ac_cv_func_inet_ntoa = no; then
 
23824
     { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
 
23825
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
 
23826
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
 
23827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23828
else
 
23829
  ac_check_lib_save_LIBS=$LIBS
 
23830
LIBS="-lnsl  $LIBS"
 
23831
cat >conftest.$ac_ext <<_ACEOF
 
23832
/* confdefs.h.  */
 
23833
_ACEOF
 
23834
cat confdefs.h >>conftest.$ac_ext
 
23835
cat >>conftest.$ac_ext <<_ACEOF
 
23836
/* end confdefs.h.  */
 
23837
 
 
23838
/* Override any GCC internal prototype to avoid an error.
 
23839
   Use char because int might match the return type of a GCC
 
23840
   builtin and then its argument prototype would still apply.  */
 
23841
#ifdef __cplusplus
 
23842
extern "C"
 
23843
#endif
 
23844
char inet_ntoa ();
 
23845
int
 
23846
main ()
 
23847
{
 
23848
return inet_ntoa ();
 
23849
  ;
 
23850
  return 0;
 
23851
}
 
23852
_ACEOF
 
23853
rm -f conftest.$ac_objext conftest$ac_exeext
 
23854
if { (ac_try="$ac_link"
 
23855
case "(($ac_try" in
 
23856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23857
  *) ac_try_echo=$ac_try;;
 
23858
esac
 
23859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23860
  (eval "$ac_link") 2>conftest.er1
 
23861
  ac_status=$?
 
23862
  grep -v '^ *+' conftest.er1 >conftest.err
 
23863
  rm -f conftest.er1
 
23864
  cat conftest.err >&5
 
23865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23866
  (exit $ac_status); } && {
 
23867
         test -z "$ac_c_werror_flag" ||
 
23868
         test ! -s conftest.err
 
23869
       } && test -s conftest$ac_exeext &&
 
23870
       $as_test_x conftest$ac_exeext; then
 
23871
  ac_cv_lib_nsl_inet_ntoa=yes
 
23872
else
 
23873
  echo "$as_me: failed program was:" >&5
 
23874
sed 's/^/| /' conftest.$ac_ext >&5
 
23875
 
 
23876
        ac_cv_lib_nsl_inet_ntoa=no
 
23877
fi
 
23878
 
 
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
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
 
23884
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
 
23885
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
 
23886
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
23887
fi
 
23888
 
 
23889
   fi
 
23890
   { echo "$as_me:$LINENO: checking for connect" >&5
 
23891
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
 
23892
if test "${ac_cv_func_connect+set}" = set; then
 
23893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23894
else
 
23895
  cat >conftest.$ac_ext <<_ACEOF
 
23896
/* confdefs.h.  */
 
23897
_ACEOF
 
23898
cat confdefs.h >>conftest.$ac_ext
 
23899
cat >>conftest.$ac_ext <<_ACEOF
 
23900
/* end confdefs.h.  */
 
23901
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
23902
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23903
#define connect innocuous_connect
 
23904
 
 
23905
/* System header to define __stub macros and hopefully few prototypes,
 
23906
    which can conflict with char connect (); below.
 
23907
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23908
    <limits.h> exists even on freestanding compilers.  */
 
23909
 
 
23910
#ifdef __STDC__
 
23911
# include <limits.h>
 
23912
#else
 
23913
# include <assert.h>
 
23914
#endif
 
23915
 
 
23916
#undef connect
 
23917
 
 
23918
/* Override any GCC internal prototype to avoid an error.
 
23919
   Use char because int might match the return type of a GCC
 
23920
   builtin and then its argument prototype would still apply.  */
 
23921
#ifdef __cplusplus
 
23922
extern "C"
 
23923
#endif
 
23924
char connect ();
 
23925
/* The GNU C library defines this for functions which it implements
 
23926
    to always fail with ENOSYS.  Some functions are actually named
 
23927
    something starting with __ and the normal name is an alias.  */
 
23928
#if defined __stub_connect || defined __stub___connect
 
23929
choke me
 
23930
#endif
 
23931
 
 
23932
int
 
23933
main ()
 
23934
{
 
23935
return connect ();
 
23936
  ;
 
23937
  return 0;
 
23938
}
 
23939
_ACEOF
 
23940
rm -f conftest.$ac_objext conftest$ac_exeext
 
23941
if { (ac_try="$ac_link"
 
23942
case "(($ac_try" in
 
23943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23944
  *) ac_try_echo=$ac_try;;
 
23945
esac
 
23946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23947
  (eval "$ac_link") 2>conftest.er1
 
23948
  ac_status=$?
 
23949
  grep -v '^ *+' conftest.er1 >conftest.err
 
23950
  rm -f conftest.er1
 
23951
  cat conftest.err >&5
 
23952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23953
  (exit $ac_status); } && {
 
23954
         test -z "$ac_c_werror_flag" ||
 
23955
         test ! -s conftest.err
 
23956
       } && test -s conftest$ac_exeext &&
 
23957
       $as_test_x conftest$ac_exeext; then
 
23958
  ac_cv_func_connect=yes
 
23959
else
 
23960
  echo "$as_me: failed program was:" >&5
 
23961
sed 's/^/| /' conftest.$ac_ext >&5
 
23962
 
 
23963
        ac_cv_func_connect=no
 
23964
fi
 
23965
 
 
23966
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23967
      conftest$ac_exeext conftest.$ac_ext
 
23968
fi
 
23969
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
23970
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
 
23971
 
 
23972
   if test $ac_cv_func_connect = no; then
 
23973
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
23974
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
 
23975
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
23976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23977
else
 
23978
  ac_check_lib_save_LIBS=$LIBS
 
23979
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
23980
cat >conftest.$ac_ext <<_ACEOF
 
23981
/* confdefs.h.  */
 
23982
_ACEOF
 
23983
cat confdefs.h >>conftest.$ac_ext
 
23984
cat >>conftest.$ac_ext <<_ACEOF
 
23985
/* end confdefs.h.  */
 
23986
 
 
23987
/* Override any GCC internal prototype to avoid an error.
 
23988
   Use char because int might match the return type of a GCC
 
23989
   builtin and then its argument prototype would still apply.  */
 
23990
#ifdef __cplusplus
 
23991
extern "C"
 
23992
#endif
 
23993
char connect ();
 
23994
int
 
23995
main ()
 
23996
{
 
23997
return connect ();
 
23998
  ;
 
23999
  return 0;
 
24000
}
 
24001
_ACEOF
 
24002
rm -f conftest.$ac_objext conftest$ac_exeext
 
24003
if { (ac_try="$ac_link"
 
24004
case "(($ac_try" in
 
24005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24006
  *) ac_try_echo=$ac_try;;
 
24007
esac
 
24008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24009
  (eval "$ac_link") 2>conftest.er1
 
24010
  ac_status=$?
 
24011
  grep -v '^ *+' conftest.er1 >conftest.err
 
24012
  rm -f conftest.er1
 
24013
  cat conftest.err >&5
 
24014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24015
  (exit $ac_status); } && {
 
24016
         test -z "$ac_c_werror_flag" ||
 
24017
         test ! -s conftest.err
 
24018
       } && test -s conftest$ac_exeext &&
 
24019
       $as_test_x conftest$ac_exeext; then
 
24020
  ac_cv_lib_socket_connect=yes
 
24021
else
 
24022
  echo "$as_me: failed program was:" >&5
 
24023
sed 's/^/| /' conftest.$ac_ext >&5
 
24024
 
 
24025
        ac_cv_lib_socket_connect=no
 
24026
fi
 
24027
 
 
24028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24029
      conftest$ac_exeext conftest.$ac_ext
 
24030
LIBS=$ac_check_lib_save_LIBS
 
24031
fi
 
24032
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
24033
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
 
24034
if test $ac_cv_lib_socket_connect = yes; then
 
24035
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
24036
fi
 
24037
 
 
24038
   fi
 
24039
 
 
24040
   { echo "$as_me:$LINENO: checking for remove" >&5
 
24041
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
 
24042
if test "${ac_cv_func_remove+set}" = set; then
 
24043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24044
else
 
24045
  cat >conftest.$ac_ext <<_ACEOF
 
24046
/* confdefs.h.  */
 
24047
_ACEOF
 
24048
cat confdefs.h >>conftest.$ac_ext
 
24049
cat >>conftest.$ac_ext <<_ACEOF
 
24050
/* end confdefs.h.  */
 
24051
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
24052
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24053
#define remove innocuous_remove
 
24054
 
 
24055
/* System header to define __stub macros and hopefully few prototypes,
 
24056
    which can conflict with char remove (); below.
 
24057
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24058
    <limits.h> exists even on freestanding compilers.  */
 
24059
 
 
24060
#ifdef __STDC__
 
24061
# include <limits.h>
 
24062
#else
 
24063
# include <assert.h>
 
24064
#endif
 
24065
 
 
24066
#undef remove
 
24067
 
 
24068
/* Override any GCC internal prototype to avoid an error.
 
24069
   Use char because int might match the return type of a GCC
 
24070
   builtin and then its argument prototype would still apply.  */
 
24071
#ifdef __cplusplus
 
24072
extern "C"
 
24073
#endif
 
24074
char remove ();
 
24075
/* The GNU C library defines this for functions which it implements
 
24076
    to always fail with ENOSYS.  Some functions are actually named
 
24077
    something starting with __ and the normal name is an alias.  */
 
24078
#if defined __stub_remove || defined __stub___remove
 
24079
choke me
 
24080
#endif
 
24081
 
 
24082
int
 
24083
main ()
 
24084
{
 
24085
return remove ();
 
24086
  ;
 
24087
  return 0;
 
24088
}
 
24089
_ACEOF
 
24090
rm -f conftest.$ac_objext conftest$ac_exeext
 
24091
if { (ac_try="$ac_link"
 
24092
case "(($ac_try" in
 
24093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24094
  *) ac_try_echo=$ac_try;;
 
24095
esac
 
24096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24097
  (eval "$ac_link") 2>conftest.er1
 
24098
  ac_status=$?
 
24099
  grep -v '^ *+' conftest.er1 >conftest.err
 
24100
  rm -f conftest.er1
 
24101
  cat conftest.err >&5
 
24102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24103
  (exit $ac_status); } && {
 
24104
         test -z "$ac_c_werror_flag" ||
 
24105
         test ! -s conftest.err
 
24106
       } && test -s conftest$ac_exeext &&
 
24107
       $as_test_x conftest$ac_exeext; then
 
24108
  ac_cv_func_remove=yes
 
24109
else
 
24110
  echo "$as_me: failed program was:" >&5
 
24111
sed 's/^/| /' conftest.$ac_ext >&5
 
24112
 
 
24113
        ac_cv_func_remove=no
 
24114
fi
 
24115
 
 
24116
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24117
      conftest$ac_exeext conftest.$ac_ext
 
24118
fi
 
24119
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
24120
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
 
24121
 
 
24122
   if test $ac_cv_func_remove = no; then
 
24123
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
24124
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
 
24125
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
24126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24127
else
 
24128
  ac_check_lib_save_LIBS=$LIBS
 
24129
LIBS="-lposix  $LIBS"
 
24130
cat >conftest.$ac_ext <<_ACEOF
 
24131
/* confdefs.h.  */
 
24132
_ACEOF
 
24133
cat confdefs.h >>conftest.$ac_ext
 
24134
cat >>conftest.$ac_ext <<_ACEOF
 
24135
/* end confdefs.h.  */
 
24136
 
 
24137
/* Override any GCC internal prototype to avoid an error.
 
24138
   Use char because int might match the return type of a GCC
 
24139
   builtin and then its argument prototype would still apply.  */
 
24140
#ifdef __cplusplus
 
24141
extern "C"
 
24142
#endif
 
24143
char remove ();
 
24144
int
 
24145
main ()
 
24146
{
 
24147
return remove ();
 
24148
  ;
 
24149
  return 0;
 
24150
}
 
24151
_ACEOF
 
24152
rm -f conftest.$ac_objext conftest$ac_exeext
 
24153
if { (ac_try="$ac_link"
 
24154
case "(($ac_try" in
 
24155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24156
  *) ac_try_echo=$ac_try;;
 
24157
esac
 
24158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24159
  (eval "$ac_link") 2>conftest.er1
 
24160
  ac_status=$?
 
24161
  grep -v '^ *+' conftest.er1 >conftest.err
 
24162
  rm -f conftest.er1
 
24163
  cat conftest.err >&5
 
24164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24165
  (exit $ac_status); } && {
 
24166
         test -z "$ac_c_werror_flag" ||
 
24167
         test ! -s conftest.err
 
24168
       } && test -s conftest$ac_exeext &&
 
24169
       $as_test_x conftest$ac_exeext; then
 
24170
  ac_cv_lib_posix_remove=yes
 
24171
else
 
24172
  echo "$as_me: failed program was:" >&5
 
24173
sed 's/^/| /' conftest.$ac_ext >&5
 
24174
 
 
24175
        ac_cv_lib_posix_remove=no
 
24176
fi
 
24177
 
 
24178
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24179
      conftest$ac_exeext conftest.$ac_ext
 
24180
LIBS=$ac_check_lib_save_LIBS
 
24181
fi
 
24182
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
24183
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
 
24184
if test $ac_cv_lib_posix_remove = yes; then
 
24185
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
24186
fi
 
24187
 
 
24188
   fi
 
24189
 
 
24190
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
24191
   { echo "$as_me:$LINENO: checking for shmat" >&5
 
24192
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
 
24193
if test "${ac_cv_func_shmat+set}" = set; then
 
24194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24195
else
 
24196
  cat >conftest.$ac_ext <<_ACEOF
 
24197
/* confdefs.h.  */
 
24198
_ACEOF
 
24199
cat confdefs.h >>conftest.$ac_ext
 
24200
cat >>conftest.$ac_ext <<_ACEOF
 
24201
/* end confdefs.h.  */
 
24202
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
24203
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24204
#define shmat innocuous_shmat
 
24205
 
 
24206
/* System header to define __stub macros and hopefully few prototypes,
 
24207
    which can conflict with char shmat (); below.
 
24208
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24209
    <limits.h> exists even on freestanding compilers.  */
 
24210
 
 
24211
#ifdef __STDC__
 
24212
# include <limits.h>
 
24213
#else
 
24214
# include <assert.h>
 
24215
#endif
 
24216
 
 
24217
#undef shmat
 
24218
 
 
24219
/* Override any GCC internal prototype to avoid an error.
 
24220
   Use char because int might match the return type of a GCC
 
24221
   builtin and then its argument prototype would still apply.  */
 
24222
#ifdef __cplusplus
 
24223
extern "C"
 
24224
#endif
 
24225
char shmat ();
 
24226
/* The GNU C library defines this for functions which it implements
 
24227
    to always fail with ENOSYS.  Some functions are actually named
 
24228
    something starting with __ and the normal name is an alias.  */
 
24229
#if defined __stub_shmat || defined __stub___shmat
 
24230
choke me
 
24231
#endif
 
24232
 
 
24233
int
 
24234
main ()
 
24235
{
 
24236
return shmat ();
 
24237
  ;
 
24238
  return 0;
 
24239
}
 
24240
_ACEOF
 
24241
rm -f conftest.$ac_objext conftest$ac_exeext
 
24242
if { (ac_try="$ac_link"
 
24243
case "(($ac_try" in
 
24244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24245
  *) ac_try_echo=$ac_try;;
 
24246
esac
 
24247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24248
  (eval "$ac_link") 2>conftest.er1
 
24249
  ac_status=$?
 
24250
  grep -v '^ *+' conftest.er1 >conftest.err
 
24251
  rm -f conftest.er1
 
24252
  cat conftest.err >&5
 
24253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24254
  (exit $ac_status); } && {
 
24255
         test -z "$ac_c_werror_flag" ||
 
24256
         test ! -s conftest.err
 
24257
       } && test -s conftest$ac_exeext &&
 
24258
       $as_test_x conftest$ac_exeext; then
 
24259
  ac_cv_func_shmat=yes
 
24260
else
 
24261
  echo "$as_me: failed program was:" >&5
 
24262
sed 's/^/| /' conftest.$ac_ext >&5
 
24263
 
 
24264
        ac_cv_func_shmat=no
 
24265
fi
 
24266
 
 
24267
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24268
      conftest$ac_exeext conftest.$ac_ext
 
24269
fi
 
24270
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
24271
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
 
24272
if test $ac_cv_func_shmat = yes; then
 
24273
  :
 
24274
else
 
24275
  { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
24276
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
 
24277
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
24278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24279
else
 
24280
  ac_check_lib_save_LIBS=$LIBS
 
24281
LIBS="-lipc  $LIBS"
 
24282
cat >conftest.$ac_ext <<_ACEOF
 
24283
/* confdefs.h.  */
 
24284
_ACEOF
 
24285
cat confdefs.h >>conftest.$ac_ext
 
24286
cat >>conftest.$ac_ext <<_ACEOF
 
24287
/* end confdefs.h.  */
 
24288
 
 
24289
/* Override any GCC internal prototype to avoid an error.
 
24290
   Use char because int might match the return type of a GCC
 
24291
   builtin and then its argument prototype would still apply.  */
 
24292
#ifdef __cplusplus
 
24293
extern "C"
 
24294
#endif
 
24295
char shmat ();
 
24296
int
 
24297
main ()
 
24298
{
 
24299
return shmat ();
 
24300
  ;
 
24301
  return 0;
 
24302
}
 
24303
_ACEOF
 
24304
rm -f conftest.$ac_objext conftest$ac_exeext
 
24305
if { (ac_try="$ac_link"
 
24306
case "(($ac_try" in
 
24307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24308
  *) ac_try_echo=$ac_try;;
 
24309
esac
 
24310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24311
  (eval "$ac_link") 2>conftest.er1
 
24312
  ac_status=$?
 
24313
  grep -v '^ *+' conftest.er1 >conftest.err
 
24314
  rm -f conftest.er1
 
24315
  cat conftest.err >&5
 
24316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24317
  (exit $ac_status); } && {
 
24318
         test -z "$ac_c_werror_flag" ||
 
24319
         test ! -s conftest.err
 
24320
       } && test -s conftest$ac_exeext &&
 
24321
       $as_test_x conftest$ac_exeext; then
 
24322
  ac_cv_lib_ipc_shmat=yes
 
24323
else
 
24324
  echo "$as_me: failed program was:" >&5
 
24325
sed 's/^/| /' conftest.$ac_ext >&5
 
24326
 
 
24327
        ac_cv_lib_ipc_shmat=no
 
24328
fi
 
24329
 
 
24330
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24331
      conftest$ac_exeext conftest.$ac_ext
 
24332
LIBS=$ac_check_lib_save_LIBS
 
24333
fi
 
24334
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
24335
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
 
24336
if test $ac_cv_lib_ipc_shmat = yes; then
 
24337
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
24338
fi
 
24339
 
 
24340
fi
 
24341
 
 
24342
   
 
24343
   # more headers that need to be explicitly included on darwin
 
24344
   
 
24345
 
 
24346
for ac_header in sys/types.h stdint.h
 
24347
do
 
24348
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24349
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24350
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24351
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24352
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24354
fi
 
24355
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24356
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24357
echo "${ECHO_T}$ac_res" >&6; }
 
24358
else
 
24359
  # Is the header compilable?
 
24360
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24361
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
24362
cat >conftest.$ac_ext <<_ACEOF
 
24363
/* confdefs.h.  */
 
24364
_ACEOF
 
24365
cat confdefs.h >>conftest.$ac_ext
 
24366
cat >>conftest.$ac_ext <<_ACEOF
 
24367
/* end confdefs.h.  */
 
24368
$ac_includes_default
 
24369
@%:@include <$ac_header>
 
24370
_ACEOF
 
24371
rm -f conftest.$ac_objext
 
24372
if { (ac_try="$ac_compile"
 
24373
case "(($ac_try" in
 
24374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24375
  *) ac_try_echo=$ac_try;;
 
24376
esac
 
24377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24378
  (eval "$ac_compile") 2>conftest.er1
 
24379
  ac_status=$?
 
24380
  grep -v '^ *+' conftest.er1 >conftest.err
 
24381
  rm -f conftest.er1
 
24382
  cat conftest.err >&5
 
24383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24384
  (exit $ac_status); } && {
 
24385
         test -z "$ac_c_werror_flag" ||
 
24386
         test ! -s conftest.err
 
24387
       } && test -s conftest.$ac_objext; then
 
24388
  ac_header_compiler=yes
 
24389
else
 
24390
  echo "$as_me: failed program was:" >&5
 
24391
sed 's/^/| /' conftest.$ac_ext >&5
 
24392
 
 
24393
        ac_header_compiler=no
 
24394
fi
 
24395
 
 
24396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24397
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24398
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24399
 
 
24400
# Is the header present?
 
24401
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24402
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
24403
cat >conftest.$ac_ext <<_ACEOF
 
24404
/* confdefs.h.  */
 
24405
_ACEOF
 
24406
cat confdefs.h >>conftest.$ac_ext
 
24407
cat >>conftest.$ac_ext <<_ACEOF
 
24408
/* end confdefs.h.  */
 
24409
@%:@include <$ac_header>
 
24410
_ACEOF
 
24411
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24412
case "(($ac_try" in
 
24413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24414
  *) ac_try_echo=$ac_try;;
 
24415
esac
 
24416
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24417
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24418
  ac_status=$?
 
24419
  grep -v '^ *+' conftest.er1 >conftest.err
 
24420
  rm -f conftest.er1
 
24421
  cat conftest.err >&5
 
24422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24423
  (exit $ac_status); } >/dev/null && {
 
24424
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24425
         test ! -s conftest.err
 
24426
       }; then
 
24427
  ac_header_preproc=yes
 
24428
else
 
24429
  echo "$as_me: failed program was:" >&5
 
24430
sed 's/^/| /' conftest.$ac_ext >&5
 
24431
 
 
24432
  ac_header_preproc=no
 
24433
fi
 
24434
 
 
24435
rm -f conftest.err conftest.$ac_ext
 
24436
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24437
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24438
 
 
24439
# So?  What about this header?
 
24440
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24441
  yes:no: )
 
24442
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24443
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24444
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24445
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24446
    ac_header_preproc=yes
 
24447
    ;;
 
24448
  no:yes:* )
 
24449
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24450
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24451
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24452
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24453
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24454
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24455
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24456
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24457
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24458
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24459
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24460
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24461
    
 
24462
    ;;
 
24463
esac
 
24464
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24465
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24466
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24468
else
 
24469
  eval "$as_ac_Header=\$ac_header_preproc"
 
24470
fi
 
24471
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24472
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24473
echo "${ECHO_T}$ac_res" >&6; }
 
24474
 
 
24475
fi
 
24476
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24477
  cat >>confdefs.h <<_ACEOF
 
24478
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24479
_ACEOF
 
24480
 
 
24481
fi
 
24482
 
 
24483
done
 
24484
 
 
24485
 
 
24486
   # sys/bitypes.h is needed for uint32_t and friends on Tru64
 
24487
   
 
24488
for ac_header in sys/bitypes.h
 
24489
do
 
24490
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24491
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24492
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24493
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24494
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24496
fi
 
24497
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24498
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24499
echo "${ECHO_T}$ac_res" >&6; }
 
24500
else
 
24501
  # Is the header compilable?
 
24502
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24503
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
24504
cat >conftest.$ac_ext <<_ACEOF
 
24505
/* confdefs.h.  */
 
24506
_ACEOF
 
24507
cat confdefs.h >>conftest.$ac_ext
 
24508
cat >>conftest.$ac_ext <<_ACEOF
 
24509
/* end confdefs.h.  */
 
24510
$ac_includes_default
 
24511
@%:@include <$ac_header>
 
24512
_ACEOF
 
24513
rm -f conftest.$ac_objext
 
24514
if { (ac_try="$ac_compile"
 
24515
case "(($ac_try" in
 
24516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24517
  *) ac_try_echo=$ac_try;;
 
24518
esac
 
24519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24520
  (eval "$ac_compile") 2>conftest.er1
 
24521
  ac_status=$?
 
24522
  grep -v '^ *+' conftest.er1 >conftest.err
 
24523
  rm -f conftest.er1
 
24524
  cat conftest.err >&5
 
24525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24526
  (exit $ac_status); } && {
 
24527
         test -z "$ac_c_werror_flag" ||
 
24528
         test ! -s conftest.err
 
24529
       } && test -s conftest.$ac_objext; then
 
24530
  ac_header_compiler=yes
 
24531
else
 
24532
  echo "$as_me: failed program was:" >&5
 
24533
sed 's/^/| /' conftest.$ac_ext >&5
 
24534
 
 
24535
        ac_header_compiler=no
 
24536
fi
 
24537
 
 
24538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24539
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24540
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24541
 
 
24542
# Is the header present?
 
24543
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24544
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
24545
cat >conftest.$ac_ext <<_ACEOF
 
24546
/* confdefs.h.  */
 
24547
_ACEOF
 
24548
cat confdefs.h >>conftest.$ac_ext
 
24549
cat >>conftest.$ac_ext <<_ACEOF
 
24550
/* end confdefs.h.  */
 
24551
@%:@include <$ac_header>
 
24552
_ACEOF
 
24553
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24554
case "(($ac_try" in
 
24555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24556
  *) ac_try_echo=$ac_try;;
 
24557
esac
 
24558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24559
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24560
  ac_status=$?
 
24561
  grep -v '^ *+' conftest.er1 >conftest.err
 
24562
  rm -f conftest.er1
 
24563
  cat conftest.err >&5
 
24564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24565
  (exit $ac_status); } >/dev/null && {
 
24566
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24567
         test ! -s conftest.err
 
24568
       }; then
 
24569
  ac_header_preproc=yes
 
24570
else
 
24571
  echo "$as_me: failed program was:" >&5
 
24572
sed 's/^/| /' conftest.$ac_ext >&5
 
24573
 
 
24574
  ac_header_preproc=no
 
24575
fi
 
24576
 
 
24577
rm -f conftest.err conftest.$ac_ext
 
24578
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24579
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24580
 
 
24581
# So?  What about this header?
 
24582
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24583
  yes:no: )
 
24584
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24585
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24586
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24587
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24588
    ac_header_preproc=yes
 
24589
    ;;
 
24590
  no:yes:* )
 
24591
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24592
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24593
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24594
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24595
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24596
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24597
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24598
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24599
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24600
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24601
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24602
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24603
    
 
24604
    ;;
 
24605
esac
 
24606
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24607
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24608
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24610
else
 
24611
  eval "$as_ac_Header=\$ac_header_preproc"
 
24612
fi
 
24613
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24614
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24615
echo "${ECHO_T}$ac_res" >&6; }
 
24616
 
 
24617
fi
 
24618
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24619
  cat >>confdefs.h <<_ACEOF
 
24620
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24621
_ACEOF
 
24622
 
 
24623
fi
 
24624
 
 
24625
done
 
24626
 
 
24627
 
 
24628
   # darwin requires a poll emulation library
 
24629
   { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
 
24630
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
 
24631
if test "${ac_cv_lib_poll_poll+set}" = set; then
 
24632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24633
else
 
24634
  ac_check_lib_save_LIBS=$LIBS
 
24635
LIBS="-lpoll  $LIBS"
 
24636
cat >conftest.$ac_ext <<_ACEOF
 
24637
/* confdefs.h.  */
 
24638
_ACEOF
 
24639
cat confdefs.h >>conftest.$ac_ext
 
24640
cat >>conftest.$ac_ext <<_ACEOF
 
24641
/* end confdefs.h.  */
 
24642
 
 
24643
/* Override any GCC internal prototype to avoid an error.
 
24644
   Use char because int might match the return type of a GCC
 
24645
   builtin and then its argument prototype would still apply.  */
 
24646
#ifdef __cplusplus
 
24647
extern "C"
 
24648
#endif
 
24649
char poll ();
 
24650
int
 
24651
main ()
 
24652
{
 
24653
return poll ();
 
24654
  ;
 
24655
  return 0;
 
24656
}
 
24657
_ACEOF
 
24658
rm -f conftest.$ac_objext conftest$ac_exeext
 
24659
if { (ac_try="$ac_link"
 
24660
case "(($ac_try" in
 
24661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24662
  *) ac_try_echo=$ac_try;;
 
24663
esac
 
24664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24665
  (eval "$ac_link") 2>conftest.er1
 
24666
  ac_status=$?
 
24667
  grep -v '^ *+' conftest.er1 >conftest.err
 
24668
  rm -f conftest.er1
 
24669
  cat conftest.err >&5
 
24670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24671
  (exit $ac_status); } && {
 
24672
         test -z "$ac_c_werror_flag" ||
 
24673
         test ! -s conftest.err
 
24674
       } && test -s conftest$ac_exeext &&
 
24675
       $as_test_x conftest$ac_exeext; then
 
24676
  ac_cv_lib_poll_poll=yes
 
24677
else
 
24678
  echo "$as_me: failed program was:" >&5
 
24679
sed 's/^/| /' conftest.$ac_ext >&5
 
24680
 
 
24681
        ac_cv_lib_poll_poll=no
 
24682
fi
 
24683
 
 
24684
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24685
      conftest$ac_exeext conftest.$ac_ext
 
24686
LIBS=$ac_check_lib_save_LIBS
 
24687
fi
 
24688
{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
 
24689
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
 
24690
if test $ac_cv_lib_poll_poll = yes; then
 
24691
  LIB_POLL="-lpoll"
 
24692
fi
 
24693
 
 
24694
 
 
24695
   # for some image handling on Mac OS X
 
24696
   
 
24697
for ac_header in Carbon/Carbon.h
 
24698
do
 
24699
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24700
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24701
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24702
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24703
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24705
fi
 
24706
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24707
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24708
echo "${ECHO_T}$ac_res" >&6; }
 
24709
else
 
24710
  # Is the header compilable?
 
24711
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24712
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
24713
cat >conftest.$ac_ext <<_ACEOF
 
24714
/* confdefs.h.  */
 
24715
_ACEOF
 
24716
cat confdefs.h >>conftest.$ac_ext
 
24717
cat >>conftest.$ac_ext <<_ACEOF
 
24718
/* end confdefs.h.  */
 
24719
$ac_includes_default
 
24720
@%:@include <$ac_header>
 
24721
_ACEOF
 
24722
rm -f conftest.$ac_objext
 
24723
if { (ac_try="$ac_compile"
 
24724
case "(($ac_try" in
 
24725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24726
  *) ac_try_echo=$ac_try;;
 
24727
esac
 
24728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24729
  (eval "$ac_compile") 2>conftest.er1
 
24730
  ac_status=$?
 
24731
  grep -v '^ *+' conftest.er1 >conftest.err
 
24732
  rm -f conftest.er1
 
24733
  cat conftest.err >&5
 
24734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24735
  (exit $ac_status); } && {
 
24736
         test -z "$ac_c_werror_flag" ||
 
24737
         test ! -s conftest.err
 
24738
       } && test -s conftest.$ac_objext; then
 
24739
  ac_header_compiler=yes
 
24740
else
 
24741
  echo "$as_me: failed program was:" >&5
 
24742
sed 's/^/| /' conftest.$ac_ext >&5
 
24743
 
 
24744
        ac_header_compiler=no
 
24745
fi
 
24746
 
 
24747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24748
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24749
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24750
 
 
24751
# Is the header present?
 
24752
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24753
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
24754
cat >conftest.$ac_ext <<_ACEOF
 
24755
/* confdefs.h.  */
 
24756
_ACEOF
 
24757
cat confdefs.h >>conftest.$ac_ext
 
24758
cat >>conftest.$ac_ext <<_ACEOF
 
24759
/* end confdefs.h.  */
 
24760
@%:@include <$ac_header>
 
24761
_ACEOF
 
24762
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24763
case "(($ac_try" in
 
24764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24765
  *) ac_try_echo=$ac_try;;
 
24766
esac
 
24767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24768
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24769
  ac_status=$?
 
24770
  grep -v '^ *+' conftest.er1 >conftest.err
 
24771
  rm -f conftest.er1
 
24772
  cat conftest.err >&5
 
24773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24774
  (exit $ac_status); } >/dev/null && {
 
24775
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24776
         test ! -s conftest.err
 
24777
       }; then
 
24778
  ac_header_preproc=yes
 
24779
else
 
24780
  echo "$as_me: failed program was:" >&5
 
24781
sed 's/^/| /' conftest.$ac_ext >&5
 
24782
 
 
24783
  ac_header_preproc=no
 
24784
fi
 
24785
 
 
24786
rm -f conftest.err conftest.$ac_ext
 
24787
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24788
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24789
 
 
24790
# So?  What about this header?
 
24791
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24792
  yes:no: )
 
24793
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24794
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24795
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24796
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24797
    ac_header_preproc=yes
 
24798
    ;;
 
24799
  no:yes:* )
 
24800
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24801
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24802
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24803
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24804
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24805
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24806
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24807
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24808
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24809
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24810
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24811
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24812
    
 
24813
    ;;
 
24814
esac
 
24815
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24816
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24817
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24819
else
 
24820
  eval "$as_ac_Header=\$ac_header_preproc"
 
24821
fi
 
24822
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24823
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24824
echo "${ECHO_T}$ac_res" >&6; }
 
24825
 
 
24826
fi
 
24827
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24828
  cat >>confdefs.h <<_ACEOF
 
24829
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24830
_ACEOF
 
24831
 
 
24832
fi
 
24833
 
 
24834
done
 
24835
 
 
24836
 
 
24837
   # CoreAudio framework
 
24838
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
24839
  { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
24840
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 
24841
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
24842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24843
fi
 
24844
{ echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
24845
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 
24846
else
 
24847
  # Is the header compilable?
 
24848
{ echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 
24849
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
 
24850
cat >conftest.$ac_ext <<_ACEOF
 
24851
/* confdefs.h.  */
 
24852
_ACEOF
 
24853
cat confdefs.h >>conftest.$ac_ext
 
24854
cat >>conftest.$ac_ext <<_ACEOF
 
24855
/* end confdefs.h.  */
 
24856
$ac_includes_default
 
24857
@%:@include <CoreAudio/CoreAudio.h>
 
24858
_ACEOF
 
24859
rm -f conftest.$ac_objext
 
24860
if { (ac_try="$ac_compile"
 
24861
case "(($ac_try" in
 
24862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24863
  *) ac_try_echo=$ac_try;;
 
24864
esac
 
24865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24866
  (eval "$ac_compile") 2>conftest.er1
 
24867
  ac_status=$?
 
24868
  grep -v '^ *+' conftest.er1 >conftest.err
 
24869
  rm -f conftest.er1
 
24870
  cat conftest.err >&5
 
24871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24872
  (exit $ac_status); } && {
 
24873
         test -z "$ac_c_werror_flag" ||
 
24874
         test ! -s conftest.err
 
24875
       } && test -s conftest.$ac_objext; then
 
24876
  ac_header_compiler=yes
 
24877
else
 
24878
  echo "$as_me: failed program was:" >&5
 
24879
sed 's/^/| /' conftest.$ac_ext >&5
 
24880
 
 
24881
        ac_header_compiler=no
 
24882
fi
 
24883
 
 
24884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24885
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24886
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24887
 
 
24888
# Is the header present?
 
24889
{ echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 
24890
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
 
24891
cat >conftest.$ac_ext <<_ACEOF
 
24892
/* confdefs.h.  */
 
24893
_ACEOF
 
24894
cat confdefs.h >>conftest.$ac_ext
 
24895
cat >>conftest.$ac_ext <<_ACEOF
 
24896
/* end confdefs.h.  */
 
24897
@%:@include <CoreAudio/CoreAudio.h>
 
24898
_ACEOF
 
24899
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24900
case "(($ac_try" in
 
24901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24902
  *) ac_try_echo=$ac_try;;
 
24903
esac
 
24904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24905
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24906
  ac_status=$?
 
24907
  grep -v '^ *+' conftest.er1 >conftest.err
 
24908
  rm -f conftest.er1
 
24909
  cat conftest.err >&5
 
24910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24911
  (exit $ac_status); } >/dev/null && {
 
24912
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24913
         test ! -s conftest.err
 
24914
       }; then
 
24915
  ac_header_preproc=yes
 
24916
else
 
24917
  echo "$as_me: failed program was:" >&5
 
24918
sed 's/^/| /' conftest.$ac_ext >&5
 
24919
 
 
24920
  ac_header_preproc=no
 
24921
fi
 
24922
 
 
24923
rm -f conftest.err conftest.$ac_ext
 
24924
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24925
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24926
 
 
24927
# So?  What about this header?
 
24928
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24929
  yes:no: )
 
24930
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24931
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24932
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 
24933
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 
24934
    ac_header_preproc=yes
 
24935
    ;;
 
24936
  no:yes:* )
 
24937
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 
24938
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 
24939
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 
24940
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 
24941
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 
24942
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 
24943
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24944
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24945
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 
24946
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 
24947
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 
24948
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 
24949
    
 
24950
    ;;
 
24951
esac
 
24952
{ echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 
24953
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 
24954
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 
24955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24956
else
 
24957
  ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 
24958
fi
 
24959
{ echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 
24960
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 
24961
 
 
24962
fi
 
24963
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 
24964
  
 
24965
     
 
24966
cat >>confdefs.h <<\_ACEOF
 
24967
@%:@define HAVE_COREAUDIO 1
 
24968
_ACEOF
 
24969
 
 
24970
     FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
 
24971
   
 
24972
fi
 
24973
 
 
24974
 
 
24975
 
 
24976
   
 
24977
  { echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
 
24978
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6; }
 
24979
  kde_libs_safe="$LIBS"
 
24980
  LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
 
24981
  cat >conftest.$ac_ext <<_ACEOF
 
24982
/* confdefs.h.  */
 
24983
_ACEOF
 
24984
cat confdefs.h >>conftest.$ac_ext
 
24985
cat >>conftest.$ac_ext <<_ACEOF
 
24986
/* end confdefs.h.  */
 
24987
 
 
24988
#include <sys/types.h>
 
24989
#include <netinet/in.h>
 
24990
#include <arpa/nameser.h>
 
24991
#include <resolv.h>
 
24992
    
 
24993
int
 
24994
main ()
 
24995
{
 
24996
 
 
24997
      res_init(); 
 
24998
    
 
24999
  ;
 
25000
  return 0;
 
25001
}
 
25002
_ACEOF
 
25003
rm -f conftest.$ac_objext conftest$ac_exeext
 
25004
if { (ac_try="$ac_link"
 
25005
case "(($ac_try" in
 
25006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25007
  *) ac_try_echo=$ac_try;;
 
25008
esac
 
25009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25010
  (eval "$ac_link") 2>conftest.er1
 
25011
  ac_status=$?
 
25012
  grep -v '^ *+' conftest.er1 >conftest.err
 
25013
  rm -f conftest.er1
 
25014
  cat conftest.err >&5
 
25015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25016
  (exit $ac_status); } && {
 
25017
         test -z "$ac_c_werror_flag" ||
 
25018
         test ! -s conftest.err
 
25019
       } && test -s conftest$ac_exeext &&
 
25020
       $as_test_x conftest$ac_exeext; then
 
25021
  
 
25022
      LIBRESOLV="-lresolv"
 
25023
      { echo "$as_me:$LINENO: result: yes" >&5
 
25024
echo "${ECHO_T}yes" >&6; }
 
25025
      
 
25026
cat >>confdefs.h <<\_ACEOF
 
25027
@%:@define HAVE_RES_INIT 1
 
25028
_ACEOF
 
25029
 
 
25030
    
 
25031
else
 
25032
  echo "$as_me: failed program was:" >&5
 
25033
sed 's/^/| /' conftest.$ac_ext >&5
 
25034
 
 
25035
         { echo "$as_me:$LINENO: result: no" >&5
 
25036
echo "${ECHO_T}no" >&6; } 
 
25037
  
 
25038
fi
 
25039
 
 
25040
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25041
      conftest$ac_exeext conftest.$ac_ext
 
25042
  LIBS=$kde_libs_safe
 
25043
  
 
25044
 
 
25045
  
 
25046
{ echo "$as_me:$LINENO: checking for res_init" >&5
 
25047
echo $ECHO_N "checking for res_init... $ECHO_C" >&6; }
 
25048
if test "${kde_cv_func_res_init+set}" = set; then
 
25049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25050
else
 
25051
  
 
25052
 
 
25053
 ac_ext=cpp
 
25054
ac_cpp='$CXXCPP $CPPFLAGS'
 
25055
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
25056
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
25057
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
25058
 
 
25059
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
25060
 
 
25061
 
 
25062
save_CXXFLAGS="$CXXFLAGS"
 
25063
kde_safe_LIBS="$LIBS"
 
25064
LIBS="$LIBS $X_EXTRA_LIBS"
 
25065
if test "$GXX" = "yes"; then
 
25066
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
25067
fi
 
25068
cat >conftest.$ac_ext <<_ACEOF
 
25069
/* confdefs.h.  */
 
25070
_ACEOF
 
25071
cat confdefs.h >>conftest.$ac_ext
 
25072
cat >>conftest.$ac_ext <<_ACEOF
 
25073
/* end confdefs.h.  */
 
25074
 
 
25075
 
 
25076
#include <sys/types.h>
 
25077
#include <netinet/in.h>
 
25078
#include <arpa/nameser.h>
 
25079
#include <resolv.h>
 
25080
    
 
25081
 
 
25082
int
 
25083
main ()
 
25084
{
 
25085
 
 
25086
res_init()
 
25087
 
 
25088
  ;
 
25089
  return 0;
 
25090
}
 
25091
_ACEOF
 
25092
rm -f conftest.$ac_objext
 
25093
if { (ac_try="$ac_compile"
 
25094
case "(($ac_try" in
 
25095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25096
  *) ac_try_echo=$ac_try;;
 
25097
esac
 
25098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25099
  (eval "$ac_compile") 2>conftest.er1
 
25100
  ac_status=$?
 
25101
  grep -v '^ *+' conftest.er1 >conftest.err
 
25102
  rm -f conftest.er1
 
25103
  cat conftest.err >&5
 
25104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25105
  (exit $ac_status); } && {
 
25106
         test -z "$ac_cxx_werror_flag" ||
 
25107
         test ! -s conftest.err
 
25108
       } && test -s conftest.$ac_objext; then
 
25109
  kde_cv_func_res_init=yes
 
25110
else
 
25111
  echo "$as_me: failed program was:" >&5
 
25112
sed 's/^/| /' conftest.$ac_ext >&5
 
25113
 
 
25114
        kde_cv_func_res_init=no
 
25115
fi
 
25116
 
 
25117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25118
CXXFLAGS="$save_CXXFLAGS"
 
25119
LIBS="$kde_safe_LIBS"
 
25120
ac_ext=c
 
25121
ac_cpp='$CPP $CPPFLAGS'
 
25122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
25123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
25124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
25125
 
 
25126
 
 
25127
fi
 
25128
 
 
25129
 
 
25130
{ echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
 
25131
echo "${ECHO_T}$kde_cv_func_res_init" >&6; }
 
25132
 
 
25133
{ echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
 
25134
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6; }
 
25135
if test "${kde_cv_proto_res_init+set}" = set; then
 
25136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25137
else
 
25138
  
 
25139
if test "x$kde_cv_func_res_init" = xyes; then
 
25140
  kde_cv_proto_res_init=no
 
25141
else
 
25142
  case "res_init" in
 
25143
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
25144
                kde_cv_proto_res_init="yes - in libkdefakes"
 
25145
                ;;
 
25146
        *)
 
25147
                kde_cv_proto_res_init=unknown
 
25148
                ;;
 
25149
  esac
 
25150
fi
 
25151
 
 
25152
if test "x$kde_cv_proto_res_init" = xunknown; then
 
25153
 
 
25154
 
 
25155
 ac_ext=cpp
 
25156
ac_cpp='$CXXCPP $CPPFLAGS'
 
25157
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
25158
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
25159
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
25160
 
 
25161
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
25162
 
 
25163
 
 
25164
  kde_safe_libs=$LIBS
 
25165
  LIBS="$LIBS $X_EXTRA_LIBS"
 
25166
  cat >conftest.$ac_ext <<_ACEOF
 
25167
/* confdefs.h.  */
 
25168
_ACEOF
 
25169
cat confdefs.h >>conftest.$ac_ext
 
25170
cat >>conftest.$ac_ext <<_ACEOF
 
25171
/* end confdefs.h.  */
 
25172
 
 
25173
 
 
25174
#include <sys/types.h>
 
25175
#include <netinet/in.h>
 
25176
#include <arpa/nameser.h>
 
25177
#include <resolv.h>
 
25178
    
 
25179
 
 
25180
extern "C" int res_init(void);
 
25181
 
 
25182
int
 
25183
main ()
 
25184
{
 
25185
 
 
25186
res_init()
 
25187
 
 
25188
  ;
 
25189
  return 0;
 
25190
}
 
25191
_ACEOF
 
25192
rm -f conftest.$ac_objext conftest$ac_exeext
 
25193
if { (ac_try="$ac_link"
 
25194
case "(($ac_try" in
 
25195
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25196
  *) ac_try_echo=$ac_try;;
 
25197
esac
 
25198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25199
  (eval "$ac_link") 2>conftest.er1
 
25200
  ac_status=$?
 
25201
  grep -v '^ *+' conftest.er1 >conftest.err
 
25202
  rm -f conftest.er1
 
25203
  cat conftest.err >&5
 
25204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25205
  (exit $ac_status); } && {
 
25206
         test -z "$ac_cxx_werror_flag" ||
 
25207
         test ! -s conftest.err
 
25208
       } && test -s conftest$ac_exeext &&
 
25209
       $as_test_x conftest$ac_exeext; then
 
25210
   kde_cv_func_res_init=yes
 
25211
  kde_cv_proto_res_init=yes 
 
25212
else
 
25213
  echo "$as_me: failed program was:" >&5
 
25214
sed 's/^/| /' conftest.$ac_ext >&5
 
25215
 
 
25216
        kde_cv_proto_res_init="res_init unavailable"
 
25217
 
 
25218
fi
 
25219
 
 
25220
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25221
      conftest$ac_exeext conftest.$ac_ext
 
25222
LIBS=$kde_safe_libs
 
25223
ac_ext=c
 
25224
ac_cpp='$CPP $CPPFLAGS'
 
25225
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
25226
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
25227
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
25228
 
 
25229
fi
 
25230
 
 
25231
fi
 
25232
 
 
25233
{ echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
 
25234
echo "${ECHO_T}$kde_cv_proto_res_init" >&6; }
 
25235
 
 
25236
if test "x$kde_cv_func_res_init" = xyes; then
 
25237
  
 
25238
cat >>confdefs.h <<\_ACEOF
 
25239
@%:@define HAVE_RES_INIT 1
 
25240
_ACEOF
 
25241
 
 
25242
  
 
25243
fi
 
25244
if test "x$kde_cv_proto_res_init" = xno; then
 
25245
  
 
25246
cat >>confdefs.h <<\_ACEOF
 
25247
@%:@define HAVE_RES_INIT_PROTO 1
 
25248
_ACEOF
 
25249
 
 
25250
fi
 
25251
 
 
25252
 
 
25253
 
 
25254
 
 
25255
 
 
25256
   
 
25257
   
 
25258
   LIBSOCKET="$X_EXTRA_LIBS"
 
25259
   
 
25260
   
 
25261
   { echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
 
25262
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6; }
 
25263
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
 
25264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25265
else
 
25266
  ac_check_lib_save_LIBS=$LIBS
 
25267
LIBS="-lucb  $LIBS"
 
25268
cat >conftest.$ac_ext <<_ACEOF
 
25269
/* confdefs.h.  */
 
25270
_ACEOF
 
25271
cat confdefs.h >>conftest.$ac_ext
 
25272
cat >>conftest.$ac_ext <<_ACEOF
 
25273
/* end confdefs.h.  */
 
25274
 
 
25275
/* Override any GCC internal prototype to avoid an error.
 
25276
   Use char because int might match the return type of a GCC
 
25277
   builtin and then its argument prototype would still apply.  */
 
25278
#ifdef __cplusplus
 
25279
extern "C"
 
25280
#endif
 
25281
char killpg ();
 
25282
int
 
25283
main ()
 
25284
{
 
25285
return killpg ();
 
25286
  ;
 
25287
  return 0;
 
25288
}
 
25289
_ACEOF
 
25290
rm -f conftest.$ac_objext conftest$ac_exeext
 
25291
if { (ac_try="$ac_link"
 
25292
case "(($ac_try" in
 
25293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25294
  *) ac_try_echo=$ac_try;;
 
25295
esac
 
25296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25297
  (eval "$ac_link") 2>conftest.er1
 
25298
  ac_status=$?
 
25299
  grep -v '^ *+' conftest.er1 >conftest.err
 
25300
  rm -f conftest.er1
 
25301
  cat conftest.err >&5
 
25302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25303
  (exit $ac_status); } && {
 
25304
         test -z "$ac_c_werror_flag" ||
 
25305
         test ! -s conftest.err
 
25306
       } && test -s conftest$ac_exeext &&
 
25307
       $as_test_x conftest$ac_exeext; then
 
25308
  ac_cv_lib_ucb_killpg=yes
 
25309
else
 
25310
  echo "$as_me: failed program was:" >&5
 
25311
sed 's/^/| /' conftest.$ac_ext >&5
 
25312
 
 
25313
        ac_cv_lib_ucb_killpg=no
 
25314
fi
 
25315
 
 
25316
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25317
      conftest$ac_exeext conftest.$ac_ext
 
25318
LIBS=$ac_check_lib_save_LIBS
 
25319
fi
 
25320
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
 
25321
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6; }
 
25322
if test $ac_cv_lib_ucb_killpg = yes; then
 
25323
  LIBUCB="-lucb"
 
25324
fi
 
25325
    
 
25326
 
 
25327
   case $host in     *-*-lynxos* )
 
25328
        { echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
 
25329
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6; }
 
25330
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
 
25331
        { echo "$as_me:$LINENO: result: disabled" >&5
 
25332
echo "${ECHO_T}disabled" >&6; }
 
25333
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
25334
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
 
25335
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
25336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25337
else
 
25338
  ac_check_lib_save_LIBS=$LIBS
 
25339
LIBS="-lbsd  $LIBS"
 
25340
cat >conftest.$ac_ext <<_ACEOF
 
25341
/* confdefs.h.  */
 
25342
_ACEOF
 
25343
cat confdefs.h >>conftest.$ac_ext
 
25344
cat >>conftest.$ac_ext <<_ACEOF
 
25345
/* end confdefs.h.  */
 
25346
 
 
25347
/* Override any GCC internal prototype to avoid an error.
 
25348
   Use char because int might match the return type of a GCC
 
25349
   builtin and then its argument prototype would still apply.  */
 
25350
#ifdef __cplusplus
 
25351
extern "C"
 
25352
#endif
 
25353
char gethostbyname ();
 
25354
int
 
25355
main ()
 
25356
{
 
25357
return gethostbyname ();
 
25358
  ;
 
25359
  return 0;
 
25360
}
 
25361
_ACEOF
 
25362
rm -f conftest.$ac_objext conftest$ac_exeext
 
25363
if { (ac_try="$ac_link"
 
25364
case "(($ac_try" in
 
25365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25366
  *) ac_try_echo=$ac_try;;
 
25367
esac
 
25368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25369
  (eval "$ac_link") 2>conftest.er1
 
25370
  ac_status=$?
 
25371
  grep -v '^ *+' conftest.er1 >conftest.err
 
25372
  rm -f conftest.er1
 
25373
  cat conftest.err >&5
 
25374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25375
  (exit $ac_status); } && {
 
25376
         test -z "$ac_c_werror_flag" ||
 
25377
         test ! -s conftest.err
 
25378
       } && test -s conftest$ac_exeext &&
 
25379
       $as_test_x conftest$ac_exeext; then
 
25380
  ac_cv_lib_bsd_gethostbyname=yes
 
25381
else
 
25382
  echo "$as_me: failed program was:" >&5
 
25383
sed 's/^/| /' conftest.$ac_ext >&5
 
25384
 
 
25385
        ac_cv_lib_bsd_gethostbyname=no
 
25386
fi
 
25387
 
 
25388
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25389
      conftest$ac_exeext conftest.$ac_ext
 
25390
LIBS=$ac_check_lib_save_LIBS
 
25391
fi
 
25392
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
25393
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
 
25394
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
25395
  LIBSOCKET="-lbsd"
 
25396
fi
 
25397
          ;;
 
25398
    esac
 
25399
 
 
25400
     { echo "$as_me:$LINENO: checking for int" >&5
 
25401
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
 
25402
if test "${ac_cv_type_int+set}" = set; then
 
25403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25404
else
 
25405
  cat >conftest.$ac_ext <<_ACEOF
 
25406
/* confdefs.h.  */
 
25407
_ACEOF
 
25408
cat confdefs.h >>conftest.$ac_ext
 
25409
cat >>conftest.$ac_ext <<_ACEOF
 
25410
/* end confdefs.h.  */
 
25411
$ac_includes_default
 
25412
typedef int ac__type_new_;
 
25413
int
 
25414
main ()
 
25415
{
 
25416
if ((ac__type_new_ *) 0)
 
25417
  return 0;
 
25418
if (sizeof (ac__type_new_))
 
25419
  return 0;
 
25420
  ;
 
25421
  return 0;
 
25422
}
 
25423
_ACEOF
 
25424
rm -f conftest.$ac_objext
 
25425
if { (ac_try="$ac_compile"
 
25426
case "(($ac_try" in
 
25427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25428
  *) ac_try_echo=$ac_try;;
 
25429
esac
 
25430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25431
  (eval "$ac_compile") 2>conftest.er1
 
25432
  ac_status=$?
 
25433
  grep -v '^ *+' conftest.er1 >conftest.err
 
25434
  rm -f conftest.er1
 
25435
  cat conftest.err >&5
 
25436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25437
  (exit $ac_status); } && {
 
25438
         test -z "$ac_c_werror_flag" ||
 
25439
         test ! -s conftest.err
 
25440
       } && test -s conftest.$ac_objext; then
 
25441
  ac_cv_type_int=yes
 
25442
else
 
25443
  echo "$as_me: failed program was:" >&5
 
25444
sed 's/^/| /' conftest.$ac_ext >&5
 
25445
 
 
25446
        ac_cv_type_int=no
 
25447
fi
 
25448
 
 
25449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25450
fi
 
25451
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
25452
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
25453
 
 
25454
# The cast to long int works around a bug in the HP C Compiler
 
25455
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25456
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25457
# This bug is HP SR number 8606223364.
 
25458
{ echo "$as_me:$LINENO: checking size of int" >&5
 
25459
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
25460
if test "${ac_cv_sizeof_int+set}" = set; then
 
25461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25462
else
 
25463
  if test "$cross_compiling" = yes; then
 
25464
  # Depending upon the size, compute the lo and hi bounds.
 
25465
cat >conftest.$ac_ext <<_ACEOF
 
25466
/* confdefs.h.  */
 
25467
_ACEOF
 
25468
cat confdefs.h >>conftest.$ac_ext
 
25469
cat >>conftest.$ac_ext <<_ACEOF
 
25470
/* end confdefs.h.  */
 
25471
$ac_includes_default
 
25472
   typedef int ac__type_sizeof_;
 
25473
int
 
25474
main ()
 
25475
{
 
25476
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
 
25477
test_array @<:@0@:>@ = 0
 
25478
 
 
25479
  ;
 
25480
  return 0;
 
25481
}
 
25482
_ACEOF
 
25483
rm -f conftest.$ac_objext
 
25484
if { (ac_try="$ac_compile"
 
25485
case "(($ac_try" in
 
25486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25487
  *) ac_try_echo=$ac_try;;
 
25488
esac
 
25489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25490
  (eval "$ac_compile") 2>conftest.er1
 
25491
  ac_status=$?
 
25492
  grep -v '^ *+' conftest.er1 >conftest.err
 
25493
  rm -f conftest.er1
 
25494
  cat conftest.err >&5
 
25495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25496
  (exit $ac_status); } && {
 
25497
         test -z "$ac_c_werror_flag" ||
 
25498
         test ! -s conftest.err
 
25499
       } && test -s conftest.$ac_objext; then
 
25500
  ac_lo=0 ac_mid=0
 
25501
  while :; do
 
25502
    cat >conftest.$ac_ext <<_ACEOF
 
25503
/* confdefs.h.  */
 
25504
_ACEOF
 
25505
cat confdefs.h >>conftest.$ac_ext
 
25506
cat >>conftest.$ac_ext <<_ACEOF
 
25507
/* end confdefs.h.  */
 
25508
$ac_includes_default
 
25509
   typedef int ac__type_sizeof_;
 
25510
int
 
25511
main ()
 
25512
{
 
25513
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
25514
test_array @<:@0@:>@ = 0
 
25515
 
 
25516
  ;
 
25517
  return 0;
 
25518
}
 
25519
_ACEOF
 
25520
rm -f conftest.$ac_objext
 
25521
if { (ac_try="$ac_compile"
 
25522
case "(($ac_try" in
 
25523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25524
  *) ac_try_echo=$ac_try;;
 
25525
esac
 
25526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25527
  (eval "$ac_compile") 2>conftest.er1
 
25528
  ac_status=$?
 
25529
  grep -v '^ *+' conftest.er1 >conftest.err
 
25530
  rm -f conftest.er1
 
25531
  cat conftest.err >&5
 
25532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25533
  (exit $ac_status); } && {
 
25534
         test -z "$ac_c_werror_flag" ||
 
25535
         test ! -s conftest.err
 
25536
       } && test -s conftest.$ac_objext; then
 
25537
  ac_hi=$ac_mid; break
 
25538
else
 
25539
  echo "$as_me: failed program was:" >&5
 
25540
sed 's/^/| /' conftest.$ac_ext >&5
 
25541
 
 
25542
        ac_lo=`expr $ac_mid + 1`
 
25543
                        if test $ac_lo -le $ac_mid; then
 
25544
                          ac_lo= ac_hi=
 
25545
                          break
 
25546
                        fi
 
25547
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
25548
fi
 
25549
 
 
25550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25551
  done
 
25552
else
 
25553
  echo "$as_me: failed program was:" >&5
 
25554
sed 's/^/| /' conftest.$ac_ext >&5
 
25555
 
 
25556
        cat >conftest.$ac_ext <<_ACEOF
 
25557
/* confdefs.h.  */
 
25558
_ACEOF
 
25559
cat confdefs.h >>conftest.$ac_ext
 
25560
cat >>conftest.$ac_ext <<_ACEOF
 
25561
/* end confdefs.h.  */
 
25562
$ac_includes_default
 
25563
   typedef int ac__type_sizeof_;
 
25564
int
 
25565
main ()
 
25566
{
 
25567
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
 
25568
test_array @<:@0@:>@ = 0
 
25569
 
 
25570
  ;
 
25571
  return 0;
 
25572
}
 
25573
_ACEOF
 
25574
rm -f conftest.$ac_objext
 
25575
if { (ac_try="$ac_compile"
 
25576
case "(($ac_try" in
 
25577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25578
  *) ac_try_echo=$ac_try;;
 
25579
esac
 
25580
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25581
  (eval "$ac_compile") 2>conftest.er1
 
25582
  ac_status=$?
 
25583
  grep -v '^ *+' conftest.er1 >conftest.err
 
25584
  rm -f conftest.er1
 
25585
  cat conftest.err >&5
 
25586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25587
  (exit $ac_status); } && {
 
25588
         test -z "$ac_c_werror_flag" ||
 
25589
         test ! -s conftest.err
 
25590
       } && test -s conftest.$ac_objext; then
 
25591
  ac_hi=-1 ac_mid=-1
 
25592
  while :; do
 
25593
    cat >conftest.$ac_ext <<_ACEOF
 
25594
/* confdefs.h.  */
 
25595
_ACEOF
 
25596
cat confdefs.h >>conftest.$ac_ext
 
25597
cat >>conftest.$ac_ext <<_ACEOF
 
25598
/* end confdefs.h.  */
 
25599
$ac_includes_default
 
25600
   typedef int ac__type_sizeof_;
 
25601
int
 
25602
main ()
 
25603
{
 
25604
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
 
25605
test_array @<:@0@:>@ = 0
 
25606
 
 
25607
  ;
 
25608
  return 0;
 
25609
}
 
25610
_ACEOF
 
25611
rm -f conftest.$ac_objext
 
25612
if { (ac_try="$ac_compile"
 
25613
case "(($ac_try" in
 
25614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25615
  *) ac_try_echo=$ac_try;;
 
25616
esac
 
25617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25618
  (eval "$ac_compile") 2>conftest.er1
 
25619
  ac_status=$?
 
25620
  grep -v '^ *+' conftest.er1 >conftest.err
 
25621
  rm -f conftest.er1
 
25622
  cat conftest.err >&5
 
25623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25624
  (exit $ac_status); } && {
 
25625
         test -z "$ac_c_werror_flag" ||
 
25626
         test ! -s conftest.err
 
25627
       } && test -s conftest.$ac_objext; then
 
25628
  ac_lo=$ac_mid; break
 
25629
else
 
25630
  echo "$as_me: failed program was:" >&5
 
25631
sed 's/^/| /' conftest.$ac_ext >&5
 
25632
 
 
25633
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
25634
                        if test $ac_mid -le $ac_hi; then
 
25635
                          ac_lo= ac_hi=
 
25636
                          break
 
25637
                        fi
 
25638
                        ac_mid=`expr 2 '*' $ac_mid`
 
25639
fi
 
25640
 
 
25641
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25642
  done
 
25643
else
 
25644
  echo "$as_me: failed program was:" >&5
 
25645
sed 's/^/| /' conftest.$ac_ext >&5
 
25646
 
 
25647
        ac_lo= ac_hi=
 
25648
fi
 
25649
 
 
25650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25651
fi
 
25652
 
 
25653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25654
# Binary search between lo and hi bounds.
 
25655
while test "x$ac_lo" != "x$ac_hi"; do
 
25656
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25657
  cat >conftest.$ac_ext <<_ACEOF
 
25658
/* confdefs.h.  */
 
25659
_ACEOF
 
25660
cat confdefs.h >>conftest.$ac_ext
 
25661
cat >>conftest.$ac_ext <<_ACEOF
 
25662
/* end confdefs.h.  */
 
25663
$ac_includes_default
 
25664
   typedef int ac__type_sizeof_;
 
25665
int
 
25666
main ()
 
25667
{
 
25668
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
25669
test_array @<:@0@:>@ = 0
 
25670
 
 
25671
  ;
 
25672
  return 0;
 
25673
}
 
25674
_ACEOF
 
25675
rm -f conftest.$ac_objext
 
25676
if { (ac_try="$ac_compile"
 
25677
case "(($ac_try" in
 
25678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25679
  *) ac_try_echo=$ac_try;;
 
25680
esac
 
25681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25682
  (eval "$ac_compile") 2>conftest.er1
 
25683
  ac_status=$?
 
25684
  grep -v '^ *+' conftest.er1 >conftest.err
 
25685
  rm -f conftest.er1
 
25686
  cat conftest.err >&5
 
25687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25688
  (exit $ac_status); } && {
 
25689
         test -z "$ac_c_werror_flag" ||
 
25690
         test ! -s conftest.err
 
25691
       } && test -s conftest.$ac_objext; then
 
25692
  ac_hi=$ac_mid
 
25693
else
 
25694
  echo "$as_me: failed program was:" >&5
 
25695
sed 's/^/| /' conftest.$ac_ext >&5
 
25696
 
 
25697
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
25698
fi
 
25699
 
 
25700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25701
done
 
25702
case $ac_lo in
 
25703
?*) ac_cv_sizeof_int=$ac_lo;;
 
25704
'') if test "$ac_cv_type_int" = yes; then
 
25705
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
25706
See \`config.log' for more details." >&5
 
25707
echo "$as_me: error: cannot compute sizeof (int)
 
25708
See \`config.log' for more details." >&2;}
 
25709
   { (exit 77); exit 77; }; }
 
25710
   else
 
25711
     ac_cv_sizeof_int=0
 
25712
   fi ;;
 
25713
esac
 
25714
else
 
25715
  cat >conftest.$ac_ext <<_ACEOF
 
25716
/* confdefs.h.  */
 
25717
_ACEOF
 
25718
cat confdefs.h >>conftest.$ac_ext
 
25719
cat >>conftest.$ac_ext <<_ACEOF
 
25720
/* end confdefs.h.  */
 
25721
$ac_includes_default
 
25722
   typedef int ac__type_sizeof_;
 
25723
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25724
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25725
@%:@include <stdio.h>
 
25726
@%:@include <stdlib.h>
 
25727
int
 
25728
main ()
 
25729
{
 
25730
 
 
25731
  FILE *f = fopen ("conftest.val", "w");
 
25732
  if (! f)
 
25733
    return 1;
 
25734
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
25735
    {
 
25736
      long int i = longval ();
 
25737
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25738
        return 1;
 
25739
      fprintf (f, "%ld\n", i);
 
25740
    }
 
25741
  else
 
25742
    {
 
25743
      unsigned long int i = ulongval ();
 
25744
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25745
        return 1;
 
25746
      fprintf (f, "%lu\n", i);
 
25747
    }
 
25748
  return ferror (f) || fclose (f) != 0;
 
25749
 
 
25750
  ;
 
25751
  return 0;
 
25752
}
 
25753
_ACEOF
 
25754
rm -f conftest$ac_exeext
 
25755
if { (ac_try="$ac_link"
 
25756
case "(($ac_try" in
 
25757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25758
  *) ac_try_echo=$ac_try;;
 
25759
esac
 
25760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25761
  (eval "$ac_link") 2>&5
 
25762
  ac_status=$?
 
25763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25764
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25765
  { (case "(($ac_try" in
 
25766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25767
  *) ac_try_echo=$ac_try;;
 
25768
esac
 
25769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25770
  (eval "$ac_try") 2>&5
 
25771
  ac_status=$?
 
25772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25773
  (exit $ac_status); }; }; then
 
25774
  ac_cv_sizeof_int=`cat conftest.val`
 
25775
else
 
25776
  echo "$as_me: program exited with status $ac_status" >&5
 
25777
echo "$as_me: failed program was:" >&5
 
25778
sed 's/^/| /' conftest.$ac_ext >&5
 
25779
 
 
25780
( exit $ac_status )
 
25781
if test "$ac_cv_type_int" = yes; then
 
25782
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
25783
See \`config.log' for more details." >&5
 
25784
echo "$as_me: error: cannot compute sizeof (int)
 
25785
See \`config.log' for more details." >&2;}
 
25786
   { (exit 77); exit 77; }; }
 
25787
   else
 
25788
     ac_cv_sizeof_int=0
 
25789
   fi
 
25790
fi
 
25791
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25792
fi
 
25793
rm -f conftest.val
 
25794
fi
 
25795
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
25796
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
25797
 
 
25798
 
 
25799
 
 
25800
cat >>confdefs.h <<_ACEOF
 
25801
@%:@define SIZEOF_INT $ac_cv_sizeof_int
 
25802
_ACEOF
 
25803
 
 
25804
   { echo "$as_me:$LINENO: checking for short" >&5
 
25805
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
 
25806
if test "${ac_cv_type_short+set}" = set; then
 
25807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25808
else
 
25809
  cat >conftest.$ac_ext <<_ACEOF
 
25810
/* confdefs.h.  */
 
25811
_ACEOF
 
25812
cat confdefs.h >>conftest.$ac_ext
 
25813
cat >>conftest.$ac_ext <<_ACEOF
 
25814
/* end confdefs.h.  */
 
25815
$ac_includes_default
 
25816
typedef short ac__type_new_;
 
25817
int
 
25818
main ()
 
25819
{
 
25820
if ((ac__type_new_ *) 0)
 
25821
  return 0;
 
25822
if (sizeof (ac__type_new_))
 
25823
  return 0;
 
25824
  ;
 
25825
  return 0;
 
25826
}
 
25827
_ACEOF
 
25828
rm -f conftest.$ac_objext
 
25829
if { (ac_try="$ac_compile"
 
25830
case "(($ac_try" in
 
25831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25832
  *) ac_try_echo=$ac_try;;
 
25833
esac
 
25834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25835
  (eval "$ac_compile") 2>conftest.er1
 
25836
  ac_status=$?
 
25837
  grep -v '^ *+' conftest.er1 >conftest.err
 
25838
  rm -f conftest.er1
 
25839
  cat conftest.err >&5
 
25840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25841
  (exit $ac_status); } && {
 
25842
         test -z "$ac_c_werror_flag" ||
 
25843
         test ! -s conftest.err
 
25844
       } && test -s conftest.$ac_objext; then
 
25845
  ac_cv_type_short=yes
 
25846
else
 
25847
  echo "$as_me: failed program was:" >&5
 
25848
sed 's/^/| /' conftest.$ac_ext >&5
 
25849
 
 
25850
        ac_cv_type_short=no
 
25851
fi
 
25852
 
 
25853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25854
fi
 
25855
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
25856
echo "${ECHO_T}$ac_cv_type_short" >&6; }
 
25857
 
 
25858
# The cast to long int works around a bug in the HP C Compiler
 
25859
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25860
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25861
# This bug is HP SR number 8606223364.
 
25862
{ echo "$as_me:$LINENO: checking size of short" >&5
 
25863
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
 
25864
if test "${ac_cv_sizeof_short+set}" = set; then
 
25865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25866
else
 
25867
  if test "$cross_compiling" = yes; then
 
25868
  # Depending upon the size, compute the lo and hi bounds.
 
25869
cat >conftest.$ac_ext <<_ACEOF
 
25870
/* confdefs.h.  */
 
25871
_ACEOF
 
25872
cat confdefs.h >>conftest.$ac_ext
 
25873
cat >>conftest.$ac_ext <<_ACEOF
 
25874
/* end confdefs.h.  */
 
25875
$ac_includes_default
 
25876
   typedef short ac__type_sizeof_;
 
25877
int
 
25878
main ()
 
25879
{
 
25880
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
 
25881
test_array @<:@0@:>@ = 0
 
25882
 
 
25883
  ;
 
25884
  return 0;
 
25885
}
 
25886
_ACEOF
 
25887
rm -f conftest.$ac_objext
 
25888
if { (ac_try="$ac_compile"
 
25889
case "(($ac_try" in
 
25890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25891
  *) ac_try_echo=$ac_try;;
 
25892
esac
 
25893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25894
  (eval "$ac_compile") 2>conftest.er1
 
25895
  ac_status=$?
 
25896
  grep -v '^ *+' conftest.er1 >conftest.err
 
25897
  rm -f conftest.er1
 
25898
  cat conftest.err >&5
 
25899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25900
  (exit $ac_status); } && {
 
25901
         test -z "$ac_c_werror_flag" ||
 
25902
         test ! -s conftest.err
 
25903
       } && test -s conftest.$ac_objext; then
 
25904
  ac_lo=0 ac_mid=0
 
25905
  while :; do
 
25906
    cat >conftest.$ac_ext <<_ACEOF
 
25907
/* confdefs.h.  */
 
25908
_ACEOF
 
25909
cat confdefs.h >>conftest.$ac_ext
 
25910
cat >>conftest.$ac_ext <<_ACEOF
 
25911
/* end confdefs.h.  */
 
25912
$ac_includes_default
 
25913
   typedef short ac__type_sizeof_;
 
25914
int
 
25915
main ()
 
25916
{
 
25917
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
25918
test_array @<:@0@:>@ = 0
 
25919
 
 
25920
  ;
 
25921
  return 0;
 
25922
}
 
25923
_ACEOF
 
25924
rm -f conftest.$ac_objext
 
25925
if { (ac_try="$ac_compile"
 
25926
case "(($ac_try" in
 
25927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25928
  *) ac_try_echo=$ac_try;;
 
25929
esac
 
25930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25931
  (eval "$ac_compile") 2>conftest.er1
 
25932
  ac_status=$?
 
25933
  grep -v '^ *+' conftest.er1 >conftest.err
 
25934
  rm -f conftest.er1
 
25935
  cat conftest.err >&5
 
25936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25937
  (exit $ac_status); } && {
 
25938
         test -z "$ac_c_werror_flag" ||
 
25939
         test ! -s conftest.err
 
25940
       } && test -s conftest.$ac_objext; then
 
25941
  ac_hi=$ac_mid; break
 
25942
else
 
25943
  echo "$as_me: failed program was:" >&5
 
25944
sed 's/^/| /' conftest.$ac_ext >&5
 
25945
 
 
25946
        ac_lo=`expr $ac_mid + 1`
 
25947
                        if test $ac_lo -le $ac_mid; then
 
25948
                          ac_lo= ac_hi=
 
25949
                          break
 
25950
                        fi
 
25951
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
25952
fi
 
25953
 
 
25954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25955
  done
 
25956
else
 
25957
  echo "$as_me: failed program was:" >&5
 
25958
sed 's/^/| /' conftest.$ac_ext >&5
 
25959
 
 
25960
        cat >conftest.$ac_ext <<_ACEOF
 
25961
/* confdefs.h.  */
 
25962
_ACEOF
 
25963
cat confdefs.h >>conftest.$ac_ext
 
25964
cat >>conftest.$ac_ext <<_ACEOF
 
25965
/* end confdefs.h.  */
 
25966
$ac_includes_default
 
25967
   typedef short ac__type_sizeof_;
 
25968
int
 
25969
main ()
 
25970
{
 
25971
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
 
25972
test_array @<:@0@:>@ = 0
 
25973
 
 
25974
  ;
 
25975
  return 0;
 
25976
}
 
25977
_ACEOF
 
25978
rm -f conftest.$ac_objext
 
25979
if { (ac_try="$ac_compile"
 
25980
case "(($ac_try" in
 
25981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25982
  *) ac_try_echo=$ac_try;;
 
25983
esac
 
25984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25985
  (eval "$ac_compile") 2>conftest.er1
 
25986
  ac_status=$?
 
25987
  grep -v '^ *+' conftest.er1 >conftest.err
 
25988
  rm -f conftest.er1
 
25989
  cat conftest.err >&5
 
25990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25991
  (exit $ac_status); } && {
 
25992
         test -z "$ac_c_werror_flag" ||
 
25993
         test ! -s conftest.err
 
25994
       } && test -s conftest.$ac_objext; then
 
25995
  ac_hi=-1 ac_mid=-1
 
25996
  while :; do
 
25997
    cat >conftest.$ac_ext <<_ACEOF
 
25998
/* confdefs.h.  */
 
25999
_ACEOF
 
26000
cat confdefs.h >>conftest.$ac_ext
 
26001
cat >>conftest.$ac_ext <<_ACEOF
 
26002
/* end confdefs.h.  */
 
26003
$ac_includes_default
 
26004
   typedef short ac__type_sizeof_;
 
26005
int
 
26006
main ()
 
26007
{
 
26008
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
 
26009
test_array @<:@0@:>@ = 0
 
26010
 
 
26011
  ;
 
26012
  return 0;
 
26013
}
 
26014
_ACEOF
 
26015
rm -f conftest.$ac_objext
 
26016
if { (ac_try="$ac_compile"
 
26017
case "(($ac_try" in
 
26018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26019
  *) ac_try_echo=$ac_try;;
 
26020
esac
 
26021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26022
  (eval "$ac_compile") 2>conftest.er1
 
26023
  ac_status=$?
 
26024
  grep -v '^ *+' conftest.er1 >conftest.err
 
26025
  rm -f conftest.er1
 
26026
  cat conftest.err >&5
 
26027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26028
  (exit $ac_status); } && {
 
26029
         test -z "$ac_c_werror_flag" ||
 
26030
         test ! -s conftest.err
 
26031
       } && test -s conftest.$ac_objext; then
 
26032
  ac_lo=$ac_mid; break
 
26033
else
 
26034
  echo "$as_me: failed program was:" >&5
 
26035
sed 's/^/| /' conftest.$ac_ext >&5
 
26036
 
 
26037
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
26038
                        if test $ac_mid -le $ac_hi; then
 
26039
                          ac_lo= ac_hi=
 
26040
                          break
 
26041
                        fi
 
26042
                        ac_mid=`expr 2 '*' $ac_mid`
 
26043
fi
 
26044
 
 
26045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26046
  done
 
26047
else
 
26048
  echo "$as_me: failed program was:" >&5
 
26049
sed 's/^/| /' conftest.$ac_ext >&5
 
26050
 
 
26051
        ac_lo= ac_hi=
 
26052
fi
 
26053
 
 
26054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26055
fi
 
26056
 
 
26057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26058
# Binary search between lo and hi bounds.
 
26059
while test "x$ac_lo" != "x$ac_hi"; do
 
26060
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26061
  cat >conftest.$ac_ext <<_ACEOF
 
26062
/* confdefs.h.  */
 
26063
_ACEOF
 
26064
cat confdefs.h >>conftest.$ac_ext
 
26065
cat >>conftest.$ac_ext <<_ACEOF
 
26066
/* end confdefs.h.  */
 
26067
$ac_includes_default
 
26068
   typedef short ac__type_sizeof_;
 
26069
int
 
26070
main ()
 
26071
{
 
26072
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
26073
test_array @<:@0@:>@ = 0
 
26074
 
 
26075
  ;
 
26076
  return 0;
 
26077
}
 
26078
_ACEOF
 
26079
rm -f conftest.$ac_objext
 
26080
if { (ac_try="$ac_compile"
 
26081
case "(($ac_try" in
 
26082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26083
  *) ac_try_echo=$ac_try;;
 
26084
esac
 
26085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26086
  (eval "$ac_compile") 2>conftest.er1
 
26087
  ac_status=$?
 
26088
  grep -v '^ *+' conftest.er1 >conftest.err
 
26089
  rm -f conftest.er1
 
26090
  cat conftest.err >&5
 
26091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26092
  (exit $ac_status); } && {
 
26093
         test -z "$ac_c_werror_flag" ||
 
26094
         test ! -s conftest.err
 
26095
       } && test -s conftest.$ac_objext; then
 
26096
  ac_hi=$ac_mid
 
26097
else
 
26098
  echo "$as_me: failed program was:" >&5
 
26099
sed 's/^/| /' conftest.$ac_ext >&5
 
26100
 
 
26101
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
26102
fi
 
26103
 
 
26104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26105
done
 
26106
case $ac_lo in
 
26107
?*) ac_cv_sizeof_short=$ac_lo;;
 
26108
'') if test "$ac_cv_type_short" = yes; then
 
26109
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
26110
See \`config.log' for more details." >&5
 
26111
echo "$as_me: error: cannot compute sizeof (short)
 
26112
See \`config.log' for more details." >&2;}
 
26113
   { (exit 77); exit 77; }; }
 
26114
   else
 
26115
     ac_cv_sizeof_short=0
 
26116
   fi ;;
 
26117
esac
 
26118
else
 
26119
  cat >conftest.$ac_ext <<_ACEOF
 
26120
/* confdefs.h.  */
 
26121
_ACEOF
 
26122
cat confdefs.h >>conftest.$ac_ext
 
26123
cat >>conftest.$ac_ext <<_ACEOF
 
26124
/* end confdefs.h.  */
 
26125
$ac_includes_default
 
26126
   typedef short ac__type_sizeof_;
 
26127
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
26128
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
26129
@%:@include <stdio.h>
 
26130
@%:@include <stdlib.h>
 
26131
int
 
26132
main ()
 
26133
{
 
26134
 
 
26135
  FILE *f = fopen ("conftest.val", "w");
 
26136
  if (! f)
 
26137
    return 1;
 
26138
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
26139
    {
 
26140
      long int i = longval ();
 
26141
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
26142
        return 1;
 
26143
      fprintf (f, "%ld\n", i);
 
26144
    }
 
26145
  else
 
26146
    {
 
26147
      unsigned long int i = ulongval ();
 
26148
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
26149
        return 1;
 
26150
      fprintf (f, "%lu\n", i);
 
26151
    }
 
26152
  return ferror (f) || fclose (f) != 0;
 
26153
 
 
26154
  ;
 
26155
  return 0;
 
26156
}
 
26157
_ACEOF
 
26158
rm -f conftest$ac_exeext
 
26159
if { (ac_try="$ac_link"
 
26160
case "(($ac_try" in
 
26161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26162
  *) ac_try_echo=$ac_try;;
 
26163
esac
 
26164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26165
  (eval "$ac_link") 2>&5
 
26166
  ac_status=$?
 
26167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26168
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26169
  { (case "(($ac_try" in
 
26170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26171
  *) ac_try_echo=$ac_try;;
 
26172
esac
 
26173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26174
  (eval "$ac_try") 2>&5
 
26175
  ac_status=$?
 
26176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26177
  (exit $ac_status); }; }; then
 
26178
  ac_cv_sizeof_short=`cat conftest.val`
 
26179
else
 
26180
  echo "$as_me: program exited with status $ac_status" >&5
 
26181
echo "$as_me: failed program was:" >&5
 
26182
sed 's/^/| /' conftest.$ac_ext >&5
 
26183
 
 
26184
( exit $ac_status )
 
26185
if test "$ac_cv_type_short" = yes; then
 
26186
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
26187
See \`config.log' for more details." >&5
 
26188
echo "$as_me: error: cannot compute sizeof (short)
 
26189
See \`config.log' for more details." >&2;}
 
26190
   { (exit 77); exit 77; }; }
 
26191
   else
 
26192
     ac_cv_sizeof_short=0
 
26193
   fi
 
26194
fi
 
26195
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26196
fi
 
26197
rm -f conftest.val
 
26198
fi
 
26199
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
26200
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
 
26201
 
 
26202
 
 
26203
 
 
26204
cat >>confdefs.h <<_ACEOF
 
26205
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
 
26206
_ACEOF
 
26207
 
 
26208
  { echo "$as_me:$LINENO: checking for long" >&5
 
26209
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
 
26210
if test "${ac_cv_type_long+set}" = set; then
 
26211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26212
else
 
26213
  cat >conftest.$ac_ext <<_ACEOF
 
26214
/* confdefs.h.  */
 
26215
_ACEOF
 
26216
cat confdefs.h >>conftest.$ac_ext
 
26217
cat >>conftest.$ac_ext <<_ACEOF
 
26218
/* end confdefs.h.  */
 
26219
$ac_includes_default
 
26220
typedef long ac__type_new_;
 
26221
int
 
26222
main ()
 
26223
{
 
26224
if ((ac__type_new_ *) 0)
 
26225
  return 0;
 
26226
if (sizeof (ac__type_new_))
 
26227
  return 0;
 
26228
  ;
 
26229
  return 0;
 
26230
}
 
26231
_ACEOF
 
26232
rm -f conftest.$ac_objext
 
26233
if { (ac_try="$ac_compile"
 
26234
case "(($ac_try" in
 
26235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26236
  *) ac_try_echo=$ac_try;;
 
26237
esac
 
26238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26239
  (eval "$ac_compile") 2>conftest.er1
 
26240
  ac_status=$?
 
26241
  grep -v '^ *+' conftest.er1 >conftest.err
 
26242
  rm -f conftest.er1
 
26243
  cat conftest.err >&5
 
26244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26245
  (exit $ac_status); } && {
 
26246
         test -z "$ac_c_werror_flag" ||
 
26247
         test ! -s conftest.err
 
26248
       } && test -s conftest.$ac_objext; then
 
26249
  ac_cv_type_long=yes
 
26250
else
 
26251
  echo "$as_me: failed program was:" >&5
 
26252
sed 's/^/| /' conftest.$ac_ext >&5
 
26253
 
 
26254
        ac_cv_type_long=no
 
26255
fi
 
26256
 
 
26257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26258
fi
 
26259
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
26260
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
26261
 
 
26262
# The cast to long int works around a bug in the HP C Compiler
 
26263
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26264
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26265
# This bug is HP SR number 8606223364.
 
26266
{ echo "$as_me:$LINENO: checking size of long" >&5
 
26267
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
26268
if test "${ac_cv_sizeof_long+set}" = set; then
 
26269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26270
else
 
26271
  if test "$cross_compiling" = yes; then
 
26272
  # Depending upon the size, compute the lo and hi bounds.
 
26273
cat >conftest.$ac_ext <<_ACEOF
 
26274
/* confdefs.h.  */
 
26275
_ACEOF
 
26276
cat confdefs.h >>conftest.$ac_ext
 
26277
cat >>conftest.$ac_ext <<_ACEOF
 
26278
/* end confdefs.h.  */
 
26279
$ac_includes_default
 
26280
   typedef long ac__type_sizeof_;
 
26281
int
 
26282
main ()
 
26283
{
 
26284
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
 
26285
test_array @<:@0@:>@ = 0
 
26286
 
 
26287
  ;
 
26288
  return 0;
 
26289
}
 
26290
_ACEOF
 
26291
rm -f conftest.$ac_objext
 
26292
if { (ac_try="$ac_compile"
 
26293
case "(($ac_try" in
 
26294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26295
  *) ac_try_echo=$ac_try;;
 
26296
esac
 
26297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26298
  (eval "$ac_compile") 2>conftest.er1
 
26299
  ac_status=$?
 
26300
  grep -v '^ *+' conftest.er1 >conftest.err
 
26301
  rm -f conftest.er1
 
26302
  cat conftest.err >&5
 
26303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26304
  (exit $ac_status); } && {
 
26305
         test -z "$ac_c_werror_flag" ||
 
26306
         test ! -s conftest.err
 
26307
       } && test -s conftest.$ac_objext; then
 
26308
  ac_lo=0 ac_mid=0
 
26309
  while :; do
 
26310
    cat >conftest.$ac_ext <<_ACEOF
 
26311
/* confdefs.h.  */
 
26312
_ACEOF
 
26313
cat confdefs.h >>conftest.$ac_ext
 
26314
cat >>conftest.$ac_ext <<_ACEOF
 
26315
/* end confdefs.h.  */
 
26316
$ac_includes_default
 
26317
   typedef long ac__type_sizeof_;
 
26318
int
 
26319
main ()
 
26320
{
 
26321
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
26322
test_array @<:@0@:>@ = 0
 
26323
 
 
26324
  ;
 
26325
  return 0;
 
26326
}
 
26327
_ACEOF
 
26328
rm -f conftest.$ac_objext
 
26329
if { (ac_try="$ac_compile"
 
26330
case "(($ac_try" in
 
26331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26332
  *) ac_try_echo=$ac_try;;
 
26333
esac
 
26334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26335
  (eval "$ac_compile") 2>conftest.er1
 
26336
  ac_status=$?
 
26337
  grep -v '^ *+' conftest.er1 >conftest.err
 
26338
  rm -f conftest.er1
 
26339
  cat conftest.err >&5
 
26340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26341
  (exit $ac_status); } && {
 
26342
         test -z "$ac_c_werror_flag" ||
 
26343
         test ! -s conftest.err
 
26344
       } && test -s conftest.$ac_objext; then
 
26345
  ac_hi=$ac_mid; break
 
26346
else
 
26347
  echo "$as_me: failed program was:" >&5
 
26348
sed 's/^/| /' conftest.$ac_ext >&5
 
26349
 
 
26350
        ac_lo=`expr $ac_mid + 1`
 
26351
                        if test $ac_lo -le $ac_mid; then
 
26352
                          ac_lo= ac_hi=
 
26353
                          break
 
26354
                        fi
 
26355
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
26356
fi
 
26357
 
 
26358
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26359
  done
 
26360
else
 
26361
  echo "$as_me: failed program was:" >&5
 
26362
sed 's/^/| /' conftest.$ac_ext >&5
 
26363
 
 
26364
        cat >conftest.$ac_ext <<_ACEOF
 
26365
/* confdefs.h.  */
 
26366
_ACEOF
 
26367
cat confdefs.h >>conftest.$ac_ext
 
26368
cat >>conftest.$ac_ext <<_ACEOF
 
26369
/* end confdefs.h.  */
 
26370
$ac_includes_default
 
26371
   typedef long ac__type_sizeof_;
 
26372
int
 
26373
main ()
 
26374
{
 
26375
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
 
26376
test_array @<:@0@:>@ = 0
 
26377
 
 
26378
  ;
 
26379
  return 0;
 
26380
}
 
26381
_ACEOF
 
26382
rm -f conftest.$ac_objext
 
26383
if { (ac_try="$ac_compile"
 
26384
case "(($ac_try" in
 
26385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26386
  *) ac_try_echo=$ac_try;;
 
26387
esac
 
26388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26389
  (eval "$ac_compile") 2>conftest.er1
 
26390
  ac_status=$?
 
26391
  grep -v '^ *+' conftest.er1 >conftest.err
 
26392
  rm -f conftest.er1
 
26393
  cat conftest.err >&5
 
26394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26395
  (exit $ac_status); } && {
 
26396
         test -z "$ac_c_werror_flag" ||
 
26397
         test ! -s conftest.err
 
26398
       } && test -s conftest.$ac_objext; then
 
26399
  ac_hi=-1 ac_mid=-1
 
26400
  while :; do
 
26401
    cat >conftest.$ac_ext <<_ACEOF
 
26402
/* confdefs.h.  */
 
26403
_ACEOF
 
26404
cat confdefs.h >>conftest.$ac_ext
 
26405
cat >>conftest.$ac_ext <<_ACEOF
 
26406
/* end confdefs.h.  */
 
26407
$ac_includes_default
 
26408
   typedef long ac__type_sizeof_;
 
26409
int
 
26410
main ()
 
26411
{
 
26412
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
 
26413
test_array @<:@0@:>@ = 0
 
26414
 
 
26415
  ;
 
26416
  return 0;
 
26417
}
 
26418
_ACEOF
 
26419
rm -f conftest.$ac_objext
 
26420
if { (ac_try="$ac_compile"
 
26421
case "(($ac_try" in
 
26422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26423
  *) ac_try_echo=$ac_try;;
 
26424
esac
 
26425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26426
  (eval "$ac_compile") 2>conftest.er1
 
26427
  ac_status=$?
 
26428
  grep -v '^ *+' conftest.er1 >conftest.err
 
26429
  rm -f conftest.er1
 
26430
  cat conftest.err >&5
 
26431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26432
  (exit $ac_status); } && {
 
26433
         test -z "$ac_c_werror_flag" ||
 
26434
         test ! -s conftest.err
 
26435
       } && test -s conftest.$ac_objext; then
 
26436
  ac_lo=$ac_mid; break
 
26437
else
 
26438
  echo "$as_me: failed program was:" >&5
 
26439
sed 's/^/| /' conftest.$ac_ext >&5
 
26440
 
 
26441
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
26442
                        if test $ac_mid -le $ac_hi; then
 
26443
                          ac_lo= ac_hi=
 
26444
                          break
 
26445
                        fi
 
26446
                        ac_mid=`expr 2 '*' $ac_mid`
 
26447
fi
 
26448
 
 
26449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26450
  done
 
26451
else
 
26452
  echo "$as_me: failed program was:" >&5
 
26453
sed 's/^/| /' conftest.$ac_ext >&5
 
26454
 
 
26455
        ac_lo= ac_hi=
 
26456
fi
 
26457
 
 
26458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26459
fi
 
26460
 
 
26461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26462
# Binary search between lo and hi bounds.
 
26463
while test "x$ac_lo" != "x$ac_hi"; do
 
26464
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26465
  cat >conftest.$ac_ext <<_ACEOF
 
26466
/* confdefs.h.  */
 
26467
_ACEOF
 
26468
cat confdefs.h >>conftest.$ac_ext
 
26469
cat >>conftest.$ac_ext <<_ACEOF
 
26470
/* end confdefs.h.  */
 
26471
$ac_includes_default
 
26472
   typedef long ac__type_sizeof_;
 
26473
int
 
26474
main ()
 
26475
{
 
26476
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
26477
test_array @<:@0@:>@ = 0
 
26478
 
 
26479
  ;
 
26480
  return 0;
 
26481
}
 
26482
_ACEOF
 
26483
rm -f conftest.$ac_objext
 
26484
if { (ac_try="$ac_compile"
 
26485
case "(($ac_try" in
 
26486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26487
  *) ac_try_echo=$ac_try;;
 
26488
esac
 
26489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26490
  (eval "$ac_compile") 2>conftest.er1
 
26491
  ac_status=$?
 
26492
  grep -v '^ *+' conftest.er1 >conftest.err
 
26493
  rm -f conftest.er1
 
26494
  cat conftest.err >&5
 
26495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26496
  (exit $ac_status); } && {
 
26497
         test -z "$ac_c_werror_flag" ||
 
26498
         test ! -s conftest.err
 
26499
       } && test -s conftest.$ac_objext; then
 
26500
  ac_hi=$ac_mid
 
26501
else
 
26502
  echo "$as_me: failed program was:" >&5
 
26503
sed 's/^/| /' conftest.$ac_ext >&5
 
26504
 
 
26505
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
26506
fi
 
26507
 
 
26508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26509
done
 
26510
case $ac_lo in
 
26511
?*) ac_cv_sizeof_long=$ac_lo;;
 
26512
'') if test "$ac_cv_type_long" = yes; then
 
26513
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
26514
See \`config.log' for more details." >&5
 
26515
echo "$as_me: error: cannot compute sizeof (long)
 
26516
See \`config.log' for more details." >&2;}
 
26517
   { (exit 77); exit 77; }; }
 
26518
   else
 
26519
     ac_cv_sizeof_long=0
 
26520
   fi ;;
 
26521
esac
 
26522
else
 
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
   typedef long ac__type_sizeof_;
 
26531
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
26532
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
26533
@%:@include <stdio.h>
 
26534
@%:@include <stdlib.h>
 
26535
int
 
26536
main ()
 
26537
{
 
26538
 
 
26539
  FILE *f = fopen ("conftest.val", "w");
 
26540
  if (! f)
 
26541
    return 1;
 
26542
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
26543
    {
 
26544
      long int i = longval ();
 
26545
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
26546
        return 1;
 
26547
      fprintf (f, "%ld\n", i);
 
26548
    }
 
26549
  else
 
26550
    {
 
26551
      unsigned long int i = ulongval ();
 
26552
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
26553
        return 1;
 
26554
      fprintf (f, "%lu\n", i);
 
26555
    }
 
26556
  return ferror (f) || fclose (f) != 0;
 
26557
 
 
26558
  ;
 
26559
  return 0;
 
26560
}
 
26561
_ACEOF
 
26562
rm -f conftest$ac_exeext
 
26563
if { (ac_try="$ac_link"
 
26564
case "(($ac_try" in
 
26565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26566
  *) ac_try_echo=$ac_try;;
 
26567
esac
 
26568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26569
  (eval "$ac_link") 2>&5
 
26570
  ac_status=$?
 
26571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26572
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26573
  { (case "(($ac_try" in
 
26574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26575
  *) ac_try_echo=$ac_try;;
 
26576
esac
 
26577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26578
  (eval "$ac_try") 2>&5
 
26579
  ac_status=$?
 
26580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26581
  (exit $ac_status); }; }; then
 
26582
  ac_cv_sizeof_long=`cat conftest.val`
 
26583
else
 
26584
  echo "$as_me: program exited with status $ac_status" >&5
 
26585
echo "$as_me: failed program was:" >&5
 
26586
sed 's/^/| /' conftest.$ac_ext >&5
 
26587
 
 
26588
( exit $ac_status )
 
26589
if test "$ac_cv_type_long" = yes; then
 
26590
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
26591
See \`config.log' for more details." >&5
 
26592
echo "$as_me: error: cannot compute sizeof (long)
 
26593
See \`config.log' for more details." >&2;}
 
26594
   { (exit 77); exit 77; }; }
 
26595
   else
 
26596
     ac_cv_sizeof_long=0
 
26597
   fi
 
26598
fi
 
26599
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26600
fi
 
26601
rm -f conftest.val
 
26602
fi
 
26603
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
26604
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
26605
 
 
26606
 
 
26607
 
 
26608
cat >>confdefs.h <<_ACEOF
 
26609
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
 
26610
_ACEOF
 
26611
 
 
26612
  { echo "$as_me:$LINENO: checking for char *" >&5
 
26613
echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
 
26614
if test "${ac_cv_type_char_p+set}" = set; then
 
26615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26616
else
 
26617
  cat >conftest.$ac_ext <<_ACEOF
 
26618
/* confdefs.h.  */
 
26619
_ACEOF
 
26620
cat confdefs.h >>conftest.$ac_ext
 
26621
cat >>conftest.$ac_ext <<_ACEOF
 
26622
/* end confdefs.h.  */
 
26623
$ac_includes_default
 
26624
typedef char * ac__type_new_;
 
26625
int
 
26626
main ()
 
26627
{
 
26628
if ((ac__type_new_ *) 0)
 
26629
  return 0;
 
26630
if (sizeof (ac__type_new_))
 
26631
  return 0;
 
26632
  ;
 
26633
  return 0;
 
26634
}
 
26635
_ACEOF
 
26636
rm -f conftest.$ac_objext
 
26637
if { (ac_try="$ac_compile"
 
26638
case "(($ac_try" in
 
26639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26640
  *) ac_try_echo=$ac_try;;
 
26641
esac
 
26642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26643
  (eval "$ac_compile") 2>conftest.er1
 
26644
  ac_status=$?
 
26645
  grep -v '^ *+' conftest.er1 >conftest.err
 
26646
  rm -f conftest.er1
 
26647
  cat conftest.err >&5
 
26648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26649
  (exit $ac_status); } && {
 
26650
         test -z "$ac_c_werror_flag" ||
 
26651
         test ! -s conftest.err
 
26652
       } && test -s conftest.$ac_objext; then
 
26653
  ac_cv_type_char_p=yes
 
26654
else
 
26655
  echo "$as_me: failed program was:" >&5
 
26656
sed 's/^/| /' conftest.$ac_ext >&5
 
26657
 
 
26658
        ac_cv_type_char_p=no
 
26659
fi
 
26660
 
 
26661
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26662
fi
 
26663
{ echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
 
26664
echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
 
26665
 
 
26666
# The cast to long int works around a bug in the HP C Compiler
 
26667
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26668
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26669
# This bug is HP SR number 8606223364.
 
26670
{ echo "$as_me:$LINENO: checking size of char *" >&5
 
26671
echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
 
26672
if test "${ac_cv_sizeof_char_p+set}" = set; then
 
26673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26674
else
 
26675
  if test "$cross_compiling" = yes; then
 
26676
  # Depending upon the size, compute the lo and hi bounds.
 
26677
cat >conftest.$ac_ext <<_ACEOF
 
26678
/* confdefs.h.  */
 
26679
_ACEOF
 
26680
cat confdefs.h >>conftest.$ac_ext
 
26681
cat >>conftest.$ac_ext <<_ACEOF
 
26682
/* end confdefs.h.  */
 
26683
$ac_includes_default
 
26684
   typedef char * ac__type_sizeof_;
 
26685
int
 
26686
main ()
 
26687
{
 
26688
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
 
26689
test_array @<:@0@:>@ = 0
 
26690
 
 
26691
  ;
 
26692
  return 0;
 
26693
}
 
26694
_ACEOF
 
26695
rm -f conftest.$ac_objext
 
26696
if { (ac_try="$ac_compile"
 
26697
case "(($ac_try" in
 
26698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26699
  *) ac_try_echo=$ac_try;;
 
26700
esac
 
26701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26702
  (eval "$ac_compile") 2>conftest.er1
 
26703
  ac_status=$?
 
26704
  grep -v '^ *+' conftest.er1 >conftest.err
 
26705
  rm -f conftest.er1
 
26706
  cat conftest.err >&5
 
26707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26708
  (exit $ac_status); } && {
 
26709
         test -z "$ac_c_werror_flag" ||
 
26710
         test ! -s conftest.err
 
26711
       } && test -s conftest.$ac_objext; then
 
26712
  ac_lo=0 ac_mid=0
 
26713
  while :; do
 
26714
    cat >conftest.$ac_ext <<_ACEOF
 
26715
/* confdefs.h.  */
 
26716
_ACEOF
 
26717
cat confdefs.h >>conftest.$ac_ext
 
26718
cat >>conftest.$ac_ext <<_ACEOF
 
26719
/* end confdefs.h.  */
 
26720
$ac_includes_default
 
26721
   typedef char * ac__type_sizeof_;
 
26722
int
 
26723
main ()
 
26724
{
 
26725
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
26726
test_array @<:@0@:>@ = 0
 
26727
 
 
26728
  ;
 
26729
  return 0;
 
26730
}
 
26731
_ACEOF
 
26732
rm -f conftest.$ac_objext
 
26733
if { (ac_try="$ac_compile"
 
26734
case "(($ac_try" in
 
26735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26736
  *) ac_try_echo=$ac_try;;
 
26737
esac
 
26738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26739
  (eval "$ac_compile") 2>conftest.er1
 
26740
  ac_status=$?
 
26741
  grep -v '^ *+' conftest.er1 >conftest.err
 
26742
  rm -f conftest.er1
 
26743
  cat conftest.err >&5
 
26744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26745
  (exit $ac_status); } && {
 
26746
         test -z "$ac_c_werror_flag" ||
 
26747
         test ! -s conftest.err
 
26748
       } && test -s conftest.$ac_objext; then
 
26749
  ac_hi=$ac_mid; break
 
26750
else
 
26751
  echo "$as_me: failed program was:" >&5
 
26752
sed 's/^/| /' conftest.$ac_ext >&5
 
26753
 
 
26754
        ac_lo=`expr $ac_mid + 1`
 
26755
                        if test $ac_lo -le $ac_mid; then
 
26756
                          ac_lo= ac_hi=
 
26757
                          break
 
26758
                        fi
 
26759
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
26760
fi
 
26761
 
 
26762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26763
  done
 
26764
else
 
26765
  echo "$as_me: failed program was:" >&5
 
26766
sed 's/^/| /' conftest.$ac_ext >&5
 
26767
 
 
26768
        cat >conftest.$ac_ext <<_ACEOF
 
26769
/* confdefs.h.  */
 
26770
_ACEOF
 
26771
cat confdefs.h >>conftest.$ac_ext
 
26772
cat >>conftest.$ac_ext <<_ACEOF
 
26773
/* end confdefs.h.  */
 
26774
$ac_includes_default
 
26775
   typedef char * ac__type_sizeof_;
 
26776
int
 
26777
main ()
 
26778
{
 
26779
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
 
26780
test_array @<:@0@:>@ = 0
 
26781
 
 
26782
  ;
 
26783
  return 0;
 
26784
}
 
26785
_ACEOF
 
26786
rm -f conftest.$ac_objext
 
26787
if { (ac_try="$ac_compile"
 
26788
case "(($ac_try" in
 
26789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26790
  *) ac_try_echo=$ac_try;;
 
26791
esac
 
26792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26793
  (eval "$ac_compile") 2>conftest.er1
 
26794
  ac_status=$?
 
26795
  grep -v '^ *+' conftest.er1 >conftest.err
 
26796
  rm -f conftest.er1
 
26797
  cat conftest.err >&5
 
26798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26799
  (exit $ac_status); } && {
 
26800
         test -z "$ac_c_werror_flag" ||
 
26801
         test ! -s conftest.err
 
26802
       } && test -s conftest.$ac_objext; then
 
26803
  ac_hi=-1 ac_mid=-1
 
26804
  while :; do
 
26805
    cat >conftest.$ac_ext <<_ACEOF
 
26806
/* confdefs.h.  */
 
26807
_ACEOF
 
26808
cat confdefs.h >>conftest.$ac_ext
 
26809
cat >>conftest.$ac_ext <<_ACEOF
 
26810
/* end confdefs.h.  */
 
26811
$ac_includes_default
 
26812
   typedef char * ac__type_sizeof_;
 
26813
int
 
26814
main ()
 
26815
{
 
26816
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
 
26817
test_array @<:@0@:>@ = 0
 
26818
 
 
26819
  ;
 
26820
  return 0;
 
26821
}
 
26822
_ACEOF
 
26823
rm -f conftest.$ac_objext
 
26824
if { (ac_try="$ac_compile"
 
26825
case "(($ac_try" in
 
26826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26827
  *) ac_try_echo=$ac_try;;
 
26828
esac
 
26829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26830
  (eval "$ac_compile") 2>conftest.er1
 
26831
  ac_status=$?
 
26832
  grep -v '^ *+' conftest.er1 >conftest.err
 
26833
  rm -f conftest.er1
 
26834
  cat conftest.err >&5
 
26835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26836
  (exit $ac_status); } && {
 
26837
         test -z "$ac_c_werror_flag" ||
 
26838
         test ! -s conftest.err
 
26839
       } && test -s conftest.$ac_objext; then
 
26840
  ac_lo=$ac_mid; break
 
26841
else
 
26842
  echo "$as_me: failed program was:" >&5
 
26843
sed 's/^/| /' conftest.$ac_ext >&5
 
26844
 
 
26845
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
26846
                        if test $ac_mid -le $ac_hi; then
 
26847
                          ac_lo= ac_hi=
 
26848
                          break
 
26849
                        fi
 
26850
                        ac_mid=`expr 2 '*' $ac_mid`
 
26851
fi
 
26852
 
 
26853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26854
  done
 
26855
else
 
26856
  echo "$as_me: failed program was:" >&5
 
26857
sed 's/^/| /' conftest.$ac_ext >&5
 
26858
 
 
26859
        ac_lo= ac_hi=
 
26860
fi
 
26861
 
 
26862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26863
fi
 
26864
 
 
26865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26866
# Binary search between lo and hi bounds.
 
26867
while test "x$ac_lo" != "x$ac_hi"; do
 
26868
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26869
  cat >conftest.$ac_ext <<_ACEOF
 
26870
/* confdefs.h.  */
 
26871
_ACEOF
 
26872
cat confdefs.h >>conftest.$ac_ext
 
26873
cat >>conftest.$ac_ext <<_ACEOF
 
26874
/* end confdefs.h.  */
 
26875
$ac_includes_default
 
26876
   typedef char * ac__type_sizeof_;
 
26877
int
 
26878
main ()
 
26879
{
 
26880
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
26881
test_array @<:@0@:>@ = 0
 
26882
 
 
26883
  ;
 
26884
  return 0;
 
26885
}
 
26886
_ACEOF
 
26887
rm -f conftest.$ac_objext
 
26888
if { (ac_try="$ac_compile"
 
26889
case "(($ac_try" in
 
26890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26891
  *) ac_try_echo=$ac_try;;
 
26892
esac
 
26893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26894
  (eval "$ac_compile") 2>conftest.er1
 
26895
  ac_status=$?
 
26896
  grep -v '^ *+' conftest.er1 >conftest.err
 
26897
  rm -f conftest.er1
 
26898
  cat conftest.err >&5
 
26899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26900
  (exit $ac_status); } && {
 
26901
         test -z "$ac_c_werror_flag" ||
 
26902
         test ! -s conftest.err
 
26903
       } && test -s conftest.$ac_objext; then
 
26904
  ac_hi=$ac_mid
 
26905
else
 
26906
  echo "$as_me: failed program was:" >&5
 
26907
sed 's/^/| /' conftest.$ac_ext >&5
 
26908
 
 
26909
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
26910
fi
 
26911
 
 
26912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26913
done
 
26914
case $ac_lo in
 
26915
?*) ac_cv_sizeof_char_p=$ac_lo;;
 
26916
'') if test "$ac_cv_type_char_p" = yes; then
 
26917
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
 
26918
See \`config.log' for more details." >&5
 
26919
echo "$as_me: error: cannot compute sizeof (char *)
 
26920
See \`config.log' for more details." >&2;}
 
26921
   { (exit 77); exit 77; }; }
 
26922
   else
 
26923
     ac_cv_sizeof_char_p=0
 
26924
   fi ;;
 
26925
esac
 
26926
else
 
26927
  cat >conftest.$ac_ext <<_ACEOF
 
26928
/* confdefs.h.  */
 
26929
_ACEOF
 
26930
cat confdefs.h >>conftest.$ac_ext
 
26931
cat >>conftest.$ac_ext <<_ACEOF
 
26932
/* end confdefs.h.  */
 
26933
$ac_includes_default
 
26934
   typedef char * ac__type_sizeof_;
 
26935
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
26936
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
26937
@%:@include <stdio.h>
 
26938
@%:@include <stdlib.h>
 
26939
int
 
26940
main ()
 
26941
{
 
26942
 
 
26943
  FILE *f = fopen ("conftest.val", "w");
 
26944
  if (! f)
 
26945
    return 1;
 
26946
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
26947
    {
 
26948
      long int i = longval ();
 
26949
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
26950
        return 1;
 
26951
      fprintf (f, "%ld\n", i);
 
26952
    }
 
26953
  else
 
26954
    {
 
26955
      unsigned long int i = ulongval ();
 
26956
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
26957
        return 1;
 
26958
      fprintf (f, "%lu\n", i);
 
26959
    }
 
26960
  return ferror (f) || fclose (f) != 0;
 
26961
 
 
26962
  ;
 
26963
  return 0;
 
26964
}
 
26965
_ACEOF
 
26966
rm -f conftest$ac_exeext
 
26967
if { (ac_try="$ac_link"
 
26968
case "(($ac_try" in
 
26969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26970
  *) ac_try_echo=$ac_try;;
 
26971
esac
 
26972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26973
  (eval "$ac_link") 2>&5
 
26974
  ac_status=$?
 
26975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26976
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26977
  { (case "(($ac_try" in
 
26978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26979
  *) ac_try_echo=$ac_try;;
 
26980
esac
 
26981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26982
  (eval "$ac_try") 2>&5
 
26983
  ac_status=$?
 
26984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26985
  (exit $ac_status); }; }; then
 
26986
  ac_cv_sizeof_char_p=`cat conftest.val`
 
26987
else
 
26988
  echo "$as_me: program exited with status $ac_status" >&5
 
26989
echo "$as_me: failed program was:" >&5
 
26990
sed 's/^/| /' conftest.$ac_ext >&5
 
26991
 
 
26992
( exit $ac_status )
 
26993
if test "$ac_cv_type_char_p" = yes; then
 
26994
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
 
26995
See \`config.log' for more details." >&5
 
26996
echo "$as_me: error: cannot compute sizeof (char *)
 
26997
See \`config.log' for more details." >&2;}
 
26998
   { (exit 77); exit 77; }; }
 
26999
   else
 
27000
     ac_cv_sizeof_char_p=0
 
27001
   fi
 
27002
fi
 
27003
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27004
fi
 
27005
rm -f conftest.val
 
27006
fi
 
27007
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
 
27008
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
 
27009
 
 
27010
 
 
27011
 
 
27012
cat >>confdefs.h <<_ACEOF
 
27013
@%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
 
27014
_ACEOF
 
27015
 
 
27016
 
 
27017
   
 
27018
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
27019
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
27020
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
27021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27022
else
 
27023
  ac_check_lib_save_LIBS=$LIBS
 
27024
LIBS="-ldl  $LIBS"
 
27025
cat >conftest.$ac_ext <<_ACEOF
 
27026
/* confdefs.h.  */
 
27027
_ACEOF
 
27028
cat confdefs.h >>conftest.$ac_ext
 
27029
cat >>conftest.$ac_ext <<_ACEOF
 
27030
/* end confdefs.h.  */
 
27031
 
 
27032
/* Override any GCC internal prototype to avoid an error.
 
27033
   Use char because int might match the return type of a GCC
 
27034
   builtin and then its argument prototype would still apply.  */
 
27035
#ifdef __cplusplus
 
27036
extern "C"
 
27037
#endif
 
27038
char dlopen ();
 
27039
int
 
27040
main ()
 
27041
{
 
27042
return dlopen ();
 
27043
  ;
 
27044
  return 0;
 
27045
}
 
27046
_ACEOF
 
27047
rm -f conftest.$ac_objext conftest$ac_exeext
 
27048
if { (ac_try="$ac_link"
 
27049
case "(($ac_try" in
 
27050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27051
  *) ac_try_echo=$ac_try;;
 
27052
esac
 
27053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27054
  (eval "$ac_link") 2>conftest.er1
 
27055
  ac_status=$?
 
27056
  grep -v '^ *+' conftest.er1 >conftest.err
 
27057
  rm -f conftest.er1
 
27058
  cat conftest.err >&5
 
27059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27060
  (exit $ac_status); } && {
 
27061
         test -z "$ac_c_werror_flag" ||
 
27062
         test ! -s conftest.err
 
27063
       } && test -s conftest$ac_exeext &&
 
27064
       $as_test_x conftest$ac_exeext; then
 
27065
  ac_cv_lib_dl_dlopen=yes
 
27066
else
 
27067
  echo "$as_me: failed program was:" >&5
 
27068
sed 's/^/| /' conftest.$ac_ext >&5
 
27069
 
 
27070
        ac_cv_lib_dl_dlopen=no
 
27071
fi
 
27072
 
 
27073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27074
      conftest$ac_exeext conftest.$ac_ext
 
27075
LIBS=$ac_check_lib_save_LIBS
 
27076
fi
 
27077
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
27078
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
27079
if test $ac_cv_lib_dl_dlopen = yes; then
 
27080
  
 
27081
LIBDL="-ldl"
 
27082
ac_cv_have_dlfcn=yes
 
27083
 
 
27084
fi
 
27085
 
 
27086
 
 
27087
{ echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
 
27088
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6; }
 
27089
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
 
27090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27091
else
 
27092
  ac_check_lib_save_LIBS=$LIBS
 
27093
LIBS="-ldld  $LIBS"
 
27094
cat >conftest.$ac_ext <<_ACEOF
 
27095
/* confdefs.h.  */
 
27096
_ACEOF
 
27097
cat confdefs.h >>conftest.$ac_ext
 
27098
cat >>conftest.$ac_ext <<_ACEOF
 
27099
/* end confdefs.h.  */
 
27100
 
 
27101
/* Override any GCC internal prototype to avoid an error.
 
27102
   Use char because int might match the return type of a GCC
 
27103
   builtin and then its argument prototype would still apply.  */
 
27104
#ifdef __cplusplus
 
27105
extern "C"
 
27106
#endif
 
27107
char shl_unload ();
 
27108
int
 
27109
main ()
 
27110
{
 
27111
return shl_unload ();
 
27112
  ;
 
27113
  return 0;
 
27114
}
 
27115
_ACEOF
 
27116
rm -f conftest.$ac_objext conftest$ac_exeext
 
27117
if { (ac_try="$ac_link"
 
27118
case "(($ac_try" in
 
27119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27120
  *) ac_try_echo=$ac_try;;
 
27121
esac
 
27122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27123
  (eval "$ac_link") 2>conftest.er1
 
27124
  ac_status=$?
 
27125
  grep -v '^ *+' conftest.er1 >conftest.err
 
27126
  rm -f conftest.er1
 
27127
  cat conftest.err >&5
 
27128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27129
  (exit $ac_status); } && {
 
27130
         test -z "$ac_c_werror_flag" ||
 
27131
         test ! -s conftest.err
 
27132
       } && test -s conftest$ac_exeext &&
 
27133
       $as_test_x conftest$ac_exeext; then
 
27134
  ac_cv_lib_dld_shl_unload=yes
 
27135
else
 
27136
  echo "$as_me: failed program was:" >&5
 
27137
sed 's/^/| /' conftest.$ac_ext >&5
 
27138
 
 
27139
        ac_cv_lib_dld_shl_unload=no
 
27140
fi
 
27141
 
 
27142
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27143
      conftest$ac_exeext conftest.$ac_ext
 
27144
LIBS=$ac_check_lib_save_LIBS
 
27145
fi
 
27146
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
 
27147
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6; }
 
27148
if test $ac_cv_lib_dld_shl_unload = yes; then
 
27149
  
 
27150
LIBDL="-ldld"
 
27151
ac_cv_have_shload=yes
 
27152
 
 
27153
fi
 
27154
 
 
27155
 
 
27156
 
 
27157
 
 
27158
   
 
27159
  
 
27160
  
 
27161
  { echo "$as_me:$LINENO: checking for size_t" >&5
 
27162
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
27163
if test "${ac_cv_type_size_t+set}" = set; then
 
27164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27165
else
 
27166
  cat >conftest.$ac_ext <<_ACEOF
 
27167
/* confdefs.h.  */
 
27168
_ACEOF
 
27169
cat confdefs.h >>conftest.$ac_ext
 
27170
cat >>conftest.$ac_ext <<_ACEOF
 
27171
/* end confdefs.h.  */
 
27172
$ac_includes_default
 
27173
typedef size_t ac__type_new_;
 
27174
int
 
27175
main ()
 
27176
{
 
27177
if ((ac__type_new_ *) 0)
 
27178
  return 0;
 
27179
if (sizeof (ac__type_new_))
 
27180
  return 0;
 
27181
  ;
 
27182
  return 0;
 
27183
}
 
27184
_ACEOF
 
27185
rm -f conftest.$ac_objext
 
27186
if { (ac_try="$ac_compile"
 
27187
case "(($ac_try" in
 
27188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27189
  *) ac_try_echo=$ac_try;;
 
27190
esac
 
27191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27192
  (eval "$ac_compile") 2>conftest.er1
 
27193
  ac_status=$?
 
27194
  grep -v '^ *+' conftest.er1 >conftest.err
 
27195
  rm -f conftest.er1
 
27196
  cat conftest.err >&5
 
27197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27198
  (exit $ac_status); } && {
 
27199
         test -z "$ac_c_werror_flag" ||
 
27200
         test ! -s conftest.err
 
27201
       } && test -s conftest.$ac_objext; then
 
27202
  ac_cv_type_size_t=yes
 
27203
else
 
27204
  echo "$as_me: failed program was:" >&5
 
27205
sed 's/^/| /' conftest.$ac_ext >&5
 
27206
 
 
27207
        ac_cv_type_size_t=no
 
27208
fi
 
27209
 
 
27210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27211
fi
 
27212
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
27213
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
27214
 
 
27215
# The cast to long int works around a bug in the HP C Compiler
 
27216
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
27217
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
27218
# This bug is HP SR number 8606223364.
 
27219
{ echo "$as_me:$LINENO: checking size of size_t" >&5
 
27220
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
 
27221
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
27222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27223
else
 
27224
  if test "$cross_compiling" = yes; then
 
27225
  # Depending upon the size, compute the lo and hi bounds.
 
27226
cat >conftest.$ac_ext <<_ACEOF
 
27227
/* confdefs.h.  */
 
27228
_ACEOF
 
27229
cat confdefs.h >>conftest.$ac_ext
 
27230
cat >>conftest.$ac_ext <<_ACEOF
 
27231
/* end confdefs.h.  */
 
27232
$ac_includes_default
 
27233
   typedef size_t ac__type_sizeof_;
 
27234
int
 
27235
main ()
 
27236
{
 
27237
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
 
27238
test_array @<:@0@:>@ = 0
 
27239
 
 
27240
  ;
 
27241
  return 0;
 
27242
}
 
27243
_ACEOF
 
27244
rm -f conftest.$ac_objext
 
27245
if { (ac_try="$ac_compile"
 
27246
case "(($ac_try" in
 
27247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27248
  *) ac_try_echo=$ac_try;;
 
27249
esac
 
27250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27251
  (eval "$ac_compile") 2>conftest.er1
 
27252
  ac_status=$?
 
27253
  grep -v '^ *+' conftest.er1 >conftest.err
 
27254
  rm -f conftest.er1
 
27255
  cat conftest.err >&5
 
27256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27257
  (exit $ac_status); } && {
 
27258
         test -z "$ac_c_werror_flag" ||
 
27259
         test ! -s conftest.err
 
27260
       } && test -s conftest.$ac_objext; then
 
27261
  ac_lo=0 ac_mid=0
 
27262
  while :; do
 
27263
    cat >conftest.$ac_ext <<_ACEOF
 
27264
/* confdefs.h.  */
 
27265
_ACEOF
 
27266
cat confdefs.h >>conftest.$ac_ext
 
27267
cat >>conftest.$ac_ext <<_ACEOF
 
27268
/* end confdefs.h.  */
 
27269
$ac_includes_default
 
27270
   typedef size_t ac__type_sizeof_;
 
27271
int
 
27272
main ()
 
27273
{
 
27274
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
27275
test_array @<:@0@:>@ = 0
 
27276
 
 
27277
  ;
 
27278
  return 0;
 
27279
}
 
27280
_ACEOF
 
27281
rm -f conftest.$ac_objext
 
27282
if { (ac_try="$ac_compile"
 
27283
case "(($ac_try" in
 
27284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27285
  *) ac_try_echo=$ac_try;;
 
27286
esac
 
27287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27288
  (eval "$ac_compile") 2>conftest.er1
 
27289
  ac_status=$?
 
27290
  grep -v '^ *+' conftest.er1 >conftest.err
 
27291
  rm -f conftest.er1
 
27292
  cat conftest.err >&5
 
27293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27294
  (exit $ac_status); } && {
 
27295
         test -z "$ac_c_werror_flag" ||
 
27296
         test ! -s conftest.err
 
27297
       } && test -s conftest.$ac_objext; then
 
27298
  ac_hi=$ac_mid; break
 
27299
else
 
27300
  echo "$as_me: failed program was:" >&5
 
27301
sed 's/^/| /' conftest.$ac_ext >&5
 
27302
 
 
27303
        ac_lo=`expr $ac_mid + 1`
 
27304
                        if test $ac_lo -le $ac_mid; then
 
27305
                          ac_lo= ac_hi=
 
27306
                          break
 
27307
                        fi
 
27308
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
27309
fi
 
27310
 
 
27311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27312
  done
 
27313
else
 
27314
  echo "$as_me: failed program was:" >&5
 
27315
sed 's/^/| /' conftest.$ac_ext >&5
 
27316
 
 
27317
        cat >conftest.$ac_ext <<_ACEOF
 
27318
/* confdefs.h.  */
 
27319
_ACEOF
 
27320
cat confdefs.h >>conftest.$ac_ext
 
27321
cat >>conftest.$ac_ext <<_ACEOF
 
27322
/* end confdefs.h.  */
 
27323
$ac_includes_default
 
27324
   typedef size_t ac__type_sizeof_;
 
27325
int
 
27326
main ()
 
27327
{
 
27328
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
 
27329
test_array @<:@0@:>@ = 0
 
27330
 
 
27331
  ;
 
27332
  return 0;
 
27333
}
 
27334
_ACEOF
 
27335
rm -f conftest.$ac_objext
 
27336
if { (ac_try="$ac_compile"
 
27337
case "(($ac_try" in
 
27338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27339
  *) ac_try_echo=$ac_try;;
 
27340
esac
 
27341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27342
  (eval "$ac_compile") 2>conftest.er1
 
27343
  ac_status=$?
 
27344
  grep -v '^ *+' conftest.er1 >conftest.err
 
27345
  rm -f conftest.er1
 
27346
  cat conftest.err >&5
 
27347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27348
  (exit $ac_status); } && {
 
27349
         test -z "$ac_c_werror_flag" ||
 
27350
         test ! -s conftest.err
 
27351
       } && test -s conftest.$ac_objext; then
 
27352
  ac_hi=-1 ac_mid=-1
 
27353
  while :; do
 
27354
    cat >conftest.$ac_ext <<_ACEOF
 
27355
/* confdefs.h.  */
 
27356
_ACEOF
 
27357
cat confdefs.h >>conftest.$ac_ext
 
27358
cat >>conftest.$ac_ext <<_ACEOF
 
27359
/* end confdefs.h.  */
 
27360
$ac_includes_default
 
27361
   typedef size_t ac__type_sizeof_;
 
27362
int
 
27363
main ()
 
27364
{
 
27365
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
 
27366
test_array @<:@0@:>@ = 0
 
27367
 
 
27368
  ;
 
27369
  return 0;
 
27370
}
 
27371
_ACEOF
 
27372
rm -f conftest.$ac_objext
 
27373
if { (ac_try="$ac_compile"
 
27374
case "(($ac_try" in
 
27375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27376
  *) ac_try_echo=$ac_try;;
 
27377
esac
 
27378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27379
  (eval "$ac_compile") 2>conftest.er1
 
27380
  ac_status=$?
 
27381
  grep -v '^ *+' conftest.er1 >conftest.err
 
27382
  rm -f conftest.er1
 
27383
  cat conftest.err >&5
 
27384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27385
  (exit $ac_status); } && {
 
27386
         test -z "$ac_c_werror_flag" ||
 
27387
         test ! -s conftest.err
 
27388
       } && test -s conftest.$ac_objext; then
 
27389
  ac_lo=$ac_mid; break
 
27390
else
 
27391
  echo "$as_me: failed program was:" >&5
 
27392
sed 's/^/| /' conftest.$ac_ext >&5
 
27393
 
 
27394
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
27395
                        if test $ac_mid -le $ac_hi; then
 
27396
                          ac_lo= ac_hi=
 
27397
                          break
 
27398
                        fi
 
27399
                        ac_mid=`expr 2 '*' $ac_mid`
 
27400
fi
 
27401
 
 
27402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27403
  done
 
27404
else
 
27405
  echo "$as_me: failed program was:" >&5
 
27406
sed 's/^/| /' conftest.$ac_ext >&5
 
27407
 
 
27408
        ac_lo= ac_hi=
 
27409
fi
 
27410
 
 
27411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27412
fi
 
27413
 
 
27414
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27415
# Binary search between lo and hi bounds.
 
27416
while test "x$ac_lo" != "x$ac_hi"; do
 
27417
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
27418
  cat >conftest.$ac_ext <<_ACEOF
 
27419
/* confdefs.h.  */
 
27420
_ACEOF
 
27421
cat confdefs.h >>conftest.$ac_ext
 
27422
cat >>conftest.$ac_ext <<_ACEOF
 
27423
/* end confdefs.h.  */
 
27424
$ac_includes_default
 
27425
   typedef size_t ac__type_sizeof_;
 
27426
int
 
27427
main ()
 
27428
{
 
27429
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
27430
test_array @<:@0@:>@ = 0
 
27431
 
 
27432
  ;
 
27433
  return 0;
 
27434
}
 
27435
_ACEOF
 
27436
rm -f conftest.$ac_objext
 
27437
if { (ac_try="$ac_compile"
 
27438
case "(($ac_try" in
 
27439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27440
  *) ac_try_echo=$ac_try;;
 
27441
esac
 
27442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27443
  (eval "$ac_compile") 2>conftest.er1
 
27444
  ac_status=$?
 
27445
  grep -v '^ *+' conftest.er1 >conftest.err
 
27446
  rm -f conftest.er1
 
27447
  cat conftest.err >&5
 
27448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27449
  (exit $ac_status); } && {
 
27450
         test -z "$ac_c_werror_flag" ||
 
27451
         test ! -s conftest.err
 
27452
       } && test -s conftest.$ac_objext; then
 
27453
  ac_hi=$ac_mid
 
27454
else
 
27455
  echo "$as_me: failed program was:" >&5
 
27456
sed 's/^/| /' conftest.$ac_ext >&5
 
27457
 
 
27458
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
27459
fi
 
27460
 
 
27461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27462
done
 
27463
case $ac_lo in
 
27464
?*) ac_cv_sizeof_size_t=$ac_lo;;
 
27465
'') if test "$ac_cv_type_size_t" = yes; then
 
27466
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
 
27467
See \`config.log' for more details." >&5
 
27468
echo "$as_me: error: cannot compute sizeof (size_t)
 
27469
See \`config.log' for more details." >&2;}
 
27470
   { (exit 77); exit 77; }; }
 
27471
   else
 
27472
     ac_cv_sizeof_size_t=0
 
27473
   fi ;;
 
27474
esac
 
27475
else
 
27476
  cat >conftest.$ac_ext <<_ACEOF
 
27477
/* confdefs.h.  */
 
27478
_ACEOF
 
27479
cat confdefs.h >>conftest.$ac_ext
 
27480
cat >>conftest.$ac_ext <<_ACEOF
 
27481
/* end confdefs.h.  */
 
27482
$ac_includes_default
 
27483
   typedef size_t ac__type_sizeof_;
 
27484
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
27485
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
27486
@%:@include <stdio.h>
 
27487
@%:@include <stdlib.h>
 
27488
int
 
27489
main ()
 
27490
{
 
27491
 
 
27492
  FILE *f = fopen ("conftest.val", "w");
 
27493
  if (! f)
 
27494
    return 1;
 
27495
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
27496
    {
 
27497
      long int i = longval ();
 
27498
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
27499
        return 1;
 
27500
      fprintf (f, "%ld\n", i);
 
27501
    }
 
27502
  else
 
27503
    {
 
27504
      unsigned long int i = ulongval ();
 
27505
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
27506
        return 1;
 
27507
      fprintf (f, "%lu\n", i);
 
27508
    }
 
27509
  return ferror (f) || fclose (f) != 0;
 
27510
 
 
27511
  ;
 
27512
  return 0;
 
27513
}
 
27514
_ACEOF
 
27515
rm -f conftest$ac_exeext
 
27516
if { (ac_try="$ac_link"
 
27517
case "(($ac_try" in
 
27518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27519
  *) ac_try_echo=$ac_try;;
 
27520
esac
 
27521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27522
  (eval "$ac_link") 2>&5
 
27523
  ac_status=$?
 
27524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27525
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27526
  { (case "(($ac_try" in
 
27527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27528
  *) ac_try_echo=$ac_try;;
 
27529
esac
 
27530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27531
  (eval "$ac_try") 2>&5
 
27532
  ac_status=$?
 
27533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27534
  (exit $ac_status); }; }; then
 
27535
  ac_cv_sizeof_size_t=`cat conftest.val`
 
27536
else
 
27537
  echo "$as_me: program exited with status $ac_status" >&5
 
27538
echo "$as_me: failed program was:" >&5
 
27539
sed 's/^/| /' conftest.$ac_ext >&5
 
27540
 
 
27541
( exit $ac_status )
 
27542
if test "$ac_cv_type_size_t" = yes; then
 
27543
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
 
27544
See \`config.log' for more details." >&5
 
27545
echo "$as_me: error: cannot compute sizeof (size_t)
 
27546
See \`config.log' for more details." >&2;}
 
27547
   { (exit 77); exit 77; }; }
 
27548
   else
 
27549
     ac_cv_sizeof_size_t=0
 
27550
   fi
 
27551
fi
 
27552
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27553
fi
 
27554
rm -f conftest.val
 
27555
fi
 
27556
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
27557
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
 
27558
 
 
27559
 
 
27560
 
 
27561
cat >>confdefs.h <<_ACEOF
 
27562
@%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
27563
_ACEOF
 
27564
 
 
27565
 
 
27566
  { echo "$as_me:$LINENO: checking for unsigned long" >&5
 
27567
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
 
27568
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
27569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27570
else
 
27571
  cat >conftest.$ac_ext <<_ACEOF
 
27572
/* confdefs.h.  */
 
27573
_ACEOF
 
27574
cat confdefs.h >>conftest.$ac_ext
 
27575
cat >>conftest.$ac_ext <<_ACEOF
 
27576
/* end confdefs.h.  */
 
27577
$ac_includes_default
 
27578
typedef unsigned long ac__type_new_;
 
27579
int
 
27580
main ()
 
27581
{
 
27582
if ((ac__type_new_ *) 0)
 
27583
  return 0;
 
27584
if (sizeof (ac__type_new_))
 
27585
  return 0;
 
27586
  ;
 
27587
  return 0;
 
27588
}
 
27589
_ACEOF
 
27590
rm -f conftest.$ac_objext
 
27591
if { (ac_try="$ac_compile"
 
27592
case "(($ac_try" in
 
27593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27594
  *) ac_try_echo=$ac_try;;
 
27595
esac
 
27596
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27597
  (eval "$ac_compile") 2>conftest.er1
 
27598
  ac_status=$?
 
27599
  grep -v '^ *+' conftest.er1 >conftest.err
 
27600
  rm -f conftest.er1
 
27601
  cat conftest.err >&5
 
27602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27603
  (exit $ac_status); } && {
 
27604
         test -z "$ac_c_werror_flag" ||
 
27605
         test ! -s conftest.err
 
27606
       } && test -s conftest.$ac_objext; then
 
27607
  ac_cv_type_unsigned_long=yes
 
27608
else
 
27609
  echo "$as_me: failed program was:" >&5
 
27610
sed 's/^/| /' conftest.$ac_ext >&5
 
27611
 
 
27612
        ac_cv_type_unsigned_long=no
 
27613
fi
 
27614
 
 
27615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27616
fi
 
27617
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
27618
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
 
27619
 
 
27620
# The cast to long int works around a bug in the HP C Compiler
 
27621
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
27622
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
27623
# This bug is HP SR number 8606223364.
 
27624
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
27625
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
 
27626
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
27627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27628
else
 
27629
  if test "$cross_compiling" = yes; then
 
27630
  # Depending upon the size, compute the lo and hi bounds.
 
27631
cat >conftest.$ac_ext <<_ACEOF
 
27632
/* confdefs.h.  */
 
27633
_ACEOF
 
27634
cat confdefs.h >>conftest.$ac_ext
 
27635
cat >>conftest.$ac_ext <<_ACEOF
 
27636
/* end confdefs.h.  */
 
27637
$ac_includes_default
 
27638
   typedef unsigned long ac__type_sizeof_;
 
27639
int
 
27640
main ()
 
27641
{
 
27642
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
 
27643
test_array @<:@0@:>@ = 0
 
27644
 
 
27645
  ;
 
27646
  return 0;
 
27647
}
 
27648
_ACEOF
 
27649
rm -f conftest.$ac_objext
 
27650
if { (ac_try="$ac_compile"
 
27651
case "(($ac_try" in
 
27652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27653
  *) ac_try_echo=$ac_try;;
 
27654
esac
 
27655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27656
  (eval "$ac_compile") 2>conftest.er1
 
27657
  ac_status=$?
 
27658
  grep -v '^ *+' conftest.er1 >conftest.err
 
27659
  rm -f conftest.er1
 
27660
  cat conftest.err >&5
 
27661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27662
  (exit $ac_status); } && {
 
27663
         test -z "$ac_c_werror_flag" ||
 
27664
         test ! -s conftest.err
 
27665
       } && test -s conftest.$ac_objext; then
 
27666
  ac_lo=0 ac_mid=0
 
27667
  while :; do
 
27668
    cat >conftest.$ac_ext <<_ACEOF
 
27669
/* confdefs.h.  */
 
27670
_ACEOF
 
27671
cat confdefs.h >>conftest.$ac_ext
 
27672
cat >>conftest.$ac_ext <<_ACEOF
 
27673
/* end confdefs.h.  */
 
27674
$ac_includes_default
 
27675
   typedef unsigned long ac__type_sizeof_;
 
27676
int
 
27677
main ()
 
27678
{
 
27679
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
27680
test_array @<:@0@:>@ = 0
 
27681
 
 
27682
  ;
 
27683
  return 0;
 
27684
}
 
27685
_ACEOF
 
27686
rm -f conftest.$ac_objext
 
27687
if { (ac_try="$ac_compile"
 
27688
case "(($ac_try" in
 
27689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27690
  *) ac_try_echo=$ac_try;;
 
27691
esac
 
27692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27693
  (eval "$ac_compile") 2>conftest.er1
 
27694
  ac_status=$?
 
27695
  grep -v '^ *+' conftest.er1 >conftest.err
 
27696
  rm -f conftest.er1
 
27697
  cat conftest.err >&5
 
27698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27699
  (exit $ac_status); } && {
 
27700
         test -z "$ac_c_werror_flag" ||
 
27701
         test ! -s conftest.err
 
27702
       } && test -s conftest.$ac_objext; then
 
27703
  ac_hi=$ac_mid; break
 
27704
else
 
27705
  echo "$as_me: failed program was:" >&5
 
27706
sed 's/^/| /' conftest.$ac_ext >&5
 
27707
 
 
27708
        ac_lo=`expr $ac_mid + 1`
 
27709
                        if test $ac_lo -le $ac_mid; then
 
27710
                          ac_lo= ac_hi=
 
27711
                          break
 
27712
                        fi
 
27713
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
27714
fi
 
27715
 
 
27716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27717
  done
 
27718
else
 
27719
  echo "$as_me: failed program was:" >&5
 
27720
sed 's/^/| /' conftest.$ac_ext >&5
 
27721
 
 
27722
        cat >conftest.$ac_ext <<_ACEOF
 
27723
/* confdefs.h.  */
 
27724
_ACEOF
 
27725
cat confdefs.h >>conftest.$ac_ext
 
27726
cat >>conftest.$ac_ext <<_ACEOF
 
27727
/* end confdefs.h.  */
 
27728
$ac_includes_default
 
27729
   typedef unsigned long ac__type_sizeof_;
 
27730
int
 
27731
main ()
 
27732
{
 
27733
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
 
27734
test_array @<:@0@:>@ = 0
 
27735
 
 
27736
  ;
 
27737
  return 0;
 
27738
}
 
27739
_ACEOF
 
27740
rm -f conftest.$ac_objext
 
27741
if { (ac_try="$ac_compile"
 
27742
case "(($ac_try" in
 
27743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27744
  *) ac_try_echo=$ac_try;;
 
27745
esac
 
27746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27747
  (eval "$ac_compile") 2>conftest.er1
 
27748
  ac_status=$?
 
27749
  grep -v '^ *+' conftest.er1 >conftest.err
 
27750
  rm -f conftest.er1
 
27751
  cat conftest.err >&5
 
27752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27753
  (exit $ac_status); } && {
 
27754
         test -z "$ac_c_werror_flag" ||
 
27755
         test ! -s conftest.err
 
27756
       } && test -s conftest.$ac_objext; then
 
27757
  ac_hi=-1 ac_mid=-1
 
27758
  while :; do
 
27759
    cat >conftest.$ac_ext <<_ACEOF
 
27760
/* confdefs.h.  */
 
27761
_ACEOF
 
27762
cat confdefs.h >>conftest.$ac_ext
 
27763
cat >>conftest.$ac_ext <<_ACEOF
 
27764
/* end confdefs.h.  */
 
27765
$ac_includes_default
 
27766
   typedef unsigned long ac__type_sizeof_;
 
27767
int
 
27768
main ()
 
27769
{
 
27770
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
 
27771
test_array @<:@0@:>@ = 0
 
27772
 
 
27773
  ;
 
27774
  return 0;
 
27775
}
 
27776
_ACEOF
 
27777
rm -f conftest.$ac_objext
 
27778
if { (ac_try="$ac_compile"
 
27779
case "(($ac_try" in
 
27780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27781
  *) ac_try_echo=$ac_try;;
 
27782
esac
 
27783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27784
  (eval "$ac_compile") 2>conftest.er1
 
27785
  ac_status=$?
 
27786
  grep -v '^ *+' conftest.er1 >conftest.err
 
27787
  rm -f conftest.er1
 
27788
  cat conftest.err >&5
 
27789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27790
  (exit $ac_status); } && {
 
27791
         test -z "$ac_c_werror_flag" ||
 
27792
         test ! -s conftest.err
 
27793
       } && test -s conftest.$ac_objext; then
 
27794
  ac_lo=$ac_mid; break
 
27795
else
 
27796
  echo "$as_me: failed program was:" >&5
 
27797
sed 's/^/| /' conftest.$ac_ext >&5
 
27798
 
 
27799
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
27800
                        if test $ac_mid -le $ac_hi; then
 
27801
                          ac_lo= ac_hi=
 
27802
                          break
 
27803
                        fi
 
27804
                        ac_mid=`expr 2 '*' $ac_mid`
 
27805
fi
 
27806
 
 
27807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27808
  done
 
27809
else
 
27810
  echo "$as_me: failed program was:" >&5
 
27811
sed 's/^/| /' conftest.$ac_ext >&5
 
27812
 
 
27813
        ac_lo= ac_hi=
 
27814
fi
 
27815
 
 
27816
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27817
fi
 
27818
 
 
27819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27820
# Binary search between lo and hi bounds.
 
27821
while test "x$ac_lo" != "x$ac_hi"; do
 
27822
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
27823
  cat >conftest.$ac_ext <<_ACEOF
 
27824
/* confdefs.h.  */
 
27825
_ACEOF
 
27826
cat confdefs.h >>conftest.$ac_ext
 
27827
cat >>conftest.$ac_ext <<_ACEOF
 
27828
/* end confdefs.h.  */
 
27829
$ac_includes_default
 
27830
   typedef unsigned long ac__type_sizeof_;
 
27831
int
 
27832
main ()
 
27833
{
 
27834
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
 
27835
test_array @<:@0@:>@ = 0
 
27836
 
 
27837
  ;
 
27838
  return 0;
 
27839
}
 
27840
_ACEOF
 
27841
rm -f conftest.$ac_objext
 
27842
if { (ac_try="$ac_compile"
 
27843
case "(($ac_try" in
 
27844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27845
  *) ac_try_echo=$ac_try;;
 
27846
esac
 
27847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27848
  (eval "$ac_compile") 2>conftest.er1
 
27849
  ac_status=$?
 
27850
  grep -v '^ *+' conftest.er1 >conftest.err
 
27851
  rm -f conftest.er1
 
27852
  cat conftest.err >&5
 
27853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27854
  (exit $ac_status); } && {
 
27855
         test -z "$ac_c_werror_flag" ||
 
27856
         test ! -s conftest.err
 
27857
       } && test -s conftest.$ac_objext; then
 
27858
  ac_hi=$ac_mid
 
27859
else
 
27860
  echo "$as_me: failed program was:" >&5
 
27861
sed 's/^/| /' conftest.$ac_ext >&5
 
27862
 
 
27863
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
27864
fi
 
27865
 
 
27866
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27867
done
 
27868
case $ac_lo in
 
27869
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
27870
'') if test "$ac_cv_type_unsigned_long" = yes; then
 
27871
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
 
27872
See \`config.log' for more details." >&5
 
27873
echo "$as_me: error: cannot compute sizeof (unsigned long)
 
27874
See \`config.log' for more details." >&2;}
 
27875
   { (exit 77); exit 77; }; }
 
27876
   else
 
27877
     ac_cv_sizeof_unsigned_long=0
 
27878
   fi ;;
 
27879
esac
 
27880
else
 
27881
  cat >conftest.$ac_ext <<_ACEOF
 
27882
/* confdefs.h.  */
 
27883
_ACEOF
 
27884
cat confdefs.h >>conftest.$ac_ext
 
27885
cat >>conftest.$ac_ext <<_ACEOF
 
27886
/* end confdefs.h.  */
 
27887
$ac_includes_default
 
27888
   typedef unsigned long ac__type_sizeof_;
 
27889
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
27890
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
27891
@%:@include <stdio.h>
 
27892
@%:@include <stdlib.h>
 
27893
int
 
27894
main ()
 
27895
{
 
27896
 
 
27897
  FILE *f = fopen ("conftest.val", "w");
 
27898
  if (! f)
 
27899
    return 1;
 
27900
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
27901
    {
 
27902
      long int i = longval ();
 
27903
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
27904
        return 1;
 
27905
      fprintf (f, "%ld\n", i);
 
27906
    }
 
27907
  else
 
27908
    {
 
27909
      unsigned long int i = ulongval ();
 
27910
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
27911
        return 1;
 
27912
      fprintf (f, "%lu\n", i);
 
27913
    }
 
27914
  return ferror (f) || fclose (f) != 0;
 
27915
 
 
27916
  ;
 
27917
  return 0;
 
27918
}
 
27919
_ACEOF
 
27920
rm -f conftest$ac_exeext
 
27921
if { (ac_try="$ac_link"
 
27922
case "(($ac_try" in
 
27923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27924
  *) ac_try_echo=$ac_try;;
 
27925
esac
 
27926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27927
  (eval "$ac_link") 2>&5
 
27928
  ac_status=$?
 
27929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27930
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27931
  { (case "(($ac_try" in
 
27932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27933
  *) ac_try_echo=$ac_try;;
 
27934
esac
 
27935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27936
  (eval "$ac_try") 2>&5
 
27937
  ac_status=$?
 
27938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27939
  (exit $ac_status); }; }; then
 
27940
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
27941
else
 
27942
  echo "$as_me: program exited with status $ac_status" >&5
 
27943
echo "$as_me: failed program was:" >&5
 
27944
sed 's/^/| /' conftest.$ac_ext >&5
 
27945
 
 
27946
( exit $ac_status )
 
27947
if test "$ac_cv_type_unsigned_long" = yes; then
 
27948
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
 
27949
See \`config.log' for more details." >&5
 
27950
echo "$as_me: error: cannot compute sizeof (unsigned long)
 
27951
See \`config.log' for more details." >&2;}
 
27952
   { (exit 77); exit 77; }; }
 
27953
   else
 
27954
     ac_cv_sizeof_unsigned_long=0
 
27955
   fi
 
27956
fi
 
27957
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27958
fi
 
27959
rm -f conftest.val
 
27960
fi
 
27961
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
27962
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
 
27963
 
 
27964
 
 
27965
 
 
27966
cat >>confdefs.h <<_ACEOF
 
27967
@%:@define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 
27968
_ACEOF
 
27969
 
 
27970
 
 
27971
 
 
27972
  { echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
 
27973
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6; }
 
27974
  cat >conftest.$ac_ext <<_ACEOF
 
27975
/* confdefs.h.  */
 
27976
_ACEOF
 
27977
cat confdefs.h >>conftest.$ac_ext
 
27978
cat >>conftest.$ac_ext <<_ACEOF
 
27979
/* end confdefs.h.  */
 
27980
 
 
27981
int
 
27982
main ()
 
27983
{
 
27984
 
 
27985
    #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
 
27986
       choke me
 
27987
    #endif
 
27988
    
 
27989
  ;
 
27990
  return 0;
 
27991
}
 
27992
_ACEOF
 
27993
rm -f conftest.$ac_objext
 
27994
if { (ac_try="$ac_compile"
 
27995
case "(($ac_try" in
 
27996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27997
  *) ac_try_echo=$ac_try;;
 
27998
esac
 
27999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28000
  (eval "$ac_compile") 2>conftest.er1
 
28001
  ac_status=$?
 
28002
  grep -v '^ *+' conftest.er1 >conftest.err
 
28003
  rm -f conftest.er1
 
28004
  cat conftest.err >&5
 
28005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28006
  (exit $ac_status); } && {
 
28007
         test -z "$ac_c_werror_flag" ||
 
28008
         test ! -s conftest.err
 
28009
       } && test -s conftest.$ac_objext; then
 
28010
  { echo "$as_me:$LINENO: result: yes" >&5
 
28011
echo "${ECHO_T}yes" >&6; }
 
28012
else
 
28013
  echo "$as_me: failed program was:" >&5
 
28014
sed 's/^/| /' conftest.$ac_ext >&5
 
28015
 
 
28016
        
 
28017
      { echo "$as_me:$LINENO: result: no" >&5
 
28018
echo "${ECHO_T}no" >&6; }
 
28019
      { { echo "$as_me:$LINENO: error: 
 
28020
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long 
 
28021
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
28022
      " >&5
 
28023
echo "$as_me: error: 
 
28024
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long 
 
28025
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
28026
      " >&2;}
 
28027
   { (exit 1); exit 1; }; }
 
28028
  
 
28029
fi
 
28030
 
 
28031
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28032
 
 
28033
 
 
28034
# darwin needs this to initialize the environment
 
28035
 
 
28036
for ac_header in crt_externs.h
 
28037
do
 
28038
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
28039
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28040
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28041
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
28042
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28044
fi
 
28045
ac_res=`eval echo '${'$as_ac_Header'}'`
 
28046
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
28047
echo "${ECHO_T}$ac_res" >&6; }
 
28048
else
 
28049
  # Is the header compilable?
 
28050
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
28051
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
28052
cat >conftest.$ac_ext <<_ACEOF
 
28053
/* confdefs.h.  */
 
28054
_ACEOF
 
28055
cat confdefs.h >>conftest.$ac_ext
 
28056
cat >>conftest.$ac_ext <<_ACEOF
 
28057
/* end confdefs.h.  */
 
28058
$ac_includes_default
 
28059
@%:@include <$ac_header>
 
28060
_ACEOF
 
28061
rm -f conftest.$ac_objext
 
28062
if { (ac_try="$ac_compile"
 
28063
case "(($ac_try" in
 
28064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28065
  *) ac_try_echo=$ac_try;;
 
28066
esac
 
28067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28068
  (eval "$ac_compile") 2>conftest.er1
 
28069
  ac_status=$?
 
28070
  grep -v '^ *+' conftest.er1 >conftest.err
 
28071
  rm -f conftest.er1
 
28072
  cat conftest.err >&5
 
28073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28074
  (exit $ac_status); } && {
 
28075
         test -z "$ac_c_werror_flag" ||
 
28076
         test ! -s conftest.err
 
28077
       } && test -s conftest.$ac_objext; then
 
28078
  ac_header_compiler=yes
 
28079
else
 
28080
  echo "$as_me: failed program was:" >&5
 
28081
sed 's/^/| /' conftest.$ac_ext >&5
 
28082
 
 
28083
        ac_header_compiler=no
 
28084
fi
 
28085
 
 
28086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28087
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
28088
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
28089
 
 
28090
# Is the header present?
 
28091
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
28092
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
28093
cat >conftest.$ac_ext <<_ACEOF
 
28094
/* confdefs.h.  */
 
28095
_ACEOF
 
28096
cat confdefs.h >>conftest.$ac_ext
 
28097
cat >>conftest.$ac_ext <<_ACEOF
 
28098
/* end confdefs.h.  */
 
28099
@%:@include <$ac_header>
 
28100
_ACEOF
 
28101
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
28102
case "(($ac_try" in
 
28103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28104
  *) ac_try_echo=$ac_try;;
 
28105
esac
 
28106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28107
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
28108
  ac_status=$?
 
28109
  grep -v '^ *+' conftest.er1 >conftest.err
 
28110
  rm -f conftest.er1
 
28111
  cat conftest.err >&5
 
28112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28113
  (exit $ac_status); } >/dev/null && {
 
28114
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
28115
         test ! -s conftest.err
 
28116
       }; then
 
28117
  ac_header_preproc=yes
 
28118
else
 
28119
  echo "$as_me: failed program was:" >&5
 
28120
sed 's/^/| /' conftest.$ac_ext >&5
 
28121
 
 
28122
  ac_header_preproc=no
 
28123
fi
 
28124
 
 
28125
rm -f conftest.err conftest.$ac_ext
 
28126
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28127
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
28128
 
 
28129
# So?  What about this header?
 
28130
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28131
  yes:no: )
 
28132
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
28133
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28134
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
28135
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
28136
    ac_header_preproc=yes
 
28137
    ;;
 
28138
  no:yes:* )
 
28139
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
28140
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
28141
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
28142
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
28143
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
28144
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
28145
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
28146
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28147
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
28148
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
28149
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
28150
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
28151
    
 
28152
    ;;
 
28153
esac
 
28154
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28155
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
28156
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
28157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28158
else
 
28159
  eval "$as_ac_Header=\$ac_header_preproc"
 
28160
fi
 
28161
ac_res=`eval echo '${'$as_ac_Header'}'`
 
28162
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
28163
echo "${ECHO_T}$ac_res" >&6; }
 
28164
 
 
28165
fi
 
28166
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
28167
  cat >>confdefs.h <<_ACEOF
 
28168
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
28169
_ACEOF
 
28170
 
 
28171
fi
 
28172
 
 
28173
done
 
28174
 
 
28175
{ echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
 
28176
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6; }
 
28177
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
 
28178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28179
else
 
28180
  cat >conftest.$ac_ext <<_ACEOF
 
28181
/* confdefs.h.  */
 
28182
_ACEOF
 
28183
cat confdefs.h >>conftest.$ac_ext
 
28184
cat >>conftest.$ac_ext <<_ACEOF
 
28185
/* end confdefs.h.  */
 
28186
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
 
28187
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28188
#define _NSGetEnviron innocuous__NSGetEnviron
 
28189
 
 
28190
/* System header to define __stub macros and hopefully few prototypes,
 
28191
    which can conflict with char _NSGetEnviron (); below.
 
28192
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28193
    <limits.h> exists even on freestanding compilers.  */
 
28194
 
 
28195
#ifdef __STDC__
 
28196
# include <limits.h>
 
28197
#else
 
28198
# include <assert.h>
 
28199
#endif
 
28200
 
 
28201
#undef _NSGetEnviron
 
28202
 
 
28203
/* Override any GCC internal prototype to avoid an error.
 
28204
   Use char because int might match the return type of a GCC
 
28205
   builtin and then its argument prototype would still apply.  */
 
28206
#ifdef __cplusplus
 
28207
extern "C"
 
28208
#endif
 
28209
char _NSGetEnviron ();
 
28210
/* The GNU C library defines this for functions which it implements
 
28211
    to always fail with ENOSYS.  Some functions are actually named
 
28212
    something starting with __ and the normal name is an alias.  */
 
28213
#if defined __stub__NSGetEnviron || defined __stub____NSGetEnviron
 
28214
choke me
 
28215
#endif
 
28216
 
 
28217
int
 
28218
main ()
 
28219
{
 
28220
return _NSGetEnviron ();
 
28221
  ;
 
28222
  return 0;
 
28223
}
 
28224
_ACEOF
 
28225
rm -f conftest.$ac_objext conftest$ac_exeext
 
28226
if { (ac_try="$ac_link"
 
28227
case "(($ac_try" in
 
28228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28229
  *) ac_try_echo=$ac_try;;
 
28230
esac
 
28231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28232
  (eval "$ac_link") 2>conftest.er1
 
28233
  ac_status=$?
 
28234
  grep -v '^ *+' conftest.er1 >conftest.err
 
28235
  rm -f conftest.er1
 
28236
  cat conftest.err >&5
 
28237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28238
  (exit $ac_status); } && {
 
28239
         test -z "$ac_c_werror_flag" ||
 
28240
         test ! -s conftest.err
 
28241
       } && test -s conftest$ac_exeext &&
 
28242
       $as_test_x conftest$ac_exeext; then
 
28243
  ac_cv_func__NSGetEnviron=yes
 
28244
else
 
28245
  echo "$as_me: failed program was:" >&5
 
28246
sed 's/^/| /' conftest.$ac_ext >&5
 
28247
 
 
28248
        ac_cv_func__NSGetEnviron=no
 
28249
fi
 
28250
 
 
28251
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28252
      conftest$ac_exeext conftest.$ac_ext
 
28253
fi
 
28254
{ echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
 
28255
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6; }
 
28256
if test $ac_cv_func__NSGetEnviron = yes; then
 
28257
  
 
28258
cat >>confdefs.h <<\_ACEOF
 
28259
@%:@define HAVE_NSGETENVIRON 1
 
28260
_ACEOF
 
28261
 
 
28262
fi
 
28263
 
 
28264
 
 
28265
 
 
28266
 
 
28267
 
 
28268
 
 
28269
 
 
28270
 
 
28271
 
 
28272
 
 
28273
for ac_func in vsnprintf snprintf
 
28274
do
 
28275
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28276
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
28277
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
28278
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
28279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28280
else
 
28281
  cat >conftest.$ac_ext <<_ACEOF
 
28282
/* confdefs.h.  */
 
28283
_ACEOF
 
28284
cat confdefs.h >>conftest.$ac_ext
 
28285
cat >>conftest.$ac_ext <<_ACEOF
 
28286
/* end confdefs.h.  */
 
28287
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
28288
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28289
#define $ac_func innocuous_$ac_func
 
28290
 
 
28291
/* System header to define __stub macros and hopefully few prototypes,
 
28292
    which can conflict with char $ac_func (); below.
 
28293
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28294
    <limits.h> exists even on freestanding compilers.  */
 
28295
 
 
28296
#ifdef __STDC__
 
28297
# include <limits.h>
 
28298
#else
 
28299
# include <assert.h>
 
28300
#endif
 
28301
 
 
28302
#undef $ac_func
 
28303
 
 
28304
/* Override any GCC internal prototype to avoid an error.
 
28305
   Use char because int might match the return type of a GCC
 
28306
   builtin and then its argument prototype would still apply.  */
 
28307
#ifdef __cplusplus
 
28308
extern "C"
 
28309
#endif
 
28310
char $ac_func ();
 
28311
/* The GNU C library defines this for functions which it implements
 
28312
    to always fail with ENOSYS.  Some functions are actually named
 
28313
    something starting with __ and the normal name is an alias.  */
 
28314
#if defined __stub_$ac_func || defined __stub___$ac_func
 
28315
choke me
 
28316
#endif
 
28317
 
 
28318
int
 
28319
main ()
 
28320
{
 
28321
return $ac_func ();
 
28322
  ;
 
28323
  return 0;
 
28324
}
 
28325
_ACEOF
 
28326
rm -f conftest.$ac_objext conftest$ac_exeext
 
28327
if { (ac_try="$ac_link"
 
28328
case "(($ac_try" in
 
28329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28330
  *) ac_try_echo=$ac_try;;
 
28331
esac
 
28332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28333
  (eval "$ac_link") 2>conftest.er1
 
28334
  ac_status=$?
 
28335
  grep -v '^ *+' conftest.er1 >conftest.err
 
28336
  rm -f conftest.er1
 
28337
  cat conftest.err >&5
 
28338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28339
  (exit $ac_status); } && {
 
28340
         test -z "$ac_c_werror_flag" ||
 
28341
         test ! -s conftest.err
 
28342
       } && test -s conftest$ac_exeext &&
 
28343
       $as_test_x conftest$ac_exeext; then
 
28344
  eval "$as_ac_var=yes"
 
28345
else
 
28346
  echo "$as_me: failed program was:" >&5
 
28347
sed 's/^/| /' conftest.$ac_ext >&5
 
28348
 
 
28349
        eval "$as_ac_var=no"
 
28350
fi
 
28351
 
 
28352
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28353
      conftest$ac_exeext conftest.$ac_ext
 
28354
fi
 
28355
ac_res=`eval echo '${'$as_ac_var'}'`
 
28356
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
28357
echo "${ECHO_T}$ac_res" >&6; }
 
28358
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
28359
  cat >>confdefs.h <<_ACEOF
 
28360
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28361
_ACEOF
 
28362
 
 
28363
fi
 
28364
done
 
28365
 
 
28366
 
 
28367
 
 
28368
 
 
28369
 
 
28370
 
 
28371
 
 
28372
 
 
28373
 
 
28374
# Check whether --enable-embedded was given.
 
28375
if test "${enable_embedded+set}" = set; then
 
28376
  enableval=$enable_embedded; kde_use_qt_emb=$enableval
 
28377
else
 
28378
  kde_use_qt_emb=no
 
28379
 
 
28380
fi
 
28381
 
 
28382
 
 
28383
# Check whether --enable-qtopia was given.
 
28384
if test "${enable_qtopia+set}" = set; then
 
28385
  enableval=$enable_qtopia; kde_use_qt_emb_palm=$enableval
 
28386
else
 
28387
  kde_use_qt_emb_palm=no
 
28388
 
 
28389
fi
 
28390
 
 
28391
 
 
28392
# Check whether --enable-mac was given.
 
28393
if test "${enable_mac+set}" = set; then
 
28394
  enableval=$enable_mac; kde_use_qt_mac=$enableval
 
28395
else
 
28396
  kde_use_qt_mac=no
 
28397
 
 
28398
fi
 
28399
 
 
28400
 
 
28401
# used to disable x11-specific stuff on special platforms
 
28402
 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
 
28403
  include_x11_TRUE=
 
28404
  include_x11_FALSE='#'
 
28405
else
 
28406
  include_x11_TRUE='#'
 
28407
  include_x11_FALSE=
 
28408
fi
 
28409
 
 
28410
 
 
28411
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
 
28412
 
 
28413
{ echo "$as_me:$LINENO: checking for X" >&5
 
28414
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
28415
 
 
28416
if test "${kde_cv_have_x+set}" = set; then
 
28417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28418
else
 
28419
  # One or both of the vars are not set, and there is no cached value.
 
28420
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
 
28421
   kde_x_includes=NO
 
28422
else
 
28423
   kde_x_includes=$x_includes
 
28424
fi
 
28425
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
 
28426
   kde_x_libraries=NO
 
28427
else
 
28428
   kde_x_libraries=$x_libraries
 
28429
fi
 
28430
 
 
28431
# below we use the standard autoconf calls
 
28432
ac_x_libraries=$kde_x_libraries
 
28433
ac_x_includes=$kde_x_includes
 
28434
 
 
28435
 
 
28436
 
 
28437
 
 
28438
if test "$ac_x_includes" = NO; then
 
28439
  # Guess where to find include files, by looking for this one X11 .h file.
 
28440
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 
28441
 
 
28442
  # First, try using that file with no special directory specified.
 
28443
cat >conftest.$ac_ext <<_ACEOF
 
28444
/* confdefs.h.  */
 
28445
_ACEOF
 
28446
cat confdefs.h >>conftest.$ac_ext
 
28447
cat >>conftest.$ac_ext <<_ACEOF
 
28448
/* end confdefs.h.  */
 
28449
#include <$x_direct_test_include>
 
28450
_ACEOF
 
28451
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
28452
case "(($ac_try" in
 
28453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28454
  *) ac_try_echo=$ac_try;;
 
28455
esac
 
28456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28457
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
28458
  ac_status=$?
 
28459
  grep -v '^ *+' conftest.er1 >conftest.err
 
28460
  rm -f conftest.er1
 
28461
  cat conftest.err >&5
 
28462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28463
  (exit $ac_status); } >/dev/null && {
 
28464
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
28465
         test ! -s conftest.err
 
28466
       }; then
 
28467
  # We can compile using X headers with no special include directory.
 
28468
ac_x_includes=
 
28469
else
 
28470
  echo "$as_me: failed program was:" >&5
 
28471
sed 's/^/| /' conftest.$ac_ext >&5
 
28472
 
 
28473
  # Look for the header file in a standard set of common directories.
 
28474
# Check X11 before X11Rn because it is often a symlink to the current release.
 
28475
  for ac_dir in               \
 
28476
    /usr/X11/include          \
 
28477
    /usr/X11R6/include        \
 
28478
    /usr/X11R5/include        \
 
28479
    /usr/X11R4/include        \
 
28480
                              \
 
28481
    /usr/include/X11          \
 
28482
    /usr/include/X11R6        \
 
28483
    /usr/include/X11R5        \
 
28484
    /usr/include/X11R4        \
 
28485
                              \
 
28486
    /usr/local/X11/include    \
 
28487
    /usr/local/X11R6/include  \
 
28488
    /usr/local/X11R5/include  \
 
28489
    /usr/local/X11R4/include  \
 
28490
                              \
 
28491
    /usr/local/include/X11    \
 
28492
    /usr/local/include/X11R6  \
 
28493
    /usr/local/include/X11R5  \
 
28494
    /usr/local/include/X11R4  \
 
28495
                              \
 
28496
    /usr/X386/include         \
 
28497
    /usr/x386/include         \
 
28498
    /usr/XFree86/include/X11  \
 
28499
                              \
 
28500
    /usr/include              \
 
28501
    /usr/local/include        \
 
28502
    /usr/unsupported/include  \
 
28503
    /usr/athena/include       \
 
28504
    /usr/local/x11r5/include  \
 
28505
    /usr/lpp/Xamples/include  \
 
28506
                              \
 
28507
    /usr/openwin/include      \
 
28508
    /usr/openwin/share/include \
 
28509
    ; \
 
28510
  do
 
28511
    if test -r "$ac_dir/$x_direct_test_include"; then
 
28512
      ac_x_includes=$ac_dir
 
28513
      break
 
28514
    fi
 
28515
  done
 
28516
fi
 
28517
 
 
28518
rm -f conftest.err conftest.$ac_ext
 
28519
fi # $ac_x_includes = NO
 
28520
 
 
28521
if test "$ac_x_libraries" = NO; then
 
28522
  # Check for the libraries.
 
28523
 
 
28524
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 
28525
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 
28526
 
 
28527
  # See if we find them without any special options.
 
28528
  # Don't add to $LIBS permanently.
 
28529
  ac_save_LIBS="$LIBS"
 
28530
  LIBS="-l$x_direct_test_library $LIBS"
 
28531
cat >conftest.$ac_ext <<_ACEOF
 
28532
/* confdefs.h.  */
 
28533
_ACEOF
 
28534
cat confdefs.h >>conftest.$ac_ext
 
28535
cat >>conftest.$ac_ext <<_ACEOF
 
28536
/* end confdefs.h.  */
 
28537
#include <X11/Intrinsic.h>
 
28538
int
 
28539
main ()
 
28540
{
 
28541
${x_direct_test_function}(1)
 
28542
  ;
 
28543
  return 0;
 
28544
}
 
28545
_ACEOF
 
28546
rm -f conftest.$ac_objext conftest$ac_exeext
 
28547
if { (ac_try="$ac_link"
 
28548
case "(($ac_try" in
 
28549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28550
  *) ac_try_echo=$ac_try;;
 
28551
esac
 
28552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28553
  (eval "$ac_link") 2>conftest.er1
 
28554
  ac_status=$?
 
28555
  grep -v '^ *+' conftest.er1 >conftest.err
 
28556
  rm -f conftest.er1
 
28557
  cat conftest.err >&5
 
28558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28559
  (exit $ac_status); } && {
 
28560
         test -z "$ac_c_werror_flag" ||
 
28561
         test ! -s conftest.err
 
28562
       } && test -s conftest$ac_exeext &&
 
28563
       $as_test_x conftest$ac_exeext; then
 
28564
  LIBS="$ac_save_LIBS"
 
28565
# We can link X programs with no special library path.
 
28566
ac_x_libraries=
 
28567
else
 
28568
  echo "$as_me: failed program was:" >&5
 
28569
sed 's/^/| /' conftest.$ac_ext >&5
 
28570
 
 
28571
        LIBS="$ac_save_LIBS"
 
28572
# First see if replacing the include by lib works.
 
28573
# Check X11 before X11Rn because it is often a symlink to the current release.
 
28574
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
 
28575
    /usr/X11/lib${kdelibsuff}           \
 
28576
    /usr/X11R6/lib${kdelibsuff}         \
 
28577
    /usr/X11R5/lib${kdelibsuff}         \
 
28578
    /usr/X11R4/lib${kdelibsuff}         \
 
28579
                                        \
 
28580
    /usr/lib${kdelibsuff}/X11           \
 
28581
    /usr/lib${kdelibsuff}/X11R6         \
 
28582
    /usr/lib${kdelibsuff}/X11R5         \
 
28583
    /usr/lib${kdelibsuff}/X11R4         \
 
28584
                                        \
 
28585
    /usr/local/X11/lib${kdelibsuff}     \
 
28586
    /usr/local/X11R6/lib${kdelibsuff}   \
 
28587
    /usr/local/X11R5/lib${kdelibsuff}   \
 
28588
    /usr/local/X11R4/lib${kdelibsuff}   \
 
28589
                                        \
 
28590
    /usr/local/lib${kdelibsuff}/X11     \
 
28591
    /usr/local/lib${kdelibsuff}/X11R6   \
 
28592
    /usr/local/lib${kdelibsuff}/X11R5   \
 
28593
    /usr/local/lib${kdelibsuff}/X11R4   \
 
28594
                                        \
 
28595
    /usr/X386/lib${kdelibsuff}          \
 
28596
    /usr/x386/lib${kdelibsuff}          \
 
28597
    /usr/XFree86/lib${kdelibsuff}/X11   \
 
28598
                                        \
 
28599
    /usr/lib${kdelibsuff}               \
 
28600
    /usr/local/lib${kdelibsuff}         \
 
28601
    /usr/unsupported/lib${kdelibsuff}   \
 
28602
    /usr/athena/lib${kdelibsuff}        \
 
28603
    /usr/local/x11r5/lib${kdelibsuff}   \
 
28604
    /usr/lpp/Xamples/lib${kdelibsuff}   \
 
28605
    /lib/usr/lib${kdelibsuff}/X11       \
 
28606
                                        \
 
28607
    /usr/openwin/lib${kdelibsuff}       \
 
28608
    /usr/openwin/share/lib${kdelibsuff} \
 
28609
    ; \
 
28610
do
 
28611
  for ac_extension in a so sl; do
 
28612
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 
28613
      ac_x_libraries=$ac_dir
 
28614
      break 2
 
28615
    fi
 
28616
  done
 
28617
done
 
28618
fi
 
28619
 
 
28620
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28621
      conftest$ac_exeext conftest.$ac_ext
 
28622
fi # $ac_x_libraries = NO
 
28623
 
 
28624
case "$host" in
 
28625
mips-sgi-irix6*)
 
28626
  ;;
 
28627
*-*-solaris*)
 
28628
  ;;
 
28629
*)
 
28630
  rm -f -r conftest.dir
 
28631
if mkdir conftest.dir; then
 
28632
  cd conftest.dir
 
28633
  cat >Imakefile <<'_ACEOF'
 
28634
incroot:
 
28635
        @echo incroot='${INCROOT}'
 
28636
usrlibdir:
 
28637
        @echo usrlibdir='${USRLIBDIR}'
 
28638
libdir:
 
28639
        @echo libdir='${LIBDIR}'
 
28640
_ACEOF
 
28641
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
 
28642
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
28643
    for ac_var in incroot usrlibdir libdir; do
 
28644
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
28645
    done
 
28646
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
28647
    for ac_extension in a so sl; do
 
28648
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
28649
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
28650
        ac_im_usrlibdir=$ac_im_libdir; break
 
28651
      fi
 
28652
    done
 
28653
    # Screen out bogus values from the imake configuration.  They are
 
28654
    # bogus both because they are the default anyway, and because
 
28655
    # using them would break gcc on systems where it needs fixed includes.
 
28656
    case $ac_im_incroot in
 
28657
        /usr/include) ac_x_includes= ;;
 
28658
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
28659
    esac
 
28660
    case $ac_im_usrlibdir in
 
28661
        /usr/lib | /lib) ;;
 
28662
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
28663
    esac
 
28664
  fi
 
28665
  cd ..
 
28666
  rm -f -r conftest.dir
 
28667
fi
 
28668
 
 
28669
  if test -z "$ac_x_includes"; then
 
28670
    ac_x_includes="."
 
28671
  fi
 
28672
  if test -z "$ac_x_libraries"; then
 
28673
    ac_x_libraries="/usr/lib${kdelibsuff}"
 
28674
  fi
 
28675
esac
 
28676
#from now on we use our own again
 
28677
 
 
28678
# when the user already gave --x-includes, we ignore
 
28679
# what the standard autoconf macros told us.
 
28680
if test "$kde_x_includes" = NO; then
 
28681
  kde_x_includes=$ac_x_includes
 
28682
fi
 
28683
 
 
28684
# for --x-libraries too
 
28685
if test "$kde_x_libraries" = NO; then
 
28686
  kde_x_libraries=$ac_x_libraries
 
28687
fi
 
28688
 
 
28689
if test "$kde_x_includes" = NO; then
 
28690
  { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
 
28691
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
 
28692
   { (exit 1); exit 1; }; }
 
28693
fi
 
28694
 
 
28695
if test "$kde_x_libraries" = NO; then
 
28696
  { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
 
28697
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
 
28698
   { (exit 1); exit 1; }; }
 
28699
fi
 
28700
 
 
28701
# Record where we found X for the cache.
 
28702
kde_cv_have_x="have_x=yes \
 
28703
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
 
28704
 
 
28705
fi
 
28706
 
 
28707
eval "$kde_cv_have_x"
 
28708
 
 
28709
if test "$have_x" != yes; then
 
28710
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
28711
echo "${ECHO_T}$have_x" >&6; }
 
28712
  no_x=yes
 
28713
else
 
28714
  { echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
 
28715
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6; }
 
28716
fi
 
28717
 
 
28718
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
 
28719
  X_INCLUDES=""
 
28720
  x_includes=".";  else
 
28721
  x_includes=$kde_x_includes
 
28722
  X_INCLUDES="-I$x_includes"
 
28723
fi
 
28724
 
 
28725
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
 
28726
  X_LDFLAGS=""
 
28727
  x_libraries="/usr/lib";  else
 
28728
  x_libraries=$kde_x_libraries
 
28729
  X_LDFLAGS="-L$x_libraries"
 
28730
fi
 
28731
all_includes="$X_INCLUDES"
 
28732
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
 
28733
 
 
28734
# Check for libraries that X11R6 Xt/Xaw programs need.
 
28735
ac_save_LDFLAGS="$LDFLAGS"
 
28736
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
28737
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
28738
# check for ICE first), but we must link in the order -lSM -lICE or
 
28739
# we get undefined symbols.  So assume we have SM if we have ICE.
 
28740
# These have to be linked with before -lX11, unlike the other
 
28741
# libraries we check for below, so use a different variable.
 
28742
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
 
28743
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
28744
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
 
28745
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
28746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28747
else
 
28748
  ac_check_lib_save_LIBS=$LIBS
 
28749
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
28750
cat >conftest.$ac_ext <<_ACEOF
 
28751
/* confdefs.h.  */
 
28752
_ACEOF
 
28753
cat confdefs.h >>conftest.$ac_ext
 
28754
cat >>conftest.$ac_ext <<_ACEOF
 
28755
/* end confdefs.h.  */
 
28756
 
 
28757
/* Override any GCC internal prototype to avoid an error.
 
28758
   Use char because int might match the return type of a GCC
 
28759
   builtin and then its argument prototype would still apply.  */
 
28760
#ifdef __cplusplus
 
28761
extern "C"
 
28762
#endif
 
28763
char IceConnectionNumber ();
 
28764
int
 
28765
main ()
 
28766
{
 
28767
return IceConnectionNumber ();
 
28768
  ;
 
28769
  return 0;
 
28770
}
 
28771
_ACEOF
 
28772
rm -f conftest.$ac_objext conftest$ac_exeext
 
28773
if { (ac_try="$ac_link"
 
28774
case "(($ac_try" in
 
28775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28776
  *) ac_try_echo=$ac_try;;
 
28777
esac
 
28778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28779
  (eval "$ac_link") 2>conftest.er1
 
28780
  ac_status=$?
 
28781
  grep -v '^ *+' conftest.er1 >conftest.err
 
28782
  rm -f conftest.er1
 
28783
  cat conftest.err >&5
 
28784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28785
  (exit $ac_status); } && {
 
28786
         test -z "$ac_c_werror_flag" ||
 
28787
         test ! -s conftest.err
 
28788
       } && test -s conftest$ac_exeext &&
 
28789
       $as_test_x conftest$ac_exeext; then
 
28790
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
28791
else
 
28792
  echo "$as_me: failed program was:" >&5
 
28793
sed 's/^/| /' conftest.$ac_ext >&5
 
28794
 
 
28795
        ac_cv_lib_ICE_IceConnectionNumber=no
 
28796
fi
 
28797
 
 
28798
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28799
      conftest$ac_exeext conftest.$ac_ext
 
28800
LIBS=$ac_check_lib_save_LIBS
 
28801
fi
 
28802
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
28803
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
28804
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
28805
  LIBSM="-lSM -lICE"
 
28806
fi
 
28807
 
 
28808
LDFLAGS="$ac_save_LDFLAGS"
 
28809
 
 
28810
LIB_X11='-lX11 $(LIBSOCKET)'
 
28811
 
 
28812
{ echo "$as_me:$LINENO: checking for libXext" >&5
 
28813
echo $ECHO_N "checking for libXext... $ECHO_C" >&6; }
 
28814
if test "${kde_cv_have_libXext+set}" = set; then
 
28815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28816
else
 
28817
  
 
28818
kde_ldflags_safe="$LDFLAGS"
 
28819
kde_libs_safe="$LIBS"
 
28820
 
 
28821
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
 
28822
LIBS="-lXext -lX11 $LIBSOCKET"
 
28823
 
 
28824
cat >conftest.$ac_ext <<_ACEOF
 
28825
/* confdefs.h.  */
 
28826
_ACEOF
 
28827
cat confdefs.h >>conftest.$ac_ext
 
28828
cat >>conftest.$ac_ext <<_ACEOF
 
28829
/* end confdefs.h.  */
 
28830
 
 
28831
#include <stdio.h>
 
28832
#ifdef STDC_HEADERS
 
28833
# include <stdlib.h>
 
28834
#endif
 
28835
 
 
28836
int
 
28837
main ()
 
28838
{
 
28839
 
 
28840
printf("hello Xext\n");
 
28841
 
 
28842
  ;
 
28843
  return 0;
 
28844
}
 
28845
_ACEOF
 
28846
rm -f conftest.$ac_objext conftest$ac_exeext
 
28847
if { (ac_try="$ac_link"
 
28848
case "(($ac_try" in
 
28849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28850
  *) ac_try_echo=$ac_try;;
 
28851
esac
 
28852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28853
  (eval "$ac_link") 2>conftest.er1
 
28854
  ac_status=$?
 
28855
  grep -v '^ *+' conftest.er1 >conftest.err
 
28856
  rm -f conftest.er1
 
28857
  cat conftest.err >&5
 
28858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28859
  (exit $ac_status); } && {
 
28860
         test -z "$ac_c_werror_flag" ||
 
28861
         test ! -s conftest.err
 
28862
       } && test -s conftest$ac_exeext &&
 
28863
       $as_test_x conftest$ac_exeext; then
 
28864
  kde_cv_have_libXext=yes
 
28865
else
 
28866
  echo "$as_me: failed program was:" >&5
 
28867
sed 's/^/| /' conftest.$ac_ext >&5
 
28868
 
 
28869
        kde_cv_have_libXext=no
 
28870
 
 
28871
fi
 
28872
 
 
28873
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28874
      conftest$ac_exeext conftest.$ac_ext
 
28875
 
 
28876
LDFLAGS=$kde_ldflags_safe
 
28877
LIBS=$kde_libs_safe
 
28878
 
 
28879
fi
 
28880
 
 
28881
 
 
28882
{ echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
 
28883
echo "${ECHO_T}$kde_cv_have_libXext" >&6; }
 
28884
 
 
28885
if test "$kde_cv_have_libXext" = "no"; then
 
28886
  { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
 
28887
can't find it itself, we stop here assuming that make wouldn't find
 
28888
them either." >&5
 
28889
echo "$as_me: error: We need a working libXext to proceed. Since configure
 
28890
can't find it itself, we stop here assuming that make wouldn't find
 
28891
them either." >&2;}
 
28892
   { (exit 1); exit 1; }; }
 
28893
fi
 
28894
 
 
28895
LIB_XEXT="-lXext"
 
28896
QTE_NORTTI=""
 
28897
 
 
28898
elif test "$kde_use_qt_emb" = "yes"; then
 
28899
    CPPFLAGS=-DQWS
 
28900
  CXXFLAGS="$CXXFLAGS -fno-rtti"
 
28901
  QTE_NORTTI="-fno-rtti -DQWS"
 
28902
  X_PRE_LIBS=""
 
28903
  LIB_X11=""
 
28904
  LIB_XEXT=""
 
28905
  LIB_XRENDER=""
 
28906
  LIBSM=""
 
28907
  X_INCLUDES=""
 
28908
  X_LDFLAGS=""
 
28909
  x_includes=""
 
28910
  x_libraries=""
 
28911
elif test "$kde_use_qt_mac" = "yes"; then
 
28912
      CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
 
28913
  CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
 
28914
  X_PRE_LIBS=""
 
28915
  LIB_X11=""
 
28916
  LIB_XEXT=""
 
28917
  LIB_XRENDER=""
 
28918
  LIBSM=""
 
28919
  X_INCLUDES=""
 
28920
  X_LDFLAGS=""
 
28921
  x_includes=""
 
28922
  x_libraries=""
 
28923
fi
 
28924
 
 
28925
 
 
28926
 
 
28927
 
 
28928
 
 
28929
 
 
28930
 
 
28931
 
 
28932
 
 
28933
 
 
28934
 
 
28935
 
 
28936
 
 
28937
                LIBPTHREAD=""
 
28938
 
 
28939
  if test -n "$PTHREAD_LIBS"; then
 
28940
    if test "x$PTHREAD_LIBS" = "x-pthread" ; then
 
28941
      LIBPTHREAD="PTHREAD"
 
28942
    else
 
28943
      PTHREAD_LIBS_save="$PTHREAD_LIBS"
 
28944
      PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
 
28945
      { echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
 
28946
echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6; }
 
28947
      
 
28948
     kde_save_LDFLAGS="$LDFLAGS"
 
28949
          kde_save_LIBS="$LIBS"
 
28950
     LDFLAGS="$LDFLAGS $all_libraries"
 
28951
     case $host_os in
 
28952
      aix*) LDFLAGS="-brtl $LDFLAGS"
 
28953
        test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
 
28954
        ;;
 
28955
     esac
 
28956
     as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
 
28957
{ echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
 
28958
echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6; }
 
28959
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
28960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28961
else
 
28962
  ac_check_lib_save_LIBS=$LIBS
 
28963
LIBS="-l$PTHREAD_LIBS  $LIBS"
 
28964
cat >conftest.$ac_ext <<_ACEOF
 
28965
/* confdefs.h.  */
 
28966
_ACEOF
 
28967
cat confdefs.h >>conftest.$ac_ext
 
28968
cat >>conftest.$ac_ext <<_ACEOF
 
28969
/* end confdefs.h.  */
 
28970
 
 
28971
/* Override any GCC internal prototype to avoid an error.
 
28972
   Use char because int might match the return type of a GCC
 
28973
   builtin and then its argument prototype would still apply.  */
 
28974
#ifdef __cplusplus
 
28975
extern "C"
 
28976
#endif
 
28977
char pthread_create ();
 
28978
int
 
28979
main ()
 
28980
{
 
28981
return pthread_create ();
 
28982
  ;
 
28983
  return 0;
 
28984
}
 
28985
_ACEOF
 
28986
rm -f conftest.$ac_objext conftest$ac_exeext
 
28987
if { (ac_try="$ac_link"
 
28988
case "(($ac_try" in
 
28989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28990
  *) ac_try_echo=$ac_try;;
 
28991
esac
 
28992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28993
  (eval "$ac_link") 2>conftest.er1
 
28994
  ac_status=$?
 
28995
  grep -v '^ *+' conftest.er1 >conftest.err
 
28996
  rm -f conftest.er1
 
28997
  cat conftest.err >&5
 
28998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28999
  (exit $ac_status); } && {
 
29000
         test -z "$ac_c_werror_flag" ||
 
29001
         test ! -s conftest.err
 
29002
       } && test -s conftest$ac_exeext &&
 
29003
       $as_test_x conftest$ac_exeext; then
 
29004
  eval "$as_ac_Lib=yes"
 
29005
else
 
29006
  echo "$as_me: failed program was:" >&5
 
29007
sed 's/^/| /' conftest.$ac_ext >&5
 
29008
 
 
29009
        eval "$as_ac_Lib=no"
 
29010
fi
 
29011
 
 
29012
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29013
      conftest$ac_exeext conftest.$ac_ext
 
29014
LIBS=$ac_check_lib_save_LIBS
 
29015
fi
 
29016
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
29017
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
29018
echo "${ECHO_T}$ac_res" >&6; }
 
29019
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
29020
  LIBPTHREAD="$PTHREAD_LIBS_save"
 
29021
fi
 
29022
 
 
29023
     LDFLAGS="$kde_save_LDFLAGS"
 
29024
     LIBS="$kde_save_LIBS"
 
29025
 
 
29026
      PTHREAD_LIBS="$PTHREAD_LIBS_save"
 
29027
    fi
 
29028
  fi
 
29029
 
 
29030
    if test -z "$LIBPTHREAD"; then
 
29031
    { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
29032
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
29033
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
29034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29035
else
 
29036
  ac_check_lib_save_LIBS=$LIBS
 
29037
LIBS="-lpthread  $LIBS"
 
29038
cat >conftest.$ac_ext <<_ACEOF
 
29039
/* confdefs.h.  */
 
29040
_ACEOF
 
29041
cat confdefs.h >>conftest.$ac_ext
 
29042
cat >>conftest.$ac_ext <<_ACEOF
 
29043
/* end confdefs.h.  */
 
29044
 
 
29045
/* Override any GCC internal prototype to avoid an error.
 
29046
   Use char because int might match the return type of a GCC
 
29047
   builtin and then its argument prototype would still apply.  */
 
29048
#ifdef __cplusplus
 
29049
extern "C"
 
29050
#endif
 
29051
char pthread_create ();
 
29052
int
 
29053
main ()
 
29054
{
 
29055
return pthread_create ();
 
29056
  ;
 
29057
  return 0;
 
29058
}
 
29059
_ACEOF
 
29060
rm -f conftest.$ac_objext conftest$ac_exeext
 
29061
if { (ac_try="$ac_link"
 
29062
case "(($ac_try" in
 
29063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29064
  *) ac_try_echo=$ac_try;;
 
29065
esac
 
29066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29067
  (eval "$ac_link") 2>conftest.er1
 
29068
  ac_status=$?
 
29069
  grep -v '^ *+' conftest.er1 >conftest.err
 
29070
  rm -f conftest.er1
 
29071
  cat conftest.err >&5
 
29072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29073
  (exit $ac_status); } && {
 
29074
         test -z "$ac_c_werror_flag" ||
 
29075
         test ! -s conftest.err
 
29076
       } && test -s conftest$ac_exeext &&
 
29077
       $as_test_x conftest$ac_exeext; then
 
29078
  ac_cv_lib_pthread_pthread_create=yes
 
29079
else
 
29080
  echo "$as_me: failed program was:" >&5
 
29081
sed 's/^/| /' conftest.$ac_ext >&5
 
29082
 
 
29083
        ac_cv_lib_pthread_pthread_create=no
 
29084
fi
 
29085
 
 
29086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29087
      conftest$ac_exeext conftest.$ac_ext
 
29088
LIBS=$ac_check_lib_save_LIBS
 
29089
fi
 
29090
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
29091
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 
29092
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
29093
  LIBPTHREAD="-lpthread"
 
29094
fi
 
29095
 
 
29096
  fi
 
29097
 
 
29098
    if test -z "$LIBPTHREAD" ; then
 
29099
    { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
29100
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
29101
    kde_safe_libs=$LIBS
 
29102
    LIBS="$LIBS -lpthread"
 
29103
    cat >conftest.$ac_ext <<_ACEOF
 
29104
/* confdefs.h.  */
 
29105
_ACEOF
 
29106
cat confdefs.h >>conftest.$ac_ext
 
29107
cat >>conftest.$ac_ext <<_ACEOF
 
29108
/* end confdefs.h.  */
 
29109
#include <pthread.h>
 
29110
int
 
29111
main ()
 
29112
{
 
29113
(void)pthread_create(0,0,0,0);
 
29114
  ;
 
29115
  return 0;
 
29116
}
 
29117
_ACEOF
 
29118
rm -f conftest.$ac_objext conftest$ac_exeext
 
29119
if { (ac_try="$ac_link"
 
29120
case "(($ac_try" in
 
29121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29122
  *) ac_try_echo=$ac_try;;
 
29123
esac
 
29124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29125
  (eval "$ac_link") 2>conftest.er1
 
29126
  ac_status=$?
 
29127
  grep -v '^ *+' conftest.er1 >conftest.err
 
29128
  rm -f conftest.er1
 
29129
  cat conftest.err >&5
 
29130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29131
  (exit $ac_status); } && {
 
29132
         test -z "$ac_c_werror_flag" ||
 
29133
         test ! -s conftest.err
 
29134
       } && test -s conftest$ac_exeext &&
 
29135
       $as_test_x conftest$ac_exeext; then
 
29136
  
 
29137
        { echo "$as_me:$LINENO: result: yes" >&5
 
29138
echo "${ECHO_T}yes" >&6; }
 
29139
        LIBPTHREAD="-lpthread"
 
29140
else
 
29141
  echo "$as_me: failed program was:" >&5
 
29142
sed 's/^/| /' conftest.$ac_ext >&5
 
29143
 
 
29144
        
 
29145
        { echo "$as_me:$LINENO: result: no" >&5
 
29146
echo "${ECHO_T}no" >&6; }
 
29147
fi
 
29148
 
 
29149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29150
      conftest$ac_exeext conftest.$ac_ext
 
29151
    LIBS=$kde_safe_libs
 
29152
  fi
 
29153
 
 
29154
    if test "x$LIBPTHREAD" = "xPTHREAD" ; then
 
29155
    LIBPTHREAD=""
 
29156
  fi
 
29157
 
 
29158
  
 
29159
 
 
29160
 
 
29161
      USE_THREADS=""
 
29162
      if test -z "$LIBPTHREAD"; then
 
29163
        
 
29164
{ echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
 
29165
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
 
29166
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
 
29167
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
29168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29169
else
 
29170
  
 
29171
  
 
29172
   ac_ext=cpp
 
29173
ac_cpp='$CXXCPP $CPPFLAGS'
 
29174
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29175
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29176
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29177
 
 
29178
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29179
 
 
29180
 
 
29181
  save_CXXFLAGS="$CXXFLAGS"
 
29182
  CXXFLAGS="$CXXFLAGS -pthread"
 
29183
  cat >conftest.$ac_ext <<_ACEOF
 
29184
/* confdefs.h.  */
 
29185
_ACEOF
 
29186
cat confdefs.h >>conftest.$ac_ext
 
29187
cat >>conftest.$ac_ext <<_ACEOF
 
29188
/* end confdefs.h.  */
 
29189
 
 
29190
int
 
29191
main ()
 
29192
{
 
29193
 return 0; 
 
29194
  ;
 
29195
  return 0;
 
29196
}
 
29197
_ACEOF
 
29198
rm -f conftest.$ac_objext conftest$ac_exeext
 
29199
if { (ac_try="$ac_link"
 
29200
case "(($ac_try" in
 
29201
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29202
  *) ac_try_echo=$ac_try;;
 
29203
esac
 
29204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29205
  (eval "$ac_link") 2>conftest.er1
 
29206
  ac_status=$?
 
29207
  grep -v '^ *+' conftest.er1 >conftest.err
 
29208
  rm -f conftest.er1
 
29209
  cat conftest.err >&5
 
29210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29211
  (exit $ac_status); } && {
 
29212
         test -z "$ac_cxx_werror_flag" ||
 
29213
         test ! -s conftest.err
 
29214
       } && test -s conftest$ac_exeext &&
 
29215
       $as_test_x conftest$ac_exeext; then
 
29216
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
29217
else
 
29218
  echo "$as_me: failed program was:" >&5
 
29219
sed 's/^/| /' conftest.$ac_ext >&5
 
29220
 
 
29221
        
 
29222
fi
 
29223
 
 
29224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29225
      conftest$ac_exeext conftest.$ac_ext
 
29226
  CXXFLAGS="$save_CXXFLAGS"
 
29227
  ac_ext=c
 
29228
ac_cpp='$CPP $CPPFLAGS'
 
29229
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29230
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29231
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29232
 
 
29233
 
 
29234
fi
 
29235
 
 
29236
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
29237
 { echo "$as_me:$LINENO: result: yes" >&5
 
29238
echo "${ECHO_T}yes" >&6; }
 
29239
 :
 
29240
 USE_THREADS="-D_THREAD_SAFE -pthread"
 
29241
else
 
29242
 { echo "$as_me:$LINENO: result: no" >&5
 
29243
echo "${ECHO_T}no" >&6; }
 
29244
 :
 
29245
 
 
29246
fi
 
29247
 
 
29248
      fi
 
29249
 
 
29250
    
 
29251
 
 
29252
    case $host_os in
 
29253
        solaris*)
 
29254
                
 
29255
{ echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
 
29256
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
 
29257
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
 
29258
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
29259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29260
else
 
29261
  
 
29262
  
 
29263
   ac_ext=cpp
 
29264
ac_cpp='$CXXCPP $CPPFLAGS'
 
29265
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29266
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29267
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
29268
 
 
29269
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
29270
 
 
29271
 
 
29272
  save_CXXFLAGS="$CXXFLAGS"
 
29273
  CXXFLAGS="$CXXFLAGS -mt"
 
29274
  cat >conftest.$ac_ext <<_ACEOF
 
29275
/* confdefs.h.  */
 
29276
_ACEOF
 
29277
cat confdefs.h >>conftest.$ac_ext
 
29278
cat >>conftest.$ac_ext <<_ACEOF
 
29279
/* end confdefs.h.  */
 
29280
 
 
29281
int
 
29282
main ()
 
29283
{
 
29284
 return 0; 
 
29285
  ;
 
29286
  return 0;
 
29287
}
 
29288
_ACEOF
 
29289
rm -f conftest.$ac_objext conftest$ac_exeext
 
29290
if { (ac_try="$ac_link"
 
29291
case "(($ac_try" in
 
29292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29293
  *) ac_try_echo=$ac_try;;
 
29294
esac
 
29295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29296
  (eval "$ac_link") 2>conftest.er1
 
29297
  ac_status=$?
 
29298
  grep -v '^ *+' conftest.er1 >conftest.err
 
29299
  rm -f conftest.er1
 
29300
  cat conftest.err >&5
 
29301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29302
  (exit $ac_status); } && {
 
29303
         test -z "$ac_cxx_werror_flag" ||
 
29304
         test ! -s conftest.err
 
29305
       } && test -s conftest$ac_exeext &&
 
29306
       $as_test_x conftest$ac_exeext; then
 
29307
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
29308
else
 
29309
  echo "$as_me: failed program was:" >&5
 
29310
sed 's/^/| /' conftest.$ac_ext >&5
 
29311
 
 
29312
        
 
29313
fi
 
29314
 
 
29315
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29316
      conftest$ac_exeext conftest.$ac_ext
 
29317
  CXXFLAGS="$save_CXXFLAGS"
 
29318
  ac_ext=c
 
29319
ac_cpp='$CPP $CPPFLAGS'
 
29320
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29321
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29322
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29323
 
 
29324
 
 
29325
fi
 
29326
 
 
29327
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
29328
 { echo "$as_me:$LINENO: result: yes" >&5
 
29329
echo "${ECHO_T}yes" >&6; }
 
29330
 :
 
29331
 USE_THREADS="-mt"
 
29332
else
 
29333
 { echo "$as_me:$LINENO: result: no" >&5
 
29334
echo "${ECHO_T}no" >&6; }
 
29335
 :
 
29336
 
 
29337
fi
 
29338
 
 
29339
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
 
29340
                ;;
 
29341
        freebsd*)
 
29342
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
 
29343
                ;;
 
29344
        aix*)
 
29345
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
 
29346
                LIBPTHREAD="$LIBPTHREAD -lc_r"
 
29347
                ;;
 
29348
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
29349
                if test "$CXX" = "KCC"; then
 
29350
                  CXXFLAGS="$CXXFLAGS --thread_safe"
 
29351
                  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
 
29352
                fi
 
29353
                ;;
 
29354
        *)
 
29355
                ;;
 
29356
    esac
 
29357
    
 
29358
    
 
29359
 
 
29360
 
 
29361
{ echo "$as_me:$LINENO: checking for extra includes" >&5
 
29362
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6; }
 
29363
 
 
29364
# Check whether --with-extra-includes was given.
 
29365
if test "${with_extra_includes+set}" = set; then
 
29366
  withval=$with_extra_includes; kde_use_extra_includes="$withval"
 
29367
else
 
29368
  kde_use_extra_includes=NONE
 
29369
 
 
29370
fi
 
29371
 
 
29372
kde_extra_includes=
 
29373
if test -n "$kde_use_extra_includes" && \
 
29374
   test "$kde_use_extra_includes" != "NONE"; then
 
29375
 
 
29376
   ac_save_ifs=$IFS
 
29377
   IFS=':'
 
29378
   for dir in $kde_use_extra_includes; do
 
29379
     kde_extra_includes="$kde_extra_includes $dir"
 
29380
     USER_INCLUDES="$USER_INCLUDES -I$dir"
 
29381
   done
 
29382
   IFS=$ac_save_ifs
 
29383
   kde_use_extra_includes="added"
 
29384
else
 
29385
   kde_use_extra_includes="no"
 
29386
fi
 
29387
 
 
29388
 
 
29389
{ echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
 
29390
echo "${ECHO_T}$kde_use_extra_includes" >&6; }
 
29391
 
 
29392
kde_extra_libs=
 
29393
{ echo "$as_me:$LINENO: checking for extra libs" >&5
 
29394
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6; }
 
29395
 
 
29396
# Check whether --with-extra-libs was given.
 
29397
if test "${with_extra_libs+set}" = set; then
 
29398
  withval=$with_extra_libs; kde_use_extra_libs=$withval
 
29399
else
 
29400
  kde_use_extra_libs=NONE
 
29401
 
 
29402
fi
 
29403
 
 
29404
if test -n "$kde_use_extra_libs" && \
 
29405
   test "$kde_use_extra_libs" != "NONE"; then
 
29406
 
 
29407
   ac_save_ifs=$IFS
 
29408
   IFS=':'
 
29409
   for dir in $kde_use_extra_libs; do
 
29410
     kde_extra_libs="$kde_extra_libs $dir"
 
29411
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
 
29412
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
 
29413
   done
 
29414
   IFS=$ac_save_ifs
 
29415
   kde_use_extra_libs="added"
 
29416
else
 
29417
   kde_use_extra_libs="no"
 
29418
fi
 
29419
 
 
29420
 
 
29421
 
 
29422
{ echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
 
29423
echo "${ECHO_T}$kde_use_extra_libs" >&6; }
 
29424
 
 
29425
 
 
29426
 
 
29427
 
 
29428
{ echo "$as_me:$LINENO: checking for libz" >&5
 
29429
echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
 
29430
if test "${ac_cv_lib_z+set}" = set; then
 
29431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29432
else
 
29433
  
 
29434
kde_save_LIBS="$LIBS"
 
29435
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
 
29436
kde_save_CFLAGS="$CFLAGS"
 
29437
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29438
cat >conftest.$ac_ext <<_ACEOF
 
29439
/* confdefs.h.  */
 
29440
_ACEOF
 
29441
cat confdefs.h >>conftest.$ac_ext
 
29442
cat >>conftest.$ac_ext <<_ACEOF
 
29443
/* end confdefs.h.  */
 
29444
 
 
29445
#include<zlib.h>
 
29446
 
 
29447
int
 
29448
main ()
 
29449
{
 
29450
 
 
29451
  char buf[42];
 
29452
  gzFile f = (gzFile) 0;
 
29453
  /* this would segfault.. but we only link, don't run */
 
29454
  (void) gzgets(f, buf, sizeof(buf));
 
29455
 
 
29456
  return (zlibVersion() == ZLIB_VERSION); 
 
29457
 
 
29458
  ;
 
29459
  return 0;
 
29460
}
 
29461
_ACEOF
 
29462
rm -f conftest.$ac_objext conftest$ac_exeext
 
29463
if { (ac_try="$ac_link"
 
29464
case "(($ac_try" in
 
29465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29466
  *) ac_try_echo=$ac_try;;
 
29467
esac
 
29468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29469
  (eval "$ac_link") 2>conftest.er1
 
29470
  ac_status=$?
 
29471
  grep -v '^ *+' conftest.er1 >conftest.err
 
29472
  rm -f conftest.er1
 
29473
  cat conftest.err >&5
 
29474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29475
  (exit $ac_status); } && {
 
29476
         test -z "$ac_c_werror_flag" ||
 
29477
         test ! -s conftest.err
 
29478
       } && test -s conftest$ac_exeext &&
 
29479
       $as_test_x conftest$ac_exeext; then
 
29480
  eval "ac_cv_lib_z='-lz'"
 
29481
else
 
29482
  echo "$as_me: failed program was:" >&5
 
29483
sed 's/^/| /' conftest.$ac_ext >&5
 
29484
 
 
29485
        eval "ac_cv_lib_z=no"
 
29486
fi
 
29487
 
 
29488
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29489
      conftest$ac_exeext conftest.$ac_ext
 
29490
LIBS="$kde_save_LIBS"
 
29491
CFLAGS="$kde_save_CFLAGS"
 
29492
 
 
29493
fi
 
29494
if test ! "$ac_cv_lib_z" = no; then
 
29495
  
 
29496
cat >>confdefs.h <<_ACEOF
 
29497
@%:@define HAVE_LIBZ 1
 
29498
_ACEOF
 
29499
 
 
29500
  LIBZ="$ac_cv_lib_z"
 
29501
  { echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
 
29502
echo "${ECHO_T}$ac_cv_lib_z" >&6; }
 
29503
else
 
29504
  { { echo "$as_me:$LINENO: error: not found. 
 
29505
          Possibly configure picks up an outdated version
 
29506
          installed by XFree86. Remove it from your system.
 
29507
 
 
29508
          Check your installation and look into config.log" >&5
 
29509
echo "$as_me: error: not found. 
 
29510
          Possibly configure picks up an outdated version
 
29511
          installed by XFree86. Remove it from your system.
 
29512
 
 
29513
          Check your installation and look into config.log" >&2;}
 
29514
   { (exit 1); exit 1; }; }
 
29515
  LIBZ=""
 
29516
fi
 
29517
 
 
29518
 
 
29519
 
 
29520
 
 
29521
 
 
29522
{ echo "$as_me:$LINENO: checking for libpng" >&5
 
29523
echo $ECHO_N "checking for libpng... $ECHO_C" >&6; }
 
29524
if test "${ac_cv_lib_png+set}" = set; then
 
29525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29526
else
 
29527
  
 
29528
kde_save_LIBS="$LIBS"
 
29529
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29530
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
 
29531
else
 
29532
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
 
29533
fi
 
29534
kde_save_CFLAGS="$CFLAGS"
 
29535
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29536
 
 
29537
cat >conftest.$ac_ext <<_ACEOF
 
29538
/* confdefs.h.  */
 
29539
_ACEOF
 
29540
cat confdefs.h >>conftest.$ac_ext
 
29541
cat >>conftest.$ac_ext <<_ACEOF
 
29542
/* end confdefs.h.  */
 
29543
    
 
29544
    #include<png.h>
 
29545
    
 
29546
int
 
29547
main ()
 
29548
{
 
29549
 
 
29550
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
 
29551
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
 
29552
    return( png_ptr != 0 );
 
29553
    
 
29554
  ;
 
29555
  return 0;
 
29556
}
 
29557
_ACEOF
 
29558
rm -f conftest.$ac_objext conftest$ac_exeext
 
29559
if { (ac_try="$ac_link"
 
29560
case "(($ac_try" in
 
29561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29562
  *) ac_try_echo=$ac_try;;
 
29563
esac
 
29564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29565
  (eval "$ac_link") 2>conftest.er1
 
29566
  ac_status=$?
 
29567
  grep -v '^ *+' conftest.er1 >conftest.err
 
29568
  rm -f conftest.er1
 
29569
  cat conftest.err >&5
 
29570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29571
  (exit $ac_status); } && {
 
29572
         test -z "$ac_c_werror_flag" ||
 
29573
         test ! -s conftest.err
 
29574
       } && test -s conftest$ac_exeext &&
 
29575
       $as_test_x conftest$ac_exeext; then
 
29576
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
 
29577
else
 
29578
  echo "$as_me: failed program was:" >&5
 
29579
sed 's/^/| /' conftest.$ac_ext >&5
 
29580
 
 
29581
        eval "ac_cv_lib_png=no"
 
29582
 
 
29583
fi
 
29584
 
 
29585
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29586
      conftest$ac_exeext conftest.$ac_ext
 
29587
LIBS="$kde_save_LIBS"
 
29588
CFLAGS="$kde_save_CFLAGS"
 
29589
 
 
29590
fi
 
29591
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
 
29592
  
 
29593
cat >>confdefs.h <<_ACEOF
 
29594
@%:@define HAVE_LIBPNG 1
 
29595
_ACEOF
 
29596
 
 
29597
  LIBPNG="$ac_cv_lib_png"
 
29598
  
 
29599
  { echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
 
29600
echo "${ECHO_T}$ac_cv_lib_png" >&6; }
 
29601
else
 
29602
  { echo "$as_me:$LINENO: result: no" >&5
 
29603
echo "${ECHO_T}no" >&6; }
 
29604
  LIBPNG=""
 
29605
  
 
29606
fi
 
29607
 
 
29608
 
 
29609
 
 
29610
{ echo "$as_me:$LINENO: checking for libjpeg6b" >&5
 
29611
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6; }
 
29612
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
 
29613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29614
else
 
29615
  
 
29616
ac_save_LIBS="$LIBS"
 
29617
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
 
29618
ac_save_CFLAGS="$CFLAGS"
 
29619
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29620
cat >conftest.$ac_ext <<_ACEOF
 
29621
/* confdefs.h.  */
 
29622
_ACEOF
 
29623
cat confdefs.h >>conftest.$ac_ext
 
29624
cat >>conftest.$ac_ext <<_ACEOF
 
29625
/* end confdefs.h.  */
 
29626
/* Override any gcc2 internal prototype to avoid an error.  */
 
29627
struct jpeg_decompress_struct;
 
29628
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
29629
typedef int size_t;
 
29630
#ifdef __cplusplus
 
29631
extern "C" {
 
29632
#endif
 
29633
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
29634
                                    int version, size_t structsize);
 
29635
#ifdef __cplusplus
 
29636
}
 
29637
#endif
 
29638
/* We use char because int might match the return type of a gcc2
 
29639
    builtin and then its argument prototype would still apply.  */
 
29640
 
 
29641
int
 
29642
main ()
 
29643
{
 
29644
jpeg_CreateDecompress(0L, 0, 0);
 
29645
  ;
 
29646
  return 0;
 
29647
}
 
29648
_ACEOF
 
29649
rm -f conftest.$ac_objext conftest$ac_exeext
 
29650
if { (ac_try="$ac_link"
 
29651
case "(($ac_try" in
 
29652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29653
  *) ac_try_echo=$ac_try;;
 
29654
esac
 
29655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29656
  (eval "$ac_link") 2>conftest.er1
 
29657
  ac_status=$?
 
29658
  grep -v '^ *+' conftest.er1 >conftest.err
 
29659
  rm -f conftest.er1
 
29660
  cat conftest.err >&5
 
29661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29662
  (exit $ac_status); } && {
 
29663
         test -z "$ac_c_werror_flag" ||
 
29664
         test ! -s conftest.err
 
29665
       } && test -s conftest$ac_exeext &&
 
29666
       $as_test_x conftest$ac_exeext; then
 
29667
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
 
29668
else
 
29669
  echo "$as_me: failed program was:" >&5
 
29670
sed 's/^/| /' conftest.$ac_ext >&5
 
29671
 
 
29672
        eval "ac_cv_lib_jpeg_6b=no"
 
29673
fi
 
29674
 
 
29675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29676
      conftest$ac_exeext conftest.$ac_ext
 
29677
LIBS="$ac_save_LIBS"
 
29678
CFLAGS="$ac_save_CFLAGS"
 
29679
 
 
29680
fi
 
29681
 
 
29682
 
 
29683
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
 
29684
  LIBJPEG="$ac_cv_lib_jpeg_6b"
 
29685
  { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
 
29686
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6; }
 
29687
else
 
29688
  { echo "$as_me:$LINENO: result: no" >&5
 
29689
echo "${ECHO_T}no" >&6; }
 
29690
  
 
29691
{ echo "$as_me:$LINENO: checking for libjpeg" >&5
 
29692
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6; }
 
29693
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
 
29694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29695
else
 
29696
  
 
29697
ac_save_LIBS="$LIBS"
 
29698
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
 
29699
ac_save_CFLAGS="$CFLAGS"
 
29700
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
29701
cat >conftest.$ac_ext <<_ACEOF
 
29702
/* confdefs.h.  */
 
29703
_ACEOF
 
29704
cat confdefs.h >>conftest.$ac_ext
 
29705
cat >>conftest.$ac_ext <<_ACEOF
 
29706
/* end confdefs.h.  */
 
29707
/* Override any gcc2 internal prototype to avoid an error.  */
 
29708
struct jpeg_decompress_struct;
 
29709
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
29710
typedef int size_t;
 
29711
#ifdef __cplusplus
 
29712
extern "C" {
 
29713
#endif
 
29714
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
29715
                                    int version, size_t structsize);
 
29716
#ifdef __cplusplus
 
29717
}
 
29718
#endif
 
29719
/* We use char because int might match the return type of a gcc2
 
29720
    builtin and then its argument prototype would still apply.  */
 
29721
 
 
29722
int
 
29723
main ()
 
29724
{
 
29725
jpeg_CreateDecompress(0L, 0, 0);
 
29726
  ;
 
29727
  return 0;
 
29728
}
 
29729
_ACEOF
 
29730
rm -f conftest.$ac_objext conftest$ac_exeext
 
29731
if { (ac_try="$ac_link"
 
29732
case "(($ac_try" in
 
29733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29734
  *) ac_try_echo=$ac_try;;
 
29735
esac
 
29736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29737
  (eval "$ac_link") 2>conftest.er1
 
29738
  ac_status=$?
 
29739
  grep -v '^ *+' conftest.er1 >conftest.err
 
29740
  rm -f conftest.er1
 
29741
  cat conftest.err >&5
 
29742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29743
  (exit $ac_status); } && {
 
29744
         test -z "$ac_c_werror_flag" ||
 
29745
         test ! -s conftest.err
 
29746
       } && test -s conftest$ac_exeext &&
 
29747
       $as_test_x conftest$ac_exeext; then
 
29748
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
 
29749
else
 
29750
  echo "$as_me: failed program was:" >&5
 
29751
sed 's/^/| /' conftest.$ac_ext >&5
 
29752
 
 
29753
        eval "ac_cv_lib_jpeg_normal=no"
 
29754
fi
 
29755
 
 
29756
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
29757
      conftest$ac_exeext conftest.$ac_ext
 
29758
LIBS="$ac_save_LIBS"
 
29759
CFLAGS="$ac_save_CFLAGS"
 
29760
 
 
29761
fi
 
29762
 
 
29763
 
 
29764
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
 
29765
  LIBJPEG="$ac_cv_lib_jpeg_normal"
 
29766
  { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
 
29767
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6; }
 
29768
else
 
29769
  { echo "$as_me:$LINENO: result: no" >&5
 
29770
echo "${ECHO_T}no" >&6; }
 
29771
  
 
29772
       LIBJPEG=
 
29773
    
 
29774
   
 
29775
fi
 
29776
 
 
29777
 
 
29778
 
 
29779
fi
 
29780
 
 
29781
 
 
29782
 
 
29783
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
 
29784
 
 
29785
jpeg_incdir=NO
 
29786
for i in $jpeg_incdirs;
 
29787
do
 
29788
  for j in jpeglib.h;
 
29789
  do
 
29790
    echo "configure: __oline__: $i/$j" >&5
 
29791
    if test -r "$i/$j"; then
 
29792
      echo "taking that" >&5
 
29793
      jpeg_incdir=$i
 
29794
      break 2
 
29795
    fi
 
29796
  done
 
29797
done
 
29798
 
 
29799
test "x$jpeg_incdir" = xNO && jpeg_incdir=
 
29800
 
 
29801
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
 
29802
  
 
29803
cat >>confdefs.h <<_ACEOF
 
29804
@%:@define HAVE_LIBJPEG 1
 
29805
_ACEOF
 
29806
 
 
29807
else
 
29808
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
 
29809
    { echo "$as_me:$LINENO: WARNING: 
 
29810
There is an installation error in jpeg support. You seem to have only one
 
29811
of either the headers _or_ the libraries installed. You may need to either
 
29812
provide correct --with-extra-... options, or the development package of
 
29813
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
29814
Disabling JPEG support.
 
29815
" >&5
 
29816
echo "$as_me: WARNING: 
 
29817
There is an installation error in jpeg support. You seem to have only one
 
29818
of either the headers _or_ the libraries installed. You may need to either
 
29819
provide correct --with-extra-... options, or the development package of
 
29820
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
29821
Disabling JPEG support.
 
29822
" >&2;}
 
29823
  else
 
29824
    { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
 
29825
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
 
29826
  fi
 
29827
  jpeg_incdir=
 
29828
  LIBJPEG=
 
29829
fi
 
29830
 
 
29831
 
 
29832
 
 
29833
 
 
29834
 
 
29835
 
 
29836
        
 
29837
   { echo "$as_me:$LINENO: checking for perl" >&5
 
29838
echo $ECHO_N "checking for perl... $ECHO_C" >&6; }
 
29839
   if test -n "$PERL"; then
 
29840
        kde_cv_path="$PERL";
 
29841
   else
 
29842
        kde_cache=`echo perl | sed 'y%./+-%__p_%'`
 
29843
 
 
29844
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
29845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29846
else
 
29847
  
 
29848
        kde_cv_path="NONE"
 
29849
        kde_save_IFS=$IFS
 
29850
        IFS=':'
 
29851
        dirs=""
 
29852
        for dir in $PATH; do
 
29853
          dirs="$dirs $dir"
 
29854
        done
 
29855
        if test -z ""; then       dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
 
29856
        else      dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
 
29857
        fi
 
29858
        IFS=$kde_save_IFS
 
29859
 
 
29860
        for dir in $dirs; do
 
29861
          if test -x "$dir/perl"; then
 
29862
            if test -n ""
 
29863
            then
 
29864
              evalstr="$dir/perl  2>&1 "
 
29865
              if eval $evalstr; then
 
29866
                kde_cv_path="$dir/perl"
 
29867
                break
 
29868
              fi
 
29869
            else
 
29870
                kde_cv_path="$dir/perl"
 
29871
                break
 
29872
            fi
 
29873
          fi
 
29874
        done
 
29875
 
 
29876
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
29877
 
 
29878
        
 
29879
fi
 
29880
 
 
29881
 
 
29882
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
29883
 
 
29884
   fi
 
29885
 
 
29886
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
29887
      { echo "$as_me:$LINENO: result: not found" >&5
 
29888
echo "${ECHO_T}not found" >&6; }
 
29889
      
 
29890
                    { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
 
29891
We need perl to generate some code." >&5
 
29892
echo "$as_me: error: No Perl found in your $PATH.
 
29893
We need perl to generate some code." >&2;}
 
29894
   { (exit 1); exit 1; }; }
 
29895
        
 
29896
   else
 
29897
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
29898
echo "${ECHO_T}$kde_cv_path" >&6; }
 
29899
      PERL=$kde_cv_path
 
29900
 
 
29901
   fi
 
29902
 
 
29903
    
 
29904
 
 
29905
 
 
29906
 
 
29907
 
 
29908
 
 
29909
 
 
29910
 
 
29911
 
 
29912
# Check whether --enable-mt was given.
 
29913
if test "${enable_mt+set}" = set; then
 
29914
  enableval=$enable_mt; kde_use_qt_mt=$enableval
 
29915
else
 
29916
  
 
29917
    if test $kde_qtver = 3; then
 
29918
      kde_use_qt_mt=yes
 
29919
    else
 
29920
      kde_use_qt_mt=no
 
29921
    fi
 
29922
  
 
29923
 
 
29924
fi
 
29925
 
 
29926
 
 
29927
USING_QT_MT=""
 
29928
 
 
29929
 
 
29930
KDE_MT_LDFLAGS=
 
29931
KDE_MT_LIBS=
 
29932
if test "x$kde_use_qt_mt" = "xyes"; then
 
29933
  
 
29934
  
 
29935
  
 
29936
    if test -z "$LIBPTHREAD"; then
 
29937
    if test -z "$USE_THREADS"; then
 
29938
      kde_check_threading_default=no
 
29939
    else
 
29940
      kde_check_threading_default=yes
 
29941
    fi
 
29942
  else
 
29943
    kde_check_threading_default=yes
 
29944
  fi
 
29945
  # Check whether --enable-threading was given.
 
29946
if test "${enable_threading+set}" = set; then
 
29947
  enableval=$enable_threading; kde_use_threading=$enableval
 
29948
else
 
29949
  kde_use_threading=$kde_check_threading_default
 
29950
fi
 
29951
 
 
29952
  if test "x$kde_use_threading" = "xyes"; then
 
29953
    
 
29954
cat >>confdefs.h <<\_ACEOF
 
29955
@%:@define HAVE_LIBPTHREAD 1
 
29956
_ACEOF
 
29957
 
 
29958
  fi
 
29959
 
 
29960
  if test "x$kde_use_threading" = "xyes"; then
 
29961
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
 
29962
    KDE_MT_LDFLAGS="$USE_THREADS"
 
29963
    KDE_MT_LIBS="$LIBPTHREAD"
 
29964
  else
 
29965
    kde_use_qt_mt=no
 
29966
  fi
 
29967
fi
 
29968
 
 
29969
 
 
29970
 
 
29971
kde_qt_was_given=yes
 
29972
 
 
29973
if test -z "$LIBQT_GLOB"; then
 
29974
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29975
    LIBQT_GLOB="libqte.*"
 
29976
  else
 
29977
    LIBQT_GLOB="libqt.*"
 
29978
  fi
 
29979
fi
 
29980
 
 
29981
if test -z "$LIBQT"; then
 
29982
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29983
    qtlib="qte"
 
29984
  else
 
29985
    qtlib="qt"
 
29986
  fi
 
29987
 
 
29988
  kde_int_qt="-l$qtlib"
 
29989
else
 
29990
  kde_int_qt="$LIBQT"
 
29991
  kde_lib_qt_set=yes
 
29992
fi
 
29993
 
 
29994
if test -z "$LIBQPE"; then
 
29995
  if test "x$kde_use_qt_emb" = "xyes"; then
 
29996
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
 
29997
      LIB_QPE="-lqpe"
 
29998
    else
 
29999
      LIB_QPE=""
 
30000
    fi
 
30001
  else
 
30002
    LIB_QPE=""
 
30003
  fi
 
30004
fi
 
30005
 
 
30006
 
 
30007
if test "x$kde_use_qt_mt" = "xyes"; then
 
30008
  LIBQT="-l$qtlib-mt"
 
30009
  kde_int_qt="-l$qtlib-mt"
 
30010
  LIBQT_GLOB="lib$qtlib-mt.*"
 
30011
  USING_QT_MT="using -mt"
 
30012
else
 
30013
  LIBQT="-l$qtlib"
 
30014
fi
 
30015
 
 
30016
if test $kde_qtver != 1; then
 
30017
 
 
30018
  
 
30019
  
 
30020
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
 
30021
fi
 
30022
 
 
30023
if test $kde_qtver = 3; then
 
30024
  
 
30025
  LIBQT="$LIBQT $LIBDL"
 
30026
fi
 
30027
 
 
30028
{ echo "$as_me:$LINENO: checking for Qt" >&5
 
30029
echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
 
30030
 
 
30031
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
30032
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
 
30033
fi
 
30034
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
 
30035
qt_libraries=""
 
30036
qt_includes=""
 
30037
 
 
30038
# Check whether --with-qt-dir was given.
 
30039
if test "${with_qt_dir+set}" = set; then
 
30040
  withval=$with_qt_dir;   ac_qt_includes="$withval"/include
 
30041
       ac_qt_libraries="$withval"/lib${kdelibsuff}
 
30042
       ac_qt_bindir="$withval"/bin
 
30043
    
 
30044
fi
 
30045
 
 
30046
 
 
30047
 
 
30048
# Check whether --with-qt-includes was given.
 
30049
if test "${with_qt_includes+set}" = set; then
 
30050
  withval=$with_qt_includes; 
 
30051
       ac_qt_includes="$withval"
 
30052
    
 
30053
fi
 
30054
 
 
30055
 
 
30056
kde_qt_libs_given=no
 
30057
 
 
30058
 
 
30059
# Check whether --with-qt-libraries was given.
 
30060
if test "${with_qt_libraries+set}" = set; then
 
30061
  withval=$with_qt_libraries;   ac_qt_libraries="$withval"
 
30062
       kde_qt_libs_given=yes
 
30063
    
 
30064
fi
 
30065
 
 
30066
 
 
30067
if test "${ac_cv_have_qt+set}" = set; then
 
30068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30069
else
 
30070
  #try to guess Qt locations
 
30071
 
 
30072
qt_incdirs=""
 
30073
for dir in $kde_qt_dirs; do
 
30074
   qt_incdirs="$qt_incdirs $dir/include $dir"
 
30075
done
 
30076
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
 
30077
if test ! "$ac_qt_includes" = "NO"; then
 
30078
   qt_incdirs="$ac_qt_includes $qt_incdirs"
 
30079
fi
 
30080
 
 
30081
if test "$kde_qtver" != "1"; then
 
30082
  kde_qt_header=qstyle.h
 
30083
else
 
30084
  kde_qt_header=qglobal.h
 
30085
fi
 
30086
 
 
30087
 
 
30088
qt_incdir=NO
 
30089
for i in $qt_incdirs;
 
30090
do
 
30091
  for j in $kde_qt_header;
 
30092
  do
 
30093
    echo "configure: __oline__: $i/$j" >&5
 
30094
    if test -r "$i/$j"; then
 
30095
      echo "taking that" >&5
 
30096
      qt_incdir=$i
 
30097
      break 2
 
30098
    fi
 
30099
  done
 
30100
done
 
30101
 
 
30102
ac_qt_includes="$qt_incdir"
 
30103
 
 
30104
qt_libdirs=""
 
30105
for dir in $kde_qt_dirs; do
 
30106
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
 
30107
done
 
30108
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
 
30109
if test ! "$ac_qt_libraries" = "NO"; then
 
30110
  qt_libdir=$ac_qt_libraries
 
30111
else
 
30112
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
 
30113
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
 
30114
  qt_libdir=NONE
 
30115
  for dir in $qt_libdirs; do
 
30116
    try="ls -1 $dir/${LIBQT_GLOB}"
 
30117
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
 
30118
  done
 
30119
fi
 
30120
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
30121
  if test -e "$a"; then
 
30122
    LIBQT="$LIBQT ${kde_int_qt}_incremental"
 
30123
    break
 
30124
  fi
 
30125
done
 
30126
 
 
30127
ac_qt_libraries="$qt_libdir"
 
30128
 
 
30129
 
 
30130
 ac_ext=cpp
 
30131
ac_cpp='$CXXCPP $CPPFLAGS'
 
30132
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30133
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30134
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30135
 
 
30136
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30137
 
 
30138
 
 
30139
 
 
30140
ac_cxxflags_safe="$CXXFLAGS"
 
30141
ac_ldflags_safe="$LDFLAGS"
 
30142
ac_libs_safe="$LIBS"
 
30143
 
 
30144
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
 
30145
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
 
30146
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
 
30147
 
 
30148
 
 
30149
 
 
30150
cat > conftest.$ac_ext <<EOF
 
30151
#include "confdefs.h"
 
30152
#include <qglobal.h>
 
30153
#include <qapplication.h>
 
30154
EOF
 
30155
if test "$kde_qtver" = "2"; then
 
30156
cat >> conftest.$ac_ext <<EOF
 
30157
#include <qevent.h>
 
30158
#include <qstring.h>
 
30159
#include <qstyle.h>
 
30160
EOF
 
30161
 
 
30162
if test $kde_qtsubver -gt 0; then
 
30163
cat >> conftest.$ac_ext <<EOF
 
30164
#if QT_VERSION < 210
 
30165
#error 1
 
30166
#endif
 
30167
EOF
 
30168
fi
 
30169
fi
 
30170
 
 
30171
if test "$kde_qtver" = "3"; then
 
30172
cat >> conftest.$ac_ext <<EOF
 
30173
#include <qcursor.h>
 
30174
#include <qstylefactory.h>
 
30175
#include <private/qucomextra_p.h>
 
30176
EOF
 
30177
fi
 
30178
 
 
30179
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
30180
cat >> conftest.$ac_ext <<EOF
 
30181
#error 1
 
30182
#endif
 
30183
 
 
30184
int main() {
 
30185
EOF
 
30186
if test "$kde_qtver" = "2"; then
 
30187
cat >> conftest.$ac_ext <<EOF
 
30188
    QStringList *t = new QStringList();
 
30189
    Q_UNUSED(t);
 
30190
EOF
 
30191
if test $kde_qtsubver -gt 0; then
 
30192
cat >> conftest.$ac_ext <<EOF
 
30193
    QString s;
 
30194
    s.setLatin1("Elvis is alive", 14);
 
30195
EOF
 
30196
fi
 
30197
fi
 
30198
if test "$kde_qtver" = "3"; then
 
30199
cat >> conftest.$ac_ext <<EOF
 
30200
    (void)QStyleFactory::create(QString::null);
 
30201
    QCursor c(Qt::WhatsThisCursor);
 
30202
EOF
 
30203
fi
 
30204
cat >> conftest.$ac_ext <<EOF
 
30205
    return 0;
 
30206
}
 
30207
EOF
 
30208
 
 
30209
 
 
30210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30211
  (eval $ac_link) 2>&5
 
30212
  ac_status=$?
 
30213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30214
  (exit $ac_status); } && test -s conftest; then
 
30215
  rm -f conftest*
 
30216
else
 
30217
  echo "configure: failed program was:" >&5
 
30218
  cat conftest.$ac_ext >&5
 
30219
  ac_qt_libraries="NO"
 
30220
fi
 
30221
rm -f conftest*
 
30222
CXXFLAGS="$ac_cxxflags_safe"
 
30223
LDFLAGS="$ac_ldflags_safe"
 
30224
LIBS="$ac_libs_safe"
 
30225
 
 
30226
ac_ext=c
 
30227
ac_cpp='$CPP $CPPFLAGS'
 
30228
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30229
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30230
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30231
 
 
30232
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
 
30233
  ac_cv_have_qt="have_qt=no"
 
30234
  ac_qt_notfound=""
 
30235
  missing_qt_mt=""
 
30236
  if test "$ac_qt_includes" = NO; then
 
30237
    if test "$ac_qt_libraries" = NO; then
 
30238
      ac_qt_notfound="(headers and libraries)";
 
30239
    else
 
30240
      ac_qt_notfound="(headers)";
 
30241
    fi
 
30242
  else
 
30243
    if test "x$kde_use_qt_mt" = "xyes"; then
 
30244
       missing_qt_mt="
 
30245
Make sure that you have compiled Qt with thread support!"
 
30246
       ac_qt_notfound="(library $qtlib-mt)";
 
30247
    else
 
30248
       ac_qt_notfound="(library $qtlib)";
 
30249
    fi
 
30250
  fi
 
30251
 
 
30252
  { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
30253
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
 
30254
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
30255
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
 
30256
   { (exit 1); exit 1; }; }
 
30257
else
 
30258
  have_qt="yes"
 
30259
fi
 
30260
 
 
30261
fi
 
30262
 
 
30263
 
 
30264
eval "$ac_cv_have_qt"
 
30265
 
 
30266
if test "$have_qt" != yes; then
 
30267
  { echo "$as_me:$LINENO: result: $have_qt" >&5
 
30268
echo "${ECHO_T}$have_qt" >&6; };
 
30269
else
 
30270
  ac_cv_have_qt="have_qt=yes \
 
30271
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
 
30272
  { echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
 
30273
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
 
30274
 
 
30275
  qt_libraries="$ac_qt_libraries"
 
30276
  qt_includes="$ac_qt_includes"
 
30277
fi
 
30278
 
 
30279
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
 
30280
     
 
30281
 
 
30282
{ echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
 
30283
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6; }
 
30284
if test "${kde_cv_qt_direct+set}" = set; then
 
30285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30286
else
 
30287
  
 
30288
 
 
30289
 ac_ext=cpp
 
30290
ac_cpp='$CXXCPP $CPPFLAGS'
 
30291
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30292
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30293
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30294
 
 
30295
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30296
 
 
30297
 
 
30298
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
 
30299
ac_LIBRARY_PATH="$LIBRARY_PATH"
 
30300
ac_cxxflags_safe="$CXXFLAGS"
 
30301
ac_ldflags_safe="$LDFLAGS"
 
30302
ac_libs_safe="$LIBS"
 
30303
 
 
30304
CXXFLAGS="$CXXFLAGS -I$qt_includes"
 
30305
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
30306
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
30307
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
 
30308
else
 
30309
LIBS="$LIBQT $LIBSOCKET"
 
30310
fi
 
30311
LD_LIBRARY_PATH=
 
30312
export LD_LIBRARY_PATH
 
30313
LIBRARY_PATH=
 
30314
export LIBRARY_PATH
 
30315
 
 
30316
 
 
30317
 
 
30318
cat > conftest.$ac_ext <<EOF
 
30319
#include "confdefs.h"
 
30320
#include <qglobal.h>
 
30321
#include <qapplication.h>
 
30322
EOF
 
30323
if test "$kde_qtver" = "2"; then
 
30324
cat >> conftest.$ac_ext <<EOF
 
30325
#include <qevent.h>
 
30326
#include <qstring.h>
 
30327
#include <qstyle.h>
 
30328
EOF
 
30329
 
 
30330
if test $kde_qtsubver -gt 0; then
 
30331
cat >> conftest.$ac_ext <<EOF
 
30332
#if QT_VERSION < 210
 
30333
#error 1
 
30334
#endif
 
30335
EOF
 
30336
fi
 
30337
fi
 
30338
 
 
30339
if test "$kde_qtver" = "3"; then
 
30340
cat >> conftest.$ac_ext <<EOF
 
30341
#include <qcursor.h>
 
30342
#include <qstylefactory.h>
 
30343
#include <private/qucomextra_p.h>
 
30344
EOF
 
30345
fi
 
30346
 
 
30347
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
30348
cat >> conftest.$ac_ext <<EOF
 
30349
#error 1
 
30350
#endif
 
30351
 
 
30352
int main() {
 
30353
EOF
 
30354
if test "$kde_qtver" = "2"; then
 
30355
cat >> conftest.$ac_ext <<EOF
 
30356
    QStringList *t = new QStringList();
 
30357
    Q_UNUSED(t);
 
30358
EOF
 
30359
if test $kde_qtsubver -gt 0; then
 
30360
cat >> conftest.$ac_ext <<EOF
 
30361
    QString s;
 
30362
    s.setLatin1("Elvis is alive", 14);
 
30363
EOF
 
30364
fi
 
30365
fi
 
30366
if test "$kde_qtver" = "3"; then
 
30367
cat >> conftest.$ac_ext <<EOF
 
30368
    (void)QStyleFactory::create(QString::null);
 
30369
    QCursor c(Qt::WhatsThisCursor);
 
30370
EOF
 
30371
fi
 
30372
cat >> conftest.$ac_ext <<EOF
 
30373
    return 0;
 
30374
}
 
30375
EOF
 
30376
 
 
30377
 
 
30378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30379
  (eval $ac_link) 2>&5
 
30380
  ac_status=$?
 
30381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30382
  (exit $ac_status); } && test -s conftest; then
 
30383
  kde_cv_qt_direct="yes"
 
30384
else
 
30385
  kde_cv_qt_direct="no"
 
30386
  echo "configure: failed program was:" >&5
 
30387
  cat conftest.$ac_ext >&5
 
30388
fi
 
30389
 
 
30390
rm -f conftest*
 
30391
CXXFLAGS="$ac_cxxflags_safe"
 
30392
LDFLAGS="$ac_ldflags_safe"
 
30393
LIBS="$ac_libs_safe"
 
30394
 
 
30395
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
 
30396
export LD_LIBRARY_PATH
 
30397
LIBRARY_PATH="$ac_LIBRARY_PATH"
 
30398
export LIBRARY_PATH
 
30399
ac_ext=c
 
30400
ac_cpp='$CPP $CPPFLAGS'
 
30401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30404
 
 
30405
 
 
30406
fi
 
30407
 
 
30408
 
 
30409
if test "$kde_cv_qt_direct" = "yes"; then
 
30410
  { echo "$as_me:$LINENO: result: yes" >&5
 
30411
echo "${ECHO_T}yes" >&6; }
 
30412
  qt_libraries= 
 
30413
else
 
30414
  { echo "$as_me:$LINENO: result: no" >&5
 
30415
echo "${ECHO_T}no" >&6; }
 
30416
  
 
30417
fi
 
30418
 
 
30419
fi
 
30420
 
 
30421
 
 
30422
 
 
30423
 
 
30424
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
 
30425
 QT_INCLUDES=""
 
30426
else
 
30427
 QT_INCLUDES="-I$qt_includes"
 
30428
 all_includes="$QT_INCLUDES $all_includes"
 
30429
fi
 
30430
 
 
30431
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
 
30432
 QT_LDFLAGS=""
 
30433
else
 
30434
 QT_LDFLAGS="-L$qt_libraries"
 
30435
 all_libraries="$QT_LDFLAGS $all_libraries"
 
30436
fi
 
30437
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
 
30438
 
 
30439
 
 
30440
 
 
30441
 
 
30442
   
 
30443
   qt_bindirs=""
 
30444
   for dir in $kde_qt_dirs; do
 
30445
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
 
30446
   done
 
30447
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
 
30448
   if test ! "$ac_qt_bindir" = "NO"; then
 
30449
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
 
30450
   fi
 
30451
 
 
30452
   
 
30453
   { echo "$as_me:$LINENO: checking for moc" >&5
 
30454
echo $ECHO_N "checking for moc... $ECHO_C" >&6; }
 
30455
   if test -n "$MOC"; then
 
30456
        kde_cv_path="$MOC";
 
30457
   else
 
30458
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
 
30459
 
 
30460
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
30461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30462
else
 
30463
  
 
30464
        kde_cv_path="NONE"
 
30465
        kde_save_IFS=$IFS
 
30466
        IFS=':'
 
30467
        dirs=""
 
30468
        for dir in $PATH; do
 
30469
          dirs="$dirs $dir"
 
30470
        done
 
30471
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
30472
        else      dirs="$dirs $qt_bindirs"
 
30473
        fi
 
30474
        IFS=$kde_save_IFS
 
30475
 
 
30476
        for dir in $dirs; do
 
30477
          if test -x "$dir/moc"; then
 
30478
            if test -n ""
 
30479
            then
 
30480
              evalstr="$dir/moc  2>&1 "
 
30481
              if eval $evalstr; then
 
30482
                kde_cv_path="$dir/moc"
 
30483
                break
 
30484
              fi
 
30485
            else
 
30486
                kde_cv_path="$dir/moc"
 
30487
                break
 
30488
            fi
 
30489
          fi
 
30490
        done
 
30491
 
 
30492
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30493
 
 
30494
        
 
30495
fi
 
30496
 
 
30497
 
 
30498
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30499
 
 
30500
   fi
 
30501
 
 
30502
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30503
      { echo "$as_me:$LINENO: result: not found" >&5
 
30504
echo "${ECHO_T}not found" >&6; }
 
30505
      
 
30506
    { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
 
30507
Please check whether you installed Qt correctly.
 
30508
You need to have a running moc binary.
 
30509
configure tried to run $ac_cv_path_moc and the test didn't
 
30510
succeed. If configure shouldn't have tried this one, set
 
30511
the environment variable MOC to the right one before running
 
30512
configure.
 
30513
" >&5
 
30514
echo "$as_me: error: No Qt meta object compiler (moc) found!
 
30515
Please check whether you installed Qt correctly.
 
30516
You need to have a running moc binary.
 
30517
configure tried to run $ac_cv_path_moc and the test didn't
 
30518
succeed. If configure shouldn't have tried this one, set
 
30519
the environment variable MOC to the right one before running
 
30520
configure.
 
30521
" >&2;}
 
30522
   { (exit 1); exit 1; }; }
 
30523
 
 
30524
   else
 
30525
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30526
echo "${ECHO_T}$kde_cv_path" >&6; }
 
30527
      MOC=$kde_cv_path
 
30528
 
 
30529
   fi
 
30530
 
 
30531
   if test -z "$UIC_NOT_NEEDED"; then
 
30532
     
 
30533
   { echo "$as_me:$LINENO: checking for uic" >&5
 
30534
echo $ECHO_N "checking for uic... $ECHO_C" >&6; }
 
30535
   if test -n "$UIC_PATH"; then
 
30536
        kde_cv_path="$UIC_PATH";
 
30537
   else
 
30538
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
 
30539
 
 
30540
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
30541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30542
else
 
30543
  
 
30544
        kde_cv_path="NONE"
 
30545
        kde_save_IFS=$IFS
 
30546
        IFS=':'
 
30547
        dirs=""
 
30548
        for dir in $PATH; do
 
30549
          dirs="$dirs $dir"
 
30550
        done
 
30551
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
30552
        else      dirs="$dirs $qt_bindirs"
 
30553
        fi
 
30554
        IFS=$kde_save_IFS
 
30555
 
 
30556
        for dir in $dirs; do
 
30557
          if test -x "$dir/uic"; then
 
30558
            if test -n ""
 
30559
            then
 
30560
              evalstr="$dir/uic  2>&1 "
 
30561
              if eval $evalstr; then
 
30562
                kde_cv_path="$dir/uic"
 
30563
                break
 
30564
              fi
 
30565
            else
 
30566
                kde_cv_path="$dir/uic"
 
30567
                break
 
30568
            fi
 
30569
          fi
 
30570
        done
 
30571
 
 
30572
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
30573
 
 
30574
        
 
30575
fi
 
30576
 
 
30577
 
 
30578
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
30579
 
 
30580
   fi
 
30581
 
 
30582
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
30583
      { echo "$as_me:$LINENO: result: not found" >&5
 
30584
echo "${ECHO_T}not found" >&6; }
 
30585
      UIC_PATH=""
 
30586
   else
 
30587
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
30588
echo "${ECHO_T}$kde_cv_path" >&6; }
 
30589
      UIC_PATH=$kde_cv_path
 
30590
 
 
30591
   fi
 
30592
 
 
30593
     if test -z "$UIC_PATH" ; then
 
30594
       
 
30595
    { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
 
30596
Please check whether you installed Qt correctly.
 
30597
You need to have a running uic binary.
 
30598
configure tried to run $ac_cv_path_uic and the test didn't
 
30599
succeed. If configure shouldn't have tried this one, set
 
30600
the environment variable UIC to the right one before running
 
30601
configure.
 
30602
" >&5
 
30603
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
 
30604
Please check whether you installed Qt correctly.
 
30605
You need to have a running uic binary.
 
30606
configure tried to run $ac_cv_path_uic and the test didn't
 
30607
succeed. If configure shouldn't have tried this one, set
 
30608
the environment variable UIC to the right one before running
 
30609
configure.
 
30610
" >&2;}
 
30611
 
 
30612
       exit 1
 
30613
     else
 
30614
       UIC=$UIC_PATH
 
30615
 
 
30616
       if test $kde_qtver = 3; then
 
30617
         
 
30618
    { echo "$as_me:$LINENO: checking whether uic supports -L " >&5
 
30619
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6; }
 
30620
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
 
30621
    if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
30622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30623
else
 
30624
  
 
30625
        cat >conftest.ui <<EOT
 
30626
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
30627
EOT
 
30628
        ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
 
30629
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
30630
  (eval $ac_uic_testrun) 2>&5
 
30631
  ac_status=$?
 
30632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30633
  (exit $ac_status); }; then
 
30634
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
30635
        else
 
30636
            eval "kde_cv_prog_uic_$kde_cache=no"
 
30637
        fi
 
30638
        rm -f conftest*
 
30639
    
 
30640
fi
 
30641
 
 
30642
 
 
30643
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
30644
        { echo "$as_me:$LINENO: result: yes" >&5
 
30645
echo "${ECHO_T}yes" >&6; }
 
30646
        :
 
30647
        ac_uic_supports_libpath=yes
 
30648
    else
 
30649
        { echo "$as_me:$LINENO: result: no" >&5
 
30650
echo "${ECHO_T}no" >&6; }
 
30651
        :
 
30652
        ac_uic_supports_libpath=no
 
30653
    fi
 
30654
 
 
30655
         
 
30656
    { echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
 
30657
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6; }
 
30658
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
 
30659
    if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
30660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30661
else
 
30662
  
 
30663
        cat >conftest.ui <<EOT
 
30664
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
 
30665
EOT
 
30666
        ac_uic_testrun="$UIC_PATH -nounload  conftest.ui >/dev/null"
 
30667
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
 
30668
  (eval $ac_uic_testrun) 2>&5
 
30669
  ac_status=$?
 
30670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30671
  (exit $ac_status); }; then
 
30672
            eval "kde_cv_prog_uic_$kde_cache=yes"
 
30673
        else
 
30674
            eval "kde_cv_prog_uic_$kde_cache=no"
 
30675
        fi
 
30676
        rm -f conftest*
 
30677
    
 
30678
fi
 
30679
 
 
30680
 
 
30681
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
 
30682
        { echo "$as_me:$LINENO: result: yes" >&5
 
30683
echo "${ECHO_T}yes" >&6; }
 
30684
        :
 
30685
        ac_uic_supports_nounload=yes
 
30686
    else
 
30687
        { echo "$as_me:$LINENO: result: no" >&5
 
30688
echo "${ECHO_T}no" >&6; }
 
30689
        :
 
30690
        ac_uic_supports_nounload=no
 
30691
    fi
 
30692
 
 
30693
 
 
30694
         if test x$ac_uic_supports_libpath = xyes; then
 
30695
             UIC="$UIC -L \$(kde_widgetdir)"
 
30696
         fi
 
30697
         if test x$ac_uic_supports_nounload = xyes; then
 
30698
             UIC="$UIC -nounload"
 
30699
         fi
 
30700
       fi
 
30701
     fi
 
30702
   else
 
30703
     UIC="echo uic not available: "
 
30704
   fi
 
30705
 
 
30706
   
 
30707
   
 
30708
 
 
30709
   UIC_TR="i18n"
 
30710
   if test $kde_qtver = 3; then
 
30711
     UIC_TR="tr2i18n"
 
30712
   fi
 
30713
 
 
30714
   
 
30715
 
 
30716
 
 
30717
 
 
30718
if test -n "$LIBJPEG"; then
 
30719
{ echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
 
30720
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6; }
 
30721
if test "${kde_cv_qt_jpeg+set}" = set; then
 
30722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30723
else
 
30724
  
 
30725
 
 
30726
 ac_ext=cpp
 
30727
ac_cpp='$CXXCPP $CPPFLAGS'
 
30728
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30729
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30730
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
30731
 
 
30732
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
30733
 
 
30734
 
 
30735
ac_save_LIBS="$LIBS"
 
30736
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
 
30737
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
 
30738
ac_save_CXXFLAGS="$CXXFLAGS"
 
30739
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
 
30740
cat >conftest.$ac_ext <<_ACEOF
 
30741
/* confdefs.h.  */
 
30742
_ACEOF
 
30743
cat confdefs.h >>conftest.$ac_ext
 
30744
cat >>conftest.$ac_ext <<_ACEOF
 
30745
/* end confdefs.h.  */
 
30746
#include <qapplication.h>
 
30747
int
 
30748
main ()
 
30749
{
 
30750
 
 
30751
            int argc;
 
30752
            char** argv;
 
30753
            QApplication app(argc, argv);
 
30754
  ;
 
30755
  return 0;
 
30756
}
 
30757
_ACEOF
 
30758
rm -f conftest.$ac_objext conftest$ac_exeext
 
30759
if { (ac_try="$ac_link"
 
30760
case "(($ac_try" in
 
30761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30762
  *) ac_try_echo=$ac_try;;
 
30763
esac
 
30764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30765
  (eval "$ac_link") 2>conftest.er1
 
30766
  ac_status=$?
 
30767
  grep -v '^ *+' conftest.er1 >conftest.err
 
30768
  rm -f conftest.er1
 
30769
  cat conftest.err >&5
 
30770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30771
  (exit $ac_status); } && {
 
30772
         test -z "$ac_cxx_werror_flag" ||
 
30773
         test ! -s conftest.err
 
30774
       } && test -s conftest$ac_exeext &&
 
30775
       $as_test_x conftest$ac_exeext; then
 
30776
  eval "kde_cv_qt_jpeg=no"
 
30777
else
 
30778
  echo "$as_me: failed program was:" >&5
 
30779
sed 's/^/| /' conftest.$ac_ext >&5
 
30780
 
 
30781
        eval "kde_cv_qt_jpeg=yes"
 
30782
fi
 
30783
 
 
30784
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30785
      conftest$ac_exeext conftest.$ac_ext
 
30786
LIBS="$ac_save_LIBS"
 
30787
CXXFLAGS="$ac_save_CXXFLAGS"
 
30788
ac_ext=c
 
30789
ac_cpp='$CPP $CPPFLAGS'
 
30790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30793
 
 
30794
fi
 
30795
 
 
30796
fi
 
30797
 
 
30798
 
 
30799
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
 
30800
  { echo "$as_me:$LINENO: result: yes" >&5
 
30801
echo "${ECHO_T}yes" >&6; }
 
30802
  LIBJPEG_QT='$(LIBJPEG)'
 
30803
else
 
30804
  { echo "$as_me:$LINENO: result: no" >&5
 
30805
echo "${ECHO_T}no" >&6; }
 
30806
  LIBJPEG_QT=
 
30807
fi
 
30808
 
 
30809
 
 
30810
 
 
30811
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
30812
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
 
30813
else
 
30814
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
 
30815
fi
 
30816
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
 
30817
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
30818
  if test -e "$a"; then
 
30819
     LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
 
30820
     break
 
30821
  fi
 
30822
done
 
30823
 
 
30824
 
 
30825
 
 
30826
 
 
30827
 
 
30828
 
 
30829
 
 
30830
 
 
30831
  
 
30832
 
 
30833
 
 
30834
 
 
30835
 
 
30836
{ echo "$as_me:$LINENO: checking for rpath" >&5
 
30837
echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
 
30838
# Check whether --enable-rpath was given.
 
30839
if test "${enable_rpath+set}" = set; then
 
30840
  enableval=$enable_rpath; USE_RPATH=$enableval
 
30841
else
 
30842
  USE_RPATH=yes
 
30843
fi
 
30844
 
 
30845
 
 
30846
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
 
30847
 
 
30848
  KDE_RPATH="-R \$(libdir)"
 
30849
 
 
30850
  if test "$kde_libraries" != "$libdir"; then
 
30851
      KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
 
30852
  fi
 
30853
 
 
30854
  if test -n "$qt_libraries"; then
 
30855
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
 
30856
  fi
 
30857
    if test -n "$X_LDFLAGS"; then
 
30858
    X_RPATH="-R \$(x_libraries)"
 
30859
    KDE_RPATH="$KDE_RPATH $X_RPATH"
 
30860
  fi
 
30861
  if test -n "$KDE_EXTRA_RPATH"; then
 
30862
    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
 
30863
  fi
 
30864
fi
 
30865
 
 
30866
 
 
30867
 
 
30868
{ echo "$as_me:$LINENO: result: $USE_RPATH" >&5
 
30869
echo "${ECHO_T}$USE_RPATH" >&6; }
 
30870
 
 
30871
{ echo "$as_me:$LINENO: checking for KDE" >&5
 
30872
echo $ECHO_N "checking for KDE... $ECHO_C" >&6; }
 
30873
 
 
30874
if test "${prefix}" != NONE; then
 
30875
  kde_includes=${includedir}
 
30876
  
 
30877
savex=$exec_prefix
 
30878
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
30879
tmp=$includedir
 
30880
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
 
30881
exec_prefix=$savex
 
30882
 
 
30883
 
 
30884
  kde_libraries=${libdir}
 
30885
  
 
30886
savex=$exec_prefix
 
30887
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
30888
tmp=$libdir
 
30889
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
 
30890
exec_prefix=$savex
 
30891
 
 
30892
 
 
30893
else
 
30894
  ac_kde_includes=
 
30895
  ac_kde_libraries=
 
30896
  kde_libraries=""
 
30897
  kde_includes=""
 
30898
fi
 
30899
 
 
30900
if test "${ac_cv_have_kde+set}" = set; then
 
30901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30902
else
 
30903
  #try to guess kde locations
 
30904
 
 
30905
if test "$kde_qtver" = 1; then
 
30906
  kde_check_header="ksock.h"
 
30907
  kde_check_lib="libkdecore.la"
 
30908
else
 
30909
  kde_check_header="ksharedptr.h"
 
30910
  kde_check_lib="libkio.la"
 
30911
fi
 
30912
 
 
30913
if test -z ""; then
 
30914
 
 
30915
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
 
30916
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
 
30917
kde_incdirs="$ac_kde_includes $kde_incdirs"
 
30918
 
 
30919
kde_incdir=NO
 
30920
for i in $kde_incdirs;
 
30921
do
 
30922
  for j in $kde_check_header;
 
30923
  do
 
30924
    echo "configure: __oline__: $i/$j" >&5
 
30925
    if test -r "$i/$j"; then
 
30926
      echo "taking that" >&5
 
30927
      kde_incdir=$i
 
30928
      break 2
 
30929
    fi
 
30930
  done
 
30931
done
 
30932
 
 
30933
ac_kde_includes="$kde_incdir"
 
30934
 
 
30935
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
 
30936
  { { echo "$as_me:$LINENO: error: 
 
30937
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
30938
So, check this please and use another prefix!" >&5
 
30939
echo "$as_me: error: 
 
30940
in the prefix, you've chosen, are no KDE headers installed. This will fail.
 
30941
So, check this please and use another prefix!" >&2;}
 
30942
   { (exit 1); exit 1; }; }
 
30943
fi
 
30944
 
 
30945
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
 
30946
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
 
30947
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
 
30948
 
 
30949
kde_libdir=NO
 
30950
for i in $kde_libdirs;
 
30951
do
 
30952
  for j in $kde_check_lib;
 
30953
  do
 
30954
    echo "configure: __oline__: $i/$j" >&5
 
30955
    if test -r "$i/$j"; then
 
30956
      echo "taking that" >&5
 
30957
      kde_libdir=$i
 
30958
      break 2
 
30959
    fi
 
30960
  done
 
30961
done
 
30962
 
 
30963
ac_kde_libraries="$kde_libdir"
 
30964
 
 
30965
kde_widgetdir=NO
 
30966
 
 
30967
kde_widgetdir=NO
 
30968
for i in $kde_libdirs;
 
30969
do
 
30970
  for j in "kde3/plugins/designer/kdewidgets.la";
 
30971
  do
 
30972
    echo "configure: __oline__: $i/$j" >&5
 
30973
    if test -r "$i/$j"; then
 
30974
      echo "taking that" >&5
 
30975
      kde_widgetdir=$i
 
30976
      break 2
 
30977
    fi
 
30978
  done
 
30979
done
 
30980
 
 
30981
 
 
30982
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
 
30983
{ { echo "$as_me:$LINENO: error: 
 
30984
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
30985
So, check this please and use another prefix!" >&5
 
30986
echo "$as_me: error: 
 
30987
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
 
30988
So, check this please and use another prefix!" >&2;}
 
30989
   { (exit 1); exit 1; }; }
 
30990
fi
 
30991
 
 
30992
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
 
30993
{ { echo "$as_me:$LINENO: error: 
 
30994
I can't find the designer plugins. These are required and should have been installed
 
30995
by kdelibs" >&5
 
30996
echo "$as_me: error: 
 
30997
I can't find the designer plugins. These are required and should have been installed
 
30998
by kdelibs" >&2;}
 
30999
   { (exit 1); exit 1; }; }
 
31000
fi
 
31001
 
 
31002
if test -n "$kde_widgetdir"; then
 
31003
    kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
 
31004
fi
 
31005
 
 
31006
 
 
31007
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
 
31008
  ac_cv_have_kde="have_kde=no"
 
31009
else
 
31010
  ac_cv_have_kde="have_kde=yes \
 
31011
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
31012
fi
 
31013
 
 
31014
else 
 
31015
  ac_cv_have_kde="have_kde=no"
 
31016
 
 
31017
fi
 
31018
 
 
31019
fi
 
31020
 
 
31021
eval "$ac_cv_have_kde"
 
31022
 
 
31023
if test "$have_kde" != "yes"; then
 
31024
 if test "${prefix}" = NONE; then
 
31025
  ac_kde_prefix="$ac_default_prefix"
 
31026
 else
 
31027
  ac_kde_prefix="$prefix"
 
31028
 fi
 
31029
 if test "$exec_prefix" = NONE; then
 
31030
  ac_kde_exec_prefix="$ac_kde_prefix"
 
31031
  { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
 
31032
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6; }
 
31033
 else
 
31034
  ac_kde_exec_prefix="$exec_prefix"
 
31035
  { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
 
31036
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
 
31037
 fi
 
31038
 
 
31039
 kde_libraries="${libdir}"
 
31040
 kde_includes="${includedir}"
 
31041
 
 
31042
else
 
31043
  ac_cv_have_kde="have_kde=yes \
 
31044
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
 
31045
  { echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
 
31046
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
 
31047
 
 
31048
  kde_libraries="$ac_kde_libraries"
 
31049
  kde_includes="$ac_kde_includes"
 
31050
fi
 
31051
 
 
31052
 
 
31053
 
 
31054
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes"  || test "$kde_includes" = "/usr/include"; then
 
31055
 KDE_INCLUDES=""
 
31056
else
 
31057
 KDE_INCLUDES="-I$kde_includes"
 
31058
 all_includes="$KDE_INCLUDES $all_includes"
 
31059
fi
 
31060
 
 
31061
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
 
31062
 
 
31063
KDE_LDFLAGS="-L$kde_libraries"
 
31064
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then 
 
31065
 all_libraries="$KDE_LDFLAGS $all_libraries"
 
31066
fi
 
31067
 
 
31068
 
 
31069
 
 
31070
 
 
31071
 
 
31072
 
 
31073
all_libraries="$all_libraries $USER_LDFLAGS"
 
31074
all_includes="$all_includes $USER_INCLUDES"
 
31075
 
 
31076
 
 
31077
 
 
31078
if test -z ""; then
 
31079
 
 
31080
 
 
31081
 
 
31082
if test x$ac_uic_supports_libpath = xyes; then
 
31083
 
 
31084
{ echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
 
31085
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6; }
 
31086
if test "${kde_cv_uic_plugins+set}" = set; then
 
31087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31088
else
 
31089
  
 
31090
cat > actest.ui << EOF
 
31091
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
 
31092
<class>NewConnectionDialog</class>
 
31093
<widget class="QDialog">
 
31094
   <widget class="KLineEdit">
 
31095
        <property name="name">
 
31096
           <cstring>testInput</cstring>
 
31097
        </property>
 
31098
   </widget>
 
31099
</widget>
 
31100
</UI>
 
31101
EOF
 
31102
       
 
31103
 
 
31104
 
 
31105
kde_cv_uic_plugins=no
 
31106
kde_line="$UIC_PATH -L $kde_widgetdir"
 
31107
if test x$ac_uic_supports_nounload = xyes; then
 
31108
   kde_line="$kde_line -nounload"
 
31109
fi
 
31110
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
 
31111
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
 
31112
  (eval $kde_line) 2>&5
 
31113
  ac_status=$?
 
31114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31115
  (exit $ac_status); }; then
 
31116
        # if you're trying to debug this check and think it's incorrect,
 
31117
        # better check your installation. The check _is_ correct - your
 
31118
        # installation is not.
 
31119
        if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
 
31120
                kde_cv_uic_plugins=yes
 
31121
        fi
 
31122
fi
 
31123
rm -f actest.ui actest.cpp
 
31124
 
 
31125
fi
 
31126
 
 
31127
 
 
31128
{ echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
 
31129
echo "${ECHO_T}$kde_cv_uic_plugins" >&6; }
 
31130
if test "$kde_cv_uic_plugins" != yes; then
 
31131
        { { echo "$as_me:$LINENO: error: 
 
31132
you need to install kdelibs first.
 
31133
 
 
31134
If you did install kdelibs, then the Qt version that is picked up by
 
31135
this configure is not the same version you used to compile kdelibs. 
 
31136
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the 
 
31137
_same Qt version_, compiled with the _same compiler_ and the same Qt
 
31138
configuration settings.
 
31139
" >&5
 
31140
echo "$as_me: error: 
 
31141
you need to install kdelibs first.
 
31142
 
 
31143
If you did install kdelibs, then the Qt version that is picked up by
 
31144
this configure is not the same version you used to compile kdelibs. 
 
31145
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the 
 
31146
_same Qt version_, compiled with the _same compiler_ and the same Qt
 
31147
configuration settings.
 
31148
" >&2;}
 
31149
   { (exit 1); exit 1; }; }
 
31150
fi
 
31151
fi
 
31152
 
 
31153
fi
 
31154
 
 
31155
ac_kde_libraries="$kde_libdir"
 
31156
 
 
31157
 
 
31158
 
 
31159
 
 
31160
 
 
31161
  # Check whether --enable-path-check was given.
 
31162
if test "${enable_path_check+set}" = set; then
 
31163
  enableval=$enable_path_check; 
 
31164
  if test "$enableval" = "no";
 
31165
    then ac_use_path_checking="default"
 
31166
    else ac_use_path_checking=""
 
31167
  fi
 
31168
  
 
31169
else
 
31170
  
 
31171
  if test "$kde_qtver" = 1;
 
31172
    then ac_use_path_checking=""
 
31173
    else ac_use_path_checking="default"
 
31174
  fi
 
31175
  
 
31176
  
 
31177
fi
 
31178
 
 
31179
 
 
31180
  
 
31181
 
 
31182
 
 
31183
{ echo "$as_me:$LINENO: checking for KDE paths" >&5
 
31184
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6; }
 
31185
kde_result=""
 
31186
kde_cached_paths=yes
 
31187
if test "${kde_cv_all_paths+set}" = set; then
 
31188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31189
else
 
31190
  
 
31191
  
 
31192
if test "$ac_use_path_checking" = "default"; then
 
31193
 
 
31194
  if test -z "$kde_htmldir"; then
 
31195
    kde_htmldir='\${datadir}/doc/HTML'
 
31196
  fi
 
31197
  if test -z "$kde_appsdir"; then
 
31198
    kde_appsdir='\${datadir}/applnk'
 
31199
  fi
 
31200
  if test -z "$kde_icondir"; then
 
31201
    kde_icondir='\${datadir}/icons'
 
31202
  fi
 
31203
  if test -z "$kde_sounddir"; then
 
31204
    kde_sounddir='\${datadir}/sounds'
 
31205
  fi
 
31206
  if test -z "$kde_datadir"; then
 
31207
    kde_datadir='\${datadir}/apps'
 
31208
  fi
 
31209
  if test -z "$kde_locale"; then
 
31210
    kde_locale='\${datadir}/locale'
 
31211
  fi
 
31212
  if test -z "$kde_cgidir"; then
 
31213
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
31214
  fi
 
31215
  if test -z "$kde_confdir"; then
 
31216
    kde_confdir='\${datadir}/config'
 
31217
  fi
 
31218
  if test -z "$kde_kcfgdir"; then
 
31219
    kde_kcfgdir='\${datadir}/config.kcfg'
 
31220
  fi
 
31221
  if test -z "$kde_mimedir"; then
 
31222
    kde_mimedir='\${datadir}/mimelnk'
 
31223
  fi
 
31224
  if test -z "$kde_toolbardir"; then
 
31225
    kde_toolbardir='\${datadir}/toolbar'
 
31226
  fi
 
31227
  if test -z "$kde_wallpaperdir"; then
 
31228
    kde_wallpaperdir='\${datadir}/wallpapers'
 
31229
  fi
 
31230
  if test -z "$kde_templatesdir"; then
 
31231
    kde_templatesdir='\${datadir}/templates'
 
31232
  fi
 
31233
  if test -z "$kde_bindir"; then
 
31234
    kde_bindir='\${exec_prefix}/bin'
 
31235
  fi
 
31236
  if test -z "$kde_servicesdir"; then
 
31237
    kde_servicesdir='\${datadir}/services'
 
31238
  fi
 
31239
  if test -z "$kde_servicetypesdir"; then
 
31240
    kde_servicetypesdir='\${datadir}/servicetypes'
 
31241
  fi
 
31242
  if test -z "$kde_moduledir"; then
 
31243
    if test "$kde_qtver" = "2"; then
 
31244
      kde_moduledir='\${libdir}/kde2'
 
31245
    else
 
31246
      kde_moduledir='\${libdir}/kde3'
 
31247
    fi
 
31248
  fi
 
31249
  if test -z "$kde_styledir"; then
 
31250
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
31251
  fi
 
31252
  if test -z "$kde_widgetdir"; then
 
31253
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
31254
  fi
 
31255
  if test -z "$xdg_appsdir"; then
 
31256
    xdg_appsdir='\${datadir}/applications/kde'
 
31257
  fi
 
31258
  if test -z "$xdg_menudir"; then
 
31259
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
31260
  fi
 
31261
  if test -z "$xdg_directorydir"; then
 
31262
    xdg_directorydir='\${datadir}/desktop-directories'
 
31263
  fi
 
31264
 
 
31265
  
 
31266
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
31267
        kde_htmldir=\"$kde_htmldir\" \
 
31268
        kde_appsdir=\"$kde_appsdir\" \
 
31269
        kde_icondir=\"$kde_icondir\" \
 
31270
        kde_sounddir=\"$kde_sounddir\" \
 
31271
        kde_datadir=\"$kde_datadir\" \
 
31272
        kde_locale=\"$kde_locale\" \
 
31273
        kde_cgidir=\"$kde_cgidir\" \
 
31274
        kde_confdir=\"$kde_confdir\" \
 
31275
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
31276
        kde_mimedir=\"$kde_mimedir\" \
 
31277
        kde_toolbardir=\"$kde_toolbardir\" \
 
31278
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
31279
        kde_templatesdir=\"$kde_templatesdir\" \
 
31280
        kde_bindir=\"$kde_bindir\" \
 
31281
        kde_servicesdir=\"$kde_servicesdir\" \
 
31282
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
31283
        kde_moduledir=\"$kde_moduledir\" \
 
31284
        kde_styledir=\"$kde_styledir\" \
 
31285
        kde_widgetdir=\"$kde_widgetdir\" \
 
31286
        xdg_appsdir=\"$xdg_appsdir\" \
 
31287
        xdg_menudir=\"$xdg_menudir\" \
 
31288
        xdg_directorydir=\"$xdg_directorydir\" \
 
31289
        kde_result=defaults"
 
31290
 
 
31291
 
 
31292
else
 
31293
 
 
31294
  if test $kde_qtver = 1; then
 
31295
     { echo "$as_me:$LINENO: result: compiling" >&5
 
31296
echo "${ECHO_T}compiling" >&6; }
 
31297
     
 
31298
  
 
31299
    { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
31300
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
 
31301
    
 
31302
     ac_ext=cpp
 
31303
ac_cpp='$CXXCPP $CPPFLAGS'
 
31304
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31305
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31306
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31307
 
 
31308
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
31309
 
 
31310
 
 
31311
cat > conftest.$ac_ext <<EOF
 
31312
#ifdef STDC_HEADERS
 
31313
# include <stdlib.h>
 
31314
#endif
 
31315
#include <stdio.h>
 
31316
#include "confdefs.h"
 
31317
#include <kapp.h>
 
31318
 
 
31319
int main() {
 
31320
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
31321
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
31322
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
31323
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
31324
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
31325
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
31326
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
31327
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
31328
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
31329
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
31330
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
31331
        KApplication::kde_wallpaperdir().data());
 
31332
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
31333
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
31334
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
31335
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
31336
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
31337
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
31338
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
31339
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
31340
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
31341
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
31342
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
31343
    return 0;
 
31344
    }
 
31345
EOF
 
31346
 
 
31347
 ac_save_CPPFLAGS=$CPPFLAGS
 
31348
 CPPFLAGS="$all_includes $CPPFLAGS"
 
31349
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31350
  (eval $ac_compile) 2>&5
 
31351
  ac_status=$?
 
31352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31353
  (exit $ac_status); }; then
 
31354
   { echo "$as_me:$LINENO: result: yes" >&5
 
31355
echo "${ECHO_T}yes" >&6; }
 
31356
 else
 
31357
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
31358
Check, if you installed the KDE header files correctly.
 
31359
For more details about this problem, look at the end of config.log." >&5
 
31360
echo "$as_me: error: your system is not able to compile a small KDE application!
 
31361
Check, if you installed the KDE header files correctly.
 
31362
For more details about this problem, look at the end of config.log." >&2;}
 
31363
   { (exit 1); exit 1; }; }
 
31364
  fi
 
31365
  CPPFLAGS=$ac_save_CPPFLAGS
 
31366
 
 
31367
  ac_ext=c
 
31368
ac_cpp='$CPP $CPPFLAGS'
 
31369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31372
 
 
31373
 
 
31374
 
 
31375
  KDE_TEST_RPATH=
 
31376
 
 
31377
  if test -n "$USE_RPATH"; then
 
31378
 
 
31379
     if test -n "$kde_libraries"; then
 
31380
       KDE_TEST_RPATH="-R $kde_libraries"
 
31381
     fi
 
31382
 
 
31383
     if test -n "$qt_libraries"; then
 
31384
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
31385
     fi
 
31386
 
 
31387
     if test -n "$x_libraries"; then
 
31388
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
31389
     fi
 
31390
 
 
31391
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
31392
  fi
 
31393
 
 
31394
{ echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
31395
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
 
31396
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
 
31397
 
 
31398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31399
  (eval $ac_link) 2>&5
 
31400
  ac_status=$?
 
31401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31402
  (exit $ac_status); } && test -s conftest; then
 
31403
  { echo "$as_me:$LINENO: result: yes" >&5
 
31404
echo "${ECHO_T}yes" >&6; }
 
31405
else
 
31406
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
31407
Check, if your compiler is installed correctly and if you have used the
 
31408
same compiler to compile Qt and kdelibs as you did use now.
 
31409
For more details about this problem, look at the end of config.log." >&5
 
31410
echo "$as_me: error: your system fails at linking a small KDE application!
 
31411
Check, if your compiler is installed correctly and if you have used the
 
31412
same compiler to compile Qt and kdelibs as you did use now.
 
31413
For more details about this problem, look at the end of config.log." >&2;}
 
31414
   { (exit 1); exit 1; }; }
 
31415
fi
 
31416
 
 
31417
if eval `KDEDIR= ./conftest 2>&5`; then
 
31418
  kde_result=done
 
31419
else
 
31420
  kde_result=problems
 
31421
fi
 
31422
 
 
31423
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
31424
kde_have_all_paths=yes
 
31425
 
 
31426
 
 
31427
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
31428
        kde_htmldir=\"$kde_htmldir\" \
 
31429
        kde_appsdir=\"$kde_appsdir\" \
 
31430
        kde_icondir=\"$kde_icondir\" \
 
31431
        kde_sounddir=\"$kde_sounddir\" \
 
31432
        kde_datadir=\"$kde_datadir\" \
 
31433
        kde_locale=\"$kde_locale\" \
 
31434
        kde_cgidir=\"$kde_cgidir\" \
 
31435
        kde_confdir=\"$kde_confdir\" \
 
31436
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
31437
        kde_mimedir=\"$kde_mimedir\" \
 
31438
        kde_toolbardir=\"$kde_toolbardir\" \
 
31439
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
31440
        kde_templatesdir=\"$kde_templatesdir\" \
 
31441
        kde_bindir=\"$kde_bindir\" \
 
31442
        kde_servicesdir=\"$kde_servicesdir\" \
 
31443
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
31444
        kde_moduledir=\"$kde_moduledir\" \
 
31445
        kde_styledir=\"$kde_styledir\" \
 
31446
        kde_widgetdir=\"$kde_widgetdir\" \
 
31447
        xdg_appsdir=\"$xdg_appsdir\" \
 
31448
        xdg_menudir=\"$xdg_menudir\" \
 
31449
        xdg_directorydir=\"$xdg_directorydir\" \
 
31450
        kde_result=$kde_result"
 
31451
 
 
31452
 
 
31453
 
 
31454
  else
 
31455
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
31456
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
31457
   { (exit 1); exit 1; }; }
 
31458
  fi
 
31459
 
 
31460
fi
 
31461
 
 
31462
  kde_cached_paths=no
 
31463
 
 
31464
fi
 
31465
 
 
31466
eval "$kde_cv_all_paths"
 
31467
 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
31468
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
31469
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
31470
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
31471
   test -z "$kde_kcfgdir" ||
 
31472
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
31473
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
31474
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
31475
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
31476
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
31477
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
31478
   test "x$kde_have_all_paths" != "xyes"; then
 
31479
     kde_have_all_paths=no
 
31480
  fi
 
31481
 
 
31482
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
 
31483
  # wrong values were cached, may be, we can set better ones
 
31484
  kde_result=
 
31485
  kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
 
31486
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir= kde_kcfgdir=
 
31487
  kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
 
31488
  kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
 
31489
  kde_have_all_paths=
 
31490
  kde_styledir=
 
31491
  kde_widgetdir=
 
31492
  xdg_appsdir = xdg_menudir= xdg_directorydir= 
 
31493
  
 
31494
if test "$ac_use_path_checking" = "default"; then
 
31495
 
 
31496
  if test -z "$kde_htmldir"; then
 
31497
    kde_htmldir='\${datadir}/doc/HTML'
 
31498
  fi
 
31499
  if test -z "$kde_appsdir"; then
 
31500
    kde_appsdir='\${datadir}/applnk'
 
31501
  fi
 
31502
  if test -z "$kde_icondir"; then
 
31503
    kde_icondir='\${datadir}/icons'
 
31504
  fi
 
31505
  if test -z "$kde_sounddir"; then
 
31506
    kde_sounddir='\${datadir}/sounds'
 
31507
  fi
 
31508
  if test -z "$kde_datadir"; then
 
31509
    kde_datadir='\${datadir}/apps'
 
31510
  fi
 
31511
  if test -z "$kde_locale"; then
 
31512
    kde_locale='\${datadir}/locale'
 
31513
  fi
 
31514
  if test -z "$kde_cgidir"; then
 
31515
    kde_cgidir='\${exec_prefix}/cgi-bin'
 
31516
  fi
 
31517
  if test -z "$kde_confdir"; then
 
31518
    kde_confdir='\${datadir}/config'
 
31519
  fi
 
31520
  if test -z "$kde_kcfgdir"; then
 
31521
    kde_kcfgdir='\${datadir}/config.kcfg'
 
31522
  fi
 
31523
  if test -z "$kde_mimedir"; then
 
31524
    kde_mimedir='\${datadir}/mimelnk'
 
31525
  fi
 
31526
  if test -z "$kde_toolbardir"; then
 
31527
    kde_toolbardir='\${datadir}/toolbar'
 
31528
  fi
 
31529
  if test -z "$kde_wallpaperdir"; then
 
31530
    kde_wallpaperdir='\${datadir}/wallpapers'
 
31531
  fi
 
31532
  if test -z "$kde_templatesdir"; then
 
31533
    kde_templatesdir='\${datadir}/templates'
 
31534
  fi
 
31535
  if test -z "$kde_bindir"; then
 
31536
    kde_bindir='\${exec_prefix}/bin'
 
31537
  fi
 
31538
  if test -z "$kde_servicesdir"; then
 
31539
    kde_servicesdir='\${datadir}/services'
 
31540
  fi
 
31541
  if test -z "$kde_servicetypesdir"; then
 
31542
    kde_servicetypesdir='\${datadir}/servicetypes'
 
31543
  fi
 
31544
  if test -z "$kde_moduledir"; then
 
31545
    if test "$kde_qtver" = "2"; then
 
31546
      kde_moduledir='\${libdir}/kde2'
 
31547
    else
 
31548
      kde_moduledir='\${libdir}/kde3'
 
31549
    fi
 
31550
  fi
 
31551
  if test -z "$kde_styledir"; then
 
31552
    kde_styledir='\${libdir}/kde3/plugins/styles'
 
31553
  fi
 
31554
  if test -z "$kde_widgetdir"; then
 
31555
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
 
31556
  fi
 
31557
  if test -z "$xdg_appsdir"; then
 
31558
    xdg_appsdir='\${datadir}/applications/kde'
 
31559
  fi
 
31560
  if test -z "$xdg_menudir"; then
 
31561
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
31562
  fi
 
31563
  if test -z "$xdg_directorydir"; then
 
31564
    xdg_directorydir='\${datadir}/desktop-directories'
 
31565
  fi
 
31566
 
 
31567
  
 
31568
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
31569
        kde_htmldir=\"$kde_htmldir\" \
 
31570
        kde_appsdir=\"$kde_appsdir\" \
 
31571
        kde_icondir=\"$kde_icondir\" \
 
31572
        kde_sounddir=\"$kde_sounddir\" \
 
31573
        kde_datadir=\"$kde_datadir\" \
 
31574
        kde_locale=\"$kde_locale\" \
 
31575
        kde_cgidir=\"$kde_cgidir\" \
 
31576
        kde_confdir=\"$kde_confdir\" \
 
31577
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
31578
        kde_mimedir=\"$kde_mimedir\" \
 
31579
        kde_toolbardir=\"$kde_toolbardir\" \
 
31580
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
31581
        kde_templatesdir=\"$kde_templatesdir\" \
 
31582
        kde_bindir=\"$kde_bindir\" \
 
31583
        kde_servicesdir=\"$kde_servicesdir\" \
 
31584
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
31585
        kde_moduledir=\"$kde_moduledir\" \
 
31586
        kde_styledir=\"$kde_styledir\" \
 
31587
        kde_widgetdir=\"$kde_widgetdir\" \
 
31588
        xdg_appsdir=\"$xdg_appsdir\" \
 
31589
        xdg_menudir=\"$xdg_menudir\" \
 
31590
        xdg_directorydir=\"$xdg_directorydir\" \
 
31591
        kde_result=defaults"
 
31592
 
 
31593
 
 
31594
else
 
31595
 
 
31596
  if test $kde_qtver = 1; then
 
31597
     { echo "$as_me:$LINENO: result: compiling" >&5
 
31598
echo "${ECHO_T}compiling" >&6; }
 
31599
     
 
31600
  
 
31601
    { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
 
31602
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
 
31603
    
 
31604
     ac_ext=cpp
 
31605
ac_cpp='$CXXCPP $CPPFLAGS'
 
31606
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31607
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31608
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31609
 
 
31610
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
31611
 
 
31612
 
 
31613
cat > conftest.$ac_ext <<EOF
 
31614
#ifdef STDC_HEADERS
 
31615
# include <stdlib.h>
 
31616
#endif
 
31617
#include <stdio.h>
 
31618
#include "confdefs.h"
 
31619
#include <kapp.h>
 
31620
 
 
31621
int main() {
 
31622
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
 
31623
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
 
31624
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
 
31625
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
 
31626
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
 
31627
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
 
31628
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
 
31629
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
 
31630
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
 
31631
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
 
31632
    printf("kde_wallpaperdir=\\"%s\\"\n",
 
31633
        KApplication::kde_wallpaperdir().data());
 
31634
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
 
31635
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
 
31636
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
 
31637
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
 
31638
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
 
31639
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
 
31640
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
31641
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
31642
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
31643
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
31644
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
 
31645
    return 0;
 
31646
    }
 
31647
EOF
 
31648
 
 
31649
 ac_save_CPPFLAGS=$CPPFLAGS
 
31650
 CPPFLAGS="$all_includes $CPPFLAGS"
 
31651
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31652
  (eval $ac_compile) 2>&5
 
31653
  ac_status=$?
 
31654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31655
  (exit $ac_status); }; then
 
31656
   { echo "$as_me:$LINENO: result: yes" >&5
 
31657
echo "${ECHO_T}yes" >&6; }
 
31658
 else
 
31659
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
 
31660
Check, if you installed the KDE header files correctly.
 
31661
For more details about this problem, look at the end of config.log." >&5
 
31662
echo "$as_me: error: your system is not able to compile a small KDE application!
 
31663
Check, if you installed the KDE header files correctly.
 
31664
For more details about this problem, look at the end of config.log." >&2;}
 
31665
   { (exit 1); exit 1; }; }
 
31666
  fi
 
31667
  CPPFLAGS=$ac_save_CPPFLAGS
 
31668
 
 
31669
  ac_ext=c
 
31670
ac_cpp='$CPP $CPPFLAGS'
 
31671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31674
 
 
31675
 
 
31676
 
 
31677
  KDE_TEST_RPATH=
 
31678
 
 
31679
  if test -n "$USE_RPATH"; then
 
31680
 
 
31681
     if test -n "$kde_libraries"; then
 
31682
       KDE_TEST_RPATH="-R $kde_libraries"
 
31683
     fi
 
31684
 
 
31685
     if test -n "$qt_libraries"; then
 
31686
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
 
31687
     fi
 
31688
 
 
31689
     if test -n "$x_libraries"; then
 
31690
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
 
31691
     fi
 
31692
 
 
31693
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
 
31694
  fi
 
31695
 
 
31696
{ echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
 
31697
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
 
31698
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
 
31699
 
 
31700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31701
  (eval $ac_link) 2>&5
 
31702
  ac_status=$?
 
31703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31704
  (exit $ac_status); } && test -s conftest; then
 
31705
  { echo "$as_me:$LINENO: result: yes" >&5
 
31706
echo "${ECHO_T}yes" >&6; }
 
31707
else
 
31708
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
 
31709
Check, if your compiler is installed correctly and if you have used the
 
31710
same compiler to compile Qt and kdelibs as you did use now.
 
31711
For more details about this problem, look at the end of config.log." >&5
 
31712
echo "$as_me: error: your system fails at linking a small KDE application!
 
31713
Check, if your compiler is installed correctly and if you have used the
 
31714
same compiler to compile Qt and kdelibs as you did use now.
 
31715
For more details about this problem, look at the end of config.log." >&2;}
 
31716
   { (exit 1); exit 1; }; }
 
31717
fi
 
31718
 
 
31719
if eval `KDEDIR= ./conftest 2>&5`; then
 
31720
  kde_result=done
 
31721
else
 
31722
  kde_result=problems
 
31723
fi
 
31724
 
 
31725
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
 
31726
kde_have_all_paths=yes
 
31727
 
 
31728
 
 
31729
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
 
31730
        kde_htmldir=\"$kde_htmldir\" \
 
31731
        kde_appsdir=\"$kde_appsdir\" \
 
31732
        kde_icondir=\"$kde_icondir\" \
 
31733
        kde_sounddir=\"$kde_sounddir\" \
 
31734
        kde_datadir=\"$kde_datadir\" \
 
31735
        kde_locale=\"$kde_locale\" \
 
31736
        kde_cgidir=\"$kde_cgidir\" \
 
31737
        kde_confdir=\"$kde_confdir\" \
 
31738
        kde_kcfgdir=\"$kde_kcfgdir\" \
 
31739
        kde_mimedir=\"$kde_mimedir\" \
 
31740
        kde_toolbardir=\"$kde_toolbardir\" \
 
31741
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
 
31742
        kde_templatesdir=\"$kde_templatesdir\" \
 
31743
        kde_bindir=\"$kde_bindir\" \
 
31744
        kde_servicesdir=\"$kde_servicesdir\" \
 
31745
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
 
31746
        kde_moduledir=\"$kde_moduledir\" \
 
31747
        kde_styledir=\"$kde_styledir\" \
 
31748
        kde_widgetdir=\"$kde_widgetdir\" \
 
31749
        xdg_appsdir=\"$xdg_appsdir\" \
 
31750
        xdg_menudir=\"$xdg_menudir\" \
 
31751
        xdg_directorydir=\"$xdg_directorydir\" \
 
31752
        kde_result=$kde_result"
 
31753
 
 
31754
 
 
31755
 
 
31756
  else
 
31757
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
 
31758
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
 
31759
   { (exit 1); exit 1; }; }
 
31760
  fi
 
31761
 
 
31762
fi
 
31763
 
 
31764
  eval "$kde_cv_all_paths"
 
31765
   if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
 
31766
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
 
31767
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
 
31768
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
31769
   test -z "$kde_kcfgdir" ||
 
31770
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
 
31771
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
 
31772
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
 
31773
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
 
31774
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
31775
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
 
31776
   test "x$kde_have_all_paths" != "xyes"; then
 
31777
     kde_have_all_paths=no
 
31778
  fi
 
31779
 
 
31780
  kde_result="$kde_result (cache overridden)"
 
31781
fi
 
31782
if test "$kde_have_all_paths" = "no"; then
 
31783
  { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
 
31784
Since it had compiled and linked before, it must be a strange problem on your system.
 
31785
Look at config.log for details. If you are not able to fix this, look at
 
31786
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
31787
(If you're using an egcs version on Linux, you may update binutils!)
 
31788
" >&5
 
31789
echo "$as_me: error: configure could not run a little KDE program to test the environment.
 
31790
Since it had compiled and linked before, it must be a strange problem on your system.
 
31791
Look at config.log for details. If you are not able to fix this, look at
 
31792
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
 
31793
(If you're using an egcs version on Linux, you may update binutils!)
 
31794
" >&2;}
 
31795
   { (exit 1); exit 1; }; }
 
31796
else
 
31797
  rm -f conftest*
 
31798
  { echo "$as_me:$LINENO: result: $kde_result" >&5
 
31799
echo "${ECHO_T}$kde_result" >&6; }
 
31800
fi
 
31801
 
 
31802
bindir=$kde_bindir
 
31803
 
 
31804
 
 
31805
    
 
31806
# Check whether --with-arts was given.
 
31807
if test "${with_arts+set}" = set; then
 
31808
  withval=$with_arts; build_arts=$withval
 
31809
else
 
31810
  build_arts=yes
 
31811
    
 
31812
fi
 
31813
 
 
31814
     if test "$build_arts" '!=' "no"; then
 
31815
  include_ARTS_TRUE=
 
31816
  include_ARTS_FALSE='#'
 
31817
else
 
31818
  include_ARTS_TRUE='#'
 
31819
  include_ARTS_FALSE=
 
31820
fi
 
31821
 
 
31822
    if test "$build_arts" = "no"; then
 
31823
        
 
31824
cat >>confdefs.h <<\_ACEOF
 
31825
@%:@define WITHOUT_ARTS 1
 
31826
_ACEOF
 
31827
 
 
31828
    fi
 
31829
 
 
31830
        
 
31831
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
 
31832
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
31833
    if test -n "$KDEDIRS"; then
 
31834
       kde_save_IFS=$IFS
 
31835
       IFS=:
 
31836
       for dir in $KDEDIRS; do
 
31837
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
31838
       done
 
31839
       IFS=$kde_save_IFS
 
31840
    fi
 
31841
 
 
31842
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
 
31843
        
 
31844
   { echo "$as_me:$LINENO: checking for dcopidl" >&5
 
31845
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6; }
 
31846
   if test -n "$DCOPIDL"; then
 
31847
        kde_cv_path="$DCOPIDL";
 
31848
   else
 
31849
        kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
 
31850
 
 
31851
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
31852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31853
else
 
31854
  
 
31855
        kde_cv_path="NONE"
 
31856
        kde_save_IFS=$IFS
 
31857
        IFS=':'
 
31858
        dirs=""
 
31859
        for dir in $PATH; do
 
31860
          dirs="$dirs $dir"
 
31861
        done
 
31862
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31863
        else      dirs="$dirs $kde_default_bindirs"
 
31864
        fi
 
31865
        IFS=$kde_save_IFS
 
31866
 
 
31867
        for dir in $dirs; do
 
31868
          if test -x "$dir/dcopidl"; then
 
31869
            if test -n ""
 
31870
            then
 
31871
              evalstr="$dir/dcopidl  2>&1 "
 
31872
              if eval $evalstr; then
 
31873
                kde_cv_path="$dir/dcopidl"
 
31874
                break
 
31875
              fi
 
31876
            else
 
31877
                kde_cv_path="$dir/dcopidl"
 
31878
                break
 
31879
            fi
 
31880
          fi
 
31881
        done
 
31882
 
 
31883
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31884
 
 
31885
        
 
31886
fi
 
31887
 
 
31888
 
 
31889
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31890
 
 
31891
   fi
 
31892
 
 
31893
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31894
      { echo "$as_me:$LINENO: result: not found" >&5
 
31895
echo "${ECHO_T}not found" >&6; }
 
31896
      
 
31897
    { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
 
31898
Please check whether you installed KDE correctly.
 
31899
" >&5
 
31900
echo "$as_me: error: The important program dcopidl was not found!
 
31901
Please check whether you installed KDE correctly.
 
31902
" >&2;}
 
31903
   { (exit 1); exit 1; }; }
 
31904
 
 
31905
   else
 
31906
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31907
echo "${ECHO_T}$kde_cv_path" >&6; }
 
31908
      DCOPIDL=$kde_cv_path
 
31909
 
 
31910
   fi
 
31911
 
 
31912
        
 
31913
   { echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
 
31914
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6; }
 
31915
   if test -n "$DCOPIDL2CPP"; then
 
31916
        kde_cv_path="$DCOPIDL2CPP";
 
31917
   else
 
31918
        kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
 
31919
 
 
31920
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
31921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31922
else
 
31923
  
 
31924
        kde_cv_path="NONE"
 
31925
        kde_save_IFS=$IFS
 
31926
        IFS=':'
 
31927
        dirs=""
 
31928
        for dir in $PATH; do
 
31929
          dirs="$dirs $dir"
 
31930
        done
 
31931
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31932
        else      dirs="$dirs $kde_default_bindirs"
 
31933
        fi
 
31934
        IFS=$kde_save_IFS
 
31935
 
 
31936
        for dir in $dirs; do
 
31937
          if test -x "$dir/dcopidl2cpp"; then
 
31938
            if test -n ""
 
31939
            then
 
31940
              evalstr="$dir/dcopidl2cpp  2>&1 "
 
31941
              if eval $evalstr; then
 
31942
                kde_cv_path="$dir/dcopidl2cpp"
 
31943
                break
 
31944
              fi
 
31945
            else
 
31946
                kde_cv_path="$dir/dcopidl2cpp"
 
31947
                break
 
31948
            fi
 
31949
          fi
 
31950
        done
 
31951
 
 
31952
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31953
 
 
31954
        
 
31955
fi
 
31956
 
 
31957
 
 
31958
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31959
 
 
31960
   fi
 
31961
 
 
31962
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31963
      { echo "$as_me:$LINENO: result: not found" >&5
 
31964
echo "${ECHO_T}not found" >&6; }
 
31965
      
 
31966
    { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
 
31967
Please check whether you installed KDE correctly.
 
31968
" >&5
 
31969
echo "$as_me: error: The important program dcopidl2cpp was not found!
 
31970
Please check whether you installed KDE correctly.
 
31971
" >&2;}
 
31972
   { (exit 1); exit 1; }; }
 
31973
 
 
31974
   else
 
31975
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31976
echo "${ECHO_T}$kde_cv_path" >&6; }
 
31977
      DCOPIDL2CPP=$kde_cv_path
 
31978
 
 
31979
   fi
 
31980
 
 
31981
        if test "$build_arts" '!=' "no"; then
 
31982
          
 
31983
   { echo "$as_me:$LINENO: checking for mcopidl" >&5
 
31984
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6; }
 
31985
   if test -n "$MCOPIDL"; then
 
31986
        kde_cv_path="$MCOPIDL";
 
31987
   else
 
31988
        kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
 
31989
 
 
31990
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
31991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31992
else
 
31993
  
 
31994
        kde_cv_path="NONE"
 
31995
        kde_save_IFS=$IFS
 
31996
        IFS=':'
 
31997
        dirs=""
 
31998
        for dir in $PATH; do
 
31999
          dirs="$dirs $dir"
 
32000
        done
 
32001
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
32002
        else      dirs="$dirs $kde_default_bindirs"
 
32003
        fi
 
32004
        IFS=$kde_save_IFS
 
32005
 
 
32006
        for dir in $dirs; do
 
32007
          if test -x "$dir/mcopidl"; then
 
32008
            if test -n ""
 
32009
            then
 
32010
              evalstr="$dir/mcopidl  2>&1 "
 
32011
              if eval $evalstr; then
 
32012
                kde_cv_path="$dir/mcopidl"
 
32013
                break
 
32014
              fi
 
32015
            else
 
32016
                kde_cv_path="$dir/mcopidl"
 
32017
                break
 
32018
            fi
 
32019
          fi
 
32020
        done
 
32021
 
 
32022
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32023
 
 
32024
        
 
32025
fi
 
32026
 
 
32027
 
 
32028
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32029
 
 
32030
   fi
 
32031
 
 
32032
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32033
      { echo "$as_me:$LINENO: result: not found" >&5
 
32034
echo "${ECHO_T}not found" >&6; }
 
32035
      
 
32036
    { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
 
32037
Please check whether you installed aRts correctly or use
 
32038
--without-arts to compile without aRts support (this will remove functionality).
 
32039
" >&5
 
32040
echo "$as_me: error: The important program mcopidl was not found!
 
32041
Please check whether you installed aRts correctly or use
 
32042
--without-arts to compile without aRts support (this will remove functionality).
 
32043
" >&2;}
 
32044
   { (exit 1); exit 1; }; }
 
32045
 
 
32046
   else
 
32047
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32048
echo "${ECHO_T}$kde_cv_path" >&6; }
 
32049
      MCOPIDL=$kde_cv_path
 
32050
 
 
32051
   fi
 
32052
 
 
32053
          
 
32054
   { echo "$as_me:$LINENO: checking for artsc-config" >&5
 
32055
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6; }
 
32056
   if test -n "$ARTSCCONFIG"; then
 
32057
        kde_cv_path="$ARTSCCONFIG";
 
32058
   else
 
32059
        kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
 
32060
 
 
32061
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
32062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32063
else
 
32064
  
 
32065
        kde_cv_path="NONE"
 
32066
        kde_save_IFS=$IFS
 
32067
        IFS=':'
 
32068
        dirs=""
 
32069
        for dir in $PATH; do
 
32070
          dirs="$dirs $dir"
 
32071
        done
 
32072
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
32073
        else      dirs="$dirs $kde_default_bindirs"
 
32074
        fi
 
32075
        IFS=$kde_save_IFS
 
32076
 
 
32077
        for dir in $dirs; do
 
32078
          if test -x "$dir/artsc-config"; then
 
32079
            if test -n ""
 
32080
            then
 
32081
              evalstr="$dir/artsc-config  2>&1 "
 
32082
              if eval $evalstr; then
 
32083
                kde_cv_path="$dir/artsc-config"
 
32084
                break
 
32085
              fi
 
32086
            else
 
32087
                kde_cv_path="$dir/artsc-config"
 
32088
                break
 
32089
            fi
 
32090
          fi
 
32091
        done
 
32092
 
 
32093
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32094
 
 
32095
        
 
32096
fi
 
32097
 
 
32098
 
 
32099
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32100
 
 
32101
   fi
 
32102
 
 
32103
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32104
      { echo "$as_me:$LINENO: result: not found" >&5
 
32105
echo "${ECHO_T}not found" >&6; }
 
32106
      
 
32107
    { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
 
32108
Please check whether you installed aRts correctly or use
 
32109
--without-arts to compile without aRts support (this will remove functionality).
 
32110
" >&5
 
32111
echo "$as_me: error: The important program artsc-config was not found!
 
32112
Please check whether you installed aRts correctly or use
 
32113
--without-arts to compile without aRts support (this will remove functionality).
 
32114
" >&2;}
 
32115
   { (exit 1); exit 1; }; }
 
32116
 
 
32117
   else
 
32118
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32119
echo "${ECHO_T}$kde_cv_path" >&6; }
 
32120
      ARTSCCONFIG=$kde_cv_path
 
32121
 
 
32122
   fi
 
32123
 
 
32124
        fi
 
32125
        
 
32126
   { echo "$as_me:$LINENO: checking for meinproc" >&5
 
32127
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6; }
 
32128
   if test -n "$MEINPROC"; then
 
32129
        kde_cv_path="$MEINPROC";
 
32130
   else
 
32131
        kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
 
32132
 
 
32133
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
32134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32135
else
 
32136
  
 
32137
        kde_cv_path="NONE"
 
32138
        kde_save_IFS=$IFS
 
32139
        IFS=':'
 
32140
        dirs=""
 
32141
        for dir in $PATH; do
 
32142
          dirs="$dirs $dir"
 
32143
        done
 
32144
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
32145
        else      dirs="$dirs $kde_default_bindirs"
 
32146
        fi
 
32147
        IFS=$kde_save_IFS
 
32148
 
 
32149
        for dir in $dirs; do
 
32150
          if test -x "$dir/meinproc"; then
 
32151
            if test -n ""
 
32152
            then
 
32153
              evalstr="$dir/meinproc  2>&1 "
 
32154
              if eval $evalstr; then
 
32155
                kde_cv_path="$dir/meinproc"
 
32156
                break
 
32157
              fi
 
32158
            else
 
32159
                kde_cv_path="$dir/meinproc"
 
32160
                break
 
32161
            fi
 
32162
          fi
 
32163
        done
 
32164
 
 
32165
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32166
 
 
32167
        
 
32168
fi
 
32169
 
 
32170
 
 
32171
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32172
 
 
32173
   fi
 
32174
 
 
32175
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32176
      { echo "$as_me:$LINENO: result: not found" >&5
 
32177
echo "${ECHO_T}not found" >&6; }
 
32178
      
 
32179
   else
 
32180
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32181
echo "${ECHO_T}$kde_cv_path" >&6; }
 
32182
      MEINPROC=$kde_cv_path
 
32183
 
 
32184
   fi
 
32185
 
 
32186
 
 
32187
        kde32ornewer=1
 
32188
        kde33ornewer=1
 
32189
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
 
32190
            kde32ornewer=
 
32191
            kde33ornewer=
 
32192
        else
 
32193
            if test "$kde_qtver" = "3"; then
 
32194
              if test "$kde_qtsubver" -le 1; then
 
32195
                kde32ornewer=
 
32196
              fi
 
32197
              if test "$kde_qtsubver" -le 2 -o `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
 
32198
                kde33ornewer=
 
32199
              fi
 
32200
            fi
 
32201
        fi
 
32202
 
 
32203
        if test -n "$kde32ornewer"; then
 
32204
            
 
32205
   { echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
 
32206
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6; }
 
32207
   if test -n "$KCONFIG_COMPILER"; then
 
32208
        kde_cv_path="$KCONFIG_COMPILER";
 
32209
   else
 
32210
        kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
 
32211
 
 
32212
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
32213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32214
else
 
32215
  
 
32216
        kde_cv_path="NONE"
 
32217
        kde_save_IFS=$IFS
 
32218
        IFS=':'
 
32219
        dirs=""
 
32220
        for dir in $PATH; do
 
32221
          dirs="$dirs $dir"
 
32222
        done
 
32223
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
32224
        else      dirs="$dirs $kde_default_bindirs"
 
32225
        fi
 
32226
        IFS=$kde_save_IFS
 
32227
 
 
32228
        for dir in $dirs; do
 
32229
          if test -x "$dir/kconfig_compiler"; then
 
32230
            if test -n ""
 
32231
            then
 
32232
              evalstr="$dir/kconfig_compiler  2>&1 "
 
32233
              if eval $evalstr; then
 
32234
                kde_cv_path="$dir/kconfig_compiler"
 
32235
                break
 
32236
              fi
 
32237
            else
 
32238
                kde_cv_path="$dir/kconfig_compiler"
 
32239
                break
 
32240
            fi
 
32241
          fi
 
32242
        done
 
32243
 
 
32244
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32245
 
 
32246
        
 
32247
fi
 
32248
 
 
32249
 
 
32250
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32251
 
 
32252
   fi
 
32253
 
 
32254
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32255
      { echo "$as_me:$LINENO: result: not found" >&5
 
32256
echo "${ECHO_T}not found" >&6; }
 
32257
      
 
32258
    { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
 
32259
Please check whether you installed KDE correctly.
 
32260
" >&5
 
32261
echo "$as_me: error: The important program kconfig_compiler was not found!
 
32262
Please check whether you installed KDE correctly.
 
32263
" >&2;}
 
32264
   { (exit 1); exit 1; }; }
 
32265
 
 
32266
   else
 
32267
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32268
echo "${ECHO_T}$kde_cv_path" >&6; }
 
32269
      KCONFIG_COMPILER=$kde_cv_path
 
32270
 
 
32271
   fi
 
32272
 
 
32273
            
 
32274
   { echo "$as_me:$LINENO: checking for dcopidlng" >&5
 
32275
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6; }
 
32276
   if test -n "$DCOPIDLNG"; then
 
32277
        kde_cv_path="$DCOPIDLNG";
 
32278
   else
 
32279
        kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
 
32280
 
 
32281
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
32282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32283
else
 
32284
  
 
32285
        kde_cv_path="NONE"
 
32286
        kde_save_IFS=$IFS
 
32287
        IFS=':'
 
32288
        dirs=""
 
32289
        for dir in $PATH; do
 
32290
          dirs="$dirs $dir"
 
32291
        done
 
32292
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
32293
        else      dirs="$dirs $kde_default_bindirs"
 
32294
        fi
 
32295
        IFS=$kde_save_IFS
 
32296
 
 
32297
        for dir in $dirs; do
 
32298
          if test -x "$dir/dcopidlng"; then
 
32299
            if test -n ""
 
32300
            then
 
32301
              evalstr="$dir/dcopidlng  2>&1 "
 
32302
              if eval $evalstr; then
 
32303
                kde_cv_path="$dir/dcopidlng"
 
32304
                break
 
32305
              fi
 
32306
            else
 
32307
                kde_cv_path="$dir/dcopidlng"
 
32308
                break
 
32309
            fi
 
32310
          fi
 
32311
        done
 
32312
 
 
32313
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32314
 
 
32315
        
 
32316
fi
 
32317
 
 
32318
 
 
32319
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32320
 
 
32321
   fi
 
32322
 
 
32323
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32324
      { echo "$as_me:$LINENO: result: not found" >&5
 
32325
echo "${ECHO_T}not found" >&6; }
 
32326
      
 
32327
    { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
 
32328
Please check whether you installed KDE correctly.
 
32329
" >&5
 
32330
echo "$as_me: error: The important program dcopidlng was not found!
 
32331
Please check whether you installed KDE correctly.
 
32332
" >&2;}
 
32333
   { (exit 1); exit 1; }; }
 
32334
 
 
32335
   else
 
32336
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32337
echo "${ECHO_T}$kde_cv_path" >&6; }
 
32338
      DCOPIDLNG=$kde_cv_path
 
32339
 
 
32340
   fi
 
32341
 
 
32342
        fi
 
32343
        if test -n "$kde33ornewer"; then
 
32344
            
 
32345
   { echo "$as_me:$LINENO: checking for makekdewidgets" >&5
 
32346
echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6; }
 
32347
   if test -n "$MAKEKDEWIDGETS"; then
 
32348
        kde_cv_path="$MAKEKDEWIDGETS";
 
32349
   else
 
32350
        kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
 
32351
 
 
32352
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
32353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32354
else
 
32355
  
 
32356
        kde_cv_path="NONE"
 
32357
        kde_save_IFS=$IFS
 
32358
        IFS=':'
 
32359
        dirs=""
 
32360
        for dir in $PATH; do
 
32361
          dirs="$dirs $dir"
 
32362
        done
 
32363
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
32364
        else      dirs="$dirs $kde_default_bindirs"
 
32365
        fi
 
32366
        IFS=$kde_save_IFS
 
32367
 
 
32368
        for dir in $dirs; do
 
32369
          if test -x "$dir/makekdewidgets"; then
 
32370
            if test -n ""
 
32371
            then
 
32372
              evalstr="$dir/makekdewidgets  2>&1 "
 
32373
              if eval $evalstr; then
 
32374
                kde_cv_path="$dir/makekdewidgets"
 
32375
                break
 
32376
              fi
 
32377
            else
 
32378
                kde_cv_path="$dir/makekdewidgets"
 
32379
                break
 
32380
            fi
 
32381
          fi
 
32382
        done
 
32383
 
 
32384
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32385
 
 
32386
        
 
32387
fi
 
32388
 
 
32389
 
 
32390
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32391
 
 
32392
   fi
 
32393
 
 
32394
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32395
      { echo "$as_me:$LINENO: result: not found" >&5
 
32396
echo "${ECHO_T}not found" >&6; }
 
32397
      
 
32398
    { { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
 
32399
Please check whether you installed KDE correctly.
 
32400
" >&5
 
32401
echo "$as_me: error: The important program makekdewidgets was not found!
 
32402
Please check whether you installed KDE correctly.
 
32403
" >&2;}
 
32404
   { (exit 1); exit 1; }; }
 
32405
 
 
32406
   else
 
32407
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32408
echo "${ECHO_T}$kde_cv_path" >&6; }
 
32409
      MAKEKDEWIDGETS=$kde_cv_path
 
32410
 
 
32411
   fi
 
32412
 
 
32413
            
 
32414
        fi
 
32415
        
 
32416
   { echo "$as_me:$LINENO: checking for xmllint" >&5
 
32417
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6; }
 
32418
   if test -n "$XMLLINT"; then
 
32419
        kde_cv_path="$XMLLINT";
 
32420
   else
 
32421
        kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
 
32422
 
 
32423
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
 
32424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32425
else
 
32426
  
 
32427
        kde_cv_path="NONE"
 
32428
        kde_save_IFS=$IFS
 
32429
        IFS=':'
 
32430
        dirs=""
 
32431
        for dir in $PATH; do
 
32432
          dirs="$dirs $dir"
 
32433
        done
 
32434
        if test -z ""; then       dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
 
32435
        else      dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
 
32436
        fi
 
32437
        IFS=$kde_save_IFS
 
32438
 
 
32439
        for dir in $dirs; do
 
32440
          if test -x "$dir/xmllint"; then
 
32441
            if test -n ""
 
32442
            then
 
32443
              evalstr="$dir/xmllint  2>&1 "
 
32444
              if eval $evalstr; then
 
32445
                kde_cv_path="$dir/xmllint"
 
32446
                break
 
32447
              fi
 
32448
            else
 
32449
                kde_cv_path="$dir/xmllint"
 
32450
                break
 
32451
            fi
 
32452
          fi
 
32453
        done
 
32454
 
 
32455
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
32456
 
 
32457
        
 
32458
fi
 
32459
 
 
32460
 
 
32461
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
32462
 
 
32463
   fi
 
32464
 
 
32465
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
32466
      { echo "$as_me:$LINENO: result: not found" >&5
 
32467
echo "${ECHO_T}not found" >&6; }
 
32468
      XMLLINT=""
 
32469
   else
 
32470
      { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
32471
echo "${ECHO_T}$kde_cv_path" >&6; }
 
32472
      XMLLINT=$kde_cv_path
 
32473
 
 
32474
   fi
 
32475
 
 
32476
 
 
32477
        if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
 
32478
            kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
 
32479
            test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
 
32480
            
 
32481
KDE_XSL_STYLESHEET=NO
 
32482
for i in $kde_sharedirs;
 
32483
do
 
32484
  for j in apps/ksgmltools2/customization/kde-chunk.xsl;
 
32485
  do
 
32486
    echo "configure: __oline__: $i/$j" >&5
 
32487
    if test -r "$i/$j"; then
 
32488
      echo "taking that" >&5
 
32489
      KDE_XSL_STYLESHEET=$i
 
32490
      break 2
 
32491
    fi
 
32492
  done
 
32493
done
 
32494
 
 
32495
            if test "$KDE_XSL_STYLESHEET" = "NO"; then
 
32496
                KDE_XSL_STYLESHEET=""
 
32497
            else
 
32498
                KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
 
32499
            fi
 
32500
        fi
 
32501
 
 
32502
        DCOP_DEPENDENCIES='$(DCOPIDL)'
 
32503
        if test -n "$kde32ornewer"; then
 
32504
            KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
 
32505
            DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
 
32506
            
 
32507
            
 
32508
            
 
32509
        fi
 
32510
        
 
32511
        
 
32512
        
 
32513
        
 
32514
        
 
32515
        
 
32516
        
 
32517
        
 
32518
 
 
32519
 
 
32520
 
 
32521
 
 
32522
  
 
32523
 
 
32524
 
 
32525
 
 
32526
 
 
32527
 
 
32528
 
 
32529
 
 
32530
 
 
32531
 
 
32532
 
 
32533
 
 
32534
 
 
32535
 
 
32536
 
 
32537
 
 
32538
 
 
32539
 
 
32540
 
 
32541
kdeinitdir='$(kde_moduledir)'
 
32542
 
 
32543
 
 
32544
 
 
32545
if test "$kde_qtver" = 1; then
 
32546
  kde_minidir="$kde_icondir/mini"
 
32547
else
 
32548
# for KDE 1 - this breaks KDE2 apps using minidir, but
 
32549
# that's the plan ;-/
 
32550
  kde_minidir="/dev/null"
 
32551
fi
 
32552
 
 
32553
  
 
32554
   
 
32555
   
 
32556
   
 
32557
 
 
32558
if test $kde_qtver = 3; then
 
32559
   LIB_KDECORE="-lkdecore"
 
32560
 
 
32561
   LIB_KDEUI="-lkdeui"
 
32562
 
 
32563
   LIB_KIO="-lkio"
 
32564
 
 
32565
   LIB_KJS="-lkjs"
 
32566
 
 
32567
   LIB_SMB="-lsmb"
 
32568
 
 
32569
   LIB_KAB="-lkab"
 
32570
 
 
32571
   LIB_KABC="-lkabc"
 
32572
 
 
32573
   LIB_KHTML="-lkhtml"
 
32574
 
 
32575
   LIB_KSPELL="-lkspell"
 
32576
 
 
32577
   LIB_KPARTS="-lkparts"
 
32578
 
 
32579
   LIB_KDEPRINT="-lkdeprint"
 
32580
 
 
32581
   LIB_KUTILS="-lkutils"
 
32582
 
 
32583
   LIB_KDEPIM="-lkdepim"
 
32584
 
 
32585
   LIB_KIMPROXY="-lkimproxy"
 
32586
 
 
32587
   LIB_KNEWSTUFF="-lknewstuff"
 
32588
 
 
32589
   LIB_KDNSSD="-lkdnssd"
 
32590
 
 
32591
   LIB_KUNITTEST="-lkunittest"
 
32592
 
 
32593
# these are for backward compatibility
 
32594
   LIB_KSYCOCA="-lkio"
 
32595
 
 
32596
   LIB_KFILE="-lkio"
 
32597
 
 
32598
elif test $kde_qtver = 2; then
 
32599
   LIB_KDECORE="-lkdecore"
 
32600
 
 
32601
   LIB_KDEUI="-lkdeui"
 
32602
 
 
32603
   LIB_KIO="-lkio"
 
32604
 
 
32605
   LIB_KSYCOCA="-lksycoca"
 
32606
 
 
32607
   LIB_SMB="-lsmb"
 
32608
 
 
32609
   LIB_KFILE="-lkfile"
 
32610
 
 
32611
   LIB_KAB="-lkab"
 
32612
 
 
32613
   LIB_KHTML="-lkhtml"
 
32614
 
 
32615
   LIB_KSPELL="-lkspell"
 
32616
 
 
32617
   LIB_KPARTS="-lkparts"
 
32618
 
 
32619
   LIB_KDEPRINT="-lkdeprint"
 
32620
 
 
32621
else
 
32622
   LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
 
32623
 
 
32624
   LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
 
32625
 
 
32626
   LIB_KFM="-lkfm $(LIB_KDECORE)"
 
32627
 
 
32628
   LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
 
32629
 
 
32630
   LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
 
32631
 
 
32632
fi
 
32633
 
 
32634
 
 
32635
 
 
32636
#MIN_CONFIG(3.2.0)
 
32637
 
 
32638
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
32639
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
32640
if test "${ac_cv_c_bigendian+set}" = set; then
 
32641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32642
else
 
32643
  # See if sys/param.h defines the BYTE_ORDER macro.
 
32644
cat >conftest.$ac_ext <<_ACEOF
 
32645
/* confdefs.h.  */
 
32646
_ACEOF
 
32647
cat confdefs.h >>conftest.$ac_ext
 
32648
cat >>conftest.$ac_ext <<_ACEOF
 
32649
/* end confdefs.h.  */
 
32650
#include <sys/types.h>
 
32651
#include <sys/param.h>
 
32652
 
 
32653
int
 
32654
main ()
 
32655
{
 
32656
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
32657
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
32658
 bogus endian macros
 
32659
#endif
 
32660
 
 
32661
  ;
 
32662
  return 0;
 
32663
}
 
32664
_ACEOF
 
32665
rm -f conftest.$ac_objext
 
32666
if { (ac_try="$ac_compile"
 
32667
case "(($ac_try" in
 
32668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32669
  *) ac_try_echo=$ac_try;;
 
32670
esac
 
32671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32672
  (eval "$ac_compile") 2>conftest.er1
 
32673
  ac_status=$?
 
32674
  grep -v '^ *+' conftest.er1 >conftest.err
 
32675
  rm -f conftest.er1
 
32676
  cat conftest.err >&5
 
32677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32678
  (exit $ac_status); } && {
 
32679
         test -z "$ac_c_werror_flag" ||
 
32680
         test ! -s conftest.err
 
32681
       } && test -s conftest.$ac_objext; then
 
32682
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
32683
cat >conftest.$ac_ext <<_ACEOF
 
32684
/* confdefs.h.  */
 
32685
_ACEOF
 
32686
cat confdefs.h >>conftest.$ac_ext
 
32687
cat >>conftest.$ac_ext <<_ACEOF
 
32688
/* end confdefs.h.  */
 
32689
#include <sys/types.h>
 
32690
#include <sys/param.h>
 
32691
 
 
32692
int
 
32693
main ()
 
32694
{
 
32695
#if BYTE_ORDER != BIG_ENDIAN
 
32696
 not big endian
 
32697
#endif
 
32698
 
 
32699
  ;
 
32700
  return 0;
 
32701
}
 
32702
_ACEOF
 
32703
rm -f conftest.$ac_objext
 
32704
if { (ac_try="$ac_compile"
 
32705
case "(($ac_try" in
 
32706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32707
  *) ac_try_echo=$ac_try;;
 
32708
esac
 
32709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32710
  (eval "$ac_compile") 2>conftest.er1
 
32711
  ac_status=$?
 
32712
  grep -v '^ *+' conftest.er1 >conftest.err
 
32713
  rm -f conftest.er1
 
32714
  cat conftest.err >&5
 
32715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32716
  (exit $ac_status); } && {
 
32717
         test -z "$ac_c_werror_flag" ||
 
32718
         test ! -s conftest.err
 
32719
       } && test -s conftest.$ac_objext; then
 
32720
  ac_cv_c_bigendian=yes
 
32721
else
 
32722
  echo "$as_me: failed program was:" >&5
 
32723
sed 's/^/| /' conftest.$ac_ext >&5
 
32724
 
 
32725
        ac_cv_c_bigendian=no
 
32726
fi
 
32727
 
 
32728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32729
else
 
32730
  echo "$as_me: failed program was:" >&5
 
32731
sed 's/^/| /' conftest.$ac_ext >&5
 
32732
 
 
32733
        # It does not; compile a test program.
 
32734
if test "$cross_compiling" = yes; then
 
32735
  # try to guess the endianness by grepping values into an object file
 
32736
  ac_cv_c_bigendian=unknown
 
32737
  cat >conftest.$ac_ext <<_ACEOF
 
32738
/* confdefs.h.  */
 
32739
_ACEOF
 
32740
cat confdefs.h >>conftest.$ac_ext
 
32741
cat >>conftest.$ac_ext <<_ACEOF
 
32742
/* end confdefs.h.  */
 
32743
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
32744
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
32745
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
32746
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
32747
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
32748
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
32749
int
 
32750
main ()
 
32751
{
 
32752
 _ascii (); _ebcdic (); 
 
32753
  ;
 
32754
  return 0;
 
32755
}
 
32756
_ACEOF
 
32757
rm -f conftest.$ac_objext
 
32758
if { (ac_try="$ac_compile"
 
32759
case "(($ac_try" in
 
32760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32761
  *) ac_try_echo=$ac_try;;
 
32762
esac
 
32763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32764
  (eval "$ac_compile") 2>conftest.er1
 
32765
  ac_status=$?
 
32766
  grep -v '^ *+' conftest.er1 >conftest.err
 
32767
  rm -f conftest.er1
 
32768
  cat conftest.err >&5
 
32769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32770
  (exit $ac_status); } && {
 
32771
         test -z "$ac_c_werror_flag" ||
 
32772
         test ! -s conftest.err
 
32773
       } && test -s conftest.$ac_objext; then
 
32774
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
32775
  ac_cv_c_bigendian=yes
 
32776
fi
 
32777
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
32778
  if test "$ac_cv_c_bigendian" = unknown; then
 
32779
    ac_cv_c_bigendian=no
 
32780
  else
 
32781
    # finding both strings is unlikely to happen, but who knows?
 
32782
    ac_cv_c_bigendian=unknown
 
32783
  fi
 
32784
fi
 
32785
else
 
32786
  echo "$as_me: failed program was:" >&5
 
32787
sed 's/^/| /' conftest.$ac_ext >&5
 
32788
 
 
32789
        
 
32790
fi
 
32791
 
 
32792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32793
else
 
32794
  cat >conftest.$ac_ext <<_ACEOF
 
32795
/* confdefs.h.  */
 
32796
_ACEOF
 
32797
cat confdefs.h >>conftest.$ac_ext
 
32798
cat >>conftest.$ac_ext <<_ACEOF
 
32799
/* end confdefs.h.  */
 
32800
$ac_includes_default
 
32801
int
 
32802
main ()
 
32803
{
 
32804
 
 
32805
  /* Are we little or big endian?  From Harbison&Steele.  */
 
32806
  union
 
32807
  {
 
32808
    long int l;
 
32809
    char c[sizeof (long int)];
 
32810
  } u;
 
32811
  u.l = 1;
 
32812
  return u.c[sizeof (long int) - 1] == 1;
 
32813
 
 
32814
  ;
 
32815
  return 0;
 
32816
}
 
32817
_ACEOF
 
32818
rm -f conftest$ac_exeext
 
32819
if { (ac_try="$ac_link"
 
32820
case "(($ac_try" in
 
32821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32822
  *) ac_try_echo=$ac_try;;
 
32823
esac
 
32824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32825
  (eval "$ac_link") 2>&5
 
32826
  ac_status=$?
 
32827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32828
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32829
  { (case "(($ac_try" in
 
32830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32831
  *) ac_try_echo=$ac_try;;
 
32832
esac
 
32833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32834
  (eval "$ac_try") 2>&5
 
32835
  ac_status=$?
 
32836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32837
  (exit $ac_status); }; }; then
 
32838
  ac_cv_c_bigendian=no
 
32839
else
 
32840
  echo "$as_me: program exited with status $ac_status" >&5
 
32841
echo "$as_me: failed program was:" >&5
 
32842
sed 's/^/| /' conftest.$ac_ext >&5
 
32843
 
 
32844
( exit $ac_status )
 
32845
ac_cv_c_bigendian=yes
 
32846
fi
 
32847
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32848
fi
 
32849
 
 
32850
 
 
32851
fi
 
32852
 
 
32853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32854
fi
 
32855
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
32856
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
32857
case $ac_cv_c_bigendian in
 
32858
  yes)
 
32859
    
 
32860
cat >>confdefs.h <<\_ACEOF
 
32861
@%:@define WORDS_BIGENDIAN 1
 
32862
_ACEOF
 
32863
 ;;
 
32864
  no)
 
32865
     ;;
 
32866
  *)
 
32867
    { { echo "$as_me:$LINENO: error: unknown endianness
 
32868
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
32869
echo "$as_me: error: unknown endianness
 
32870
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
32871
   { (exit 1); exit 1; }; } ;;
 
32872
esac
 
32873
 
 
32874
 
 
32875
{ echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
 
32876
echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6; }
 
32877
if test "${ac_cv_maxpathlen+set}" = set; then
 
32878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32879
else
 
32880
  
 
32881
cat > conftest.$ac_ext <<EOF
 
32882
#ifdef STDC_HEADERS
 
32883
# include <stdlib.h>
 
32884
#endif
 
32885
#include <stdio.h>
 
32886
#include <sys/param.h>
 
32887
#ifndef MAXPATHLEN
 
32888
#define MAXPATHLEN 1024
 
32889
#endif
 
32890
 
 
32891
KDE_HELLO MAXPATHLEN
 
32892
 
 
32893
EOF
 
32894
 
 
32895
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
 
32896
 
 
32897
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32898
  (eval $ac_try) 2>&5
 
32899
  ac_status=$?
 
32900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32901
  (exit $ac_status); } && test -s conftest.out; then
 
32902
    ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
 
32903
else
 
32904
    ac_cv_maxpathlen=1024
 
32905
fi
 
32906
 
 
32907
rm conftest.*
 
32908
 
 
32909
 
 
32910
fi
 
32911
 
 
32912
{ echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
 
32913
echo "${ECHO_T}$ac_cv_maxpathlen" >&6; }
 
32914
 
 
32915
cat >>confdefs.h <<_ACEOF
 
32916
@%:@define KDEMAXPATHLEN $ac_cv_maxpathlen
 
32917
_ACEOF
 
32918
 
 
32919
 
 
32920
 
 
32921
 
 
32922
 
 
32923
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
 
32924
TOPSUBDIRS=""
 
32925
 
 
32926
if test ! -s $srcdir/subdirs; then
 
32927
    files=`cd $srcdir && ls -1`
 
32928
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
 
32929
  for i in $dirs; do
 
32930
    echo $i >> $srcdir/subdirs
 
32931
  done
 
32932
fi
 
32933
 
 
32934
ac_topsubdirs=
 
32935
if test -s $srcdir/inst-apps; then
 
32936
  ac_topsubdirs="`cat $srcdir/inst-apps`"
 
32937
elif test -s $srcdir/subdirs; then
 
32938
  ac_topsubdirs="`cat $srcdir/subdirs`"
 
32939
fi
 
32940
 
 
32941
for i in $ac_topsubdirs; do
 
32942
  { echo "$as_me:$LINENO: checking if $i should be compiled" >&5
 
32943
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6; }
 
32944
  if test -d $srcdir/$i; then
 
32945
    install_it="yes"
 
32946
    for j in $DO_NOT_COMPILE; do
 
32947
      if test $i = $j; then
 
32948
        install_it="no"
 
32949
      fi
 
32950
    done
 
32951
  else
 
32952
    install_it="no"
 
32953
  fi
 
32954
  { echo "$as_me:$LINENO: result: $install_it" >&5
 
32955
echo "${ECHO_T}$install_it" >&6; }
 
32956
  vari=`echo $i | sed -e 's,[-+.@],_,g'`
 
32957
  if test $install_it = "yes"; then
 
32958
    TOPSUBDIRS="$TOPSUBDIRS $i"
 
32959
    eval "$vari""_SUBDIR_included=yes"
 
32960
  else
 
32961
    eval "$vari""_SUBDIR_included=no"
 
32962
  fi
 
32963
done
 
32964
 
 
32965
 
 
32966
 
 
32967
ac_config_files="$ac_config_files Makefile"
 
32968
 
 
32969
ac_config_files="$ac_config_files doc/Makefile"
 
32970
 
 
32971
ac_config_files="$ac_config_files doc/en/Makefile"
 
32972
 
 
32973
ac_config_files="$ac_config_files po/Makefile"
 
32974
 
 
32975
ac_config_files="$ac_config_files src/Makefile"
 
32976
 
 
32977
ac_config_files="$ac_config_files src/pics/Makefile"
 
32978
 
 
32979
ac_config_files="$ac_config_files src/pics/128x128/Makefile"
 
32980
 
 
32981
ac_config_files="$ac_config_files src/pics/16x16/Makefile"
 
32982
 
 
32983
ac_config_files="$ac_config_files src/pics/22x22/Makefile"
 
32984
 
 
32985
ac_config_files="$ac_config_files src/pics/32x32/Makefile"
 
32986
 
 
32987
ac_config_files="$ac_config_files src/pics/48x48/Makefile"
 
32988
 
 
32989
ac_config_files="$ac_config_files src/pics/64x64/Makefile"
 
32990
 
 
32991
ac_config_files="$ac_config_files src/servicemenus/Makefile"
 
32992
 
 
32993
cat >confcache <<\_ACEOF
 
32994
# This file is a shell script that caches the results of configure
 
32995
# tests run on this system so they can be shared between configure
 
32996
# scripts and configure runs, see configure's option --config-cache.
 
32997
# It is not useful on other systems.  If it contains results you don't
 
32998
# want to keep, you may remove or edit it.
 
32999
#
 
33000
# config.status only pays attention to the cache file if you give it
 
33001
# the --recheck option to rerun configure.
 
33002
#
 
33003
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
33004
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
33005
# following values.
 
33006
 
 
33007
_ACEOF
 
33008
 
 
33009
# The following way of writing the cache mishandles newlines in values,
 
33010
# but we know of no workaround that is simple, portable, and efficient.
 
33011
# So, we kill variables containing newlines.
 
33012
# Ultrix sh set writes to stderr and can't be redirected directly,
 
33013
# and sets the high bit in the cache file unless we assign to the vars.
 
33014
(
 
33015
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
33016
    eval ac_val=\$$ac_var
 
33017
    case $ac_val in #(
 
33018
    *${as_nl}*)
 
33019
      case $ac_var in #(
 
33020
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
33021
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
33022
      esac
 
33023
      case $ac_var in #(
 
33024
      _ | IFS | as_nl) ;; #(
 
33025
      *) $as_unset $ac_var ;;
 
33026
      esac ;;
 
33027
    esac
 
33028
  done
 
33029
 
 
33030
  (set) 2>&1 |
 
33031
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
33032
    *${as_nl}ac_space=\ *)
 
33033
      # `set' does not quote correctly, so add quotes (double-quote
 
33034
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
33035
      sed -n \
 
33036
        "s/'/'\\\\''/g;
 
33037
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
33038
      ;; #(
 
33039
    *)
 
33040
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
33041
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
33042
      ;;
 
33043
    esac |
 
33044
    sort
 
33045
) |
 
33046
  sed '
 
33047
     /^ac_cv_env_/b end
 
33048
     t clear
 
33049
     :clear
 
33050
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
33051
     t end
 
33052
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
33053
     :end' >>confcache
 
33054
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
33055
  if test -w "$cache_file"; then
 
33056
    test "x$cache_file" != "x/dev/null" &&
 
33057
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
33058
echo "$as_me: updating cache $cache_file" >&6;}
 
33059
    cat confcache >$cache_file
 
33060
  else
 
33061
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
33062
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
33063
  fi
 
33064
fi
 
33065
rm -f confcache
 
33066
 
 
33067
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
33068
# Let make expand exec_prefix.
 
33069
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
33070
 
 
33071
DEFS=-DHAVE_CONFIG_H
 
33072
 
 
33073
ac_libobjs=
 
33074
ac_ltlibobjs=
 
33075
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
33076
  # 1. Remove the extension, and $U if already installed.
 
33077
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
33078
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
33079
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
33080
  #    will be set to the directory where LIBOBJS objects are built.
 
33081
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
33082
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
33083
done
 
33084
LIB@&t@OBJS=$ac_libobjs
 
33085
 
 
33086
LTLIBOBJS=$ac_ltlibobjs
 
33087
 
 
33088
 
 
33089
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
33090
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
33091
Usually this means the macro was only invoked conditionally." >&5
 
33092
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
33093
Usually this means the macro was only invoked conditionally." >&2;}
 
33094
   { (exit 1); exit 1; }; }
 
33095
fi
 
33096
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
33097
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
33098
Usually this means the macro was only invoked conditionally." >&5
 
33099
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
33100
Usually this means the macro was only invoked conditionally." >&2;}
 
33101
   { (exit 1); exit 1; }; }
 
33102
fi
 
33103
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
33104
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
33105
Usually this means the macro was only invoked conditionally." >&5
 
33106
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
33107
Usually this means the macro was only invoked conditionally." >&2;}
 
33108
   { (exit 1); exit 1; }; }
 
33109
fi
 
33110
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
 
33111
  { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
 
33112
Usually this means the macro was only invoked conditionally." >&5
 
33113
echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
 
33114
Usually this means the macro was only invoked conditionally." >&2;}
 
33115
   { (exit 1); exit 1; }; }
 
33116
fi
 
33117
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
 
33118
  { { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
 
33119
Usually this means the macro was only invoked conditionally." >&5
 
33120
echo "$as_me: error: conditional \"include_x11\" was never defined.
 
33121
Usually this means the macro was only invoked conditionally." >&2;}
 
33122
   { (exit 1); exit 1; }; }
 
33123
fi
 
33124
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
 
33125
  { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
 
33126
Usually this means the macro was only invoked conditionally." >&5
 
33127
echo "$as_me: error: conditional \"include_ARTS\" was never defined.
 
33128
Usually this means the macro was only invoked conditionally." >&2;}
 
33129
   { (exit 1); exit 1; }; }
 
33130
fi
 
33131
 
 
33132
: ${CONFIG_STATUS=./config.status}
 
33133
ac_clean_files_save=$ac_clean_files
 
33134
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
33135
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
33136
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
33137
cat >$CONFIG_STATUS <<_ACEOF
 
33138
#! $SHELL
 
33139
# Generated by $as_me.
 
33140
# Run this file to recreate the current configuration.
 
33141
# Compiler output produced by configure, useful for debugging
 
33142
# configure, is in config.log if it exists.
 
33143
 
 
33144
debug=false
 
33145
ac_cs_recheck=false
 
33146
ac_cs_silent=false
 
33147
SHELL=\${CONFIG_SHELL-$SHELL}
 
33148
_ACEOF
 
33149
 
 
33150
cat >>$CONFIG_STATUS <<\_ACEOF
 
33151
## --------------------- ##
 
33152
## M4sh Initialization.  ##
 
33153
## --------------------- ##
 
33154
 
 
33155
# Be more Bourne compatible
 
33156
DUALCASE=1; export DUALCASE # for MKS sh
 
33157
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
33158
  emulate sh
 
33159
  NULLCMD=:
 
33160
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
33161
  # is contrary to our usage.  Disable this feature.
 
33162
  alias -g '${1+"$@"}'='"$@"'
 
33163
  setopt NO_GLOB_SUBST
 
33164
else
 
33165
  case `(set -o) 2>/dev/null` in
 
33166
  *posix*) set -o posix ;;
 
33167
esac
 
33168
 
 
33169
fi
 
33170
 
 
33171
 
 
33172
 
 
33173
 
 
33174
# PATH needs CR
 
33175
# Avoid depending upon Character Ranges.
 
33176
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
33177
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
33178
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
33179
as_cr_digits='0123456789'
 
33180
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
33181
 
 
33182
# The user is always right.
 
33183
if test "${PATH_SEPARATOR+set}" != set; then
 
33184
  echo "#! /bin/sh" >conf$$.sh
 
33185
  echo  "exit 0"   >>conf$$.sh
 
33186
  chmod +x conf$$.sh
 
33187
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
33188
    PATH_SEPARATOR=';'
 
33189
  else
 
33190
    PATH_SEPARATOR=:
 
33191
  fi
 
33192
  rm -f conf$$.sh
 
33193
fi
 
33194
 
 
33195
# Support unset when possible.
 
33196
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
33197
  as_unset=unset
 
33198
else
 
33199
  as_unset=false
 
33200
fi
 
33201
 
 
33202
 
 
33203
# IFS
 
33204
# We need space, tab and new line, in precisely that order.  Quoting is
 
33205
# there to prevent editors from complaining about space-tab.
 
33206
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
33207
# splitting by setting IFS to empty value.)
 
33208
as_nl='
 
33209
'
 
33210
IFS=" ""        $as_nl"
 
33211
 
 
33212
# Find who we are.  Look in the path if we contain no directory separator.
 
33213
case $0 in
 
33214
  *[\\/]* ) as_myself=$0 ;;
 
33215
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
33216
for as_dir in $PATH
 
33217
do
 
33218
  IFS=$as_save_IFS
 
33219
  test -z "$as_dir" && as_dir=.
 
33220
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
33221
done
 
33222
IFS=$as_save_IFS
 
33223
 
 
33224
     ;;
 
33225
esac
 
33226
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
33227
# in which case we are not to be found in the path.
 
33228
if test "x$as_myself" = x; then
 
33229
  as_myself=$0
 
33230
fi
 
33231
if test ! -f "$as_myself"; then
 
33232
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
33233
  { (exit 1); exit 1; }
 
33234
fi
 
33235
 
 
33236
# Work around bugs in pre-3.0 UWIN ksh.
 
33237
for as_var in ENV MAIL MAILPATH
 
33238
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
33239
done
 
33240
PS1='$ '
 
33241
PS2='> '
 
33242
PS4='+ '
 
33243
 
 
33244
# NLS nuisances.
 
33245
for as_var in \
 
33246
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
33247
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
33248
  LC_TELEPHONE LC_TIME
 
33249
do
 
33250
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
33251
    eval $as_var=C; export $as_var
 
33252
  else
 
33253
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
33254
  fi
 
33255
done
 
33256
 
 
33257
# Required to use basename.
 
33258
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
33259
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
33260
  as_expr=expr
 
33261
else
 
33262
  as_expr=false
 
33263
fi
 
33264
 
 
33265
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
33266
  as_basename=basename
 
33267
else
 
33268
  as_basename=false
 
33269
fi
 
33270
 
 
33271
 
 
33272
# Name of the executable.
 
33273
as_me=`$as_basename -- "$0" ||
 
33274
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
33275
         X"$0" : 'X\(//\)$' \| \
 
33276
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
33277
echo X/"$0" |
 
33278
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
33279
            s//\1/
 
33280
            q
 
33281
          }
 
33282
          /^X\/\(\/\/\)$/{
 
33283
            s//\1/
 
33284
            q
 
33285
          }
 
33286
          /^X\/\(\/\).*/{
 
33287
            s//\1/
 
33288
            q
 
33289
          }
 
33290
          s/.*/./; q'`
 
33291
 
 
33292
# CDPATH.
 
33293
$as_unset CDPATH
 
33294
 
 
33295
 
 
33296
 
 
33297
  as_lineno_1=$LINENO
 
33298
  as_lineno_2=$LINENO
 
33299
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
33300
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
33301
 
 
33302
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
33303
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
33304
  # line-number line after each line using $LINENO; the second 'sed'
 
33305
  # does the real work.  The second script uses 'N' to pair each
 
33306
  # line-number line with the line containing $LINENO, and appends
 
33307
  # trailing '-' during substitution so that $LINENO is not a special
 
33308
  # case at line end.
 
33309
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
33310
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
33311
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
33312
  sed -n '
 
33313
    p
 
33314
    /[$]LINENO/=
 
33315
  ' <$as_myself |
 
33316
    sed '
 
33317
      s/[$]LINENO.*/&-/
 
33318
      t lineno
 
33319
      b
 
33320
      :lineno
 
33321
      N
 
33322
      :loop
 
33323
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
33324
      t loop
 
33325
      s/-\n.*//
 
33326
    ' >$as_me.lineno &&
 
33327
  chmod +x "$as_me.lineno" ||
 
33328
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
33329
   { (exit 1); exit 1; }; }
 
33330
 
 
33331
  # Don't try to exec as it changes $[0], causing all sort of problems
 
33332
  # (the dirname of $[0] is not the place where we might find the
 
33333
  # original and so on.  Autoconf is especially sensitive to this).
 
33334
  . "./$as_me.lineno"
 
33335
  # Exit status is that of the last command.
 
33336
  exit
 
33337
}
 
33338
 
 
33339
 
 
33340
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
33341
  as_dirname=dirname
 
33342
else
 
33343
  as_dirname=false
 
33344
fi
 
33345
 
 
33346
ECHO_C= ECHO_N= ECHO_T=
 
33347
case `echo -n x` in
 
33348
-n*)
 
33349
  case `echo 'x\c'` in
 
33350
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
33351
  *)   ECHO_C='\c';;
 
33352
  esac;;
 
33353
*)
 
33354
  ECHO_N='-n';;
 
33355
esac
 
33356
 
 
33357
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
33358
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
33359
  as_expr=expr
 
33360
else
 
33361
  as_expr=false
 
33362
fi
 
33363
 
 
33364
rm -f conf$$ conf$$.exe conf$$.file
 
33365
if test -d conf$$.dir; then
 
33366
  rm -f conf$$.dir/conf$$.file
 
33367
else
 
33368
  rm -f conf$$.dir
 
33369
  mkdir conf$$.dir
 
33370
fi
 
33371
echo >conf$$.file
 
33372
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
33373
  as_ln_s='ln -s'
 
33374
  # ... but there are two gotchas:
 
33375
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
33376
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
33377
  # In both cases, we have to default to `cp -p'.
 
33378
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
33379
    as_ln_s='cp -p'
 
33380
elif ln conf$$.file conf$$ 2>/dev/null; then
 
33381
  as_ln_s=ln
 
33382
else
 
33383
  as_ln_s='cp -p'
 
33384
fi
 
33385
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
33386
rmdir conf$$.dir 2>/dev/null
 
33387
 
 
33388
if mkdir -p . 2>/dev/null; then
 
33389
  as_mkdir_p=:
 
33390
else
 
33391
  test -d ./-p && rmdir ./-p
 
33392
  as_mkdir_p=false
 
33393
fi
 
33394
 
 
33395
if test -x / >/dev/null 2>&1; then
 
33396
  as_test_x='test -x'
 
33397
else
 
33398
  if ls -dL / >/dev/null 2>&1; then
 
33399
    as_ls_L_option=L
 
33400
  else
 
33401
    as_ls_L_option=
 
33402
  fi
 
33403
  as_test_x='
 
33404
    eval sh -c '\''
 
33405
      if test -d "$1"; then
 
33406
        test -d "$1/.";
 
33407
      else
 
33408
        case $1 in
 
33409
        -*)set "./$1";;
 
33410
        esac;
 
33411
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
33412
        ???[sx]*):;;*)false;;esac;fi
 
33413
    '\'' sh
 
33414
  '
 
33415
fi
 
33416
as_executable_p=$as_test_x
 
33417
 
 
33418
# Sed expression to map a string onto a valid CPP name.
 
33419
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
33420
 
 
33421
# Sed expression to map a string onto a valid variable name.
 
33422
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
33423
 
 
33424
 
 
33425
exec 6>&1
 
33426
 
 
33427
# Save the log message, to keep $[0] and so on meaningful, and to
 
33428
# report actual input values of CONFIG_FILES etc. instead of their
 
33429
# values after options handling.
 
33430
ac_log="
 
33431
This file was extended by $as_me, which was
 
33432
generated by GNU Autoconf 2.61.  Invocation command line was
 
33433
 
 
33434
  CONFIG_FILES    = $CONFIG_FILES
 
33435
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
33436
  CONFIG_LINKS    = $CONFIG_LINKS
 
33437
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
33438
  $ $0 $@
 
33439
 
 
33440
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
33441
"
 
33442
 
 
33443
_ACEOF
 
33444
 
 
33445
cat >>$CONFIG_STATUS <<_ACEOF
 
33446
# Files that config.status was made for.
 
33447
config_files="$ac_config_files"
 
33448
config_headers="$ac_config_headers"
 
33449
config_commands="$ac_config_commands"
 
33450
 
 
33451
_ACEOF
 
33452
 
 
33453
cat >>$CONFIG_STATUS <<\_ACEOF
 
33454
ac_cs_usage="\
 
33455
\`$as_me' instantiates files from templates according to the
 
33456
current configuration.
 
33457
 
 
33458
Usage: $0 [OPTIONS] [FILE]...
 
33459
 
 
33460
  -h, --help       print this help, then exit
 
33461
  -V, --version    print version number and configuration settings, then exit
 
33462
  -q, --quiet      do not print progress messages
 
33463
  -d, --debug      don't remove temporary files
 
33464
      --recheck    update $as_me by reconfiguring in the same conditions
 
33465
  --file=FILE[:TEMPLATE]
 
33466
                   instantiate the configuration file FILE
 
33467
  --header=FILE[:TEMPLATE]
 
33468
                   instantiate the configuration header FILE
 
33469
 
 
33470
Configuration files:
 
33471
$config_files
 
33472
 
 
33473
Configuration headers:
 
33474
$config_headers
 
33475
 
 
33476
Configuration commands:
 
33477
$config_commands
 
33478
 
 
33479
Report bugs to <bug-autoconf@gnu.org>."
 
33480
 
 
33481
_ACEOF
 
33482
cat >>$CONFIG_STATUS <<_ACEOF
 
33483
ac_cs_version="\\
 
33484
config.status
 
33485
configured by $0, generated by GNU Autoconf 2.61,
 
33486
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
33487
 
 
33488
Copyright (C) 2006 Free Software Foundation, Inc.
 
33489
This config.status script is free software; the Free Software Foundation
 
33490
gives unlimited permission to copy, distribute and modify it."
 
33491
 
 
33492
ac_pwd='$ac_pwd'
 
33493
srcdir='$srcdir'
 
33494
INSTALL='$INSTALL'
 
33495
MKDIR_P='$MKDIR_P'
 
33496
_ACEOF
 
33497
 
 
33498
cat >>$CONFIG_STATUS <<\_ACEOF
 
33499
# If no file are specified by the user, then we need to provide default
 
33500
# value.  By we need to know if files were specified by the user.
 
33501
ac_need_defaults=:
 
33502
while test $# != 0
 
33503
do
 
33504
  case $1 in
 
33505
  --*=*)
 
33506
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
33507
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
33508
    ac_shift=:
 
33509
    ;;
 
33510
  *)
 
33511
    ac_option=$1
 
33512
    ac_optarg=$2
 
33513
    ac_shift=shift
 
33514
    ;;
 
33515
  esac
 
33516
 
 
33517
  case $ac_option in
 
33518
  # Handling of the options.
 
33519
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
33520
    ac_cs_recheck=: ;;
 
33521
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
33522
    echo "$ac_cs_version"; exit ;;
 
33523
  --debug | --debu | --deb | --de | --d | -d )
 
33524
    debug=: ;;
 
33525
  --file | --fil | --fi | --f )
 
33526
    $ac_shift
 
33527
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
33528
    ac_need_defaults=false;;
 
33529
  --header | --heade | --head | --hea )
 
33530
    $ac_shift
 
33531
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
33532
    ac_need_defaults=false;;
 
33533
  --he | --h)
 
33534
    # Conflict between --help and --header
 
33535
    { echo "$as_me: error: ambiguous option: $1
 
33536
Try \`$0 --help' for more information." >&2
 
33537
   { (exit 1); exit 1; }; };;
 
33538
  --help | --hel | -h )
 
33539
    echo "$ac_cs_usage"; exit ;;
 
33540
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
33541
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
33542
    ac_cs_silent=: ;;
 
33543
 
 
33544
  # This is an error.
 
33545
  -*) { echo "$as_me: error: unrecognized option: $1
 
33546
Try \`$0 --help' for more information." >&2
 
33547
   { (exit 1); exit 1; }; } ;;
 
33548
 
 
33549
  *) ac_config_targets="$ac_config_targets $1"
 
33550
     ac_need_defaults=false ;;
 
33551
 
 
33552
  esac
 
33553
  shift
 
33554
done
 
33555
 
 
33556
ac_configure_extra_args=
 
33557
 
 
33558
if $ac_cs_silent; then
 
33559
  exec 6>/dev/null
 
33560
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
33561
fi
 
33562
 
 
33563
_ACEOF
 
33564
cat >>$CONFIG_STATUS <<_ACEOF
 
33565
if \$ac_cs_recheck; then
 
33566
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
33567
  CONFIG_SHELL=$SHELL
 
33568
  export CONFIG_SHELL
 
33569
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
33570
fi
 
33571
 
 
33572
_ACEOF
 
33573
cat >>$CONFIG_STATUS <<\_ACEOF
 
33574
exec 5>>config.log
 
33575
{
 
33576
  echo
 
33577
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
33578
@%:@@%:@ Running $as_me. @%:@@%:@
 
33579
_ASBOX
 
33580
  echo "$ac_log"
 
33581
} >&5
 
33582
 
 
33583
_ACEOF
 
33584
cat >>$CONFIG_STATUS <<_ACEOF
 
33585
#
 
33586
# INIT-COMMANDS
 
33587
#
 
33588
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
33589
 
 
33590
_ACEOF
 
33591
 
 
33592
cat >>$CONFIG_STATUS <<\_ACEOF
 
33593
 
 
33594
# Handling of arguments.
 
33595
for ac_config_target in $ac_config_targets
 
33596
do
 
33597
  case $ac_config_target in
 
33598
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
33599
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
33600
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
33601
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
33602
    "doc/en/Makefile") CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
 
33603
    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
 
33604
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
33605
    "src/pics/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/Makefile" ;;
 
33606
    "src/pics/128x128/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/128x128/Makefile" ;;
 
33607
    "src/pics/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/16x16/Makefile" ;;
 
33608
    "src/pics/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/22x22/Makefile" ;;
 
33609
    "src/pics/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/32x32/Makefile" ;;
 
33610
    "src/pics/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/48x48/Makefile" ;;
 
33611
    "src/pics/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/64x64/Makefile" ;;
 
33612
    "src/servicemenus/Makefile") CONFIG_FILES="$CONFIG_FILES src/servicemenus/Makefile" ;;
 
33613
 
 
33614
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
33615
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
33616
   { (exit 1); exit 1; }; };;
 
33617
  esac
 
33618
done
 
33619
 
 
33620
 
 
33621
# If the user did not use the arguments to specify the items to instantiate,
 
33622
# then the envvar interface is used.  Set only those that are not.
 
33623
# We use the long form for the default assignment because of an extremely
 
33624
# bizarre bug on SunOS 4.1.3.
 
33625
if $ac_need_defaults; then
 
33626
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
33627
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
33628
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
33629
fi
 
33630
 
 
33631
# Have a temporary directory for convenience.  Make it in the build tree
 
33632
# simply because there is no reason against having it here, and in addition,
 
33633
# creating and moving files from /tmp can sometimes cause problems.
 
33634
# Hook for its removal unless debugging.
 
33635
# Note that there is a small window in which the directory will not be cleaned:
 
33636
# after its creation but before its name has been assigned to `$tmp'.
 
33637
$debug ||
 
33638
{
 
33639
  tmp=
 
33640
  trap 'exit_status=$?
 
33641
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
33642
' 0
 
33643
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
33644
}
 
33645
# Create a (secure) tmp directory for tmp files.
 
33646
 
 
33647
{
 
33648
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
33649
  test -n "$tmp" && test -d "$tmp"
 
33650
}  ||
 
33651
{
 
33652
  tmp=./conf$$-$RANDOM
 
33653
  (umask 077 && mkdir "$tmp")
 
33654
} ||
 
33655
{
 
33656
   echo "$me: cannot create a temporary directory in ." >&2
 
33657
   { (exit 1); exit 1; }
 
33658
}
 
33659
 
 
33660
#
 
33661
# Set up the sed scripts for CONFIG_FILES section.
 
33662
#
 
33663
 
 
33664
# No need to generate the scripts if there are no CONFIG_FILES.
 
33665
# This happens for instance when ./config.status config.h
 
33666
if test -n "$CONFIG_FILES"; then
 
33667
 
 
33668
_ACEOF
 
33669
 
 
33670
 
 
33671
 
 
33672
ac_delim='%!_!# '
 
33673
for ac_last_try in false false false false false :; do
 
33674
  cat >conf$$subs.sed <<_ACEOF
 
33675
SHELL!$SHELL$ac_delim
 
33676
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
33677
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
33678
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
33679
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
33680
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
33681
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
33682
exec_prefix!$exec_prefix$ac_delim
 
33683
prefix!$prefix$ac_delim
 
33684
program_transform_name!$program_transform_name$ac_delim
 
33685
bindir!$bindir$ac_delim
 
33686
sbindir!$sbindir$ac_delim
 
33687
libexecdir!$libexecdir$ac_delim
 
33688
datarootdir!$datarootdir$ac_delim
 
33689
datadir!$datadir$ac_delim
 
33690
sysconfdir!$sysconfdir$ac_delim
 
33691
sharedstatedir!$sharedstatedir$ac_delim
 
33692
localstatedir!$localstatedir$ac_delim
 
33693
includedir!$includedir$ac_delim
 
33694
oldincludedir!$oldincludedir$ac_delim
 
33695
docdir!$docdir$ac_delim
 
33696
infodir!$infodir$ac_delim
 
33697
htmldir!$htmldir$ac_delim
 
33698
dvidir!$dvidir$ac_delim
 
33699
pdfdir!$pdfdir$ac_delim
 
33700
psdir!$psdir$ac_delim
 
33701
libdir!$libdir$ac_delim
 
33702
localedir!$localedir$ac_delim
 
33703
mandir!$mandir$ac_delim
 
33704
DEFS!$DEFS$ac_delim
 
33705
ECHO_C!$ECHO_C$ac_delim
 
33706
ECHO_N!$ECHO_N$ac_delim
 
33707
ECHO_T!$ECHO_T$ac_delim
 
33708
LIBS!$LIBS$ac_delim
 
33709
build_alias!$build_alias$ac_delim
 
33710
host_alias!$host_alias$ac_delim
 
33711
target_alias!$target_alias$ac_delim
 
33712
build!$build$ac_delim
 
33713
build_cpu!$build_cpu$ac_delim
 
33714
build_vendor!$build_vendor$ac_delim
 
33715
build_os!$build_os$ac_delim
 
33716
host!$host$ac_delim
 
33717
host_cpu!$host_cpu$ac_delim
 
33718
host_vendor!$host_vendor$ac_delim
 
33719
host_os!$host_os$ac_delim
 
33720
target!$target$ac_delim
 
33721
target_cpu!$target_cpu$ac_delim
 
33722
target_vendor!$target_vendor$ac_delim
 
33723
target_os!$target_os$ac_delim
 
33724
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
33725
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
33726
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
33727
am__isrc!$am__isrc$ac_delim
 
33728
CYGPATH_W!$CYGPATH_W$ac_delim
 
33729
PACKAGE!$PACKAGE$ac_delim
 
33730
VERSION!$VERSION$ac_delim
 
33731
ACLOCAL!$ACLOCAL$ac_delim
 
33732
AUTOCONF!$AUTOCONF$ac_delim
 
33733
AUTOMAKE!$AUTOMAKE$ac_delim
 
33734
AUTOHEADER!$AUTOHEADER$ac_delim
 
33735
MAKEINFO!$MAKEINFO$ac_delim
 
33736
install_sh!$install_sh$ac_delim
 
33737
STRIP!$STRIP$ac_delim
 
33738
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
33739
mkdir_p!$mkdir_p$ac_delim
 
33740
AWK!$AWK$ac_delim
 
33741
SET_MAKE!$SET_MAKE$ac_delim
 
33742
am__leading_dot!$am__leading_dot$ac_delim
 
33743
AMTAR!$AMTAR$ac_delim
 
33744
am__tar!$am__tar$ac_delim
 
33745
am__untar!$am__untar$ac_delim
 
33746
KDECONFIG!$KDECONFIG$ac_delim
 
33747
kde_libs_prefix!$kde_libs_prefix$ac_delim
 
33748
kde_libs_htmldir!$kde_libs_htmldir$ac_delim
 
33749
CONF_FILES!$CONF_FILES$ac_delim
 
33750
CC!$CC$ac_delim
 
33751
CFLAGS!$CFLAGS$ac_delim
 
33752
LDFLAGS!$LDFLAGS$ac_delim
 
33753
CPPFLAGS!$CPPFLAGS$ac_delim
 
33754
ac_ct_CC!$ac_ct_CC$ac_delim
 
33755
EXEEXT!$EXEEXT$ac_delim
 
33756
OBJEXT!$OBJEXT$ac_delim
 
33757
DEPDIR!$DEPDIR$ac_delim
 
33758
am__include!$am__include$ac_delim
 
33759
am__quote!$am__quote$ac_delim
 
33760
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
33761
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
33762
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
33763
CCDEPMODE!$CCDEPMODE$ac_delim
 
33764
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
33765
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
33766
CPP!$CPP$ac_delim
 
33767
CXX!$CXX$ac_delim
 
33768
CXXFLAGS!$CXXFLAGS$ac_delim
 
33769
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
33770
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
33771
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
33772
_ACEOF
 
33773
 
 
33774
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
33775
    break
 
33776
  elif $ac_last_try; then
 
33777
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
33778
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
33779
   { (exit 1); exit 1; }; }
 
33780
  else
 
33781
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
33782
  fi
 
33783
done
 
33784
 
 
33785
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
33786
if test -n "$ac_eof"; then
 
33787
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
33788
  ac_eof=`expr $ac_eof + 1`
 
33789
fi
 
33790
 
 
33791
cat >>$CONFIG_STATUS <<_ACEOF
 
33792
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
33793
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
33794
_ACEOF
 
33795
sed '
 
33796
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
33797
s/^/s,@/; s/!/@,|#_!!_#|/
 
33798
:n
 
33799
t n
 
33800
s/'"$ac_delim"'$/,g/; t
 
33801
s/$/\\/; p
 
33802
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
33803
' >>$CONFIG_STATUS <conf$$subs.sed
 
33804
rm -f conf$$subs.sed
 
33805
cat >>$CONFIG_STATUS <<_ACEOF
 
33806
CEOF$ac_eof
 
33807
_ACEOF
 
33808
 
 
33809
 
 
33810
ac_delim='%!_!# '
 
33811
for ac_last_try in false false false false false :; do
 
33812
  cat >conf$$subs.sed <<_ACEOF
 
33813
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
33814
WOVERLOADED_VIRTUAL!$WOVERLOADED_VIRTUAL$ac_delim
 
33815
HAVE_GCC_VISIBILITY!$HAVE_GCC_VISIBILITY$ac_delim
 
33816
unsermake_enable_pch_TRUE!$unsermake_enable_pch_TRUE$ac_delim
 
33817
unsermake_enable_pch_FALSE!$unsermake_enable_pch_FALSE$ac_delim
 
33818
USE_EXCEPTIONS!$USE_EXCEPTIONS$ac_delim
 
33819
USE_RTTI!$USE_RTTI$ac_delim
 
33820
CXXCPP!$CXXCPP$ac_delim
 
33821
NOOPT_CXXFLAGS!$NOOPT_CXXFLAGS$ac_delim
 
33822
NOOPT_CFLAGS!$NOOPT_CFLAGS$ac_delim
 
33823
ENABLE_PERMISSIVE_FLAG!$ENABLE_PERMISSIVE_FLAG$ac_delim
 
33824
LDFLAGS_AS_NEEDED!$LDFLAGS_AS_NEEDED$ac_delim
 
33825
LDFLAGS_NEW_DTAGS!$LDFLAGS_NEW_DTAGS$ac_delim
 
33826
KDE_USE_FINAL_TRUE!$KDE_USE_FINAL_TRUE$ac_delim
 
33827
KDE_USE_FINAL_FALSE!$KDE_USE_FINAL_FALSE$ac_delim
 
33828
KDE_USE_CLOSURE_TRUE!$KDE_USE_CLOSURE_TRUE$ac_delim
 
33829
KDE_USE_CLOSURE_FALSE!$KDE_USE_CLOSURE_FALSE$ac_delim
 
33830
KDE_NO_UNDEFINED!$KDE_NO_UNDEFINED$ac_delim
 
33831
KDE_USE_NMCHECK_TRUE!$KDE_USE_NMCHECK_TRUE$ac_delim
 
33832
KDE_USE_NMCHECK_FALSE!$KDE_USE_NMCHECK_FALSE$ac_delim
 
33833
GREP!$GREP$ac_delim
 
33834
EGREP!$EGREP$ac_delim
 
33835
LN_S!$LN_S$ac_delim
 
33836
ECHO!$ECHO$ac_delim
 
33837
AR!$AR$ac_delim
 
33838
RANLIB!$RANLIB$ac_delim
 
33839
F77!$F77$ac_delim
 
33840
FFLAGS!$FFLAGS$ac_delim
 
33841
ac_ct_F77!$ac_ct_F77$ac_delim
 
33842
LIBTOOL!$LIBTOOL$ac_delim
 
33843
KDE_PLUGIN!$KDE_PLUGIN$ac_delim
 
33844
MSGFMT!$MSGFMT$ac_delim
 
33845
GMSGFMT!$GMSGFMT$ac_delim
 
33846
XGETTEXT!$XGETTEXT$ac_delim
 
33847
LIBUTIL!$LIBUTIL$ac_delim
 
33848
LIBCOMPAT!$LIBCOMPAT$ac_delim
 
33849
LIBCRYPT!$LIBCRYPT$ac_delim
 
33850
LIBRESOLV!$LIBRESOLV$ac_delim
 
33851
LIB_POLL!$LIB_POLL$ac_delim
 
33852
FRAMEWORK_COREAUDIO!$FRAMEWORK_COREAUDIO$ac_delim
 
33853
LIBSOCKET!$LIBSOCKET$ac_delim
 
33854
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
 
33855
LIBUCB!$LIBUCB$ac_delim
 
33856
LIBDL!$LIBDL$ac_delim
 
33857
include_x11_TRUE!$include_x11_TRUE$ac_delim
 
33858
include_x11_FALSE!$include_x11_FALSE$ac_delim
 
33859
XMKMF!$XMKMF$ac_delim
 
33860
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
 
33861
LIB_X11!$LIB_X11$ac_delim
 
33862
LIB_XRENDER!$LIB_XRENDER$ac_delim
 
33863
LIBSM!$LIBSM$ac_delim
 
33864
X_INCLUDES!$X_INCLUDES$ac_delim
 
33865
X_LDFLAGS!$X_LDFLAGS$ac_delim
 
33866
x_includes!$x_includes$ac_delim
 
33867
x_libraries!$x_libraries$ac_delim
 
33868
QTE_NORTTI!$QTE_NORTTI$ac_delim
 
33869
LIB_XEXT!$LIB_XEXT$ac_delim
 
33870
LIBPTHREAD!$LIBPTHREAD$ac_delim
 
33871
USE_THREADS!$USE_THREADS$ac_delim
 
33872
KDE_MT_LDFLAGS!$KDE_MT_LDFLAGS$ac_delim
 
33873
KDE_MT_LIBS!$KDE_MT_LIBS$ac_delim
 
33874
USER_INCLUDES!$USER_INCLUDES$ac_delim
 
33875
USER_LDFLAGS!$USER_LDFLAGS$ac_delim
 
33876
LIBZ!$LIBZ$ac_delim
 
33877
LIBPNG!$LIBPNG$ac_delim
 
33878
LIBJPEG!$LIBJPEG$ac_delim
 
33879
qt_libraries!$qt_libraries$ac_delim
 
33880
qt_includes!$qt_includes$ac_delim
 
33881
QT_INCLUDES!$QT_INCLUDES$ac_delim
 
33882
QT_LDFLAGS!$QT_LDFLAGS$ac_delim
 
33883
PERL!$PERL$ac_delim
 
33884
MOC!$MOC$ac_delim
 
33885
UIC!$UIC$ac_delim
 
33886
UIC_TR!$UIC_TR$ac_delim
 
33887
LIB_QT!$LIB_QT$ac_delim
 
33888
LIB_QPE!$LIB_QPE$ac_delim
 
33889
kde_qtver!$kde_qtver$ac_delim
 
33890
KDE_EXTRA_RPATH!$KDE_EXTRA_RPATH$ac_delim
 
33891
KDE_RPATH!$KDE_RPATH$ac_delim
 
33892
X_RPATH!$X_RPATH$ac_delim
 
33893
kde_libraries!$kde_libraries$ac_delim
 
33894
kde_includes!$kde_includes$ac_delim
 
33895
KDE_LDFLAGS!$KDE_LDFLAGS$ac_delim
 
33896
KDE_INCLUDES!$KDE_INCLUDES$ac_delim
 
33897
all_includes!$all_includes$ac_delim
 
33898
all_libraries!$all_libraries$ac_delim
 
33899
AUTODIRS!$AUTODIRS$ac_delim
 
33900
include_ARTS_TRUE!$include_ARTS_TRUE$ac_delim
 
33901
include_ARTS_FALSE!$include_ARTS_FALSE$ac_delim
 
33902
MAKEKDEWIDGETS!$MAKEKDEWIDGETS$ac_delim
 
33903
KCONFIG_COMPILER!$KCONFIG_COMPILER$ac_delim
 
33904
KCFG_DEPENDENCIES!$KCFG_DEPENDENCIES$ac_delim
 
33905
DCOPIDLNG!$DCOPIDLNG$ac_delim
 
33906
DCOPIDL!$DCOPIDL$ac_delim
 
33907
DCOPIDL2CPP!$DCOPIDL2CPP$ac_delim
 
33908
DCOP_DEPENDENCIES!$DCOP_DEPENDENCIES$ac_delim
 
33909
MCOPIDL!$MCOPIDL$ac_delim
 
33910
_ACEOF
 
33911
 
 
33912
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
33913
    break
 
33914
  elif $ac_last_try; then
 
33915
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
33916
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
33917
   { (exit 1); exit 1; }; }
 
33918
  else
 
33919
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
33920
  fi
 
33921
done
 
33922
 
 
33923
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
33924
if test -n "$ac_eof"; then
 
33925
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
33926
  ac_eof=`expr $ac_eof + 1`
 
33927
fi
 
33928
 
 
33929
cat >>$CONFIG_STATUS <<_ACEOF
 
33930
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
33931
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
33932
_ACEOF
 
33933
sed '
 
33934
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
33935
s/^/s,@/; s/!/@,|#_!!_#|/
 
33936
:n
 
33937
t n
 
33938
s/'"$ac_delim"'$/,g/; t
 
33939
s/$/\\/; p
 
33940
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
33941
' >>$CONFIG_STATUS <conf$$subs.sed
 
33942
rm -f conf$$subs.sed
 
33943
cat >>$CONFIG_STATUS <<_ACEOF
 
33944
CEOF$ac_eof
 
33945
_ACEOF
 
33946
 
 
33947
 
 
33948
ac_delim='%!_!# '
 
33949
for ac_last_try in false false false false false :; do
 
33950
  cat >conf$$subs.sed <<_ACEOF
 
33951
ARTSCCONFIG!$ARTSCCONFIG$ac_delim
 
33952
MEINPROC!$MEINPROC$ac_delim
 
33953
KDE_XSL_STYLESHEET!$KDE_XSL_STYLESHEET$ac_delim
 
33954
XMLLINT!$XMLLINT$ac_delim
 
33955
kde_htmldir!$kde_htmldir$ac_delim
 
33956
kde_appsdir!$kde_appsdir$ac_delim
 
33957
kde_icondir!$kde_icondir$ac_delim
 
33958
kde_sounddir!$kde_sounddir$ac_delim
 
33959
kde_datadir!$kde_datadir$ac_delim
 
33960
kde_locale!$kde_locale$ac_delim
 
33961
kde_confdir!$kde_confdir$ac_delim
 
33962
kde_kcfgdir!$kde_kcfgdir$ac_delim
 
33963
kde_mimedir!$kde_mimedir$ac_delim
 
33964
kde_wallpaperdir!$kde_wallpaperdir$ac_delim
 
33965
kde_bindir!$kde_bindir$ac_delim
 
33966
xdg_appsdir!$xdg_appsdir$ac_delim
 
33967
xdg_menudir!$xdg_menudir$ac_delim
 
33968
xdg_directorydir!$xdg_directorydir$ac_delim
 
33969
kde_templatesdir!$kde_templatesdir$ac_delim
 
33970
kde_servicesdir!$kde_servicesdir$ac_delim
 
33971
kde_servicetypesdir!$kde_servicetypesdir$ac_delim
 
33972
kde_moduledir!$kde_moduledir$ac_delim
 
33973
kdeinitdir!$kdeinitdir$ac_delim
 
33974
kde_styledir!$kde_styledir$ac_delim
 
33975
kde_widgetdir!$kde_widgetdir$ac_delim
 
33976
LIB_KDECORE!$LIB_KDECORE$ac_delim
 
33977
LIB_KDEUI!$LIB_KDEUI$ac_delim
 
33978
LIB_KIO!$LIB_KIO$ac_delim
 
33979
LIB_KJS!$LIB_KJS$ac_delim
 
33980
LIB_SMB!$LIB_SMB$ac_delim
 
33981
LIB_KAB!$LIB_KAB$ac_delim
 
33982
LIB_KABC!$LIB_KABC$ac_delim
 
33983
LIB_KHTML!$LIB_KHTML$ac_delim
 
33984
LIB_KSPELL!$LIB_KSPELL$ac_delim
 
33985
LIB_KPARTS!$LIB_KPARTS$ac_delim
 
33986
LIB_KDEPRINT!$LIB_KDEPRINT$ac_delim
 
33987
LIB_KUTILS!$LIB_KUTILS$ac_delim
 
33988
LIB_KDEPIM!$LIB_KDEPIM$ac_delim
 
33989
LIB_KIMPROXY!$LIB_KIMPROXY$ac_delim
 
33990
LIB_KNEWSTUFF!$LIB_KNEWSTUFF$ac_delim
 
33991
LIB_KDNSSD!$LIB_KDNSSD$ac_delim
 
33992
LIB_KUNITTEST!$LIB_KUNITTEST$ac_delim
 
33993
LIB_KSYCOCA!$LIB_KSYCOCA$ac_delim
 
33994
LIB_KFILE!$LIB_KFILE$ac_delim
 
33995
LIB_KFM!$LIB_KFM$ac_delim
 
33996
TOPSUBDIRS!$TOPSUBDIRS$ac_delim
 
33997
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
 
33998
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
33999
_ACEOF
 
34000
 
 
34001
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
 
34002
    break
 
34003
  elif $ac_last_try; then
 
34004
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
34005
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
34006
   { (exit 1); exit 1; }; }
 
34007
  else
 
34008
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
34009
  fi
 
34010
done
 
34011
 
 
34012
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
34013
if test -n "$ac_eof"; then
 
34014
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
34015
  ac_eof=`expr $ac_eof + 1`
 
34016
fi
 
34017
 
 
34018
cat >>$CONFIG_STATUS <<_ACEOF
 
34019
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 
34020
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
34021
_ACEOF
 
34022
sed '
 
34023
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
34024
s/^/s,@/; s/!/@,|#_!!_#|/
 
34025
:n
 
34026
t n
 
34027
s/'"$ac_delim"'$/,g/; t
 
34028
s/$/\\/; p
 
34029
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
34030
' >>$CONFIG_STATUS <conf$$subs.sed
 
34031
rm -f conf$$subs.sed
 
34032
cat >>$CONFIG_STATUS <<_ACEOF
 
34033
:end
 
34034
s/|#_!!_#|//g
 
34035
CEOF$ac_eof
 
34036
_ACEOF
 
34037
 
 
34038
 
 
34039
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
34040
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
34041
# trailing colons and then remove the whole line if VPATH becomes empty
 
34042
# (actually we leave an empty line to preserve line numbers).
 
34043
if test "x$srcdir" = x.; then
 
34044
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
34045
s/:*\$(srcdir):*/:/
 
34046
s/:*\${srcdir}:*/:/
 
34047
s/:*@srcdir@:*/:/
 
34048
s/^\([^=]*=[     ]*\):*/\1/
 
34049
s/:*$//
 
34050
s/^[^=]*=[       ]*$//
 
34051
}'
 
34052
fi
 
34053
 
 
34054
cat >>$CONFIG_STATUS <<\_ACEOF
 
34055
fi # test -n "$CONFIG_FILES"
 
34056
 
 
34057
 
 
34058
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
34059
do
 
34060
  case $ac_tag in
 
34061
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
34062
  esac
 
34063
  case $ac_mode$ac_tag in
 
34064
  :[FHL]*:*);;
 
34065
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
34066
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
34067
   { (exit 1); exit 1; }; };;
 
34068
  :[FH]-) ac_tag=-:-;;
 
34069
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
34070
  esac
 
34071
  ac_save_IFS=$IFS
 
34072
  IFS=:
 
34073
  set x $ac_tag
 
34074
  IFS=$ac_save_IFS
 
34075
  shift
 
34076
  ac_file=$1
 
34077
  shift
 
34078
 
 
34079
  case $ac_mode in
 
34080
  :L) ac_source=$1;;
 
34081
  :[FH])
 
34082
    ac_file_inputs=
 
34083
    for ac_f
 
34084
    do
 
34085
      case $ac_f in
 
34086
      -) ac_f="$tmp/stdin";;
 
34087
      *) # Look for the file first in the build tree, then in the source tree
 
34088
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
34089
         # because $ac_f cannot contain `:'.
 
34090
         test -f "$ac_f" ||
 
34091
           case $ac_f in
 
34092
           [\\/$]*) false;;
 
34093
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
34094
           esac ||
 
34095
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
34096
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
34097
   { (exit 1); exit 1; }; };;
 
34098
      esac
 
34099
      ac_file_inputs="$ac_file_inputs $ac_f"
 
34100
    done
 
34101
 
 
34102
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
34103
    # use $as_me), people would be surprised to read:
 
34104
    #    /* config.h.  Generated by config.status.  */
 
34105
    configure_input="Generated from "`IFS=:
 
34106
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
34107
    if test x"$ac_file" != x-; then
 
34108
      configure_input="$ac_file.  $configure_input"
 
34109
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
34110
echo "$as_me: creating $ac_file" >&6;}
 
34111
    fi
 
34112
 
 
34113
    case $ac_tag in
 
34114
    *:-:* | *:-) cat >"$tmp/stdin";;
 
34115
    esac
 
34116
    ;;
 
34117
  esac
 
34118
 
 
34119
  ac_dir=`$as_dirname -- "$ac_file" ||
 
34120
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34121
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
34122
         X"$ac_file" : 'X\(//\)$' \| \
 
34123
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
34124
echo X"$ac_file" |
 
34125
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34126
            s//\1/
 
34127
            q
 
34128
          }
 
34129
          /^X\(\/\/\)[^/].*/{
 
34130
            s//\1/
 
34131
            q
 
34132
          }
 
34133
          /^X\(\/\/\)$/{
 
34134
            s//\1/
 
34135
            q
 
34136
          }
 
34137
          /^X\(\/\).*/{
 
34138
            s//\1/
 
34139
            q
 
34140
          }
 
34141
          s/.*/./; q'`
 
34142
  { as_dir="$ac_dir"
 
34143
  case $as_dir in #(
 
34144
  -*) as_dir=./$as_dir;;
 
34145
  esac
 
34146
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
34147
    as_dirs=
 
34148
    while :; do
 
34149
      case $as_dir in #(
 
34150
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
34151
      *) as_qdir=$as_dir;;
 
34152
      esac
 
34153
      as_dirs="'$as_qdir' $as_dirs"
 
34154
      as_dir=`$as_dirname -- "$as_dir" ||
 
34155
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34156
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34157
         X"$as_dir" : 'X\(//\)$' \| \
 
34158
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
34159
echo X"$as_dir" |
 
34160
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34161
            s//\1/
 
34162
            q
 
34163
          }
 
34164
          /^X\(\/\/\)[^/].*/{
 
34165
            s//\1/
 
34166
            q
 
34167
          }
 
34168
          /^X\(\/\/\)$/{
 
34169
            s//\1/
 
34170
            q
 
34171
          }
 
34172
          /^X\(\/\).*/{
 
34173
            s//\1/
 
34174
            q
 
34175
          }
 
34176
          s/.*/./; q'`
 
34177
      test -d "$as_dir" && break
 
34178
    done
 
34179
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
34180
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
34181
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
34182
   { (exit 1); exit 1; }; }; }
 
34183
  ac_builddir=.
 
34184
 
 
34185
case "$ac_dir" in
 
34186
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
34187
*)
 
34188
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
34189
  # A ".." for each directory in $ac_dir_suffix.
 
34190
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
34191
  case $ac_top_builddir_sub in
 
34192
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
34193
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
34194
  esac ;;
 
34195
esac
 
34196
ac_abs_top_builddir=$ac_pwd
 
34197
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
34198
# for backward compatibility:
 
34199
ac_top_builddir=$ac_top_build_prefix
 
34200
 
 
34201
case $srcdir in
 
34202
  .)  # We are building in place.
 
34203
    ac_srcdir=.
 
34204
    ac_top_srcdir=$ac_top_builddir_sub
 
34205
    ac_abs_top_srcdir=$ac_pwd ;;
 
34206
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
34207
    ac_srcdir=$srcdir$ac_dir_suffix;
 
34208
    ac_top_srcdir=$srcdir
 
34209
    ac_abs_top_srcdir=$srcdir ;;
 
34210
  *) # Relative name.
 
34211
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
34212
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
34213
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
34214
esac
 
34215
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
34216
 
 
34217
 
 
34218
  case $ac_mode in
 
34219
  :F)
 
34220
  #
 
34221
  # CONFIG_FILE
 
34222
  #
 
34223
 
 
34224
  case $INSTALL in
 
34225
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
34226
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
34227
  esac
 
34228
  ac_MKDIR_P=$MKDIR_P
 
34229
  case $MKDIR_P in
 
34230
  [\\/$]* | ?:[\\/]* ) ;;
 
34231
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
34232
  esac
 
34233
_ACEOF
 
34234
 
 
34235
cat >>$CONFIG_STATUS <<\_ACEOF
 
34236
# If the template does not know about datarootdir, expand it.
 
34237
# FIXME: This hack should be removed a few years after 2.60.
 
34238
ac_datarootdir_hack=; ac_datarootdir_seen=
 
34239
 
 
34240
case `sed -n '/datarootdir/ {
 
34241
  p
 
34242
  q
 
34243
}
 
34244
/@datadir@/p
 
34245
/@docdir@/p
 
34246
/@infodir@/p
 
34247
/@localedir@/p
 
34248
/@mandir@/p
 
34249
' $ac_file_inputs` in
 
34250
*datarootdir*) ac_datarootdir_seen=yes;;
 
34251
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
34252
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
34253
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
34254
_ACEOF
 
34255
cat >>$CONFIG_STATUS <<_ACEOF
 
34256
  ac_datarootdir_hack='
 
34257
  s&@datadir@&$datadir&g
 
34258
  s&@docdir@&$docdir&g
 
34259
  s&@infodir@&$infodir&g
 
34260
  s&@localedir@&$localedir&g
 
34261
  s&@mandir@&$mandir&g
 
34262
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
34263
esac
 
34264
_ACEOF
 
34265
 
 
34266
# Neutralize VPATH when `$srcdir' = `.'.
 
34267
# Shell code in configure.ac might set extrasub.
 
34268
# FIXME: do we really want to maintain this feature?
 
34269
cat >>$CONFIG_STATUS <<_ACEOF
 
34270
  sed "$ac_vpsub
 
34271
$extrasub
 
34272
_ACEOF
 
34273
cat >>$CONFIG_STATUS <<\_ACEOF
 
34274
:t
 
34275
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
34276
s&@configure_input@&$configure_input&;t t
 
34277
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
34278
s&@srcdir@&$ac_srcdir&;t t
 
34279
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
34280
s&@top_srcdir@&$ac_top_srcdir&;t t
 
34281
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
34282
s&@builddir@&$ac_builddir&;t t
 
34283
s&@abs_builddir@&$ac_abs_builddir&;t t
 
34284
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
34285
s&@INSTALL@&$ac_INSTALL&;t t
 
34286
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
34287
$ac_datarootdir_hack
 
34288
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 
34289
 
 
34290
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
34291
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
34292
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
34293
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
34294
which seems to be undefined.  Please make sure it is defined." >&5
 
34295
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
34296
which seems to be undefined.  Please make sure it is defined." >&2;}
 
34297
 
 
34298
  rm -f "$tmp/stdin"
 
34299
  case $ac_file in
 
34300
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
34301
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
34302
  esac
 
34303
 ;;
 
34304
  :H)
 
34305
  #
 
34306
  # CONFIG_HEADER
 
34307
  #
 
34308
_ACEOF
 
34309
 
 
34310
# Transform confdefs.h into a sed script `conftest.defines', that
 
34311
# substitutes the proper values into config.h.in to produce config.h.
 
34312
rm -f conftest.defines conftest.tail
 
34313
# First, append a space to every undef/define line, to ease matching.
 
34314
echo 's/$/ /' >conftest.defines
 
34315
# Then, protect against being on the right side of a sed subst, or in
 
34316
# an unquoted here document, in config.status.  If some macros were
 
34317
# called several times there might be several #defines for the same
 
34318
# symbol, which is useless.  But do not sort them, since the last
 
34319
# AC_DEFINE must be honored.
 
34320
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
34321
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
34322
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
34323
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
34324
# just an empty string.
 
34325
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
34326
ac_dB='\\)[      (].*,\\1define\\2'
 
34327
ac_dC=' '
 
34328
ac_dD=' ,'
 
34329
 
 
34330
uniq confdefs.h |
 
34331
  sed -n '
 
34332
        t rset
 
34333
        :rset
 
34334
        s/^[     ]*#[    ]*define[       ][      ]*//
 
34335
        t ok
 
34336
        d
 
34337
        :ok
 
34338
        s/[\\&,]/\\&/g
 
34339
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
34340
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
34341
  ' >>conftest.defines
 
34342
 
 
34343
# Remove the space that was appended to ease matching.
 
34344
# Then replace #undef with comments.  This is necessary, for
 
34345
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
34346
# on some systems where configure will not decide to define it.
 
34347
# (The regexp can be short, since the line contains either #define or #undef.)
 
34348
echo 's/ $//
 
34349
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
34350
 
 
34351
# Break up conftest.defines:
 
34352
ac_max_sed_lines=50
 
34353
 
 
34354
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
34355
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
34356
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
34357
# et cetera.
 
34358
ac_in='$ac_file_inputs'
 
34359
ac_out='"$tmp/out1"'
 
34360
ac_nxt='"$tmp/out2"'
 
34361
 
 
34362
while :
 
34363
do
 
34364
  # Write a here document:
 
34365
    cat >>$CONFIG_STATUS <<_ACEOF
 
34366
    # First, check the format of the line:
 
34367
    cat >"\$tmp/defines.sed" <<\\CEOF
 
34368
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
34369
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
34370
b
 
34371
:def
 
34372
_ACEOF
 
34373
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
34374
  echo 'CEOF
 
34375
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
34376
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
34377
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
34378
  grep . conftest.tail >/dev/null || break
 
34379
  rm -f conftest.defines
 
34380
  mv conftest.tail conftest.defines
 
34381
done
 
34382
rm -f conftest.defines conftest.tail
 
34383
 
 
34384
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
34385
cat >>$CONFIG_STATUS <<\_ACEOF
 
34386
  if test x"$ac_file" != x-; then
 
34387
    echo "/* $configure_input  */" >"$tmp/config.h"
 
34388
    cat "$ac_result" >>"$tmp/config.h"
 
34389
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
34390
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
34391
echo "$as_me: $ac_file is unchanged" >&6;}
 
34392
    else
 
34393
      rm -f $ac_file
 
34394
      mv "$tmp/config.h" $ac_file
 
34395
    fi
 
34396
  else
 
34397
    echo "/* $configure_input  */"
 
34398
    cat "$ac_result"
 
34399
  fi
 
34400
  rm -f "$tmp/out12"
 
34401
# Compute $ac_file's index in $config_headers.
 
34402
_am_stamp_count=1
 
34403
for _am_header in $config_headers :; do
 
34404
  case $_am_header in
 
34405
    $ac_file | $ac_file:* )
 
34406
      break ;;
 
34407
    * )
 
34408
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
34409
  esac
 
34410
done
 
34411
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
34412
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34413
         X$ac_file : 'X\(//\)[^/]' \| \
 
34414
         X$ac_file : 'X\(//\)$' \| \
 
34415
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
34416
echo X$ac_file |
 
34417
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34418
            s//\1/
 
34419
            q
 
34420
          }
 
34421
          /^X\(\/\/\)[^/].*/{
 
34422
            s//\1/
 
34423
            q
 
34424
          }
 
34425
          /^X\(\/\/\)$/{
 
34426
            s//\1/
 
34427
            q
 
34428
          }
 
34429
          /^X\(\/\).*/{
 
34430
            s//\1/
 
34431
            q
 
34432
          }
 
34433
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
34434
 ;;
 
34435
  
 
34436
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
34437
echo "$as_me: executing $ac_file commands" >&6;}
 
34438
 ;;
 
34439
  esac
 
34440
 
 
34441
 
 
34442
  case $ac_file$ac_mode in
 
34443
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
34444
  # Strip MF so we end up with the name of the file.
 
34445
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
34446
  # Check whether this is an Automake generated Makefile or not.
 
34447
  # We used to match only the files named `Makefile.in', but
 
34448
  # some people rename them; so instead we look at the file content.
 
34449
  # Grep'ing the first line is not enough: some people post-process
 
34450
  # each Makefile.in and add a new line on top of each file to say so.
 
34451
  # Grep'ing the whole file is not good either: AIX grep has a line
 
34452
  # limit of 2048, but all sed's we know have understand at least 4000.
 
34453
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
34454
    dirpart=`$as_dirname -- "$mf" ||
 
34455
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34456
         X"$mf" : 'X\(//\)[^/]' \| \
 
34457
         X"$mf" : 'X\(//\)$' \| \
 
34458
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
34459
echo X"$mf" |
 
34460
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34461
            s//\1/
 
34462
            q
 
34463
          }
 
34464
          /^X\(\/\/\)[^/].*/{
 
34465
            s//\1/
 
34466
            q
 
34467
          }
 
34468
          /^X\(\/\/\)$/{
 
34469
            s//\1/
 
34470
            q
 
34471
          }
 
34472
          /^X\(\/\).*/{
 
34473
            s//\1/
 
34474
            q
 
34475
          }
 
34476
          s/.*/./; q'`
 
34477
  else
 
34478
    continue
 
34479
  fi
 
34480
  # Extract the definition of DEPDIR, am__include, and am__quote
 
34481
  # from the Makefile without running `make'.
 
34482
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
34483
  test -z "$DEPDIR" && continue
 
34484
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
34485
  test -z "am__include" && continue
 
34486
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
34487
  # When using ansi2knr, U may be empty or an underscore; expand it
 
34488
  U=`sed -n 's/^U = //p' < "$mf"`
 
34489
  # Find all dependency output files, they are included files with
 
34490
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
34491
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
34492
  # expansion.
 
34493
  for file in `sed -n "
 
34494
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
34495
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
34496
    # Make sure the directory exists.
 
34497
    test -f "$dirpart/$file" && continue
 
34498
    fdir=`$as_dirname -- "$file" ||
 
34499
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34500
         X"$file" : 'X\(//\)[^/]' \| \
 
34501
         X"$file" : 'X\(//\)$' \| \
 
34502
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
34503
echo X"$file" |
 
34504
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34505
            s//\1/
 
34506
            q
 
34507
          }
 
34508
          /^X\(\/\/\)[^/].*/{
 
34509
            s//\1/
 
34510
            q
 
34511
          }
 
34512
          /^X\(\/\/\)$/{
 
34513
            s//\1/
 
34514
            q
 
34515
          }
 
34516
          /^X\(\/\).*/{
 
34517
            s//\1/
 
34518
            q
 
34519
          }
 
34520
          s/.*/./; q'`
 
34521
    { as_dir=$dirpart/$fdir
 
34522
  case $as_dir in #(
 
34523
  -*) as_dir=./$as_dir;;
 
34524
  esac
 
34525
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
34526
    as_dirs=
 
34527
    while :; do
 
34528
      case $as_dir in #(
 
34529
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
34530
      *) as_qdir=$as_dir;;
 
34531
      esac
 
34532
      as_dirs="'$as_qdir' $as_dirs"
 
34533
      as_dir=`$as_dirname -- "$as_dir" ||
 
34534
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34535
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34536
         X"$as_dir" : 'X\(//\)$' \| \
 
34537
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
34538
echo X"$as_dir" |
 
34539
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34540
            s//\1/
 
34541
            q
 
34542
          }
 
34543
          /^X\(\/\/\)[^/].*/{
 
34544
            s//\1/
 
34545
            q
 
34546
          }
 
34547
          /^X\(\/\/\)$/{
 
34548
            s//\1/
 
34549
            q
 
34550
          }
 
34551
          /^X\(\/\).*/{
 
34552
            s//\1/
 
34553
            q
 
34554
          }
 
34555
          s/.*/./; q'`
 
34556
      test -d "$as_dir" && break
 
34557
    done
 
34558
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
34559
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
34560
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
34561
   { (exit 1); exit 1; }; }; }
 
34562
    # echo "creating $dirpart/$file"
 
34563
    echo '# dummy' > "$dirpart/$file"
 
34564
  done
 
34565
done
 
34566
 ;;
 
34567
 
 
34568
  esac
 
34569
done # for ac_tag
 
34570
 
 
34571
 
 
34572
{ (exit 0); exit 0; }
 
34573
_ACEOF
 
34574
chmod +x $CONFIG_STATUS
 
34575
ac_clean_files=$ac_clean_files_save
 
34576
 
 
34577
 
 
34578
# configure is writing to config.log, and then calls config.status.
 
34579
# config.status does its own redirection, appending to config.log.
 
34580
# Unfortunately, on DOS this fails, as config.log is still kept open
 
34581
# by configure, so config.status won't be able to write to it; its
 
34582
# output is simply discarded.  So we exec the FD to /dev/null,
 
34583
# effectively closing config.log, so it can be properly (re)opened and
 
34584
# appended to by config.status.  When coming back to configure, we
 
34585
# need to make the FD available again.
 
34586
if test "$no_create" != yes; then
 
34587
  ac_cs_success=:
 
34588
  ac_config_status_args=
 
34589
  test "$silent" = yes &&
 
34590
    ac_config_status_args="$ac_config_status_args --quiet"
 
34591
  exec 5>/dev/null
 
34592
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
34593
  exec 5>>config.log
 
34594
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
34595
  # would make configure fail if this is the last instruction.
 
34596
  $ac_cs_success || { (exit 1); exit 1; }
 
34597
fi
 
34598
 
 
34599
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
 
34600
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
 
34601
  # And if so, warn when they don't match
 
34602
  if test "$kde_libs_prefix" != "$given_prefix"; then
 
34603
    # And if kde doesn't know about the prefix yet
 
34604
    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
 
34605
    if test $? -ne 0; then
 
34606
      echo ""
 
34607
      echo "Warning: you chose to install this package in $given_prefix,"
 
34608
      echo "but KDE was found in $kde_libs_prefix."
 
34609
      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
 
34610
      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
 
34611
      echo "Then restart KDE."
 
34612
      echo ""
 
34613
    fi
 
34614
  fi
 
34615
fi
 
34616
 
 
34617
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
 
34618
  echo ""
 
34619
  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
 
34620
  echo "was not included. Therefore, GCC symbol visibility support remains disabled."
 
34621
  echo ""
 
34622
  echo "For better performance, consider including the Qt visibility supporting patch"
 
34623
  echo "located at:"
 
34624
  echo ""
 
34625
  echo "http://bugs.kde.org/show_bug.cgi?id=109386"
 
34626
  echo ""
 
34627
  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
 
34628
  echo "everything will continue to work just fine without it."
 
34629
  echo ""
 
34630
fi
 
34631
 
 
34632
if test "$all_tests" = "bad"; then
 
34633
  if test ! "$cache_file" = "/dev/null"; then
 
34634
    echo ""
 
34635
    echo "Please remove the file $cache_file after changing your setup"
 
34636
    echo "so that configure will find the changes next time."
 
34637
    echo ""
 
34638
  fi
 
34639
else
 
34640
  echo ""
 
34641
  echo "Good - your configure finished. Start make now"
 
34642
  echo ""
 
34643
fi