~foxtrotgps-team/foxtrotgps/trunk

1 by Joshua Judson Rosen
Imported from tangogps-0.9.7 tarball.
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
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
LIBOBJS=
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="configure.in"
734
# Factoring default headers for most tests.
735
ac_includes_default="\
736
#include <stdio.h>
737
#ifdef HAVE_SYS_TYPES_H
738
# include <sys/types.h>
739
#endif
740
#ifdef HAVE_SYS_STAT_H
741
# include <sys/stat.h>
742
#endif
743
#ifdef STDC_HEADERS
744
# include <stdlib.h>
745
# include <stddef.h>
746
#else
747
# ifdef HAVE_STDLIB_H
748
#  include <stdlib.h>
749
# endif
750
#endif
751
#ifdef HAVE_STRING_H
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753
#  include <memory.h>
754
# endif
755
# include <string.h>
756
#endif
757
#ifdef HAVE_STRINGS_H
758
# include <strings.h>
759
#endif
760
#ifdef HAVE_INTTYPES_H
761
# include <inttypes.h>
762
#endif
763
#ifdef HAVE_STDINT_H
764
# include <stdint.h>
765
#endif
766
#ifdef HAVE_UNISTD_H
767
# include <unistd.h>
768
#endif"
769
770
ac_subst_vars='SHELL
771
PATH_SEPARATOR
772
PACKAGE_NAME
773
PACKAGE_TARNAME
774
PACKAGE_VERSION
775
PACKAGE_STRING
776
PACKAGE_BUGREPORT
777
exec_prefix
778
prefix
779
program_transform_name
780
bindir
781
sbindir
782
libexecdir
783
datarootdir
784
datadir
785
sysconfdir
786
sharedstatedir
787
localstatedir
788
includedir
789
oldincludedir
790
docdir
791
infodir
792
htmldir
793
dvidir
794
pdfdir
795
psdir
796
libdir
797
localedir
798
mandir
799
DEFS
800
ECHO_C
801
ECHO_N
802
ECHO_T
803
LIBS
804
build_alias
805
host_alias
806
target_alias
807
INSTALL_PROGRAM
808
INSTALL_SCRIPT
809
INSTALL_DATA
810
am__isrc
811
CYGPATH_W
812
PACKAGE
813
VERSION
814
ACLOCAL
815
AUTOCONF
816
AUTOMAKE
817
AUTOHEADER
818
MAKEINFO
819
install_sh
820
STRIP
821
INSTALL_STRIP_PROGRAM
822
mkdir_p
823
AWK
824
SET_MAKE
825
am__leading_dot
826
AMTAR
827
am__tar
828
am__untar
829
MAINTAINER_MODE_TRUE
830
MAINTAINER_MODE_FALSE
831
MAINT
832
CC
833
CFLAGS
834
LDFLAGS
835
CPPFLAGS
836
ac_ct_CC
837
EXEEXT
838
OBJEXT
839
DEPDIR
840
am__include
841
am__quote
842
AMDEP_TRUE
843
AMDEP_FALSE
844
AMDEPBACKSLASH
845
CCDEPMODE
846
am__fastdepCC_TRUE
847
am__fastdepCC_FALSE
848
CPP
849
GREP
850
EGREP
851
GETTEXT_PACKAGE
852
USE_NLS
853
MSGFMT
854
MSGFMT_OPTS
855
GMSGFMT
856
XGETTEXT
857
CATALOGS
858
CATOBJEXT
859
DATADIRNAME
860
GMOFILES
861
INSTOBJEXT
862
INTLLIBS
863
PO_IN_DATADIR_TRUE
864
PO_IN_DATADIR_FALSE
865
POFILES
866
POSUB
867
MKINSTALLDIRS
868
build
869
build_cpu
870
build_vendor
871
build_os
872
host
873
host_cpu
874
host_vendor
875
host_os
876
SED
877
LN_S
878
ECHO
879
AR
880
RANLIB
881
DSYMUTIL
882
NMEDIT
883
CXX
884
CXXFLAGS
885
ac_ct_CXX
886
CXXDEPMODE
887
am__fastdepCXX_TRUE
888
am__fastdepCXX_FALSE
889
CXXCPP
890
F77
891
FFLAGS
892
ac_ct_F77
893
LIBTOOL
894
PKG_CONFIG
895
PACKAGE_CFLAGS
896
PACKAGE_LIBS
897
NO_PREFIX_PACKAGE_DATA_DIR
898
PACKAGE_DATA_DIR
899
NO_PREFIX_PACKAGE_DOC_DIR
900
PACKAGE_DOC_DIR
901
NO_PREFIX_PACKAGE_PIXMAPS_DIR
902
PACKAGE_PIXMAPS_DIR
903
NO_PREFIX_PACKAGE_HELP_DIR
904
PACKAGE_HELP_DIR
905
NO_PREFIX_PACKAGE_MENU_DIR
906
PACKAGE_MENU_DIR
907
LIBOBJS
908
LTLIBOBJS'
909
ac_subst_files=''
910
      ac_precious_vars='build_alias
911
host_alias
912
target_alias
913
CC
914
CFLAGS
915
LDFLAGS
916
LIBS
917
CPPFLAGS
918
CPP
919
CXX
920
CXXFLAGS
921
CCC
922
CXXCPP
923
F77
924
FFLAGS
925
PKG_CONFIG
926
PACKAGE_CFLAGS
927
PACKAGE_LIBS'
928
929
930
# Initialize some variables set by options.
931
ac_init_help=
932
ac_init_version=false
933
# The variables have the same names as the options, with
934
# dashes changed to underlines.
935
cache_file=/dev/null
936
exec_prefix=NONE
937
no_create=
938
no_recursion=
939
prefix=NONE
940
program_prefix=NONE
941
program_suffix=NONE
942
program_transform_name=s,x,x,
943
silent=
944
site=
945
srcdir=
946
verbose=
947
x_includes=NONE
948
x_libraries=NONE
949
950
# Installation directory options.
951
# These are left unexpanded so users can "make install exec_prefix=/foo"
952
# and all the variables that are supposed to be based on exec_prefix
953
# by default will actually change.
954
# Use braces instead of parens because sh, perl, etc. also accept them.
955
# (The list follows the same order as the GNU Coding Standards.)
956
bindir='${exec_prefix}/bin'
957
sbindir='${exec_prefix}/sbin'
958
libexecdir='${exec_prefix}/libexec'
959
datarootdir='${prefix}/share'
960
datadir='${datarootdir}'
961
sysconfdir='${prefix}/etc'
962
sharedstatedir='${prefix}/com'
963
localstatedir='${prefix}/var'
964
includedir='${prefix}/include'
965
oldincludedir='/usr/include'
966
docdir='${datarootdir}/doc/${PACKAGE}'
967
infodir='${datarootdir}/info'
968
htmldir='${docdir}'
969
dvidir='${docdir}'
970
pdfdir='${docdir}'
971
psdir='${docdir}'
972
libdir='${exec_prefix}/lib'
973
localedir='${datarootdir}/locale'
974
mandir='${datarootdir}/man'
975
976
ac_prev=
977
ac_dashdash=
978
for ac_option
979
do
980
  # If the previous option needs an argument, assign it.
981
  if test -n "$ac_prev"; then
982
    eval $ac_prev=\$ac_option
983
    ac_prev=
984
    continue
985
  fi
986
987
  case $ac_option in
988
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989
  *)	ac_optarg=yes ;;
990
  esac
991
992
  # Accept the important Cygnus configure options, so we can diagnose typos.
993
994
  case $ac_dashdash$ac_option in
995
  --)
996
    ac_dashdash=yes ;;
997
998
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
999
    ac_prev=bindir ;;
1000
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001
    bindir=$ac_optarg ;;
1002
1003
  -build | --build | --buil | --bui | --bu)
1004
    ac_prev=build_alias ;;
1005
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006
    build_alias=$ac_optarg ;;
1007
1008
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1009
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010
    ac_prev=cache_file ;;
1011
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013
    cache_file=$ac_optarg ;;
1014
1015
  --config-cache | -C)
1016
    cache_file=config.cache ;;
1017
1018
  -datadir | --datadir | --datadi | --datad)
1019
    ac_prev=datadir ;;
1020
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021
    datadir=$ac_optarg ;;
1022
1023
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024
  | --dataroo | --dataro | --datar)
1025
    ac_prev=datarootdir ;;
1026
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028
    datarootdir=$ac_optarg ;;
1029
1030
  -disable-* | --disable-*)
1031
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032
    # Reject names that are not valid shell variable names.
1033
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035
   { (exit 1); exit 1; }; }
1036
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037
    eval enable_$ac_feature=no ;;
1038
1039
  -docdir | --docdir | --docdi | --doc | --do)
1040
    ac_prev=docdir ;;
1041
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042
    docdir=$ac_optarg ;;
1043
1044
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045
    ac_prev=dvidir ;;
1046
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047
    dvidir=$ac_optarg ;;
1048
1049
  -enable-* | --enable-*)
1050
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051
    # Reject names that are not valid shell variable names.
1052
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054
   { (exit 1); exit 1; }; }
1055
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056
    eval enable_$ac_feature=\$ac_optarg ;;
1057
1058
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060
  | --exec | --exe | --ex)
1061
    ac_prev=exec_prefix ;;
1062
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064
  | --exec=* | --exe=* | --ex=*)
1065
    exec_prefix=$ac_optarg ;;
1066
1067
  -gas | --gas | --ga | --g)
1068
    # Obsolete; use --with-gas.
1069
    with_gas=yes ;;
1070
1071
  -help | --help | --hel | --he | -h)
1072
    ac_init_help=long ;;
1073
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074
    ac_init_help=recursive ;;
1075
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076
    ac_init_help=short ;;
1077
1078
  -host | --host | --hos | --ho)
1079
    ac_prev=host_alias ;;
1080
  -host=* | --host=* | --hos=* | --ho=*)
1081
    host_alias=$ac_optarg ;;
1082
1083
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084
    ac_prev=htmldir ;;
1085
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086
  | --ht=*)
1087
    htmldir=$ac_optarg ;;
1088
1089
  -includedir | --includedir | --includedi | --included | --include \
1090
  | --includ | --inclu | --incl | --inc)
1091
    ac_prev=includedir ;;
1092
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1094
    includedir=$ac_optarg ;;
1095
1096
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1097
    ac_prev=infodir ;;
1098
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099
    infodir=$ac_optarg ;;
1100
1101
  -libdir | --libdir | --libdi | --libd)
1102
    ac_prev=libdir ;;
1103
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104
    libdir=$ac_optarg ;;
1105
1106
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107
  | --libexe | --libex | --libe)
1108
    ac_prev=libexecdir ;;
1109
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110
  | --libexe=* | --libex=* | --libe=*)
1111
    libexecdir=$ac_optarg ;;
1112
1113
  -localedir | --localedir | --localedi | --localed | --locale)
1114
    ac_prev=localedir ;;
1115
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116
    localedir=$ac_optarg ;;
1117
1118
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1119
  | --localstate | --localstat | --localsta | --localst | --locals)
1120
    ac_prev=localstatedir ;;
1121
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123
    localstatedir=$ac_optarg ;;
1124
1125
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126
    ac_prev=mandir ;;
1127
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128
    mandir=$ac_optarg ;;
1129
1130
  -nfp | --nfp | --nf)
1131
    # Obsolete; use --without-fp.
1132
    with_fp=no ;;
1133
1134
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135
  | --no-cr | --no-c | -n)
1136
    no_create=yes ;;
1137
1138
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140
    no_recursion=yes ;;
1141
1142
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144
  | --oldin | --oldi | --old | --ol | --o)
1145
    ac_prev=oldincludedir ;;
1146
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149
    oldincludedir=$ac_optarg ;;
1150
1151
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152
    ac_prev=prefix ;;
1153
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154
    prefix=$ac_optarg ;;
1155
1156
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157
  | --program-pre | --program-pr | --program-p)
1158
    ac_prev=program_prefix ;;
1159
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161
    program_prefix=$ac_optarg ;;
1162
1163
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164
  | --program-suf | --program-su | --program-s)
1165
    ac_prev=program_suffix ;;
1166
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168
    program_suffix=$ac_optarg ;;
1169
1170
  -program-transform-name | --program-transform-name \
1171
  | --program-transform-nam | --program-transform-na \
1172
  | --program-transform-n | --program-transform- \
1173
  | --program-transform | --program-transfor \
1174
  | --program-transfo | --program-transf \
1175
  | --program-trans | --program-tran \
1176
  | --progr-tra | --program-tr | --program-t)
1177
    ac_prev=program_transform_name ;;
1178
  -program-transform-name=* | --program-transform-name=* \
1179
  | --program-transform-nam=* | --program-transform-na=* \
1180
  | --program-transform-n=* | --program-transform-=* \
1181
  | --program-transform=* | --program-transfor=* \
1182
  | --program-transfo=* | --program-transf=* \
1183
  | --program-trans=* | --program-tran=* \
1184
  | --progr-tra=* | --program-tr=* | --program-t=*)
1185
    program_transform_name=$ac_optarg ;;
1186
1187
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188
    ac_prev=pdfdir ;;
1189
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190
    pdfdir=$ac_optarg ;;
1191
1192
  -psdir | --psdir | --psdi | --psd | --ps)
1193
    ac_prev=psdir ;;
1194
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195
    psdir=$ac_optarg ;;
1196
1197
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198
  | -silent | --silent | --silen | --sile | --sil)
1199
    silent=yes ;;
1200
1201
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202
    ac_prev=sbindir ;;
1203
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204
  | --sbi=* | --sb=*)
1205
    sbindir=$ac_optarg ;;
1206
1207
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209
  | --sharedst | --shareds | --shared | --share | --shar \
1210
  | --sha | --sh)
1211
    ac_prev=sharedstatedir ;;
1212
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215
  | --sha=* | --sh=*)
1216
    sharedstatedir=$ac_optarg ;;
1217
1218
  -site | --site | --sit)
1219
    ac_prev=site ;;
1220
  -site=* | --site=* | --sit=*)
1221
    site=$ac_optarg ;;
1222
1223
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224
    ac_prev=srcdir ;;
1225
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226
    srcdir=$ac_optarg ;;
1227
1228
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229
  | --syscon | --sysco | --sysc | --sys | --sy)
1230
    ac_prev=sysconfdir ;;
1231
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233
    sysconfdir=$ac_optarg ;;
1234
1235
  -target | --target | --targe | --targ | --tar | --ta | --t)
1236
    ac_prev=target_alias ;;
1237
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238
    target_alias=$ac_optarg ;;
1239
1240
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1241
    verbose=yes ;;
1242
1243
  -version | --version | --versio | --versi | --vers | -V)
1244
    ac_init_version=: ;;
1245
1246
  -with-* | --with-*)
1247
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248
    # Reject names that are not valid shell variable names.
1249
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251
   { (exit 1); exit 1; }; }
1252
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253
    eval with_$ac_package=\$ac_optarg ;;
1254
1255
  -without-* | --without-*)
1256
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257
    # Reject names that are not valid shell variable names.
1258
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1260
   { (exit 1); exit 1; }; }
1261
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262
    eval with_$ac_package=no ;;
1263
1264
  --x)
1265
    # Obsolete; use --with-x.
1266
    with_x=yes ;;
1267
1268
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269
  | --x-incl | --x-inc | --x-in | --x-i)
1270
    ac_prev=x_includes ;;
1271
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273
    x_includes=$ac_optarg ;;
1274
1275
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277
    ac_prev=x_libraries ;;
1278
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280
    x_libraries=$ac_optarg ;;
1281
1282
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1283
Try \`$0 --help' for more information." >&2
1284
   { (exit 1); exit 1; }; }
1285
    ;;
1286
1287
  *=*)
1288
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289
    # Reject names that are not valid shell variable names.
1290
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292
   { (exit 1); exit 1; }; }
1293
    eval $ac_envvar=\$ac_optarg
1294
    export $ac_envvar ;;
1295
1296
  *)
1297
    # FIXME: should be removed in autoconf 3.0.
1298
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302
    ;;
1303
1304
  esac
1305
done
1306
1307
if test -n "$ac_prev"; then
1308
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309
  { echo "$as_me: error: missing argument to $ac_option" >&2
1310
   { (exit 1); exit 1; }; }
1311
fi
1312
1313
# Be sure to have absolute directory names.
1314
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315
		datadir sysconfdir sharedstatedir localstatedir includedir \
1316
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317
		libdir localedir mandir
1318
do
1319
  eval ac_val=\$$ac_var
1320
  case $ac_val in
1321
    [\\/$]* | ?:[\\/]* )  continue;;
1322
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323
  esac
1324
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325
   { (exit 1); exit 1; }; }
1326
done
1327
1328
# There might be people who depend on the old broken behavior: `$host'
1329
# used to hold the argument of --host etc.
1330
# FIXME: To remove some day.
1331
build=$build_alias
1332
host=$host_alias
1333
target=$target_alias
1334
1335
# FIXME: To remove some day.
1336
if test "x$host_alias" != x; then
1337
  if test "x$build_alias" = x; then
1338
    cross_compiling=maybe
1339
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340
    If a cross compiler is detected then cross compile mode will be used." >&2
1341
  elif test "x$build_alias" != "x$host_alias"; then
1342
    cross_compiling=yes
1343
  fi
1344
fi
1345
1346
ac_tool_prefix=
1347
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349
test "$silent" = yes && exec 6>/dev/null
1350
1351
1352
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353
ac_ls_di=`ls -di .` &&
1354
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355
  { echo "$as_me: error: Working directory cannot be determined" >&2
1356
   { (exit 1); exit 1; }; }
1357
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1359
   { (exit 1); exit 1; }; }
1360
1361
1362
# Find the source files, if location was not specified.
1363
if test -z "$srcdir"; then
1364
  ac_srcdir_defaulted=yes
1365
  # Try the directory containing this script, then the parent directory.
1366
  ac_confdir=`$as_dirname -- "$0" ||
1367
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368
	 X"$0" : 'X\(//\)[^/]' \| \
1369
	 X"$0" : 'X\(//\)$' \| \
1370
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371
echo X"$0" |
1372
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373
	    s//\1/
1374
	    q
1375
	  }
1376
	  /^X\(\/\/\)[^/].*/{
1377
	    s//\1/
1378
	    q
1379
	  }
1380
	  /^X\(\/\/\)$/{
1381
	    s//\1/
1382
	    q
1383
	  }
1384
	  /^X\(\/\).*/{
1385
	    s//\1/
1386
	    q
1387
	  }
1388
	  s/.*/./; q'`
1389
  srcdir=$ac_confdir
1390
  if test ! -r "$srcdir/$ac_unique_file"; then
1391
    srcdir=..
1392
  fi
1393
else
1394
  ac_srcdir_defaulted=no
1395
fi
1396
if test ! -r "$srcdir/$ac_unique_file"; then
1397
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399
   { (exit 1); exit 1; }; }
1400
fi
1401
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402
ac_abs_confdir=`(
1403
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404
   { (exit 1); exit 1; }; }
1405
	pwd)`
1406
# When building in place, set srcdir=.
1407
if test "$ac_abs_confdir" = "$ac_pwd"; then
1408
  srcdir=.
1409
fi
1410
# Remove unnecessary trailing slashes from srcdir.
1411
# Double slashes in file names in object file debugging info
1412
# mess up M-x gdb in Emacs.
1413
case $srcdir in
1414
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415
esac
1416
for ac_var in $ac_precious_vars; do
1417
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418
  eval ac_env_${ac_var}_value=\$${ac_var}
1419
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421
done
1422
1423
#
1424
# Report the --help message.
1425
#
1426
if test "$ac_init_help" = "long"; then
1427
  # Omit some internal or obsolete options to make the list less imposing.
1428
  # This message is too long to be a string in the A/UX 3.1 sh.
1429
  cat <<_ACEOF
1430
\`configure' configures this package to adapt to many kinds of systems.
1431
1432
Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435
VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437
Defaults for the options are specified in brackets.
1438
1439
Configuration:
1440
  -h, --help              display this help and exit
1441
      --help=short        display options specific to this package
1442
      --help=recursive    display the short help of all the included packages
1443
  -V, --version           display version information and exit
1444
  -q, --quiet, --silent   do not print \`checking...' messages
1445
      --cache-file=FILE   cache test results in FILE [disabled]
1446
  -C, --config-cache      alias for \`--cache-file=config.cache'
1447
  -n, --no-create         do not create output files
1448
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450
Installation directories:
1451
  --prefix=PREFIX         install architecture-independent files in PREFIX
1452
			  [$ac_default_prefix]
1453
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454
			  [PREFIX]
1455
1456
By default, \`make install' will install all the files in
1457
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459
for instance \`--prefix=\$HOME'.
1460
1461
For better control, use the options below.
1462
1463
Fine tuning of the installation directories:
1464
  --bindir=DIR           user executables [EPREFIX/bin]
1465
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1466
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1467
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1468
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1469
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1470
  --libdir=DIR           object code libraries [EPREFIX/lib]
1471
  --includedir=DIR       C header files [PREFIX/include]
1472
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1473
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1474
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1475
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1476
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1477
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1478
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1479
  --htmldir=DIR          html documentation [DOCDIR]
1480
  --dvidir=DIR           dvi documentation [DOCDIR]
1481
  --pdfdir=DIR           pdf documentation [DOCDIR]
1482
  --psdir=DIR            ps documentation [DOCDIR]
1483
_ACEOF
1484
1485
  cat <<\_ACEOF
1486
1487
Program names:
1488
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1489
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1490
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492
System types:
1493
  --build=BUILD     configure for building on BUILD [guessed]
1494
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1495
_ACEOF
1496
fi
1497
1498
if test -n "$ac_init_help"; then
1499
1500
  cat <<\_ACEOF
1501
1502
Optional Features:
1503
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1504
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1505
  --enable-maintainer-mode  enable make rules and dependencies not useful
1506
			  (and sometimes confusing) to the casual installer
1507
  --disable-dependency-tracking  speeds up one-time build
1508
  --enable-dependency-tracking   do not reject slow dependency extractors
1509
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1510
  --enable-static[=PKGS]  build static libraries [default=yes]
1511
  --enable-fast-install[=PKGS]
1512
                          optimize for fast installation [default=yes]
1513
  --disable-libtool-lock  avoid locking (might break parallel builds)
1514
1515
Optional Packages:
1516
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1517
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1518
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1519
  --with-pic              try to use only PIC/non-PIC objects [default=use
1520
                          both]
1521
  --with-tags[=TAGS]      include additional configurations [automatic]
1522
1523
Some influential environment variables:
1524
  CC          C compiler command
1525
  CFLAGS      C compiler flags
1526
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527
              nonstandard directory <lib dir>
1528
  LIBS        libraries to pass to the linker, e.g. -l<library>
1529
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530
              you have headers in a nonstandard directory <include dir>
1531
  CPP         C preprocessor
1532
  CXX         C++ compiler command
1533
  CXXFLAGS    C++ compiler flags
1534
  CXXCPP      C++ preprocessor
1535
  F77         Fortran 77 compiler command
1536
  FFLAGS      Fortran 77 compiler flags
1537
  PKG_CONFIG  path to pkg-config utility
1538
  PACKAGE_CFLAGS
1539
              C compiler flags for PACKAGE, overriding pkg-config
1540
  PACKAGE_LIBS
1541
              linker flags for PACKAGE, overriding pkg-config
1542
1543
Use these variables to override the choices made by `configure' or to help
1544
it to find libraries and programs with nonstandard names/locations.
1545
1546
_ACEOF
1547
ac_status=$?
1548
fi
1549
1550
if test "$ac_init_help" = "recursive"; then
1551
  # If there are subdirs, report their specific --help.
1552
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553
    test -d "$ac_dir" || continue
1554
    ac_builddir=.
1555
1556
case "$ac_dir" in
1557
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558
*)
1559
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1560
  # A ".." for each directory in $ac_dir_suffix.
1561
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1562
  case $ac_top_builddir_sub in
1563
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565
  esac ;;
1566
esac
1567
ac_abs_top_builddir=$ac_pwd
1568
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569
# for backward compatibility:
1570
ac_top_builddir=$ac_top_build_prefix
1571
1572
case $srcdir in
1573
  .)  # We are building in place.
1574
    ac_srcdir=.
1575
    ac_top_srcdir=$ac_top_builddir_sub
1576
    ac_abs_top_srcdir=$ac_pwd ;;
1577
  [\\/]* | ?:[\\/]* )  # Absolute name.
1578
    ac_srcdir=$srcdir$ac_dir_suffix;
1579
    ac_top_srcdir=$srcdir
1580
    ac_abs_top_srcdir=$srcdir ;;
1581
  *) # Relative name.
1582
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1584
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585
esac
1586
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588
    cd "$ac_dir" || { ac_status=$?; continue; }
1589
    # Check for guested configure.
1590
    if test -f "$ac_srcdir/configure.gnu"; then
1591
      echo &&
1592
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593
    elif test -f "$ac_srcdir/configure"; then
1594
      echo &&
1595
      $SHELL "$ac_srcdir/configure" --help=recursive
1596
    else
1597
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598
    fi || ac_status=$?
1599
    cd "$ac_pwd" || { ac_status=$?; break; }
1600
  done
1601
fi
1602
1603
test -n "$ac_init_help" && exit $ac_status
1604
if $ac_init_version; then
1605
  cat <<\_ACEOF
1606
configure
1607
generated by GNU Autoconf 2.61
1608
1609
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1610
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1611
This configure script is free software; the Free Software Foundation
1612
gives unlimited permission to copy, distribute and modify it.
1613
_ACEOF
1614
  exit
1615
fi
1616
cat >config.log <<_ACEOF
1617
This file contains any messages produced by compilers while
1618
running configure, to aid debugging if configure makes a mistake.
1619
1620
It was created by $as_me, which was
1621
generated by GNU Autoconf 2.61.  Invocation command line was
1622
1623
  $ $0 $@
1624
1625
_ACEOF
1626
exec 5>>config.log
1627
{
1628
cat <<_ASUNAME
1629
## --------- ##
1630
## Platform. ##
1631
## --------- ##
1632
1633
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1634
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1635
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1636
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1637
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638
1639
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1640
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1641
1642
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1643
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1644
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1645
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1646
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1647
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1648
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1649
1650
_ASUNAME
1651
1652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653
for as_dir in $PATH
1654
do
1655
  IFS=$as_save_IFS
1656
  test -z "$as_dir" && as_dir=.
1657
  echo "PATH: $as_dir"
1658
done
1659
IFS=$as_save_IFS
1660
1661
} >&5
1662
1663
cat >&5 <<_ACEOF
1664
1665
1666
## ----------- ##
1667
## Core tests. ##
1668
## ----------- ##
1669
1670
_ACEOF
1671
1672
1673
# Keep a trace of the command line.
1674
# Strip out --no-create and --no-recursion so they do not pile up.
1675
# Strip out --silent because we don't want to record it for future runs.
1676
# Also quote any args containing shell meta-characters.
1677
# Make two passes to allow for proper duplicate-argument suppression.
1678
ac_configure_args=
1679
ac_configure_args0=
1680
ac_configure_args1=
1681
ac_must_keep_next=false
1682
for ac_pass in 1 2
1683
do
1684
  for ac_arg
1685
  do
1686
    case $ac_arg in
1687
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1688
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1689
    | -silent | --silent | --silen | --sile | --sil)
1690
      continue ;;
1691
    *\'*)
1692
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1693
    esac
1694
    case $ac_pass in
1695
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696
    2)
1697
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1698
      if test $ac_must_keep_next = true; then
1699
	ac_must_keep_next=false # Got value, back to normal.
1700
      else
1701
	case $ac_arg in
1702
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1703
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1704
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1705
	  | -with-* | --with-* | -without-* | --without-* | --x)
1706
	    case "$ac_configure_args0 " in
1707
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1708
	    esac
1709
	    ;;
1710
	  -* ) ac_must_keep_next=true ;;
1711
	esac
1712
      fi
1713
      ac_configure_args="$ac_configure_args '$ac_arg'"
1714
      ;;
1715
    esac
1716
  done
1717
done
1718
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1719
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720
1721
# When interrupted or exit'd, cleanup temporary files, and complete
1722
# config.log.  We remove comments because anyway the quotes in there
1723
# would cause problems or look ugly.
1724
# WARNING: Use '\'' to represent an apostrophe within the trap.
1725
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1726
trap 'exit_status=$?
1727
  # Save into config.log some information that might help in debugging.
1728
  {
1729
    echo
1730
1731
    cat <<\_ASBOX
1732
## ---------------- ##
1733
## Cache variables. ##
1734
## ---------------- ##
1735
_ASBOX
1736
    echo
1737
    # The following way of writing the cache mishandles newlines in values,
1738
(
1739
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1740
    eval ac_val=\$$ac_var
1741
    case $ac_val in #(
1742
    *${as_nl}*)
1743
      case $ac_var in #(
1744
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1745
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1746
      esac
1747
      case $ac_var in #(
1748
      _ | IFS | as_nl) ;; #(
1749
      *) $as_unset $ac_var ;;
1750
      esac ;;
1751
    esac
1752
  done
1753
  (set) 2>&1 |
1754
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1755
    *${as_nl}ac_space=\ *)
1756
      sed -n \
1757
	"s/'\''/'\''\\\\'\'''\''/g;
1758
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759
      ;; #(
1760
    *)
1761
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762
      ;;
1763
    esac |
1764
    sort
1765
)
1766
    echo
1767
1768
    cat <<\_ASBOX
1769
## ----------------- ##
1770
## Output variables. ##
1771
## ----------------- ##
1772
_ASBOX
1773
    echo
1774
    for ac_var in $ac_subst_vars
1775
    do
1776
      eval ac_val=\$$ac_var
1777
      case $ac_val in
1778
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779
      esac
1780
      echo "$ac_var='\''$ac_val'\''"
1781
    done | sort
1782
    echo
1783
1784
    if test -n "$ac_subst_files"; then
1785
      cat <<\_ASBOX
1786
## ------------------- ##
1787
## File substitutions. ##
1788
## ------------------- ##
1789
_ASBOX
1790
      echo
1791
      for ac_var in $ac_subst_files
1792
      do
1793
	eval ac_val=\$$ac_var
1794
	case $ac_val in
1795
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796
	esac
1797
	echo "$ac_var='\''$ac_val'\''"
1798
      done | sort
1799
      echo
1800
    fi
1801
1802
    if test -s confdefs.h; then
1803
      cat <<\_ASBOX
1804
## ----------- ##
1805
## confdefs.h. ##
1806
## ----------- ##
1807
_ASBOX
1808
      echo
1809
      cat confdefs.h
1810
      echo
1811
    fi
1812
    test "$ac_signal" != 0 &&
1813
      echo "$as_me: caught signal $ac_signal"
1814
    echo "$as_me: exit $exit_status"
1815
  } >&5
1816
  rm -f core *.core core.conftest.* &&
1817
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1818
    exit $exit_status
1819
' 0
1820
for ac_signal in 1 2 13 15; do
1821
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822
done
1823
ac_signal=0
1824
1825
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1826
rm -f -r conftest* confdefs.h
1827
1828
# Predefined preprocessor variables.
1829
1830
cat >>confdefs.h <<_ACEOF
1831
#define PACKAGE_NAME "$PACKAGE_NAME"
1832
_ACEOF
1833
1834
1835
cat >>confdefs.h <<_ACEOF
1836
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837
_ACEOF
1838
1839
1840
cat >>confdefs.h <<_ACEOF
1841
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1842
_ACEOF
1843
1844
1845
cat >>confdefs.h <<_ACEOF
1846
#define PACKAGE_STRING "$PACKAGE_STRING"
1847
_ACEOF
1848
1849
1850
cat >>confdefs.h <<_ACEOF
1851
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852
_ACEOF
1853
1854
1855
# Let the site file select an alternate cache file if it wants to.
1856
# Prefer explicitly selected file to automatically selected ones.
1857
if test -n "$CONFIG_SITE"; then
1858
  set x "$CONFIG_SITE"
1859
elif test "x$prefix" != xNONE; then
1860
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1861
else
1862
  set x "$ac_default_prefix/share/config.site" \
1863
	"$ac_default_prefix/etc/config.site"
1864
fi
1865
shift
1866
for ac_site_file
1867
do
1868
  if test -r "$ac_site_file"; then
1869
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1870
echo "$as_me: loading site script $ac_site_file" >&6;}
1871
    sed 's/^/| /' "$ac_site_file" >&5
1872
    . "$ac_site_file"
1873
  fi
1874
done
1875
1876
if test -r "$cache_file"; then
1877
  # Some versions of bash will fail to source /dev/null (special
1878
  # files actually), so we avoid doing that.
1879
  if test -f "$cache_file"; then
1880
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1881
echo "$as_me: loading cache $cache_file" >&6;}
1882
    case $cache_file in
1883
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884
      *)                      . "./$cache_file";;
1885
    esac
1886
  fi
1887
else
1888
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1889
echo "$as_me: creating cache $cache_file" >&6;}
1890
  >$cache_file
1891
fi
1892
1893
# Check that the precious variables saved in the cache have kept the same
1894
# value.
1895
ac_cache_corrupted=false
1896
for ac_var in $ac_precious_vars; do
1897
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1898
  eval ac_new_set=\$ac_env_${ac_var}_set
1899
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1900
  eval ac_new_val=\$ac_env_${ac_var}_value
1901
  case $ac_old_set,$ac_new_set in
1902
    set,)
1903
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1904
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1905
      ac_cache_corrupted=: ;;
1906
    ,set)
1907
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1908
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1909
      ac_cache_corrupted=: ;;
1910
    ,);;
1911
    *)
1912
      if test "x$ac_old_val" != "x$ac_new_val"; then
1913
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1916
echo "$as_me:   former value:  $ac_old_val" >&2;}
1917
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1918
echo "$as_me:   current value: $ac_new_val" >&2;}
1919
	ac_cache_corrupted=:
1920
      fi;;
1921
  esac
1922
  # Pass precious variables to config.status.
1923
  if test "$ac_new_set" = set; then
1924
    case $ac_new_val in
1925
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1926
    *) ac_arg=$ac_var=$ac_new_val ;;
1927
    esac
1928
    case " $ac_configure_args " in
1929
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1930
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1931
    esac
1932
  fi
1933
done
1934
if $ac_cache_corrupted; then
1935
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1938
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1939
   { (exit 1); exit 1; }; }
1940
fi
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
ac_ext=c
1959
ac_cpp='$CPP $CPPFLAGS'
1960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965
am__api_version='1.10'
1966
1967
ac_aux_dir=
1968
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1969
  if test -f "$ac_dir/install-sh"; then
1970
    ac_aux_dir=$ac_dir
1971
    ac_install_sh="$ac_aux_dir/install-sh -c"
1972
    break
1973
  elif test -f "$ac_dir/install.sh"; then
1974
    ac_aux_dir=$ac_dir
1975
    ac_install_sh="$ac_aux_dir/install.sh -c"
1976
    break
1977
  elif test -f "$ac_dir/shtool"; then
1978
    ac_aux_dir=$ac_dir
1979
    ac_install_sh="$ac_aux_dir/shtool install -c"
1980
    break
1981
  fi
1982
done
1983
if test -z "$ac_aux_dir"; then
1984
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1985
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1986
   { (exit 1); exit 1; }; }
1987
fi
1988
1989
# These three variables are undocumented and unsupported,
1990
# and are intended to be withdrawn in a future Autoconf release.
1991
# They can cause serious problems if a builder's source tree is in a directory
1992
# whose full name contains unusual characters.
1993
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1994
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1995
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1996
1997
1998
# Find a good install program.  We prefer a C program (faster),
1999
# so one script is as good as another.  But avoid the broken or
2000
# incompatible versions:
2001
# SysV /etc/install, /usr/sbin/install
2002
# SunOS /usr/etc/install
2003
# IRIX /sbin/install
2004
# AIX /bin/install
2005
# AmigaOS /C/install, which installs bootblocks on floppy discs
2006
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2007
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2008
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2009
# OS/2's system install, which has a completely different semantic
2010
# ./install, which can be erroneously created by make from ./install.sh.
2011
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2012
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2013
if test -z "$INSTALL"; then
2014
if test "${ac_cv_path_install+set}" = set; then
2015
  echo $ECHO_N "(cached) $ECHO_C" >&6
2016
else
2017
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018
for as_dir in $PATH
2019
do
2020
  IFS=$as_save_IFS
2021
  test -z "$as_dir" && as_dir=.
2022
  # Account for people who put trailing slashes in PATH elements.
2023
case $as_dir/ in
2024
  ./ | .// | /cC/* | \
2025
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2026
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2027
  /usr/ucb/* ) ;;
2028
  *)
2029
    # OSF1 and SCO ODT 3.0 have their own names for install.
2030
    # Don't use installbsd from OSF since it installs stuff as root
2031
    # by default.
2032
    for ac_prog in ginstall scoinst install; do
2033
      for ac_exec_ext in '' $ac_executable_extensions; do
2034
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2035
	  if test $ac_prog = install &&
2036
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2037
	    # AIX install.  It has an incompatible calling convention.
2038
	    :
2039
	  elif test $ac_prog = install &&
2040
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041
	    # program-specific install script used by HP pwplus--don't use.
2042
	    :
2043
	  else
2044
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2045
	    break 3
2046
	  fi
2047
	fi
2048
      done
2049
    done
2050
    ;;
2051
esac
2052
done
2053
IFS=$as_save_IFS
2054
2055
2056
fi
2057
  if test "${ac_cv_path_install+set}" = set; then
2058
    INSTALL=$ac_cv_path_install
2059
  else
2060
    # As a last resort, use the slow shell script.  Don't cache a
2061
    # value for INSTALL within a source directory, because that will
2062
    # break other packages using the cache if that directory is
2063
    # removed, or if the value is a relative name.
2064
    INSTALL=$ac_install_sh
2065
  fi
2066
fi
2067
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2068
echo "${ECHO_T}$INSTALL" >&6; }
2069
2070
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2071
# It thinks the first close brace ends the variable substitution.
2072
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2073
2074
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2075
2076
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2077
2078
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2079
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2080
# Just in case
2081
sleep 1
2082
echo timestamp > conftest.file
2083
# Do `set' in a subshell so we don't clobber the current shell's
2084
# arguments.  Must try -L first in case configure is actually a
2085
# symlink; some systems play weird games with the mod time of symlinks
2086
# (eg FreeBSD returns the mod time of the symlink's containing
2087
# directory).
2088
if (
2089
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2090
   if test "$*" = "X"; then
2091
      # -L didn't work.
2092
      set X `ls -t $srcdir/configure conftest.file`
2093
   fi
2094
   rm -f conftest.file
2095
   if test "$*" != "X $srcdir/configure conftest.file" \
2096
      && test "$*" != "X conftest.file $srcdir/configure"; then
2097
2098
      # If neither matched, then we have a broken ls.  This can happen
2099
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2100
      # broken ls alias from the environment.  This has actually
2101
      # happened.  Such a system could not be considered "sane".
2102
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2103
alias in your environment" >&5
2104
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2105
alias in your environment" >&2;}
2106
   { (exit 1); exit 1; }; }
2107
   fi
2108
2109
   test "$2" = conftest.file
2110
   )
2111
then
2112
   # Ok.
2113
   :
2114
else
2115
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2116
Check your system clock" >&5
2117
echo "$as_me: error: newly created file is older than distributed files!
2118
Check your system clock" >&2;}
2119
   { (exit 1); exit 1; }; }
2120
fi
2121
{ echo "$as_me:$LINENO: result: yes" >&5
2122
echo "${ECHO_T}yes" >&6; }
2123
test "$program_prefix" != NONE &&
2124
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2125
# Use a double $ so make ignores it.
2126
test "$program_suffix" != NONE &&
2127
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2128
# Double any \ or $.  echo might interpret backslashes.
2129
# By default was `s,x,x', remove it if useless.
2130
cat <<\_ACEOF >conftest.sed
2131
s/[\\$]/&&/g;s/;s,x,x,$//
2132
_ACEOF
2133
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2134
rm -f conftest.sed
2135
2136
# expand $ac_aux_dir to an absolute path
2137
am_aux_dir=`cd $ac_aux_dir && pwd`
2138
2139
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2140
# Use eval to expand $SHELL
2141
if eval "$MISSING --run true"; then
2142
  am_missing_run="$MISSING --run "
2143
else
2144
  am_missing_run=
2145
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2146
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2147
fi
2148
2149
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2150
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2151
if test -z "$MKDIR_P"; then
2152
  if test "${ac_cv_path_mkdir+set}" = set; then
2153
  echo $ECHO_N "(cached) $ECHO_C" >&6
2154
else
2155
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2157
do
2158
  IFS=$as_save_IFS
2159
  test -z "$as_dir" && as_dir=.
2160
  for ac_prog in mkdir gmkdir; do
2161
	 for ac_exec_ext in '' $ac_executable_extensions; do
2162
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2163
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2164
	     'mkdir (GNU coreutils) '* | \
2165
	     'mkdir (coreutils) '* | \
2166
	     'mkdir (fileutils) '4.1*)
2167
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2168
	       break 3;;
2169
	   esac
2170
	 done
2171
       done
2172
done
2173
IFS=$as_save_IFS
2174
2175
fi
2176
2177
  if test "${ac_cv_path_mkdir+set}" = set; then
2178
    MKDIR_P="$ac_cv_path_mkdir -p"
2179
  else
2180
    # As a last resort, use the slow shell script.  Don't cache a
2181
    # value for MKDIR_P within a source directory, because that will
2182
    # break other packages using the cache if that directory is
2183
    # removed, or if the value is a relative name.
2184
    test -d ./--version && rmdir ./--version
2185
    MKDIR_P="$ac_install_sh -d"
2186
  fi
2187
fi
2188
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2189
echo "${ECHO_T}$MKDIR_P" >&6; }
2190
2191
mkdir_p="$MKDIR_P"
2192
case $mkdir_p in
2193
  [\\/$]* | ?:[\\/]*) ;;
2194
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2195
esac
2196
2197
for ac_prog in gawk mawk nawk awk
2198
do
2199
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2200
set dummy $ac_prog; ac_word=$2
2201
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2202
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2203
if test "${ac_cv_prog_AWK+set}" = set; then
2204
  echo $ECHO_N "(cached) $ECHO_C" >&6
2205
else
2206
  if test -n "$AWK"; then
2207
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2208
else
2209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210
for as_dir in $PATH
2211
do
2212
  IFS=$as_save_IFS
2213
  test -z "$as_dir" && as_dir=.
2214
  for ac_exec_ext in '' $ac_executable_extensions; do
2215
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2216
    ac_cv_prog_AWK="$ac_prog"
2217
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218
    break 2
2219
  fi
2220
done
2221
done
2222
IFS=$as_save_IFS
2223
2224
fi
2225
fi
2226
AWK=$ac_cv_prog_AWK
2227
if test -n "$AWK"; then
2228
  { echo "$as_me:$LINENO: result: $AWK" >&5
2229
echo "${ECHO_T}$AWK" >&6; }
2230
else
2231
  { echo "$as_me:$LINENO: result: no" >&5
2232
echo "${ECHO_T}no" >&6; }
2233
fi
2234
2235
2236
  test -n "$AWK" && break
2237
done
2238
2239
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2240
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2241
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2242
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2243
  echo $ECHO_N "(cached) $ECHO_C" >&6
2244
else
2245
  cat >conftest.make <<\_ACEOF
2246
SHELL = /bin/sh
2247
all:
2248
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2249
_ACEOF
2250
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2251
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2252
  *@@@%%%=?*=@@@%%%*)
2253
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2254
  *)
2255
    eval ac_cv_prog_make_${ac_make}_set=no;;
2256
esac
2257
rm -f conftest.make
2258
fi
2259
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2260
  { echo "$as_me:$LINENO: result: yes" >&5
2261
echo "${ECHO_T}yes" >&6; }
2262
  SET_MAKE=
2263
else
2264
  { echo "$as_me:$LINENO: result: no" >&5
2265
echo "${ECHO_T}no" >&6; }
2266
  SET_MAKE="MAKE=${MAKE-make}"
2267
fi
2268
2269
rm -rf .tst 2>/dev/null
2270
mkdir .tst 2>/dev/null
2271
if test -d .tst; then
2272
  am__leading_dot=.
2273
else
2274
  am__leading_dot=_
2275
fi
2276
rmdir .tst 2>/dev/null
2277
2278
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2279
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2280
  # is not polluted with repeated "-I."
2281
  am__isrc=' -I$(srcdir)'
2282
  # test to see if srcdir already configured
2283
  if test -f $srcdir/config.status; then
2284
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2285
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2286
   { (exit 1); exit 1; }; }
2287
  fi
2288
fi
2289
2290
# test whether we have cygpath
2291
if test -z "$CYGPATH_W"; then
2292
  if (cygpath --version) >/dev/null 2>/dev/null; then
2293
    CYGPATH_W='cygpath -w'
2294
  else
2295
    CYGPATH_W=echo
2296
  fi
2297
fi
2298
2299
2300
# Define the identity of the package.
2301
 PACKAGE=tangogps
2302
 VERSION=0.9.7
2303
2304
2305
cat >>confdefs.h <<_ACEOF
2306
#define PACKAGE "$PACKAGE"
2307
_ACEOF
2308
2309
2310
cat >>confdefs.h <<_ACEOF
2311
#define VERSION "$VERSION"
2312
_ACEOF
2313
2314
# Some tools Automake needs.
2315
2316
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2317
2318
2319
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2320
2321
2322
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2323
2324
2325
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2326
2327
2328
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2329
2330
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2331
2332
# Installed binaries are usually stripped using `strip' when the user
2333
# run `make install-strip'.  However `strip' might not be the right
2334
# tool to use in cross-compilation environments, therefore Automake
2335
# will honor the `STRIP' environment variable to overrule this program.
2336
if test "$cross_compiling" != no; then
2337
  if test -n "$ac_tool_prefix"; then
2338
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2339
set dummy ${ac_tool_prefix}strip; ac_word=$2
2340
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2341
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342
if test "${ac_cv_prog_STRIP+set}" = set; then
2343
  echo $ECHO_N "(cached) $ECHO_C" >&6
2344
else
2345
  if test -n "$STRIP"; then
2346
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2347
else
2348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349
for as_dir in $PATH
2350
do
2351
  IFS=$as_save_IFS
2352
  test -z "$as_dir" && as_dir=.
2353
  for ac_exec_ext in '' $ac_executable_extensions; do
2354
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2356
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357
    break 2
2358
  fi
2359
done
2360
done
2361
IFS=$as_save_IFS
2362
2363
fi
2364
fi
2365
STRIP=$ac_cv_prog_STRIP
2366
if test -n "$STRIP"; then
2367
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2368
echo "${ECHO_T}$STRIP" >&6; }
2369
else
2370
  { echo "$as_me:$LINENO: result: no" >&5
2371
echo "${ECHO_T}no" >&6; }
2372
fi
2373
2374
2375
fi
2376
if test -z "$ac_cv_prog_STRIP"; then
2377
  ac_ct_STRIP=$STRIP
2378
  # Extract the first word of "strip", so it can be a program name with args.
2379
set dummy strip; ac_word=$2
2380
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2381
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2383
  echo $ECHO_N "(cached) $ECHO_C" >&6
2384
else
2385
  if test -n "$ac_ct_STRIP"; then
2386
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2387
else
2388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389
for as_dir in $PATH
2390
do
2391
  IFS=$as_save_IFS
2392
  test -z "$as_dir" && as_dir=.
2393
  for ac_exec_ext in '' $ac_executable_extensions; do
2394
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395
    ac_cv_prog_ac_ct_STRIP="strip"
2396
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397
    break 2
2398
  fi
2399
done
2400
done
2401
IFS=$as_save_IFS
2402
2403
fi
2404
fi
2405
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2406
if test -n "$ac_ct_STRIP"; then
2407
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2408
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2409
else
2410
  { echo "$as_me:$LINENO: result: no" >&5
2411
echo "${ECHO_T}no" >&6; }
2412
fi
2413
2414
  if test "x$ac_ct_STRIP" = x; then
2415
    STRIP=":"
2416
  else
2417
    case $cross_compiling:$ac_tool_warned in
2418
yes:)
2419
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2420
whose name does not start with the host triplet.  If you think this
2421
configuration is useful to you, please write to autoconf@gnu.org." >&5
2422
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2423
whose name does not start with the host triplet.  If you think this
2424
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2425
ac_tool_warned=yes ;;
2426
esac
2427
    STRIP=$ac_ct_STRIP
2428
  fi
2429
else
2430
  STRIP="$ac_cv_prog_STRIP"
2431
fi
2432
2433
fi
2434
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2435
2436
# We need awk for the "check" target.  The system "awk" is bad on
2437
# some platforms.
2438
# Always define AMTAR for backward compatibility.
2439
2440
AMTAR=${AMTAR-"${am_missing_run}tar"}
2441
2442
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2443
2444
2445
2446
2447
2448
ac_config_headers="$ac_config_headers config.h"
2449
2450
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2451
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2452
    # Check whether --enable-maintainer-mode was given.
2453
if test "${enable_maintainer_mode+set}" = set; then
2454
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2455
else
2456
  USE_MAINTAINER_MODE=no
2457
fi
2458
2459
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2460
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2461
   if test $USE_MAINTAINER_MODE = yes; then
2462
  MAINTAINER_MODE_TRUE=
2463
  MAINTAINER_MODE_FALSE='#'
2464
else
2465
  MAINTAINER_MODE_TRUE='#'
2466
  MAINTAINER_MODE_FALSE=
2467
fi
2468
2469
  MAINT=$MAINTAINER_MODE_TRUE
2470
2471
2472
2473
DEPDIR="${am__leading_dot}deps"
2474
2475
ac_config_commands="$ac_config_commands depfiles"
2476
2477
2478
am_make=${MAKE-make}
2479
cat > confinc << 'END'
2480
am__doit:
2481
	@echo done
2482
.PHONY: am__doit
2483
END
2484
# If we don't find an include directive, just comment out the code.
2485
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2486
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2487
am__include="#"
2488
am__quote=
2489
_am_result=none
2490
# First try GNU make style include.
2491
echo "include confinc" > confmf
2492
# We grep out `Entering directory' and `Leaving directory'
2493
# messages which can occur if `w' ends up in MAKEFLAGS.
2494
# In particular we don't look at `^make:' because GNU make might
2495
# be invoked under some other name (usually "gmake"), in which
2496
# case it prints its new name instead of `make'.
2497
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2498
   am__include=include
2499
   am__quote=
2500
   _am_result=GNU
2501
fi
2502
# Now try BSD make style include.
2503
if test "$am__include" = "#"; then
2504
   echo '.include "confinc"' > confmf
2505
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2506
      am__include=.include
2507
      am__quote="\""
2508
      _am_result=BSD
2509
   fi
2510
fi
2511
2512
2513
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2514
echo "${ECHO_T}$_am_result" >&6; }
2515
rm -f confinc confmf
2516
2517
# Check whether --enable-dependency-tracking was given.
2518
if test "${enable_dependency_tracking+set}" = set; then
2519
  enableval=$enable_dependency_tracking;
2520
fi
2521
2522
if test "x$enable_dependency_tracking" != xno; then
2523
  am_depcomp="$ac_aux_dir/depcomp"
2524
  AMDEPBACKSLASH='\'
2525
fi
2526
 if test "x$enable_dependency_tracking" != xno; then
2527
  AMDEP_TRUE=
2528
  AMDEP_FALSE='#'
2529
else
2530
  AMDEP_TRUE='#'
2531
  AMDEP_FALSE=
2532
fi
2533
2534
2535
ac_ext=c
2536
ac_cpp='$CPP $CPPFLAGS'
2537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
if test -n "$ac_tool_prefix"; then
2541
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2542
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2543
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545
if test "${ac_cv_prog_CC+set}" = set; then
2546
  echo $ECHO_N "(cached) $ECHO_C" >&6
2547
else
2548
  if test -n "$CC"; then
2549
  ac_cv_prog_CC="$CC" # Let the user override the test.
2550
else
2551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552
for as_dir in $PATH
2553
do
2554
  IFS=$as_save_IFS
2555
  test -z "$as_dir" && as_dir=.
2556
  for ac_exec_ext in '' $ac_executable_extensions; do
2557
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2559
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560
    break 2
2561
  fi
2562
done
2563
done
2564
IFS=$as_save_IFS
2565
2566
fi
2567
fi
2568
CC=$ac_cv_prog_CC
2569
if test -n "$CC"; then
2570
  { echo "$as_me:$LINENO: result: $CC" >&5
2571
echo "${ECHO_T}$CC" >&6; }
2572
else
2573
  { echo "$as_me:$LINENO: result: no" >&5
2574
echo "${ECHO_T}no" >&6; }
2575
fi
2576
2577
2578
fi
2579
if test -z "$ac_cv_prog_CC"; then
2580
  ac_ct_CC=$CC
2581
  # Extract the first word of "gcc", so it can be a program name with args.
2582
set dummy gcc; ac_word=$2
2583
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586
  echo $ECHO_N "(cached) $ECHO_C" >&6
2587
else
2588
  if test -n "$ac_ct_CC"; then
2589
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590
else
2591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592
for as_dir in $PATH
2593
do
2594
  IFS=$as_save_IFS
2595
  test -z "$as_dir" && as_dir=.
2596
  for ac_exec_ext in '' $ac_executable_extensions; do
2597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598
    ac_cv_prog_ac_ct_CC="gcc"
2599
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600
    break 2
2601
  fi
2602
done
2603
done
2604
IFS=$as_save_IFS
2605
2606
fi
2607
fi
2608
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609
if test -n "$ac_ct_CC"; then
2610
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611
echo "${ECHO_T}$ac_ct_CC" >&6; }
2612
else
2613
  { echo "$as_me:$LINENO: result: no" >&5
2614
echo "${ECHO_T}no" >&6; }
2615
fi
2616
2617
  if test "x$ac_ct_CC" = x; then
2618
    CC=""
2619
  else
2620
    case $cross_compiling:$ac_tool_warned in
2621
yes:)
2622
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623
whose name does not start with the host triplet.  If you think this
2624
configuration is useful to you, please write to autoconf@gnu.org." >&5
2625
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626
whose name does not start with the host triplet.  If you think this
2627
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628
ac_tool_warned=yes ;;
2629
esac
2630
    CC=$ac_ct_CC
2631
  fi
2632
else
2633
  CC="$ac_cv_prog_CC"
2634
fi
2635
2636
if test -z "$CC"; then
2637
          if test -n "$ac_tool_prefix"; then
2638
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2639
set dummy ${ac_tool_prefix}cc; ac_word=$2
2640
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642
if test "${ac_cv_prog_CC+set}" = set; then
2643
  echo $ECHO_N "(cached) $ECHO_C" >&6
2644
else
2645
  if test -n "$CC"; then
2646
  ac_cv_prog_CC="$CC" # Let the user override the test.
2647
else
2648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649
for as_dir in $PATH
2650
do
2651
  IFS=$as_save_IFS
2652
  test -z "$as_dir" && as_dir=.
2653
  for ac_exec_ext in '' $ac_executable_extensions; do
2654
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2656
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657
    break 2
2658
  fi
2659
done
2660
done
2661
IFS=$as_save_IFS
2662
2663
fi
2664
fi
2665
CC=$ac_cv_prog_CC
2666
if test -n "$CC"; then
2667
  { echo "$as_me:$LINENO: result: $CC" >&5
2668
echo "${ECHO_T}$CC" >&6; }
2669
else
2670
  { echo "$as_me:$LINENO: result: no" >&5
2671
echo "${ECHO_T}no" >&6; }
2672
fi
2673
2674
2675
  fi
2676
fi
2677
if test -z "$CC"; then
2678
  # Extract the first word of "cc", so it can be a program name with args.
2679
set dummy cc; ac_word=$2
2680
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682
if test "${ac_cv_prog_CC+set}" = set; then
2683
  echo $ECHO_N "(cached) $ECHO_C" >&6
2684
else
2685
  if test -n "$CC"; then
2686
  ac_cv_prog_CC="$CC" # Let the user override the test.
2687
else
2688
  ac_prog_rejected=no
2689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690
for as_dir in $PATH
2691
do
2692
  IFS=$as_save_IFS
2693
  test -z "$as_dir" && as_dir=.
2694
  for ac_exec_ext in '' $ac_executable_extensions; do
2695
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2697
       ac_prog_rejected=yes
2698
       continue
2699
     fi
2700
    ac_cv_prog_CC="cc"
2701
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702
    break 2
2703
  fi
2704
done
2705
done
2706
IFS=$as_save_IFS
2707
2708
if test $ac_prog_rejected = yes; then
2709
  # We found a bogon in the path, so make sure we never use it.
2710
  set dummy $ac_cv_prog_CC
2711
  shift
2712
  if test $# != 0; then
2713
    # We chose a different compiler from the bogus one.
2714
    # However, it has the same basename, so the bogon will be chosen
2715
    # first if we set CC to just the basename; use the full file name.
2716
    shift
2717
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2718
  fi
2719
fi
2720
fi
2721
fi
2722
CC=$ac_cv_prog_CC
2723
if test -n "$CC"; then
2724
  { echo "$as_me:$LINENO: result: $CC" >&5
2725
echo "${ECHO_T}$CC" >&6; }
2726
else
2727
  { echo "$as_me:$LINENO: result: no" >&5
2728
echo "${ECHO_T}no" >&6; }
2729
fi
2730
2731
2732
fi
2733
if test -z "$CC"; then
2734
  if test -n "$ac_tool_prefix"; then
2735
  for ac_prog in cl.exe
2736
  do
2737
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741
if test "${ac_cv_prog_CC+set}" = set; then
2742
  echo $ECHO_N "(cached) $ECHO_C" >&6
2743
else
2744
  if test -n "$CC"; then
2745
  ac_cv_prog_CC="$CC" # Let the user override the test.
2746
else
2747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748
for as_dir in $PATH
2749
do
2750
  IFS=$as_save_IFS
2751
  test -z "$as_dir" && as_dir=.
2752
  for ac_exec_ext in '' $ac_executable_extensions; do
2753
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2755
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756
    break 2
2757
  fi
2758
done
2759
done
2760
IFS=$as_save_IFS
2761
2762
fi
2763
fi
2764
CC=$ac_cv_prog_CC
2765
if test -n "$CC"; then
2766
  { echo "$as_me:$LINENO: result: $CC" >&5
2767
echo "${ECHO_T}$CC" >&6; }
2768
else
2769
  { echo "$as_me:$LINENO: result: no" >&5
2770
echo "${ECHO_T}no" >&6; }
2771
fi
2772
2773
2774
    test -n "$CC" && break
2775
  done
2776
fi
2777
if test -z "$CC"; then
2778
  ac_ct_CC=$CC
2779
  for ac_prog in cl.exe
2780
do
2781
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2782
set dummy $ac_prog; ac_word=$2
2783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2786
  echo $ECHO_N "(cached) $ECHO_C" >&6
2787
else
2788
  if test -n "$ac_ct_CC"; then
2789
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2790
else
2791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792
for as_dir in $PATH
2793
do
2794
  IFS=$as_save_IFS
2795
  test -z "$as_dir" && as_dir=.
2796
  for ac_exec_ext in '' $ac_executable_extensions; do
2797
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798
    ac_cv_prog_ac_ct_CC="$ac_prog"
2799
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800
    break 2
2801
  fi
2802
done
2803
done
2804
IFS=$as_save_IFS
2805
2806
fi
2807
fi
2808
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809
if test -n "$ac_ct_CC"; then
2810
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811
echo "${ECHO_T}$ac_ct_CC" >&6; }
2812
else
2813
  { echo "$as_me:$LINENO: result: no" >&5
2814
echo "${ECHO_T}no" >&6; }
2815
fi
2816
2817
2818
  test -n "$ac_ct_CC" && break
2819
done
2820
2821
  if test "x$ac_ct_CC" = x; then
2822
    CC=""
2823
  else
2824
    case $cross_compiling:$ac_tool_warned in
2825
yes:)
2826
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2827
whose name does not start with the host triplet.  If you think this
2828
configuration is useful to you, please write to autoconf@gnu.org." >&5
2829
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2830
whose name does not start with the host triplet.  If you think this
2831
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2832
ac_tool_warned=yes ;;
2833
esac
2834
    CC=$ac_ct_CC
2835
  fi
2836
fi
2837
2838
fi
2839
2840
2841
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2842
See \`config.log' for more details." >&5
2843
echo "$as_me: error: no acceptable C compiler found in \$PATH
2844
See \`config.log' for more details." >&2;}
2845
   { (exit 1); exit 1; }; }
2846
2847
# Provide some information about the compiler.
2848
echo "$as_me:$LINENO: checking for C compiler version" >&5
2849
ac_compiler=`set X $ac_compile; echo $2`
2850
{ (ac_try="$ac_compiler --version >&5"
2851
case "(($ac_try" in
2852
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853
  *) ac_try_echo=$ac_try;;
2854
esac
2855
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856
  (eval "$ac_compiler --version >&5") 2>&5
2857
  ac_status=$?
2858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859
  (exit $ac_status); }
2860
{ (ac_try="$ac_compiler -v >&5"
2861
case "(($ac_try" in
2862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863
  *) ac_try_echo=$ac_try;;
2864
esac
2865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866
  (eval "$ac_compiler -v >&5") 2>&5
2867
  ac_status=$?
2868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869
  (exit $ac_status); }
2870
{ (ac_try="$ac_compiler -V >&5"
2871
case "(($ac_try" in
2872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873
  *) ac_try_echo=$ac_try;;
2874
esac
2875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876
  (eval "$ac_compiler -V >&5") 2>&5
2877
  ac_status=$?
2878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879
  (exit $ac_status); }
2880
2881
cat >conftest.$ac_ext <<_ACEOF
2882
/* confdefs.h.  */
2883
_ACEOF
2884
cat confdefs.h >>conftest.$ac_ext
2885
cat >>conftest.$ac_ext <<_ACEOF
2886
/* end confdefs.h.  */
2887
2888
int
2889
main ()
2890
{
2891
2892
  ;
2893
  return 0;
2894
}
2895
_ACEOF
2896
ac_clean_files_save=$ac_clean_files
2897
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2898
# Try to create an executable without -o first, disregard a.out.
2899
# It will help us diagnose broken compilers, and finding out an intuition
2900
# of exeext.
2901
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2902
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2903
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2904
#
2905
# List of possible output files, starting from the most likely.
2906
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2907
# only as a last resort.  b.out is created by i960 compilers.
2908
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2909
#
2910
# The IRIX 6 linker writes into existing files which may not be
2911
# executable, retaining their permissions.  Remove them first so a
2912
# subsequent execution test works.
2913
ac_rmfiles=
2914
for ac_file in $ac_files
2915
do
2916
  case $ac_file in
2917
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2919
  esac
2920
done
2921
rm -f $ac_rmfiles
2922
2923
if { (ac_try="$ac_link_default"
2924
case "(($ac_try" in
2925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926
  *) ac_try_echo=$ac_try;;
2927
esac
2928
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929
  (eval "$ac_link_default") 2>&5
2930
  ac_status=$?
2931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932
  (exit $ac_status); }; then
2933
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2936
# so that the user can short-circuit this test for compilers unknown to
2937
# Autoconf.
2938
for ac_file in $ac_files ''
2939
do
2940
  test -f "$ac_file" || continue
2941
  case $ac_file in
2942
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2943
	;;
2944
    [ab].out )
2945
	# We found the default executable, but exeext='' is most
2946
	# certainly right.
2947
	break;;
2948
    *.* )
2949
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950
	then :; else
2951
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952
	fi
2953
	# We set ac_cv_exeext here because the later test for it is not
2954
	# safe: cross compilers may not add the suffix if given an `-o'
2955
	# argument, so we may need to know it at that point already.
2956
	# Even if this section looks crufty: it has the advantage of
2957
	# actually working.
2958
	break;;
2959
    * )
2960
	break;;
2961
  esac
2962
done
2963
test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2965
else
2966
  ac_file=''
2967
fi
2968
2969
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2970
echo "${ECHO_T}$ac_file" >&6; }
2971
if test -z "$ac_file"; then
2972
  echo "$as_me: failed program was:" >&5
2973
sed 's/^/| /' conftest.$ac_ext >&5
2974
2975
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2976
See \`config.log' for more details." >&5
2977
echo "$as_me: error: C compiler cannot create executables
2978
See \`config.log' for more details." >&2;}
2979
   { (exit 77); exit 77; }; }
2980
fi
2981
2982
ac_exeext=$ac_cv_exeext
2983
2984
# Check that the compiler produces executables we can run.  If not, either
2985
# the compiler is broken, or we cross compile.
2986
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2987
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2988
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2989
# If not cross compiling, check that we can run a simple program.
2990
if test "$cross_compiling" != yes; then
2991
  if { ac_try='./$ac_file'
2992
  { (case "(($ac_try" in
2993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994
  *) ac_try_echo=$ac_try;;
2995
esac
2996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997
  (eval "$ac_try") 2>&5
2998
  ac_status=$?
2999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000
  (exit $ac_status); }; }; then
3001
    cross_compiling=no
3002
  else
3003
    if test "$cross_compiling" = maybe; then
3004
	cross_compiling=yes
3005
    else
3006
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3007
If you meant to cross compile, use \`--host'.
3008
See \`config.log' for more details." >&5
3009
echo "$as_me: error: cannot run C compiled programs.
3010
If you meant to cross compile, use \`--host'.
3011
See \`config.log' for more details." >&2;}
3012
   { (exit 1); exit 1; }; }
3013
    fi
3014
  fi
3015
fi
3016
{ echo "$as_me:$LINENO: result: yes" >&5
3017
echo "${ECHO_T}yes" >&6; }
3018
3019
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3020
ac_clean_files=$ac_clean_files_save
3021
# Check that the compiler produces executables we can run.  If not, either
3022
# the compiler is broken, or we cross compile.
3023
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3024
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3025
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3026
echo "${ECHO_T}$cross_compiling" >&6; }
3027
3028
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3029
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3030
if { (ac_try="$ac_link"
3031
case "(($ac_try" in
3032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033
  *) ac_try_echo=$ac_try;;
3034
esac
3035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036
  (eval "$ac_link") 2>&5
3037
  ac_status=$?
3038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039
  (exit $ac_status); }; then
3040
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3042
# work properly (i.e., refer to `conftest.exe'), while it won't with
3043
# `rm'.
3044
for ac_file in conftest.exe conftest conftest.*; do
3045
  test -f "$ac_file" || continue
3046
  case $ac_file in
3047
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3048
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049
	  break;;
3050
    * ) break;;
3051
  esac
3052
done
3053
else
3054
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3055
See \`config.log' for more details." >&5
3056
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3057
See \`config.log' for more details." >&2;}
3058
   { (exit 1); exit 1; }; }
3059
fi
3060
3061
rm -f conftest$ac_cv_exeext
3062
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3063
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3064
3065
rm -f conftest.$ac_ext
3066
EXEEXT=$ac_cv_exeext
3067
ac_exeext=$EXEEXT
3068
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3069
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3070
if test "${ac_cv_objext+set}" = set; then
3071
  echo $ECHO_N "(cached) $ECHO_C" >&6
3072
else
3073
  cat >conftest.$ac_ext <<_ACEOF
3074
/* confdefs.h.  */
3075
_ACEOF
3076
cat confdefs.h >>conftest.$ac_ext
3077
cat >>conftest.$ac_ext <<_ACEOF
3078
/* end confdefs.h.  */
3079
3080
int
3081
main ()
3082
{
3083
3084
  ;
3085
  return 0;
3086
}
3087
_ACEOF
3088
rm -f conftest.o conftest.obj
3089
if { (ac_try="$ac_compile"
3090
case "(($ac_try" in
3091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092
  *) ac_try_echo=$ac_try;;
3093
esac
3094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095
  (eval "$ac_compile") 2>&5
3096
  ac_status=$?
3097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098
  (exit $ac_status); }; then
3099
  for ac_file in conftest.o conftest.obj conftest.*; do
3100
  test -f "$ac_file" || continue;
3101
  case $ac_file in
3102
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3103
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3104
       break;;
3105
  esac
3106
done
3107
else
3108
  echo "$as_me: failed program was:" >&5
3109
sed 's/^/| /' conftest.$ac_ext >&5
3110
3111
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3112
See \`config.log' for more details." >&5
3113
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3114
See \`config.log' for more details." >&2;}
3115
   { (exit 1); exit 1; }; }
3116
fi
3117
3118
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3119
fi
3120
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3121
echo "${ECHO_T}$ac_cv_objext" >&6; }
3122
OBJEXT=$ac_cv_objext
3123
ac_objext=$OBJEXT
3124
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3125
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3126
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3127
  echo $ECHO_N "(cached) $ECHO_C" >&6
3128
else
3129
  cat >conftest.$ac_ext <<_ACEOF
3130
/* confdefs.h.  */
3131
_ACEOF
3132
cat confdefs.h >>conftest.$ac_ext
3133
cat >>conftest.$ac_ext <<_ACEOF
3134
/* end confdefs.h.  */
3135
3136
int
3137
main ()
3138
{
3139
#ifndef __GNUC__
3140
       choke me
3141
#endif
3142
3143
  ;
3144
  return 0;
3145
}
3146
_ACEOF
3147
rm -f conftest.$ac_objext
3148
if { (ac_try="$ac_compile"
3149
case "(($ac_try" in
3150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151
  *) ac_try_echo=$ac_try;;
3152
esac
3153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154
  (eval "$ac_compile") 2>conftest.er1
3155
  ac_status=$?
3156
  grep -v '^ *+' conftest.er1 >conftest.err
3157
  rm -f conftest.er1
3158
  cat conftest.err >&5
3159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160
  (exit $ac_status); } && {
3161
	 test -z "$ac_c_werror_flag" ||
3162
	 test ! -s conftest.err
3163
       } && test -s conftest.$ac_objext; then
3164
  ac_compiler_gnu=yes
3165
else
3166
  echo "$as_me: failed program was:" >&5
3167
sed 's/^/| /' conftest.$ac_ext >&5
3168
3169
	ac_compiler_gnu=no
3170
fi
3171
3172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3174
3175
fi
3176
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3177
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3178
GCC=`test $ac_compiler_gnu = yes && echo yes`
3179
ac_test_CFLAGS=${CFLAGS+set}
3180
ac_save_CFLAGS=$CFLAGS
3181
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3182
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3183
if test "${ac_cv_prog_cc_g+set}" = set; then
3184
  echo $ECHO_N "(cached) $ECHO_C" >&6
3185
else
3186
  ac_save_c_werror_flag=$ac_c_werror_flag
3187
   ac_c_werror_flag=yes
3188
   ac_cv_prog_cc_g=no
3189
   CFLAGS="-g"
3190
   cat >conftest.$ac_ext <<_ACEOF
3191
/* confdefs.h.  */
3192
_ACEOF
3193
cat confdefs.h >>conftest.$ac_ext
3194
cat >>conftest.$ac_ext <<_ACEOF
3195
/* end confdefs.h.  */
3196
3197
int
3198
main ()
3199
{
3200
3201
  ;
3202
  return 0;
3203
}
3204
_ACEOF
3205
rm -f conftest.$ac_objext
3206
if { (ac_try="$ac_compile"
3207
case "(($ac_try" in
3208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209
  *) ac_try_echo=$ac_try;;
3210
esac
3211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212
  (eval "$ac_compile") 2>conftest.er1
3213
  ac_status=$?
3214
  grep -v '^ *+' conftest.er1 >conftest.err
3215
  rm -f conftest.er1
3216
  cat conftest.err >&5
3217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218
  (exit $ac_status); } && {
3219
	 test -z "$ac_c_werror_flag" ||
3220
	 test ! -s conftest.err
3221
       } && test -s conftest.$ac_objext; then
3222
  ac_cv_prog_cc_g=yes
3223
else
3224
  echo "$as_me: failed program was:" >&5
3225
sed 's/^/| /' conftest.$ac_ext >&5
3226
3227
	CFLAGS=""
3228
      cat >conftest.$ac_ext <<_ACEOF
3229
/* confdefs.h.  */
3230
_ACEOF
3231
cat confdefs.h >>conftest.$ac_ext
3232
cat >>conftest.$ac_ext <<_ACEOF
3233
/* end confdefs.h.  */
3234
3235
int
3236
main ()
3237
{
3238
3239
  ;
3240
  return 0;
3241
}
3242
_ACEOF
3243
rm -f conftest.$ac_objext
3244
if { (ac_try="$ac_compile"
3245
case "(($ac_try" in
3246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247
  *) ac_try_echo=$ac_try;;
3248
esac
3249
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250
  (eval "$ac_compile") 2>conftest.er1
3251
  ac_status=$?
3252
  grep -v '^ *+' conftest.er1 >conftest.err
3253
  rm -f conftest.er1
3254
  cat conftest.err >&5
3255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256
  (exit $ac_status); } && {
3257
	 test -z "$ac_c_werror_flag" ||
3258
	 test ! -s conftest.err
3259
       } && test -s conftest.$ac_objext; then
3260
  :
3261
else
3262
  echo "$as_me: failed program was:" >&5
3263
sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
	ac_c_werror_flag=$ac_save_c_werror_flag
3266
	 CFLAGS="-g"
3267
	 cat >conftest.$ac_ext <<_ACEOF
3268
/* confdefs.h.  */
3269
_ACEOF
3270
cat confdefs.h >>conftest.$ac_ext
3271
cat >>conftest.$ac_ext <<_ACEOF
3272
/* end confdefs.h.  */
3273
3274
int
3275
main ()
3276
{
3277
3278
  ;
3279
  return 0;
3280
}
3281
_ACEOF
3282
rm -f conftest.$ac_objext
3283
if { (ac_try="$ac_compile"
3284
case "(($ac_try" in
3285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286
  *) ac_try_echo=$ac_try;;
3287
esac
3288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289
  (eval "$ac_compile") 2>conftest.er1
3290
  ac_status=$?
3291
  grep -v '^ *+' conftest.er1 >conftest.err
3292
  rm -f conftest.er1
3293
  cat conftest.err >&5
3294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295
  (exit $ac_status); } && {
3296
	 test -z "$ac_c_werror_flag" ||
3297
	 test ! -s conftest.err
3298
       } && test -s conftest.$ac_objext; then
3299
  ac_cv_prog_cc_g=yes
3300
else
3301
  echo "$as_me: failed program was:" >&5
3302
sed 's/^/| /' conftest.$ac_ext >&5
3303
3304
3305
fi
3306
3307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308
fi
3309
3310
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311
fi
3312
3313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314
   ac_c_werror_flag=$ac_save_c_werror_flag
3315
fi
3316
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3317
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3318
if test "$ac_test_CFLAGS" = set; then
3319
  CFLAGS=$ac_save_CFLAGS
3320
elif test $ac_cv_prog_cc_g = yes; then
3321
  if test "$GCC" = yes; then
3322
    CFLAGS="-g -O2"
3323
  else
3324
    CFLAGS="-g"
3325
  fi
3326
else
3327
  if test "$GCC" = yes; then
3328
    CFLAGS="-O2"
3329
  else
3330
    CFLAGS=
3331
  fi
3332
fi
3333
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3334
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3335
if test "${ac_cv_prog_cc_c89+set}" = set; then
3336
  echo $ECHO_N "(cached) $ECHO_C" >&6
3337
else
3338
  ac_cv_prog_cc_c89=no
3339
ac_save_CC=$CC
3340
cat >conftest.$ac_ext <<_ACEOF
3341
/* confdefs.h.  */
3342
_ACEOF
3343
cat confdefs.h >>conftest.$ac_ext
3344
cat >>conftest.$ac_ext <<_ACEOF
3345
/* end confdefs.h.  */
3346
#include <stdarg.h>
3347
#include <stdio.h>
3348
#include <sys/types.h>
3349
#include <sys/stat.h>
3350
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3351
struct buf { int x; };
3352
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353
static char *e (p, i)
3354
     char **p;
3355
     int i;
3356
{
3357
  return p[i];
3358
}
3359
static char *f (char * (*g) (char **, int), char **p, ...)
3360
{
3361
  char *s;
3362
  va_list v;
3363
  va_start (v,p);
3364
  s = g (p, va_arg (v,int));
3365
  va_end (v);
3366
  return s;
3367
}
3368
3369
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3370
   function prototypes and stuff, but not '\xHH' hex character constants.
3371
   These don't provoke an error unfortunately, instead are silently treated
3372
   as 'x'.  The following induces an error, until -std is added to get
3373
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3374
   array size at least.  It's necessary to write '\x00'==0 to get something
3375
   that's true only with -std.  */
3376
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3377
3378
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379
   inside strings and character constants.  */
3380
#define FOO(x) 'x'
3381
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3382
3383
int test (int i, double x);
3384
struct s1 {int (*f) (int a);};
3385
struct s2 {int (*f) (double a);};
3386
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387
int argc;
3388
char **argv;
3389
int
3390
main ()
3391
{
3392
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3393
  ;
3394
  return 0;
3395
}
3396
_ACEOF
3397
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3399
do
3400
  CC="$ac_save_CC $ac_arg"
3401
  rm -f conftest.$ac_objext
3402
if { (ac_try="$ac_compile"
3403
case "(($ac_try" in
3404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405
  *) ac_try_echo=$ac_try;;
3406
esac
3407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408
  (eval "$ac_compile") 2>conftest.er1
3409
  ac_status=$?
3410
  grep -v '^ *+' conftest.er1 >conftest.err
3411
  rm -f conftest.er1
3412
  cat conftest.err >&5
3413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414
  (exit $ac_status); } && {
3415
	 test -z "$ac_c_werror_flag" ||
3416
	 test ! -s conftest.err
3417
       } && test -s conftest.$ac_objext; then
3418
  ac_cv_prog_cc_c89=$ac_arg
3419
else
3420
  echo "$as_me: failed program was:" >&5
3421
sed 's/^/| /' conftest.$ac_ext >&5
3422
3423
3424
fi
3425
3426
rm -f core conftest.err conftest.$ac_objext
3427
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3428
done
3429
rm -f conftest.$ac_ext
3430
CC=$ac_save_CC
3431
3432
fi
3433
# AC_CACHE_VAL
3434
case "x$ac_cv_prog_cc_c89" in
3435
  x)
3436
    { echo "$as_me:$LINENO: result: none needed" >&5
3437
echo "${ECHO_T}none needed" >&6; } ;;
3438
  xno)
3439
    { echo "$as_me:$LINENO: result: unsupported" >&5
3440
echo "${ECHO_T}unsupported" >&6; } ;;
3441
  *)
3442
    CC="$CC $ac_cv_prog_cc_c89"
3443
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3444
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3445
esac
3446
3447
3448
ac_ext=c
3449
ac_cpp='$CPP $CPPFLAGS'
3450
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
depcc="$CC"   am_compiler_list=
3455
3456
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3457
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3458
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3459
  echo $ECHO_N "(cached) $ECHO_C" >&6
3460
else
3461
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3462
  # We make a subdir and do the tests there.  Otherwise we can end up
3463
  # making bogus files that we don't know about and never remove.  For
3464
  # instance it was reported that on HP-UX the gcc test will end up
3465
  # making a dummy file named `D' -- because `-MD' means `put the output
3466
  # in D'.
3467
  mkdir conftest.dir
3468
  # Copy depcomp to subdir because otherwise we won't find it if we're
3469
  # using a relative directory.
3470
  cp "$am_depcomp" conftest.dir
3471
  cd conftest.dir
3472
  # We will build objects and dependencies in a subdirectory because
3473
  # it helps to detect inapplicable dependency modes.  For instance
3474
  # both Tru64's cc and ICC support -MD to output dependencies as a
3475
  # side effect of compilation, but ICC will put the dependencies in
3476
  # the current directory while Tru64 will put them in the object
3477
  # directory.
3478
  mkdir sub
3479
3480
  am_cv_CC_dependencies_compiler_type=none
3481
  if test "$am_compiler_list" = ""; then
3482
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3483
  fi
3484
  for depmode in $am_compiler_list; do
3485
    # Setup a source with many dependencies, because some compilers
3486
    # like to wrap large dependency lists on column 80 (with \), and
3487
    # we should not choose a depcomp mode which is confused by this.
3488
    #
3489
    # We need to recreate these files for each test, as the compiler may
3490
    # overwrite some of them when testing with obscure command lines.
3491
    # This happens at least with the AIX C compiler.
3492
    : > sub/conftest.c
3493
    for i in 1 2 3 4 5 6; do
3494
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3495
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3496
      # Solaris 8's {/usr,}/bin/sh.
3497
      touch sub/conftst$i.h
3498
    done
3499
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3500
3501
    case $depmode in
3502
    nosideeffect)
3503
      # after this tag, mechanisms are not by side-effect, so they'll
3504
      # only be used when explicitly requested
3505
      if test "x$enable_dependency_tracking" = xyes; then
3506
	continue
3507
      else
3508
	break
3509
      fi
3510
      ;;
3511
    none) break ;;
3512
    esac
3513
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3514
    # mode.  It turns out that the SunPro C++ compiler does not properly
3515
    # handle `-M -o', and we need to detect this.
3516
    if depmode=$depmode \
3517
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3518
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3519
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3520
         >/dev/null 2>conftest.err &&
3521
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3522
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3523
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3524
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3525
      # icc doesn't choke on unknown options, it will just issue warnings
3526
      # or remarks (even with -Werror).  So we grep stderr for any message
3527
      # that says an option was ignored or not supported.
3528
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3529
      #   icc: Command line warning: ignoring option '-M'; no argument required
3530
      # The diagnosis changed in icc 8.0:
3531
      #   icc: Command line remark: option '-MP' not supported
3532
      if (grep 'ignoring option' conftest.err ||
3533
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3534
        am_cv_CC_dependencies_compiler_type=$depmode
3535
        break
3536
      fi
3537
    fi
3538
  done
3539
3540
  cd ..
3541
  rm -rf conftest.dir
3542
else
3543
  am_cv_CC_dependencies_compiler_type=none
3544
fi
3545
3546
fi
3547
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3548
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3549
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3550
3551
 if
3552
  test "x$enable_dependency_tracking" != xno \
3553
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3554
  am__fastdepCC_TRUE=
3555
  am__fastdepCC_FALSE='#'
3556
else
3557
  am__fastdepCC_TRUE='#'
3558
  am__fastdepCC_FALSE=
3559
fi
3560
3561
3562
3563
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3564
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3565
if test "${ac_cv_search_strerror+set}" = set; then
3566
  echo $ECHO_N "(cached) $ECHO_C" >&6
3567
else
3568
  ac_func_search_save_LIBS=$LIBS
3569
cat >conftest.$ac_ext <<_ACEOF
3570
/* confdefs.h.  */
3571
_ACEOF
3572
cat confdefs.h >>conftest.$ac_ext
3573
cat >>conftest.$ac_ext <<_ACEOF
3574
/* end confdefs.h.  */
3575
3576
/* Override any GCC internal prototype to avoid an error.
3577
   Use char because int might match the return type of a GCC
3578
   builtin and then its argument prototype would still apply.  */
3579
#ifdef __cplusplus
3580
extern "C"
3581
#endif
3582
char strerror ();
3583
int
3584
main ()
3585
{
3586
return strerror ();
3587
  ;
3588
  return 0;
3589
}
3590
_ACEOF
3591
for ac_lib in '' cposix; do
3592
  if test -z "$ac_lib"; then
3593
    ac_res="none required"
3594
  else
3595
    ac_res=-l$ac_lib
3596
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3597
  fi
3598
  rm -f conftest.$ac_objext conftest$ac_exeext
3599
if { (ac_try="$ac_link"
3600
case "(($ac_try" in
3601
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602
  *) ac_try_echo=$ac_try;;
3603
esac
3604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605
  (eval "$ac_link") 2>conftest.er1
3606
  ac_status=$?
3607
  grep -v '^ *+' conftest.er1 >conftest.err
3608
  rm -f conftest.er1
3609
  cat conftest.err >&5
3610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611
  (exit $ac_status); } && {
3612
	 test -z "$ac_c_werror_flag" ||
3613
	 test ! -s conftest.err
3614
       } && test -s conftest$ac_exeext &&
3615
       $as_test_x conftest$ac_exeext; then
3616
  ac_cv_search_strerror=$ac_res
3617
else
3618
  echo "$as_me: failed program was:" >&5
3619
sed 's/^/| /' conftest.$ac_ext >&5
3620
3621
3622
fi
3623
3624
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3625
      conftest$ac_exeext
3626
  if test "${ac_cv_search_strerror+set}" = set; then
3627
  break
3628
fi
3629
done
3630
if test "${ac_cv_search_strerror+set}" = set; then
3631
  :
3632
else
3633
  ac_cv_search_strerror=no
3634
fi
3635
rm conftest.$ac_ext
3636
LIBS=$ac_func_search_save_LIBS
3637
fi
3638
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3639
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3640
ac_res=$ac_cv_search_strerror
3641
if test "$ac_res" != no; then
3642
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3643
3644
fi
3645
3646
ac_ext=c
3647
ac_cpp='$CPP $CPPFLAGS'
3648
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
if test -n "$ac_tool_prefix"; then
3652
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3653
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3654
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3655
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3656
if test "${ac_cv_prog_CC+set}" = set; then
3657
  echo $ECHO_N "(cached) $ECHO_C" >&6
3658
else
3659
  if test -n "$CC"; then
3660
  ac_cv_prog_CC="$CC" # Let the user override the test.
3661
else
3662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663
for as_dir in $PATH
3664
do
3665
  IFS=$as_save_IFS
3666
  test -z "$as_dir" && as_dir=.
3667
  for ac_exec_ext in '' $ac_executable_extensions; do
3668
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3670
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671
    break 2
3672
  fi
3673
done
3674
done
3675
IFS=$as_save_IFS
3676
3677
fi
3678
fi
3679
CC=$ac_cv_prog_CC
3680
if test -n "$CC"; then
3681
  { echo "$as_me:$LINENO: result: $CC" >&5
3682
echo "${ECHO_T}$CC" >&6; }
3683
else
3684
  { echo "$as_me:$LINENO: result: no" >&5
3685
echo "${ECHO_T}no" >&6; }
3686
fi
3687
3688
3689
fi
3690
if test -z "$ac_cv_prog_CC"; then
3691
  ac_ct_CC=$CC
3692
  # Extract the first word of "gcc", so it can be a program name with args.
3693
set dummy gcc; ac_word=$2
3694
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3695
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3696
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3697
  echo $ECHO_N "(cached) $ECHO_C" >&6
3698
else
3699
  if test -n "$ac_ct_CC"; then
3700
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701
else
3702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703
for as_dir in $PATH
3704
do
3705
  IFS=$as_save_IFS
3706
  test -z "$as_dir" && as_dir=.
3707
  for ac_exec_ext in '' $ac_executable_extensions; do
3708
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709
    ac_cv_prog_ac_ct_CC="gcc"
3710
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3711
    break 2
3712
  fi
3713
done
3714
done
3715
IFS=$as_save_IFS
3716
3717
fi
3718
fi
3719
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3720
if test -n "$ac_ct_CC"; then
3721
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3722
echo "${ECHO_T}$ac_ct_CC" >&6; }
3723
else
3724
  { echo "$as_me:$LINENO: result: no" >&5
3725
echo "${ECHO_T}no" >&6; }
3726
fi
3727
3728
  if test "x$ac_ct_CC" = x; then
3729
    CC=""
3730
  else
3731
    case $cross_compiling:$ac_tool_warned in
3732
yes:)
3733
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3734
whose name does not start with the host triplet.  If you think this
3735
configuration is useful to you, please write to autoconf@gnu.org." >&5
3736
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3737
whose name does not start with the host triplet.  If you think this
3738
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3739
ac_tool_warned=yes ;;
3740
esac
3741
    CC=$ac_ct_CC
3742
  fi
3743
else
3744
  CC="$ac_cv_prog_CC"
3745
fi
3746
3747
if test -z "$CC"; then
3748
          if test -n "$ac_tool_prefix"; then
3749
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3750
set dummy ${ac_tool_prefix}cc; ac_word=$2
3751
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3752
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3753
if test "${ac_cv_prog_CC+set}" = set; then
3754
  echo $ECHO_N "(cached) $ECHO_C" >&6
3755
else
3756
  if test -n "$CC"; then
3757
  ac_cv_prog_CC="$CC" # Let the user override the test.
3758
else
3759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760
for as_dir in $PATH
3761
do
3762
  IFS=$as_save_IFS
3763
  test -z "$as_dir" && as_dir=.
3764
  for ac_exec_ext in '' $ac_executable_extensions; do
3765
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3767
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3768
    break 2
3769
  fi
3770
done
3771
done
3772
IFS=$as_save_IFS
3773
3774
fi
3775
fi
3776
CC=$ac_cv_prog_CC
3777
if test -n "$CC"; then
3778
  { echo "$as_me:$LINENO: result: $CC" >&5
3779
echo "${ECHO_T}$CC" >&6; }
3780
else
3781
  { echo "$as_me:$LINENO: result: no" >&5
3782
echo "${ECHO_T}no" >&6; }
3783
fi
3784
3785
3786
  fi
3787
fi
3788
if test -z "$CC"; then
3789
  # Extract the first word of "cc", so it can be a program name with args.
3790
set dummy cc; ac_word=$2
3791
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3792
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3793
if test "${ac_cv_prog_CC+set}" = set; then
3794
  echo $ECHO_N "(cached) $ECHO_C" >&6
3795
else
3796
  if test -n "$CC"; then
3797
  ac_cv_prog_CC="$CC" # Let the user override the test.
3798
else
3799
  ac_prog_rejected=no
3800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801
for as_dir in $PATH
3802
do
3803
  IFS=$as_save_IFS
3804
  test -z "$as_dir" && as_dir=.
3805
  for ac_exec_ext in '' $ac_executable_extensions; do
3806
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3808
       ac_prog_rejected=yes
3809
       continue
3810
     fi
3811
    ac_cv_prog_CC="cc"
3812
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813
    break 2
3814
  fi
3815
done
3816
done
3817
IFS=$as_save_IFS
3818
3819
if test $ac_prog_rejected = yes; then
3820
  # We found a bogon in the path, so make sure we never use it.
3821
  set dummy $ac_cv_prog_CC
3822
  shift
3823
  if test $# != 0; then
3824
    # We chose a different compiler from the bogus one.
3825
    # However, it has the same basename, so the bogon will be chosen
3826
    # first if we set CC to just the basename; use the full file name.
3827
    shift
3828
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3829
  fi
3830
fi
3831
fi
3832
fi
3833
CC=$ac_cv_prog_CC
3834
if test -n "$CC"; then
3835
  { echo "$as_me:$LINENO: result: $CC" >&5
3836
echo "${ECHO_T}$CC" >&6; }
3837
else
3838
  { echo "$as_me:$LINENO: result: no" >&5
3839
echo "${ECHO_T}no" >&6; }
3840
fi
3841
3842
3843
fi
3844
if test -z "$CC"; then
3845
  if test -n "$ac_tool_prefix"; then
3846
  for ac_prog in cl.exe
3847
  do
3848
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3850
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3851
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3852
if test "${ac_cv_prog_CC+set}" = set; then
3853
  echo $ECHO_N "(cached) $ECHO_C" >&6
3854
else
3855
  if test -n "$CC"; then
3856
  ac_cv_prog_CC="$CC" # Let the user override the test.
3857
else
3858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859
for as_dir in $PATH
3860
do
3861
  IFS=$as_save_IFS
3862
  test -z "$as_dir" && as_dir=.
3863
  for ac_exec_ext in '' $ac_executable_extensions; do
3864
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3866
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867
    break 2
3868
  fi
3869
done
3870
done
3871
IFS=$as_save_IFS
3872
3873
fi
3874
fi
3875
CC=$ac_cv_prog_CC
3876
if test -n "$CC"; then
3877
  { echo "$as_me:$LINENO: result: $CC" >&5
3878
echo "${ECHO_T}$CC" >&6; }
3879
else
3880
  { echo "$as_me:$LINENO: result: no" >&5
3881
echo "${ECHO_T}no" >&6; }
3882
fi
3883
3884
3885
    test -n "$CC" && break
3886
  done
3887
fi
3888
if test -z "$CC"; then
3889
  ac_ct_CC=$CC
3890
  for ac_prog in cl.exe
3891
do
3892
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3893
set dummy $ac_prog; ac_word=$2
3894
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3895
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3896
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3897
  echo $ECHO_N "(cached) $ECHO_C" >&6
3898
else
3899
  if test -n "$ac_ct_CC"; then
3900
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901
else
3902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903
for as_dir in $PATH
3904
do
3905
  IFS=$as_save_IFS
3906
  test -z "$as_dir" && as_dir=.
3907
  for ac_exec_ext in '' $ac_executable_extensions; do
3908
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909
    ac_cv_prog_ac_ct_CC="$ac_prog"
3910
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911
    break 2
3912
  fi
3913
done
3914
done
3915
IFS=$as_save_IFS
3916
3917
fi
3918
fi
3919
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920
if test -n "$ac_ct_CC"; then
3921
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3922
echo "${ECHO_T}$ac_ct_CC" >&6; }
3923
else
3924
  { echo "$as_me:$LINENO: result: no" >&5
3925
echo "${ECHO_T}no" >&6; }
3926
fi
3927
3928
3929
  test -n "$ac_ct_CC" && break
3930
done
3931
3932
  if test "x$ac_ct_CC" = x; then
3933
    CC=""
3934
  else
3935
    case $cross_compiling:$ac_tool_warned in
3936
yes:)
3937
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3938
whose name does not start with the host triplet.  If you think this
3939
configuration is useful to you, please write to autoconf@gnu.org." >&5
3940
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3941
whose name does not start with the host triplet.  If you think this
3942
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3943
ac_tool_warned=yes ;;
3944
esac
3945
    CC=$ac_ct_CC
3946
  fi
3947
fi
3948
3949
fi
3950
3951
3952
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3953
See \`config.log' for more details." >&5
3954
echo "$as_me: error: no acceptable C compiler found in \$PATH
3955
See \`config.log' for more details." >&2;}
3956
   { (exit 1); exit 1; }; }
3957
3958
# Provide some information about the compiler.
3959
echo "$as_me:$LINENO: checking for C compiler version" >&5
3960
ac_compiler=`set X $ac_compile; echo $2`
3961
{ (ac_try="$ac_compiler --version >&5"
3962
case "(($ac_try" in
3963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964
  *) ac_try_echo=$ac_try;;
3965
esac
3966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967
  (eval "$ac_compiler --version >&5") 2>&5
3968
  ac_status=$?
3969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970
  (exit $ac_status); }
3971
{ (ac_try="$ac_compiler -v >&5"
3972
case "(($ac_try" in
3973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974
  *) ac_try_echo=$ac_try;;
3975
esac
3976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977
  (eval "$ac_compiler -v >&5") 2>&5
3978
  ac_status=$?
3979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980
  (exit $ac_status); }
3981
{ (ac_try="$ac_compiler -V >&5"
3982
case "(($ac_try" in
3983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984
  *) ac_try_echo=$ac_try;;
3985
esac
3986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987
  (eval "$ac_compiler -V >&5") 2>&5
3988
  ac_status=$?
3989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990
  (exit $ac_status); }
3991
3992
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3993
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3994
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3995
  echo $ECHO_N "(cached) $ECHO_C" >&6
3996
else
3997
  cat >conftest.$ac_ext <<_ACEOF
3998
/* confdefs.h.  */
3999
_ACEOF
4000
cat confdefs.h >>conftest.$ac_ext
4001
cat >>conftest.$ac_ext <<_ACEOF
4002
/* end confdefs.h.  */
4003
4004
int
4005
main ()
4006
{
4007
#ifndef __GNUC__
4008
       choke me
4009
#endif
4010
4011
  ;
4012
  return 0;
4013
}
4014
_ACEOF
4015
rm -f conftest.$ac_objext
4016
if { (ac_try="$ac_compile"
4017
case "(($ac_try" in
4018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019
  *) ac_try_echo=$ac_try;;
4020
esac
4021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022
  (eval "$ac_compile") 2>conftest.er1
4023
  ac_status=$?
4024
  grep -v '^ *+' conftest.er1 >conftest.err
4025
  rm -f conftest.er1
4026
  cat conftest.err >&5
4027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028
  (exit $ac_status); } && {
4029
	 test -z "$ac_c_werror_flag" ||
4030
	 test ! -s conftest.err
4031
       } && test -s conftest.$ac_objext; then
4032
  ac_compiler_gnu=yes
4033
else
4034
  echo "$as_me: failed program was:" >&5
4035
sed 's/^/| /' conftest.$ac_ext >&5
4036
4037
	ac_compiler_gnu=no
4038
fi
4039
4040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4042
4043
fi
4044
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4045
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4046
GCC=`test $ac_compiler_gnu = yes && echo yes`
4047
ac_test_CFLAGS=${CFLAGS+set}
4048
ac_save_CFLAGS=$CFLAGS
4049
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4050
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4051
if test "${ac_cv_prog_cc_g+set}" = set; then
4052
  echo $ECHO_N "(cached) $ECHO_C" >&6
4053
else
4054
  ac_save_c_werror_flag=$ac_c_werror_flag
4055
   ac_c_werror_flag=yes
4056
   ac_cv_prog_cc_g=no
4057
   CFLAGS="-g"
4058
   cat >conftest.$ac_ext <<_ACEOF
4059
/* confdefs.h.  */
4060
_ACEOF
4061
cat confdefs.h >>conftest.$ac_ext
4062
cat >>conftest.$ac_ext <<_ACEOF
4063
/* end confdefs.h.  */
4064
4065
int
4066
main ()
4067
{
4068
4069
  ;
4070
  return 0;
4071
}
4072
_ACEOF
4073
rm -f conftest.$ac_objext
4074
if { (ac_try="$ac_compile"
4075
case "(($ac_try" in
4076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077
  *) ac_try_echo=$ac_try;;
4078
esac
4079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080
  (eval "$ac_compile") 2>conftest.er1
4081
  ac_status=$?
4082
  grep -v '^ *+' conftest.er1 >conftest.err
4083
  rm -f conftest.er1
4084
  cat conftest.err >&5
4085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086
  (exit $ac_status); } && {
4087
	 test -z "$ac_c_werror_flag" ||
4088
	 test ! -s conftest.err
4089
       } && test -s conftest.$ac_objext; then
4090
  ac_cv_prog_cc_g=yes
4091
else
4092
  echo "$as_me: failed program was:" >&5
4093
sed 's/^/| /' conftest.$ac_ext >&5
4094
4095
	CFLAGS=""
4096
      cat >conftest.$ac_ext <<_ACEOF
4097
/* confdefs.h.  */
4098
_ACEOF
4099
cat confdefs.h >>conftest.$ac_ext
4100
cat >>conftest.$ac_ext <<_ACEOF
4101
/* end confdefs.h.  */
4102
4103
int
4104
main ()
4105
{
4106
4107
  ;
4108
  return 0;
4109
}
4110
_ACEOF
4111
rm -f conftest.$ac_objext
4112
if { (ac_try="$ac_compile"
4113
case "(($ac_try" in
4114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115
  *) ac_try_echo=$ac_try;;
4116
esac
4117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118
  (eval "$ac_compile") 2>conftest.er1
4119
  ac_status=$?
4120
  grep -v '^ *+' conftest.er1 >conftest.err
4121
  rm -f conftest.er1
4122
  cat conftest.err >&5
4123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124
  (exit $ac_status); } && {
4125
	 test -z "$ac_c_werror_flag" ||
4126
	 test ! -s conftest.err
4127
       } && test -s conftest.$ac_objext; then
4128
  :
4129
else
4130
  echo "$as_me: failed program was:" >&5
4131
sed 's/^/| /' conftest.$ac_ext >&5
4132
4133
	ac_c_werror_flag=$ac_save_c_werror_flag
4134
	 CFLAGS="-g"
4135
	 cat >conftest.$ac_ext <<_ACEOF
4136
/* confdefs.h.  */
4137
_ACEOF
4138
cat confdefs.h >>conftest.$ac_ext
4139
cat >>conftest.$ac_ext <<_ACEOF
4140
/* end confdefs.h.  */
4141
4142
int
4143
main ()
4144
{
4145
4146
  ;
4147
  return 0;
4148
}
4149
_ACEOF
4150
rm -f conftest.$ac_objext
4151
if { (ac_try="$ac_compile"
4152
case "(($ac_try" in
4153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154
  *) ac_try_echo=$ac_try;;
4155
esac
4156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157
  (eval "$ac_compile") 2>conftest.er1
4158
  ac_status=$?
4159
  grep -v '^ *+' conftest.er1 >conftest.err
4160
  rm -f conftest.er1
4161
  cat conftest.err >&5
4162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163
  (exit $ac_status); } && {
4164
	 test -z "$ac_c_werror_flag" ||
4165
	 test ! -s conftest.err
4166
       } && test -s conftest.$ac_objext; then
4167
  ac_cv_prog_cc_g=yes
4168
else
4169
  echo "$as_me: failed program was:" >&5
4170
sed 's/^/| /' conftest.$ac_ext >&5
4171
4172
4173
fi
4174
4175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176
fi
4177
4178
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179
fi
4180
4181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182
   ac_c_werror_flag=$ac_save_c_werror_flag
4183
fi
4184
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4185
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4186
if test "$ac_test_CFLAGS" = set; then
4187
  CFLAGS=$ac_save_CFLAGS
4188
elif test $ac_cv_prog_cc_g = yes; then
4189
  if test "$GCC" = yes; then
4190
    CFLAGS="-g -O2"
4191
  else
4192
    CFLAGS="-g"
4193
  fi
4194
else
4195
  if test "$GCC" = yes; then
4196
    CFLAGS="-O2"
4197
  else
4198
    CFLAGS=
4199
  fi
4200
fi
4201
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4202
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4203
if test "${ac_cv_prog_cc_c89+set}" = set; then
4204
  echo $ECHO_N "(cached) $ECHO_C" >&6
4205
else
4206
  ac_cv_prog_cc_c89=no
4207
ac_save_CC=$CC
4208
cat >conftest.$ac_ext <<_ACEOF
4209
/* confdefs.h.  */
4210
_ACEOF
4211
cat confdefs.h >>conftest.$ac_ext
4212
cat >>conftest.$ac_ext <<_ACEOF
4213
/* end confdefs.h.  */
4214
#include <stdarg.h>
4215
#include <stdio.h>
4216
#include <sys/types.h>
4217
#include <sys/stat.h>
4218
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4219
struct buf { int x; };
4220
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221
static char *e (p, i)
4222
     char **p;
4223
     int i;
4224
{
4225
  return p[i];
4226
}
4227
static char *f (char * (*g) (char **, int), char **p, ...)
4228
{
4229
  char *s;
4230
  va_list v;
4231
  va_start (v,p);
4232
  s = g (p, va_arg (v,int));
4233
  va_end (v);
4234
  return s;
4235
}
4236
4237
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4238
   function prototypes and stuff, but not '\xHH' hex character constants.
4239
   These don't provoke an error unfortunately, instead are silently treated
4240
   as 'x'.  The following induces an error, until -std is added to get
4241
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4242
   array size at least.  It's necessary to write '\x00'==0 to get something
4243
   that's true only with -std.  */
4244
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4245
4246
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4247
   inside strings and character constants.  */
4248
#define FOO(x) 'x'
4249
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4250
4251
int test (int i, double x);
4252
struct s1 {int (*f) (int a);};
4253
struct s2 {int (*f) (double a);};
4254
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4255
int argc;
4256
char **argv;
4257
int
4258
main ()
4259
{
4260
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4261
  ;
4262
  return 0;
4263
}
4264
_ACEOF
4265
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4266
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267
do
4268
  CC="$ac_save_CC $ac_arg"
4269
  rm -f conftest.$ac_objext
4270
if { (ac_try="$ac_compile"
4271
case "(($ac_try" in
4272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273
  *) ac_try_echo=$ac_try;;
4274
esac
4275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276
  (eval "$ac_compile") 2>conftest.er1
4277
  ac_status=$?
4278
  grep -v '^ *+' conftest.er1 >conftest.err
4279
  rm -f conftest.er1
4280
  cat conftest.err >&5
4281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282
  (exit $ac_status); } && {
4283
	 test -z "$ac_c_werror_flag" ||
4284
	 test ! -s conftest.err
4285
       } && test -s conftest.$ac_objext; then
4286
  ac_cv_prog_cc_c89=$ac_arg
4287
else
4288
  echo "$as_me: failed program was:" >&5
4289
sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292
fi
4293
4294
rm -f core conftest.err conftest.$ac_objext
4295
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4296
done
4297
rm -f conftest.$ac_ext
4298
CC=$ac_save_CC
4299
4300
fi
4301
# AC_CACHE_VAL
4302
case "x$ac_cv_prog_cc_c89" in
4303
  x)
4304
    { echo "$as_me:$LINENO: result: none needed" >&5
4305
echo "${ECHO_T}none needed" >&6; } ;;
4306
  xno)
4307
    { echo "$as_me:$LINENO: result: unsupported" >&5
4308
echo "${ECHO_T}unsupported" >&6; } ;;
4309
  *)
4310
    CC="$CC $ac_cv_prog_cc_c89"
4311
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4312
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4313
esac
4314
4315
4316
ac_ext=c
4317
ac_cpp='$CPP $CPPFLAGS'
4318
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322
depcc="$CC"   am_compiler_list=
4323
4324
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4325
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4326
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4327
  echo $ECHO_N "(cached) $ECHO_C" >&6
4328
else
4329
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4330
  # We make a subdir and do the tests there.  Otherwise we can end up
4331
  # making bogus files that we don't know about and never remove.  For
4332
  # instance it was reported that on HP-UX the gcc test will end up
4333
  # making a dummy file named `D' -- because `-MD' means `put the output
4334
  # in D'.
4335
  mkdir conftest.dir
4336
  # Copy depcomp to subdir because otherwise we won't find it if we're
4337
  # using a relative directory.
4338
  cp "$am_depcomp" conftest.dir
4339
  cd conftest.dir
4340
  # We will build objects and dependencies in a subdirectory because
4341
  # it helps to detect inapplicable dependency modes.  For instance
4342
  # both Tru64's cc and ICC support -MD to output dependencies as a
4343
  # side effect of compilation, but ICC will put the dependencies in
4344
  # the current directory while Tru64 will put them in the object
4345
  # directory.
4346
  mkdir sub
4347
4348
  am_cv_CC_dependencies_compiler_type=none
4349
  if test "$am_compiler_list" = ""; then
4350
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4351
  fi
4352
  for depmode in $am_compiler_list; do
4353
    # Setup a source with many dependencies, because some compilers
4354
    # like to wrap large dependency lists on column 80 (with \), and
4355
    # we should not choose a depcomp mode which is confused by this.
4356
    #
4357
    # We need to recreate these files for each test, as the compiler may
4358
    # overwrite some of them when testing with obscure command lines.
4359
    # This happens at least with the AIX C compiler.
4360
    : > sub/conftest.c
4361
    for i in 1 2 3 4 5 6; do
4362
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4363
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4364
      # Solaris 8's {/usr,}/bin/sh.
4365
      touch sub/conftst$i.h
4366
    done
4367
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4368
4369
    case $depmode in
4370
    nosideeffect)
4371
      # after this tag, mechanisms are not by side-effect, so they'll
4372
      # only be used when explicitly requested
4373
      if test "x$enable_dependency_tracking" = xyes; then
4374
	continue
4375
      else
4376
	break
4377
      fi
4378
      ;;
4379
    none) break ;;
4380
    esac
4381
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4382
    # mode.  It turns out that the SunPro C++ compiler does not properly
4383
    # handle `-M -o', and we need to detect this.
4384
    if depmode=$depmode \
4385
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4386
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4387
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4388
         >/dev/null 2>conftest.err &&
4389
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4390
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4391
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4392
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4393
      # icc doesn't choke on unknown options, it will just issue warnings
4394
      # or remarks (even with -Werror).  So we grep stderr for any message
4395
      # that says an option was ignored or not supported.
4396
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4397
      #   icc: Command line warning: ignoring option '-M'; no argument required
4398
      # The diagnosis changed in icc 8.0:
4399
      #   icc: Command line remark: option '-MP' not supported
4400
      if (grep 'ignoring option' conftest.err ||
4401
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4402
        am_cv_CC_dependencies_compiler_type=$depmode
4403
        break
4404
      fi
4405
    fi
4406
  done
4407
4408
  cd ..
4409
  rm -rf conftest.dir
4410
else
4411
  am_cv_CC_dependencies_compiler_type=none
4412
fi
4413
4414
fi
4415
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4416
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4417
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4418
4419
 if
4420
  test "x$enable_dependency_tracking" != xno \
4421
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422
  am__fastdepCC_TRUE=
4423
  am__fastdepCC_FALSE='#'
4424
else
4425
  am__fastdepCC_TRUE='#'
4426
  am__fastdepCC_FALSE=
4427
fi
4428
4429
4430
ac_ext=c
4431
ac_cpp='$CPP $CPPFLAGS'
4432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435
if test -n "$ac_tool_prefix"; then
4436
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4437
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4438
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4439
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440
if test "${ac_cv_prog_CC+set}" = set; then
4441
  echo $ECHO_N "(cached) $ECHO_C" >&6
4442
else
4443
  if test -n "$CC"; then
4444
  ac_cv_prog_CC="$CC" # Let the user override the test.
4445
else
4446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447
for as_dir in $PATH
4448
do
4449
  IFS=$as_save_IFS
4450
  test -z "$as_dir" && as_dir=.
4451
  for ac_exec_ext in '' $ac_executable_extensions; do
4452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4454
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455
    break 2
4456
  fi
4457
done
4458
done
4459
IFS=$as_save_IFS
4460
4461
fi
4462
fi
4463
CC=$ac_cv_prog_CC
4464
if test -n "$CC"; then
4465
  { echo "$as_me:$LINENO: result: $CC" >&5
4466
echo "${ECHO_T}$CC" >&6; }
4467
else
4468
  { echo "$as_me:$LINENO: result: no" >&5
4469
echo "${ECHO_T}no" >&6; }
4470
fi
4471
4472
4473
fi
4474
if test -z "$ac_cv_prog_CC"; then
4475
  ac_ct_CC=$CC
4476
  # Extract the first word of "gcc", so it can be a program name with args.
4477
set dummy gcc; ac_word=$2
4478
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4479
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4481
  echo $ECHO_N "(cached) $ECHO_C" >&6
4482
else
4483
  if test -n "$ac_ct_CC"; then
4484
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485
else
4486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487
for as_dir in $PATH
4488
do
4489
  IFS=$as_save_IFS
4490
  test -z "$as_dir" && as_dir=.
4491
  for ac_exec_ext in '' $ac_executable_extensions; do
4492
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493
    ac_cv_prog_ac_ct_CC="gcc"
4494
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495
    break 2
4496
  fi
4497
done
4498
done
4499
IFS=$as_save_IFS
4500
4501
fi
4502
fi
4503
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4504
if test -n "$ac_ct_CC"; then
4505
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4506
echo "${ECHO_T}$ac_ct_CC" >&6; }
4507
else
4508
  { echo "$as_me:$LINENO: result: no" >&5
4509
echo "${ECHO_T}no" >&6; }
4510
fi
4511
4512
  if test "x$ac_ct_CC" = x; then
4513
    CC=""
4514
  else
4515
    case $cross_compiling:$ac_tool_warned in
4516
yes:)
4517
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4518
whose name does not start with the host triplet.  If you think this
4519
configuration is useful to you, please write to autoconf@gnu.org." >&5
4520
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4521
whose name does not start with the host triplet.  If you think this
4522
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4523
ac_tool_warned=yes ;;
4524
esac
4525
    CC=$ac_ct_CC
4526
  fi
4527
else
4528
  CC="$ac_cv_prog_CC"
4529
fi
4530
4531
if test -z "$CC"; then
4532
          if test -n "$ac_tool_prefix"; then
4533
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4534
set dummy ${ac_tool_prefix}cc; ac_word=$2
4535
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537
if test "${ac_cv_prog_CC+set}" = set; then
4538
  echo $ECHO_N "(cached) $ECHO_C" >&6
4539
else
4540
  if test -n "$CC"; then
4541
  ac_cv_prog_CC="$CC" # Let the user override the test.
4542
else
4543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544
for as_dir in $PATH
4545
do
4546
  IFS=$as_save_IFS
4547
  test -z "$as_dir" && as_dir=.
4548
  for ac_exec_ext in '' $ac_executable_extensions; do
4549
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4551
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552
    break 2
4553
  fi
4554
done
4555
done
4556
IFS=$as_save_IFS
4557
4558
fi
4559
fi
4560
CC=$ac_cv_prog_CC
4561
if test -n "$CC"; then
4562
  { echo "$as_me:$LINENO: result: $CC" >&5
4563
echo "${ECHO_T}$CC" >&6; }
4564
else
4565
  { echo "$as_me:$LINENO: result: no" >&5
4566
echo "${ECHO_T}no" >&6; }
4567
fi
4568
4569
4570
  fi
4571
fi
4572
if test -z "$CC"; then
4573
  # Extract the first word of "cc", so it can be a program name with args.
4574
set dummy cc; ac_word=$2
4575
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4576
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577
if test "${ac_cv_prog_CC+set}" = set; then
4578
  echo $ECHO_N "(cached) $ECHO_C" >&6
4579
else
4580
  if test -n "$CC"; then
4581
  ac_cv_prog_CC="$CC" # Let the user override the test.
4582
else
4583
  ac_prog_rejected=no
4584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585
for as_dir in $PATH
4586
do
4587
  IFS=$as_save_IFS
4588
  test -z "$as_dir" && as_dir=.
4589
  for ac_exec_ext in '' $ac_executable_extensions; do
4590
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4592
       ac_prog_rejected=yes
4593
       continue
4594
     fi
4595
    ac_cv_prog_CC="cc"
4596
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597
    break 2
4598
  fi
4599
done
4600
done
4601
IFS=$as_save_IFS
4602
4603
if test $ac_prog_rejected = yes; then
4604
  # We found a bogon in the path, so make sure we never use it.
4605
  set dummy $ac_cv_prog_CC
4606
  shift
4607
  if test $# != 0; then
4608
    # We chose a different compiler from the bogus one.
4609
    # However, it has the same basename, so the bogon will be chosen
4610
    # first if we set CC to just the basename; use the full file name.
4611
    shift
4612
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4613
  fi
4614
fi
4615
fi
4616
fi
4617
CC=$ac_cv_prog_CC
4618
if test -n "$CC"; then
4619
  { echo "$as_me:$LINENO: result: $CC" >&5
4620
echo "${ECHO_T}$CC" >&6; }
4621
else
4622
  { echo "$as_me:$LINENO: result: no" >&5
4623
echo "${ECHO_T}no" >&6; }
4624
fi
4625
4626
4627
fi
4628
if test -z "$CC"; then
4629
  if test -n "$ac_tool_prefix"; then
4630
  for ac_prog in cl.exe
4631
  do
4632
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636
if test "${ac_cv_prog_CC+set}" = set; then
4637
  echo $ECHO_N "(cached) $ECHO_C" >&6
4638
else
4639
  if test -n "$CC"; then
4640
  ac_cv_prog_CC="$CC" # Let the user override the test.
4641
else
4642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643
for as_dir in $PATH
4644
do
4645
  IFS=$as_save_IFS
4646
  test -z "$as_dir" && as_dir=.
4647
  for ac_exec_ext in '' $ac_executable_extensions; do
4648
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4650
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651
    break 2
4652
  fi
4653
done
4654
done
4655
IFS=$as_save_IFS
4656
4657
fi
4658
fi
4659
CC=$ac_cv_prog_CC
4660
if test -n "$CC"; then
4661
  { echo "$as_me:$LINENO: result: $CC" >&5
4662
echo "${ECHO_T}$CC" >&6; }
4663
else
4664
  { echo "$as_me:$LINENO: result: no" >&5
4665
echo "${ECHO_T}no" >&6; }
4666
fi
4667
4668
4669
    test -n "$CC" && break
4670
  done
4671
fi
4672
if test -z "$CC"; then
4673
  ac_ct_CC=$CC
4674
  for ac_prog in cl.exe
4675
do
4676
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4677
set dummy $ac_prog; ac_word=$2
4678
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4681
  echo $ECHO_N "(cached) $ECHO_C" >&6
4682
else
4683
  if test -n "$ac_ct_CC"; then
4684
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685
else
4686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687
for as_dir in $PATH
4688
do
4689
  IFS=$as_save_IFS
4690
  test -z "$as_dir" && as_dir=.
4691
  for ac_exec_ext in '' $ac_executable_extensions; do
4692
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693
    ac_cv_prog_ac_ct_CC="$ac_prog"
4694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695
    break 2
4696
  fi
4697
done
4698
done
4699
IFS=$as_save_IFS
4700
4701
fi
4702
fi
4703
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704
if test -n "$ac_ct_CC"; then
4705
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4706
echo "${ECHO_T}$ac_ct_CC" >&6; }
4707
else
4708
  { echo "$as_me:$LINENO: result: no" >&5
4709
echo "${ECHO_T}no" >&6; }
4710
fi
4711
4712
4713
  test -n "$ac_ct_CC" && break
4714
done
4715
4716
  if test "x$ac_ct_CC" = x; then
4717
    CC=""
4718
  else
4719
    case $cross_compiling:$ac_tool_warned in
4720
yes:)
4721
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4722
whose name does not start with the host triplet.  If you think this
4723
configuration is useful to you, please write to autoconf@gnu.org." >&5
4724
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4725
whose name does not start with the host triplet.  If you think this
4726
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4727
ac_tool_warned=yes ;;
4728
esac
4729
    CC=$ac_ct_CC
4730
  fi
4731
fi
4732
4733
fi
4734
4735
4736
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4737
See \`config.log' for more details." >&5
4738
echo "$as_me: error: no acceptable C compiler found in \$PATH
4739
See \`config.log' for more details." >&2;}
4740
   { (exit 1); exit 1; }; }
4741
4742
# Provide some information about the compiler.
4743
echo "$as_me:$LINENO: checking for C compiler version" >&5
4744
ac_compiler=`set X $ac_compile; echo $2`
4745
{ (ac_try="$ac_compiler --version >&5"
4746
case "(($ac_try" in
4747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748
  *) ac_try_echo=$ac_try;;
4749
esac
4750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751
  (eval "$ac_compiler --version >&5") 2>&5
4752
  ac_status=$?
4753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754
  (exit $ac_status); }
4755
{ (ac_try="$ac_compiler -v >&5"
4756
case "(($ac_try" in
4757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758
  *) ac_try_echo=$ac_try;;
4759
esac
4760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761
  (eval "$ac_compiler -v >&5") 2>&5
4762
  ac_status=$?
4763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764
  (exit $ac_status); }
4765
{ (ac_try="$ac_compiler -V >&5"
4766
case "(($ac_try" in
4767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768
  *) ac_try_echo=$ac_try;;
4769
esac
4770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771
  (eval "$ac_compiler -V >&5") 2>&5
4772
  ac_status=$?
4773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774
  (exit $ac_status); }
4775
4776
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4777
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4778
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4779
  echo $ECHO_N "(cached) $ECHO_C" >&6
4780
else
4781
  cat >conftest.$ac_ext <<_ACEOF
4782
/* confdefs.h.  */
4783
_ACEOF
4784
cat confdefs.h >>conftest.$ac_ext
4785
cat >>conftest.$ac_ext <<_ACEOF
4786
/* end confdefs.h.  */
4787
4788
int
4789
main ()
4790
{
4791
#ifndef __GNUC__
4792
       choke me
4793
#endif
4794
4795
  ;
4796
  return 0;
4797
}
4798
_ACEOF
4799
rm -f conftest.$ac_objext
4800
if { (ac_try="$ac_compile"
4801
case "(($ac_try" in
4802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803
  *) ac_try_echo=$ac_try;;
4804
esac
4805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806
  (eval "$ac_compile") 2>conftest.er1
4807
  ac_status=$?
4808
  grep -v '^ *+' conftest.er1 >conftest.err
4809
  rm -f conftest.er1
4810
  cat conftest.err >&5
4811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812
  (exit $ac_status); } && {
4813
	 test -z "$ac_c_werror_flag" ||
4814
	 test ! -s conftest.err
4815
       } && test -s conftest.$ac_objext; then
4816
  ac_compiler_gnu=yes
4817
else
4818
  echo "$as_me: failed program was:" >&5
4819
sed 's/^/| /' conftest.$ac_ext >&5
4820
4821
	ac_compiler_gnu=no
4822
fi
4823
4824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4826
4827
fi
4828
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4829
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4830
GCC=`test $ac_compiler_gnu = yes && echo yes`
4831
ac_test_CFLAGS=${CFLAGS+set}
4832
ac_save_CFLAGS=$CFLAGS
4833
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4834
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4835
if test "${ac_cv_prog_cc_g+set}" = set; then
4836
  echo $ECHO_N "(cached) $ECHO_C" >&6
4837
else
4838
  ac_save_c_werror_flag=$ac_c_werror_flag
4839
   ac_c_werror_flag=yes
4840
   ac_cv_prog_cc_g=no
4841
   CFLAGS="-g"
4842
   cat >conftest.$ac_ext <<_ACEOF
4843
/* confdefs.h.  */
4844
_ACEOF
4845
cat confdefs.h >>conftest.$ac_ext
4846
cat >>conftest.$ac_ext <<_ACEOF
4847
/* end confdefs.h.  */
4848
4849
int
4850
main ()
4851
{
4852
4853
  ;
4854
  return 0;
4855
}
4856
_ACEOF
4857
rm -f conftest.$ac_objext
4858
if { (ac_try="$ac_compile"
4859
case "(($ac_try" in
4860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861
  *) ac_try_echo=$ac_try;;
4862
esac
4863
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864
  (eval "$ac_compile") 2>conftest.er1
4865
  ac_status=$?
4866
  grep -v '^ *+' conftest.er1 >conftest.err
4867
  rm -f conftest.er1
4868
  cat conftest.err >&5
4869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870
  (exit $ac_status); } && {
4871
	 test -z "$ac_c_werror_flag" ||
4872
	 test ! -s conftest.err
4873
       } && test -s conftest.$ac_objext; then
4874
  ac_cv_prog_cc_g=yes
4875
else
4876
  echo "$as_me: failed program was:" >&5
4877
sed 's/^/| /' conftest.$ac_ext >&5
4878
4879
	CFLAGS=""
4880
      cat >conftest.$ac_ext <<_ACEOF
4881
/* confdefs.h.  */
4882
_ACEOF
4883
cat confdefs.h >>conftest.$ac_ext
4884
cat >>conftest.$ac_ext <<_ACEOF
4885
/* end confdefs.h.  */
4886
4887
int
4888
main ()
4889
{
4890
4891
  ;
4892
  return 0;
4893
}
4894
_ACEOF
4895
rm -f conftest.$ac_objext
4896
if { (ac_try="$ac_compile"
4897
case "(($ac_try" in
4898
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899
  *) ac_try_echo=$ac_try;;
4900
esac
4901
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902
  (eval "$ac_compile") 2>conftest.er1
4903
  ac_status=$?
4904
  grep -v '^ *+' conftest.er1 >conftest.err
4905
  rm -f conftest.er1
4906
  cat conftest.err >&5
4907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908
  (exit $ac_status); } && {
4909
	 test -z "$ac_c_werror_flag" ||
4910
	 test ! -s conftest.err
4911
       } && test -s conftest.$ac_objext; then
4912
  :
4913
else
4914
  echo "$as_me: failed program was:" >&5
4915
sed 's/^/| /' conftest.$ac_ext >&5
4916
4917
	ac_c_werror_flag=$ac_save_c_werror_flag
4918
	 CFLAGS="-g"
4919
	 cat >conftest.$ac_ext <<_ACEOF
4920
/* confdefs.h.  */
4921
_ACEOF
4922
cat confdefs.h >>conftest.$ac_ext
4923
cat >>conftest.$ac_ext <<_ACEOF
4924
/* end confdefs.h.  */
4925
4926
int
4927
main ()
4928
{
4929
4930
  ;
4931
  return 0;
4932
}
4933
_ACEOF
4934
rm -f conftest.$ac_objext
4935
if { (ac_try="$ac_compile"
4936
case "(($ac_try" in
4937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938
  *) ac_try_echo=$ac_try;;
4939
esac
4940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941
  (eval "$ac_compile") 2>conftest.er1
4942
  ac_status=$?
4943
  grep -v '^ *+' conftest.er1 >conftest.err
4944
  rm -f conftest.er1
4945
  cat conftest.err >&5
4946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947
  (exit $ac_status); } && {
4948
	 test -z "$ac_c_werror_flag" ||
4949
	 test ! -s conftest.err
4950
       } && test -s conftest.$ac_objext; then
4951
  ac_cv_prog_cc_g=yes
4952
else
4953
  echo "$as_me: failed program was:" >&5
4954
sed 's/^/| /' conftest.$ac_ext >&5
4955
4956
4957
fi
4958
4959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960
fi
4961
4962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963
fi
4964
4965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966
   ac_c_werror_flag=$ac_save_c_werror_flag
4967
fi
4968
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4969
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4970
if test "$ac_test_CFLAGS" = set; then
4971
  CFLAGS=$ac_save_CFLAGS
4972
elif test $ac_cv_prog_cc_g = yes; then
4973
  if test "$GCC" = yes; then
4974
    CFLAGS="-g -O2"
4975
  else
4976
    CFLAGS="-g"
4977
  fi
4978
else
4979
  if test "$GCC" = yes; then
4980
    CFLAGS="-O2"
4981
  else
4982
    CFLAGS=
4983
  fi
4984
fi
4985
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4986
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4987
if test "${ac_cv_prog_cc_c89+set}" = set; then
4988
  echo $ECHO_N "(cached) $ECHO_C" >&6
4989
else
4990
  ac_cv_prog_cc_c89=no
4991
ac_save_CC=$CC
4992
cat >conftest.$ac_ext <<_ACEOF
4993
/* confdefs.h.  */
4994
_ACEOF
4995
cat confdefs.h >>conftest.$ac_ext
4996
cat >>conftest.$ac_ext <<_ACEOF
4997
/* end confdefs.h.  */
4998
#include <stdarg.h>
4999
#include <stdio.h>
5000
#include <sys/types.h>
5001
#include <sys/stat.h>
5002
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5003
struct buf { int x; };
5004
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5005
static char *e (p, i)
5006
     char **p;
5007
     int i;
5008
{
5009
  return p[i];
5010
}
5011
static char *f (char * (*g) (char **, int), char **p, ...)
5012
{
5013
  char *s;
5014
  va_list v;
5015
  va_start (v,p);
5016
  s = g (p, va_arg (v,int));
5017
  va_end (v);
5018
  return s;
5019
}
5020
5021
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5022
   function prototypes and stuff, but not '\xHH' hex character constants.
5023
   These don't provoke an error unfortunately, instead are silently treated
5024
   as 'x'.  The following induces an error, until -std is added to get
5025
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5026
   array size at least.  It's necessary to write '\x00'==0 to get something
5027
   that's true only with -std.  */
5028
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5029
5030
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5031
   inside strings and character constants.  */
5032
#define FOO(x) 'x'
5033
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5034
5035
int test (int i, double x);
5036
struct s1 {int (*f) (int a);};
5037
struct s2 {int (*f) (double a);};
5038
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5039
int argc;
5040
char **argv;
5041
int
5042
main ()
5043
{
5044
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5045
  ;
5046
  return 0;
5047
}
5048
_ACEOF
5049
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5050
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5051
do
5052
  CC="$ac_save_CC $ac_arg"
5053
  rm -f conftest.$ac_objext
5054
if { (ac_try="$ac_compile"
5055
case "(($ac_try" in
5056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057
  *) ac_try_echo=$ac_try;;
5058
esac
5059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060
  (eval "$ac_compile") 2>conftest.er1
5061
  ac_status=$?
5062
  grep -v '^ *+' conftest.er1 >conftest.err
5063
  rm -f conftest.er1
5064
  cat conftest.err >&5
5065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066
  (exit $ac_status); } && {
5067
	 test -z "$ac_c_werror_flag" ||
5068
	 test ! -s conftest.err
5069
       } && test -s conftest.$ac_objext; then
5070
  ac_cv_prog_cc_c89=$ac_arg
5071
else
5072
  echo "$as_me: failed program was:" >&5
5073
sed 's/^/| /' conftest.$ac_ext >&5
5074
5075
5076
fi
5077
5078
rm -f core conftest.err conftest.$ac_objext
5079
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5080
done
5081
rm -f conftest.$ac_ext
5082
CC=$ac_save_CC
5083
5084
fi
5085
# AC_CACHE_VAL
5086
case "x$ac_cv_prog_cc_c89" in
5087
  x)
5088
    { echo "$as_me:$LINENO: result: none needed" >&5
5089
echo "${ECHO_T}none needed" >&6; } ;;
5090
  xno)
5091
    { echo "$as_me:$LINENO: result: unsupported" >&5
5092
echo "${ECHO_T}unsupported" >&6; } ;;
5093
  *)
5094
    CC="$CC $ac_cv_prog_cc_c89"
5095
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5096
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5097
esac
5098
5099
5100
ac_ext=c
5101
ac_cpp='$CPP $CPPFLAGS'
5102
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106
depcc="$CC"   am_compiler_list=
5107
5108
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5109
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5110
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5111
  echo $ECHO_N "(cached) $ECHO_C" >&6
5112
else
5113
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5114
  # We make a subdir and do the tests there.  Otherwise we can end up
5115
  # making bogus files that we don't know about and never remove.  For
5116
  # instance it was reported that on HP-UX the gcc test will end up
5117
  # making a dummy file named `D' -- because `-MD' means `put the output
5118
  # in D'.
5119
  mkdir conftest.dir
5120
  # Copy depcomp to subdir because otherwise we won't find it if we're
5121
  # using a relative directory.
5122
  cp "$am_depcomp" conftest.dir
5123
  cd conftest.dir
5124
  # We will build objects and dependencies in a subdirectory because
5125
  # it helps to detect inapplicable dependency modes.  For instance
5126
  # both Tru64's cc and ICC support -MD to output dependencies as a
5127
  # side effect of compilation, but ICC will put the dependencies in
5128
  # the current directory while Tru64 will put them in the object
5129
  # directory.
5130
  mkdir sub
5131
5132
  am_cv_CC_dependencies_compiler_type=none
5133
  if test "$am_compiler_list" = ""; then
5134
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5135
  fi
5136
  for depmode in $am_compiler_list; do
5137
    # Setup a source with many dependencies, because some compilers
5138
    # like to wrap large dependency lists on column 80 (with \), and
5139
    # we should not choose a depcomp mode which is confused by this.
5140
    #
5141
    # We need to recreate these files for each test, as the compiler may
5142
    # overwrite some of them when testing with obscure command lines.
5143
    # This happens at least with the AIX C compiler.
5144
    : > sub/conftest.c
5145
    for i in 1 2 3 4 5 6; do
5146
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5147
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5148
      # Solaris 8's {/usr,}/bin/sh.
5149
      touch sub/conftst$i.h
5150
    done
5151
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5152
5153
    case $depmode in
5154
    nosideeffect)
5155
      # after this tag, mechanisms are not by side-effect, so they'll
5156
      # only be used when explicitly requested
5157
      if test "x$enable_dependency_tracking" = xyes; then
5158
	continue
5159
      else
5160
	break
5161
      fi
5162
      ;;
5163
    none) break ;;
5164
    esac
5165
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5166
    # mode.  It turns out that the SunPro C++ compiler does not properly
5167
    # handle `-M -o', and we need to detect this.
5168
    if depmode=$depmode \
5169
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5170
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5171
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5172
         >/dev/null 2>conftest.err &&
5173
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5174
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5175
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5176
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5177
      # icc doesn't choke on unknown options, it will just issue warnings
5178
      # or remarks (even with -Werror).  So we grep stderr for any message
5179
      # that says an option was ignored or not supported.
5180
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5181
      #   icc: Command line warning: ignoring option '-M'; no argument required
5182
      # The diagnosis changed in icc 8.0:
5183
      #   icc: Command line remark: option '-MP' not supported
5184
      if (grep 'ignoring option' conftest.err ||
5185
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5186
        am_cv_CC_dependencies_compiler_type=$depmode
5187
        break
5188
      fi
5189
    fi
5190
  done
5191
5192
  cd ..
5193
  rm -rf conftest.dir
5194
else
5195
  am_cv_CC_dependencies_compiler_type=none
5196
fi
5197
5198
fi
5199
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5200
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5201
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5202
5203
 if
5204
  test "x$enable_dependency_tracking" != xno \
5205
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5206
  am__fastdepCC_TRUE=
5207
  am__fastdepCC_FALSE='#'
5208
else
5209
  am__fastdepCC_TRUE='#'
5210
  am__fastdepCC_FALSE=
5211
fi
5212
5213
5214
5215
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5216
5217
ac_ext=c
5218
ac_cpp='$CPP $CPPFLAGS'
5219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5223
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5224
# On Suns, sometimes $CPP names a directory.
5225
if test -n "$CPP" && test -d "$CPP"; then
5226
  CPP=
5227
fi
5228
if test -z "$CPP"; then
5229
  if test "${ac_cv_prog_CPP+set}" = set; then
5230
  echo $ECHO_N "(cached) $ECHO_C" >&6
5231
else
5232
      # Double quotes because CPP needs to be expanded
5233
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5234
    do
5235
      ac_preproc_ok=false
5236
for ac_c_preproc_warn_flag in '' yes
5237
do
5238
  # Use a header file that comes with gcc, so configuring glibc
5239
  # with a fresh cross-compiler works.
5240
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5241
  # <limits.h> exists even on freestanding compilers.
5242
  # On the NeXT, cc -E runs the code through the compiler's parser,
5243
  # not just through cpp. "Syntax error" is here to catch this case.
5244
  cat >conftest.$ac_ext <<_ACEOF
5245
/* confdefs.h.  */
5246
_ACEOF
5247
cat confdefs.h >>conftest.$ac_ext
5248
cat >>conftest.$ac_ext <<_ACEOF
5249
/* end confdefs.h.  */
5250
#ifdef __STDC__
5251
# include <limits.h>
5252
#else
5253
# include <assert.h>
5254
#endif
5255
		     Syntax error
5256
_ACEOF
5257
if { (ac_try="$ac_cpp conftest.$ac_ext"
5258
case "(($ac_try" in
5259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260
  *) ac_try_echo=$ac_try;;
5261
esac
5262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5264
  ac_status=$?
5265
  grep -v '^ *+' conftest.er1 >conftest.err
5266
  rm -f conftest.er1
5267
  cat conftest.err >&5
5268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
  (exit $ac_status); } >/dev/null && {
5270
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5271
	 test ! -s conftest.err
5272
       }; then
5273
  :
5274
else
5275
  echo "$as_me: failed program was:" >&5
5276
sed 's/^/| /' conftest.$ac_ext >&5
5277
5278
  # Broken: fails on valid input.
5279
continue
5280
fi
5281
5282
rm -f conftest.err conftest.$ac_ext
5283
5284
  # OK, works on sane cases.  Now check whether nonexistent headers
5285
  # can be detected and how.
5286
  cat >conftest.$ac_ext <<_ACEOF
5287
/* confdefs.h.  */
5288
_ACEOF
5289
cat confdefs.h >>conftest.$ac_ext
5290
cat >>conftest.$ac_ext <<_ACEOF
5291
/* end confdefs.h.  */
5292
#include <ac_nonexistent.h>
5293
_ACEOF
5294
if { (ac_try="$ac_cpp conftest.$ac_ext"
5295
case "(($ac_try" in
5296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297
  *) ac_try_echo=$ac_try;;
5298
esac
5299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5301
  ac_status=$?
5302
  grep -v '^ *+' conftest.er1 >conftest.err
5303
  rm -f conftest.er1
5304
  cat conftest.err >&5
5305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306
  (exit $ac_status); } >/dev/null && {
5307
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5308
	 test ! -s conftest.err
5309
       }; then
5310
  # Broken: success on invalid input.
5311
continue
5312
else
5313
  echo "$as_me: failed program was:" >&5
5314
sed 's/^/| /' conftest.$ac_ext >&5
5315
5316
  # Passes both tests.
5317
ac_preproc_ok=:
5318
break
5319
fi
5320
5321
rm -f conftest.err conftest.$ac_ext
5322
5323
done
5324
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5325
rm -f conftest.err conftest.$ac_ext
5326
if $ac_preproc_ok; then
5327
  break
5328
fi
5329
5330
    done
5331
    ac_cv_prog_CPP=$CPP
5332
5333
fi
5334
  CPP=$ac_cv_prog_CPP
5335
else
5336
  ac_cv_prog_CPP=$CPP
5337
fi
5338
{ echo "$as_me:$LINENO: result: $CPP" >&5
5339
echo "${ECHO_T}$CPP" >&6; }
5340
ac_preproc_ok=false
5341
for ac_c_preproc_warn_flag in '' yes
5342
do
5343
  # Use a header file that comes with gcc, so configuring glibc
5344
  # with a fresh cross-compiler works.
5345
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5346
  # <limits.h> exists even on freestanding compilers.
5347
  # On the NeXT, cc -E runs the code through the compiler's parser,
5348
  # not just through cpp. "Syntax error" is here to catch this case.
5349
  cat >conftest.$ac_ext <<_ACEOF
5350
/* confdefs.h.  */
5351
_ACEOF
5352
cat confdefs.h >>conftest.$ac_ext
5353
cat >>conftest.$ac_ext <<_ACEOF
5354
/* end confdefs.h.  */
5355
#ifdef __STDC__
5356
# include <limits.h>
5357
#else
5358
# include <assert.h>
5359
#endif
5360
		     Syntax error
5361
_ACEOF
5362
if { (ac_try="$ac_cpp conftest.$ac_ext"
5363
case "(($ac_try" in
5364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365
  *) ac_try_echo=$ac_try;;
5366
esac
5367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5369
  ac_status=$?
5370
  grep -v '^ *+' conftest.er1 >conftest.err
5371
  rm -f conftest.er1
5372
  cat conftest.err >&5
5373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374
  (exit $ac_status); } >/dev/null && {
5375
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5376
	 test ! -s conftest.err
5377
       }; then
5378
  :
5379
else
5380
  echo "$as_me: failed program was:" >&5
5381
sed 's/^/| /' conftest.$ac_ext >&5
5382
5383
  # Broken: fails on valid input.
5384
continue
5385
fi
5386
5387
rm -f conftest.err conftest.$ac_ext
5388
5389
  # OK, works on sane cases.  Now check whether nonexistent headers
5390
  # can be detected and how.
5391
  cat >conftest.$ac_ext <<_ACEOF
5392
/* confdefs.h.  */
5393
_ACEOF
5394
cat confdefs.h >>conftest.$ac_ext
5395
cat >>conftest.$ac_ext <<_ACEOF
5396
/* end confdefs.h.  */
5397
#include <ac_nonexistent.h>
5398
_ACEOF
5399
if { (ac_try="$ac_cpp conftest.$ac_ext"
5400
case "(($ac_try" in
5401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402
  *) ac_try_echo=$ac_try;;
5403
esac
5404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5406
  ac_status=$?
5407
  grep -v '^ *+' conftest.er1 >conftest.err
5408
  rm -f conftest.er1
5409
  cat conftest.err >&5
5410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
  (exit $ac_status); } >/dev/null && {
5412
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5413
	 test ! -s conftest.err
5414
       }; then
5415
  # Broken: success on invalid input.
5416
continue
5417
else
5418
  echo "$as_me: failed program was:" >&5
5419
sed 's/^/| /' conftest.$ac_ext >&5
5420
5421
  # Passes both tests.
5422
ac_preproc_ok=:
5423
break
5424
fi
5425
5426
rm -f conftest.err conftest.$ac_ext
5427
5428
done
5429
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5430
rm -f conftest.err conftest.$ac_ext
5431
if $ac_preproc_ok; then
5432
  :
5433
else
5434
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5435
See \`config.log' for more details." >&5
5436
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5437
See \`config.log' for more details." >&2;}
5438
   { (exit 1); exit 1; }; }
5439
fi
5440
5441
ac_ext=c
5442
ac_cpp='$CPP $CPPFLAGS'
5443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446
5447
5448
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5449
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5450
if test "${ac_cv_path_GREP+set}" = set; then
5451
  echo $ECHO_N "(cached) $ECHO_C" >&6
5452
else
5453
  # Extract the first word of "grep ggrep" to use in msg output
5454
if test -z "$GREP"; then
5455
set dummy grep ggrep; ac_prog_name=$2
5456
if test "${ac_cv_path_GREP+set}" = set; then
5457
  echo $ECHO_N "(cached) $ECHO_C" >&6
5458
else
5459
  ac_path_GREP_found=false
5460
# Loop through the user's path and test for each of PROGNAME-LIST
5461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5463
do
5464
  IFS=$as_save_IFS
5465
  test -z "$as_dir" && as_dir=.
5466
  for ac_prog in grep ggrep; do
5467
  for ac_exec_ext in '' $ac_executable_extensions; do
5468
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5469
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5470
    # Check for GNU ac_path_GREP and select it if it is found.
5471
  # Check for GNU $ac_path_GREP
5472
case `"$ac_path_GREP" --version 2>&1` in
5473
*GNU*)
5474
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5475
*)
5476
  ac_count=0
5477
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5478
  while :
5479
  do
5480
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5481
    mv "conftest.tmp" "conftest.in"
5482
    cp "conftest.in" "conftest.nl"
5483
    echo 'GREP' >> "conftest.nl"
5484
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5485
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5486
    ac_count=`expr $ac_count + 1`
5487
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5488
      # Best one so far, save it but keep looking for a better one
5489
      ac_cv_path_GREP="$ac_path_GREP"
5490
      ac_path_GREP_max=$ac_count
5491
    fi
5492
    # 10*(2^10) chars as input seems more than enough
5493
    test $ac_count -gt 10 && break
5494
  done
5495
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5496
esac
5497
5498
5499
    $ac_path_GREP_found && break 3
5500
  done
5501
done
5502
5503
done
5504
IFS=$as_save_IFS
5505
5506
5507
fi
5508
5509
GREP="$ac_cv_path_GREP"
5510
if test -z "$GREP"; then
5511
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5512
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5513
   { (exit 1); exit 1; }; }
5514
fi
5515
5516
else
5517
  ac_cv_path_GREP=$GREP
5518
fi
5519
5520
5521
fi
5522
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5523
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5524
 GREP="$ac_cv_path_GREP"
5525
5526
5527
{ echo "$as_me:$LINENO: checking for egrep" >&5
5528
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5529
if test "${ac_cv_path_EGREP+set}" = set; then
5530
  echo $ECHO_N "(cached) $ECHO_C" >&6
5531
else
5532
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5533
   then ac_cv_path_EGREP="$GREP -E"
5534
   else
5535
     # Extract the first word of "egrep" to use in msg output
5536
if test -z "$EGREP"; then
5537
set dummy egrep; ac_prog_name=$2
5538
if test "${ac_cv_path_EGREP+set}" = set; then
5539
  echo $ECHO_N "(cached) $ECHO_C" >&6
5540
else
5541
  ac_path_EGREP_found=false
5542
# Loop through the user's path and test for each of PROGNAME-LIST
5543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5545
do
5546
  IFS=$as_save_IFS
5547
  test -z "$as_dir" && as_dir=.
5548
  for ac_prog in egrep; do
5549
  for ac_exec_ext in '' $ac_executable_extensions; do
5550
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5551
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5552
    # Check for GNU ac_path_EGREP and select it if it is found.
5553
  # Check for GNU $ac_path_EGREP
5554
case `"$ac_path_EGREP" --version 2>&1` in
5555
*GNU*)
5556
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5557
*)
5558
  ac_count=0
5559
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5560
  while :
5561
  do
5562
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5563
    mv "conftest.tmp" "conftest.in"
5564
    cp "conftest.in" "conftest.nl"
5565
    echo 'EGREP' >> "conftest.nl"
5566
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5567
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5568
    ac_count=`expr $ac_count + 1`
5569
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5570
      # Best one so far, save it but keep looking for a better one
5571
      ac_cv_path_EGREP="$ac_path_EGREP"
5572
      ac_path_EGREP_max=$ac_count
5573
    fi
5574
    # 10*(2^10) chars as input seems more than enough
5575
    test $ac_count -gt 10 && break
5576
  done
5577
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5578
esac
5579
5580
5581
    $ac_path_EGREP_found && break 3
5582
  done
5583
done
5584
5585
done
5586
IFS=$as_save_IFS
5587
5588
5589
fi
5590
5591
EGREP="$ac_cv_path_EGREP"
5592
if test -z "$EGREP"; then
5593
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5594
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5595
   { (exit 1); exit 1; }; }
5596
fi
5597
5598
else
5599
  ac_cv_path_EGREP=$EGREP
5600
fi
5601
5602
5603
   fi
5604
fi
5605
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5606
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5607
 EGREP="$ac_cv_path_EGREP"
5608
5609
5610
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5611
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5612
if test "${ac_cv_header_stdc+set}" = set; then
5613
  echo $ECHO_N "(cached) $ECHO_C" >&6
5614
else
5615
  cat >conftest.$ac_ext <<_ACEOF
5616
/* confdefs.h.  */
5617
_ACEOF
5618
cat confdefs.h >>conftest.$ac_ext
5619
cat >>conftest.$ac_ext <<_ACEOF
5620
/* end confdefs.h.  */
5621
#include <stdlib.h>
5622
#include <stdarg.h>
5623
#include <string.h>
5624
#include <float.h>
5625
5626
int
5627
main ()
5628
{
5629
5630
  ;
5631
  return 0;
5632
}
5633
_ACEOF
5634
rm -f conftest.$ac_objext
5635
if { (ac_try="$ac_compile"
5636
case "(($ac_try" in
5637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638
  *) ac_try_echo=$ac_try;;
5639
esac
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641
  (eval "$ac_compile") 2>conftest.er1
5642
  ac_status=$?
5643
  grep -v '^ *+' conftest.er1 >conftest.err
5644
  rm -f conftest.er1
5645
  cat conftest.err >&5
5646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
  (exit $ac_status); } && {
5648
	 test -z "$ac_c_werror_flag" ||
5649
	 test ! -s conftest.err
5650
       } && test -s conftest.$ac_objext; then
5651
  ac_cv_header_stdc=yes
5652
else
5653
  echo "$as_me: failed program was:" >&5
5654
sed 's/^/| /' conftest.$ac_ext >&5
5655
5656
	ac_cv_header_stdc=no
5657
fi
5658
5659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660
5661
if test $ac_cv_header_stdc = yes; then
5662
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5663
  cat >conftest.$ac_ext <<_ACEOF
5664
/* confdefs.h.  */
5665
_ACEOF
5666
cat confdefs.h >>conftest.$ac_ext
5667
cat >>conftest.$ac_ext <<_ACEOF
5668
/* end confdefs.h.  */
5669
#include <string.h>
5670
5671
_ACEOF
5672
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673
  $EGREP "memchr" >/dev/null 2>&1; then
5674
  :
5675
else
5676
  ac_cv_header_stdc=no
5677
fi
5678
rm -f conftest*
5679
5680
fi
5681
5682
if test $ac_cv_header_stdc = yes; then
5683
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5684
  cat >conftest.$ac_ext <<_ACEOF
5685
/* confdefs.h.  */
5686
_ACEOF
5687
cat confdefs.h >>conftest.$ac_ext
5688
cat >>conftest.$ac_ext <<_ACEOF
5689
/* end confdefs.h.  */
5690
#include <stdlib.h>
5691
5692
_ACEOF
5693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694
  $EGREP "free" >/dev/null 2>&1; then
5695
  :
5696
else
5697
  ac_cv_header_stdc=no
5698
fi
5699
rm -f conftest*
5700
5701
fi
5702
5703
if test $ac_cv_header_stdc = yes; then
5704
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5705
  if test "$cross_compiling" = yes; then
5706
  :
5707
else
5708
  cat >conftest.$ac_ext <<_ACEOF
5709
/* confdefs.h.  */
5710
_ACEOF
5711
cat confdefs.h >>conftest.$ac_ext
5712
cat >>conftest.$ac_ext <<_ACEOF
5713
/* end confdefs.h.  */
5714
#include <ctype.h>
5715
#include <stdlib.h>
5716
#if ((' ' & 0x0FF) == 0x020)
5717
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5719
#else
5720
# define ISLOWER(c) \
5721
		   (('a' <= (c) && (c) <= 'i') \
5722
		     || ('j' <= (c) && (c) <= 'r') \
5723
		     || ('s' <= (c) && (c) <= 'z'))
5724
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5725
#endif
5726
5727
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5728
int
5729
main ()
5730
{
5731
  int i;
5732
  for (i = 0; i < 256; i++)
5733
    if (XOR (islower (i), ISLOWER (i))
5734
	|| toupper (i) != TOUPPER (i))
5735
      return 2;
5736
  return 0;
5737
}
5738
_ACEOF
5739
rm -f conftest$ac_exeext
5740
if { (ac_try="$ac_link"
5741
case "(($ac_try" in
5742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743
  *) ac_try_echo=$ac_try;;
5744
esac
5745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746
  (eval "$ac_link") 2>&5
5747
  ac_status=$?
5748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5750
  { (case "(($ac_try" in
5751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752
  *) ac_try_echo=$ac_try;;
5753
esac
5754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755
  (eval "$ac_try") 2>&5
5756
  ac_status=$?
5757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758
  (exit $ac_status); }; }; then
5759
  :
5760
else
5761
  echo "$as_me: program exited with status $ac_status" >&5
5762
echo "$as_me: failed program was:" >&5
5763
sed 's/^/| /' conftest.$ac_ext >&5
5764
5765
( exit $ac_status )
5766
ac_cv_header_stdc=no
5767
fi
5768
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5769
fi
5770
5771
5772
fi
5773
fi
5774
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5775
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5776
if test $ac_cv_header_stdc = yes; then
5777
5778
cat >>confdefs.h <<\_ACEOF
5779
#define STDC_HEADERS 1
5780
_ACEOF
5781
5782
fi
5783
5784
5785
GETTEXT_PACKAGE=tangogps
5786
5787
5788
cat >>confdefs.h <<_ACEOF
5789
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5790
_ACEOF
5791
5792
5793
ALL_LINGUAS="bg cs de fi fr ru"
5794
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5805
		  inttypes.h stdint.h unistd.h
5806
do
5807
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5808
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5809
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5810
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5811
  echo $ECHO_N "(cached) $ECHO_C" >&6
5812
else
5813
  cat >conftest.$ac_ext <<_ACEOF
5814
/* confdefs.h.  */
5815
_ACEOF
5816
cat confdefs.h >>conftest.$ac_ext
5817
cat >>conftest.$ac_ext <<_ACEOF
5818
/* end confdefs.h.  */
5819
$ac_includes_default
5820
5821
#include <$ac_header>
5822
_ACEOF
5823
rm -f conftest.$ac_objext
5824
if { (ac_try="$ac_compile"
5825
case "(($ac_try" in
5826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827
  *) ac_try_echo=$ac_try;;
5828
esac
5829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830
  (eval "$ac_compile") 2>conftest.er1
5831
  ac_status=$?
5832
  grep -v '^ *+' conftest.er1 >conftest.err
5833
  rm -f conftest.er1
5834
  cat conftest.err >&5
5835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836
  (exit $ac_status); } && {
5837
	 test -z "$ac_c_werror_flag" ||
5838
	 test ! -s conftest.err
5839
       } && test -s conftest.$ac_objext; then
5840
  eval "$as_ac_Header=yes"
5841
else
5842
  echo "$as_me: failed program was:" >&5
5843
sed 's/^/| /' conftest.$ac_ext >&5
5844
5845
	eval "$as_ac_Header=no"
5846
fi
5847
5848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849
fi
5850
ac_res=`eval echo '${'$as_ac_Header'}'`
5851
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5852
echo "${ECHO_T}$ac_res" >&6; }
5853
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5854
  cat >>confdefs.h <<_ACEOF
5855
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856
_ACEOF
5857
5858
fi
5859
5860
done
5861
5862
5863
5864
5865
for ac_header in locale.h
5866
do
5867
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5868
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5869
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5870
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5871
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5872
  echo $ECHO_N "(cached) $ECHO_C" >&6
5873
fi
5874
ac_res=`eval echo '${'$as_ac_Header'}'`
5875
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5876
echo "${ECHO_T}$ac_res" >&6; }
5877
else
5878
  # Is the header compilable?
5879
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5880
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5881
cat >conftest.$ac_ext <<_ACEOF
5882
/* confdefs.h.  */
5883
_ACEOF
5884
cat confdefs.h >>conftest.$ac_ext
5885
cat >>conftest.$ac_ext <<_ACEOF
5886
/* end confdefs.h.  */
5887
$ac_includes_default
5888
#include <$ac_header>
5889
_ACEOF
5890
rm -f conftest.$ac_objext
5891
if { (ac_try="$ac_compile"
5892
case "(($ac_try" in
5893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894
  *) ac_try_echo=$ac_try;;
5895
esac
5896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897
  (eval "$ac_compile") 2>conftest.er1
5898
  ac_status=$?
5899
  grep -v '^ *+' conftest.er1 >conftest.err
5900
  rm -f conftest.er1
5901
  cat conftest.err >&5
5902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903
  (exit $ac_status); } && {
5904
	 test -z "$ac_c_werror_flag" ||
5905
	 test ! -s conftest.err
5906
       } && test -s conftest.$ac_objext; then
5907
  ac_header_compiler=yes
5908
else
5909
  echo "$as_me: failed program was:" >&5
5910
sed 's/^/| /' conftest.$ac_ext >&5
5911
5912
	ac_header_compiler=no
5913
fi
5914
5915
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5917
echo "${ECHO_T}$ac_header_compiler" >&6; }
5918
5919
# Is the header present?
5920
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5921
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5922
cat >conftest.$ac_ext <<_ACEOF
5923
/* confdefs.h.  */
5924
_ACEOF
5925
cat confdefs.h >>conftest.$ac_ext
5926
cat >>conftest.$ac_ext <<_ACEOF
5927
/* end confdefs.h.  */
5928
#include <$ac_header>
5929
_ACEOF
5930
if { (ac_try="$ac_cpp conftest.$ac_ext"
5931
case "(($ac_try" in
5932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933
  *) ac_try_echo=$ac_try;;
5934
esac
5935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5937
  ac_status=$?
5938
  grep -v '^ *+' conftest.er1 >conftest.err
5939
  rm -f conftest.er1
5940
  cat conftest.err >&5
5941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942
  (exit $ac_status); } >/dev/null && {
5943
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5944
	 test ! -s conftest.err
5945
       }; then
5946
  ac_header_preproc=yes
5947
else
5948
  echo "$as_me: failed program was:" >&5
5949
sed 's/^/| /' conftest.$ac_ext >&5
5950
5951
  ac_header_preproc=no
5952
fi
5953
5954
rm -f conftest.err conftest.$ac_ext
5955
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5956
echo "${ECHO_T}$ac_header_preproc" >&6; }
5957
5958
# So?  What about this header?
5959
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5960
  yes:no: )
5961
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5962
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5963
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5964
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5965
    ac_header_preproc=yes
5966
    ;;
5967
  no:yes:* )
5968
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5969
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5970
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5971
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5972
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5973
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5974
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5975
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5976
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5977
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5978
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5979
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5980
5981
    ;;
5982
esac
5983
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5986
  echo $ECHO_N "(cached) $ECHO_C" >&6
5987
else
5988
  eval "$as_ac_Header=\$ac_header_preproc"
5989
fi
5990
ac_res=`eval echo '${'$as_ac_Header'}'`
5991
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5992
echo "${ECHO_T}$ac_res" >&6; }
5993
5994
fi
5995
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5996
  cat >>confdefs.h <<_ACEOF
5997
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5998
_ACEOF
5999
6000
fi
6001
6002
done
6003
6004
    if test $ac_cv_header_locale_h = yes; then
6005
    { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6006
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6007
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6008
  echo $ECHO_N "(cached) $ECHO_C" >&6
6009
else
6010
  cat >conftest.$ac_ext <<_ACEOF
6011
/* confdefs.h.  */
6012
_ACEOF
6013
cat confdefs.h >>conftest.$ac_ext
6014
cat >>conftest.$ac_ext <<_ACEOF
6015
/* end confdefs.h.  */
6016
#include <locale.h>
6017
int
6018
main ()
6019
{
6020
return LC_MESSAGES
6021
  ;
6022
  return 0;
6023
}
6024
_ACEOF
6025
rm -f conftest.$ac_objext conftest$ac_exeext
6026
if { (ac_try="$ac_link"
6027
case "(($ac_try" in
6028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029
  *) ac_try_echo=$ac_try;;
6030
esac
6031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032
  (eval "$ac_link") 2>conftest.er1
6033
  ac_status=$?
6034
  grep -v '^ *+' conftest.er1 >conftest.err
6035
  rm -f conftest.er1
6036
  cat conftest.err >&5
6037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038
  (exit $ac_status); } && {
6039
	 test -z "$ac_c_werror_flag" ||
6040
	 test ! -s conftest.err
6041
       } && test -s conftest$ac_exeext &&
6042
       $as_test_x conftest$ac_exeext; then
6043
  am_cv_val_LC_MESSAGES=yes
6044
else
6045
  echo "$as_me: failed program was:" >&5
6046
sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
	am_cv_val_LC_MESSAGES=no
6049
fi
6050
6051
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6052
      conftest$ac_exeext conftest.$ac_ext
6053
fi
6054
{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6055
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6056
    if test $am_cv_val_LC_MESSAGES = yes; then
6057
6058
cat >>confdefs.h <<\_ACEOF
6059
#define HAVE_LC_MESSAGES 1
6060
_ACEOF
6061
6062
    fi
6063
  fi
6064
     USE_NLS=yes
6065
6066
6067
    gt_cv_have_gettext=no
6068
6069
    CATOBJEXT=NONE
6070
    XGETTEXT=:
6071
    INTLLIBS=
6072
6073
    if test "${ac_cv_header_libintl_h+set}" = set; then
6074
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
6075
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6076
if test "${ac_cv_header_libintl_h+set}" = set; then
6077
  echo $ECHO_N "(cached) $ECHO_C" >&6
6078
fi
6079
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6080
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6081
else
6082
  # Is the header compilable?
6083
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
6084
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6085
cat >conftest.$ac_ext <<_ACEOF
6086
/* confdefs.h.  */
6087
_ACEOF
6088
cat confdefs.h >>conftest.$ac_ext
6089
cat >>conftest.$ac_ext <<_ACEOF
6090
/* end confdefs.h.  */
6091
$ac_includes_default
6092
#include <libintl.h>
6093
_ACEOF
6094
rm -f conftest.$ac_objext
6095
if { (ac_try="$ac_compile"
6096
case "(($ac_try" in
6097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098
  *) ac_try_echo=$ac_try;;
6099
esac
6100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101
  (eval "$ac_compile") 2>conftest.er1
6102
  ac_status=$?
6103
  grep -v '^ *+' conftest.er1 >conftest.err
6104
  rm -f conftest.er1
6105
  cat conftest.err >&5
6106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107
  (exit $ac_status); } && {
6108
	 test -z "$ac_c_werror_flag" ||
6109
	 test ! -s conftest.err
6110
       } && test -s conftest.$ac_objext; then
6111
  ac_header_compiler=yes
6112
else
6113
  echo "$as_me: failed program was:" >&5
6114
sed 's/^/| /' conftest.$ac_ext >&5
6115
6116
	ac_header_compiler=no
6117
fi
6118
6119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6121
echo "${ECHO_T}$ac_header_compiler" >&6; }
6122
6123
# Is the header present?
6124
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
6125
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6126
cat >conftest.$ac_ext <<_ACEOF
6127
/* confdefs.h.  */
6128
_ACEOF
6129
cat confdefs.h >>conftest.$ac_ext
6130
cat >>conftest.$ac_ext <<_ACEOF
6131
/* end confdefs.h.  */
6132
#include <libintl.h>
6133
_ACEOF
6134
if { (ac_try="$ac_cpp conftest.$ac_ext"
6135
case "(($ac_try" in
6136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137
  *) ac_try_echo=$ac_try;;
6138
esac
6139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6141
  ac_status=$?
6142
  grep -v '^ *+' conftest.er1 >conftest.err
6143
  rm -f conftest.er1
6144
  cat conftest.err >&5
6145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146
  (exit $ac_status); } >/dev/null && {
6147
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6148
	 test ! -s conftest.err
6149
       }; then
6150
  ac_header_preproc=yes
6151
else
6152
  echo "$as_me: failed program was:" >&5
6153
sed 's/^/| /' conftest.$ac_ext >&5
6154
6155
  ac_header_preproc=no
6156
fi
6157
6158
rm -f conftest.err conftest.$ac_ext
6159
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6160
echo "${ECHO_T}$ac_header_preproc" >&6; }
6161
6162
# So?  What about this header?
6163
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6164
  yes:no: )
6165
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6166
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6167
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6168
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6169
    ac_header_preproc=yes
6170
    ;;
6171
  no:yes:* )
6172
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6173
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6174
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
6175
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
6176
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6177
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6178
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
6179
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6180
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6181
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6182
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6183
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6184
6185
    ;;
6186
esac
6187
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
6188
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6189
if test "${ac_cv_header_libintl_h+set}" = set; then
6190
  echo $ECHO_N "(cached) $ECHO_C" >&6
6191
else
6192
  ac_cv_header_libintl_h=$ac_header_preproc
6193
fi
6194
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6195
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6196
6197
fi
6198
if test $ac_cv_header_libintl_h = yes; then
6199
  gt_cv_func_dgettext_libintl="no"
6200
      libintl_extra_libs=""
6201
6202
      #
6203
      # First check in libc
6204
      #
6205
      { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6206
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6207
if test "${gt_cv_func_ngettext_libc+set}" = set; then
6208
  echo $ECHO_N "(cached) $ECHO_C" >&6
6209
else
6210
  cat >conftest.$ac_ext <<_ACEOF
6211
/* confdefs.h.  */
6212
_ACEOF
6213
cat confdefs.h >>conftest.$ac_ext
6214
cat >>conftest.$ac_ext <<_ACEOF
6215
/* end confdefs.h.  */
6216
6217
#include <libintl.h>
6218
6219
int
6220
main ()
6221
{
6222
return !ngettext ("","", 1)
6223
  ;
6224
  return 0;
6225
}
6226
_ACEOF
6227
rm -f conftest.$ac_objext conftest$ac_exeext
6228
if { (ac_try="$ac_link"
6229
case "(($ac_try" in
6230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231
  *) ac_try_echo=$ac_try;;
6232
esac
6233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234
  (eval "$ac_link") 2>conftest.er1
6235
  ac_status=$?
6236
  grep -v '^ *+' conftest.er1 >conftest.err
6237
  rm -f conftest.er1
6238
  cat conftest.err >&5
6239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240
  (exit $ac_status); } && {
6241
	 test -z "$ac_c_werror_flag" ||
6242
	 test ! -s conftest.err
6243
       } && test -s conftest$ac_exeext &&
6244
       $as_test_x conftest$ac_exeext; then
6245
  gt_cv_func_ngettext_libc=yes
6246
else
6247
  echo "$as_me: failed program was:" >&5
6248
sed 's/^/| /' conftest.$ac_ext >&5
6249
6250
	gt_cv_func_ngettext_libc=no
6251
fi
6252
6253
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6254
      conftest$ac_exeext conftest.$ac_ext
6255
6256
fi
6257
{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6258
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6259
6260
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6261
	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6262
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6263
if test "${gt_cv_func_dgettext_libc+set}" = set; then
6264
  echo $ECHO_N "(cached) $ECHO_C" >&6
6265
else
6266
  cat >conftest.$ac_ext <<_ACEOF
6267
/* confdefs.h.  */
6268
_ACEOF
6269
cat confdefs.h >>conftest.$ac_ext
6270
cat >>conftest.$ac_ext <<_ACEOF
6271
/* end confdefs.h.  */
6272
6273
#include <libintl.h>
6274
6275
int
6276
main ()
6277
{
6278
return !dgettext ("","")
6279
  ;
6280
  return 0;
6281
}
6282
_ACEOF
6283
rm -f conftest.$ac_objext conftest$ac_exeext
6284
if { (ac_try="$ac_link"
6285
case "(($ac_try" in
6286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287
  *) ac_try_echo=$ac_try;;
6288
esac
6289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290
  (eval "$ac_link") 2>conftest.er1
6291
  ac_status=$?
6292
  grep -v '^ *+' conftest.er1 >conftest.err
6293
  rm -f conftest.er1
6294
  cat conftest.err >&5
6295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296
  (exit $ac_status); } && {
6297
	 test -z "$ac_c_werror_flag" ||
6298
	 test ! -s conftest.err
6299
       } && test -s conftest$ac_exeext &&
6300
       $as_test_x conftest$ac_exeext; then
6301
  gt_cv_func_dgettext_libc=yes
6302
else
6303
  echo "$as_me: failed program was:" >&5
6304
sed 's/^/| /' conftest.$ac_ext >&5
6305
6306
	gt_cv_func_dgettext_libc=no
6307
fi
6308
6309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6310
      conftest$ac_exeext conftest.$ac_ext
6311
6312
fi
6313
{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6314
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6315
      fi
6316
6317
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6318
6319
for ac_func in bind_textdomain_codeset
6320
do
6321
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6322
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6323
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6324
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6325
  echo $ECHO_N "(cached) $ECHO_C" >&6
6326
else
6327
  cat >conftest.$ac_ext <<_ACEOF
6328
/* confdefs.h.  */
6329
_ACEOF
6330
cat confdefs.h >>conftest.$ac_ext
6331
cat >>conftest.$ac_ext <<_ACEOF
6332
/* end confdefs.h.  */
6333
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6334
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6335
#define $ac_func innocuous_$ac_func
6336
6337
/* System header to define __stub macros and hopefully few prototypes,
6338
    which can conflict with char $ac_func (); below.
6339
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340
    <limits.h> exists even on freestanding compilers.  */
6341
6342
#ifdef __STDC__
6343
# include <limits.h>
6344
#else
6345
# include <assert.h>
6346
#endif
6347
6348
#undef $ac_func
6349
6350
/* Override any GCC internal prototype to avoid an error.
6351
   Use char because int might match the return type of a GCC
6352
   builtin and then its argument prototype would still apply.  */
6353
#ifdef __cplusplus
6354
extern "C"
6355
#endif
6356
char $ac_func ();
6357
/* The GNU C library defines this for functions which it implements
6358
    to always fail with ENOSYS.  Some functions are actually named
6359
    something starting with __ and the normal name is an alias.  */
6360
#if defined __stub_$ac_func || defined __stub___$ac_func
6361
choke me
6362
#endif
6363
6364
int
6365
main ()
6366
{
6367
return $ac_func ();
6368
  ;
6369
  return 0;
6370
}
6371
_ACEOF
6372
rm -f conftest.$ac_objext conftest$ac_exeext
6373
if { (ac_try="$ac_link"
6374
case "(($ac_try" in
6375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376
  *) ac_try_echo=$ac_try;;
6377
esac
6378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379
  (eval "$ac_link") 2>conftest.er1
6380
  ac_status=$?
6381
  grep -v '^ *+' conftest.er1 >conftest.err
6382
  rm -f conftest.er1
6383
  cat conftest.err >&5
6384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385
  (exit $ac_status); } && {
6386
	 test -z "$ac_c_werror_flag" ||
6387
	 test ! -s conftest.err
6388
       } && test -s conftest$ac_exeext &&
6389
       $as_test_x conftest$ac_exeext; then
6390
  eval "$as_ac_var=yes"
6391
else
6392
  echo "$as_me: failed program was:" >&5
6393
sed 's/^/| /' conftest.$ac_ext >&5
6394
6395
	eval "$as_ac_var=no"
6396
fi
6397
6398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6399
      conftest$ac_exeext conftest.$ac_ext
6400
fi
6401
ac_res=`eval echo '${'$as_ac_var'}'`
6402
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6403
echo "${ECHO_T}$ac_res" >&6; }
6404
if test `eval echo '${'$as_ac_var'}'` = yes; then
6405
  cat >>confdefs.h <<_ACEOF
6406
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6407
_ACEOF
6408
6409
fi
6410
done
6411
6412
      fi
6413
6414
      #
6415
      # If we don't have everything we want, check in libintl
6416
      #
6417
      if test "$gt_cv_func_dgettext_libc" != "yes" \
6418
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
6419
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6420
6421
        { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6422
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6423
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6424
  echo $ECHO_N "(cached) $ECHO_C" >&6
6425
else
6426
  ac_check_lib_save_LIBS=$LIBS
6427
LIBS="-lintl  $LIBS"
6428
cat >conftest.$ac_ext <<_ACEOF
6429
/* confdefs.h.  */
6430
_ACEOF
6431
cat confdefs.h >>conftest.$ac_ext
6432
cat >>conftest.$ac_ext <<_ACEOF
6433
/* end confdefs.h.  */
6434
6435
/* Override any GCC internal prototype to avoid an error.
6436
   Use char because int might match the return type of a GCC
6437
   builtin and then its argument prototype would still apply.  */
6438
#ifdef __cplusplus
6439
extern "C"
6440
#endif
6441
char bindtextdomain ();
6442
int
6443
main ()
6444
{
6445
return bindtextdomain ();
6446
  ;
6447
  return 0;
6448
}
6449
_ACEOF
6450
rm -f conftest.$ac_objext conftest$ac_exeext
6451
if { (ac_try="$ac_link"
6452
case "(($ac_try" in
6453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454
  *) ac_try_echo=$ac_try;;
6455
esac
6456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457
  (eval "$ac_link") 2>conftest.er1
6458
  ac_status=$?
6459
  grep -v '^ *+' conftest.er1 >conftest.err
6460
  rm -f conftest.er1
6461
  cat conftest.err >&5
6462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463
  (exit $ac_status); } && {
6464
	 test -z "$ac_c_werror_flag" ||
6465
	 test ! -s conftest.err
6466
       } && test -s conftest$ac_exeext &&
6467
       $as_test_x conftest$ac_exeext; then
6468
  ac_cv_lib_intl_bindtextdomain=yes
6469
else
6470
  echo "$as_me: failed program was:" >&5
6471
sed 's/^/| /' conftest.$ac_ext >&5
6472
6473
	ac_cv_lib_intl_bindtextdomain=no
6474
fi
6475
6476
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6477
      conftest$ac_exeext conftest.$ac_ext
6478
LIBS=$ac_check_lib_save_LIBS
6479
fi
6480
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6481
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6482
if test $ac_cv_lib_intl_bindtextdomain = yes; then
6483
  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6484
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6485
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6486
  echo $ECHO_N "(cached) $ECHO_C" >&6
6487
else
6488
  ac_check_lib_save_LIBS=$LIBS
6489
LIBS="-lintl  $LIBS"
6490
cat >conftest.$ac_ext <<_ACEOF
6491
/* confdefs.h.  */
6492
_ACEOF
6493
cat confdefs.h >>conftest.$ac_ext
6494
cat >>conftest.$ac_ext <<_ACEOF
6495
/* end confdefs.h.  */
6496
6497
/* Override any GCC internal prototype to avoid an error.
6498
   Use char because int might match the return type of a GCC
6499
   builtin and then its argument prototype would still apply.  */
6500
#ifdef __cplusplus
6501
extern "C"
6502
#endif
6503
char ngettext ();
6504
int
6505
main ()
6506
{
6507
return ngettext ();
6508
  ;
6509
  return 0;
6510
}
6511
_ACEOF
6512
rm -f conftest.$ac_objext conftest$ac_exeext
6513
if { (ac_try="$ac_link"
6514
case "(($ac_try" in
6515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516
  *) ac_try_echo=$ac_try;;
6517
esac
6518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519
  (eval "$ac_link") 2>conftest.er1
6520
  ac_status=$?
6521
  grep -v '^ *+' conftest.er1 >conftest.err
6522
  rm -f conftest.er1
6523
  cat conftest.err >&5
6524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525
  (exit $ac_status); } && {
6526
	 test -z "$ac_c_werror_flag" ||
6527
	 test ! -s conftest.err
6528
       } && test -s conftest$ac_exeext &&
6529
       $as_test_x conftest$ac_exeext; then
6530
  ac_cv_lib_intl_ngettext=yes
6531
else
6532
  echo "$as_me: failed program was:" >&5
6533
sed 's/^/| /' conftest.$ac_ext >&5
6534
6535
	ac_cv_lib_intl_ngettext=no
6536
fi
6537
6538
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6539
      conftest$ac_exeext conftest.$ac_ext
6540
LIBS=$ac_check_lib_save_LIBS
6541
fi
6542
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6543
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6544
if test $ac_cv_lib_intl_ngettext = yes; then
6545
  { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6546
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6547
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6548
  echo $ECHO_N "(cached) $ECHO_C" >&6
6549
else
6550
  ac_check_lib_save_LIBS=$LIBS
6551
LIBS="-lintl  $LIBS"
6552
cat >conftest.$ac_ext <<_ACEOF
6553
/* confdefs.h.  */
6554
_ACEOF
6555
cat confdefs.h >>conftest.$ac_ext
6556
cat >>conftest.$ac_ext <<_ACEOF
6557
/* end confdefs.h.  */
6558
6559
/* Override any GCC internal prototype to avoid an error.
6560
   Use char because int might match the return type of a GCC
6561
   builtin and then its argument prototype would still apply.  */
6562
#ifdef __cplusplus
6563
extern "C"
6564
#endif
6565
char dgettext ();
6566
int
6567
main ()
6568
{
6569
return dgettext ();
6570
  ;
6571
  return 0;
6572
}
6573
_ACEOF
6574
rm -f conftest.$ac_objext conftest$ac_exeext
6575
if { (ac_try="$ac_link"
6576
case "(($ac_try" in
6577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578
  *) ac_try_echo=$ac_try;;
6579
esac
6580
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581
  (eval "$ac_link") 2>conftest.er1
6582
  ac_status=$?
6583
  grep -v '^ *+' conftest.er1 >conftest.err
6584
  rm -f conftest.er1
6585
  cat conftest.err >&5
6586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587
  (exit $ac_status); } && {
6588
	 test -z "$ac_c_werror_flag" ||
6589
	 test ! -s conftest.err
6590
       } && test -s conftest$ac_exeext &&
6591
       $as_test_x conftest$ac_exeext; then
6592
  ac_cv_lib_intl_dgettext=yes
6593
else
6594
  echo "$as_me: failed program was:" >&5
6595
sed 's/^/| /' conftest.$ac_ext >&5
6596
6597
	ac_cv_lib_intl_dgettext=no
6598
fi
6599
6600
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6601
      conftest$ac_exeext conftest.$ac_ext
6602
LIBS=$ac_check_lib_save_LIBS
6603
fi
6604
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6605
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6606
if test $ac_cv_lib_intl_dgettext = yes; then
6607
  gt_cv_func_dgettext_libintl=yes
6608
fi
6609
6610
fi
6611
6612
fi
6613
6614
6615
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6616
	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6617
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6618
	  { echo "$as_me:$LINENO: result: " >&5
6619
echo "${ECHO_T}" >&6; }
6620
  	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6621
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6622
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6623
  echo $ECHO_N "(cached) $ECHO_C" >&6
6624
else
6625
  ac_check_lib_save_LIBS=$LIBS
6626
LIBS="-lintl -liconv $LIBS"
6627
cat >conftest.$ac_ext <<_ACEOF
6628
/* confdefs.h.  */
6629
_ACEOF
6630
cat confdefs.h >>conftest.$ac_ext
6631
cat >>conftest.$ac_ext <<_ACEOF
6632
/* end confdefs.h.  */
6633
6634
/* Override any GCC internal prototype to avoid an error.
6635
   Use char because int might match the return type of a GCC
6636
   builtin and then its argument prototype would still apply.  */
6637
#ifdef __cplusplus
6638
extern "C"
6639
#endif
6640
char ngettext ();
6641
int
6642
main ()
6643
{
6644
return ngettext ();
6645
  ;
6646
  return 0;
6647
}
6648
_ACEOF
6649
rm -f conftest.$ac_objext conftest$ac_exeext
6650
if { (ac_try="$ac_link"
6651
case "(($ac_try" in
6652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653
  *) ac_try_echo=$ac_try;;
6654
esac
6655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656
  (eval "$ac_link") 2>conftest.er1
6657
  ac_status=$?
6658
  grep -v '^ *+' conftest.er1 >conftest.err
6659
  rm -f conftest.er1
6660
  cat conftest.err >&5
6661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662
  (exit $ac_status); } && {
6663
	 test -z "$ac_c_werror_flag" ||
6664
	 test ! -s conftest.err
6665
       } && test -s conftest$ac_exeext &&
6666
       $as_test_x conftest$ac_exeext; then
6667
  ac_cv_lib_intl_ngettext=yes
6668
else
6669
  echo "$as_me: failed program was:" >&5
6670
sed 's/^/| /' conftest.$ac_ext >&5
6671
6672
	ac_cv_lib_intl_ngettext=no
6673
fi
6674
6675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6676
      conftest$ac_exeext conftest.$ac_ext
6677
LIBS=$ac_check_lib_save_LIBS
6678
fi
6679
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6680
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6681
if test $ac_cv_lib_intl_ngettext = yes; then
6682
  { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6683
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6684
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6685
  echo $ECHO_N "(cached) $ECHO_C" >&6
6686
else
6687
  ac_check_lib_save_LIBS=$LIBS
6688
LIBS="-lintl -liconv $LIBS"
6689
cat >conftest.$ac_ext <<_ACEOF
6690
/* confdefs.h.  */
6691
_ACEOF
6692
cat confdefs.h >>conftest.$ac_ext
6693
cat >>conftest.$ac_ext <<_ACEOF
6694
/* end confdefs.h.  */
6695
6696
/* Override any GCC internal prototype to avoid an error.
6697
   Use char because int might match the return type of a GCC
6698
   builtin and then its argument prototype would still apply.  */
6699
#ifdef __cplusplus
6700
extern "C"
6701
#endif
6702
char dcgettext ();
6703
int
6704
main ()
6705
{
6706
return dcgettext ();
6707
  ;
6708
  return 0;
6709
}
6710
_ACEOF
6711
rm -f conftest.$ac_objext conftest$ac_exeext
6712
if { (ac_try="$ac_link"
6713
case "(($ac_try" in
6714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715
  *) ac_try_echo=$ac_try;;
6716
esac
6717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718
  (eval "$ac_link") 2>conftest.er1
6719
  ac_status=$?
6720
  grep -v '^ *+' conftest.er1 >conftest.err
6721
  rm -f conftest.er1
6722
  cat conftest.err >&5
6723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724
  (exit $ac_status); } && {
6725
	 test -z "$ac_c_werror_flag" ||
6726
	 test ! -s conftest.err
6727
       } && test -s conftest$ac_exeext &&
6728
       $as_test_x conftest$ac_exeext; then
6729
  ac_cv_lib_intl_dcgettext=yes
6730
else
6731
  echo "$as_me: failed program was:" >&5
6732
sed 's/^/| /' conftest.$ac_ext >&5
6733
6734
	ac_cv_lib_intl_dcgettext=no
6735
fi
6736
6737
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738
      conftest$ac_exeext conftest.$ac_ext
6739
LIBS=$ac_check_lib_save_LIBS
6740
fi
6741
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6742
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
6743
if test $ac_cv_lib_intl_dcgettext = yes; then
6744
  gt_cv_func_dgettext_libintl=yes
6745
			libintl_extra_libs=-liconv
6746
else
6747
  :
6748
fi
6749
6750
else
6751
  :
6752
fi
6753
6754
        fi
6755
6756
        #
6757
        # If we found libintl, then check in it for bind_textdomain_codeset();
6758
        # we'll prefer libc if neither have bind_textdomain_codeset(),
6759
        # and both have dgettext and ngettext
6760
        #
6761
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6762
          glib_save_LIBS="$LIBS"
6763
          LIBS="$LIBS -lintl $libintl_extra_libs"
6764
          unset ac_cv_func_bind_textdomain_codeset
6765
6766
for ac_func in bind_textdomain_codeset
6767
do
6768
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6769
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6770
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6771
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6772
  echo $ECHO_N "(cached) $ECHO_C" >&6
6773
else
6774
  cat >conftest.$ac_ext <<_ACEOF
6775
/* confdefs.h.  */
6776
_ACEOF
6777
cat confdefs.h >>conftest.$ac_ext
6778
cat >>conftest.$ac_ext <<_ACEOF
6779
/* end confdefs.h.  */
6780
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6781
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6782
#define $ac_func innocuous_$ac_func
6783
6784
/* System header to define __stub macros and hopefully few prototypes,
6785
    which can conflict with char $ac_func (); below.
6786
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6787
    <limits.h> exists even on freestanding compilers.  */
6788
6789
#ifdef __STDC__
6790
# include <limits.h>
6791
#else
6792
# include <assert.h>
6793
#endif
6794
6795
#undef $ac_func
6796
6797
/* Override any GCC internal prototype to avoid an error.
6798
   Use char because int might match the return type of a GCC
6799
   builtin and then its argument prototype would still apply.  */
6800
#ifdef __cplusplus
6801
extern "C"
6802
#endif
6803
char $ac_func ();
6804
/* The GNU C library defines this for functions which it implements
6805
    to always fail with ENOSYS.  Some functions are actually named
6806
    something starting with __ and the normal name is an alias.  */
6807
#if defined __stub_$ac_func || defined __stub___$ac_func
6808
choke me
6809
#endif
6810
6811
int
6812
main ()
6813
{
6814
return $ac_func ();
6815
  ;
6816
  return 0;
6817
}
6818
_ACEOF
6819
rm -f conftest.$ac_objext conftest$ac_exeext
6820
if { (ac_try="$ac_link"
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_link") 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); } && {
6833
	 test -z "$ac_c_werror_flag" ||
6834
	 test ! -s conftest.err
6835
       } && test -s conftest$ac_exeext &&
6836
       $as_test_x conftest$ac_exeext; then
6837
  eval "$as_ac_var=yes"
6838
else
6839
  echo "$as_me: failed program was:" >&5
6840
sed 's/^/| /' conftest.$ac_ext >&5
6841
6842
	eval "$as_ac_var=no"
6843
fi
6844
6845
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6846
      conftest$ac_exeext conftest.$ac_ext
6847
fi
6848
ac_res=`eval echo '${'$as_ac_var'}'`
6849
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6850
echo "${ECHO_T}$ac_res" >&6; }
6851
if test `eval echo '${'$as_ac_var'}'` = yes; then
6852
  cat >>confdefs.h <<_ACEOF
6853
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6854
_ACEOF
6855
6856
fi
6857
done
6858
6859
          LIBS="$glib_save_LIBS"
6860
6861
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6862
            gt_cv_func_dgettext_libc=no
6863
          else
6864
            if test "$gt_cv_func_dgettext_libc" = "yes" \
6865
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
6866
              gt_cv_func_dgettext_libintl=no
6867
            fi
6868
          fi
6869
        fi
6870
      fi
6871
6872
      if test "$gt_cv_func_dgettext_libc" = "yes" \
6873
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
6874
        gt_cv_have_gettext=yes
6875
      fi
6876
6877
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6878
        INTLLIBS="-lintl $libintl_extra_libs"
6879
      fi
6880
6881
      if test "$gt_cv_have_gettext" = "yes"; then
6882
6883
cat >>confdefs.h <<\_ACEOF
6884
#define HAVE_GETTEXT 1
6885
_ACEOF
6886
6887
	# Extract the first word of "msgfmt", so it can be a program name with args.
6888
set dummy msgfmt; ac_word=$2
6889
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891
if test "${ac_cv_path_MSGFMT+set}" = set; then
6892
  echo $ECHO_N "(cached) $ECHO_C" >&6
6893
else
6894
  case "$MSGFMT" in
6895
  /*)
6896
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6897
  ;;
6898
  *)
6899
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6900
  for ac_dir in $PATH; do
6901
    test -z "$ac_dir" && ac_dir=.
6902
    if test -f $ac_dir/$ac_word; then
6903
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6904
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6905
	break
6906
      fi
6907
    fi
6908
  done
6909
  IFS="$ac_save_ifs"
6910
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6911
  ;;
6912
esac
6913
fi
6914
MSGFMT="$ac_cv_path_MSGFMT"
6915
if test "$MSGFMT" != "no"; then
6916
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6917
echo "${ECHO_T}$MSGFMT" >&6; }
6918
else
6919
  { echo "$as_me:$LINENO: result: no" >&5
6920
echo "${ECHO_T}no" >&6; }
6921
fi
6922
	if test "$MSGFMT" != "no"; then
6923
          glib_save_LIBS="$LIBS"
6924
          LIBS="$LIBS $INTLLIBS"
6925
6926
for ac_func in dcgettext
6927
do
6928
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6929
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6930
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6931
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6932
  echo $ECHO_N "(cached) $ECHO_C" >&6
6933
else
6934
  cat >conftest.$ac_ext <<_ACEOF
6935
/* confdefs.h.  */
6936
_ACEOF
6937
cat confdefs.h >>conftest.$ac_ext
6938
cat >>conftest.$ac_ext <<_ACEOF
6939
/* end confdefs.h.  */
6940
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6941
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6942
#define $ac_func innocuous_$ac_func
6943
6944
/* System header to define __stub macros and hopefully few prototypes,
6945
    which can conflict with char $ac_func (); below.
6946
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6947
    <limits.h> exists even on freestanding compilers.  */
6948
6949
#ifdef __STDC__
6950
# include <limits.h>
6951
#else
6952
# include <assert.h>
6953
#endif
6954
6955
#undef $ac_func
6956
6957
/* Override any GCC internal prototype to avoid an error.
6958
   Use char because int might match the return type of a GCC
6959
   builtin and then its argument prototype would still apply.  */
6960
#ifdef __cplusplus
6961
extern "C"
6962
#endif
6963
char $ac_func ();
6964
/* The GNU C library defines this for functions which it implements
6965
    to always fail with ENOSYS.  Some functions are actually named
6966
    something starting with __ and the normal name is an alias.  */
6967
#if defined __stub_$ac_func || defined __stub___$ac_func
6968
choke me
6969
#endif
6970
6971
int
6972
main ()
6973
{
6974
return $ac_func ();
6975
  ;
6976
  return 0;
6977
}
6978
_ACEOF
6979
rm -f conftest.$ac_objext conftest$ac_exeext
6980
if { (ac_try="$ac_link"
6981
case "(($ac_try" in
6982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983
  *) ac_try_echo=$ac_try;;
6984
esac
6985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986
  (eval "$ac_link") 2>conftest.er1
6987
  ac_status=$?
6988
  grep -v '^ *+' conftest.er1 >conftest.err
6989
  rm -f conftest.er1
6990
  cat conftest.err >&5
6991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992
  (exit $ac_status); } && {
6993
	 test -z "$ac_c_werror_flag" ||
6994
	 test ! -s conftest.err
6995
       } && test -s conftest$ac_exeext &&
6996
       $as_test_x conftest$ac_exeext; then
6997
  eval "$as_ac_var=yes"
6998
else
6999
  echo "$as_me: failed program was:" >&5
7000
sed 's/^/| /' conftest.$ac_ext >&5
7001
7002
	eval "$as_ac_var=no"
7003
fi
7004
7005
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7006
      conftest$ac_exeext conftest.$ac_ext
7007
fi
7008
ac_res=`eval echo '${'$as_ac_var'}'`
7009
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7010
echo "${ECHO_T}$ac_res" >&6; }
7011
if test `eval echo '${'$as_ac_var'}'` = yes; then
7012
  cat >>confdefs.h <<_ACEOF
7013
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7014
_ACEOF
7015
7016
fi
7017
done
7018
7019
	  MSGFMT_OPTS=
7020
	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
7021
echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
7022
	  cat >conftest.foo <<_ACEOF
7023
7024
msgid ""
7025
msgstr ""
7026
"Content-Type: text/plain; charset=UTF-8\n"
7027
"Project-Id-Version: test 1.0\n"
7028
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
7029
"Last-Translator: test <foo@bar.xx>\n"
7030
"Language-Team: C <LL@li.org>\n"
7031
"MIME-Version: 1.0\n"
7032
"Content-Transfer-Encoding: 8bit\n"
7033
7034
_ACEOF
7035
if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
7036
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7037
  ac_status=$?
7038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039
  (exit $ac_status); }; then
7040
  MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
7041
echo "${ECHO_T}yes" >&6; }
7042
else { echo "$as_me:$LINENO: result: no" >&5
7043
echo "${ECHO_T}no" >&6; }
7044
echo "$as_me: failed input was:" >&5
7045
sed 's/^/| /' conftest.foo >&5
7046
fi
7047
7048
	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
7049
set dummy gmsgfmt; ac_word=$2
7050
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7051
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052
if test "${ac_cv_path_GMSGFMT+set}" = set; then
7053
  echo $ECHO_N "(cached) $ECHO_C" >&6
7054
else
7055
  case $GMSGFMT in
7056
  [\\/]* | ?:[\\/]*)
7057
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7058
  ;;
7059
  *)
7060
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061
for as_dir in $PATH
7062
do
7063
  IFS=$as_save_IFS
7064
  test -z "$as_dir" && as_dir=.
7065
  for ac_exec_ext in '' $ac_executable_extensions; do
7066
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7068
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069
    break 2
7070
  fi
7071
done
7072
done
7073
IFS=$as_save_IFS
7074
7075
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7076
  ;;
7077
esac
7078
fi
7079
GMSGFMT=$ac_cv_path_GMSGFMT
7080
if test -n "$GMSGFMT"; then
7081
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7082
echo "${ECHO_T}$GMSGFMT" >&6; }
7083
else
7084
  { echo "$as_me:$LINENO: result: no" >&5
7085
echo "${ECHO_T}no" >&6; }
7086
fi
7087
7088
7089
	  # Extract the first word of "xgettext", so it can be a program name with args.
7090
set dummy xgettext; ac_word=$2
7091
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093
if test "${ac_cv_path_XGETTEXT+set}" = set; then
7094
  echo $ECHO_N "(cached) $ECHO_C" >&6
7095
else
7096
  case "$XGETTEXT" in
7097
  /*)
7098
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7099
  ;;
7100
  *)
7101
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7102
  for ac_dir in $PATH; do
7103
    test -z "$ac_dir" && ac_dir=.
7104
    if test -f $ac_dir/$ac_word; then
7105
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7106
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7107
	break
7108
      fi
7109
    fi
7110
  done
7111
  IFS="$ac_save_ifs"
7112
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7113
  ;;
7114
esac
7115
fi
7116
XGETTEXT="$ac_cv_path_XGETTEXT"
7117
if test "$XGETTEXT" != ":"; then
7118
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7119
echo "${ECHO_T}$XGETTEXT" >&6; }
7120
else
7121
  { echo "$as_me:$LINENO: result: no" >&5
7122
echo "${ECHO_T}no" >&6; }
7123
fi
7124
7125
	  cat >conftest.$ac_ext <<_ACEOF
7126
/* confdefs.h.  */
7127
_ACEOF
7128
cat confdefs.h >>conftest.$ac_ext
7129
cat >>conftest.$ac_ext <<_ACEOF
7130
/* end confdefs.h.  */
7131
7132
int
7133
main ()
7134
{
7135
extern int _nl_msg_cat_cntr;
7136
			 return _nl_msg_cat_cntr
7137
  ;
7138
  return 0;
7139
}
7140
_ACEOF
7141
rm -f conftest.$ac_objext conftest$ac_exeext
7142
if { (ac_try="$ac_link"
7143
case "(($ac_try" in
7144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145
  *) ac_try_echo=$ac_try;;
7146
esac
7147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148
  (eval "$ac_link") 2>conftest.er1
7149
  ac_status=$?
7150
  grep -v '^ *+' conftest.er1 >conftest.err
7151
  rm -f conftest.er1
7152
  cat conftest.err >&5
7153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154
  (exit $ac_status); } && {
7155
	 test -z "$ac_c_werror_flag" ||
7156
	 test ! -s conftest.err
7157
       } && test -s conftest$ac_exeext &&
7158
       $as_test_x conftest$ac_exeext; then
7159
  CATOBJEXT=.gmo
7160
             DATADIRNAME=share
7161
else
7162
  echo "$as_me: failed program was:" >&5
7163
sed 's/^/| /' conftest.$ac_ext >&5
7164
7165
	case $host in
7166
	    *-*-solaris*)
7167
	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7168
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
7169
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7170
  echo $ECHO_N "(cached) $ECHO_C" >&6
7171
else
7172
  cat >conftest.$ac_ext <<_ACEOF
7173
/* confdefs.h.  */
7174
_ACEOF
7175
cat confdefs.h >>conftest.$ac_ext
7176
cat >>conftest.$ac_ext <<_ACEOF
7177
/* end confdefs.h.  */
7178
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7179
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7180
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7181
7182
/* System header to define __stub macros and hopefully few prototypes,
7183
    which can conflict with char bind_textdomain_codeset (); below.
7184
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7185
    <limits.h> exists even on freestanding compilers.  */
7186
7187
#ifdef __STDC__
7188
# include <limits.h>
7189
#else
7190
# include <assert.h>
7191
#endif
7192
7193
#undef bind_textdomain_codeset
7194
7195
/* Override any GCC internal prototype to avoid an error.
7196
   Use char because int might match the return type of a GCC
7197
   builtin and then its argument prototype would still apply.  */
7198
#ifdef __cplusplus
7199
extern "C"
7200
#endif
7201
char bind_textdomain_codeset ();
7202
/* The GNU C library defines this for functions which it implements
7203
    to always fail with ENOSYS.  Some functions are actually named
7204
    something starting with __ and the normal name is an alias.  */
7205
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7206
choke me
7207
#endif
7208
7209
int
7210
main ()
7211
{
7212
return bind_textdomain_codeset ();
7213
  ;
7214
  return 0;
7215
}
7216
_ACEOF
7217
rm -f conftest.$ac_objext conftest$ac_exeext
7218
if { (ac_try="$ac_link"
7219
case "(($ac_try" in
7220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221
  *) ac_try_echo=$ac_try;;
7222
esac
7223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224
  (eval "$ac_link") 2>conftest.er1
7225
  ac_status=$?
7226
  grep -v '^ *+' conftest.er1 >conftest.err
7227
  rm -f conftest.er1
7228
  cat conftest.err >&5
7229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230
  (exit $ac_status); } && {
7231
	 test -z "$ac_c_werror_flag" ||
7232
	 test ! -s conftest.err
7233
       } && test -s conftest$ac_exeext &&
7234
       $as_test_x conftest$ac_exeext; then
7235
  ac_cv_func_bind_textdomain_codeset=yes
7236
else
7237
  echo "$as_me: failed program was:" >&5
7238
sed 's/^/| /' conftest.$ac_ext >&5
7239
7240
	ac_cv_func_bind_textdomain_codeset=no
7241
fi
7242
7243
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7244
      conftest$ac_exeext conftest.$ac_ext
7245
fi
7246
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7247
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7248
if test $ac_cv_func_bind_textdomain_codeset = yes; then
7249
  CATOBJEXT=.gmo
7250
               DATADIRNAME=share
7251
else
7252
  CATOBJEXT=.mo
7253
               DATADIRNAME=lib
7254
fi
7255
7256
	    ;;
7257
	    *)
7258
	    CATOBJEXT=.mo
7259
            DATADIRNAME=lib
7260
	    ;;
7261
	    esac
7262
fi
7263
7264
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7265
      conftest$ac_exeext conftest.$ac_ext
7266
          LIBS="$glib_save_LIBS"
7267
	  INSTOBJEXT=.mo
7268
	else
7269
	  gt_cv_have_gettext=no
7270
	fi
7271
      fi
7272
7273
fi
7274
7275
7276
7277
    if test "$gt_cv_have_gettext" = "yes" ; then
7278
7279
cat >>confdefs.h <<\_ACEOF
7280
#define ENABLE_NLS 1
7281
_ACEOF
7282
7283
    fi
7284
7285
        if test "$XGETTEXT" != ":"; then
7286
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7287
        : ;
7288
      else
7289
        { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7290
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7291
        XGETTEXT=":"
7292
      fi
7293
    fi
7294
7295
    # We need to process the po/ directory.
7296
    POSUB=po
7297
7298
    ac_config_commands="$ac_config_commands default-1"
7299
7300
7301
                for lang in $ALL_LINGUAS; do
7302
      GMOFILES="$GMOFILES $lang.gmo"
7303
      POFILES="$POFILES $lang.po"
7304
    done
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
   if test "$gt_cv_have_gettext" = "yes"; then
7319
     if test "x$ALL_LINGUAS" = "x"; then
7320
       LINGUAS=
7321
     else
7322
       { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7323
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
7324
       NEW_LINGUAS=
7325
       for presentlang in $ALL_LINGUAS; do
7326
         useit=no
7327
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7328
           desiredlanguages="$LINGUAS"
7329
         else
7330
           desiredlanguages="$ALL_LINGUAS"
7331
         fi
7332
         for desiredlang in $desiredlanguages; do
7333
 	   # Use the presentlang catalog if desiredlang is
7334
           #   a. equal to presentlang, or
7335
           #   b. a variant of presentlang (because in this case,
7336
           #      presentlang can be used as a fallback for messages
7337
           #      which are not translated in the desiredlang catalog).
7338
           case "$desiredlang" in
7339
             "$presentlang"*) useit=yes;;
7340
           esac
7341
         done
7342
         if test $useit = yes; then
7343
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7344
         fi
7345
       done
7346
       LINGUAS=$NEW_LINGUAS
7347
       { echo "$as_me:$LINENO: result: $LINGUAS" >&5
7348
echo "${ECHO_T}$LINGUAS" >&6; }
7349
     fi
7350
7351
          if test -n "$LINGUAS"; then
7352
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7353
     fi
7354
   fi
7355
7356
            MKINSTALLDIRS=
7357
   if test -n "$ac_aux_dir"; then
7358
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7359
   fi
7360
   if test -z "$MKINSTALLDIRS"; then
7361
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7362
   fi
7363
7364
7365
         test -d po || mkdir po
7366
   if test "x$srcdir" != "x."; then
7367
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7368
       posrcprefix="$srcdir/"
7369
     else
7370
       posrcprefix="../$srcdir/"
7371
     fi
7372
   else
7373
     posrcprefix="../"
7374
   fi
7375
   rm -f po/POTFILES
7376
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7377
	< $srcdir/po/POTFILES.in > po/POTFILES
7378
7379
7380
# Check whether --enable-shared was given.
7381
if test "${enable_shared+set}" = set; then
7382
  enableval=$enable_shared; p=${PACKAGE-default}
7383
    case $enableval in
7384
    yes) enable_shared=yes ;;
7385
    no) enable_shared=no ;;
7386
    *)
7387
      enable_shared=no
7388
      # Look at the argument we got.  We use all the common list separators.
7389
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7390
      for pkg in $enableval; do
7391
	IFS="$lt_save_ifs"
7392
	if test "X$pkg" = "X$p"; then
7393
	  enable_shared=yes
7394
	fi
7395
      done
7396
      IFS="$lt_save_ifs"
7397
      ;;
7398
    esac
7399
else
7400
  enable_shared=yes
7401
fi
7402
7403
7404
# Check whether --enable-static was given.
7405
if test "${enable_static+set}" = set; then
7406
  enableval=$enable_static; p=${PACKAGE-default}
7407
    case $enableval in
7408
    yes) enable_static=yes ;;
7409
    no) enable_static=no ;;
7410
    *)
7411
     enable_static=no
7412
      # Look at the argument we got.  We use all the common list separators.
7413
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414
      for pkg in $enableval; do
7415
	IFS="$lt_save_ifs"
7416
	if test "X$pkg" = "X$p"; then
7417
	  enable_static=yes
7418
	fi
7419
      done
7420
      IFS="$lt_save_ifs"
7421
      ;;
7422
    esac
7423
else
7424
  enable_static=yes
7425
fi
7426
7427
7428
# Check whether --enable-fast-install was given.
7429
if test "${enable_fast_install+set}" = set; then
7430
  enableval=$enable_fast_install; p=${PACKAGE-default}
7431
    case $enableval in
7432
    yes) enable_fast_install=yes ;;
7433
    no) enable_fast_install=no ;;
7434
    *)
7435
      enable_fast_install=no
7436
      # Look at the argument we got.  We use all the common list separators.
7437
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7438
      for pkg in $enableval; do
7439
	IFS="$lt_save_ifs"
7440
	if test "X$pkg" = "X$p"; then
7441
	  enable_fast_install=yes
7442
	fi
7443
      done
7444
      IFS="$lt_save_ifs"
7445
      ;;
7446
    esac
7447
else
7448
  enable_fast_install=yes
7449
fi
7450
7451
7452
# Make sure we can run config.sub.
7453
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7454
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7455
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7456
   { (exit 1); exit 1; }; }
7457
7458
{ echo "$as_me:$LINENO: checking build system type" >&5
7459
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
7460
if test "${ac_cv_build+set}" = set; then
7461
  echo $ECHO_N "(cached) $ECHO_C" >&6
7462
else
7463
  ac_build_alias=$build_alias
7464
test "x$ac_build_alias" = x &&
7465
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7466
test "x$ac_build_alias" = x &&
7467
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7468
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7469
   { (exit 1); exit 1; }; }
7470
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7471
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7472
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7473
   { (exit 1); exit 1; }; }
7474
7475
fi
7476
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7477
echo "${ECHO_T}$ac_cv_build" >&6; }
7478
case $ac_cv_build in
7479
*-*-*) ;;
7480
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7481
echo "$as_me: error: invalid value of canonical build" >&2;}
7482
   { (exit 1); exit 1; }; };;
7483
esac
7484
build=$ac_cv_build
7485
ac_save_IFS=$IFS; IFS='-'
7486
set x $ac_cv_build
7487
shift
7488
build_cpu=$1
7489
build_vendor=$2
7490
shift; shift
7491
# Remember, the first character of IFS is used to create $*,
7492
# except with old shells:
7493
build_os=$*
7494
IFS=$ac_save_IFS
7495
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7496
7497
7498
{ echo "$as_me:$LINENO: checking host system type" >&5
7499
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
7500
if test "${ac_cv_host+set}" = set; then
7501
  echo $ECHO_N "(cached) $ECHO_C" >&6
7502
else
7503
  if test "x$host_alias" = x; then
7504
  ac_cv_host=$ac_cv_build
7505
else
7506
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7507
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7508
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7509
   { (exit 1); exit 1; }; }
7510
fi
7511
7512
fi
7513
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7514
echo "${ECHO_T}$ac_cv_host" >&6; }
7515
case $ac_cv_host in
7516
*-*-*) ;;
7517
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7518
echo "$as_me: error: invalid value of canonical host" >&2;}
7519
   { (exit 1); exit 1; }; };;
7520
esac
7521
host=$ac_cv_host
7522
ac_save_IFS=$IFS; IFS='-'
7523
set x $ac_cv_host
7524
shift
7525
host_cpu=$1
7526
host_vendor=$2
7527
shift; shift
7528
# Remember, the first character of IFS is used to create $*,
7529
# except with old shells:
7530
host_os=$*
7531
IFS=$ac_save_IFS
7532
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7533
7534
7535
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7536
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7537
if test "${lt_cv_path_SED+set}" = set; then
7538
  echo $ECHO_N "(cached) $ECHO_C" >&6
7539
else
7540
  # Loop through the user's path and test for sed and gsed.
7541
# Then use that list of sed's as ones to test for truncation.
7542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543
for as_dir in $PATH
7544
do
7545
  IFS=$as_save_IFS
7546
  test -z "$as_dir" && as_dir=.
7547
  for lt_ac_prog in sed gsed; do
7548
    for ac_exec_ext in '' $ac_executable_extensions; do
7549
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
7550
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7551
      fi
7552
    done
7553
  done
7554
done
7555
IFS=$as_save_IFS
7556
lt_ac_max=0
7557
lt_ac_count=0
7558
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7559
# along with /bin/sed that truncates output.
7560
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7561
  test ! -f $lt_ac_sed && continue
7562
  cat /dev/null > conftest.in
7563
  lt_ac_count=0
7564
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7565
  # Check for GNU sed and select it if it is found.
7566
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7567
    lt_cv_path_SED=$lt_ac_sed
7568
    break
7569
  fi
7570
  while true; do
7571
    cat conftest.in conftest.in >conftest.tmp
7572
    mv conftest.tmp conftest.in
7573
    cp conftest.in conftest.nl
7574
    echo >>conftest.nl
7575
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7576
    cmp -s conftest.out conftest.nl || break
7577
    # 10000 chars as input seems more than enough
7578
    test $lt_ac_count -gt 10 && break
7579
    lt_ac_count=`expr $lt_ac_count + 1`
7580
    if test $lt_ac_count -gt $lt_ac_max; then
7581
      lt_ac_max=$lt_ac_count
7582
      lt_cv_path_SED=$lt_ac_sed
7583
    fi
7584
  done
7585
done
7586
7587
fi
7588
7589
SED=$lt_cv_path_SED
7590
7591
{ echo "$as_me:$LINENO: result: $SED" >&5
7592
echo "${ECHO_T}$SED" >&6; }
7593
7594
7595
# Check whether --with-gnu-ld was given.
7596
if test "${with_gnu_ld+set}" = set; then
7597
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7598
else
7599
  with_gnu_ld=no
7600
fi
7601
7602
ac_prog=ld
7603
if test "$GCC" = yes; then
7604
  # Check if gcc -print-prog-name=ld gives a path.
7605
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7606
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7607
  case $host in
7608
  *-*-mingw*)
7609
    # gcc leaves a trailing carriage return which upsets mingw
7610
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7611
  *)
7612
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7613
  esac
7614
  case $ac_prog in
7615
    # Accept absolute paths.
7616
    [\\/]* | ?:[\\/]*)
7617
      re_direlt='/[^/][^/]*/\.\./'
7618
      # Canonicalize the pathname of ld
7619
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7620
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7621
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7622
      done
7623
      test -z "$LD" && LD="$ac_prog"
7624
      ;;
7625
  "")
7626
    # If it fails, then pretend we aren't using GCC.
7627
    ac_prog=ld
7628
    ;;
7629
  *)
7630
    # If it is relative, then search for the first ld in PATH.
7631
    with_gnu_ld=unknown
7632
    ;;
7633
  esac
7634
elif test "$with_gnu_ld" = yes; then
7635
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
7636
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7637
else
7638
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7639
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7640
fi
7641
if test "${lt_cv_path_LD+set}" = set; then
7642
  echo $ECHO_N "(cached) $ECHO_C" >&6
7643
else
7644
  if test -z "$LD"; then
7645
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7646
  for ac_dir in $PATH; do
7647
    IFS="$lt_save_ifs"
7648
    test -z "$ac_dir" && ac_dir=.
7649
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7650
      lt_cv_path_LD="$ac_dir/$ac_prog"
7651
      # Check to see if the program is GNU ld.  I'd rather use --version,
7652
      # but apparently some variants of GNU ld only accept -v.
7653
      # Break only if it was the GNU/non-GNU ld that we prefer.
7654
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7655
      *GNU* | *'with BFD'*)
7656
	test "$with_gnu_ld" != no && break
7657
	;;
7658
      *)
7659
	test "$with_gnu_ld" != yes && break
7660
	;;
7661
      esac
7662
    fi
7663
  done
7664
  IFS="$lt_save_ifs"
7665
else
7666
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7667
fi
7668
fi
7669
7670
LD="$lt_cv_path_LD"
7671
if test -n "$LD"; then
7672
  { echo "$as_me:$LINENO: result: $LD" >&5
7673
echo "${ECHO_T}$LD" >&6; }
7674
else
7675
  { echo "$as_me:$LINENO: result: no" >&5
7676
echo "${ECHO_T}no" >&6; }
7677
fi
7678
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7679
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7680
   { (exit 1); exit 1; }; }
7681
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7682
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7683
if test "${lt_cv_prog_gnu_ld+set}" = set; then
7684
  echo $ECHO_N "(cached) $ECHO_C" >&6
7685
else
7686
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7687
case `$LD -v 2>&1 </dev/null` in
7688
*GNU* | *'with BFD'*)
7689
  lt_cv_prog_gnu_ld=yes
7690
  ;;
7691
*)
7692
  lt_cv_prog_gnu_ld=no
7693
  ;;
7694
esac
7695
fi
7696
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7697
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
7698
with_gnu_ld=$lt_cv_prog_gnu_ld
7699
7700
7701
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7702
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
7703
if test "${lt_cv_ld_reload_flag+set}" = set; then
7704
  echo $ECHO_N "(cached) $ECHO_C" >&6
7705
else
7706
  lt_cv_ld_reload_flag='-r'
7707
fi
7708
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7709
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
7710
reload_flag=$lt_cv_ld_reload_flag
7711
case $reload_flag in
7712
"" | " "*) ;;
7713
*) reload_flag=" $reload_flag" ;;
7714
esac
7715
reload_cmds='$LD$reload_flag -o $output$reload_objs'
7716
case $host_os in
7717
  darwin*)
7718
    if test "$GCC" = yes; then
7719
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7720
    else
7721
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7722
    fi
7723
    ;;
7724
esac
7725
7726
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7727
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
7728
if test "${lt_cv_path_NM+set}" = set; then
7729
  echo $ECHO_N "(cached) $ECHO_C" >&6
7730
else
7731
  if test -n "$NM"; then
7732
  # Let the user override the test.
7733
  lt_cv_path_NM="$NM"
7734
else
7735
  lt_nm_to_check="${ac_tool_prefix}nm"
7736
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7737
    lt_nm_to_check="$lt_nm_to_check nm"
7738
  fi
7739
  for lt_tmp_nm in $lt_nm_to_check; do
7740
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7741
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7742
      IFS="$lt_save_ifs"
7743
      test -z "$ac_dir" && ac_dir=.
7744
      tmp_nm="$ac_dir/$lt_tmp_nm"
7745
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7746
	# Check to see if the nm accepts a BSD-compat flag.
7747
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7748
	#   nm: unknown option "B" ignored
7749
	# Tru64's nm complains that /dev/null is an invalid object file
7750
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7751
	*/dev/null* | *'Invalid file or object type'*)
7752
	  lt_cv_path_NM="$tmp_nm -B"
7753
	  break
7754
	  ;;
7755
	*)
7756
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7757
	  */dev/null*)
7758
	    lt_cv_path_NM="$tmp_nm -p"
7759
	    break
7760
	    ;;
7761
	  *)
7762
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7763
	    continue # so that we can try to find one that supports BSD flags
7764
	    ;;
7765
	  esac
7766
	  ;;
7767
	esac
7768
      fi
7769
    done
7770
    IFS="$lt_save_ifs"
7771
  done
7772
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7773
fi
7774
fi
7775
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7776
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
7777
NM="$lt_cv_path_NM"
7778
7779
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
7780
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7781
LN_S=$as_ln_s
7782
if test "$LN_S" = "ln -s"; then
7783
  { echo "$as_me:$LINENO: result: yes" >&5
7784
echo "${ECHO_T}yes" >&6; }
7785
else
7786
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7787
echo "${ECHO_T}no, using $LN_S" >&6; }
7788
fi
7789
7790
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7791
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
7792
if test "${lt_cv_deplibs_check_method+set}" = set; then
7793
  echo $ECHO_N "(cached) $ECHO_C" >&6
7794
else
7795
  lt_cv_file_magic_cmd='$MAGIC_CMD'
7796
lt_cv_file_magic_test_file=
7797
lt_cv_deplibs_check_method='unknown'
7798
# Need to set the preceding variable on all platforms that support
7799
# interlibrary dependencies.
7800
# 'none' -- dependencies not supported.
7801
# `unknown' -- same as none, but documents that we really don't know.
7802
# 'pass_all' -- all dependencies passed with no checks.
7803
# 'test_compile' -- check by making test program.
7804
# 'file_magic [[regex]]' -- check by looking for files in library path
7805
# which responds to the $file_magic_cmd with a given extended regex.
7806
# If you have `file' or equivalent on your system and you're not sure
7807
# whether `pass_all' will *always* work, you probably want this one.
7808
7809
case $host_os in
7810
aix[4-9]*)
7811
  lt_cv_deplibs_check_method=pass_all
7812
  ;;
7813
7814
beos*)
7815
  lt_cv_deplibs_check_method=pass_all
7816
  ;;
7817
7818
bsdi[45]*)
7819
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7820
  lt_cv_file_magic_cmd='/usr/bin/file -L'
7821
  lt_cv_file_magic_test_file=/shlib/libc.so
7822
  ;;
7823
7824
cygwin*)
7825
  # func_win32_libid is a shell function defined in ltmain.sh
7826
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7827
  lt_cv_file_magic_cmd='func_win32_libid'
7828
  ;;
7829
7830
mingw* | pw32*)
7831
  # Base MSYS/MinGW do not provide the 'file' command needed by
7832
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7833
  # unless we find 'file', for example because we are cross-compiling.
7834
  if ( file / ) >/dev/null 2>&1; then
7835
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7836
    lt_cv_file_magic_cmd='func_win32_libid'
7837
  else
7838
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7839
    lt_cv_file_magic_cmd='$OBJDUMP -f'
7840
  fi
7841
  ;;
7842
7843
darwin* | rhapsody*)
7844
  lt_cv_deplibs_check_method=pass_all
7845
  ;;
7846
7847
freebsd* | dragonfly*)
7848
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7849
    case $host_cpu in
7850
    i*86 )
7851
      # Not sure whether the presence of OpenBSD here was a mistake.
7852
      # Let's accept both of them until this is cleared up.
7853
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7854
      lt_cv_file_magic_cmd=/usr/bin/file
7855
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7856
      ;;
7857
    esac
7858
  else
7859
    lt_cv_deplibs_check_method=pass_all
7860
  fi
7861
  ;;
7862
7863
gnu*)
7864
  lt_cv_deplibs_check_method=pass_all
7865
  ;;
7866
7867
hpux10.20* | hpux11*)
7868
  lt_cv_file_magic_cmd=/usr/bin/file
7869
  case $host_cpu in
7870
  ia64*)
7871
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7872
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7873
    ;;
7874
  hppa*64*)
7875
    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]'
7876
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7877
    ;;
7878
  *)
7879
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7880
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7881
    ;;
7882
  esac
7883
  ;;
7884
7885
interix[3-9]*)
7886
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7887
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7888
  ;;
7889
7890
irix5* | irix6* | nonstopux*)
7891
  case $LD in
7892
  *-32|*"-32 ") libmagic=32-bit;;
7893
  *-n32|*"-n32 ") libmagic=N32;;
7894
  *-64|*"-64 ") libmagic=64-bit;;
7895
  *) libmagic=never-match;;
7896
  esac
7897
  lt_cv_deplibs_check_method=pass_all
7898
  ;;
7899
7900
# This must be Linux ELF.
7901
linux* | k*bsd*-gnu)
7902
  lt_cv_deplibs_check_method=pass_all
7903
  ;;
7904
7905
netbsd* | netbsdelf*-gnu)
7906
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7907
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7908
  else
7909
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7910
  fi
7911
  ;;
7912
7913
newos6*)
7914
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7915
  lt_cv_file_magic_cmd=/usr/bin/file
7916
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7917
  ;;
7918
7919
nto-qnx*)
7920
  lt_cv_deplibs_check_method=unknown
7921
  ;;
7922
7923
openbsd*)
7924
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7925
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7926
  else
7927
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7928
  fi
7929
  ;;
7930
7931
osf3* | osf4* | osf5*)
7932
  lt_cv_deplibs_check_method=pass_all
7933
  ;;
7934
7935
rdos*)
7936
  lt_cv_deplibs_check_method=pass_all
7937
  ;;
7938
7939
solaris*)
7940
  lt_cv_deplibs_check_method=pass_all
7941
  ;;
7942
7943
sysv4 | sysv4.3*)
7944
  case $host_vendor in
7945
  motorola)
7946
    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]'
7947
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7948
    ;;
7949
  ncr)
7950
    lt_cv_deplibs_check_method=pass_all
7951
    ;;
7952
  sequent)
7953
    lt_cv_file_magic_cmd='/bin/file'
7954
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7955
    ;;
7956
  sni)
7957
    lt_cv_file_magic_cmd='/bin/file'
7958
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7959
    lt_cv_file_magic_test_file=/lib/libc.so
7960
    ;;
7961
  siemens)
7962
    lt_cv_deplibs_check_method=pass_all
7963
    ;;
7964
  pc)
7965
    lt_cv_deplibs_check_method=pass_all
7966
    ;;
7967
  esac
7968
  ;;
7969
7970
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7971
  lt_cv_deplibs_check_method=pass_all
7972
  ;;
7973
esac
7974
7975
fi
7976
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7977
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
7978
file_magic_cmd=$lt_cv_file_magic_cmd
7979
deplibs_check_method=$lt_cv_deplibs_check_method
7980
test -z "$deplibs_check_method" && deplibs_check_method=unknown
7981
7982
7983
7984
7985
# If no C compiler was specified, use CC.
7986
LTCC=${LTCC-"$CC"}
7987
7988
# If no C compiler flags were specified, use CFLAGS.
7989
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7990
7991
# Allow CC to be a program name with arguments.
7992
compiler=$CC
7993
7994
# Check whether --enable-libtool-lock was given.
7995
if test "${enable_libtool_lock+set}" = set; then
7996
  enableval=$enable_libtool_lock;
7997
fi
7998
7999
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8000
8001
# Some flags need to be propagated to the compiler or linker for good
8002
# libtool support.
8003
case $host in
8004
ia64-*-hpux*)
8005
  # Find out which ABI we are using.
8006
  echo 'int i;' > conftest.$ac_ext
8007
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8008
  (eval $ac_compile) 2>&5
8009
  ac_status=$?
8010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011
  (exit $ac_status); }; then
8012
    case `/usr/bin/file conftest.$ac_objext` in
8013
    *ELF-32*)
8014
      HPUX_IA64_MODE="32"
8015
      ;;
8016
    *ELF-64*)
8017
      HPUX_IA64_MODE="64"
8018
      ;;
8019
    esac
8020
  fi
8021
  rm -rf conftest*
8022
  ;;
8023
*-*-irix6*)
8024
  # Find out which ABI we are using.
8025
  echo '#line 8025 "configure"' > conftest.$ac_ext
8026
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027
  (eval $ac_compile) 2>&5
8028
  ac_status=$?
8029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030
  (exit $ac_status); }; then
8031
   if test "$lt_cv_prog_gnu_ld" = yes; then
8032
    case `/usr/bin/file conftest.$ac_objext` in
8033
    *32-bit*)
8034
      LD="${LD-ld} -melf32bsmip"
8035
      ;;
8036
    *N32*)
8037
      LD="${LD-ld} -melf32bmipn32"
8038
      ;;
8039
    *64-bit*)
8040
      LD="${LD-ld} -melf64bmip"
8041
      ;;
8042
    esac
8043
   else
8044
    case `/usr/bin/file conftest.$ac_objext` in
8045
    *32-bit*)
8046
      LD="${LD-ld} -32"
8047
      ;;
8048
    *N32*)
8049
      LD="${LD-ld} -n32"
8050
      ;;
8051
    *64-bit*)
8052
      LD="${LD-ld} -64"
8053
      ;;
8054
    esac
8055
   fi
8056
  fi
8057
  rm -rf conftest*
8058
  ;;
8059
8060
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8061
s390*-*linux*|sparc*-*linux*)
8062
  # Find out which ABI we are using.
8063
  echo 'int i;' > conftest.$ac_ext
8064
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065
  (eval $ac_compile) 2>&5
8066
  ac_status=$?
8067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068
  (exit $ac_status); }; then
8069
    case `/usr/bin/file conftest.o` in
8070
    *32-bit*)
8071
      case $host in
8072
        x86_64-*kfreebsd*-gnu)
8073
          LD="${LD-ld} -m elf_i386_fbsd"
8074
          ;;
8075
        x86_64-*linux*)
8076
          LD="${LD-ld} -m elf_i386"
8077
          ;;
8078
        ppc64-*linux*|powerpc64-*linux*)
8079
          LD="${LD-ld} -m elf32ppclinux"
8080
          ;;
8081
        s390x-*linux*)
8082
          LD="${LD-ld} -m elf_s390"
8083
          ;;
8084
        sparc64-*linux*)
8085
          LD="${LD-ld} -m elf32_sparc"
8086
          ;;
8087
      esac
8088
      ;;
8089
    *64-bit*)
8090
      case $host in
8091
        x86_64-*kfreebsd*-gnu)
8092
          LD="${LD-ld} -m elf_x86_64_fbsd"
8093
          ;;
8094
        x86_64-*linux*)
8095
          LD="${LD-ld} -m elf_x86_64"
8096
          ;;
8097
        ppc*-*linux*|powerpc*-*linux*)
8098
          LD="${LD-ld} -m elf64ppc"
8099
          ;;
8100
        s390*-*linux*)
8101
          LD="${LD-ld} -m elf64_s390"
8102
          ;;
8103
        sparc*-*linux*)
8104
          LD="${LD-ld} -m elf64_sparc"
8105
          ;;
8106
      esac
8107
      ;;
8108
    esac
8109
  fi
8110
  rm -rf conftest*
8111
  ;;
8112
8113
*-*-sco3.2v5*)
8114
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8115
  SAVE_CFLAGS="$CFLAGS"
8116
  CFLAGS="$CFLAGS -belf"
8117
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8118
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8119
if test "${lt_cv_cc_needs_belf+set}" = set; then
8120
  echo $ECHO_N "(cached) $ECHO_C" >&6
8121
else
8122
  ac_ext=c
8123
ac_cpp='$CPP $CPPFLAGS'
8124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128
     cat >conftest.$ac_ext <<_ACEOF
8129
/* confdefs.h.  */
8130
_ACEOF
8131
cat confdefs.h >>conftest.$ac_ext
8132
cat >>conftest.$ac_ext <<_ACEOF
8133
/* end confdefs.h.  */
8134
8135
int
8136
main ()
8137
{
8138
8139
  ;
8140
  return 0;
8141
}
8142
_ACEOF
8143
rm -f conftest.$ac_objext conftest$ac_exeext
8144
if { (ac_try="$ac_link"
8145
case "(($ac_try" in
8146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147
  *) ac_try_echo=$ac_try;;
8148
esac
8149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150
  (eval "$ac_link") 2>conftest.er1
8151
  ac_status=$?
8152
  grep -v '^ *+' conftest.er1 >conftest.err
8153
  rm -f conftest.er1
8154
  cat conftest.err >&5
8155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156
  (exit $ac_status); } && {
8157
	 test -z "$ac_c_werror_flag" ||
8158
	 test ! -s conftest.err
8159
       } && test -s conftest$ac_exeext &&
8160
       $as_test_x conftest$ac_exeext; then
8161
  lt_cv_cc_needs_belf=yes
8162
else
8163
  echo "$as_me: failed program was:" >&5
8164
sed 's/^/| /' conftest.$ac_ext >&5
8165
8166
	lt_cv_cc_needs_belf=no
8167
fi
8168
8169
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8170
      conftest$ac_exeext conftest.$ac_ext
8171
     ac_ext=c
8172
ac_cpp='$CPP $CPPFLAGS'
8173
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8176
8177
fi
8178
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8179
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8180
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8181
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8182
    CFLAGS="$SAVE_CFLAGS"
8183
  fi
8184
  ;;
8185
sparc*-*solaris*)
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.o` in
8194
    *64-bit*)
8195
      case $lt_cv_prog_gnu_ld in
8196
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8197
      *)
8198
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8199
	  LD="${LD-ld} -64"
8200
	fi
8201
	;;
8202
      esac
8203
      ;;
8204
    esac
8205
  fi
8206
  rm -rf conftest*
8207
  ;;
8208
8209
8210
esac
8211
8212
need_locks="$enable_libtool_lock"
8213
8214
8215
8216
for ac_header in dlfcn.h
8217
do
8218
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8219
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8220
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8221
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8222
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8223
  echo $ECHO_N "(cached) $ECHO_C" >&6
8224
fi
8225
ac_res=`eval echo '${'$as_ac_Header'}'`
8226
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8227
echo "${ECHO_T}$ac_res" >&6; }
8228
else
8229
  # Is the header compilable?
8230
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8231
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8232
cat >conftest.$ac_ext <<_ACEOF
8233
/* confdefs.h.  */
8234
_ACEOF
8235
cat confdefs.h >>conftest.$ac_ext
8236
cat >>conftest.$ac_ext <<_ACEOF
8237
/* end confdefs.h.  */
8238
$ac_includes_default
8239
#include <$ac_header>
8240
_ACEOF
8241
rm -f conftest.$ac_objext
8242
if { (ac_try="$ac_compile"
8243
case "(($ac_try" in
8244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245
  *) ac_try_echo=$ac_try;;
8246
esac
8247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248
  (eval "$ac_compile") 2>conftest.er1
8249
  ac_status=$?
8250
  grep -v '^ *+' conftest.er1 >conftest.err
8251
  rm -f conftest.er1
8252
  cat conftest.err >&5
8253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
  (exit $ac_status); } && {
8255
	 test -z "$ac_c_werror_flag" ||
8256
	 test ! -s conftest.err
8257
       } && test -s conftest.$ac_objext; then
8258
  ac_header_compiler=yes
8259
else
8260
  echo "$as_me: failed program was:" >&5
8261
sed 's/^/| /' conftest.$ac_ext >&5
8262
8263
	ac_header_compiler=no
8264
fi
8265
8266
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268
echo "${ECHO_T}$ac_header_compiler" >&6; }
8269
8270
# Is the header present?
8271
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8272
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8273
cat >conftest.$ac_ext <<_ACEOF
8274
/* confdefs.h.  */
8275
_ACEOF
8276
cat confdefs.h >>conftest.$ac_ext
8277
cat >>conftest.$ac_ext <<_ACEOF
8278
/* end confdefs.h.  */
8279
#include <$ac_header>
8280
_ACEOF
8281
if { (ac_try="$ac_cpp conftest.$ac_ext"
8282
case "(($ac_try" in
8283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284
  *) ac_try_echo=$ac_try;;
8285
esac
8286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8288
  ac_status=$?
8289
  grep -v '^ *+' conftest.er1 >conftest.err
8290
  rm -f conftest.er1
8291
  cat conftest.err >&5
8292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293
  (exit $ac_status); } >/dev/null && {
8294
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8295
	 test ! -s conftest.err
8296
       }; then
8297
  ac_header_preproc=yes
8298
else
8299
  echo "$as_me: failed program was:" >&5
8300
sed 's/^/| /' conftest.$ac_ext >&5
8301
8302
  ac_header_preproc=no
8303
fi
8304
8305
rm -f conftest.err conftest.$ac_ext
8306
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8307
echo "${ECHO_T}$ac_header_preproc" >&6; }
8308
8309
# So?  What about this header?
8310
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8311
  yes:no: )
8312
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8313
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8314
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8315
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8316
    ac_header_preproc=yes
8317
    ;;
8318
  no:yes:* )
8319
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8320
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8321
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8322
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8323
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8324
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8325
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8326
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8327
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8328
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8329
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8330
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8331
8332
    ;;
8333
esac
8334
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8335
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8336
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8337
  echo $ECHO_N "(cached) $ECHO_C" >&6
8338
else
8339
  eval "$as_ac_Header=\$ac_header_preproc"
8340
fi
8341
ac_res=`eval echo '${'$as_ac_Header'}'`
8342
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8343
echo "${ECHO_T}$ac_res" >&6; }
8344
8345
fi
8346
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8347
  cat >>confdefs.h <<_ACEOF
8348
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8349
_ACEOF
8350
8351
fi
8352
8353
done
8354
8355
ac_ext=cpp
8356
ac_cpp='$CXXCPP $CPPFLAGS'
8357
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8360
if test -z "$CXX"; then
8361
  if test -n "$CCC"; then
8362
    CXX=$CCC
8363
  else
8364
    if test -n "$ac_tool_prefix"; then
8365
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8366
  do
8367
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8368
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8369
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371
if test "${ac_cv_prog_CXX+set}" = set; then
8372
  echo $ECHO_N "(cached) $ECHO_C" >&6
8373
else
8374
  if test -n "$CXX"; then
8375
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8376
else
8377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378
for as_dir in $PATH
8379
do
8380
  IFS=$as_save_IFS
8381
  test -z "$as_dir" && as_dir=.
8382
  for ac_exec_ext in '' $ac_executable_extensions; do
8383
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8385
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8386
    break 2
8387
  fi
8388
done
8389
done
8390
IFS=$as_save_IFS
8391
8392
fi
8393
fi
8394
CXX=$ac_cv_prog_CXX
8395
if test -n "$CXX"; then
8396
  { echo "$as_me:$LINENO: result: $CXX" >&5
8397
echo "${ECHO_T}$CXX" >&6; }
8398
else
8399
  { echo "$as_me:$LINENO: result: no" >&5
8400
echo "${ECHO_T}no" >&6; }
8401
fi
8402
8403
8404
    test -n "$CXX" && break
8405
  done
8406
fi
8407
if test -z "$CXX"; then
8408
  ac_ct_CXX=$CXX
8409
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8410
do
8411
  # Extract the first word of "$ac_prog", so it can be a program name with args.
8412
set dummy $ac_prog; ac_word=$2
8413
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8414
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8415
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8416
  echo $ECHO_N "(cached) $ECHO_C" >&6
8417
else
8418
  if test -n "$ac_ct_CXX"; then
8419
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8420
else
8421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422
for as_dir in $PATH
8423
do
8424
  IFS=$as_save_IFS
8425
  test -z "$as_dir" && as_dir=.
8426
  for ac_exec_ext in '' $ac_executable_extensions; do
8427
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428
    ac_cv_prog_ac_ct_CXX="$ac_prog"
8429
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8430
    break 2
8431
  fi
8432
done
8433
done
8434
IFS=$as_save_IFS
8435
8436
fi
8437
fi
8438
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8439
if test -n "$ac_ct_CXX"; then
8440
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8441
echo "${ECHO_T}$ac_ct_CXX" >&6; }
8442
else
8443
  { echo "$as_me:$LINENO: result: no" >&5
8444
echo "${ECHO_T}no" >&6; }
8445
fi
8446
8447
8448
  test -n "$ac_ct_CXX" && break
8449
done
8450
8451
  if test "x$ac_ct_CXX" = x; then
8452
    CXX="g++"
8453
  else
8454
    case $cross_compiling:$ac_tool_warned in
8455
yes:)
8456
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8457
whose name does not start with the host triplet.  If you think this
8458
configuration is useful to you, please write to autoconf@gnu.org." >&5
8459
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8460
whose name does not start with the host triplet.  If you think this
8461
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8462
ac_tool_warned=yes ;;
8463
esac
8464
    CXX=$ac_ct_CXX
8465
  fi
8466
fi
8467
8468
  fi
8469
fi
8470
# Provide some information about the compiler.
8471
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8472
ac_compiler=`set X $ac_compile; echo $2`
8473
{ (ac_try="$ac_compiler --version >&5"
8474
case "(($ac_try" in
8475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476
  *) ac_try_echo=$ac_try;;
8477
esac
8478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479
  (eval "$ac_compiler --version >&5") 2>&5
8480
  ac_status=$?
8481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482
  (exit $ac_status); }
8483
{ (ac_try="$ac_compiler -v >&5"
8484
case "(($ac_try" in
8485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486
  *) ac_try_echo=$ac_try;;
8487
esac
8488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489
  (eval "$ac_compiler -v >&5") 2>&5
8490
  ac_status=$?
8491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492
  (exit $ac_status); }
8493
{ (ac_try="$ac_compiler -V >&5"
8494
case "(($ac_try" in
8495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496
  *) ac_try_echo=$ac_try;;
8497
esac
8498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499
  (eval "$ac_compiler -V >&5") 2>&5
8500
  ac_status=$?
8501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502
  (exit $ac_status); }
8503
8504
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8505
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8506
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8507
  echo $ECHO_N "(cached) $ECHO_C" >&6
8508
else
8509
  cat >conftest.$ac_ext <<_ACEOF
8510
/* confdefs.h.  */
8511
_ACEOF
8512
cat confdefs.h >>conftest.$ac_ext
8513
cat >>conftest.$ac_ext <<_ACEOF
8514
/* end confdefs.h.  */
8515
8516
int
8517
main ()
8518
{
8519
#ifndef __GNUC__
8520
       choke me
8521
#endif
8522
8523
  ;
8524
  return 0;
8525
}
8526
_ACEOF
8527
rm -f conftest.$ac_objext
8528
if { (ac_try="$ac_compile"
8529
case "(($ac_try" in
8530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531
  *) ac_try_echo=$ac_try;;
8532
esac
8533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534
  (eval "$ac_compile") 2>conftest.er1
8535
  ac_status=$?
8536
  grep -v '^ *+' conftest.er1 >conftest.err
8537
  rm -f conftest.er1
8538
  cat conftest.err >&5
8539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540
  (exit $ac_status); } && {
8541
	 test -z "$ac_cxx_werror_flag" ||
8542
	 test ! -s conftest.err
8543
       } && test -s conftest.$ac_objext; then
8544
  ac_compiler_gnu=yes
8545
else
8546
  echo "$as_me: failed program was:" >&5
8547
sed 's/^/| /' conftest.$ac_ext >&5
8548
8549
	ac_compiler_gnu=no
8550
fi
8551
8552
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8554
8555
fi
8556
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8557
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8558
GXX=`test $ac_compiler_gnu = yes && echo yes`
8559
ac_test_CXXFLAGS=${CXXFLAGS+set}
8560
ac_save_CXXFLAGS=$CXXFLAGS
8561
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8562
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8563
if test "${ac_cv_prog_cxx_g+set}" = set; then
8564
  echo $ECHO_N "(cached) $ECHO_C" >&6
8565
else
8566
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8567
   ac_cxx_werror_flag=yes
8568
   ac_cv_prog_cxx_g=no
8569
   CXXFLAGS="-g"
8570
   cat >conftest.$ac_ext <<_ACEOF
8571
/* confdefs.h.  */
8572
_ACEOF
8573
cat confdefs.h >>conftest.$ac_ext
8574
cat >>conftest.$ac_ext <<_ACEOF
8575
/* end confdefs.h.  */
8576
8577
int
8578
main ()
8579
{
8580
8581
  ;
8582
  return 0;
8583
}
8584
_ACEOF
8585
rm -f conftest.$ac_objext
8586
if { (ac_try="$ac_compile"
8587
case "(($ac_try" in
8588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589
  *) ac_try_echo=$ac_try;;
8590
esac
8591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592
  (eval "$ac_compile") 2>conftest.er1
8593
  ac_status=$?
8594
  grep -v '^ *+' conftest.er1 >conftest.err
8595
  rm -f conftest.er1
8596
  cat conftest.err >&5
8597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
  (exit $ac_status); } && {
8599
	 test -z "$ac_cxx_werror_flag" ||
8600
	 test ! -s conftest.err
8601
       } && test -s conftest.$ac_objext; then
8602
  ac_cv_prog_cxx_g=yes
8603
else
8604
  echo "$as_me: failed program was:" >&5
8605
sed 's/^/| /' conftest.$ac_ext >&5
8606
8607
	CXXFLAGS=""
8608
      cat >conftest.$ac_ext <<_ACEOF
8609
/* confdefs.h.  */
8610
_ACEOF
8611
cat confdefs.h >>conftest.$ac_ext
8612
cat >>conftest.$ac_ext <<_ACEOF
8613
/* end confdefs.h.  */
8614
8615
int
8616
main ()
8617
{
8618
8619
  ;
8620
  return 0;
8621
}
8622
_ACEOF
8623
rm -f conftest.$ac_objext
8624
if { (ac_try="$ac_compile"
8625
case "(($ac_try" in
8626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627
  *) ac_try_echo=$ac_try;;
8628
esac
8629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630
  (eval "$ac_compile") 2>conftest.er1
8631
  ac_status=$?
8632
  grep -v '^ *+' conftest.er1 >conftest.err
8633
  rm -f conftest.er1
8634
  cat conftest.err >&5
8635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636
  (exit $ac_status); } && {
8637
	 test -z "$ac_cxx_werror_flag" ||
8638
	 test ! -s conftest.err
8639
       } && test -s conftest.$ac_objext; then
8640
  :
8641
else
8642
  echo "$as_me: failed program was:" >&5
8643
sed 's/^/| /' conftest.$ac_ext >&5
8644
8645
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8646
	 CXXFLAGS="-g"
8647
	 cat >conftest.$ac_ext <<_ACEOF
8648
/* confdefs.h.  */
8649
_ACEOF
8650
cat confdefs.h >>conftest.$ac_ext
8651
cat >>conftest.$ac_ext <<_ACEOF
8652
/* end confdefs.h.  */
8653
8654
int
8655
main ()
8656
{
8657
8658
  ;
8659
  return 0;
8660
}
8661
_ACEOF
8662
rm -f conftest.$ac_objext
8663
if { (ac_try="$ac_compile"
8664
case "(($ac_try" in
8665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666
  *) ac_try_echo=$ac_try;;
8667
esac
8668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669
  (eval "$ac_compile") 2>conftest.er1
8670
  ac_status=$?
8671
  grep -v '^ *+' conftest.er1 >conftest.err
8672
  rm -f conftest.er1
8673
  cat conftest.err >&5
8674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675
  (exit $ac_status); } && {
8676
	 test -z "$ac_cxx_werror_flag" ||
8677
	 test ! -s conftest.err
8678
       } && test -s conftest.$ac_objext; then
8679
  ac_cv_prog_cxx_g=yes
8680
else
8681
  echo "$as_me: failed program was:" >&5
8682
sed 's/^/| /' conftest.$ac_ext >&5
8683
8684
8685
fi
8686
8687
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688
fi
8689
8690
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691
fi
8692
8693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8695
fi
8696
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8697
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8698
if test "$ac_test_CXXFLAGS" = set; then
8699
  CXXFLAGS=$ac_save_CXXFLAGS
8700
elif test $ac_cv_prog_cxx_g = yes; then
8701
  if test "$GXX" = yes; then
8702
    CXXFLAGS="-g -O2"
8703
  else
8704
    CXXFLAGS="-g"
8705
  fi
8706
else
8707
  if test "$GXX" = yes; then
8708
    CXXFLAGS="-O2"
8709
  else
8710
    CXXFLAGS=
8711
  fi
8712
fi
8713
ac_ext=cpp
8714
ac_cpp='$CXXCPP $CPPFLAGS'
8715
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8718
8719
depcc="$CXX"  am_compiler_list=
8720
8721
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8722
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8723
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8724
  echo $ECHO_N "(cached) $ECHO_C" >&6
8725
else
8726
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8727
  # We make a subdir and do the tests there.  Otherwise we can end up
8728
  # making bogus files that we don't know about and never remove.  For
8729
  # instance it was reported that on HP-UX the gcc test will end up
8730
  # making a dummy file named `D' -- because `-MD' means `put the output
8731
  # in D'.
8732
  mkdir conftest.dir
8733
  # Copy depcomp to subdir because otherwise we won't find it if we're
8734
  # using a relative directory.
8735
  cp "$am_depcomp" conftest.dir
8736
  cd conftest.dir
8737
  # We will build objects and dependencies in a subdirectory because
8738
  # it helps to detect inapplicable dependency modes.  For instance
8739
  # both Tru64's cc and ICC support -MD to output dependencies as a
8740
  # side effect of compilation, but ICC will put the dependencies in
8741
  # the current directory while Tru64 will put them in the object
8742
  # directory.
8743
  mkdir sub
8744
8745
  am_cv_CXX_dependencies_compiler_type=none
8746
  if test "$am_compiler_list" = ""; then
8747
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8748
  fi
8749
  for depmode in $am_compiler_list; do
8750
    # Setup a source with many dependencies, because some compilers
8751
    # like to wrap large dependency lists on column 80 (with \), and
8752
    # we should not choose a depcomp mode which is confused by this.
8753
    #
8754
    # We need to recreate these files for each test, as the compiler may
8755
    # overwrite some of them when testing with obscure command lines.
8756
    # This happens at least with the AIX C compiler.
8757
    : > sub/conftest.c
8758
    for i in 1 2 3 4 5 6; do
8759
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8760
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8761
      # Solaris 8's {/usr,}/bin/sh.
8762
      touch sub/conftst$i.h
8763
    done
8764
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8765
8766
    case $depmode in
8767
    nosideeffect)
8768
      # after this tag, mechanisms are not by side-effect, so they'll
8769
      # only be used when explicitly requested
8770
      if test "x$enable_dependency_tracking" = xyes; then
8771
	continue
8772
      else
8773
	break
8774
      fi
8775
      ;;
8776
    none) break ;;
8777
    esac
8778
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8779
    # mode.  It turns out that the SunPro C++ compiler does not properly
8780
    # handle `-M -o', and we need to detect this.
8781
    if depmode=$depmode \
8782
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8783
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8784
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8785
         >/dev/null 2>conftest.err &&
8786
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8787
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8788
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8789
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8790
      # icc doesn't choke on unknown options, it will just issue warnings
8791
      # or remarks (even with -Werror).  So we grep stderr for any message
8792
      # that says an option was ignored or not supported.
8793
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8794
      #   icc: Command line warning: ignoring option '-M'; no argument required
8795
      # The diagnosis changed in icc 8.0:
8796
      #   icc: Command line remark: option '-MP' not supported
8797
      if (grep 'ignoring option' conftest.err ||
8798
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8799
        am_cv_CXX_dependencies_compiler_type=$depmode
8800
        break
8801
      fi
8802
    fi
8803
  done
8804
8805
  cd ..
8806
  rm -rf conftest.dir
8807
else
8808
  am_cv_CXX_dependencies_compiler_type=none
8809
fi
8810
8811
fi
8812
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8813
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
8814
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8815
8816
 if
8817
  test "x$enable_dependency_tracking" != xno \
8818
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8819
  am__fastdepCXX_TRUE=
8820
  am__fastdepCXX_FALSE='#'
8821
else
8822
  am__fastdepCXX_TRUE='#'
8823
  am__fastdepCXX_FALSE=
8824
fi
8825
8826
8827
8828
8829
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8830
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8831
    (test "X$CXX" != "Xg++"))) ; then
8832
  ac_ext=cpp
8833
ac_cpp='$CXXCPP $CPPFLAGS'
8834
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8837
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8838
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8839
if test -z "$CXXCPP"; then
8840
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8841
  echo $ECHO_N "(cached) $ECHO_C" >&6
8842
else
8843
      # Double quotes because CXXCPP needs to be expanded
8844
    for CXXCPP in "$CXX -E" "/lib/cpp"
8845
    do
8846
      ac_preproc_ok=false
8847
for ac_cxx_preproc_warn_flag in '' yes
8848
do
8849
  # Use a header file that comes with gcc, so configuring glibc
8850
  # with a fresh cross-compiler works.
8851
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8852
  # <limits.h> exists even on freestanding compilers.
8853
  # On the NeXT, cc -E runs the code through the compiler's parser,
8854
  # not just through cpp. "Syntax error" is here to catch this case.
8855
  cat >conftest.$ac_ext <<_ACEOF
8856
/* confdefs.h.  */
8857
_ACEOF
8858
cat confdefs.h >>conftest.$ac_ext
8859
cat >>conftest.$ac_ext <<_ACEOF
8860
/* end confdefs.h.  */
8861
#ifdef __STDC__
8862
# include <limits.h>
8863
#else
8864
# include <assert.h>
8865
#endif
8866
		     Syntax error
8867
_ACEOF
8868
if { (ac_try="$ac_cpp conftest.$ac_ext"
8869
case "(($ac_try" in
8870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871
  *) ac_try_echo=$ac_try;;
8872
esac
8873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8875
  ac_status=$?
8876
  grep -v '^ *+' conftest.er1 >conftest.err
8877
  rm -f conftest.er1
8878
  cat conftest.err >&5
8879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880
  (exit $ac_status); } >/dev/null && {
8881
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8882
	 test ! -s conftest.err
8883
       }; then
8884
  :
8885
else
8886
  echo "$as_me: failed program was:" >&5
8887
sed 's/^/| /' conftest.$ac_ext >&5
8888
8889
  # Broken: fails on valid input.
8890
continue
8891
fi
8892
8893
rm -f conftest.err conftest.$ac_ext
8894
8895
  # OK, works on sane cases.  Now check whether nonexistent headers
8896
  # can be detected and how.
8897
  cat >conftest.$ac_ext <<_ACEOF
8898
/* confdefs.h.  */
8899
_ACEOF
8900
cat confdefs.h >>conftest.$ac_ext
8901
cat >>conftest.$ac_ext <<_ACEOF
8902
/* end confdefs.h.  */
8903
#include <ac_nonexistent.h>
8904
_ACEOF
8905
if { (ac_try="$ac_cpp conftest.$ac_ext"
8906
case "(($ac_try" in
8907
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908
  *) ac_try_echo=$ac_try;;
8909
esac
8910
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8912
  ac_status=$?
8913
  grep -v '^ *+' conftest.er1 >conftest.err
8914
  rm -f conftest.er1
8915
  cat conftest.err >&5
8916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917
  (exit $ac_status); } >/dev/null && {
8918
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8919
	 test ! -s conftest.err
8920
       }; then
8921
  # Broken: success on invalid input.
8922
continue
8923
else
8924
  echo "$as_me: failed program was:" >&5
8925
sed 's/^/| /' conftest.$ac_ext >&5
8926
8927
  # Passes both tests.
8928
ac_preproc_ok=:
8929
break
8930
fi
8931
8932
rm -f conftest.err conftest.$ac_ext
8933
8934
done
8935
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8936
rm -f conftest.err conftest.$ac_ext
8937
if $ac_preproc_ok; then
8938
  break
8939
fi
8940
8941
    done
8942
    ac_cv_prog_CXXCPP=$CXXCPP
8943
8944
fi
8945
  CXXCPP=$ac_cv_prog_CXXCPP
8946
else
8947
  ac_cv_prog_CXXCPP=$CXXCPP
8948
fi
8949
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
8950
echo "${ECHO_T}$CXXCPP" >&6; }
8951
ac_preproc_ok=false
8952
for ac_cxx_preproc_warn_flag in '' yes
8953
do
8954
  # Use a header file that comes with gcc, so configuring glibc
8955
  # with a fresh cross-compiler works.
8956
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957
  # <limits.h> exists even on freestanding compilers.
8958
  # On the NeXT, cc -E runs the code through the compiler's parser,
8959
  # not just through cpp. "Syntax error" is here to catch this case.
8960
  cat >conftest.$ac_ext <<_ACEOF
8961
/* confdefs.h.  */
8962
_ACEOF
8963
cat confdefs.h >>conftest.$ac_ext
8964
cat >>conftest.$ac_ext <<_ACEOF
8965
/* end confdefs.h.  */
8966
#ifdef __STDC__
8967
# include <limits.h>
8968
#else
8969
# include <assert.h>
8970
#endif
8971
		     Syntax error
8972
_ACEOF
8973
if { (ac_try="$ac_cpp conftest.$ac_ext"
8974
case "(($ac_try" in
8975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976
  *) ac_try_echo=$ac_try;;
8977
esac
8978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8980
  ac_status=$?
8981
  grep -v '^ *+' conftest.er1 >conftest.err
8982
  rm -f conftest.er1
8983
  cat conftest.err >&5
8984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985
  (exit $ac_status); } >/dev/null && {
8986
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8987
	 test ! -s conftest.err
8988
       }; then
8989
  :
8990
else
8991
  echo "$as_me: failed program was:" >&5
8992
sed 's/^/| /' conftest.$ac_ext >&5
8993
8994
  # Broken: fails on valid input.
8995
continue
8996
fi
8997
8998
rm -f conftest.err conftest.$ac_ext
8999
9000
  # OK, works on sane cases.  Now check whether nonexistent headers
9001
  # can be detected and how.
9002
  cat >conftest.$ac_ext <<_ACEOF
9003
/* confdefs.h.  */
9004
_ACEOF
9005
cat confdefs.h >>conftest.$ac_ext
9006
cat >>conftest.$ac_ext <<_ACEOF
9007
/* end confdefs.h.  */
9008
#include <ac_nonexistent.h>
9009
_ACEOF
9010
if { (ac_try="$ac_cpp conftest.$ac_ext"
9011
case "(($ac_try" in
9012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013
  *) ac_try_echo=$ac_try;;
9014
esac
9015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9017
  ac_status=$?
9018
  grep -v '^ *+' conftest.er1 >conftest.err
9019
  rm -f conftest.er1
9020
  cat conftest.err >&5
9021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022
  (exit $ac_status); } >/dev/null && {
9023
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9024
	 test ! -s conftest.err
9025
       }; then
9026
  # Broken: success on invalid input.
9027
continue
9028
else
9029
  echo "$as_me: failed program was:" >&5
9030
sed 's/^/| /' conftest.$ac_ext >&5
9031
9032
  # Passes both tests.
9033
ac_preproc_ok=:
9034
break
9035
fi
9036
9037
rm -f conftest.err conftest.$ac_ext
9038
9039
done
9040
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9041
rm -f conftest.err conftest.$ac_ext
9042
if $ac_preproc_ok; then
9043
  :
9044
else
9045
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9046
See \`config.log' for more details." >&5
9047
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9048
See \`config.log' for more details." >&2;}
9049
   { (exit 1); exit 1; }; }
9050
fi
9051
9052
ac_ext=cpp
9053
ac_cpp='$CXXCPP $CPPFLAGS'
9054
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9055
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9056
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9057
9058
fi
9059
9060
9061
ac_ext=f
9062
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9063
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9064
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9065
if test -n "$ac_tool_prefix"; then
9066
  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
9067
  do
9068
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9069
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9070
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9072
if test "${ac_cv_prog_F77+set}" = set; then
9073
  echo $ECHO_N "(cached) $ECHO_C" >&6
9074
else
9075
  if test -n "$F77"; then
9076
  ac_cv_prog_F77="$F77" # Let the user override the test.
9077
else
9078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079
for as_dir in $PATH
9080
do
9081
  IFS=$as_save_IFS
9082
  test -z "$as_dir" && as_dir=.
9083
  for ac_exec_ext in '' $ac_executable_extensions; do
9084
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9086
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9087
    break 2
9088
  fi
9089
done
9090
done
9091
IFS=$as_save_IFS
9092
9093
fi
9094
fi
9095
F77=$ac_cv_prog_F77
9096
if test -n "$F77"; then
9097
  { echo "$as_me:$LINENO: result: $F77" >&5
9098
echo "${ECHO_T}$F77" >&6; }
9099
else
9100
  { echo "$as_me:$LINENO: result: no" >&5
9101
echo "${ECHO_T}no" >&6; }
9102
fi
9103
9104
9105
    test -n "$F77" && break
9106
  done
9107
fi
9108
if test -z "$F77"; then
9109
  ac_ct_F77=$F77
9110
  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
9111
do
9112
  # Extract the first word of "$ac_prog", so it can be a program name with args.
9113
set dummy $ac_prog; ac_word=$2
9114
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9115
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9116
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9117
  echo $ECHO_N "(cached) $ECHO_C" >&6
9118
else
9119
  if test -n "$ac_ct_F77"; then
9120
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9121
else
9122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123
for as_dir in $PATH
9124
do
9125
  IFS=$as_save_IFS
9126
  test -z "$as_dir" && as_dir=.
9127
  for ac_exec_ext in '' $ac_executable_extensions; do
9128
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129
    ac_cv_prog_ac_ct_F77="$ac_prog"
9130
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9131
    break 2
9132
  fi
9133
done
9134
done
9135
IFS=$as_save_IFS
9136
9137
fi
9138
fi
9139
ac_ct_F77=$ac_cv_prog_ac_ct_F77
9140
if test -n "$ac_ct_F77"; then
9141
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9142
echo "${ECHO_T}$ac_ct_F77" >&6; }
9143
else
9144
  { echo "$as_me:$LINENO: result: no" >&5
9145
echo "${ECHO_T}no" >&6; }
9146
fi
9147
9148
9149
  test -n "$ac_ct_F77" && break
9150
done
9151
9152
  if test "x$ac_ct_F77" = x; then
9153
    F77=""
9154
  else
9155
    case $cross_compiling:$ac_tool_warned in
9156
yes:)
9157
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9158
whose name does not start with the host triplet.  If you think this
9159
configuration is useful to you, please write to autoconf@gnu.org." >&5
9160
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9161
whose name does not start with the host triplet.  If you think this
9162
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9163
ac_tool_warned=yes ;;
9164
esac
9165
    F77=$ac_ct_F77
9166
  fi
9167
fi
9168
9169
9170
# Provide some information about the compiler.
9171
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
9172
ac_compiler=`set X $ac_compile; echo $2`
9173
{ (ac_try="$ac_compiler --version >&5"
9174
case "(($ac_try" in
9175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176
  *) ac_try_echo=$ac_try;;
9177
esac
9178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179
  (eval "$ac_compiler --version >&5") 2>&5
9180
  ac_status=$?
9181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182
  (exit $ac_status); }
9183
{ (ac_try="$ac_compiler -v >&5"
9184
case "(($ac_try" in
9185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186
  *) ac_try_echo=$ac_try;;
9187
esac
9188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189
  (eval "$ac_compiler -v >&5") 2>&5
9190
  ac_status=$?
9191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192
  (exit $ac_status); }
9193
{ (ac_try="$ac_compiler -V >&5"
9194
case "(($ac_try" in
9195
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196
  *) ac_try_echo=$ac_try;;
9197
esac
9198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199
  (eval "$ac_compiler -V >&5") 2>&5
9200
  ac_status=$?
9201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202
  (exit $ac_status); }
9203
rm -f a.out
9204
9205
# If we don't use `.F' as extension, the preprocessor is not run on the
9206
# input file.  (Note that this only needs to work for GNU compilers.)
9207
ac_save_ext=$ac_ext
9208
ac_ext=F
9209
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9210
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
9211
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9212
  echo $ECHO_N "(cached) $ECHO_C" >&6
9213
else
9214
  cat >conftest.$ac_ext <<_ACEOF
9215
      program main
9216
#ifndef __GNUC__
9217
       choke me
9218
#endif
9219
9220
      end
9221
_ACEOF
9222
rm -f conftest.$ac_objext
9223
if { (ac_try="$ac_compile"
9224
case "(($ac_try" in
9225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9226
  *) ac_try_echo=$ac_try;;
9227
esac
9228
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9229
  (eval "$ac_compile") 2>conftest.er1
9230
  ac_status=$?
9231
  grep -v '^ *+' conftest.er1 >conftest.err
9232
  rm -f conftest.er1
9233
  cat conftest.err >&5
9234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235
  (exit $ac_status); } && {
9236
	 test -z "$ac_f77_werror_flag" ||
9237
	 test ! -s conftest.err
9238
       } && test -s conftest.$ac_objext; then
9239
  ac_compiler_gnu=yes
9240
else
9241
  echo "$as_me: failed program was:" >&5
9242
sed 's/^/| /' conftest.$ac_ext >&5
9243
9244
	ac_compiler_gnu=no
9245
fi
9246
9247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9249
9250
fi
9251
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9252
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
9253
ac_ext=$ac_save_ext
9254
ac_test_FFLAGS=${FFLAGS+set}
9255
ac_save_FFLAGS=$FFLAGS
9256
FFLAGS=
9257
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9258
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
9259
if test "${ac_cv_prog_f77_g+set}" = set; then
9260
  echo $ECHO_N "(cached) $ECHO_C" >&6
9261
else
9262
  FFLAGS=-g
9263
cat >conftest.$ac_ext <<_ACEOF
9264
      program main
9265
9266
      end
9267
_ACEOF
9268
rm -f conftest.$ac_objext
9269
if { (ac_try="$ac_compile"
9270
case "(($ac_try" in
9271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272
  *) ac_try_echo=$ac_try;;
9273
esac
9274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275
  (eval "$ac_compile") 2>conftest.er1
9276
  ac_status=$?
9277
  grep -v '^ *+' conftest.er1 >conftest.err
9278
  rm -f conftest.er1
9279
  cat conftest.err >&5
9280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281
  (exit $ac_status); } && {
9282
	 test -z "$ac_f77_werror_flag" ||
9283
	 test ! -s conftest.err
9284
       } && test -s conftest.$ac_objext; then
9285
  ac_cv_prog_f77_g=yes
9286
else
9287
  echo "$as_me: failed program was:" >&5
9288
sed 's/^/| /' conftest.$ac_ext >&5
9289
9290
	ac_cv_prog_f77_g=no
9291
fi
9292
9293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294
9295
fi
9296
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9297
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
9298
if test "$ac_test_FFLAGS" = set; then
9299
  FFLAGS=$ac_save_FFLAGS
9300
elif test $ac_cv_prog_f77_g = yes; then
9301
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9302
    FFLAGS="-g -O2"
9303
  else
9304
    FFLAGS="-g"
9305
  fi
9306
else
9307
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9308
    FFLAGS="-O2"
9309
  else
9310
    FFLAGS=
9311
  fi
9312
fi
9313
9314
G77=`test $ac_compiler_gnu = yes && echo yes`
9315
ac_ext=c
9316
ac_cpp='$CPP $CPPFLAGS'
9317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9320
9321
9322
9323
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9324
# find the maximum length of command line arguments
9325
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9326
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9327
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9328
  echo $ECHO_N "(cached) $ECHO_C" >&6
9329
else
9330
    i=0
9331
  teststring="ABCD"
9332
9333
  case $build_os in
9334
  msdosdjgpp*)
9335
    # On DJGPP, this test can blow up pretty badly due to problems in libc
9336
    # (any single argument exceeding 2000 bytes causes a buffer overrun
9337
    # during glob expansion).  Even if it were fixed, the result of this
9338
    # check would be larger than it should be.
9339
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9340
    ;;
9341
9342
  gnu*)
9343
    # Under GNU Hurd, this test is not required because there is
9344
    # no limit to the length of command line arguments.
9345
    # Libtool will interpret -1 as no limit whatsoever
9346
    lt_cv_sys_max_cmd_len=-1;
9347
    ;;
9348
9349
  cygwin* | mingw*)
9350
    # On Win9x/ME, this test blows up -- it succeeds, but takes
9351
    # about 5 minutes as the teststring grows exponentially.
9352
    # Worse, since 9x/ME are not pre-emptively multitasking,
9353
    # you end up with a "frozen" computer, even though with patience
9354
    # the test eventually succeeds (with a max line length of 256k).
9355
    # Instead, let's just punt: use the minimum linelength reported by
9356
    # all of the supported platforms: 8192 (on NT/2K/XP).
9357
    lt_cv_sys_max_cmd_len=8192;
9358
    ;;
9359
9360
  amigaos*)
9361
    # On AmigaOS with pdksh, this test takes hours, literally.
9362
    # So we just punt and use a minimum line length of 8192.
9363
    lt_cv_sys_max_cmd_len=8192;
9364
    ;;
9365
9366
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9367
    # This has been around since 386BSD, at least.  Likely further.
9368
    if test -x /sbin/sysctl; then
9369
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9370
    elif test -x /usr/sbin/sysctl; then
9371
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9372
    else
9373
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9374
    fi
9375
    # And add a safety zone
9376
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9377
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9378
    ;;
9379
9380
  interix*)
9381
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9382
    lt_cv_sys_max_cmd_len=196608
9383
    ;;
9384
9385
  osf*)
9386
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9387
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9388
    # nice to cause kernel panics so lets avoid the loop below.
9389
    # First set a reasonable default.
9390
    lt_cv_sys_max_cmd_len=16384
9391
    #
9392
    if test -x /sbin/sysconfig; then
9393
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9394
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9395
      esac
9396
    fi
9397
    ;;
9398
  sco3.2v5*)
9399
    lt_cv_sys_max_cmd_len=102400
9400
    ;;
9401
  sysv5* | sco5v6* | sysv4.2uw2*)
9402
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9403
    if test -n "$kargmax"; then
9404
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
9405
    else
9406
      lt_cv_sys_max_cmd_len=32768
9407
    fi
9408
    ;;
9409
  *)
9410
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9411
    if test -n "$lt_cv_sys_max_cmd_len"; then
9412
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9413
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9414
    else
9415
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9416
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9417
	       = "XX$teststring") >/dev/null 2>&1 &&
9418
	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
9419
	      lt_cv_sys_max_cmd_len=$new_result &&
9420
	      test $i != 17 # 1/2 MB should be enough
9421
      do
9422
        i=`expr $i + 1`
9423
        teststring=$teststring$teststring
9424
      done
9425
      teststring=
9426
      # Add a significant safety factor because C++ compilers can tack on massive
9427
      # amounts of additional arguments before passing them to the linker.
9428
      # It appears as though 1/2 is a usable value.
9429
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9430
    fi
9431
    ;;
9432
  esac
9433
9434
fi
9435
9436
if test -n $lt_cv_sys_max_cmd_len ; then
9437
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9438
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9439
else
9440
  { echo "$as_me:$LINENO: result: none" >&5
9441
echo "${ECHO_T}none" >&6; }
9442
fi
9443
9444
9445
9446
9447
9448
# Check for command to grab the raw symbol name followed by C symbol from nm.
9449
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9450
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9451
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9452
  echo $ECHO_N "(cached) $ECHO_C" >&6
9453
else
9454
9455
# These are sane defaults that work on at least a few old systems.
9456
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9457
9458
# Character class describing NM global symbol codes.
9459
symcode='[BCDEGRST]'
9460
9461
# Regexp to match symbols that can be accessed directly from C.
9462
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9463
9464
# Transform an extracted symbol line into a proper C declaration
9465
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9466
9467
# Transform an extracted symbol line into symbol name and symbol address
9468
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'"
9469
9470
# Define system-specific variables.
9471
case $host_os in
9472
aix*)
9473
  symcode='[BCDT]'
9474
  ;;
9475
cygwin* | mingw* | pw32*)
9476
  symcode='[ABCDGISTW]'
9477
  ;;
9478
hpux*) # Its linker distinguishes data from code symbols
9479
  if test "$host_cpu" = ia64; then
9480
    symcode='[ABCDEGRST]'
9481
  fi
9482
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9483
  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'"
9484
  ;;
9485
linux* | k*bsd*-gnu)
9486
  if test "$host_cpu" = ia64; then
9487
    symcode='[ABCDGIRSTW]'
9488
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9489
    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'"
9490
  fi
9491
  ;;
9492
irix* | nonstopux*)
9493
  symcode='[BCDEGRST]'
9494
  ;;
9495
osf*)
9496
  symcode='[BCDEGQRST]'
9497
  ;;
9498
solaris*)
9499
  symcode='[BDRT]'
9500
  ;;
9501
sco3.2v5*)
9502
  symcode='[DT]'
9503
  ;;
9504
sysv4.2uw2*)
9505
  symcode='[DT]'
9506
  ;;
9507
sysv5* | sco5v6* | unixware* | OpenUNIX*)
9508
  symcode='[ABDT]'
9509
  ;;
9510
sysv4)
9511
  symcode='[DFNSTU]'
9512
  ;;
9513
esac
9514
9515
# Handle CRLF in mingw tool chain
9516
opt_cr=
9517
case $build_os in
9518
mingw*)
9519
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9520
  ;;
9521
esac
9522
9523
# If we're using GNU nm, then use its standard symbol codes.
9524
case `$NM -V 2>&1` in
9525
*GNU* | *'with BFD'*)
9526
  symcode='[ABCDGIRSTW]' ;;
9527
esac
9528
9529
# Try without a prefix undercore, then with it.
9530
for ac_symprfx in "" "_"; do
9531
9532
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9533
  symxfrm="\\1 $ac_symprfx\\2 \\2"
9534
9535
  # Write the raw and C identifiers.
9536
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9537
9538
  # Check to see that the pipe works correctly.
9539
  pipe_works=no
9540
9541
  rm -f conftest*
9542
  cat > conftest.$ac_ext <<EOF
9543
#ifdef __cplusplus
9544
extern "C" {
9545
#endif
9546
char nm_test_var;
9547
void nm_test_func(){}
9548
#ifdef __cplusplus
9549
}
9550
#endif
9551
int main(){nm_test_var='a';nm_test_func();return(0);}
9552
EOF
9553
9554
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9555
  (eval $ac_compile) 2>&5
9556
  ac_status=$?
9557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558
  (exit $ac_status); }; then
9559
    # Now try to grab the symbols.
9560
    nlist=conftest.nm
9561
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9562
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9563
  ac_status=$?
9564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565
  (exit $ac_status); } && test -s "$nlist"; then
9566
      # Try sorting and uniquifying the output.
9567
      if sort "$nlist" | uniq > "$nlist"T; then
9568
	mv -f "$nlist"T "$nlist"
9569
      else
9570
	rm -f "$nlist"T
9571
      fi
9572
9573
      # Make sure that we snagged all the symbols we need.
9574
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9575
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9576
	  cat <<EOF > conftest.$ac_ext
9577
#ifdef __cplusplus
9578
extern "C" {
9579
#endif
9580
9581
EOF
9582
	  # Now generate the symbol file.
9583
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9584
9585
	  cat <<EOF >> conftest.$ac_ext
9586
#if defined (__STDC__) && __STDC__
9587
# define lt_ptr_t void *
9588
#else
9589
# define lt_ptr_t char *
9590
# define const
9591
#endif
9592
9593
/* The mapping between symbol names and symbols. */
9594
const struct {
9595
  const char *name;
9596
  lt_ptr_t address;
9597
}
9598
lt_preloaded_symbols[] =
9599
{
9600
EOF
9601
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9602
	  cat <<\EOF >> conftest.$ac_ext
9603
  {0, (lt_ptr_t) 0}
9604
};
9605
9606
#ifdef __cplusplus
9607
}
9608
#endif
9609
EOF
9610
	  # Now try linking the two files.
9611
	  mv conftest.$ac_objext conftstm.$ac_objext
9612
	  lt_save_LIBS="$LIBS"
9613
	  lt_save_CFLAGS="$CFLAGS"
9614
	  LIBS="conftstm.$ac_objext"
9615
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9616
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617
  (eval $ac_link) 2>&5
9618
  ac_status=$?
9619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9621
	    pipe_works=yes
9622
	  fi
9623
	  LIBS="$lt_save_LIBS"
9624
	  CFLAGS="$lt_save_CFLAGS"
9625
	else
9626
	  echo "cannot find nm_test_func in $nlist" >&5
9627
	fi
9628
      else
9629
	echo "cannot find nm_test_var in $nlist" >&5
9630
      fi
9631
    else
9632
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9633
    fi
9634
  else
9635
    echo "$progname: failed program was:" >&5
9636
    cat conftest.$ac_ext >&5
9637
  fi
9638
  rm -rf conftest* conftst*
9639
9640
  # Do not use the global_symbol_pipe unless it works.
9641
  if test "$pipe_works" = yes; then
9642
    break
9643
  else
9644
    lt_cv_sys_global_symbol_pipe=
9645
  fi
9646
done
9647
9648
fi
9649
9650
if test -z "$lt_cv_sys_global_symbol_pipe"; then
9651
  lt_cv_sys_global_symbol_to_cdecl=
9652
fi
9653
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9654
  { echo "$as_me:$LINENO: result: failed" >&5
9655
echo "${ECHO_T}failed" >&6; }
9656
else
9657
  { echo "$as_me:$LINENO: result: ok" >&5
9658
echo "${ECHO_T}ok" >&6; }
9659
fi
9660
9661
{ echo "$as_me:$LINENO: checking for objdir" >&5
9662
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9663
if test "${lt_cv_objdir+set}" = set; then
9664
  echo $ECHO_N "(cached) $ECHO_C" >&6
9665
else
9666
  rm -f .libs 2>/dev/null
9667
mkdir .libs 2>/dev/null
9668
if test -d .libs; then
9669
  lt_cv_objdir=.libs
9670
else
9671
  # MS-DOS does not allow filenames that begin with a dot.
9672
  lt_cv_objdir=_libs
9673
fi
9674
rmdir .libs 2>/dev/null
9675
fi
9676
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9677
echo "${ECHO_T}$lt_cv_objdir" >&6; }
9678
objdir=$lt_cv_objdir
9679
9680
9681
9682
9683
9684
case $host_os in
9685
aix3*)
9686
  # AIX sometimes has problems with the GCC collect2 program.  For some
9687
  # reason, if we set the COLLECT_NAMES environment variable, the problems
9688
  # vanish in a puff of smoke.
9689
  if test "X${COLLECT_NAMES+set}" != Xset; then
9690
    COLLECT_NAMES=
9691
    export COLLECT_NAMES
9692
  fi
9693
  ;;
9694
esac
9695
9696
# Sed substitution that helps us do robust quoting.  It backslashifies
9697
# metacharacters that are still active within double-quoted strings.
9698
Xsed='sed -e 1s/^X//'
9699
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9700
9701
# Same as above, but do not quote variable references.
9702
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9703
9704
# Sed substitution to delay expansion of an escaped shell variable in a
9705
# double_quote_subst'ed string.
9706
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9707
9708
# Sed substitution to avoid accidental globbing in evaled expressions
9709
no_glob_subst='s/\*/\\\*/g'
9710
9711
# Constants:
9712
rm="rm -f"
9713
9714
# Global variables:
9715
default_ofile=libtool
9716
can_build_shared=yes
9717
9718
# All known linkers require a `.a' archive for static linking (except MSVC,
9719
# which needs '.lib').
9720
libext=a
9721
ltmain="$ac_aux_dir/ltmain.sh"
9722
ofile="$default_ofile"
9723
with_gnu_ld="$lt_cv_prog_gnu_ld"
9724
9725
if test -n "$ac_tool_prefix"; then
9726
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9727
set dummy ${ac_tool_prefix}ar; ac_word=$2
9728
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9730
if test "${ac_cv_prog_AR+set}" = set; then
9731
  echo $ECHO_N "(cached) $ECHO_C" >&6
9732
else
9733
  if test -n "$AR"; then
9734
  ac_cv_prog_AR="$AR" # Let the user override the test.
9735
else
9736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737
for as_dir in $PATH
9738
do
9739
  IFS=$as_save_IFS
9740
  test -z "$as_dir" && as_dir=.
9741
  for ac_exec_ext in '' $ac_executable_extensions; do
9742
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9743
    ac_cv_prog_AR="${ac_tool_prefix}ar"
9744
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9745
    break 2
9746
  fi
9747
done
9748
done
9749
IFS=$as_save_IFS
9750
9751
fi
9752
fi
9753
AR=$ac_cv_prog_AR
9754
if test -n "$AR"; then
9755
  { echo "$as_me:$LINENO: result: $AR" >&5
9756
echo "${ECHO_T}$AR" >&6; }
9757
else
9758
  { echo "$as_me:$LINENO: result: no" >&5
9759
echo "${ECHO_T}no" >&6; }
9760
fi
9761
9762
9763
fi
9764
if test -z "$ac_cv_prog_AR"; then
9765
  ac_ct_AR=$AR
9766
  # Extract the first word of "ar", so it can be a program name with args.
9767
set dummy ar; ac_word=$2
9768
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9769
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9770
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9771
  echo $ECHO_N "(cached) $ECHO_C" >&6
9772
else
9773
  if test -n "$ac_ct_AR"; then
9774
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9775
else
9776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777
for as_dir in $PATH
9778
do
9779
  IFS=$as_save_IFS
9780
  test -z "$as_dir" && as_dir=.
9781
  for ac_exec_ext in '' $ac_executable_extensions; do
9782
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9783
    ac_cv_prog_ac_ct_AR="ar"
9784
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9785
    break 2
9786
  fi
9787
done
9788
done
9789
IFS=$as_save_IFS
9790
9791
fi
9792
fi
9793
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9794
if test -n "$ac_ct_AR"; then
9795
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9796
echo "${ECHO_T}$ac_ct_AR" >&6; }
9797
else
9798
  { echo "$as_me:$LINENO: result: no" >&5
9799
echo "${ECHO_T}no" >&6; }
9800
fi
9801
9802
  if test "x$ac_ct_AR" = x; then
9803
    AR="false"
9804
  else
9805
    case $cross_compiling:$ac_tool_warned in
9806
yes:)
9807
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9808
whose name does not start with the host triplet.  If you think this
9809
configuration is useful to you, please write to autoconf@gnu.org." >&5
9810
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9811
whose name does not start with the host triplet.  If you think this
9812
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9813
ac_tool_warned=yes ;;
9814
esac
9815
    AR=$ac_ct_AR
9816
  fi
9817
else
9818
  AR="$ac_cv_prog_AR"
9819
fi
9820
9821
if test -n "$ac_tool_prefix"; then
9822
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9823
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9824
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9825
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9826
if test "${ac_cv_prog_RANLIB+set}" = set; then
9827
  echo $ECHO_N "(cached) $ECHO_C" >&6
9828
else
9829
  if test -n "$RANLIB"; then
9830
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9831
else
9832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833
for as_dir in $PATH
9834
do
9835
  IFS=$as_save_IFS
9836
  test -z "$as_dir" && as_dir=.
9837
  for ac_exec_ext in '' $ac_executable_extensions; do
9838
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9839
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9840
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9841
    break 2
9842
  fi
9843
done
9844
done
9845
IFS=$as_save_IFS
9846
9847
fi
9848
fi
9849
RANLIB=$ac_cv_prog_RANLIB
9850
if test -n "$RANLIB"; then
9851
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
9852
echo "${ECHO_T}$RANLIB" >&6; }
9853
else
9854
  { echo "$as_me:$LINENO: result: no" >&5
9855
echo "${ECHO_T}no" >&6; }
9856
fi
9857
9858
9859
fi
9860
if test -z "$ac_cv_prog_RANLIB"; then
9861
  ac_ct_RANLIB=$RANLIB
9862
  # Extract the first word of "ranlib", so it can be a program name with args.
9863
set dummy ranlib; ac_word=$2
9864
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9865
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9866
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9867
  echo $ECHO_N "(cached) $ECHO_C" >&6
9868
else
9869
  if test -n "$ac_ct_RANLIB"; then
9870
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9871
else
9872
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873
for as_dir in $PATH
9874
do
9875
  IFS=$as_save_IFS
9876
  test -z "$as_dir" && as_dir=.
9877
  for ac_exec_ext in '' $ac_executable_extensions; do
9878
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879
    ac_cv_prog_ac_ct_RANLIB="ranlib"
9880
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9881
    break 2
9882
  fi
9883
done
9884
done
9885
IFS=$as_save_IFS
9886
9887
fi
9888
fi
9889
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9890
if test -n "$ac_ct_RANLIB"; then
9891
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9892
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9893
else
9894
  { echo "$as_me:$LINENO: result: no" >&5
9895
echo "${ECHO_T}no" >&6; }
9896
fi
9897
9898
  if test "x$ac_ct_RANLIB" = x; then
9899
    RANLIB=":"
9900
  else
9901
    case $cross_compiling:$ac_tool_warned in
9902
yes:)
9903
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9904
whose name does not start with the host triplet.  If you think this
9905
configuration is useful to you, please write to autoconf@gnu.org." >&5
9906
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9907
whose name does not start with the host triplet.  If you think this
9908
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9909
ac_tool_warned=yes ;;
9910
esac
9911
    RANLIB=$ac_ct_RANLIB
9912
  fi
9913
else
9914
  RANLIB="$ac_cv_prog_RANLIB"
9915
fi
9916
9917
if test -n "$ac_tool_prefix"; then
9918
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9919
set dummy ${ac_tool_prefix}strip; ac_word=$2
9920
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9922
if test "${ac_cv_prog_STRIP+set}" = set; then
9923
  echo $ECHO_N "(cached) $ECHO_C" >&6
9924
else
9925
  if test -n "$STRIP"; then
9926
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9927
else
9928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929
for as_dir in $PATH
9930
do
9931
  IFS=$as_save_IFS
9932
  test -z "$as_dir" && as_dir=.
9933
  for ac_exec_ext in '' $ac_executable_extensions; do
9934
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9936
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9937
    break 2
9938
  fi
9939
done
9940
done
9941
IFS=$as_save_IFS
9942
9943
fi
9944
fi
9945
STRIP=$ac_cv_prog_STRIP
9946
if test -n "$STRIP"; then
9947
  { echo "$as_me:$LINENO: result: $STRIP" >&5
9948
echo "${ECHO_T}$STRIP" >&6; }
9949
else
9950
  { echo "$as_me:$LINENO: result: no" >&5
9951
echo "${ECHO_T}no" >&6; }
9952
fi
9953
9954
9955
fi
9956
if test -z "$ac_cv_prog_STRIP"; then
9957
  ac_ct_STRIP=$STRIP
9958
  # Extract the first word of "strip", so it can be a program name with args.
9959
set dummy strip; ac_word=$2
9960
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9961
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9962
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9963
  echo $ECHO_N "(cached) $ECHO_C" >&6
9964
else
9965
  if test -n "$ac_ct_STRIP"; then
9966
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9967
else
9968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969
for as_dir in $PATH
9970
do
9971
  IFS=$as_save_IFS
9972
  test -z "$as_dir" && as_dir=.
9973
  for ac_exec_ext in '' $ac_executable_extensions; do
9974
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975
    ac_cv_prog_ac_ct_STRIP="strip"
9976
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9977
    break 2
9978
  fi
9979
done
9980
done
9981
IFS=$as_save_IFS
9982
9983
fi
9984
fi
9985
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9986
if test -n "$ac_ct_STRIP"; then
9987
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9988
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9989
else
9990
  { echo "$as_me:$LINENO: result: no" >&5
9991
echo "${ECHO_T}no" >&6; }
9992
fi
9993
9994
  if test "x$ac_ct_STRIP" = x; then
9995
    STRIP=":"
9996
  else
9997
    case $cross_compiling:$ac_tool_warned in
9998
yes:)
9999
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10000
whose name does not start with the host triplet.  If you think this
10001
configuration is useful to you, please write to autoconf@gnu.org." >&5
10002
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10003
whose name does not start with the host triplet.  If you think this
10004
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10005
ac_tool_warned=yes ;;
10006
esac
10007
    STRIP=$ac_ct_STRIP
10008
  fi
10009
else
10010
  STRIP="$ac_cv_prog_STRIP"
10011
fi
10012
10013
10014
old_CC="$CC"
10015
old_CFLAGS="$CFLAGS"
10016
10017
# Set sane defaults for various variables
10018
test -z "$AR" && AR=ar
10019
test -z "$AR_FLAGS" && AR_FLAGS=cru
10020
test -z "$AS" && AS=as
10021
test -z "$CC" && CC=cc
10022
test -z "$LTCC" && LTCC=$CC
10023
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10024
test -z "$DLLTOOL" && DLLTOOL=dlltool
10025
test -z "$LD" && LD=ld
10026
test -z "$LN_S" && LN_S="ln -s"
10027
test -z "$MAGIC_CMD" && MAGIC_CMD=file
10028
test -z "$NM" && NM=nm
10029
test -z "$SED" && SED=sed
10030
test -z "$OBJDUMP" && OBJDUMP=objdump
10031
test -z "$RANLIB" && RANLIB=:
10032
test -z "$STRIP" && STRIP=:
10033
test -z "$ac_objext" && ac_objext=o
10034
10035
# Determine commands to create old-style static archives.
10036
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10037
old_postinstall_cmds='chmod 644 $oldlib'
10038
old_postuninstall_cmds=
10039
10040
if test -n "$RANLIB"; then
10041
  case $host_os in
10042
  openbsd*)
10043
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10044
    ;;
10045
  *)
10046
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10047
    ;;
10048
  esac
10049
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10050
fi
10051
10052
for cc_temp in $compiler""; do
10053
  case $cc_temp in
10054
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10055
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10056
    \-*) ;;
10057
    *) break;;
10058
  esac
10059
done
10060
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10061
10062
10063
# Only perform the check for file, if the check method requires it
10064
case $deplibs_check_method in
10065
file_magic*)
10066
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10067
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10068
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
10069
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10070
  echo $ECHO_N "(cached) $ECHO_C" >&6
10071
else
10072
  case $MAGIC_CMD in
10073
[\\/*] |  ?:[\\/]*)
10074
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10075
  ;;
10076
*)
10077
  lt_save_MAGIC_CMD="$MAGIC_CMD"
10078
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10079
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10080
  for ac_dir in $ac_dummy; do
10081
    IFS="$lt_save_ifs"
10082
    test -z "$ac_dir" && ac_dir=.
10083
    if test -f $ac_dir/${ac_tool_prefix}file; then
10084
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10085
      if test -n "$file_magic_test_file"; then
10086
	case $deplibs_check_method in
10087
	"file_magic "*)
10088
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10089
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10090
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10091
	    $EGREP "$file_magic_regex" > /dev/null; then
10092
	    :
10093
	  else
10094
	    cat <<EOF 1>&2
10095
10096
*** Warning: the command libtool uses to detect shared libraries,
10097
*** $file_magic_cmd, produces output that libtool cannot recognize.
10098
*** The result is that libtool may fail to recognize shared libraries
10099
*** as such.  This will affect the creation of libtool libraries that
10100
*** depend on shared libraries, but programs linked with such libtool
10101
*** libraries will work regardless of this problem.  Nevertheless, you
10102
*** may want to report the problem to your system manager and/or to
10103
*** bug-libtool@gnu.org
10104
10105
EOF
10106
	  fi ;;
10107
	esac
10108
      fi
10109
      break
10110
    fi
10111
  done
10112
  IFS="$lt_save_ifs"
10113
  MAGIC_CMD="$lt_save_MAGIC_CMD"
10114
  ;;
10115
esac
10116
fi
10117
10118
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10119
if test -n "$MAGIC_CMD"; then
10120
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10121
echo "${ECHO_T}$MAGIC_CMD" >&6; }
10122
else
10123
  { echo "$as_me:$LINENO: result: no" >&5
10124
echo "${ECHO_T}no" >&6; }
10125
fi
10126
10127
if test -z "$lt_cv_path_MAGIC_CMD"; then
10128
  if test -n "$ac_tool_prefix"; then
10129
    { echo "$as_me:$LINENO: checking for file" >&5
10130
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
10131
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10132
  echo $ECHO_N "(cached) $ECHO_C" >&6
10133
else
10134
  case $MAGIC_CMD in
10135
[\\/*] |  ?:[\\/]*)
10136
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10137
  ;;
10138
*)
10139
  lt_save_MAGIC_CMD="$MAGIC_CMD"
10140
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10141
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10142
  for ac_dir in $ac_dummy; do
10143
    IFS="$lt_save_ifs"
10144
    test -z "$ac_dir" && ac_dir=.
10145
    if test -f $ac_dir/file; then
10146
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10147
      if test -n "$file_magic_test_file"; then
10148
	case $deplibs_check_method in
10149
	"file_magic "*)
10150
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10151
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10152
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10153
	    $EGREP "$file_magic_regex" > /dev/null; then
10154
	    :
10155
	  else
10156
	    cat <<EOF 1>&2
10157
10158
*** Warning: the command libtool uses to detect shared libraries,
10159
*** $file_magic_cmd, produces output that libtool cannot recognize.
10160
*** The result is that libtool may fail to recognize shared libraries
10161
*** as such.  This will affect the creation of libtool libraries that
10162
*** depend on shared libraries, but programs linked with such libtool
10163
*** libraries will work regardless of this problem.  Nevertheless, you
10164
*** may want to report the problem to your system manager and/or to
10165
*** bug-libtool@gnu.org
10166
10167
EOF
10168
	  fi ;;
10169
	esac
10170
      fi
10171
      break
10172
    fi
10173
  done
10174
  IFS="$lt_save_ifs"
10175
  MAGIC_CMD="$lt_save_MAGIC_CMD"
10176
  ;;
10177
esac
10178
fi
10179
10180
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10181
if test -n "$MAGIC_CMD"; then
10182
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10183
echo "${ECHO_T}$MAGIC_CMD" >&6; }
10184
else
10185
  { echo "$as_me:$LINENO: result: no" >&5
10186
echo "${ECHO_T}no" >&6; }
10187
fi
10188
10189
  else
10190
    MAGIC_CMD=:
10191
  fi
10192
fi
10193
10194
  fi
10195
  ;;
10196
esac
10197
10198
10199
  case $host_os in
10200
    rhapsody* | darwin*)
10201
    if test -n "$ac_tool_prefix"; then
10202
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10203
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10204
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10206
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10207
  echo $ECHO_N "(cached) $ECHO_C" >&6
10208
else
10209
  if test -n "$DSYMUTIL"; then
10210
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10211
else
10212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213
for as_dir in $PATH
10214
do
10215
  IFS=$as_save_IFS
10216
  test -z "$as_dir" && as_dir=.
10217
  for ac_exec_ext in '' $ac_executable_extensions; do
10218
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10219
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10220
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10221
    break 2
10222
  fi
10223
done
10224
done
10225
IFS=$as_save_IFS
10226
10227
fi
10228
fi
10229
DSYMUTIL=$ac_cv_prog_DSYMUTIL
10230
if test -n "$DSYMUTIL"; then
10231
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10232
echo "${ECHO_T}$DSYMUTIL" >&6; }
10233
else
10234
  { echo "$as_me:$LINENO: result: no" >&5
10235
echo "${ECHO_T}no" >&6; }
10236
fi
10237
10238
10239
fi
10240
if test -z "$ac_cv_prog_DSYMUTIL"; then
10241
  ac_ct_DSYMUTIL=$DSYMUTIL
10242
  # Extract the first word of "dsymutil", so it can be a program name with args.
10243
set dummy dsymutil; ac_word=$2
10244
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10246
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10247
  echo $ECHO_N "(cached) $ECHO_C" >&6
10248
else
10249
  if test -n "$ac_ct_DSYMUTIL"; then
10250
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10251
else
10252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253
for as_dir in $PATH
10254
do
10255
  IFS=$as_save_IFS
10256
  test -z "$as_dir" && as_dir=.
10257
  for ac_exec_ext in '' $ac_executable_extensions; do
10258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10260
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10261
    break 2
10262
  fi
10263
done
10264
done
10265
IFS=$as_save_IFS
10266
10267
fi
10268
fi
10269
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10270
if test -n "$ac_ct_DSYMUTIL"; then
10271
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10272
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
10273
else
10274
  { echo "$as_me:$LINENO: result: no" >&5
10275
echo "${ECHO_T}no" >&6; }
10276
fi
10277
10278
  if test "x$ac_ct_DSYMUTIL" = x; then
10279
    DSYMUTIL=":"
10280
  else
10281
    case $cross_compiling:$ac_tool_warned in
10282
yes:)
10283
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10284
whose name does not start with the host triplet.  If you think this
10285
configuration is useful to you, please write to autoconf@gnu.org." >&5
10286
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10287
whose name does not start with the host triplet.  If you think this
10288
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10289
ac_tool_warned=yes ;;
10290
esac
10291
    DSYMUTIL=$ac_ct_DSYMUTIL
10292
  fi
10293
else
10294
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10295
fi
10296
10297
    if test -n "$ac_tool_prefix"; then
10298
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10299
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10300
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10301
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10302
if test "${ac_cv_prog_NMEDIT+set}" = set; then
10303
  echo $ECHO_N "(cached) $ECHO_C" >&6
10304
else
10305
  if test -n "$NMEDIT"; then
10306
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10307
else
10308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309
for as_dir in $PATH
10310
do
10311
  IFS=$as_save_IFS
10312
  test -z "$as_dir" && as_dir=.
10313
  for ac_exec_ext in '' $ac_executable_extensions; do
10314
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10316
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10317
    break 2
10318
  fi
10319
done
10320
done
10321
IFS=$as_save_IFS
10322
10323
fi
10324
fi
10325
NMEDIT=$ac_cv_prog_NMEDIT
10326
if test -n "$NMEDIT"; then
10327
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
10328
echo "${ECHO_T}$NMEDIT" >&6; }
10329
else
10330
  { echo "$as_me:$LINENO: result: no" >&5
10331
echo "${ECHO_T}no" >&6; }
10332
fi
10333
10334
10335
fi
10336
if test -z "$ac_cv_prog_NMEDIT"; then
10337
  ac_ct_NMEDIT=$NMEDIT
10338
  # Extract the first word of "nmedit", so it can be a program name with args.
10339
set dummy nmedit; ac_word=$2
10340
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10341
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10342
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10343
  echo $ECHO_N "(cached) $ECHO_C" >&6
10344
else
10345
  if test -n "$ac_ct_NMEDIT"; then
10346
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10347
else
10348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349
for as_dir in $PATH
10350
do
10351
  IFS=$as_save_IFS
10352
  test -z "$as_dir" && as_dir=.
10353
  for ac_exec_ext in '' $ac_executable_extensions; do
10354
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10356
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10357
    break 2
10358
  fi
10359
done
10360
done
10361
IFS=$as_save_IFS
10362
10363
fi
10364
fi
10365
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10366
if test -n "$ac_ct_NMEDIT"; then
10367
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10368
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
10369
else
10370
  { echo "$as_me:$LINENO: result: no" >&5
10371
echo "${ECHO_T}no" >&6; }
10372
fi
10373
10374
  if test "x$ac_ct_NMEDIT" = x; then
10375
    NMEDIT=":"
10376
  else
10377
    case $cross_compiling:$ac_tool_warned in
10378
yes:)
10379
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10380
whose name does not start with the host triplet.  If you think this
10381
configuration is useful to you, please write to autoconf@gnu.org." >&5
10382
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10383
whose name does not start with the host triplet.  If you think this
10384
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10385
ac_tool_warned=yes ;;
10386
esac
10387
    NMEDIT=$ac_ct_NMEDIT
10388
  fi
10389
else
10390
  NMEDIT="$ac_cv_prog_NMEDIT"
10391
fi
10392
10393
10394
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10395
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
10396
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10397
  echo $ECHO_N "(cached) $ECHO_C" >&6
10398
else
10399
  lt_cv_apple_cc_single_mod=no
10400
      if test -z "${LT_MULTI_MODULE}"; then
10401
   # By default we will add the -single_module flag. You can override
10402
   # by either setting the environment variable LT_MULTI_MODULE
10403
   # non-empty at configure time, or by adding -multi_module to the
10404
   # link flags.
10405
   echo "int foo(void){return 1;}" > conftest.c
10406
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10407
     -dynamiclib ${wl}-single_module conftest.c
10408
   if test -f libconftest.dylib; then
10409
     lt_cv_apple_cc_single_mod=yes
10410
     rm -rf libconftest.dylib*
10411
   fi
10412
   rm conftest.c
10413
      fi
10414
fi
10415
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10416
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
10417
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10418
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
10419
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10420
  echo $ECHO_N "(cached) $ECHO_C" >&6
10421
else
10422
  lt_cv_ld_exported_symbols_list=no
10423
      save_LDFLAGS=$LDFLAGS
10424
      echo "_main" > conftest.sym
10425
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10426
      cat >conftest.$ac_ext <<_ACEOF
10427
/* confdefs.h.  */
10428
_ACEOF
10429
cat confdefs.h >>conftest.$ac_ext
10430
cat >>conftest.$ac_ext <<_ACEOF
10431
/* end confdefs.h.  */
10432
10433
int
10434
main ()
10435
{
10436
10437
  ;
10438
  return 0;
10439
}
10440
_ACEOF
10441
rm -f conftest.$ac_objext conftest$ac_exeext
10442
if { (ac_try="$ac_link"
10443
case "(($ac_try" in
10444
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445
  *) ac_try_echo=$ac_try;;
10446
esac
10447
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448
  (eval "$ac_link") 2>conftest.er1
10449
  ac_status=$?
10450
  grep -v '^ *+' conftest.er1 >conftest.err
10451
  rm -f conftest.er1
10452
  cat conftest.err >&5
10453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454
  (exit $ac_status); } && {
10455
	 test -z "$ac_c_werror_flag" ||
10456
	 test ! -s conftest.err
10457
       } && test -s conftest$ac_exeext &&
10458
       $as_test_x conftest$ac_exeext; then
10459
  lt_cv_ld_exported_symbols_list=yes
10460
else
10461
  echo "$as_me: failed program was:" >&5
10462
sed 's/^/| /' conftest.$ac_ext >&5
10463
10464
	lt_cv_ld_exported_symbols_list=no
10465
fi
10466
10467
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10468
      conftest$ac_exeext conftest.$ac_ext
10469
   LDFLAGS="$save_LDFLAGS"
10470
10471
fi
10472
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10473
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
10474
    case $host_os in
10475
    rhapsody* | darwin1.[0123])
10476
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10477
    darwin1.*)
10478
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10479
    darwin*)
10480
      # if running on 10.5 or later, the deployment target defaults
10481
      # to the OS version, if on x86, and 10.4, the deployment
10482
      # target defaults to 10.4. Don't you love it?
10483
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10484
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10485
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10486
   10.[012]*)
10487
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10488
   10.*)
10489
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10490
      esac
10491
    ;;
10492
  esac
10493
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10494
      _lt_dar_single_mod='$single_module'
10495
    fi
10496
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10497
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10498
    else
10499
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
10500
    fi
10501
    if test "$DSYMUTIL" != ":"; then
10502
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
10503
    else
10504
      _lt_dsymutil=
10505
    fi
10506
    ;;
10507
  esac
10508
10509
10510
enable_dlopen=no
10511
enable_win32_dll=no
10512
10513
# Check whether --enable-libtool-lock was given.
10514
if test "${enable_libtool_lock+set}" = set; then
10515
  enableval=$enable_libtool_lock;
10516
fi
10517
10518
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10519
10520
10521
# Check whether --with-pic was given.
10522
if test "${with_pic+set}" = set; then
10523
  withval=$with_pic; pic_mode="$withval"
10524
else
10525
  pic_mode=default
10526
fi
10527
10528
test -z "$pic_mode" && pic_mode=default
10529
10530
# Use C for the default configuration in the libtool script
10531
tagname=
10532
lt_save_CC="$CC"
10533
ac_ext=c
10534
ac_cpp='$CPP $CPPFLAGS'
10535
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10536
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10537
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10538
10539
10540
# Source file extension for C test sources.
10541
ac_ext=c
10542
10543
# Object file extension for compiled C test sources.
10544
objext=o
10545
objext=$objext
10546
10547
# Code to be used in simple compile tests
10548
lt_simple_compile_test_code="int some_variable = 0;"
10549
10550
# Code to be used in simple link tests
10551
lt_simple_link_test_code='int main(){return(0);}'
10552
10553
10554
# If no C compiler was specified, use CC.
10555
LTCC=${LTCC-"$CC"}
10556
10557
# If no C compiler flags were specified, use CFLAGS.
10558
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10559
10560
# Allow CC to be a program name with arguments.
10561
compiler=$CC
10562
10563
10564
# save warnings/boilerplate of simple test code
10565
ac_outfile=conftest.$ac_objext
10566
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10567
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10568
_lt_compiler_boilerplate=`cat conftest.err`
10569
$rm conftest*
10570
10571
ac_outfile=conftest.$ac_objext
10572
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10573
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10574
_lt_linker_boilerplate=`cat conftest.err`
10575
$rm -r conftest*
10576
10577
10578
10579
lt_prog_compiler_no_builtin_flag=
10580
10581
if test "$GCC" = yes; then
10582
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10583
10584
10585
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10586
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10587
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10588
  echo $ECHO_N "(cached) $ECHO_C" >&6
10589
else
10590
  lt_cv_prog_compiler_rtti_exceptions=no
10591
  ac_outfile=conftest.$ac_objext
10592
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10593
   lt_compiler_flag="-fno-rtti -fno-exceptions"
10594
   # Insert the option either (1) after the last *FLAGS variable, or
10595
   # (2) before a word containing "conftest.", or (3) at the end.
10596
   # Note that $ac_compile itself does not contain backslashes and begins
10597
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10598
   # The option is referenced via a variable to avoid confusing sed.
10599
   lt_compile=`echo "$ac_compile" | $SED \
10600
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10601
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10602
   -e 's:$: $lt_compiler_flag:'`
10603
   (eval echo "\"\$as_me:10603: $lt_compile\"" >&5)
10604
   (eval "$lt_compile" 2>conftest.err)
10605
   ac_status=$?
10606
   cat conftest.err >&5
10607
   echo "$as_me:10607: \$? = $ac_status" >&5
10608
   if (exit $ac_status) && test -s "$ac_outfile"; then
10609
     # The compiler can only warn and ignore the option if not recognized
10610
     # So say no if there are warnings other than the usual output.
10611
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10612
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10613
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10614
       lt_cv_prog_compiler_rtti_exceptions=yes
10615
     fi
10616
   fi
10617
   $rm conftest*
10618
10619
fi
10620
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10621
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10622
10623
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10624
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10625
else
10626
    :
10627
fi
10628
10629
fi
10630
10631
lt_prog_compiler_wl=
10632
lt_prog_compiler_pic=
10633
lt_prog_compiler_static=
10634
10635
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10636
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10637
10638
  if test "$GCC" = yes; then
10639
    lt_prog_compiler_wl='-Wl,'
10640
    lt_prog_compiler_static='-static'
10641
10642
    case $host_os in
10643
      aix*)
10644
      # All AIX code is PIC.
10645
      if test "$host_cpu" = ia64; then
10646
	# AIX 5 now supports IA64 processor
10647
	lt_prog_compiler_static='-Bstatic'
10648
      fi
10649
      ;;
10650
10651
    amigaos*)
10652
      # FIXME: we need at least 68020 code to build shared libraries, but
10653
      # adding the `-m68020' flag to GCC prevents building anything better,
10654
      # like `-m68040'.
10655
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10656
      ;;
10657
10658
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10659
      # PIC is the default for these OSes.
10660
      ;;
10661
10662
    mingw* | cygwin* | pw32* | os2*)
10663
      # This hack is so that the source file can tell whether it is being
10664
      # built for inclusion in a dll (and should export symbols for example).
10665
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10666
      # (--disable-auto-import) libraries
10667
      lt_prog_compiler_pic='-DDLL_EXPORT'
10668
      ;;
10669
10670
    darwin* | rhapsody*)
10671
      # PIC is the default on this platform
10672
      # Common symbols not allowed in MH_DYLIB files
10673
      lt_prog_compiler_pic='-fno-common'
10674
      ;;
10675
10676
    interix[3-9]*)
10677
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10678
      # Instead, we relocate shared libraries at runtime.
10679
      ;;
10680
10681
    msdosdjgpp*)
10682
      # Just because we use GCC doesn't mean we suddenly get shared libraries
10683
      # on systems that don't support them.
10684
      lt_prog_compiler_can_build_shared=no
10685
      enable_shared=no
10686
      ;;
10687
10688
    sysv4*MP*)
10689
      if test -d /usr/nec; then
10690
	lt_prog_compiler_pic=-Kconform_pic
10691
      fi
10692
      ;;
10693
10694
    hpux*)
10695
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10696
      # not for PA HP-UX.
10697
      case $host_cpu in
10698
      hppa*64*|ia64*)
10699
	# +Z the default
10700
	;;
10701
      *)
10702
	lt_prog_compiler_pic='-fPIC'
10703
	;;
10704
      esac
10705
      ;;
10706
10707
    *)
10708
      lt_prog_compiler_pic='-fPIC'
10709
      ;;
10710
    esac
10711
  else
10712
    # PORTME Check for flag to pass linker flags through the system compiler.
10713
    case $host_os in
10714
    aix*)
10715
      lt_prog_compiler_wl='-Wl,'
10716
      if test "$host_cpu" = ia64; then
10717
	# AIX 5 now supports IA64 processor
10718
	lt_prog_compiler_static='-Bstatic'
10719
      else
10720
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10721
      fi
10722
      ;;
10723
      darwin*)
10724
        # PIC is the default on this platform
10725
        # Common symbols not allowed in MH_DYLIB files
10726
       case $cc_basename in
10727
         xlc*)
10728
         lt_prog_compiler_pic='-qnocommon'
10729
         lt_prog_compiler_wl='-Wl,'
10730
         ;;
10731
       esac
10732
       ;;
10733
10734
    mingw* | cygwin* | pw32* | os2*)
10735
      # This hack is so that the source file can tell whether it is being
10736
      # built for inclusion in a dll (and should export symbols for example).
10737
      lt_prog_compiler_pic='-DDLL_EXPORT'
10738
      ;;
10739
10740
    hpux9* | hpux10* | hpux11*)
10741
      lt_prog_compiler_wl='-Wl,'
10742
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10743
      # not for PA HP-UX.
10744
      case $host_cpu in
10745
      hppa*64*|ia64*)
10746
	# +Z the default
10747
	;;
10748
      *)
10749
	lt_prog_compiler_pic='+Z'
10750
	;;
10751
      esac
10752
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10753
      lt_prog_compiler_static='${wl}-a ${wl}archive'
10754
      ;;
10755
10756
    irix5* | irix6* | nonstopux*)
10757
      lt_prog_compiler_wl='-Wl,'
10758
      # PIC (with -KPIC) is the default.
10759
      lt_prog_compiler_static='-non_shared'
10760
      ;;
10761
10762
    newsos6)
10763
      lt_prog_compiler_pic='-KPIC'
10764
      lt_prog_compiler_static='-Bstatic'
10765
      ;;
10766
10767
    linux* | k*bsd*-gnu)
10768
      case $cc_basename in
10769
      icc* | ecc*)
10770
	lt_prog_compiler_wl='-Wl,'
10771
	lt_prog_compiler_pic='-KPIC'
10772
	lt_prog_compiler_static='-static'
10773
        ;;
10774
      pgcc* | pgf77* | pgf90* | pgf95*)
10775
        # Portland Group compilers (*not* the Pentium gcc compiler,
10776
	# which looks to be a dead project)
10777
	lt_prog_compiler_wl='-Wl,'
10778
	lt_prog_compiler_pic='-fpic'
10779
	lt_prog_compiler_static='-Bstatic'
10780
        ;;
10781
      ccc*)
10782
        lt_prog_compiler_wl='-Wl,'
10783
        # All Alpha code is PIC.
10784
        lt_prog_compiler_static='-non_shared'
10785
        ;;
10786
      *)
10787
        case `$CC -V 2>&1 | sed 5q` in
10788
	*Sun\ C*)
10789
	  # Sun C 5.9
10790
	  lt_prog_compiler_pic='-KPIC'
10791
	  lt_prog_compiler_static='-Bstatic'
10792
	  lt_prog_compiler_wl='-Wl,'
10793
	  ;;
10794
	*Sun\ F*)
10795
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10796
	  lt_prog_compiler_pic='-KPIC'
10797
	  lt_prog_compiler_static='-Bstatic'
10798
	  lt_prog_compiler_wl=''
10799
	  ;;
10800
	esac
10801
	;;
10802
      esac
10803
      ;;
10804
10805
    osf3* | osf4* | osf5*)
10806
      lt_prog_compiler_wl='-Wl,'
10807
      # All OSF/1 code is PIC.
10808
      lt_prog_compiler_static='-non_shared'
10809
      ;;
10810
10811
    rdos*)
10812
      lt_prog_compiler_static='-non_shared'
10813
      ;;
10814
10815
    solaris*)
10816
      lt_prog_compiler_pic='-KPIC'
10817
      lt_prog_compiler_static='-Bstatic'
10818
      case $cc_basename in
10819
      f77* | f90* | f95*)
10820
	lt_prog_compiler_wl='-Qoption ld ';;
10821
      *)
10822
	lt_prog_compiler_wl='-Wl,';;
10823
      esac
10824
      ;;
10825
10826
    sunos4*)
10827
      lt_prog_compiler_wl='-Qoption ld '
10828
      lt_prog_compiler_pic='-PIC'
10829
      lt_prog_compiler_static='-Bstatic'
10830
      ;;
10831
10832
    sysv4 | sysv4.2uw2* | sysv4.3*)
10833
      lt_prog_compiler_wl='-Wl,'
10834
      lt_prog_compiler_pic='-KPIC'
10835
      lt_prog_compiler_static='-Bstatic'
10836
      ;;
10837
10838
    sysv4*MP*)
10839
      if test -d /usr/nec ;then
10840
	lt_prog_compiler_pic='-Kconform_pic'
10841
	lt_prog_compiler_static='-Bstatic'
10842
      fi
10843
      ;;
10844
10845
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10846
      lt_prog_compiler_wl='-Wl,'
10847
      lt_prog_compiler_pic='-KPIC'
10848
      lt_prog_compiler_static='-Bstatic'
10849
      ;;
10850
10851
    unicos*)
10852
      lt_prog_compiler_wl='-Wl,'
10853
      lt_prog_compiler_can_build_shared=no
10854
      ;;
10855
10856
    uts4*)
10857
      lt_prog_compiler_pic='-pic'
10858
      lt_prog_compiler_static='-Bstatic'
10859
      ;;
10860
10861
    *)
10862
      lt_prog_compiler_can_build_shared=no
10863
      ;;
10864
    esac
10865
  fi
10866
10867
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10868
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10869
10870
#
10871
# Check to make sure the PIC flag actually works.
10872
#
10873
if test -n "$lt_prog_compiler_pic"; then
10874
10875
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10876
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10877
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10878
  echo $ECHO_N "(cached) $ECHO_C" >&6
10879
else
10880
  lt_cv_prog_compiler_pic_works=no
10881
  ac_outfile=conftest.$ac_objext
10882
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10883
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10884
   # Insert the option either (1) after the last *FLAGS variable, or
10885
   # (2) before a word containing "conftest.", or (3) at the end.
10886
   # Note that $ac_compile itself does not contain backslashes and begins
10887
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10888
   # The option is referenced via a variable to avoid confusing sed.
10889
   lt_compile=`echo "$ac_compile" | $SED \
10890
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10891
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10892
   -e 's:$: $lt_compiler_flag:'`
10893
   (eval echo "\"\$as_me:10893: $lt_compile\"" >&5)
10894
   (eval "$lt_compile" 2>conftest.err)
10895
   ac_status=$?
10896
   cat conftest.err >&5
10897
   echo "$as_me:10897: \$? = $ac_status" >&5
10898
   if (exit $ac_status) && test -s "$ac_outfile"; then
10899
     # The compiler can only warn and ignore the option if not recognized
10900
     # So say no if there are warnings other than the usual output.
10901
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10902
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10903
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10904
       lt_cv_prog_compiler_pic_works=yes
10905
     fi
10906
   fi
10907
   $rm conftest*
10908
10909
fi
10910
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10911
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
10912
10913
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10914
    case $lt_prog_compiler_pic in
10915
     "" | " "*) ;;
10916
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10917
     esac
10918
else
10919
    lt_prog_compiler_pic=
10920
     lt_prog_compiler_can_build_shared=no
10921
fi
10922
10923
fi
10924
case $host_os in
10925
  # For platforms which do not support PIC, -DPIC is meaningless:
10926
  *djgpp*)
10927
    lt_prog_compiler_pic=
10928
    ;;
10929
  *)
10930
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10931
    ;;
10932
esac
10933
10934
#
10935
# Check to make sure the static flag actually works.
10936
#
10937
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10938
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10939
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10940
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10941
  echo $ECHO_N "(cached) $ECHO_C" >&6
10942
else
10943
  lt_cv_prog_compiler_static_works=no
10944
   save_LDFLAGS="$LDFLAGS"
10945
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10946
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10947
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10948
     # The linker can only warn and ignore the option if not recognized
10949
     # So say no if there are warnings
10950
     if test -s conftest.err; then
10951
       # Append any errors to the config.log.
10952
       cat conftest.err 1>&5
10953
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10954
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10955
       if diff conftest.exp conftest.er2 >/dev/null; then
10956
         lt_cv_prog_compiler_static_works=yes
10957
       fi
10958
     else
10959
       lt_cv_prog_compiler_static_works=yes
10960
     fi
10961
   fi
10962
   $rm -r conftest*
10963
   LDFLAGS="$save_LDFLAGS"
10964
10965
fi
10966
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10967
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
10968
10969
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10970
    :
10971
else
10972
    lt_prog_compiler_static=
10973
fi
10974
10975
10976
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10977
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10978
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10979
  echo $ECHO_N "(cached) $ECHO_C" >&6
10980
else
10981
  lt_cv_prog_compiler_c_o=no
10982
   $rm -r conftest 2>/dev/null
10983
   mkdir conftest
10984
   cd conftest
10985
   mkdir out
10986
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10987
10988
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10989
   # Insert the option either (1) after the last *FLAGS variable, or
10990
   # (2) before a word containing "conftest.", or (3) at the end.
10991
   # Note that $ac_compile itself does not contain backslashes and begins
10992
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10993
   lt_compile=`echo "$ac_compile" | $SED \
10994
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10995
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10996
   -e 's:$: $lt_compiler_flag:'`
10997
   (eval echo "\"\$as_me:10997: $lt_compile\"" >&5)
10998
   (eval "$lt_compile" 2>out/conftest.err)
10999
   ac_status=$?
11000
   cat out/conftest.err >&5
11001
   echo "$as_me:11001: \$? = $ac_status" >&5
11002
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11003
   then
11004
     # The compiler can only warn and ignore the option if not recognized
11005
     # So say no if there are warnings
11006
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11007
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11008
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11009
       lt_cv_prog_compiler_c_o=yes
11010
     fi
11011
   fi
11012
   chmod u+w . 2>&5
11013
   $rm conftest*
11014
   # SGI C++ compiler will create directory out/ii_files/ for
11015
   # template instantiation
11016
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11017
   $rm out/* && rmdir out
11018
   cd ..
11019
   rmdir conftest
11020
   $rm conftest*
11021
11022
fi
11023
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11024
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
11025
11026
11027
hard_links="nottested"
11028
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11029
  # do not overwrite the value of need_locks provided by the user
11030
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11031
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11032
  hard_links=yes
11033
  $rm conftest*
11034
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11035
  touch conftest.a
11036
  ln conftest.a conftest.b 2>&5 || hard_links=no
11037
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11038
  { echo "$as_me:$LINENO: result: $hard_links" >&5
11039
echo "${ECHO_T}$hard_links" >&6; }
11040
  if test "$hard_links" = no; then
11041
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11042
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11043
    need_locks=warn
11044
  fi
11045
else
11046
  need_locks=no
11047
fi
11048
11049
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11050
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11051
11052
  runpath_var=
11053
  allow_undefined_flag=
11054
  enable_shared_with_static_runtimes=no
11055
  archive_cmds=
11056
  archive_expsym_cmds=
11057
  old_archive_From_new_cmds=
11058
  old_archive_from_expsyms_cmds=
11059
  export_dynamic_flag_spec=
11060
  whole_archive_flag_spec=
11061
  thread_safe_flag_spec=
11062
  hardcode_libdir_flag_spec=
11063
  hardcode_libdir_flag_spec_ld=
11064
  hardcode_libdir_separator=
11065
  hardcode_direct=no
11066
  hardcode_minus_L=no
11067
  hardcode_shlibpath_var=unsupported
11068
  link_all_deplibs=unknown
11069
  hardcode_automatic=no
11070
  module_cmds=
11071
  module_expsym_cmds=
11072
  always_export_symbols=no
11073
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11074
  # include_expsyms should be a list of space-separated symbols to be *always*
11075
  # included in the symbol list
11076
  include_expsyms=
11077
  # exclude_expsyms can be an extended regexp of symbols to exclude
11078
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11079
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11080
  # as well as any symbol that contains `d'.
11081
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11082
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11083
  # platforms (ab)use it in PIC code, but their linkers get confused if
11084
  # the symbol is explicitly referenced.  Since portable code cannot
11085
  # rely on this symbol name, it's probably fine to never include it in
11086
  # preloaded symbol tables.
11087
  # Exclude shared library initialization/finalization symbols.
11088
  extract_expsyms_cmds=
11089
  # Just being paranoid about ensuring that cc_basename is set.
11090
  for cc_temp in $compiler""; do
11091
  case $cc_temp in
11092
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11093
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11094
    \-*) ;;
11095
    *) break;;
11096
  esac
11097
done
11098
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11099
11100
  case $host_os in
11101
  cygwin* | mingw* | pw32*)
11102
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11103
    # When not using gcc, we currently assume that we are using
11104
    # Microsoft Visual C++.
11105
    if test "$GCC" != yes; then
11106
      with_gnu_ld=no
11107
    fi
11108
    ;;
11109
  interix*)
11110
    # we just hope/assume this is gcc and not c89 (= MSVC++)
11111
    with_gnu_ld=yes
11112
    ;;
11113
  openbsd*)
11114
    with_gnu_ld=no
11115
    ;;
11116
  esac
11117
11118
  ld_shlibs=yes
11119
  if test "$with_gnu_ld" = yes; then
11120
    # If archive_cmds runs LD, not CC, wlarc should be empty
11121
    wlarc='${wl}'
11122
11123
    # Set some defaults for GNU ld with shared library support. These
11124
    # are reset later if shared libraries are not supported. Putting them
11125
    # here allows them to be overridden if necessary.
11126
    runpath_var=LD_RUN_PATH
11127
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11128
    export_dynamic_flag_spec='${wl}--export-dynamic'
11129
    # ancient GNU ld didn't support --whole-archive et. al.
11130
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11131
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11132
      else
11133
  	whole_archive_flag_spec=
11134
    fi
11135
    supports_anon_versioning=no
11136
    case `$LD -v 2>/dev/null` in
11137
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11138
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11139
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11140
      *\ 2.11.*) ;; # other 2.11 versions
11141
      *) supports_anon_versioning=yes ;;
11142
    esac
11143
11144
    # See if GNU ld supports shared libraries.
11145
    case $host_os in
11146
    aix[3-9]*)
11147
      # On AIX/PPC, the GNU linker is very broken
11148
      if test "$host_cpu" != ia64; then
11149
	ld_shlibs=no
11150
	cat <<EOF 1>&2
11151
11152
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11153
*** to be unable to reliably create shared libraries on AIX.
11154
*** Therefore, libtool is disabling shared libraries support.  If you
11155
*** really care for shared libraries, you may want to modify your PATH
11156
*** so that a non-GNU linker is found, and then restart.
11157
11158
EOF
11159
      fi
11160
      ;;
11161
11162
    amigaos*)
11163
      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)'
11164
      hardcode_libdir_flag_spec='-L$libdir'
11165
      hardcode_minus_L=yes
11166
11167
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11168
      # that the semantics of dynamic libraries on AmigaOS, at least up
11169
      # to version 4, is to share data among multiple programs linked
11170
      # with the same dynamic library.  Since this doesn't match the
11171
      # behavior of shared libraries on other platforms, we can't use
11172
      # them.
11173
      ld_shlibs=no
11174
      ;;
11175
11176
    beos*)
11177
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11178
	allow_undefined_flag=unsupported
11179
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11180
	# support --undefined.  This deserves some investigation.  FIXME
11181
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11182
      else
11183
	ld_shlibs=no
11184
      fi
11185
      ;;
11186
11187
    cygwin* | mingw* | pw32*)
11188
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11189
      # as there is no search path for DLLs.
11190
      hardcode_libdir_flag_spec='-L$libdir'
11191
      allow_undefined_flag=unsupported
11192
      always_export_symbols=no
11193
      enable_shared_with_static_runtimes=yes
11194
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11195
11196
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11197
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11198
	# If the export-symbols file already is a .def file (1st line
11199
	# is EXPORTS), use it as is; otherwise, prepend...
11200
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11201
	  cp $export_symbols $output_objdir/$soname.def;
11202
	else
11203
	  echo EXPORTS > $output_objdir/$soname.def;
11204
	  cat $export_symbols >> $output_objdir/$soname.def;
11205
	fi~
11206
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11207
      else
11208
	ld_shlibs=no
11209
      fi
11210
      ;;
11211
11212
    interix[3-9]*)
11213
      hardcode_direct=no
11214
      hardcode_shlibpath_var=no
11215
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11216
      export_dynamic_flag_spec='${wl}-E'
11217
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11218
      # Instead, shared libraries are loaded at an image base (0x10000000 by
11219
      # default) and relocated if they conflict, which is a slow very memory
11220
      # consuming and fragmenting process.  To avoid this, we pick a random,
11221
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11222
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11223
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11224
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11225
      ;;
11226
11227
    gnu* | linux* | k*bsd*-gnu)
11228
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11229
	tmp_addflag=
11230
	case $cc_basename,$host_cpu in
11231
	pgcc*)				# Portland Group C compiler
11232
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11233
	  tmp_addflag=' $pic_flag'
11234
	  ;;
11235
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11236
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11237
	  tmp_addflag=' $pic_flag -Mnomain' ;;
11238
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
11239
	  tmp_addflag=' -i_dynamic' ;;
11240
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11241
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11242
	ifc* | ifort*)			# Intel Fortran compiler
11243
	  tmp_addflag=' -nofor_main' ;;
11244
	esac
11245
	case `$CC -V 2>&1 | sed 5q` in
11246
	*Sun\ C*)			# Sun C 5.9
11247
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11248
	  tmp_sharedflag='-G' ;;
11249
	*Sun\ F*)			# Sun Fortran 8.3
11250
	  tmp_sharedflag='-G' ;;
11251
	*)
11252
	  tmp_sharedflag='-shared' ;;
11253
	esac
11254
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11255
11256
	if test $supports_anon_versioning = yes; then
11257
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11258
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11259
  $echo "local: *; };" >> $output_objdir/$libname.ver~
11260
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11261
	fi
11262
	link_all_deplibs=no
11263
      else
11264
	ld_shlibs=no
11265
      fi
11266
      ;;
11267
11268
    netbsd* | netbsdelf*-gnu)
11269
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11270
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11271
	wlarc=
11272
      else
11273
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11274
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11275
      fi
11276
      ;;
11277
11278
    solaris*)
11279
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11280
	ld_shlibs=no
11281
	cat <<EOF 1>&2
11282
11283
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11284
*** create shared libraries on Solaris systems.  Therefore, libtool
11285
*** is disabling shared libraries support.  We urge you to upgrade GNU
11286
*** binutils to release 2.9.1 or newer.  Another option is to modify
11287
*** your PATH or compiler configuration so that the native linker is
11288
*** used, and then restart.
11289
11290
EOF
11291
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11292
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11293
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11294
      else
11295
	ld_shlibs=no
11296
      fi
11297
      ;;
11298
11299
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11300
      case `$LD -v 2>&1` in
11301
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11302
	ld_shlibs=no
11303
	cat <<_LT_EOF 1>&2
11304
11305
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11306
*** reliably create shared libraries on SCO systems.  Therefore, libtool
11307
*** is disabling shared libraries support.  We urge you to upgrade GNU
11308
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11309
*** your PATH or compiler configuration so that the native linker is
11310
*** used, and then restart.
11311
11312
_LT_EOF
11313
	;;
11314
	*)
11315
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11316
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11317
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11318
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11319
	  else
11320
	    ld_shlibs=no
11321
	  fi
11322
	;;
11323
      esac
11324
      ;;
11325
11326
    sunos4*)
11327
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11328
      wlarc=
11329
      hardcode_direct=yes
11330
      hardcode_shlibpath_var=no
11331
      ;;
11332
11333
    *)
11334
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11335
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11336
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11337
      else
11338
	ld_shlibs=no
11339
      fi
11340
      ;;
11341
    esac
11342
11343
    if test "$ld_shlibs" = no; then
11344
      runpath_var=
11345
      hardcode_libdir_flag_spec=
11346
      export_dynamic_flag_spec=
11347
      whole_archive_flag_spec=
11348
    fi
11349
  else
11350
    # PORTME fill in a description of your system's linker (not GNU ld)
11351
    case $host_os in
11352
    aix3*)
11353
      allow_undefined_flag=unsupported
11354
      always_export_symbols=yes
11355
      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'
11356
      # Note: this linker hardcodes the directories in LIBPATH if there
11357
      # are no directories specified by -L.
11358
      hardcode_minus_L=yes
11359
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11360
	# Neither direct hardcoding nor static linking is supported with a
11361
	# broken collect2.
11362
	hardcode_direct=unsupported
11363
      fi
11364
      ;;
11365
11366
    aix[4-9]*)
11367
      if test "$host_cpu" = ia64; then
11368
	# On IA64, the linker does run time linking by default, so we don't
11369
	# have to do anything special.
11370
	aix_use_runtimelinking=no
11371
	exp_sym_flag='-Bexport'
11372
	no_entry_flag=""
11373
      else
11374
	# If we're using GNU nm, then we don't want the "-C" option.
11375
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11376
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11377
	  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'
11378
	else
11379
	  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'
11380
	fi
11381
	aix_use_runtimelinking=no
11382
11383
	# Test if we are trying to use run time linking or normal
11384
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11385
	# need to do runtime linking.
11386
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11387
	  for ld_flag in $LDFLAGS; do
11388
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11389
  	    aix_use_runtimelinking=yes
11390
  	    break
11391
  	  fi
11392
	  done
11393
	  ;;
11394
	esac
11395
11396
	exp_sym_flag='-bexport'
11397
	no_entry_flag='-bnoentry'
11398
      fi
11399
11400
      # When large executables or shared objects are built, AIX ld can
11401
      # have problems creating the table of contents.  If linking a library
11402
      # or program results in "error TOC overflow" add -mminimal-toc to
11403
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11404
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11405
11406
      archive_cmds=''
11407
      hardcode_direct=yes
11408
      hardcode_libdir_separator=':'
11409
      link_all_deplibs=yes
11410
11411
      if test "$GCC" = yes; then
11412
	case $host_os in aix4.[012]|aix4.[012].*)
11413
	# We only want to do this on AIX 4.2 and lower, the check
11414
	# below for broken collect2 doesn't work under 4.3+
11415
	  collect2name=`${CC} -print-prog-name=collect2`
11416
	  if test -f "$collect2name" && \
11417
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11418
	  then
11419
  	  # We have reworked collect2
11420
  	  :
11421
	  else
11422
  	  # We have old collect2
11423
  	  hardcode_direct=unsupported
11424
  	  # It fails to find uninstalled libraries when the uninstalled
11425
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
11426
  	  # to unsupported forces relinking
11427
  	  hardcode_minus_L=yes
11428
  	  hardcode_libdir_flag_spec='-L$libdir'
11429
  	  hardcode_libdir_separator=
11430
	  fi
11431
	  ;;
11432
	esac
11433
	shared_flag='-shared'
11434
	if test "$aix_use_runtimelinking" = yes; then
11435
	  shared_flag="$shared_flag "'${wl}-G'
11436
	fi
11437
      else
11438
	# not using gcc
11439
	if test "$host_cpu" = ia64; then
11440
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11441
  	# chokes on -Wl,-G. The following line is correct:
11442
	  shared_flag='-G'
11443
	else
11444
	  if test "$aix_use_runtimelinking" = yes; then
11445
	    shared_flag='${wl}-G'
11446
	  else
11447
	    shared_flag='${wl}-bM:SRE'
11448
	  fi
11449
	fi
11450
      fi
11451
11452
      # It seems that -bexpall does not export symbols beginning with
11453
      # underscore (_), so it is better to generate a list of symbols to export.
11454
      always_export_symbols=yes
11455
      if test "$aix_use_runtimelinking" = yes; then
11456
	# Warning - without using the other runtime loading flags (-brtl),
11457
	# -berok will link without error, but may produce a broken library.
11458
	allow_undefined_flag='-berok'
11459
       # Determine the default libpath from the value encoded in an empty executable.
11460
       cat >conftest.$ac_ext <<_ACEOF
11461
/* confdefs.h.  */
11462
_ACEOF
11463
cat confdefs.h >>conftest.$ac_ext
11464
cat >>conftest.$ac_ext <<_ACEOF
11465
/* end confdefs.h.  */
11466
11467
int
11468
main ()
11469
{
11470
11471
  ;
11472
  return 0;
11473
}
11474
_ACEOF
11475
rm -f conftest.$ac_objext conftest$ac_exeext
11476
if { (ac_try="$ac_link"
11477
case "(($ac_try" in
11478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479
  *) ac_try_echo=$ac_try;;
11480
esac
11481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482
  (eval "$ac_link") 2>conftest.er1
11483
  ac_status=$?
11484
  grep -v '^ *+' conftest.er1 >conftest.err
11485
  rm -f conftest.er1
11486
  cat conftest.err >&5
11487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488
  (exit $ac_status); } && {
11489
	 test -z "$ac_c_werror_flag" ||
11490
	 test ! -s conftest.err
11491
       } && test -s conftest$ac_exeext &&
11492
       $as_test_x conftest$ac_exeext; then
11493
11494
lt_aix_libpath_sed='
11495
    /Import File Strings/,/^$/ {
11496
	/^0/ {
11497
	    s/^0  *\(.*\)$/\1/
11498
	    p
11499
	}
11500
    }'
11501
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11502
# Check for a 64-bit object if we didn't find anything.
11503
if test -z "$aix_libpath"; then
11504
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11505
fi
11506
else
11507
  echo "$as_me: failed program was:" >&5
11508
sed 's/^/| /' conftest.$ac_ext >&5
11509
11510
11511
fi
11512
11513
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11514
      conftest$ac_exeext conftest.$ac_ext
11515
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11516
11517
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11518
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11519
       else
11520
	if test "$host_cpu" = ia64; then
11521
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11522
	  allow_undefined_flag="-z nodefs"
11523
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11524
	else
11525
	 # Determine the default libpath from the value encoded in an empty executable.
11526
	 cat >conftest.$ac_ext <<_ACEOF
11527
/* confdefs.h.  */
11528
_ACEOF
11529
cat confdefs.h >>conftest.$ac_ext
11530
cat >>conftest.$ac_ext <<_ACEOF
11531
/* end confdefs.h.  */
11532
11533
int
11534
main ()
11535
{
11536
11537
  ;
11538
  return 0;
11539
}
11540
_ACEOF
11541
rm -f conftest.$ac_objext conftest$ac_exeext
11542
if { (ac_try="$ac_link"
11543
case "(($ac_try" in
11544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545
  *) ac_try_echo=$ac_try;;
11546
esac
11547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548
  (eval "$ac_link") 2>conftest.er1
11549
  ac_status=$?
11550
  grep -v '^ *+' conftest.er1 >conftest.err
11551
  rm -f conftest.er1
11552
  cat conftest.err >&5
11553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554
  (exit $ac_status); } && {
11555
	 test -z "$ac_c_werror_flag" ||
11556
	 test ! -s conftest.err
11557
       } && test -s conftest$ac_exeext &&
11558
       $as_test_x conftest$ac_exeext; then
11559
11560
lt_aix_libpath_sed='
11561
    /Import File Strings/,/^$/ {
11562
	/^0/ {
11563
	    s/^0  *\(.*\)$/\1/
11564
	    p
11565
	}
11566
    }'
11567
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11568
# Check for a 64-bit object if we didn't find anything.
11569
if test -z "$aix_libpath"; then
11570
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11571
fi
11572
else
11573
  echo "$as_me: failed program was:" >&5
11574
sed 's/^/| /' conftest.$ac_ext >&5
11575
11576
11577
fi
11578
11579
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11580
      conftest$ac_exeext conftest.$ac_ext
11581
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11582
11583
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11584
	  # Warning - without using the other run time loading flags,
11585
	  # -berok will link without error, but may produce a broken library.
11586
	  no_undefined_flag=' ${wl}-bernotok'
11587
	  allow_undefined_flag=' ${wl}-berok'
11588
	  # Exported symbols can be pulled into shared objects from archives
11589
	  whole_archive_flag_spec='$convenience'
11590
	  archive_cmds_need_lc=yes
11591
	  # This is similar to how AIX traditionally builds its shared libraries.
11592
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11593
	fi
11594
      fi
11595
      ;;
11596
11597
    amigaos*)
11598
      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)'
11599
      hardcode_libdir_flag_spec='-L$libdir'
11600
      hardcode_minus_L=yes
11601
      # see comment about different semantics on the GNU ld section
11602
      ld_shlibs=no
11603
      ;;
11604
11605
    bsdi[45]*)
11606
      export_dynamic_flag_spec=-rdynamic
11607
      ;;
11608
11609
    cygwin* | mingw* | pw32*)
11610
      # When not using gcc, we currently assume that we are using
11611
      # Microsoft Visual C++.
11612
      # hardcode_libdir_flag_spec is actually meaningless, as there is
11613
      # no search path for DLLs.
11614
      hardcode_libdir_flag_spec=' '
11615
      allow_undefined_flag=unsupported
11616
      # Tell ltmain to make .lib files, not .a files.
11617
      libext=lib
11618
      # Tell ltmain to make .dll files, not .so files.
11619
      shrext_cmds=".dll"
11620
      # FIXME: Setting linknames here is a bad hack.
11621
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11622
      # The linker will automatically build a .lib file if we build a DLL.
11623
      old_archive_From_new_cmds='true'
11624
      # FIXME: Should let the user specify the lib program.
11625
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11626
      fix_srcfile_path='`cygpath -w "$srcfile"`'
11627
      enable_shared_with_static_runtimes=yes
11628
      ;;
11629
11630
    darwin* | rhapsody*)
11631
      case $host_os in
11632
        rhapsody* | darwin1.[012])
11633
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
11634
         ;;
11635
       *) # Darwin 1.3 on
11636
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11637
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11638
         else
11639
           case ${MACOSX_DEPLOYMENT_TARGET} in
11640
             10.[012])
11641
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11642
               ;;
11643
             10.*)
11644
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11645
               ;;
11646
           esac
11647
         fi
11648
         ;;
11649
      esac
11650
      archive_cmds_need_lc=no
11651
      hardcode_direct=no
11652
      hardcode_automatic=yes
11653
      hardcode_shlibpath_var=unsupported
11654
      whole_archive_flag_spec=''
11655
      link_all_deplibs=yes
11656
    if test "$GCC" = yes ; then
11657
    	output_verbose_link_cmd='echo'
11658
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11659
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11660
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11661
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11662
    else
11663
      case $cc_basename in
11664
        xlc*)
11665
         output_verbose_link_cmd='echo'
11666
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11667
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11668
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11669
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11670
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11671
          ;;
11672
       *)
11673
         ld_shlibs=no
11674
          ;;
11675
      esac
11676
    fi
11677
      ;;
11678
11679
    dgux*)
11680
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11681
      hardcode_libdir_flag_spec='-L$libdir'
11682
      hardcode_shlibpath_var=no
11683
      ;;
11684
11685
    freebsd1*)
11686
      ld_shlibs=no
11687
      ;;
11688
11689
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11690
    # support.  Future versions do this automatically, but an explicit c++rt0.o
11691
    # does not break anything, and helps significantly (at the cost of a little
11692
    # extra space).
11693
    freebsd2.2*)
11694
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11695
      hardcode_libdir_flag_spec='-R$libdir'
11696
      hardcode_direct=yes
11697
      hardcode_shlibpath_var=no
11698
      ;;
11699
11700
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11701
    freebsd2*)
11702
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11703
      hardcode_direct=yes
11704
      hardcode_minus_L=yes
11705
      hardcode_shlibpath_var=no
11706
      ;;
11707
11708
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11709
    freebsd* | dragonfly*)
11710
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11711
      hardcode_libdir_flag_spec='-R$libdir'
11712
      hardcode_direct=yes
11713
      hardcode_shlibpath_var=no
11714
      ;;
11715
11716
    hpux9*)
11717
      if test "$GCC" = yes; then
11718
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11719
      else
11720
	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'
11721
      fi
11722
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11723
      hardcode_libdir_separator=:
11724
      hardcode_direct=yes
11725
11726
      # hardcode_minus_L: Not really in the search PATH,
11727
      # but as the default location of the library.
11728
      hardcode_minus_L=yes
11729
      export_dynamic_flag_spec='${wl}-E'
11730
      ;;
11731
11732
    hpux10*)
11733
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11734
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11735
      else
11736
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11737
      fi
11738
      if test "$with_gnu_ld" = no; then
11739
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11740
	hardcode_libdir_separator=:
11741
11742
	hardcode_direct=yes
11743
	export_dynamic_flag_spec='${wl}-E'
11744
11745
	# hardcode_minus_L: Not really in the search PATH,
11746
	# but as the default location of the library.
11747
	hardcode_minus_L=yes
11748
      fi
11749
      ;;
11750
11751
    hpux11*)
11752
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11753
	case $host_cpu in
11754
	hppa*64*)
11755
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11756
	  ;;
11757
	ia64*)
11758
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11759
	  ;;
11760
	*)
11761
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11762
	  ;;
11763
	esac
11764
      else
11765
	case $host_cpu in
11766
	hppa*64*)
11767
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11768
	  ;;
11769
	ia64*)
11770
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11771
	  ;;
11772
	*)
11773
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11774
	  ;;
11775
	esac
11776
      fi
11777
      if test "$with_gnu_ld" = no; then
11778
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11779
	hardcode_libdir_separator=:
11780
11781
	case $host_cpu in
11782
	hppa*64*|ia64*)
11783
	  hardcode_libdir_flag_spec_ld='+b $libdir'
11784
	  hardcode_direct=no
11785
	  hardcode_shlibpath_var=no
11786
	  ;;
11787
	*)
11788
	  hardcode_direct=yes
11789
	  export_dynamic_flag_spec='${wl}-E'
11790
11791
	  # hardcode_minus_L: Not really in the search PATH,
11792
	  # but as the default location of the library.
11793
	  hardcode_minus_L=yes
11794
	  ;;
11795
	esac
11796
      fi
11797
      ;;
11798
11799
    irix5* | irix6* | nonstopux*)
11800
      if test "$GCC" = yes; then
11801
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11802
      else
11803
	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'
11804
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
11805
      fi
11806
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11807
      hardcode_libdir_separator=:
11808
      link_all_deplibs=yes
11809
      ;;
11810
11811
    netbsd* | netbsdelf*-gnu)
11812
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11813
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11814
      else
11815
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11816
      fi
11817
      hardcode_libdir_flag_spec='-R$libdir'
11818
      hardcode_direct=yes
11819
      hardcode_shlibpath_var=no
11820
      ;;
11821
11822
    newsos6)
11823
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11824
      hardcode_direct=yes
11825
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11826
      hardcode_libdir_separator=:
11827
      hardcode_shlibpath_var=no
11828
      ;;
11829
11830
    openbsd*)
11831
      if test -f /usr/libexec/ld.so; then
11832
	hardcode_direct=yes
11833
	hardcode_shlibpath_var=no
11834
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11835
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11836
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11837
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11838
	  export_dynamic_flag_spec='${wl}-E'
11839
	else
11840
	  case $host_os in
11841
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11842
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11843
	     hardcode_libdir_flag_spec='-R$libdir'
11844
	     ;;
11845
	   *)
11846
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11847
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11848
	     ;;
11849
	  esac
11850
        fi
11851
      else
11852
	ld_shlibs=no
11853
      fi
11854
      ;;
11855
11856
    os2*)
11857
      hardcode_libdir_flag_spec='-L$libdir'
11858
      hardcode_minus_L=yes
11859
      allow_undefined_flag=unsupported
11860
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11861
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11862
      ;;
11863
11864
    osf3*)
11865
      if test "$GCC" = yes; then
11866
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11867
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11868
      else
11869
	allow_undefined_flag=' -expect_unresolved \*'
11870
	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'
11871
      fi
11872
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11873
      hardcode_libdir_separator=:
11874
      ;;
11875
11876
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11877
      if test "$GCC" = yes; then
11878
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11879
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11880
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11881
      else
11882
	allow_undefined_flag=' -expect_unresolved \*'
11883
	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'
11884
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11885
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11886
11887
	# Both c and cxx compiler support -rpath directly
11888
	hardcode_libdir_flag_spec='-rpath $libdir'
11889
      fi
11890
      hardcode_libdir_separator=:
11891
      ;;
11892
11893
    solaris*)
11894
      no_undefined_flag=' -z text'
11895
      if test "$GCC" = yes; then
11896
	wlarc='${wl}'
11897
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11898
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11899
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11900
      else
11901
	wlarc=''
11902
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11903
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11905
      fi
11906
      hardcode_libdir_flag_spec='-R$libdir'
11907
      hardcode_shlibpath_var=no
11908
      case $host_os in
11909
      solaris2.[0-5] | solaris2.[0-5].*) ;;
11910
      *)
11911
	# The compiler driver will combine and reorder linker options,
11912
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11913
	# but is careful enough not to reorder.
11914
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
11915
	if test "$GCC" = yes; then
11916
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11917
	else
11918
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11919
	fi
11920
	;;
11921
      esac
11922
      link_all_deplibs=yes
11923
      ;;
11924
11925
    sunos4*)
11926
      if test "x$host_vendor" = xsequent; then
11927
	# Use $CC to link under sequent, because it throws in some extra .o
11928
	# files that make .init and .fini sections work.
11929
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11930
      else
11931
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11932
      fi
11933
      hardcode_libdir_flag_spec='-L$libdir'
11934
      hardcode_direct=yes
11935
      hardcode_minus_L=yes
11936
      hardcode_shlibpath_var=no
11937
      ;;
11938
11939
    sysv4)
11940
      case $host_vendor in
11941
	sni)
11942
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11943
	  hardcode_direct=yes # is this really true???
11944
	;;
11945
	siemens)
11946
	  ## LD is ld it makes a PLAMLIB
11947
	  ## CC just makes a GrossModule.
11948
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11949
	  reload_cmds='$CC -r -o $output$reload_objs'
11950
	  hardcode_direct=no
11951
        ;;
11952
	motorola)
11953
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11954
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11955
	;;
11956
      esac
11957
      runpath_var='LD_RUN_PATH'
11958
      hardcode_shlibpath_var=no
11959
      ;;
11960
11961
    sysv4.3*)
11962
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11963
      hardcode_shlibpath_var=no
11964
      export_dynamic_flag_spec='-Bexport'
11965
      ;;
11966
11967
    sysv4*MP*)
11968
      if test -d /usr/nec; then
11969
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11970
	hardcode_shlibpath_var=no
11971
	runpath_var=LD_RUN_PATH
11972
	hardcode_runpath_var=yes
11973
	ld_shlibs=yes
11974
      fi
11975
      ;;
11976
11977
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11978
      no_undefined_flag='${wl}-z,text'
11979
      archive_cmds_need_lc=no
11980
      hardcode_shlibpath_var=no
11981
      runpath_var='LD_RUN_PATH'
11982
11983
      if test "$GCC" = yes; then
11984
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11985
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11986
      else
11987
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11988
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11989
      fi
11990
      ;;
11991
11992
    sysv5* | sco3.2v5* | sco5v6*)
11993
      # Note: We can NOT use -z defs as we might desire, because we do not
11994
      # link with -lc, and that would cause any symbols used from libc to
11995
      # always be unresolved, which means just about no library would
11996
      # ever link correctly.  If we're not using GNU ld we use -z text
11997
      # though, which does catch some bad symbols but isn't as heavy-handed
11998
      # as -z defs.
11999
      no_undefined_flag='${wl}-z,text'
12000
      allow_undefined_flag='${wl}-z,nodefs'
12001
      archive_cmds_need_lc=no
12002
      hardcode_shlibpath_var=no
12003
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12004
      hardcode_libdir_separator=':'
12005
      link_all_deplibs=yes
12006
      export_dynamic_flag_spec='${wl}-Bexport'
12007
      runpath_var='LD_RUN_PATH'
12008
12009
      if test "$GCC" = yes; then
12010
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12011
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12012
      else
12013
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12014
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12015
      fi
12016
      ;;
12017
12018
    uts4*)
12019
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12020
      hardcode_libdir_flag_spec='-L$libdir'
12021
      hardcode_shlibpath_var=no
12022
      ;;
12023
12024
    *)
12025
      ld_shlibs=no
12026
      ;;
12027
    esac
12028
  fi
12029
12030
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12031
echo "${ECHO_T}$ld_shlibs" >&6; }
12032
test "$ld_shlibs" = no && can_build_shared=no
12033
12034
#
12035
# Do we need to explicitly link libc?
12036
#
12037
case "x$archive_cmds_need_lc" in
12038
x|xyes)
12039
  # Assume -lc should be added
12040
  archive_cmds_need_lc=yes
12041
12042
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12043
    case $archive_cmds in
12044
    *'~'*)
12045
      # FIXME: we may have to deal with multi-command sequences.
12046
      ;;
12047
    '$CC '*)
12048
      # Test whether the compiler implicitly links with -lc since on some
12049
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12050
      # to ld, don't add -lc before -lgcc.
12051
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12052
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12053
      $rm conftest*
12054
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12055
12056
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12057
  (eval $ac_compile) 2>&5
12058
  ac_status=$?
12059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
  (exit $ac_status); } 2>conftest.err; then
12061
        soname=conftest
12062
        lib=conftest
12063
        libobjs=conftest.$ac_objext
12064
        deplibs=
12065
        wl=$lt_prog_compiler_wl
12066
	pic_flag=$lt_prog_compiler_pic
12067
        compiler_flags=-v
12068
        linker_flags=-v
12069
        verstring=
12070
        output_objdir=.
12071
        libname=conftest
12072
        lt_save_allow_undefined_flag=$allow_undefined_flag
12073
        allow_undefined_flag=
12074
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12075
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12076
  ac_status=$?
12077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078
  (exit $ac_status); }
12079
        then
12080
	  archive_cmds_need_lc=no
12081
        else
12082
	  archive_cmds_need_lc=yes
12083
        fi
12084
        allow_undefined_flag=$lt_save_allow_undefined_flag
12085
      else
12086
        cat conftest.err 1>&5
12087
      fi
12088
      $rm conftest*
12089
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12090
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
12091
      ;;
12092
    esac
12093
  fi
12094
  ;;
12095
esac
12096
12097
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12098
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12099
library_names_spec=
12100
libname_spec='lib$name'
12101
soname_spec=
12102
shrext_cmds=".so"
12103
postinstall_cmds=
12104
postuninstall_cmds=
12105
finish_cmds=
12106
finish_eval=
12107
shlibpath_var=
12108
shlibpath_overrides_runpath=unknown
12109
version_type=none
12110
dynamic_linker="$host_os ld.so"
12111
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12112
12113
if test "$GCC" = yes; then
12114
  case $host_os in
12115
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12116
    *) lt_awk_arg="/^libraries:/" ;;
12117
  esac
12118
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12119
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
12120
    # if the path contains ";" then we assume it to be the separator
12121
    # otherwise default to the standard path separator (i.e. ":") - it is
12122
    # assumed that no part of a normal pathname contains ";" but that should
12123
    # okay in the real world where ";" in dirpaths is itself problematic.
12124
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12125
  else
12126
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12127
  fi
12128
  # Ok, now we have the path, separated by spaces, we can step through it
12129
  # and add multilib dir if necessary.
12130
  lt_tmp_lt_search_path_spec=
12131
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12132
  for lt_sys_path in $lt_search_path_spec; do
12133
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12134
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12135
    else
12136
      test -d "$lt_sys_path" && \
12137
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12138
    fi
12139
  done
12140
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
12141
BEGIN {RS=" "; FS="/|\n";} {
12142
  lt_foo="";
12143
  lt_count=0;
12144
  for (lt_i = NF; lt_i > 0; lt_i--) {
12145
    if ($lt_i != "" && $lt_i != ".") {
12146
      if ($lt_i == "..") {
12147
        lt_count++;
12148
      } else {
12149
        if (lt_count == 0) {
12150
          lt_foo="/" $lt_i lt_foo;
12151
        } else {
12152
          lt_count--;
12153
        }
12154
      }
12155
    }
12156
  }
12157
  if (lt_foo != "") { lt_freq[lt_foo]++; }
12158
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12159
}'`
12160
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
12161
else
12162
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12163
fi
12164
need_lib_prefix=unknown
12165
hardcode_into_libs=no
12166
12167
# when you set need_version to no, make sure it does not cause -set_version
12168
# flags to be left without arguments
12169
need_version=unknown
12170
12171
case $host_os in
12172
aix3*)
12173
  version_type=linux
12174
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12175
  shlibpath_var=LIBPATH
12176
12177
  # AIX 3 has no versioning support, so we append a major version to the name.
12178
  soname_spec='${libname}${release}${shared_ext}$major'
12179
  ;;
12180
12181
aix[4-9]*)
12182
  version_type=linux
12183
  need_lib_prefix=no
12184
  need_version=no
12185
  hardcode_into_libs=yes
12186
  if test "$host_cpu" = ia64; then
12187
    # AIX 5 supports IA64
12188
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12189
    shlibpath_var=LD_LIBRARY_PATH
12190
  else
12191
    # With GCC up to 2.95.x, collect2 would create an import file
12192
    # for dependence libraries.  The import file would start with
12193
    # the line `#! .'.  This would cause the generated library to
12194
    # depend on `.', always an invalid library.  This was fixed in
12195
    # development snapshots of GCC prior to 3.0.
12196
    case $host_os in
12197
      aix4 | aix4.[01] | aix4.[01].*)
12198
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12199
	   echo ' yes '
12200
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12201
	:
12202
      else
12203
	can_build_shared=no
12204
      fi
12205
      ;;
12206
    esac
12207
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12208
    # soname into executable. Probably we can add versioning support to
12209
    # collect2, so additional links can be useful in future.
12210
    if test "$aix_use_runtimelinking" = yes; then
12211
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12212
      # instead of lib<name>.a to let people know that these are not
12213
      # typical AIX shared libraries.
12214
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12215
    else
12216
      # We preserve .a as extension for shared libraries through AIX4.2
12217
      # and later when we are not doing run time linking.
12218
      library_names_spec='${libname}${release}.a $libname.a'
12219
      soname_spec='${libname}${release}${shared_ext}$major'
12220
    fi
12221
    shlibpath_var=LIBPATH
12222
  fi
12223
  ;;
12224
12225
amigaos*)
12226
  library_names_spec='$libname.ixlibrary $libname.a'
12227
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12228
  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'
12229
  ;;
12230
12231
beos*)
12232
  library_names_spec='${libname}${shared_ext}'
12233
  dynamic_linker="$host_os ld.so"
12234
  shlibpath_var=LIBRARY_PATH
12235
  ;;
12236
12237
bsdi[45]*)
12238
  version_type=linux
12239
  need_version=no
12240
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241
  soname_spec='${libname}${release}${shared_ext}$major'
12242
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12243
  shlibpath_var=LD_LIBRARY_PATH
12244
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12245
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12246
  # the default ld.so.conf also contains /usr/contrib/lib and
12247
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12248
  # libtool to hard-code these into programs
12249
  ;;
12250
12251
cygwin* | mingw* | pw32*)
12252
  version_type=windows
12253
  shrext_cmds=".dll"
12254
  need_version=no
12255
  need_lib_prefix=no
12256
12257
  case $GCC,$host_os in
12258
  yes,cygwin* | yes,mingw* | yes,pw32*)
12259
    library_names_spec='$libname.dll.a'
12260
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12261
    postinstall_cmds='base_file=`basename \${file}`~
12262
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12263
      dldir=$destdir/`dirname \$dlpath`~
12264
      test -d \$dldir || mkdir -p \$dldir~
12265
      $install_prog $dir/$dlname \$dldir/$dlname~
12266
      chmod a+x \$dldir/$dlname'
12267
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12268
      dlpath=$dir/\$dldll~
12269
       $rm \$dlpath'
12270
    shlibpath_overrides_runpath=yes
12271
12272
    case $host_os in
12273
    cygwin*)
12274
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12275
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12276
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12277
      ;;
12278
    mingw*)
12279
      # MinGW DLLs use traditional 'lib' prefix
12280
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12281
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12282
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12283
        # It is most probably a Windows format PATH printed by
12284
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12285
        # path with ; separators, and with drive letters. We can handle the
12286
        # drive letters (cygwin fileutils understands them), so leave them,
12287
        # especially as we might pass files found there to a mingw objdump,
12288
        # which wouldn't understand a cygwinified path. Ahh.
12289
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12290
      else
12291
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12292
      fi
12293
      ;;
12294
    pw32*)
12295
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12296
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12297
      ;;
12298
    esac
12299
    ;;
12300
12301
  *)
12302
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12303
    ;;
12304
  esac
12305
  dynamic_linker='Win32 ld.exe'
12306
  # FIXME: first we should search . and the directory the executable is in
12307
  shlibpath_var=PATH
12308
  ;;
12309
12310
darwin* | rhapsody*)
12311
  dynamic_linker="$host_os dyld"
12312
  version_type=darwin
12313
  need_lib_prefix=no
12314
  need_version=no
12315
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12316
  soname_spec='${libname}${release}${major}$shared_ext'
12317
  shlibpath_overrides_runpath=yes
12318
  shlibpath_var=DYLD_LIBRARY_PATH
12319
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12320
12321
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12322
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12323
  ;;
12324
12325
dgux*)
12326
  version_type=linux
12327
  need_lib_prefix=no
12328
  need_version=no
12329
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12330
  soname_spec='${libname}${release}${shared_ext}$major'
12331
  shlibpath_var=LD_LIBRARY_PATH
12332
  ;;
12333
12334
freebsd1*)
12335
  dynamic_linker=no
12336
  ;;
12337
12338
freebsd* | dragonfly*)
12339
  # DragonFly does not have aout.  When/if they implement a new
12340
  # versioning mechanism, adjust this.
12341
  if test -x /usr/bin/objformat; then
12342
    objformat=`/usr/bin/objformat`
12343
  else
12344
    case $host_os in
12345
    freebsd[123]*) objformat=aout ;;
12346
    *) objformat=elf ;;
12347
    esac
12348
  fi
12349
  version_type=freebsd-$objformat
12350
  case $version_type in
12351
    freebsd-elf*)
12352
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12353
      need_version=no
12354
      need_lib_prefix=no
12355
      ;;
12356
    freebsd-*)
12357
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12358
      need_version=yes
12359
      ;;
12360
  esac
12361
  shlibpath_var=LD_LIBRARY_PATH
12362
  case $host_os in
12363
  freebsd2*)
12364
    shlibpath_overrides_runpath=yes
12365
    ;;
12366
  freebsd3.[01]* | freebsdelf3.[01]*)
12367
    shlibpath_overrides_runpath=yes
12368
    hardcode_into_libs=yes
12369
    ;;
12370
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12371
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12372
    shlibpath_overrides_runpath=no
12373
    hardcode_into_libs=yes
12374
    ;;
12375
  *) # from 4.6 on, and DragonFly
12376
    shlibpath_overrides_runpath=yes
12377
    hardcode_into_libs=yes
12378
    ;;
12379
  esac
12380
  ;;
12381
12382
gnu*)
12383
  version_type=linux
12384
  need_lib_prefix=no
12385
  need_version=no
12386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12387
  soname_spec='${libname}${release}${shared_ext}$major'
12388
  shlibpath_var=LD_LIBRARY_PATH
12389
  hardcode_into_libs=yes
12390
  ;;
12391
12392
hpux9* | hpux10* | hpux11*)
12393
  # Give a soname corresponding to the major version so that dld.sl refuses to
12394
  # link against other versions.
12395
  version_type=sunos
12396
  need_lib_prefix=no
12397
  need_version=no
12398
  case $host_cpu in
12399
  ia64*)
12400
    shrext_cmds='.so'
12401
    hardcode_into_libs=yes
12402
    dynamic_linker="$host_os dld.so"
12403
    shlibpath_var=LD_LIBRARY_PATH
12404
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12405
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406
    soname_spec='${libname}${release}${shared_ext}$major'
12407
    if test "X$HPUX_IA64_MODE" = X32; then
12408
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12409
    else
12410
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12411
    fi
12412
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12413
    ;;
12414
   hppa*64*)
12415
     shrext_cmds='.sl'
12416
     hardcode_into_libs=yes
12417
     dynamic_linker="$host_os dld.sl"
12418
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12419
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12420
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12421
     soname_spec='${libname}${release}${shared_ext}$major'
12422
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12423
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12424
     ;;
12425
   *)
12426
    shrext_cmds='.sl'
12427
    dynamic_linker="$host_os dld.sl"
12428
    shlibpath_var=SHLIB_PATH
12429
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12430
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431
    soname_spec='${libname}${release}${shared_ext}$major'
12432
    ;;
12433
  esac
12434
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12435
  postinstall_cmds='chmod 555 $lib'
12436
  ;;
12437
12438
interix[3-9]*)
12439
  version_type=linux
12440
  need_lib_prefix=no
12441
  need_version=no
12442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12443
  soname_spec='${libname}${release}${shared_ext}$major'
12444
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12445
  shlibpath_var=LD_LIBRARY_PATH
12446
  shlibpath_overrides_runpath=no
12447
  hardcode_into_libs=yes
12448
  ;;
12449
12450
irix5* | irix6* | nonstopux*)
12451
  case $host_os in
12452
    nonstopux*) version_type=nonstopux ;;
12453
    *)
12454
	if test "$lt_cv_prog_gnu_ld" = yes; then
12455
		version_type=linux
12456
	else
12457
		version_type=irix
12458
	fi ;;
12459
  esac
12460
  need_lib_prefix=no
12461
  need_version=no
12462
  soname_spec='${libname}${release}${shared_ext}$major'
12463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12464
  case $host_os in
12465
  irix5* | nonstopux*)
12466
    libsuff= shlibsuff=
12467
    ;;
12468
  *)
12469
    case $LD in # libtool.m4 will add one of these switches to LD
12470
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12471
      libsuff= shlibsuff= libmagic=32-bit;;
12472
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12473
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12474
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12475
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12476
    *) libsuff= shlibsuff= libmagic=never-match;;
12477
    esac
12478
    ;;
12479
  esac
12480
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12481
  shlibpath_overrides_runpath=no
12482
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12483
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12484
  hardcode_into_libs=yes
12485
  ;;
12486
12487
# No shared lib support for Linux oldld, aout, or coff.
12488
linux*oldld* | linux*aout* | linux*coff*)
12489
  dynamic_linker=no
12490
  ;;
12491
12492
# This must be Linux ELF.
12493
linux* | k*bsd*-gnu)
12494
  version_type=linux
12495
  need_lib_prefix=no
12496
  need_version=no
12497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12498
  soname_spec='${libname}${release}${shared_ext}$major'
12499
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12500
  shlibpath_var=LD_LIBRARY_PATH
12501
  shlibpath_overrides_runpath=no
12502
  # This implies no fast_install, which is unacceptable.
12503
  # Some rework will be needed to allow for fast_install
12504
  # before this can be enabled.
12505
  hardcode_into_libs=yes
12506
12507
  # Append ld.so.conf contents to the search path
12508
  if test -f /etc/ld.so.conf; then
12509
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12510
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12511
  fi
12512
12513
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12514
  # powerpc, because MkLinux only supported shared libraries with the
12515
  # GNU dynamic linker.  Since this was broken with cross compilers,
12516
  # most powerpc-linux boxes support dynamic linking these days and
12517
  # people can always --disable-shared, the test was removed, and we
12518
  # assume the GNU/Linux dynamic linker is in use.
12519
  dynamic_linker='GNU/Linux ld.so'
12520
  ;;
12521
12522
netbsdelf*-gnu)
12523
  version_type=linux
12524
  need_lib_prefix=no
12525
  need_version=no
12526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12527
  soname_spec='${libname}${release}${shared_ext}$major'
12528
  shlibpath_var=LD_LIBRARY_PATH
12529
  shlibpath_overrides_runpath=no
12530
  hardcode_into_libs=yes
12531
  dynamic_linker='NetBSD ld.elf_so'
12532
  ;;
12533
12534
netbsd*)
12535
  version_type=sunos
12536
  need_lib_prefix=no
12537
  need_version=no
12538
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12539
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12540
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12541
    dynamic_linker='NetBSD (a.out) ld.so'
12542
  else
12543
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12544
    soname_spec='${libname}${release}${shared_ext}$major'
12545
    dynamic_linker='NetBSD ld.elf_so'
12546
  fi
12547
  shlibpath_var=LD_LIBRARY_PATH
12548
  shlibpath_overrides_runpath=yes
12549
  hardcode_into_libs=yes
12550
  ;;
12551
12552
newsos6)
12553
  version_type=linux
12554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555
  shlibpath_var=LD_LIBRARY_PATH
12556
  shlibpath_overrides_runpath=yes
12557
  ;;
12558
12559
nto-qnx*)
12560
  version_type=linux
12561
  need_lib_prefix=no
12562
  need_version=no
12563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564
  soname_spec='${libname}${release}${shared_ext}$major'
12565
  shlibpath_var=LD_LIBRARY_PATH
12566
  shlibpath_overrides_runpath=yes
12567
  ;;
12568
12569
openbsd*)
12570
  version_type=sunos
12571
  sys_lib_dlsearch_path_spec="/usr/lib"
12572
  need_lib_prefix=no
12573
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12574
  case $host_os in
12575
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12576
    *)                         need_version=no  ;;
12577
  esac
12578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12579
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12580
  shlibpath_var=LD_LIBRARY_PATH
12581
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12582
    case $host_os in
12583
      openbsd2.[89] | openbsd2.[89].*)
12584
	shlibpath_overrides_runpath=no
12585
	;;
12586
      *)
12587
	shlibpath_overrides_runpath=yes
12588
	;;
12589
      esac
12590
  else
12591
    shlibpath_overrides_runpath=yes
12592
  fi
12593
  ;;
12594
12595
os2*)
12596
  libname_spec='$name'
12597
  shrext_cmds=".dll"
12598
  need_lib_prefix=no
12599
  library_names_spec='$libname${shared_ext} $libname.a'
12600
  dynamic_linker='OS/2 ld.exe'
12601
  shlibpath_var=LIBPATH
12602
  ;;
12603
12604
osf3* | osf4* | osf5*)
12605
  version_type=osf
12606
  need_lib_prefix=no
12607
  need_version=no
12608
  soname_spec='${libname}${release}${shared_ext}$major'
12609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610
  shlibpath_var=LD_LIBRARY_PATH
12611
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12612
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12613
  ;;
12614
12615
rdos*)
12616
  dynamic_linker=no
12617
  ;;
12618
12619
solaris*)
12620
  version_type=linux
12621
  need_lib_prefix=no
12622
  need_version=no
12623
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624
  soname_spec='${libname}${release}${shared_ext}$major'
12625
  shlibpath_var=LD_LIBRARY_PATH
12626
  shlibpath_overrides_runpath=yes
12627
  hardcode_into_libs=yes
12628
  # ldd complains unless libraries are executable
12629
  postinstall_cmds='chmod +x $lib'
12630
  ;;
12631
12632
sunos4*)
12633
  version_type=sunos
12634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12635
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12636
  shlibpath_var=LD_LIBRARY_PATH
12637
  shlibpath_overrides_runpath=yes
12638
  if test "$with_gnu_ld" = yes; then
12639
    need_lib_prefix=no
12640
  fi
12641
  need_version=yes
12642
  ;;
12643
12644
sysv4 | sysv4.3*)
12645
  version_type=linux
12646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12647
  soname_spec='${libname}${release}${shared_ext}$major'
12648
  shlibpath_var=LD_LIBRARY_PATH
12649
  case $host_vendor in
12650
    sni)
12651
      shlibpath_overrides_runpath=no
12652
      need_lib_prefix=no
12653
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12654
      runpath_var=LD_RUN_PATH
12655
      ;;
12656
    siemens)
12657
      need_lib_prefix=no
12658
      ;;
12659
    motorola)
12660
      need_lib_prefix=no
12661
      need_version=no
12662
      shlibpath_overrides_runpath=no
12663
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12664
      ;;
12665
  esac
12666
  ;;
12667
12668
sysv4*MP*)
12669
  if test -d /usr/nec ;then
12670
    version_type=linux
12671
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12672
    soname_spec='$libname${shared_ext}.$major'
12673
    shlibpath_var=LD_LIBRARY_PATH
12674
  fi
12675
  ;;
12676
12677
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12678
  version_type=freebsd-elf
12679
  need_lib_prefix=no
12680
  need_version=no
12681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12682
  soname_spec='${libname}${release}${shared_ext}$major'
12683
  shlibpath_var=LD_LIBRARY_PATH
12684
  hardcode_into_libs=yes
12685
  if test "$with_gnu_ld" = yes; then
12686
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12687
    shlibpath_overrides_runpath=no
12688
  else
12689
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12690
    shlibpath_overrides_runpath=yes
12691
    case $host_os in
12692
      sco3.2v5*)
12693
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12694
	;;
12695
    esac
12696
  fi
12697
  sys_lib_dlsearch_path_spec='/usr/lib'
12698
  ;;
12699
12700
uts4*)
12701
  version_type=linux
12702
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12703
  soname_spec='${libname}${release}${shared_ext}$major'
12704
  shlibpath_var=LD_LIBRARY_PATH
12705
  ;;
12706
12707
*)
12708
  dynamic_linker=no
12709
  ;;
12710
esac
12711
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12712
echo "${ECHO_T}$dynamic_linker" >&6; }
12713
test "$dynamic_linker" = no && can_build_shared=no
12714
12715
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12716
  echo $ECHO_N "(cached) $ECHO_C" >&6
12717
else
12718
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12719
fi
12720
12721
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12722
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12723
  echo $ECHO_N "(cached) $ECHO_C" >&6
12724
else
12725
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12726
fi
12727
12728
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12729
12730
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12731
if test "$GCC" = yes; then
12732
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12733
fi
12734
12735
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12736
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12737
hardcode_action=
12738
if test -n "$hardcode_libdir_flag_spec" || \
12739
   test -n "$runpath_var" || \
12740
   test "X$hardcode_automatic" = "Xyes" ; then
12741
12742
  # We can hardcode non-existant directories.
12743
  if test "$hardcode_direct" != no &&
12744
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12745
     # have to relink, otherwise we might link with an installed library
12746
     # when we should be linking with a yet-to-be-installed one
12747
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12748
     test "$hardcode_minus_L" != no; then
12749
    # Linking always hardcodes the temporary library directory.
12750
    hardcode_action=relink
12751
  else
12752
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12753
    hardcode_action=immediate
12754
  fi
12755
else
12756
  # We cannot hardcode anything, or else we can only hardcode existing
12757
  # directories.
12758
  hardcode_action=unsupported
12759
fi
12760
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
12761
echo "${ECHO_T}$hardcode_action" >&6; }
12762
12763
if test "$hardcode_action" = relink; then
12764
  # Fast installation is not supported
12765
  enable_fast_install=no
12766
elif test "$shlibpath_overrides_runpath" = yes ||
12767
     test "$enable_shared" = no; then
12768
  # Fast installation is not necessary
12769
  enable_fast_install=needless
12770
fi
12771
12772
striplib=
12773
old_striplib=
12774
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12775
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12776
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12777
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12778
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12779
  { echo "$as_me:$LINENO: result: yes" >&5
12780
echo "${ECHO_T}yes" >&6; }
12781
else
12782
# FIXME - insert some real tests, host_os isn't really good enough
12783
  case $host_os in
12784
   darwin*)
12785
       if test -n "$STRIP" ; then
12786
         striplib="$STRIP -x"
12787
         old_striplib="$STRIP -S"
12788
         { echo "$as_me:$LINENO: result: yes" >&5
12789
echo "${ECHO_T}yes" >&6; }
12790
       else
12791
  { echo "$as_me:$LINENO: result: no" >&5
12792
echo "${ECHO_T}no" >&6; }
12793
fi
12794
       ;;
12795
   *)
12796
  { echo "$as_me:$LINENO: result: no" >&5
12797
echo "${ECHO_T}no" >&6; }
12798
    ;;
12799
  esac
12800
fi
12801
12802
if test "x$enable_dlopen" != xyes; then
12803
  enable_dlopen=unknown
12804
  enable_dlopen_self=unknown
12805
  enable_dlopen_self_static=unknown
12806
else
12807
  lt_cv_dlopen=no
12808
  lt_cv_dlopen_libs=
12809
12810
  case $host_os in
12811
  beos*)
12812
    lt_cv_dlopen="load_add_on"
12813
    lt_cv_dlopen_libs=
12814
    lt_cv_dlopen_self=yes
12815
    ;;
12816
12817
  mingw* | pw32*)
12818
    lt_cv_dlopen="LoadLibrary"
12819
    lt_cv_dlopen_libs=
12820
   ;;
12821
12822
  cygwin*)
12823
    lt_cv_dlopen="dlopen"
12824
    lt_cv_dlopen_libs=
12825
   ;;
12826
12827
  darwin*)
12828
  # if libdl is installed we need to link against it
12829
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12830
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12831
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12832
  echo $ECHO_N "(cached) $ECHO_C" >&6
12833
else
12834
  ac_check_lib_save_LIBS=$LIBS
12835
LIBS="-ldl  $LIBS"
12836
cat >conftest.$ac_ext <<_ACEOF
12837
/* confdefs.h.  */
12838
_ACEOF
12839
cat confdefs.h >>conftest.$ac_ext
12840
cat >>conftest.$ac_ext <<_ACEOF
12841
/* end confdefs.h.  */
12842
12843
/* Override any GCC internal prototype to avoid an error.
12844
   Use char because int might match the return type of a GCC
12845
   builtin and then its argument prototype would still apply.  */
12846
#ifdef __cplusplus
12847
extern "C"
12848
#endif
12849
char dlopen ();
12850
int
12851
main ()
12852
{
12853
return dlopen ();
12854
  ;
12855
  return 0;
12856
}
12857
_ACEOF
12858
rm -f conftest.$ac_objext conftest$ac_exeext
12859
if { (ac_try="$ac_link"
12860
case "(($ac_try" in
12861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862
  *) ac_try_echo=$ac_try;;
12863
esac
12864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865
  (eval "$ac_link") 2>conftest.er1
12866
  ac_status=$?
12867
  grep -v '^ *+' conftest.er1 >conftest.err
12868
  rm -f conftest.er1
12869
  cat conftest.err >&5
12870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871
  (exit $ac_status); } && {
12872
	 test -z "$ac_c_werror_flag" ||
12873
	 test ! -s conftest.err
12874
       } && test -s conftest$ac_exeext &&
12875
       $as_test_x conftest$ac_exeext; then
12876
  ac_cv_lib_dl_dlopen=yes
12877
else
12878
  echo "$as_me: failed program was:" >&5
12879
sed 's/^/| /' conftest.$ac_ext >&5
12880
12881
	ac_cv_lib_dl_dlopen=no
12882
fi
12883
12884
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12885
      conftest$ac_exeext conftest.$ac_ext
12886
LIBS=$ac_check_lib_save_LIBS
12887
fi
12888
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12889
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12890
if test $ac_cv_lib_dl_dlopen = yes; then
12891
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12892
else
12893
12894
    lt_cv_dlopen="dyld"
12895
    lt_cv_dlopen_libs=
12896
    lt_cv_dlopen_self=yes
12897
12898
fi
12899
12900
   ;;
12901
12902
  *)
12903
    { echo "$as_me:$LINENO: checking for shl_load" >&5
12904
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12905
if test "${ac_cv_func_shl_load+set}" = set; then
12906
  echo $ECHO_N "(cached) $ECHO_C" >&6
12907
else
12908
  cat >conftest.$ac_ext <<_ACEOF
12909
/* confdefs.h.  */
12910
_ACEOF
12911
cat confdefs.h >>conftest.$ac_ext
12912
cat >>conftest.$ac_ext <<_ACEOF
12913
/* end confdefs.h.  */
12914
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12915
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12916
#define shl_load innocuous_shl_load
12917
12918
/* System header to define __stub macros and hopefully few prototypes,
12919
    which can conflict with char shl_load (); below.
12920
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12921
    <limits.h> exists even on freestanding compilers.  */
12922
12923
#ifdef __STDC__
12924
# include <limits.h>
12925
#else
12926
# include <assert.h>
12927
#endif
12928
12929
#undef shl_load
12930
12931
/* Override any GCC internal prototype to avoid an error.
12932
   Use char because int might match the return type of a GCC
12933
   builtin and then its argument prototype would still apply.  */
12934
#ifdef __cplusplus
12935
extern "C"
12936
#endif
12937
char shl_load ();
12938
/* The GNU C library defines this for functions which it implements
12939
    to always fail with ENOSYS.  Some functions are actually named
12940
    something starting with __ and the normal name is an alias.  */
12941
#if defined __stub_shl_load || defined __stub___shl_load
12942
choke me
12943
#endif
12944
12945
int
12946
main ()
12947
{
12948
return shl_load ();
12949
  ;
12950
  return 0;
12951
}
12952
_ACEOF
12953
rm -f conftest.$ac_objext conftest$ac_exeext
12954
if { (ac_try="$ac_link"
12955
case "(($ac_try" in
12956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957
  *) ac_try_echo=$ac_try;;
12958
esac
12959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960
  (eval "$ac_link") 2>conftest.er1
12961
  ac_status=$?
12962
  grep -v '^ *+' conftest.er1 >conftest.err
12963
  rm -f conftest.er1
12964
  cat conftest.err >&5
12965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966
  (exit $ac_status); } && {
12967
	 test -z "$ac_c_werror_flag" ||
12968
	 test ! -s conftest.err
12969
       } && test -s conftest$ac_exeext &&
12970
       $as_test_x conftest$ac_exeext; then
12971
  ac_cv_func_shl_load=yes
12972
else
12973
  echo "$as_me: failed program was:" >&5
12974
sed 's/^/| /' conftest.$ac_ext >&5
12975
12976
	ac_cv_func_shl_load=no
12977
fi
12978
12979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12980
      conftest$ac_exeext conftest.$ac_ext
12981
fi
12982
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12983
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12984
if test $ac_cv_func_shl_load = yes; then
12985
  lt_cv_dlopen="shl_load"
12986
else
12987
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12988
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12989
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12990
  echo $ECHO_N "(cached) $ECHO_C" >&6
12991
else
12992
  ac_check_lib_save_LIBS=$LIBS
12993
LIBS="-ldld  $LIBS"
12994
cat >conftest.$ac_ext <<_ACEOF
12995
/* confdefs.h.  */
12996
_ACEOF
12997
cat confdefs.h >>conftest.$ac_ext
12998
cat >>conftest.$ac_ext <<_ACEOF
12999
/* end confdefs.h.  */
13000
13001
/* Override any GCC internal prototype to avoid an error.
13002
   Use char because int might match the return type of a GCC
13003
   builtin and then its argument prototype would still apply.  */
13004
#ifdef __cplusplus
13005
extern "C"
13006
#endif
13007
char shl_load ();
13008
int
13009
main ()
13010
{
13011
return shl_load ();
13012
  ;
13013
  return 0;
13014
}
13015
_ACEOF
13016
rm -f conftest.$ac_objext conftest$ac_exeext
13017
if { (ac_try="$ac_link"
13018
case "(($ac_try" in
13019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020
  *) ac_try_echo=$ac_try;;
13021
esac
13022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023
  (eval "$ac_link") 2>conftest.er1
13024
  ac_status=$?
13025
  grep -v '^ *+' conftest.er1 >conftest.err
13026
  rm -f conftest.er1
13027
  cat conftest.err >&5
13028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029
  (exit $ac_status); } && {
13030
	 test -z "$ac_c_werror_flag" ||
13031
	 test ! -s conftest.err
13032
       } && test -s conftest$ac_exeext &&
13033
       $as_test_x conftest$ac_exeext; then
13034
  ac_cv_lib_dld_shl_load=yes
13035
else
13036
  echo "$as_me: failed program was:" >&5
13037
sed 's/^/| /' conftest.$ac_ext >&5
13038
13039
	ac_cv_lib_dld_shl_load=no
13040
fi
13041
13042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043
      conftest$ac_exeext conftest.$ac_ext
13044
LIBS=$ac_check_lib_save_LIBS
13045
fi
13046
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13047
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13048
if test $ac_cv_lib_dld_shl_load = yes; then
13049
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13050
else
13051
  { echo "$as_me:$LINENO: checking for dlopen" >&5
13052
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13053
if test "${ac_cv_func_dlopen+set}" = set; then
13054
  echo $ECHO_N "(cached) $ECHO_C" >&6
13055
else
13056
  cat >conftest.$ac_ext <<_ACEOF
13057
/* confdefs.h.  */
13058
_ACEOF
13059
cat confdefs.h >>conftest.$ac_ext
13060
cat >>conftest.$ac_ext <<_ACEOF
13061
/* end confdefs.h.  */
13062
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13063
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13064
#define dlopen innocuous_dlopen
13065
13066
/* System header to define __stub macros and hopefully few prototypes,
13067
    which can conflict with char dlopen (); below.
13068
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13069
    <limits.h> exists even on freestanding compilers.  */
13070
13071
#ifdef __STDC__
13072
# include <limits.h>
13073
#else
13074
# include <assert.h>
13075
#endif
13076
13077
#undef dlopen
13078
13079
/* Override any GCC internal prototype to avoid an error.
13080
   Use char because int might match the return type of a GCC
13081
   builtin and then its argument prototype would still apply.  */
13082
#ifdef __cplusplus
13083
extern "C"
13084
#endif
13085
char dlopen ();
13086
/* The GNU C library defines this for functions which it implements
13087
    to always fail with ENOSYS.  Some functions are actually named
13088
    something starting with __ and the normal name is an alias.  */
13089
#if defined __stub_dlopen || defined __stub___dlopen
13090
choke me
13091
#endif
13092
13093
int
13094
main ()
13095
{
13096
return dlopen ();
13097
  ;
13098
  return 0;
13099
}
13100
_ACEOF
13101
rm -f conftest.$ac_objext conftest$ac_exeext
13102
if { (ac_try="$ac_link"
13103
case "(($ac_try" in
13104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105
  *) ac_try_echo=$ac_try;;
13106
esac
13107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108
  (eval "$ac_link") 2>conftest.er1
13109
  ac_status=$?
13110
  grep -v '^ *+' conftest.er1 >conftest.err
13111
  rm -f conftest.er1
13112
  cat conftest.err >&5
13113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114
  (exit $ac_status); } && {
13115
	 test -z "$ac_c_werror_flag" ||
13116
	 test ! -s conftest.err
13117
       } && test -s conftest$ac_exeext &&
13118
       $as_test_x conftest$ac_exeext; then
13119
  ac_cv_func_dlopen=yes
13120
else
13121
  echo "$as_me: failed program was:" >&5
13122
sed 's/^/| /' conftest.$ac_ext >&5
13123
13124
	ac_cv_func_dlopen=no
13125
fi
13126
13127
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128
      conftest$ac_exeext conftest.$ac_ext
13129
fi
13130
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13131
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13132
if test $ac_cv_func_dlopen = yes; then
13133
  lt_cv_dlopen="dlopen"
13134
else
13135
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13136
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13137
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13138
  echo $ECHO_N "(cached) $ECHO_C" >&6
13139
else
13140
  ac_check_lib_save_LIBS=$LIBS
13141
LIBS="-ldl  $LIBS"
13142
cat >conftest.$ac_ext <<_ACEOF
13143
/* confdefs.h.  */
13144
_ACEOF
13145
cat confdefs.h >>conftest.$ac_ext
13146
cat >>conftest.$ac_ext <<_ACEOF
13147
/* end confdefs.h.  */
13148
13149
/* Override any GCC internal prototype to avoid an error.
13150
   Use char because int might match the return type of a GCC
13151
   builtin and then its argument prototype would still apply.  */
13152
#ifdef __cplusplus
13153
extern "C"
13154
#endif
13155
char dlopen ();
13156
int
13157
main ()
13158
{
13159
return dlopen ();
13160
  ;
13161
  return 0;
13162
}
13163
_ACEOF
13164
rm -f conftest.$ac_objext conftest$ac_exeext
13165
if { (ac_try="$ac_link"
13166
case "(($ac_try" in
13167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168
  *) ac_try_echo=$ac_try;;
13169
esac
13170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171
  (eval "$ac_link") 2>conftest.er1
13172
  ac_status=$?
13173
  grep -v '^ *+' conftest.er1 >conftest.err
13174
  rm -f conftest.er1
13175
  cat conftest.err >&5
13176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177
  (exit $ac_status); } && {
13178
	 test -z "$ac_c_werror_flag" ||
13179
	 test ! -s conftest.err
13180
       } && test -s conftest$ac_exeext &&
13181
       $as_test_x conftest$ac_exeext; then
13182
  ac_cv_lib_dl_dlopen=yes
13183
else
13184
  echo "$as_me: failed program was:" >&5
13185
sed 's/^/| /' conftest.$ac_ext >&5
13186
13187
	ac_cv_lib_dl_dlopen=no
13188
fi
13189
13190
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13191
      conftest$ac_exeext conftest.$ac_ext
13192
LIBS=$ac_check_lib_save_LIBS
13193
fi
13194
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13195
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13196
if test $ac_cv_lib_dl_dlopen = yes; then
13197
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13198
else
13199
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13200
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13201
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13202
  echo $ECHO_N "(cached) $ECHO_C" >&6
13203
else
13204
  ac_check_lib_save_LIBS=$LIBS
13205
LIBS="-lsvld  $LIBS"
13206
cat >conftest.$ac_ext <<_ACEOF
13207
/* confdefs.h.  */
13208
_ACEOF
13209
cat confdefs.h >>conftest.$ac_ext
13210
cat >>conftest.$ac_ext <<_ACEOF
13211
/* end confdefs.h.  */
13212
13213
/* Override any GCC internal prototype to avoid an error.
13214
   Use char because int might match the return type of a GCC
13215
   builtin and then its argument prototype would still apply.  */
13216
#ifdef __cplusplus
13217
extern "C"
13218
#endif
13219
char dlopen ();
13220
int
13221
main ()
13222
{
13223
return dlopen ();
13224
  ;
13225
  return 0;
13226
}
13227
_ACEOF
13228
rm -f conftest.$ac_objext conftest$ac_exeext
13229
if { (ac_try="$ac_link"
13230
case "(($ac_try" in
13231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232
  *) ac_try_echo=$ac_try;;
13233
esac
13234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235
  (eval "$ac_link") 2>conftest.er1
13236
  ac_status=$?
13237
  grep -v '^ *+' conftest.er1 >conftest.err
13238
  rm -f conftest.er1
13239
  cat conftest.err >&5
13240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241
  (exit $ac_status); } && {
13242
	 test -z "$ac_c_werror_flag" ||
13243
	 test ! -s conftest.err
13244
       } && test -s conftest$ac_exeext &&
13245
       $as_test_x conftest$ac_exeext; then
13246
  ac_cv_lib_svld_dlopen=yes
13247
else
13248
  echo "$as_me: failed program was:" >&5
13249
sed 's/^/| /' conftest.$ac_ext >&5
13250
13251
	ac_cv_lib_svld_dlopen=no
13252
fi
13253
13254
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255
      conftest$ac_exeext conftest.$ac_ext
13256
LIBS=$ac_check_lib_save_LIBS
13257
fi
13258
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13259
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13260
if test $ac_cv_lib_svld_dlopen = yes; then
13261
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13262
else
13263
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13264
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13265
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13266
  echo $ECHO_N "(cached) $ECHO_C" >&6
13267
else
13268
  ac_check_lib_save_LIBS=$LIBS
13269
LIBS="-ldld  $LIBS"
13270
cat >conftest.$ac_ext <<_ACEOF
13271
/* confdefs.h.  */
13272
_ACEOF
13273
cat confdefs.h >>conftest.$ac_ext
13274
cat >>conftest.$ac_ext <<_ACEOF
13275
/* end confdefs.h.  */
13276
13277
/* Override any GCC internal prototype to avoid an error.
13278
   Use char because int might match the return type of a GCC
13279
   builtin and then its argument prototype would still apply.  */
13280
#ifdef __cplusplus
13281
extern "C"
13282
#endif
13283
char dld_link ();
13284
int
13285
main ()
13286
{
13287
return dld_link ();
13288
  ;
13289
  return 0;
13290
}
13291
_ACEOF
13292
rm -f conftest.$ac_objext conftest$ac_exeext
13293
if { (ac_try="$ac_link"
13294
case "(($ac_try" in
13295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296
  *) ac_try_echo=$ac_try;;
13297
esac
13298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299
  (eval "$ac_link") 2>conftest.er1
13300
  ac_status=$?
13301
  grep -v '^ *+' conftest.er1 >conftest.err
13302
  rm -f conftest.er1
13303
  cat conftest.err >&5
13304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305
  (exit $ac_status); } && {
13306
	 test -z "$ac_c_werror_flag" ||
13307
	 test ! -s conftest.err
13308
       } && test -s conftest$ac_exeext &&
13309
       $as_test_x conftest$ac_exeext; then
13310
  ac_cv_lib_dld_dld_link=yes
13311
else
13312
  echo "$as_me: failed program was:" >&5
13313
sed 's/^/| /' conftest.$ac_ext >&5
13314
13315
	ac_cv_lib_dld_dld_link=no
13316
fi
13317
13318
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13319
      conftest$ac_exeext conftest.$ac_ext
13320
LIBS=$ac_check_lib_save_LIBS
13321
fi
13322
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13323
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13324
if test $ac_cv_lib_dld_dld_link = yes; then
13325
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13326
fi
13327
13328
13329
fi
13330
13331
13332
fi
13333
13334
13335
fi
13336
13337
13338
fi
13339
13340
13341
fi
13342
13343
    ;;
13344
  esac
13345
13346
  if test "x$lt_cv_dlopen" != xno; then
13347
    enable_dlopen=yes
13348
  else
13349
    enable_dlopen=no
13350
  fi
13351
13352
  case $lt_cv_dlopen in
13353
  dlopen)
13354
    save_CPPFLAGS="$CPPFLAGS"
13355
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13356
13357
    save_LDFLAGS="$LDFLAGS"
13358
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13359
13360
    save_LIBS="$LIBS"
13361
    LIBS="$lt_cv_dlopen_libs $LIBS"
13362
13363
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13364
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13365
if test "${lt_cv_dlopen_self+set}" = set; then
13366
  echo $ECHO_N "(cached) $ECHO_C" >&6
13367
else
13368
  	  if test "$cross_compiling" = yes; then :
13369
  lt_cv_dlopen_self=cross
13370
else
13371
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13372
  lt_status=$lt_dlunknown
13373
  cat > conftest.$ac_ext <<EOF
13374
#line 13374 "configure"
13375
#include "confdefs.h"
13376
13377
#if HAVE_DLFCN_H
13378
#include <dlfcn.h>
13379
#endif
13380
13381
#include <stdio.h>
13382
13383
#ifdef RTLD_GLOBAL
13384
#  define LT_DLGLOBAL		RTLD_GLOBAL
13385
#else
13386
#  ifdef DL_GLOBAL
13387
#    define LT_DLGLOBAL		DL_GLOBAL
13388
#  else
13389
#    define LT_DLGLOBAL		0
13390
#  endif
13391
#endif
13392
13393
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13394
   find out it does not work in some platform. */
13395
#ifndef LT_DLLAZY_OR_NOW
13396
#  ifdef RTLD_LAZY
13397
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13398
#  else
13399
#    ifdef DL_LAZY
13400
#      define LT_DLLAZY_OR_NOW		DL_LAZY
13401
#    else
13402
#      ifdef RTLD_NOW
13403
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13404
#      else
13405
#        ifdef DL_NOW
13406
#          define LT_DLLAZY_OR_NOW	DL_NOW
13407
#        else
13408
#          define LT_DLLAZY_OR_NOW	0
13409
#        endif
13410
#      endif
13411
#    endif
13412
#  endif
13413
#endif
13414
13415
#ifdef __cplusplus
13416
extern "C" void exit (int);
13417
#endif
13418
13419
void fnord() { int i=42;}
13420
int main ()
13421
{
13422
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13423
  int status = $lt_dlunknown;
13424
13425
  if (self)
13426
    {
13427
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13428
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13429
      /* dlclose (self); */
13430
    }
13431
  else
13432
    puts (dlerror ());
13433
13434
    exit (status);
13435
}
13436
EOF
13437
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438
  (eval $ac_link) 2>&5
13439
  ac_status=$?
13440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13442
    (./conftest; exit; ) >&5 2>/dev/null
13443
    lt_status=$?
13444
    case x$lt_status in
13445
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13446
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13447
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13448
    esac
13449
  else :
13450
    # compilation failed
13451
    lt_cv_dlopen_self=no
13452
  fi
13453
fi
13454
rm -fr conftest*
13455
13456
13457
fi
13458
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13459
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13460
13461
    if test "x$lt_cv_dlopen_self" = xyes; then
13462
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13463
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13464
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13465
if test "${lt_cv_dlopen_self_static+set}" = set; then
13466
  echo $ECHO_N "(cached) $ECHO_C" >&6
13467
else
13468
  	  if test "$cross_compiling" = yes; then :
13469
  lt_cv_dlopen_self_static=cross
13470
else
13471
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13472
  lt_status=$lt_dlunknown
13473
  cat > conftest.$ac_ext <<EOF
13474
#line 13474 "configure"
13475
#include "confdefs.h"
13476
13477
#if HAVE_DLFCN_H
13478
#include <dlfcn.h>
13479
#endif
13480
13481
#include <stdio.h>
13482
13483
#ifdef RTLD_GLOBAL
13484
#  define LT_DLGLOBAL		RTLD_GLOBAL
13485
#else
13486
#  ifdef DL_GLOBAL
13487
#    define LT_DLGLOBAL		DL_GLOBAL
13488
#  else
13489
#    define LT_DLGLOBAL		0
13490
#  endif
13491
#endif
13492
13493
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13494
   find out it does not work in some platform. */
13495
#ifndef LT_DLLAZY_OR_NOW
13496
#  ifdef RTLD_LAZY
13497
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13498
#  else
13499
#    ifdef DL_LAZY
13500
#      define LT_DLLAZY_OR_NOW		DL_LAZY
13501
#    else
13502
#      ifdef RTLD_NOW
13503
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13504
#      else
13505
#        ifdef DL_NOW
13506
#          define LT_DLLAZY_OR_NOW	DL_NOW
13507
#        else
13508
#          define LT_DLLAZY_OR_NOW	0
13509
#        endif
13510
#      endif
13511
#    endif
13512
#  endif
13513
#endif
13514
13515
#ifdef __cplusplus
13516
extern "C" void exit (int);
13517
#endif
13518
13519
void fnord() { int i=42;}
13520
int main ()
13521
{
13522
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13523
  int status = $lt_dlunknown;
13524
13525
  if (self)
13526
    {
13527
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13528
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13529
      /* dlclose (self); */
13530
    }
13531
  else
13532
    puts (dlerror ());
13533
13534
    exit (status);
13535
}
13536
EOF
13537
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538
  (eval $ac_link) 2>&5
13539
  ac_status=$?
13540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13542
    (./conftest; exit; ) >&5 2>/dev/null
13543
    lt_status=$?
13544
    case x$lt_status in
13545
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13546
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13547
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13548
    esac
13549
  else :
13550
    # compilation failed
13551
    lt_cv_dlopen_self_static=no
13552
  fi
13553
fi
13554
rm -fr conftest*
13555
13556
13557
fi
13558
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13559
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13560
    fi
13561
13562
    CPPFLAGS="$save_CPPFLAGS"
13563
    LDFLAGS="$save_LDFLAGS"
13564
    LIBS="$save_LIBS"
13565
    ;;
13566
  esac
13567
13568
  case $lt_cv_dlopen_self in
13569
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13570
  *) enable_dlopen_self=unknown ;;
13571
  esac
13572
13573
  case $lt_cv_dlopen_self_static in
13574
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13575
  *) enable_dlopen_self_static=unknown ;;
13576
  esac
13577
fi
13578
13579
13580
# Report which library types will actually be built
13581
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13582
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13583
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13584
echo "${ECHO_T}$can_build_shared" >&6; }
13585
13586
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13587
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13588
test "$can_build_shared" = "no" && enable_shared=no
13589
13590
# On AIX, shared libraries and static libraries use the same namespace, and
13591
# are all built from PIC.
13592
case $host_os in
13593
aix3*)
13594
  test "$enable_shared" = yes && enable_static=no
13595
  if test -n "$RANLIB"; then
13596
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13597
    postinstall_cmds='$RANLIB $lib'
13598
  fi
13599
  ;;
13600
13601
aix[4-9]*)
13602
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13603
    test "$enable_shared" = yes && enable_static=no
13604
  fi
13605
    ;;
13606
esac
13607
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13608
echo "${ECHO_T}$enable_shared" >&6; }
13609
13610
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13611
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13612
# Make sure either enable_shared or enable_static is yes.
13613
test "$enable_shared" = yes || enable_static=yes
13614
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13615
echo "${ECHO_T}$enable_static" >&6; }
13616
13617
# The else clause should only fire when bootstrapping the
13618
# libtool distribution, otherwise you forgot to ship ltmain.sh
13619
# with your package, and you will get complaints that there are
13620
# no rules to generate ltmain.sh.
13621
if test -f "$ltmain"; then
13622
  # See if we are running on zsh, and set the options which allow our commands through
13623
  # without removal of \ escapes.
13624
  if test -n "${ZSH_VERSION+set}" ; then
13625
    setopt NO_GLOB_SUBST
13626
  fi
13627
  # Now quote all the things that may contain metacharacters while being
13628
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13629
  # variables and quote the copies for generation of the libtool script.
13630
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13631
    SED SHELL STRIP \
13632
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13633
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13634
    deplibs_check_method reload_flag reload_cmds need_locks \
13635
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13636
    lt_cv_sys_global_symbol_to_c_name_address \
13637
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13638
    old_postinstall_cmds old_postuninstall_cmds \
13639
    compiler \
13640
    CC \
13641
    LD \
13642
    lt_prog_compiler_wl \
13643
    lt_prog_compiler_pic \
13644
    lt_prog_compiler_static \
13645
    lt_prog_compiler_no_builtin_flag \
13646
    export_dynamic_flag_spec \
13647
    thread_safe_flag_spec \
13648
    whole_archive_flag_spec \
13649
    enable_shared_with_static_runtimes \
13650
    old_archive_cmds \
13651
    old_archive_from_new_cmds \
13652
    predep_objects \
13653
    postdep_objects \
13654
    predeps \
13655
    postdeps \
13656
    compiler_lib_search_path \
13657
    compiler_lib_search_dirs \
13658
    archive_cmds \
13659
    archive_expsym_cmds \
13660
    postinstall_cmds \
13661
    postuninstall_cmds \
13662
    old_archive_from_expsyms_cmds \
13663
    allow_undefined_flag \
13664
    no_undefined_flag \
13665
    export_symbols_cmds \
13666
    hardcode_libdir_flag_spec \
13667
    hardcode_libdir_flag_spec_ld \
13668
    hardcode_libdir_separator \
13669
    hardcode_automatic \
13670
    module_cmds \
13671
    module_expsym_cmds \
13672
    lt_cv_prog_compiler_c_o \
13673
    fix_srcfile_path \
13674
    exclude_expsyms \
13675
    include_expsyms; do
13676
13677
    case $var in
13678
    old_archive_cmds | \
13679
    old_archive_from_new_cmds | \
13680
    archive_cmds | \
13681
    archive_expsym_cmds | \
13682
    module_cmds | \
13683
    module_expsym_cmds | \
13684
    old_archive_from_expsyms_cmds | \
13685
    export_symbols_cmds | \
13686
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13687
    postinstall_cmds | postuninstall_cmds | \
13688
    old_postinstall_cmds | old_postuninstall_cmds | \
13689
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13690
      # Double-quote double-evaled strings.
13691
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13692
      ;;
13693
    *)
13694
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13695
      ;;
13696
    esac
13697
  done
13698
13699
  case $lt_echo in
13700
  *'\$0 --fallback-echo"')
13701
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13702
    ;;
13703
  esac
13704
13705
cfgfile="${ofile}T"
13706
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13707
  $rm -f "$cfgfile"
13708
  { echo "$as_me:$LINENO: creating $ofile" >&5
13709
echo "$as_me: creating $ofile" >&6;}
13710
13711
  cat <<__EOF__ >> "$cfgfile"
13712
#! $SHELL
13713
13714
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13715
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13716
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13717
#
13718
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
13719
# Free Software Foundation, Inc.
13720
#
13721
# This file is part of GNU Libtool:
13722
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13723
#
13724
# This program is free software; you can redistribute it and/or modify
13725
# it under the terms of the GNU General Public License as published by
13726
# the Free Software Foundation; either version 2 of the License, or
13727
# (at your option) any later version.
13728
#
13729
# This program is distributed in the hope that it will be useful, but
13730
# WITHOUT ANY WARRANTY; without even the implied warranty of
13731
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13732
# General Public License for more details.
13733
#
13734
# You should have received a copy of the GNU General Public License
13735
# along with this program; if not, write to the Free Software
13736
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13737
#
13738
# As a special exception to the GNU General Public License, if you
13739
# distribute this file as part of a program that contains a
13740
# configuration script generated by Autoconf, you may include it under
13741
# the same distribution terms that you use for the rest of that program.
13742
13743
# A sed program that does not truncate output.
13744
SED=$lt_SED
13745
13746
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13747
Xsed="$SED -e 1s/^X//"
13748
13749
# The HP-UX ksh and POSIX shell print the target directory to stdout
13750
# if CDPATH is set.
13751
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13752
13753
# The names of the tagged configurations supported by this script.
13754
available_tags=
13755
13756
# ### BEGIN LIBTOOL CONFIG
13757
13758
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13759
13760
# Shell to use when invoking shell scripts.
13761
SHELL=$lt_SHELL
13762
13763
# Whether or not to build shared libraries.
13764
build_libtool_libs=$enable_shared
13765
13766
# Whether or not to build static libraries.
13767
build_old_libs=$enable_static
13768
13769
# Whether or not to add -lc for building shared libraries.
13770
build_libtool_need_lc=$archive_cmds_need_lc
13771
13772
# Whether or not to disallow shared libs when runtime libs are static
13773
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13774
13775
# Whether or not to optimize for fast installation.
13776
fast_install=$enable_fast_install
13777
13778
# The host system.
13779
host_alias=$host_alias
13780
host=$host
13781
host_os=$host_os
13782
13783
# The build system.
13784
build_alias=$build_alias
13785
build=$build
13786
build_os=$build_os
13787
13788
# An echo program that does not interpret backslashes.
13789
echo=$lt_echo
13790
13791
# The archiver.
13792
AR=$lt_AR
13793
AR_FLAGS=$lt_AR_FLAGS
13794
13795
# A C compiler.
13796
LTCC=$lt_LTCC
13797
13798
# LTCC compiler flags.
13799
LTCFLAGS=$lt_LTCFLAGS
13800
13801
# A language-specific compiler.
13802
CC=$lt_compiler
13803
13804
# Is the compiler the GNU C compiler?
13805
with_gcc=$GCC
13806
13807
# An ERE matcher.
13808
EGREP=$lt_EGREP
13809
13810
# The linker used to build libraries.
13811
LD=$lt_LD
13812
13813
# Whether we need hard or soft links.
13814
LN_S=$lt_LN_S
13815
13816
# A BSD-compatible nm program.
13817
NM=$lt_NM
13818
13819
# A symbol stripping program
13820
STRIP=$lt_STRIP
13821
13822
# Used to examine libraries when file_magic_cmd begins "file"
13823
MAGIC_CMD=$MAGIC_CMD
13824
13825
# Used on cygwin: DLL creation program.
13826
DLLTOOL="$DLLTOOL"
13827
13828
# Used on cygwin: object dumper.
13829
OBJDUMP="$OBJDUMP"
13830
13831
# Used on cygwin: assembler.
13832
AS="$AS"
13833
13834
# The name of the directory that contains temporary libtool files.
13835
objdir=$objdir
13836
13837
# How to create reloadable object files.
13838
reload_flag=$lt_reload_flag
13839
reload_cmds=$lt_reload_cmds
13840
13841
# How to pass a linker flag through the compiler.
13842
wl=$lt_lt_prog_compiler_wl
13843
13844
# Object file suffix (normally "o").
13845
objext="$ac_objext"
13846
13847
# Old archive suffix (normally "a").
13848
libext="$libext"
13849
13850
# Shared library suffix (normally ".so").
13851
shrext_cmds='$shrext_cmds'
13852
13853
# Executable file suffix (normally "").
13854
exeext="$exeext"
13855
13856
# Additional compiler flags for building library objects.
13857
pic_flag=$lt_lt_prog_compiler_pic
13858
pic_mode=$pic_mode
13859
13860
# What is the maximum length of a command?
13861
max_cmd_len=$lt_cv_sys_max_cmd_len
13862
13863
# Does compiler simultaneously support -c and -o options?
13864
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13865
13866
# Must we lock files when doing compilation?
13867
need_locks=$lt_need_locks
13868
13869
# Do we need the lib prefix for modules?
13870
need_lib_prefix=$need_lib_prefix
13871
13872
# Do we need a version for libraries?
13873
need_version=$need_version
13874
13875
# Whether dlopen is supported.
13876
dlopen_support=$enable_dlopen
13877
13878
# Whether dlopen of programs is supported.
13879
dlopen_self=$enable_dlopen_self
13880
13881
# Whether dlopen of statically linked programs is supported.
13882
dlopen_self_static=$enable_dlopen_self_static
13883
13884
# Compiler flag to prevent dynamic linking.
13885
link_static_flag=$lt_lt_prog_compiler_static
13886
13887
# Compiler flag to turn off builtin functions.
13888
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13889
13890
# Compiler flag to allow reflexive dlopens.
13891
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13892
13893
# Compiler flag to generate shared objects directly from archives.
13894
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13895
13896
# Compiler flag to generate thread-safe objects.
13897
thread_safe_flag_spec=$lt_thread_safe_flag_spec
13898
13899
# Library versioning type.
13900
version_type=$version_type
13901
13902
# Format of library name prefix.
13903
libname_spec=$lt_libname_spec
13904
13905
# List of archive names.  First name is the real one, the rest are links.
13906
# The last name is the one that the linker finds with -lNAME.
13907
library_names_spec=$lt_library_names_spec
13908
13909
# The coded name of the library, if different from the real name.
13910
soname_spec=$lt_soname_spec
13911
13912
# Commands used to build and install an old-style archive.
13913
RANLIB=$lt_RANLIB
13914
old_archive_cmds=$lt_old_archive_cmds
13915
old_postinstall_cmds=$lt_old_postinstall_cmds
13916
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13917
13918
# Create an old-style archive from a shared archive.
13919
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13920
13921
# Create a temporary old-style archive to link instead of a shared archive.
13922
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13923
13924
# Commands used to build and install a shared archive.
13925
archive_cmds=$lt_archive_cmds
13926
archive_expsym_cmds=$lt_archive_expsym_cmds
13927
postinstall_cmds=$lt_postinstall_cmds
13928
postuninstall_cmds=$lt_postuninstall_cmds
13929
13930
# Commands used to build a loadable module (assumed same as above if empty)
13931
module_cmds=$lt_module_cmds
13932
module_expsym_cmds=$lt_module_expsym_cmds
13933
13934
# Commands to strip libraries.
13935
old_striplib=$lt_old_striplib
13936
striplib=$lt_striplib
13937
13938
# Dependencies to place before the objects being linked to create a
13939
# shared library.
13940
predep_objects=$lt_predep_objects
13941
13942
# Dependencies to place after the objects being linked to create a
13943
# shared library.
13944
postdep_objects=$lt_postdep_objects
13945
13946
# Dependencies to place before the objects being linked to create a
13947
# shared library.
13948
predeps=$lt_predeps
13949
13950
# Dependencies to place after the objects being linked to create a
13951
# shared library.
13952
postdeps=$lt_postdeps
13953
13954
# The directories searched by this compiler when creating a shared
13955
# library
13956
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13957
13958
# The library search path used internally by the compiler when linking
13959
# a shared library.
13960
compiler_lib_search_path=$lt_compiler_lib_search_path
13961
13962
# Method to check whether dependent libraries are shared objects.
13963
deplibs_check_method=$lt_deplibs_check_method
13964
13965
# Command to use when deplibs_check_method == file_magic.
13966
file_magic_cmd=$lt_file_magic_cmd
13967
13968
# Flag that allows shared libraries with undefined symbols to be built.
13969
allow_undefined_flag=$lt_allow_undefined_flag
13970
13971
# Flag that forces no undefined symbols.
13972
no_undefined_flag=$lt_no_undefined_flag
13973
13974
# Commands used to finish a libtool library installation in a directory.
13975
finish_cmds=$lt_finish_cmds
13976
13977
# Same as above, but a single script fragment to be evaled but not shown.
13978
finish_eval=$lt_finish_eval
13979
13980
# Take the output of nm and produce a listing of raw symbols and C names.
13981
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13982
13983
# Transform the output of nm in a proper C declaration
13984
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13985
13986
# Transform the output of nm in a C name address pair
13987
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13988
13989
# This is the shared library runtime path variable.
13990
runpath_var=$runpath_var
13991
13992
# This is the shared library path variable.
13993
shlibpath_var=$shlibpath_var
13994
13995
# Is shlibpath searched before the hard-coded library search path?
13996
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13997
13998
# How to hardcode a shared library path into an executable.
13999
hardcode_action=$hardcode_action
14000
14001
# Whether we should hardcode library paths into libraries.
14002
hardcode_into_libs=$hardcode_into_libs
14003
14004
# Flag to hardcode \$libdir into a binary during linking.
14005
# This must work even if \$libdir does not exist.
14006
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14007
14008
# If ld is used when linking, flag to hardcode \$libdir into
14009
# a binary during linking. This must work even if \$libdir does
14010
# not exist.
14011
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14012
14013
# Whether we need a single -rpath flag with a separated argument.
14014
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14015
14016
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14017
# resulting binary.
14018
hardcode_direct=$hardcode_direct
14019
14020
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14021
# resulting binary.
14022
hardcode_minus_L=$hardcode_minus_L
14023
14024
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14025
# the resulting binary.
14026
hardcode_shlibpath_var=$hardcode_shlibpath_var
14027
14028
# Set to yes if building a shared library automatically hardcodes DIR into the library
14029
# and all subsequent libraries and executables linked against it.
14030
hardcode_automatic=$hardcode_automatic
14031
14032
# Variables whose values should be saved in libtool wrapper scripts and
14033
# restored at relink time.
14034
variables_saved_for_relink="$variables_saved_for_relink"
14035
14036
# Whether libtool must link a program against all its dependency libraries.
14037
link_all_deplibs=$link_all_deplibs
14038
14039
# Compile-time system search path for libraries
14040
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14041
14042
# Run-time system search path for libraries
14043
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14044
14045
# Fix the shell variable \$srcfile for the compiler.
14046
fix_srcfile_path=$lt_fix_srcfile_path
14047
14048
# Set to yes if exported symbols are required.
14049
always_export_symbols=$always_export_symbols
14050
14051
# The commands to list exported symbols.
14052
export_symbols_cmds=$lt_export_symbols_cmds
14053
14054
# The commands to extract the exported symbol list from a shared archive.
14055
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14056
14057
# Symbols that should not be listed in the preloaded symbols.
14058
exclude_expsyms=$lt_exclude_expsyms
14059
14060
# Symbols that must always be exported.
14061
include_expsyms=$lt_include_expsyms
14062
14063
# ### END LIBTOOL CONFIG
14064
14065
__EOF__
14066
14067
14068
  case $host_os in
14069
  aix3*)
14070
    cat <<\EOF >> "$cfgfile"
14071
14072
# AIX sometimes has problems with the GCC collect2 program.  For some
14073
# reason, if we set the COLLECT_NAMES environment variable, the problems
14074
# vanish in a puff of smoke.
14075
if test "X${COLLECT_NAMES+set}" != Xset; then
14076
  COLLECT_NAMES=
14077
  export COLLECT_NAMES
14078
fi
14079
EOF
14080
    ;;
14081
  esac
14082
14083
  # We use sed instead of cat because bash on DJGPP gets confused if
14084
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14085
  # text mode, it properly converts lines to CR/LF.  This bash problem
14086
  # is reportedly fixed, but why not run on old versions too?
14087
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14088
14089
  mv -f "$cfgfile" "$ofile" || \
14090
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14091
  chmod +x "$ofile"
14092
14093
else
14094
  # If there is no Makefile yet, we rely on a make rule to execute
14095
  # `config.status --recheck' to rerun these tests and create the
14096
  # libtool script then.
14097
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14098
  if test -f "$ltmain_in"; then
14099
    test -f Makefile && make "$ltmain"
14100
  fi
14101
fi
14102
14103
14104
ac_ext=c
14105
ac_cpp='$CPP $CPPFLAGS'
14106
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14107
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14108
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14109
14110
CC="$lt_save_CC"
14111
14112
14113
# Check whether --with-tags was given.
14114
if test "${with_tags+set}" = set; then
14115
  withval=$with_tags; tagnames="$withval"
14116
fi
14117
14118
14119
if test -f "$ltmain" && test -n "$tagnames"; then
14120
  if test ! -f "${ofile}"; then
14121
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14122
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14123
  fi
14124
14125
  if test -z "$LTCC"; then
14126
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14127
    if test -z "$LTCC"; then
14128
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14129
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14130
    else
14131
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14132
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14133
    fi
14134
  fi
14135
  if test -z "$LTCFLAGS"; then
14136
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
14137
  fi
14138
14139
  # Extract list of available tagged configurations in $ofile.
14140
  # Note that this assumes the entire list is on one line.
14141
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14142
14143
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14144
  for tagname in $tagnames; do
14145
    IFS="$lt_save_ifs"
14146
    # Check whether tagname contains only valid characters
14147
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14148
    "") ;;
14149
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14150
echo "$as_me: error: invalid tag name: $tagname" >&2;}
14151
   { (exit 1); exit 1; }; }
14152
	;;
14153
    esac
14154
14155
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14156
    then
14157
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14158
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14159
   { (exit 1); exit 1; }; }
14160
    fi
14161
14162
    # Update the list of available tags.
14163
    if test -n "$tagname"; then
14164
      echo appending configuration tag \"$tagname\" to $ofile
14165
14166
      case $tagname in
14167
      CXX)
14168
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14169
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14170
	    (test "X$CXX" != "Xg++"))) ; then
14171
	  ac_ext=cpp
14172
ac_cpp='$CXXCPP $CPPFLAGS'
14173
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14176
14177
14178
14179
14180
archive_cmds_need_lc_CXX=no
14181
allow_undefined_flag_CXX=
14182
always_export_symbols_CXX=no
14183
archive_expsym_cmds_CXX=
14184
export_dynamic_flag_spec_CXX=
14185
hardcode_direct_CXX=no
14186
hardcode_libdir_flag_spec_CXX=
14187
hardcode_libdir_flag_spec_ld_CXX=
14188
hardcode_libdir_separator_CXX=
14189
hardcode_minus_L_CXX=no
14190
hardcode_shlibpath_var_CXX=unsupported
14191
hardcode_automatic_CXX=no
14192
module_cmds_CXX=
14193
module_expsym_cmds_CXX=
14194
link_all_deplibs_CXX=unknown
14195
old_archive_cmds_CXX=$old_archive_cmds
14196
no_undefined_flag_CXX=
14197
whole_archive_flag_spec_CXX=
14198
enable_shared_with_static_runtimes_CXX=no
14199
14200
# Dependencies to place before and after the object being linked:
14201
predep_objects_CXX=
14202
postdep_objects_CXX=
14203
predeps_CXX=
14204
postdeps_CXX=
14205
compiler_lib_search_path_CXX=
14206
compiler_lib_search_dirs_CXX=
14207
14208
# Source file extension for C++ test sources.
14209
ac_ext=cpp
14210
14211
# Object file extension for compiled C++ test sources.
14212
objext=o
14213
objext_CXX=$objext
14214
14215
# Code to be used in simple compile tests
14216
lt_simple_compile_test_code="int some_variable = 0;"
14217
14218
# Code to be used in simple link tests
14219
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14220
14221
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14222
14223
# If no C compiler was specified, use CC.
14224
LTCC=${LTCC-"$CC"}
14225
14226
# If no C compiler flags were specified, use CFLAGS.
14227
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14228
14229
# Allow CC to be a program name with arguments.
14230
compiler=$CC
14231
14232
14233
# save warnings/boilerplate of simple test code
14234
ac_outfile=conftest.$ac_objext
14235
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14236
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14237
_lt_compiler_boilerplate=`cat conftest.err`
14238
$rm conftest*
14239
14240
ac_outfile=conftest.$ac_objext
14241
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14242
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14243
_lt_linker_boilerplate=`cat conftest.err`
14244
$rm -r conftest*
14245
14246
14247
# Allow CC to be a program name with arguments.
14248
lt_save_CC=$CC
14249
lt_save_LD=$LD
14250
lt_save_GCC=$GCC
14251
GCC=$GXX
14252
lt_save_with_gnu_ld=$with_gnu_ld
14253
lt_save_path_LD=$lt_cv_path_LD
14254
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14255
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14256
else
14257
  $as_unset lt_cv_prog_gnu_ld
14258
fi
14259
if test -n "${lt_cv_path_LDCXX+set}"; then
14260
  lt_cv_path_LD=$lt_cv_path_LDCXX
14261
else
14262
  $as_unset lt_cv_path_LD
14263
fi
14264
test -z "${LDCXX+set}" || LD=$LDCXX
14265
CC=${CXX-"c++"}
14266
compiler=$CC
14267
compiler_CXX=$CC
14268
for cc_temp in $compiler""; do
14269
  case $cc_temp in
14270
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14271
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14272
    \-*) ;;
14273
    *) break;;
14274
  esac
14275
done
14276
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14277
14278
14279
# We don't want -fno-exception wen compiling C++ code, so set the
14280
# no_builtin_flag separately
14281
if test "$GXX" = yes; then
14282
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14283
else
14284
  lt_prog_compiler_no_builtin_flag_CXX=
14285
fi
14286
14287
if test "$GXX" = yes; then
14288
  # Set up default GNU C++ configuration
14289
14290
14291
# Check whether --with-gnu-ld was given.
14292
if test "${with_gnu_ld+set}" = set; then
14293
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14294
else
14295
  with_gnu_ld=no
14296
fi
14297
14298
ac_prog=ld
14299
if test "$GCC" = yes; then
14300
  # Check if gcc -print-prog-name=ld gives a path.
14301
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14302
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14303
  case $host in
14304
  *-*-mingw*)
14305
    # gcc leaves a trailing carriage return which upsets mingw
14306
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14307
  *)
14308
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14309
  esac
14310
  case $ac_prog in
14311
    # Accept absolute paths.
14312
    [\\/]* | ?:[\\/]*)
14313
      re_direlt='/[^/][^/]*/\.\./'
14314
      # Canonicalize the pathname of ld
14315
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14316
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14317
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14318
      done
14319
      test -z "$LD" && LD="$ac_prog"
14320
      ;;
14321
  "")
14322
    # If it fails, then pretend we aren't using GCC.
14323
    ac_prog=ld
14324
    ;;
14325
  *)
14326
    # If it is relative, then search for the first ld in PATH.
14327
    with_gnu_ld=unknown
14328
    ;;
14329
  esac
14330
elif test "$with_gnu_ld" = yes; then
14331
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
14332
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14333
else
14334
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14335
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14336
fi
14337
if test "${lt_cv_path_LD+set}" = set; then
14338
  echo $ECHO_N "(cached) $ECHO_C" >&6
14339
else
14340
  if test -z "$LD"; then
14341
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14342
  for ac_dir in $PATH; do
14343
    IFS="$lt_save_ifs"
14344
    test -z "$ac_dir" && ac_dir=.
14345
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14346
      lt_cv_path_LD="$ac_dir/$ac_prog"
14347
      # Check to see if the program is GNU ld.  I'd rather use --version,
14348
      # but apparently some variants of GNU ld only accept -v.
14349
      # Break only if it was the GNU/non-GNU ld that we prefer.
14350
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14351
      *GNU* | *'with BFD'*)
14352
	test "$with_gnu_ld" != no && break
14353
	;;
14354
      *)
14355
	test "$with_gnu_ld" != yes && break
14356
	;;
14357
      esac
14358
    fi
14359
  done
14360
  IFS="$lt_save_ifs"
14361
else
14362
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14363
fi
14364
fi
14365
14366
LD="$lt_cv_path_LD"
14367
if test -n "$LD"; then
14368
  { echo "$as_me:$LINENO: result: $LD" >&5
14369
echo "${ECHO_T}$LD" >&6; }
14370
else
14371
  { echo "$as_me:$LINENO: result: no" >&5
14372
echo "${ECHO_T}no" >&6; }
14373
fi
14374
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14375
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14376
   { (exit 1); exit 1; }; }
14377
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14378
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14379
if test "${lt_cv_prog_gnu_ld+set}" = set; then
14380
  echo $ECHO_N "(cached) $ECHO_C" >&6
14381
else
14382
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14383
case `$LD -v 2>&1 </dev/null` in
14384
*GNU* | *'with BFD'*)
14385
  lt_cv_prog_gnu_ld=yes
14386
  ;;
14387
*)
14388
  lt_cv_prog_gnu_ld=no
14389
  ;;
14390
esac
14391
fi
14392
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14393
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14394
with_gnu_ld=$lt_cv_prog_gnu_ld
14395
14396
14397
14398
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
14399
  # archiving commands below assume that GNU ld is being used.
14400
  if test "$with_gnu_ld" = yes; then
14401
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14403
14404
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14405
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14406
14407
    # If archive_cmds runs LD, not CC, wlarc should be empty
14408
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14409
    #     investigate it a little bit more. (MM)
14410
    wlarc='${wl}'
14411
14412
    # ancient GNU ld didn't support --whole-archive et. al.
14413
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14414
	grep 'no-whole-archive' > /dev/null; then
14415
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14416
    else
14417
      whole_archive_flag_spec_CXX=
14418
    fi
14419
  else
14420
    with_gnu_ld=no
14421
    wlarc=
14422
14423
    # A generic and very simple default shared library creation
14424
    # command for GNU C++ for the case where it uses the native
14425
    # linker, instead of GNU ld.  If possible, this setting should
14426
    # overridden to take advantage of the native linker features on
14427
    # the platform it is being used on.
14428
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14429
  fi
14430
14431
  # Commands to make compiler produce verbose output that lists
14432
  # what "hidden" libraries, object files and flags are used when
14433
  # linking a shared library.
14434
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14435
14436
else
14437
  GXX=no
14438
  with_gnu_ld=no
14439
  wlarc=
14440
fi
14441
14442
# PORTME: fill in a description of your system's C++ link characteristics
14443
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14444
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14445
ld_shlibs_CXX=yes
14446
case $host_os in
14447
  aix3*)
14448
    # FIXME: insert proper C++ library support
14449
    ld_shlibs_CXX=no
14450
    ;;
14451
  aix[4-9]*)
14452
    if test "$host_cpu" = ia64; then
14453
      # On IA64, the linker does run time linking by default, so we don't
14454
      # have to do anything special.
14455
      aix_use_runtimelinking=no
14456
      exp_sym_flag='-Bexport'
14457
      no_entry_flag=""
14458
    else
14459
      aix_use_runtimelinking=no
14460
14461
      # Test if we are trying to use run time linking or normal
14462
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14463
      # need to do runtime linking.
14464
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14465
	for ld_flag in $LDFLAGS; do
14466
	  case $ld_flag in
14467
	  *-brtl*)
14468
	    aix_use_runtimelinking=yes
14469
	    break
14470
	    ;;
14471
	  esac
14472
	done
14473
	;;
14474
      esac
14475
14476
      exp_sym_flag='-bexport'
14477
      no_entry_flag='-bnoentry'
14478
    fi
14479
14480
    # When large executables or shared objects are built, AIX ld can
14481
    # have problems creating the table of contents.  If linking a library
14482
    # or program results in "error TOC overflow" add -mminimal-toc to
14483
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14484
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14485
14486
    archive_cmds_CXX=''
14487
    hardcode_direct_CXX=yes
14488
    hardcode_libdir_separator_CXX=':'
14489
    link_all_deplibs_CXX=yes
14490
14491
    if test "$GXX" = yes; then
14492
      case $host_os in aix4.[012]|aix4.[012].*)
14493
      # We only want to do this on AIX 4.2 and lower, the check
14494
      # below for broken collect2 doesn't work under 4.3+
14495
	collect2name=`${CC} -print-prog-name=collect2`
14496
	if test -f "$collect2name" && \
14497
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14498
	then
14499
	  # We have reworked collect2
14500
	  :
14501
	else
14502
	  # We have old collect2
14503
	  hardcode_direct_CXX=unsupported
14504
	  # It fails to find uninstalled libraries when the uninstalled
14505
	  # path is not listed in the libpath.  Setting hardcode_minus_L
14506
	  # to unsupported forces relinking
14507
	  hardcode_minus_L_CXX=yes
14508
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14509
	  hardcode_libdir_separator_CXX=
14510
	fi
14511
	;;
14512
      esac
14513
      shared_flag='-shared'
14514
      if test "$aix_use_runtimelinking" = yes; then
14515
	shared_flag="$shared_flag "'${wl}-G'
14516
      fi
14517
    else
14518
      # not using gcc
14519
      if test "$host_cpu" = ia64; then
14520
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14521
	# chokes on -Wl,-G. The following line is correct:
14522
	shared_flag='-G'
14523
      else
14524
	if test "$aix_use_runtimelinking" = yes; then
14525
	  shared_flag='${wl}-G'
14526
	else
14527
	  shared_flag='${wl}-bM:SRE'
14528
	fi
14529
      fi
14530
    fi
14531
14532
    # It seems that -bexpall does not export symbols beginning with
14533
    # underscore (_), so it is better to generate a list of symbols to export.
14534
    always_export_symbols_CXX=yes
14535
    if test "$aix_use_runtimelinking" = yes; then
14536
      # Warning - without using the other runtime loading flags (-brtl),
14537
      # -berok will link without error, but may produce a broken library.
14538
      allow_undefined_flag_CXX='-berok'
14539
      # Determine the default libpath from the value encoded in an empty executable.
14540
      cat >conftest.$ac_ext <<_ACEOF
14541
/* confdefs.h.  */
14542
_ACEOF
14543
cat confdefs.h >>conftest.$ac_ext
14544
cat >>conftest.$ac_ext <<_ACEOF
14545
/* end confdefs.h.  */
14546
14547
int
14548
main ()
14549
{
14550
14551
  ;
14552
  return 0;
14553
}
14554
_ACEOF
14555
rm -f conftest.$ac_objext conftest$ac_exeext
14556
if { (ac_try="$ac_link"
14557
case "(($ac_try" in
14558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559
  *) ac_try_echo=$ac_try;;
14560
esac
14561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562
  (eval "$ac_link") 2>conftest.er1
14563
  ac_status=$?
14564
  grep -v '^ *+' conftest.er1 >conftest.err
14565
  rm -f conftest.er1
14566
  cat conftest.err >&5
14567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568
  (exit $ac_status); } && {
14569
	 test -z "$ac_cxx_werror_flag" ||
14570
	 test ! -s conftest.err
14571
       } && test -s conftest$ac_exeext &&
14572
       $as_test_x conftest$ac_exeext; then
14573
14574
lt_aix_libpath_sed='
14575
    /Import File Strings/,/^$/ {
14576
	/^0/ {
14577
	    s/^0  *\(.*\)$/\1/
14578
	    p
14579
	}
14580
    }'
14581
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14582
# Check for a 64-bit object if we didn't find anything.
14583
if test -z "$aix_libpath"; then
14584
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14585
fi
14586
else
14587
  echo "$as_me: failed program was:" >&5
14588
sed 's/^/| /' conftest.$ac_ext >&5
14589
14590
14591
fi
14592
14593
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594
      conftest$ac_exeext conftest.$ac_ext
14595
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14596
14597
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14598
14599
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14600
     else
14601
      if test "$host_cpu" = ia64; then
14602
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14603
	allow_undefined_flag_CXX="-z nodefs"
14604
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14605
      else
14606
	# Determine the default libpath from the value encoded in an empty executable.
14607
	cat >conftest.$ac_ext <<_ACEOF
14608
/* confdefs.h.  */
14609
_ACEOF
14610
cat confdefs.h >>conftest.$ac_ext
14611
cat >>conftest.$ac_ext <<_ACEOF
14612
/* end confdefs.h.  */
14613
14614
int
14615
main ()
14616
{
14617
14618
  ;
14619
  return 0;
14620
}
14621
_ACEOF
14622
rm -f conftest.$ac_objext conftest$ac_exeext
14623
if { (ac_try="$ac_link"
14624
case "(($ac_try" in
14625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626
  *) ac_try_echo=$ac_try;;
14627
esac
14628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629
  (eval "$ac_link") 2>conftest.er1
14630
  ac_status=$?
14631
  grep -v '^ *+' conftest.er1 >conftest.err
14632
  rm -f conftest.er1
14633
  cat conftest.err >&5
14634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635
  (exit $ac_status); } && {
14636
	 test -z "$ac_cxx_werror_flag" ||
14637
	 test ! -s conftest.err
14638
       } && test -s conftest$ac_exeext &&
14639
       $as_test_x conftest$ac_exeext; then
14640
14641
lt_aix_libpath_sed='
14642
    /Import File Strings/,/^$/ {
14643
	/^0/ {
14644
	    s/^0  *\(.*\)$/\1/
14645
	    p
14646
	}
14647
    }'
14648
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14649
# Check for a 64-bit object if we didn't find anything.
14650
if test -z "$aix_libpath"; then
14651
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14652
fi
14653
else
14654
  echo "$as_me: failed program was:" >&5
14655
sed 's/^/| /' conftest.$ac_ext >&5
14656
14657
14658
fi
14659
14660
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14661
      conftest$ac_exeext conftest.$ac_ext
14662
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14663
14664
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14665
	# Warning - without using the other run time loading flags,
14666
	# -berok will link without error, but may produce a broken library.
14667
	no_undefined_flag_CXX=' ${wl}-bernotok'
14668
	allow_undefined_flag_CXX=' ${wl}-berok'
14669
	# Exported symbols can be pulled into shared objects from archives
14670
	whole_archive_flag_spec_CXX='$convenience'
14671
	archive_cmds_need_lc_CXX=yes
14672
	# This is similar to how AIX traditionally builds its shared libraries.
14673
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14674
      fi
14675
    fi
14676
    ;;
14677
14678
  beos*)
14679
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14680
      allow_undefined_flag_CXX=unsupported
14681
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14682
      # support --undefined.  This deserves some investigation.  FIXME
14683
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14684
    else
14685
      ld_shlibs_CXX=no
14686
    fi
14687
    ;;
14688
14689
  chorus*)
14690
    case $cc_basename in
14691
      *)
14692
	# FIXME: insert proper C++ library support
14693
	ld_shlibs_CXX=no
14694
	;;
14695
    esac
14696
    ;;
14697
14698
  cygwin* | mingw* | pw32*)
14699
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14700
    # as there is no search path for DLLs.
14701
    hardcode_libdir_flag_spec_CXX='-L$libdir'
14702
    allow_undefined_flag_CXX=unsupported
14703
    always_export_symbols_CXX=no
14704
    enable_shared_with_static_runtimes_CXX=yes
14705
14706
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14707
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14708
      # If the export-symbols file already is a .def file (1st line
14709
      # is EXPORTS), use it as is; otherwise, prepend...
14710
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14711
	cp $export_symbols $output_objdir/$soname.def;
14712
      else
14713
	echo EXPORTS > $output_objdir/$soname.def;
14714
	cat $export_symbols >> $output_objdir/$soname.def;
14715
      fi~
14716
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14717
    else
14718
      ld_shlibs_CXX=no
14719
    fi
14720
  ;;
14721
      darwin* | rhapsody*)
14722
      archive_cmds_need_lc_CXX=no
14723
      hardcode_direct_CXX=no
14724
      hardcode_automatic_CXX=yes
14725
      hardcode_shlibpath_var_CXX=unsupported
14726
      whole_archive_flag_spec_CXX=''
14727
      link_all_deplibs_CXX=yes
14728
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14729
      if test "$GXX" = yes ; then
14730
      output_verbose_link_cmd='echo'
14731
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14732
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14733
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14734
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14735
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14736
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14737
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14738
      fi
14739
      else
14740
      case $cc_basename in
14741
        xlc*)
14742
         output_verbose_link_cmd='echo'
14743
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14744
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14745
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14746
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14747
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14748
          ;;
14749
       *)
14750
         ld_shlibs_CXX=no
14751
          ;;
14752
      esac
14753
      fi
14754
        ;;
14755
14756
  dgux*)
14757
    case $cc_basename in
14758
      ec++*)
14759
	# FIXME: insert proper C++ library support
14760
	ld_shlibs_CXX=no
14761
	;;
14762
      ghcx*)
14763
	# Green Hills C++ Compiler
14764
	# FIXME: insert proper C++ library support
14765
	ld_shlibs_CXX=no
14766
	;;
14767
      *)
14768
	# FIXME: insert proper C++ library support
14769
	ld_shlibs_CXX=no
14770
	;;
14771
    esac
14772
    ;;
14773
  freebsd[12]*)
14774
    # C++ shared libraries reported to be fairly broken before switch to ELF
14775
    ld_shlibs_CXX=no
14776
    ;;
14777
  freebsd-elf*)
14778
    archive_cmds_need_lc_CXX=no
14779
    ;;
14780
  freebsd* | dragonfly*)
14781
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14782
    # conventions
14783
    ld_shlibs_CXX=yes
14784
    ;;
14785
  gnu*)
14786
    ;;
14787
  hpux9*)
14788
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14789
    hardcode_libdir_separator_CXX=:
14790
    export_dynamic_flag_spec_CXX='${wl}-E'
14791
    hardcode_direct_CXX=yes
14792
    hardcode_minus_L_CXX=yes # Not in the search PATH,
14793
				# but as the default
14794
				# location of the library.
14795
14796
    case $cc_basename in
14797
    CC*)
14798
      # FIXME: insert proper C++ library support
14799
      ld_shlibs_CXX=no
14800
      ;;
14801
    aCC*)
14802
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14803
      # Commands to make compiler produce verbose output that lists
14804
      # what "hidden" libraries, object files and flags are used when
14805
      # linking a shared library.
14806
      #
14807
      # There doesn't appear to be a way to prevent this compiler from
14808
      # explicitly linking system object files so we need to strip them
14809
      # from the output so that they don't get included in the library
14810
      # dependencies.
14811
      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'
14812
      ;;
14813
    *)
14814
      if test "$GXX" = yes; then
14815
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14816
      else
14817
        # FIXME: insert proper C++ library support
14818
        ld_shlibs_CXX=no
14819
      fi
14820
      ;;
14821
    esac
14822
    ;;
14823
  hpux10*|hpux11*)
14824
    if test $with_gnu_ld = no; then
14825
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14826
      hardcode_libdir_separator_CXX=:
14827
14828
      case $host_cpu in
14829
      hppa*64*|ia64*) ;;
14830
      *)
14831
	export_dynamic_flag_spec_CXX='${wl}-E'
14832
        ;;
14833
      esac
14834
    fi
14835
    case $host_cpu in
14836
    hppa*64*|ia64*)
14837
      hardcode_direct_CXX=no
14838
      hardcode_shlibpath_var_CXX=no
14839
      ;;
14840
    *)
14841
      hardcode_direct_CXX=yes
14842
      hardcode_minus_L_CXX=yes # Not in the search PATH,
14843
					      # but as the default
14844
					      # location of the library.
14845
      ;;
14846
    esac
14847
14848
    case $cc_basename in
14849
      CC*)
14850
	# FIXME: insert proper C++ library support
14851
	ld_shlibs_CXX=no
14852
	;;
14853
      aCC*)
14854
	case $host_cpu in
14855
	hppa*64*)
14856
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14857
	  ;;
14858
	ia64*)
14859
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14860
	  ;;
14861
	*)
14862
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14863
	  ;;
14864
	esac
14865
	# Commands to make compiler produce verbose output that lists
14866
	# what "hidden" libraries, object files and flags are used when
14867
	# linking a shared library.
14868
	#
14869
	# There doesn't appear to be a way to prevent this compiler from
14870
	# explicitly linking system object files so we need to strip them
14871
	# from the output so that they don't get included in the library
14872
	# dependencies.
14873
	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'
14874
	;;
14875
      *)
14876
	if test "$GXX" = yes; then
14877
	  if test $with_gnu_ld = no; then
14878
	    case $host_cpu in
14879
	    hppa*64*)
14880
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14881
	      ;;
14882
	    ia64*)
14883
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14884
	      ;;
14885
	    *)
14886
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14887
	      ;;
14888
	    esac
14889
	  fi
14890
	else
14891
	  # FIXME: insert proper C++ library support
14892
	  ld_shlibs_CXX=no
14893
	fi
14894
	;;
14895
    esac
14896
    ;;
14897
  interix[3-9]*)
14898
    hardcode_direct_CXX=no
14899
    hardcode_shlibpath_var_CXX=no
14900
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14901
    export_dynamic_flag_spec_CXX='${wl}-E'
14902
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14903
    # Instead, shared libraries are loaded at an image base (0x10000000 by
14904
    # default) and relocated if they conflict, which is a slow very memory
14905
    # consuming and fragmenting process.  To avoid this, we pick a random,
14906
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14907
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14908
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14909
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14910
    ;;
14911
  irix5* | irix6*)
14912
    case $cc_basename in
14913
      CC*)
14914
	# SGI C++
14915
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14916
14917
	# Archives containing C++ object files must be created using
14918
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14919
	# necessary to make sure instantiated templates are included
14920
	# in the archive.
14921
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14922
	;;
14923
      *)
14924
	if test "$GXX" = yes; then
14925
	  if test "$with_gnu_ld" = no; then
14926
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14927
	  else
14928
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14929
	  fi
14930
	fi
14931
	link_all_deplibs_CXX=yes
14932
	;;
14933
    esac
14934
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14935
    hardcode_libdir_separator_CXX=:
14936
    ;;
14937
  linux* | k*bsd*-gnu)
14938
    case $cc_basename in
14939
      KCC*)
14940
	# Kuck and Associates, Inc. (KAI) C++ Compiler
14941
14942
	# KCC will only create a shared library if the output file
14943
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14944
	# to its proper name (with version) after linking.
14945
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14946
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14947
	# Commands to make compiler produce verbose output that lists
14948
	# what "hidden" libraries, object files and flags are used when
14949
	# linking a shared library.
14950
	#
14951
	# There doesn't appear to be a way to prevent this compiler from
14952
	# explicitly linking system object files so we need to strip them
14953
	# from the output so that they don't get included in the library
14954
	# dependencies.
14955
	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'
14956
14957
	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14958
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14959
14960
	# Archives containing C++ object files must be created using
14961
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14962
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14963
	;;
14964
      icpc*)
14965
	# Intel C++
14966
	with_gnu_ld=yes
14967
	# version 8.0 and above of icpc choke on multiply defined symbols
14968
	# if we add $predep_objects and $postdep_objects, however 7.1 and
14969
	# earlier do not add the objects themselves.
14970
	case `$CC -V 2>&1` in
14971
	*"Version 7."*)
14972
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14974
	  ;;
14975
	*)  # Version 8.0 or newer
14976
	  tmp_idyn=
14977
	  case $host_cpu in
14978
	    ia64*) tmp_idyn=' -i_dynamic';;
14979
	  esac
14980
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14981
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14982
	  ;;
14983
	esac
14984
	archive_cmds_need_lc_CXX=no
14985
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14986
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14987
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14988
	;;
14989
      pgCC* | pgcpp*)
14990
        # Portland Group C++ compiler
14991
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14992
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14993
14994
	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14995
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14996
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14997
        ;;
14998
      cxx*)
14999
	# Compaq C++
15000
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15001
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15002
15003
	runpath_var=LD_RUN_PATH
15004
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15005
	hardcode_libdir_separator_CXX=:
15006
15007
	# Commands to make compiler produce verbose output that lists
15008
	# what "hidden" libraries, object files and flags are used when
15009
	# linking a shared library.
15010
	#
15011
	# There doesn't appear to be a way to prevent this compiler from
15012
	# explicitly linking system object files so we need to strip them
15013
	# from the output so that they don't get included in the library
15014
	# dependencies.
15015
	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'
15016
	;;
15017
      *)
15018
	case `$CC -V 2>&1 | sed 5q` in
15019
	*Sun\ C*)
15020
	  # Sun C++ 5.9
15021
	  no_undefined_flag_CXX=' -zdefs'
15022
	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15023
	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15024
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15025
	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15026
15027
	  # Not sure whether something based on
15028
	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15029
	  # would be better.
15030
	  output_verbose_link_cmd='echo'
15031
15032
	  # Archives containing C++ object files must be created using
15033
	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15034
	  # necessary to make sure instantiated templates are included
15035
	  # in the archive.
15036
	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15037
	  ;;
15038
	esac
15039
	;;
15040
    esac
15041
    ;;
15042
  lynxos*)
15043
    # FIXME: insert proper C++ library support
15044
    ld_shlibs_CXX=no
15045
    ;;
15046
  m88k*)
15047
    # FIXME: insert proper C++ library support
15048
    ld_shlibs_CXX=no
15049
    ;;
15050
  mvs*)
15051
    case $cc_basename in
15052
      cxx*)
15053
	# FIXME: insert proper C++ library support
15054
	ld_shlibs_CXX=no
15055
	;;
15056
      *)
15057
	# FIXME: insert proper C++ library support
15058
	ld_shlibs_CXX=no
15059
	;;
15060
    esac
15061
    ;;
15062
  netbsd* | netbsdelf*-gnu)
15063
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15064
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15065
      wlarc=
15066
      hardcode_libdir_flag_spec_CXX='-R$libdir'
15067
      hardcode_direct_CXX=yes
15068
      hardcode_shlibpath_var_CXX=no
15069
    fi
15070
    # Workaround some broken pre-1.5 toolchains
15071
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15072
    ;;
15073
  openbsd2*)
15074
    # C++ shared libraries are fairly broken
15075
    ld_shlibs_CXX=no
15076
    ;;
15077
  openbsd*)
15078
    if test -f /usr/libexec/ld.so; then
15079
      hardcode_direct_CXX=yes
15080
      hardcode_shlibpath_var_CXX=no
15081
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15082
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15083
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15084
	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15085
	export_dynamic_flag_spec_CXX='${wl}-E'
15086
	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15087
      fi
15088
      output_verbose_link_cmd='echo'
15089
    else
15090
      ld_shlibs_CXX=no
15091
    fi
15092
    ;;
15093
  osf3*)
15094
    case $cc_basename in
15095
      KCC*)
15096
	# Kuck and Associates, Inc. (KAI) C++ Compiler
15097
15098
	# KCC will only create a shared library if the output file
15099
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15100
	# to its proper name (with version) after linking.
15101
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15102
15103
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15104
	hardcode_libdir_separator_CXX=:
15105
15106
	# Archives containing C++ object files must be created using
15107
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15108
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15109
15110
	;;
15111
      RCC*)
15112
	# Rational C++ 2.4.1
15113
	# FIXME: insert proper C++ library support
15114
	ld_shlibs_CXX=no
15115
	;;
15116
      cxx*)
15117
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15118
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15119
15120
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15121
	hardcode_libdir_separator_CXX=:
15122
15123
	# Commands to make compiler produce verbose output that lists
15124
	# what "hidden" libraries, object files and flags are used when
15125
	# linking a shared library.
15126
	#
15127
	# There doesn't appear to be a way to prevent this compiler from
15128
	# explicitly linking system object files so we need to strip them
15129
	# from the output so that they don't get included in the library
15130
	# dependencies.
15131
	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'
15132
	;;
15133
      *)
15134
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15135
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15136
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15137
15138
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15139
	  hardcode_libdir_separator_CXX=:
15140
15141
	  # Commands to make compiler produce verbose output that lists
15142
	  # what "hidden" libraries, object files and flags are used when
15143
	  # linking a shared library.
15144
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15145
15146
	else
15147
	  # FIXME: insert proper C++ library support
15148
	  ld_shlibs_CXX=no
15149
	fi
15150
	;;
15151
    esac
15152
    ;;
15153
  osf4* | osf5*)
15154
    case $cc_basename in
15155
      KCC*)
15156
	# Kuck and Associates, Inc. (KAI) C++ Compiler
15157
15158
	# KCC will only create a shared library if the output file
15159
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15160
	# to its proper name (with version) after linking.
15161
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15162
15163
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15164
	hardcode_libdir_separator_CXX=:
15165
15166
	# Archives containing C++ object files must be created using
15167
	# the KAI C++ compiler.
15168
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15169
	;;
15170
      RCC*)
15171
	# Rational C++ 2.4.1
15172
	# FIXME: insert proper C++ library support
15173
	ld_shlibs_CXX=no
15174
	;;
15175
      cxx*)
15176
	allow_undefined_flag_CXX=' -expect_unresolved \*'
15177
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15178
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15179
	  echo "-hidden">> $lib.exp~
15180
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
15181
	  $rm $lib.exp'
15182
15183
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15184
	hardcode_libdir_separator_CXX=:
15185
15186
	# Commands to make compiler produce verbose output that lists
15187
	# what "hidden" libraries, object files and flags are used when
15188
	# linking a shared library.
15189
	#
15190
	# There doesn't appear to be a way to prevent this compiler from
15191
	# explicitly linking system object files so we need to strip them
15192
	# from the output so that they don't get included in the library
15193
	# dependencies.
15194
	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'
15195
	;;
15196
      *)
15197
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15198
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15199
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15200
15201
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15202
	  hardcode_libdir_separator_CXX=:
15203
15204
	  # Commands to make compiler produce verbose output that lists
15205
	  # what "hidden" libraries, object files and flags are used when
15206
	  # linking a shared library.
15207
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15208
15209
	else
15210
	  # FIXME: insert proper C++ library support
15211
	  ld_shlibs_CXX=no
15212
	fi
15213
	;;
15214
    esac
15215
    ;;
15216
  psos*)
15217
    # FIXME: insert proper C++ library support
15218
    ld_shlibs_CXX=no
15219
    ;;
15220
  sunos4*)
15221
    case $cc_basename in
15222
      CC*)
15223
	# Sun C++ 4.x
15224
	# FIXME: insert proper C++ library support
15225
	ld_shlibs_CXX=no
15226
	;;
15227
      lcc*)
15228
	# Lucid
15229
	# FIXME: insert proper C++ library support
15230
	ld_shlibs_CXX=no
15231
	;;
15232
      *)
15233
	# FIXME: insert proper C++ library support
15234
	ld_shlibs_CXX=no
15235
	;;
15236
    esac
15237
    ;;
15238
  solaris*)
15239
    case $cc_basename in
15240
      CC*)
15241
	# Sun C++ 4.2, 5.x and Centerline C++
15242
        archive_cmds_need_lc_CXX=yes
15243
	no_undefined_flag_CXX=' -zdefs'
15244
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15245
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15246
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15247
15248
	hardcode_libdir_flag_spec_CXX='-R$libdir'
15249
	hardcode_shlibpath_var_CXX=no
15250
	case $host_os in
15251
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
15252
	  *)
15253
	    # The compiler driver will combine and reorder linker options,
15254
	    # but understands `-z linker_flag'.
15255
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
15256
	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15257
	    ;;
15258
	esac
15259
	link_all_deplibs_CXX=yes
15260
15261
	output_verbose_link_cmd='echo'
15262
15263
	# Archives containing C++ object files must be created using
15264
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
15265
	# necessary to make sure instantiated templates are included
15266
	# in the archive.
15267
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15268
	;;
15269
      gcx*)
15270
	# Green Hills C++ Compiler
15271
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15272
15273
	# The C++ compiler must be used to create the archive.
15274
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15275
	;;
15276
      *)
15277
	# GNU C++ compiler with Solaris linker
15278
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15279
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15280
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
15281
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15282
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15283
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15284
15285
	    # Commands to make compiler produce verbose output that lists
15286
	    # what "hidden" libraries, object files and flags are used when
15287
	    # linking a shared library.
15288
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15289
	  else
15290
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
15291
	    # platform.
15292
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15293
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15294
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15295
15296
	    # Commands to make compiler produce verbose output that lists
15297
	    # what "hidden" libraries, object files and flags are used when
15298
	    # linking a shared library.
15299
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15300
	  fi
15301
15302
	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15303
	  case $host_os in
15304
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
15305
	  *)
15306
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15307
	    ;;
15308
	  esac
15309
	fi
15310
	;;
15311
    esac
15312
    ;;
15313
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15314
    no_undefined_flag_CXX='${wl}-z,text'
15315
    archive_cmds_need_lc_CXX=no
15316
    hardcode_shlibpath_var_CXX=no
15317
    runpath_var='LD_RUN_PATH'
15318
15319
    case $cc_basename in
15320
      CC*)
15321
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15322
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15323
	;;
15324
      *)
15325
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15326
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15327
	;;
15328
    esac
15329
    ;;
15330
  sysv5* | sco3.2v5* | sco5v6*)
15331
    # Note: We can NOT use -z defs as we might desire, because we do not
15332
    # link with -lc, and that would cause any symbols used from libc to
15333
    # always be unresolved, which means just about no library would
15334
    # ever link correctly.  If we're not using GNU ld we use -z text
15335
    # though, which does catch some bad symbols but isn't as heavy-handed
15336
    # as -z defs.
15337
    # For security reasons, it is highly recommended that you always
15338
    # use absolute paths for naming shared libraries, and exclude the
15339
    # DT_RUNPATH tag from executables and libraries.  But doing so
15340
    # requires that you compile everything twice, which is a pain.
15341
    # So that behaviour is only enabled if SCOABSPATH is set to a
15342
    # non-empty value in the environment.  Most likely only useful for
15343
    # creating official distributions of packages.
15344
    # This is a hack until libtool officially supports absolute path
15345
    # names for shared libraries.
15346
    no_undefined_flag_CXX='${wl}-z,text'
15347
    allow_undefined_flag_CXX='${wl}-z,nodefs'
15348
    archive_cmds_need_lc_CXX=no
15349
    hardcode_shlibpath_var_CXX=no
15350
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15351
    hardcode_libdir_separator_CXX=':'
15352
    link_all_deplibs_CXX=yes
15353
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
15354
    runpath_var='LD_RUN_PATH'
15355
15356
    case $cc_basename in
15357
      CC*)
15358
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15359
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15360
	;;
15361
      *)
15362
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15363
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15364
	;;
15365
    esac
15366
    ;;
15367
  tandem*)
15368
    case $cc_basename in
15369
      NCC*)
15370
	# NonStop-UX NCC 3.20
15371
	# FIXME: insert proper C++ library support
15372
	ld_shlibs_CXX=no
15373
	;;
15374
      *)
15375
	# FIXME: insert proper C++ library support
15376
	ld_shlibs_CXX=no
15377
	;;
15378
    esac
15379
    ;;
15380
  vxworks*)
15381
    # FIXME: insert proper C++ library support
15382
    ld_shlibs_CXX=no
15383
    ;;
15384
  *)
15385
    # FIXME: insert proper C++ library support
15386
    ld_shlibs_CXX=no
15387
    ;;
15388
esac
15389
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15390
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15391
test "$ld_shlibs_CXX" = no && can_build_shared=no
15392
15393
GCC_CXX="$GXX"
15394
LD_CXX="$LD"
15395
15396
cat > conftest.$ac_ext <<EOF
15397
class Foo
15398
{
15399
public:
15400
  Foo (void) { a = 0; }
15401
private:
15402
  int a;
15403
};
15404
EOF
15405
15406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407
  (eval $ac_compile) 2>&5
15408
  ac_status=$?
15409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410
  (exit $ac_status); }; then
15411
  # Parse the compiler output and extract the necessary
15412
  # objects, libraries and library flags.
15413
15414
  # Sentinel used to keep track of whether or not we are before
15415
  # the conftest object file.
15416
  pre_test_object_deps_done=no
15417
15418
  # The `*' in the case matches for architectures that use `case' in
15419
  # $output_verbose_cmd can trigger glob expansion during the loop
15420
  # eval without this substitution.
15421
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15422
15423
  for p in `eval $output_verbose_link_cmd`; do
15424
    case $p in
15425
15426
    -L* | -R* | -l*)
15427
       # Some compilers place space between "-{L,R}" and the path.
15428
       # Remove the space.
15429
       if test $p = "-L" \
15430
	  || test $p = "-R"; then
15431
	 prev=$p
15432
	 continue
15433
       else
15434
	 prev=
15435
       fi
15436
15437
       if test "$pre_test_object_deps_done" = no; then
15438
	 case $p in
15439
	 -L* | -R*)
15440
	   # Internal compiler library paths should come after those
15441
	   # provided the user.  The postdeps already come after the
15442
	   # user supplied libs so there is no need to process them.
15443
	   if test -z "$compiler_lib_search_path_CXX"; then
15444
	     compiler_lib_search_path_CXX="${prev}${p}"
15445
	   else
15446
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15447
	   fi
15448
	   ;;
15449
	 # The "-l" case would never come before the object being
15450
	 # linked, so don't bother handling this case.
15451
	 esac
15452
       else
15453
	 if test -z "$postdeps_CXX"; then
15454
	   postdeps_CXX="${prev}${p}"
15455
	 else
15456
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15457
	 fi
15458
       fi
15459
       ;;
15460
15461
    *.$objext)
15462
       # This assumes that the test object file only shows up
15463
       # once in the compiler output.
15464
       if test "$p" = "conftest.$objext"; then
15465
	 pre_test_object_deps_done=yes
15466
	 continue
15467
       fi
15468
15469
       if test "$pre_test_object_deps_done" = no; then
15470
	 if test -z "$predep_objects_CXX"; then
15471
	   predep_objects_CXX="$p"
15472
	 else
15473
	   predep_objects_CXX="$predep_objects_CXX $p"
15474
	 fi
15475
       else
15476
	 if test -z "$postdep_objects_CXX"; then
15477
	   postdep_objects_CXX="$p"
15478
	 else
15479
	   postdep_objects_CXX="$postdep_objects_CXX $p"
15480
	 fi
15481
       fi
15482
       ;;
15483
15484
    *) ;; # Ignore the rest.
15485
15486
    esac
15487
  done
15488
15489
  # Clean up.
15490
  rm -f a.out a.exe
15491
else
15492
  echo "libtool.m4: error: problem compiling CXX test program"
15493
fi
15494
15495
$rm -f confest.$objext
15496
15497
compiler_lib_search_dirs_CXX=
15498
if test -n "$compiler_lib_search_path_CXX"; then
15499
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15500
fi
15501
15502
# PORTME: override above test on systems where it is broken
15503
case $host_os in
15504
interix[3-9]*)
15505
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15506
  # hack all around it, let's just trust "g++" to DTRT.
15507
  predep_objects_CXX=
15508
  postdep_objects_CXX=
15509
  postdeps_CXX=
15510
  ;;
15511
15512
linux*)
15513
  case `$CC -V 2>&1 | sed 5q` in
15514
  *Sun\ C*)
15515
    # Sun C++ 5.9
15516
    #
15517
    # The more standards-conforming stlport4 library is
15518
    # incompatible with the Cstd library. Avoid specifying
15519
    # it if it's in CXXFLAGS. Ignore libCrun as
15520
    # -library=stlport4 depends on it.
15521
    case " $CXX $CXXFLAGS " in
15522
    *" -library=stlport4 "*)
15523
      solaris_use_stlport4=yes
15524
      ;;
15525
    esac
15526
    if test "$solaris_use_stlport4" != yes; then
15527
      postdeps_CXX='-library=Cstd -library=Crun'
15528
    fi
15529
    ;;
15530
  esac
15531
  ;;
15532
15533
solaris*)
15534
  case $cc_basename in
15535
  CC*)
15536
    # The more standards-conforming stlport4 library is
15537
    # incompatible with the Cstd library. Avoid specifying
15538
    # it if it's in CXXFLAGS. Ignore libCrun as
15539
    # -library=stlport4 depends on it.
15540
    case " $CXX $CXXFLAGS " in
15541
    *" -library=stlport4 "*)
15542
      solaris_use_stlport4=yes
15543
      ;;
15544
    esac
15545
15546
    # Adding this requires a known-good setup of shared libraries for
15547
    # Sun compiler versions before 5.6, else PIC objects from an old
15548
    # archive will be linked into the output, leading to subtle bugs.
15549
    if test "$solaris_use_stlport4" != yes; then
15550
      postdeps_CXX='-library=Cstd -library=Crun'
15551
    fi
15552
    ;;
15553
  esac
15554
  ;;
15555
esac
15556
15557
case " $postdeps_CXX " in
15558
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15559
esac
15560
15561
lt_prog_compiler_wl_CXX=
15562
lt_prog_compiler_pic_CXX=
15563
lt_prog_compiler_static_CXX=
15564
15565
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15566
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15567
15568
  # C++ specific cases for pic, static, wl, etc.
15569
  if test "$GXX" = yes; then
15570
    lt_prog_compiler_wl_CXX='-Wl,'
15571
    lt_prog_compiler_static_CXX='-static'
15572
15573
    case $host_os in
15574
    aix*)
15575
      # All AIX code is PIC.
15576
      if test "$host_cpu" = ia64; then
15577
	# AIX 5 now supports IA64 processor
15578
	lt_prog_compiler_static_CXX='-Bstatic'
15579
      fi
15580
      ;;
15581
    amigaos*)
15582
      # FIXME: we need at least 68020 code to build shared libraries, but
15583
      # adding the `-m68020' flag to GCC prevents building anything better,
15584
      # like `-m68040'.
15585
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15586
      ;;
15587
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15588
      # PIC is the default for these OSes.
15589
      ;;
15590
    mingw* | cygwin* | os2* | pw32*)
15591
      # This hack is so that the source file can tell whether it is being
15592
      # built for inclusion in a dll (and should export symbols for example).
15593
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15594
      # (--disable-auto-import) libraries
15595
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15596
      ;;
15597
    darwin* | rhapsody*)
15598
      # PIC is the default on this platform
15599
      # Common symbols not allowed in MH_DYLIB files
15600
      lt_prog_compiler_pic_CXX='-fno-common'
15601
      ;;
15602
    *djgpp*)
15603
      # DJGPP does not support shared libraries at all
15604
      lt_prog_compiler_pic_CXX=
15605
      ;;
15606
    interix[3-9]*)
15607
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15608
      # Instead, we relocate shared libraries at runtime.
15609
      ;;
15610
    sysv4*MP*)
15611
      if test -d /usr/nec; then
15612
	lt_prog_compiler_pic_CXX=-Kconform_pic
15613
      fi
15614
      ;;
15615
    hpux*)
15616
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15617
      # not for PA HP-UX.
15618
      case $host_cpu in
15619
      hppa*64*|ia64*)
15620
	;;
15621
      *)
15622
	lt_prog_compiler_pic_CXX='-fPIC'
15623
	;;
15624
      esac
15625
      ;;
15626
    *)
15627
      lt_prog_compiler_pic_CXX='-fPIC'
15628
      ;;
15629
    esac
15630
  else
15631
    case $host_os in
15632
      aix[4-9]*)
15633
	# All AIX code is PIC.
15634
	if test "$host_cpu" = ia64; then
15635
	  # AIX 5 now supports IA64 processor
15636
	  lt_prog_compiler_static_CXX='-Bstatic'
15637
	else
15638
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15639
	fi
15640
	;;
15641
      chorus*)
15642
	case $cc_basename in
15643
	cxch68*)
15644
	  # Green Hills C++ Compiler
15645
	  # _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"
15646
	  ;;
15647
	esac
15648
	;;
15649
       darwin*)
15650
         # PIC is the default on this platform
15651
         # Common symbols not allowed in MH_DYLIB files
15652
         case $cc_basename in
15653
           xlc*)
15654
           lt_prog_compiler_pic_CXX='-qnocommon'
15655
           lt_prog_compiler_wl_CXX='-Wl,'
15656
           ;;
15657
         esac
15658
       ;;
15659
      dgux*)
15660
	case $cc_basename in
15661
	  ec++*)
15662
	    lt_prog_compiler_pic_CXX='-KPIC'
15663
	    ;;
15664
	  ghcx*)
15665
	    # Green Hills C++ Compiler
15666
	    lt_prog_compiler_pic_CXX='-pic'
15667
	    ;;
15668
	  *)
15669
	    ;;
15670
	esac
15671
	;;
15672
      freebsd* | dragonfly*)
15673
	# FreeBSD uses GNU C++
15674
	;;
15675
      hpux9* | hpux10* | hpux11*)
15676
	case $cc_basename in
15677
	  CC*)
15678
	    lt_prog_compiler_wl_CXX='-Wl,'
15679
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15680
	    if test "$host_cpu" != ia64; then
15681
	      lt_prog_compiler_pic_CXX='+Z'
15682
	    fi
15683
	    ;;
15684
	  aCC*)
15685
	    lt_prog_compiler_wl_CXX='-Wl,'
15686
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15687
	    case $host_cpu in
15688
	    hppa*64*|ia64*)
15689
	      # +Z the default
15690
	      ;;
15691
	    *)
15692
	      lt_prog_compiler_pic_CXX='+Z'
15693
	      ;;
15694
	    esac
15695
	    ;;
15696
	  *)
15697
	    ;;
15698
	esac
15699
	;;
15700
      interix*)
15701
	# This is c89, which is MS Visual C++ (no shared libs)
15702
	# Anyone wants to do a port?
15703
	;;
15704
      irix5* | irix6* | nonstopux*)
15705
	case $cc_basename in
15706
	  CC*)
15707
	    lt_prog_compiler_wl_CXX='-Wl,'
15708
	    lt_prog_compiler_static_CXX='-non_shared'
15709
	    # CC pic flag -KPIC is the default.
15710
	    ;;
15711
	  *)
15712
	    ;;
15713
	esac
15714
	;;
15715
      linux* | k*bsd*-gnu)
15716
	case $cc_basename in
15717
	  KCC*)
15718
	    # KAI C++ Compiler
15719
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15720
	    lt_prog_compiler_pic_CXX='-fPIC'
15721
	    ;;
15722
	  icpc* | ecpc*)
15723
	    # Intel C++
15724
	    lt_prog_compiler_wl_CXX='-Wl,'
15725
	    lt_prog_compiler_pic_CXX='-KPIC'
15726
	    lt_prog_compiler_static_CXX='-static'
15727
	    ;;
15728
	  pgCC* | pgcpp*)
15729
	    # Portland Group C++ compiler.
15730
	    lt_prog_compiler_wl_CXX='-Wl,'
15731
	    lt_prog_compiler_pic_CXX='-fpic'
15732
	    lt_prog_compiler_static_CXX='-Bstatic'
15733
	    ;;
15734
	  cxx*)
15735
	    # Compaq C++
15736
	    # Make sure the PIC flag is empty.  It appears that all Alpha
15737
	    # Linux and Compaq Tru64 Unix objects are PIC.
15738
	    lt_prog_compiler_pic_CXX=
15739
	    lt_prog_compiler_static_CXX='-non_shared'
15740
	    ;;
15741
	  *)
15742
	    case `$CC -V 2>&1 | sed 5q` in
15743
	    *Sun\ C*)
15744
	      # Sun C++ 5.9
15745
	      lt_prog_compiler_pic_CXX='-KPIC'
15746
	      lt_prog_compiler_static_CXX='-Bstatic'
15747
	      lt_prog_compiler_wl_CXX='-Qoption ld '
15748
	      ;;
15749
	    esac
15750
	    ;;
15751
	esac
15752
	;;
15753
      lynxos*)
15754
	;;
15755
      m88k*)
15756
	;;
15757
      mvs*)
15758
	case $cc_basename in
15759
	  cxx*)
15760
	    lt_prog_compiler_pic_CXX='-W c,exportall'
15761
	    ;;
15762
	  *)
15763
	    ;;
15764
	esac
15765
	;;
15766
      netbsd* | netbsdelf*-gnu)
15767
	;;
15768
      osf3* | osf4* | osf5*)
15769
	case $cc_basename in
15770
	  KCC*)
15771
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15772
	    ;;
15773
	  RCC*)
15774
	    # Rational C++ 2.4.1
15775
	    lt_prog_compiler_pic_CXX='-pic'
15776
	    ;;
15777
	  cxx*)
15778
	    # Digital/Compaq C++
15779
	    lt_prog_compiler_wl_CXX='-Wl,'
15780
	    # Make sure the PIC flag is empty.  It appears that all Alpha
15781
	    # Linux and Compaq Tru64 Unix objects are PIC.
15782
	    lt_prog_compiler_pic_CXX=
15783
	    lt_prog_compiler_static_CXX='-non_shared'
15784
	    ;;
15785
	  *)
15786
	    ;;
15787
	esac
15788
	;;
15789
      psos*)
15790
	;;
15791
      solaris*)
15792
	case $cc_basename in
15793
	  CC*)
15794
	    # Sun C++ 4.2, 5.x and Centerline C++
15795
	    lt_prog_compiler_pic_CXX='-KPIC'
15796
	    lt_prog_compiler_static_CXX='-Bstatic'
15797
	    lt_prog_compiler_wl_CXX='-Qoption ld '
15798
	    ;;
15799
	  gcx*)
15800
	    # Green Hills C++ Compiler
15801
	    lt_prog_compiler_pic_CXX='-PIC'
15802
	    ;;
15803
	  *)
15804
	    ;;
15805
	esac
15806
	;;
15807
      sunos4*)
15808
	case $cc_basename in
15809
	  CC*)
15810
	    # Sun C++ 4.x
15811
	    lt_prog_compiler_pic_CXX='-pic'
15812
	    lt_prog_compiler_static_CXX='-Bstatic'
15813
	    ;;
15814
	  lcc*)
15815
	    # Lucid
15816
	    lt_prog_compiler_pic_CXX='-pic'
15817
	    ;;
15818
	  *)
15819
	    ;;
15820
	esac
15821
	;;
15822
      tandem*)
15823
	case $cc_basename in
15824
	  NCC*)
15825
	    # NonStop-UX NCC 3.20
15826
	    lt_prog_compiler_pic_CXX='-KPIC'
15827
	    ;;
15828
	  *)
15829
	    ;;
15830
	esac
15831
	;;
15832
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15833
	case $cc_basename in
15834
	  CC*)
15835
	    lt_prog_compiler_wl_CXX='-Wl,'
15836
	    lt_prog_compiler_pic_CXX='-KPIC'
15837
	    lt_prog_compiler_static_CXX='-Bstatic'
15838
	    ;;
15839
	esac
15840
	;;
15841
      vxworks*)
15842
	;;
15843
      *)
15844
	lt_prog_compiler_can_build_shared_CXX=no
15845
	;;
15846
    esac
15847
  fi
15848
15849
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15850
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15851
15852
#
15853
# Check to make sure the PIC flag actually works.
15854
#
15855
if test -n "$lt_prog_compiler_pic_CXX"; then
15856
15857
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15858
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15859
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15860
  echo $ECHO_N "(cached) $ECHO_C" >&6
15861
else
15862
  lt_cv_prog_compiler_pic_works_CXX=no
15863
  ac_outfile=conftest.$ac_objext
15864
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15865
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15866
   # Insert the option either (1) after the last *FLAGS variable, or
15867
   # (2) before a word containing "conftest.", or (3) at the end.
15868
   # Note that $ac_compile itself does not contain backslashes and begins
15869
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15870
   # The option is referenced via a variable to avoid confusing sed.
15871
   lt_compile=`echo "$ac_compile" | $SED \
15872
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15873
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15874
   -e 's:$: $lt_compiler_flag:'`
15875
   (eval echo "\"\$as_me:15875: $lt_compile\"" >&5)
15876
   (eval "$lt_compile" 2>conftest.err)
15877
   ac_status=$?
15878
   cat conftest.err >&5
15879
   echo "$as_me:15879: \$? = $ac_status" >&5
15880
   if (exit $ac_status) && test -s "$ac_outfile"; then
15881
     # The compiler can only warn and ignore the option if not recognized
15882
     # So say no if there are warnings other than the usual output.
15883
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15884
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15885
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15886
       lt_cv_prog_compiler_pic_works_CXX=yes
15887
     fi
15888
   fi
15889
   $rm conftest*
15890
15891
fi
15892
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15893
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15894
15895
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15896
    case $lt_prog_compiler_pic_CXX in
15897
     "" | " "*) ;;
15898
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15899
     esac
15900
else
15901
    lt_prog_compiler_pic_CXX=
15902
     lt_prog_compiler_can_build_shared_CXX=no
15903
fi
15904
15905
fi
15906
case $host_os in
15907
  # For platforms which do not support PIC, -DPIC is meaningless:
15908
  *djgpp*)
15909
    lt_prog_compiler_pic_CXX=
15910
    ;;
15911
  *)
15912
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15913
    ;;
15914
esac
15915
15916
#
15917
# Check to make sure the static flag actually works.
15918
#
15919
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15920
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15921
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15922
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15923
  echo $ECHO_N "(cached) $ECHO_C" >&6
15924
else
15925
  lt_cv_prog_compiler_static_works_CXX=no
15926
   save_LDFLAGS="$LDFLAGS"
15927
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15928
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15929
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15930
     # The linker can only warn and ignore the option if not recognized
15931
     # So say no if there are warnings
15932
     if test -s conftest.err; then
15933
       # Append any errors to the config.log.
15934
       cat conftest.err 1>&5
15935
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15936
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15937
       if diff conftest.exp conftest.er2 >/dev/null; then
15938
         lt_cv_prog_compiler_static_works_CXX=yes
15939
       fi
15940
     else
15941
       lt_cv_prog_compiler_static_works_CXX=yes
15942
     fi
15943
   fi
15944
   $rm -r conftest*
15945
   LDFLAGS="$save_LDFLAGS"
15946
15947
fi
15948
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15949
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
15950
15951
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15952
    :
15953
else
15954
    lt_prog_compiler_static_CXX=
15955
fi
15956
15957
15958
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15959
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15960
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15961
  echo $ECHO_N "(cached) $ECHO_C" >&6
15962
else
15963
  lt_cv_prog_compiler_c_o_CXX=no
15964
   $rm -r conftest 2>/dev/null
15965
   mkdir conftest
15966
   cd conftest
15967
   mkdir out
15968
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15969
15970
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15971
   # Insert the option either (1) after the last *FLAGS variable, or
15972
   # (2) before a word containing "conftest.", or (3) at the end.
15973
   # Note that $ac_compile itself does not contain backslashes and begins
15974
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15975
   lt_compile=`echo "$ac_compile" | $SED \
15976
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15977
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15978
   -e 's:$: $lt_compiler_flag:'`
15979
   (eval echo "\"\$as_me:15979: $lt_compile\"" >&5)
15980
   (eval "$lt_compile" 2>out/conftest.err)
15981
   ac_status=$?
15982
   cat out/conftest.err >&5
15983
   echo "$as_me:15983: \$? = $ac_status" >&5
15984
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15985
   then
15986
     # The compiler can only warn and ignore the option if not recognized
15987
     # So say no if there are warnings
15988
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15989
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15990
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15991
       lt_cv_prog_compiler_c_o_CXX=yes
15992
     fi
15993
   fi
15994
   chmod u+w . 2>&5
15995
   $rm conftest*
15996
   # SGI C++ compiler will create directory out/ii_files/ for
15997
   # template instantiation
15998
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15999
   $rm out/* && rmdir out
16000
   cd ..
16001
   rmdir conftest
16002
   $rm conftest*
16003
16004
fi
16005
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16006
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
16007
16008
16009
hard_links="nottested"
16010
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16011
  # do not overwrite the value of need_locks provided by the user
16012
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16013
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16014
  hard_links=yes
16015
  $rm conftest*
16016
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16017
  touch conftest.a
16018
  ln conftest.a conftest.b 2>&5 || hard_links=no
16019
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16020
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16021
echo "${ECHO_T}$hard_links" >&6; }
16022
  if test "$hard_links" = no; then
16023
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16024
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16025
    need_locks=warn
16026
  fi
16027
else
16028
  need_locks=no
16029
fi
16030
16031
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16032
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16033
16034
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16035
  case $host_os in
16036
  aix[4-9]*)
16037
    # If we're using GNU nm, then we don't want the "-C" option.
16038
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16039
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16040
      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'
16041
    else
16042
      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'
16043
    fi
16044
    ;;
16045
  pw32*)
16046
    export_symbols_cmds_CXX="$ltdll_cmds"
16047
  ;;
16048
  cygwin* | mingw*)
16049
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16050
  ;;
16051
  linux* | k*bsd*-gnu)
16052
    link_all_deplibs_CXX=no
16053
  ;;
16054
  *)
16055
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16056
  ;;
16057
  esac
16058
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16059
16060
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16061
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
16062
test "$ld_shlibs_CXX" = no && can_build_shared=no
16063
16064
#
16065
# Do we need to explicitly link libc?
16066
#
16067
case "x$archive_cmds_need_lc_CXX" in
16068
x|xyes)
16069
  # Assume -lc should be added
16070
  archive_cmds_need_lc_CXX=yes
16071
16072
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16073
    case $archive_cmds_CXX in
16074
    *'~'*)
16075
      # FIXME: we may have to deal with multi-command sequences.
16076
      ;;
16077
    '$CC '*)
16078
      # Test whether the compiler implicitly links with -lc since on some
16079
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16080
      # to ld, don't add -lc before -lgcc.
16081
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16082
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16083
      $rm conftest*
16084
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16085
16086
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16087
  (eval $ac_compile) 2>&5
16088
  ac_status=$?
16089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090
  (exit $ac_status); } 2>conftest.err; then
16091
        soname=conftest
16092
        lib=conftest
16093
        libobjs=conftest.$ac_objext
16094
        deplibs=
16095
        wl=$lt_prog_compiler_wl_CXX
16096
	pic_flag=$lt_prog_compiler_pic_CXX
16097
        compiler_flags=-v
16098
        linker_flags=-v
16099
        verstring=
16100
        output_objdir=.
16101
        libname=conftest
16102
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16103
        allow_undefined_flag_CXX=
16104
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16105
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16106
  ac_status=$?
16107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108
  (exit $ac_status); }
16109
        then
16110
	  archive_cmds_need_lc_CXX=no
16111
        else
16112
	  archive_cmds_need_lc_CXX=yes
16113
        fi
16114
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16115
      else
16116
        cat conftest.err 1>&5
16117
      fi
16118
      $rm conftest*
16119
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16120
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
16121
      ;;
16122
    esac
16123
  fi
16124
  ;;
16125
esac
16126
16127
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16128
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16129
library_names_spec=
16130
libname_spec='lib$name'
16131
soname_spec=
16132
shrext_cmds=".so"
16133
postinstall_cmds=
16134
postuninstall_cmds=
16135
finish_cmds=
16136
finish_eval=
16137
shlibpath_var=
16138
shlibpath_overrides_runpath=unknown
16139
version_type=none
16140
dynamic_linker="$host_os ld.so"
16141
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16142
16143
need_lib_prefix=unknown
16144
hardcode_into_libs=no
16145
16146
# when you set need_version to no, make sure it does not cause -set_version
16147
# flags to be left without arguments
16148
need_version=unknown
16149
16150
case $host_os in
16151
aix3*)
16152
  version_type=linux
16153
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16154
  shlibpath_var=LIBPATH
16155
16156
  # AIX 3 has no versioning support, so we append a major version to the name.
16157
  soname_spec='${libname}${release}${shared_ext}$major'
16158
  ;;
16159
16160
aix[4-9]*)
16161
  version_type=linux
16162
  need_lib_prefix=no
16163
  need_version=no
16164
  hardcode_into_libs=yes
16165
  if test "$host_cpu" = ia64; then
16166
    # AIX 5 supports IA64
16167
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16168
    shlibpath_var=LD_LIBRARY_PATH
16169
  else
16170
    # With GCC up to 2.95.x, collect2 would create an import file
16171
    # for dependence libraries.  The import file would start with
16172
    # the line `#! .'.  This would cause the generated library to
16173
    # depend on `.', always an invalid library.  This was fixed in
16174
    # development snapshots of GCC prior to 3.0.
16175
    case $host_os in
16176
      aix4 | aix4.[01] | aix4.[01].*)
16177
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16178
	   echo ' yes '
16179
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16180
	:
16181
      else
16182
	can_build_shared=no
16183
      fi
16184
      ;;
16185
    esac
16186
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16187
    # soname into executable. Probably we can add versioning support to
16188
    # collect2, so additional links can be useful in future.
16189
    if test "$aix_use_runtimelinking" = yes; then
16190
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16191
      # instead of lib<name>.a to let people know that these are not
16192
      # typical AIX shared libraries.
16193
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194
    else
16195
      # We preserve .a as extension for shared libraries through AIX4.2
16196
      # and later when we are not doing run time linking.
16197
      library_names_spec='${libname}${release}.a $libname.a'
16198
      soname_spec='${libname}${release}${shared_ext}$major'
16199
    fi
16200
    shlibpath_var=LIBPATH
16201
  fi
16202
  ;;
16203
16204
amigaos*)
16205
  library_names_spec='$libname.ixlibrary $libname.a'
16206
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16207
  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'
16208
  ;;
16209
16210
beos*)
16211
  library_names_spec='${libname}${shared_ext}'
16212
  dynamic_linker="$host_os ld.so"
16213
  shlibpath_var=LIBRARY_PATH
16214
  ;;
16215
16216
bsdi[45]*)
16217
  version_type=linux
16218
  need_version=no
16219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220
  soname_spec='${libname}${release}${shared_ext}$major'
16221
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16222
  shlibpath_var=LD_LIBRARY_PATH
16223
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16224
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16225
  # the default ld.so.conf also contains /usr/contrib/lib and
16226
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16227
  # libtool to hard-code these into programs
16228
  ;;
16229
16230
cygwin* | mingw* | pw32*)
16231
  version_type=windows
16232
  shrext_cmds=".dll"
16233
  need_version=no
16234
  need_lib_prefix=no
16235
16236
  case $GCC,$host_os in
16237
  yes,cygwin* | yes,mingw* | yes,pw32*)
16238
    library_names_spec='$libname.dll.a'
16239
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16240
    postinstall_cmds='base_file=`basename \${file}`~
16241
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16242
      dldir=$destdir/`dirname \$dlpath`~
16243
      test -d \$dldir || mkdir -p \$dldir~
16244
      $install_prog $dir/$dlname \$dldir/$dlname~
16245
      chmod a+x \$dldir/$dlname'
16246
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16247
      dlpath=$dir/\$dldll~
16248
       $rm \$dlpath'
16249
    shlibpath_overrides_runpath=yes
16250
16251
    case $host_os in
16252
    cygwin*)
16253
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16254
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16255
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16256
      ;;
16257
    mingw*)
16258
      # MinGW DLLs use traditional 'lib' prefix
16259
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16260
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16261
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16262
        # It is most probably a Windows format PATH printed by
16263
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16264
        # path with ; separators, and with drive letters. We can handle the
16265
        # drive letters (cygwin fileutils understands them), so leave them,
16266
        # especially as we might pass files found there to a mingw objdump,
16267
        # which wouldn't understand a cygwinified path. Ahh.
16268
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16269
      else
16270
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16271
      fi
16272
      ;;
16273
    pw32*)
16274
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16275
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16276
      ;;
16277
    esac
16278
    ;;
16279
16280
  *)
16281
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16282
    ;;
16283
  esac
16284
  dynamic_linker='Win32 ld.exe'
16285
  # FIXME: first we should search . and the directory the executable is in
16286
  shlibpath_var=PATH
16287
  ;;
16288
16289
darwin* | rhapsody*)
16290
  dynamic_linker="$host_os dyld"
16291
  version_type=darwin
16292
  need_lib_prefix=no
16293
  need_version=no
16294
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16295
  soname_spec='${libname}${release}${major}$shared_ext'
16296
  shlibpath_overrides_runpath=yes
16297
  shlibpath_var=DYLD_LIBRARY_PATH
16298
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16299
16300
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16301
  ;;
16302
16303
dgux*)
16304
  version_type=linux
16305
  need_lib_prefix=no
16306
  need_version=no
16307
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16308
  soname_spec='${libname}${release}${shared_ext}$major'
16309
  shlibpath_var=LD_LIBRARY_PATH
16310
  ;;
16311
16312
freebsd1*)
16313
  dynamic_linker=no
16314
  ;;
16315
16316
freebsd* | dragonfly*)
16317
  # DragonFly does not have aout.  When/if they implement a new
16318
  # versioning mechanism, adjust this.
16319
  if test -x /usr/bin/objformat; then
16320
    objformat=`/usr/bin/objformat`
16321
  else
16322
    case $host_os in
16323
    freebsd[123]*) objformat=aout ;;
16324
    *) objformat=elf ;;
16325
    esac
16326
  fi
16327
  version_type=freebsd-$objformat
16328
  case $version_type in
16329
    freebsd-elf*)
16330
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16331
      need_version=no
16332
      need_lib_prefix=no
16333
      ;;
16334
    freebsd-*)
16335
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16336
      need_version=yes
16337
      ;;
16338
  esac
16339
  shlibpath_var=LD_LIBRARY_PATH
16340
  case $host_os in
16341
  freebsd2*)
16342
    shlibpath_overrides_runpath=yes
16343
    ;;
16344
  freebsd3.[01]* | freebsdelf3.[01]*)
16345
    shlibpath_overrides_runpath=yes
16346
    hardcode_into_libs=yes
16347
    ;;
16348
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16349
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16350
    shlibpath_overrides_runpath=no
16351
    hardcode_into_libs=yes
16352
    ;;
16353
  *) # from 4.6 on, and DragonFly
16354
    shlibpath_overrides_runpath=yes
16355
    hardcode_into_libs=yes
16356
    ;;
16357
  esac
16358
  ;;
16359
16360
gnu*)
16361
  version_type=linux
16362
  need_lib_prefix=no
16363
  need_version=no
16364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16365
  soname_spec='${libname}${release}${shared_ext}$major'
16366
  shlibpath_var=LD_LIBRARY_PATH
16367
  hardcode_into_libs=yes
16368
  ;;
16369
16370
hpux9* | hpux10* | hpux11*)
16371
  # Give a soname corresponding to the major version so that dld.sl refuses to
16372
  # link against other versions.
16373
  version_type=sunos
16374
  need_lib_prefix=no
16375
  need_version=no
16376
  case $host_cpu in
16377
  ia64*)
16378
    shrext_cmds='.so'
16379
    hardcode_into_libs=yes
16380
    dynamic_linker="$host_os dld.so"
16381
    shlibpath_var=LD_LIBRARY_PATH
16382
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16383
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384
    soname_spec='${libname}${release}${shared_ext}$major'
16385
    if test "X$HPUX_IA64_MODE" = X32; then
16386
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16387
    else
16388
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16389
    fi
16390
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16391
    ;;
16392
   hppa*64*)
16393
     shrext_cmds='.sl'
16394
     hardcode_into_libs=yes
16395
     dynamic_linker="$host_os dld.sl"
16396
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16397
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16398
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399
     soname_spec='${libname}${release}${shared_ext}$major'
16400
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16401
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16402
     ;;
16403
   *)
16404
    shrext_cmds='.sl'
16405
    dynamic_linker="$host_os dld.sl"
16406
    shlibpath_var=SHLIB_PATH
16407
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16408
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409
    soname_spec='${libname}${release}${shared_ext}$major'
16410
    ;;
16411
  esac
16412
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16413
  postinstall_cmds='chmod 555 $lib'
16414
  ;;
16415
16416
interix[3-9]*)
16417
  version_type=linux
16418
  need_lib_prefix=no
16419
  need_version=no
16420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16421
  soname_spec='${libname}${release}${shared_ext}$major'
16422
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16423
  shlibpath_var=LD_LIBRARY_PATH
16424
  shlibpath_overrides_runpath=no
16425
  hardcode_into_libs=yes
16426
  ;;
16427
16428
irix5* | irix6* | nonstopux*)
16429
  case $host_os in
16430
    nonstopux*) version_type=nonstopux ;;
16431
    *)
16432
	if test "$lt_cv_prog_gnu_ld" = yes; then
16433
		version_type=linux
16434
	else
16435
		version_type=irix
16436
	fi ;;
16437
  esac
16438
  need_lib_prefix=no
16439
  need_version=no
16440
  soname_spec='${libname}${release}${shared_ext}$major'
16441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16442
  case $host_os in
16443
  irix5* | nonstopux*)
16444
    libsuff= shlibsuff=
16445
    ;;
16446
  *)
16447
    case $LD in # libtool.m4 will add one of these switches to LD
16448
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16449
      libsuff= shlibsuff= libmagic=32-bit;;
16450
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16451
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16452
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16453
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16454
    *) libsuff= shlibsuff= libmagic=never-match;;
16455
    esac
16456
    ;;
16457
  esac
16458
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16459
  shlibpath_overrides_runpath=no
16460
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16461
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16462
  hardcode_into_libs=yes
16463
  ;;
16464
16465
# No shared lib support for Linux oldld, aout, or coff.
16466
linux*oldld* | linux*aout* | linux*coff*)
16467
  dynamic_linker=no
16468
  ;;
16469
16470
# This must be Linux ELF.
16471
linux* | k*bsd*-gnu)
16472
  version_type=linux
16473
  need_lib_prefix=no
16474
  need_version=no
16475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476
  soname_spec='${libname}${release}${shared_ext}$major'
16477
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16478
  shlibpath_var=LD_LIBRARY_PATH
16479
  shlibpath_overrides_runpath=no
16480
  # This implies no fast_install, which is unacceptable.
16481
  # Some rework will be needed to allow for fast_install
16482
  # before this can be enabled.
16483
  hardcode_into_libs=yes
16484
16485
  # Append ld.so.conf contents to the search path
16486
  if test -f /etc/ld.so.conf; then
16487
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16488
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16489
  fi
16490
16491
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16492
  # powerpc, because MkLinux only supported shared libraries with the
16493
  # GNU dynamic linker.  Since this was broken with cross compilers,
16494
  # most powerpc-linux boxes support dynamic linking these days and
16495
  # people can always --disable-shared, the test was removed, and we
16496
  # assume the GNU/Linux dynamic linker is in use.
16497
  dynamic_linker='GNU/Linux ld.so'
16498
  ;;
16499
16500
netbsdelf*-gnu)
16501
  version_type=linux
16502
  need_lib_prefix=no
16503
  need_version=no
16504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16505
  soname_spec='${libname}${release}${shared_ext}$major'
16506
  shlibpath_var=LD_LIBRARY_PATH
16507
  shlibpath_overrides_runpath=no
16508
  hardcode_into_libs=yes
16509
  dynamic_linker='NetBSD ld.elf_so'
16510
  ;;
16511
16512
netbsd*)
16513
  version_type=sunos
16514
  need_lib_prefix=no
16515
  need_version=no
16516
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16517
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16518
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16519
    dynamic_linker='NetBSD (a.out) ld.so'
16520
  else
16521
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16522
    soname_spec='${libname}${release}${shared_ext}$major'
16523
    dynamic_linker='NetBSD ld.elf_so'
16524
  fi
16525
  shlibpath_var=LD_LIBRARY_PATH
16526
  shlibpath_overrides_runpath=yes
16527
  hardcode_into_libs=yes
16528
  ;;
16529
16530
newsos6)
16531
  version_type=linux
16532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16533
  shlibpath_var=LD_LIBRARY_PATH
16534
  shlibpath_overrides_runpath=yes
16535
  ;;
16536
16537
nto-qnx*)
16538
  version_type=linux
16539
  need_lib_prefix=no
16540
  need_version=no
16541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542
  soname_spec='${libname}${release}${shared_ext}$major'
16543
  shlibpath_var=LD_LIBRARY_PATH
16544
  shlibpath_overrides_runpath=yes
16545
  ;;
16546
16547
openbsd*)
16548
  version_type=sunos
16549
  sys_lib_dlsearch_path_spec="/usr/lib"
16550
  need_lib_prefix=no
16551
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16552
  case $host_os in
16553
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16554
    *)                         need_version=no  ;;
16555
  esac
16556
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16557
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16558
  shlibpath_var=LD_LIBRARY_PATH
16559
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16560
    case $host_os in
16561
      openbsd2.[89] | openbsd2.[89].*)
16562
	shlibpath_overrides_runpath=no
16563
	;;
16564
      *)
16565
	shlibpath_overrides_runpath=yes
16566
	;;
16567
      esac
16568
  else
16569
    shlibpath_overrides_runpath=yes
16570
  fi
16571
  ;;
16572
16573
os2*)
16574
  libname_spec='$name'
16575
  shrext_cmds=".dll"
16576
  need_lib_prefix=no
16577
  library_names_spec='$libname${shared_ext} $libname.a'
16578
  dynamic_linker='OS/2 ld.exe'
16579
  shlibpath_var=LIBPATH
16580
  ;;
16581
16582
osf3* | osf4* | osf5*)
16583
  version_type=osf
16584
  need_lib_prefix=no
16585
  need_version=no
16586
  soname_spec='${libname}${release}${shared_ext}$major'
16587
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16588
  shlibpath_var=LD_LIBRARY_PATH
16589
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16590
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16591
  ;;
16592
16593
rdos*)
16594
  dynamic_linker=no
16595
  ;;
16596
16597
solaris*)
16598
  version_type=linux
16599
  need_lib_prefix=no
16600
  need_version=no
16601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602
  soname_spec='${libname}${release}${shared_ext}$major'
16603
  shlibpath_var=LD_LIBRARY_PATH
16604
  shlibpath_overrides_runpath=yes
16605
  hardcode_into_libs=yes
16606
  # ldd complains unless libraries are executable
16607
  postinstall_cmds='chmod +x $lib'
16608
  ;;
16609
16610
sunos4*)
16611
  version_type=sunos
16612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16613
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16614
  shlibpath_var=LD_LIBRARY_PATH
16615
  shlibpath_overrides_runpath=yes
16616
  if test "$with_gnu_ld" = yes; then
16617
    need_lib_prefix=no
16618
  fi
16619
  need_version=yes
16620
  ;;
16621
16622
sysv4 | sysv4.3*)
16623
  version_type=linux
16624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625
  soname_spec='${libname}${release}${shared_ext}$major'
16626
  shlibpath_var=LD_LIBRARY_PATH
16627
  case $host_vendor in
16628
    sni)
16629
      shlibpath_overrides_runpath=no
16630
      need_lib_prefix=no
16631
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16632
      runpath_var=LD_RUN_PATH
16633
      ;;
16634
    siemens)
16635
      need_lib_prefix=no
16636
      ;;
16637
    motorola)
16638
      need_lib_prefix=no
16639
      need_version=no
16640
      shlibpath_overrides_runpath=no
16641
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16642
      ;;
16643
  esac
16644
  ;;
16645
16646
sysv4*MP*)
16647
  if test -d /usr/nec ;then
16648
    version_type=linux
16649
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16650
    soname_spec='$libname${shared_ext}.$major'
16651
    shlibpath_var=LD_LIBRARY_PATH
16652
  fi
16653
  ;;
16654
16655
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16656
  version_type=freebsd-elf
16657
  need_lib_prefix=no
16658
  need_version=no
16659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16660
  soname_spec='${libname}${release}${shared_ext}$major'
16661
  shlibpath_var=LD_LIBRARY_PATH
16662
  hardcode_into_libs=yes
16663
  if test "$with_gnu_ld" = yes; then
16664
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16665
    shlibpath_overrides_runpath=no
16666
  else
16667
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16668
    shlibpath_overrides_runpath=yes
16669
    case $host_os in
16670
      sco3.2v5*)
16671
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16672
	;;
16673
    esac
16674
  fi
16675
  sys_lib_dlsearch_path_spec='/usr/lib'
16676
  ;;
16677
16678
uts4*)
16679
  version_type=linux
16680
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681
  soname_spec='${libname}${release}${shared_ext}$major'
16682
  shlibpath_var=LD_LIBRARY_PATH
16683
  ;;
16684
16685
*)
16686
  dynamic_linker=no
16687
  ;;
16688
esac
16689
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16690
echo "${ECHO_T}$dynamic_linker" >&6; }
16691
test "$dynamic_linker" = no && can_build_shared=no
16692
16693
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16694
  echo $ECHO_N "(cached) $ECHO_C" >&6
16695
else
16696
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16697
fi
16698
16699
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16700
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16701
  echo $ECHO_N "(cached) $ECHO_C" >&6
16702
else
16703
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16704
fi
16705
16706
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16707
16708
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16709
if test "$GCC" = yes; then
16710
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16711
fi
16712
16713
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16714
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16715
hardcode_action_CXX=
16716
if test -n "$hardcode_libdir_flag_spec_CXX" || \
16717
   test -n "$runpath_var_CXX" || \
16718
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16719
16720
  # We can hardcode non-existant directories.
16721
  if test "$hardcode_direct_CXX" != no &&
16722
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16723
     # have to relink, otherwise we might link with an installed library
16724
     # when we should be linking with a yet-to-be-installed one
16725
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16726
     test "$hardcode_minus_L_CXX" != no; then
16727
    # Linking always hardcodes the temporary library directory.
16728
    hardcode_action_CXX=relink
16729
  else
16730
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16731
    hardcode_action_CXX=immediate
16732
  fi
16733
else
16734
  # We cannot hardcode anything, or else we can only hardcode existing
16735
  # directories.
16736
  hardcode_action_CXX=unsupported
16737
fi
16738
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16739
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16740
16741
if test "$hardcode_action_CXX" = relink; then
16742
  # Fast installation is not supported
16743
  enable_fast_install=no
16744
elif test "$shlibpath_overrides_runpath" = yes ||
16745
     test "$enable_shared" = no; then
16746
  # Fast installation is not necessary
16747
  enable_fast_install=needless
16748
fi
16749
16750
16751
# The else clause should only fire when bootstrapping the
16752
# libtool distribution, otherwise you forgot to ship ltmain.sh
16753
# with your package, and you will get complaints that there are
16754
# no rules to generate ltmain.sh.
16755
if test -f "$ltmain"; then
16756
  # See if we are running on zsh, and set the options which allow our commands through
16757
  # without removal of \ escapes.
16758
  if test -n "${ZSH_VERSION+set}" ; then
16759
    setopt NO_GLOB_SUBST
16760
  fi
16761
  # Now quote all the things that may contain metacharacters while being
16762
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16763
  # variables and quote the copies for generation of the libtool script.
16764
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16765
    SED SHELL STRIP \
16766
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16767
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16768
    deplibs_check_method reload_flag reload_cmds need_locks \
16769
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16770
    lt_cv_sys_global_symbol_to_c_name_address \
16771
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16772
    old_postinstall_cmds old_postuninstall_cmds \
16773
    compiler_CXX \
16774
    CC_CXX \
16775
    LD_CXX \
16776
    lt_prog_compiler_wl_CXX \
16777
    lt_prog_compiler_pic_CXX \
16778
    lt_prog_compiler_static_CXX \
16779
    lt_prog_compiler_no_builtin_flag_CXX \
16780
    export_dynamic_flag_spec_CXX \
16781
    thread_safe_flag_spec_CXX \
16782
    whole_archive_flag_spec_CXX \
16783
    enable_shared_with_static_runtimes_CXX \
16784
    old_archive_cmds_CXX \
16785
    old_archive_from_new_cmds_CXX \
16786
    predep_objects_CXX \
16787
    postdep_objects_CXX \
16788
    predeps_CXX \
16789
    postdeps_CXX \
16790
    compiler_lib_search_path_CXX \
16791
    compiler_lib_search_dirs_CXX \
16792
    archive_cmds_CXX \
16793
    archive_expsym_cmds_CXX \
16794
    postinstall_cmds_CXX \
16795
    postuninstall_cmds_CXX \
16796
    old_archive_from_expsyms_cmds_CXX \
16797
    allow_undefined_flag_CXX \
16798
    no_undefined_flag_CXX \
16799
    export_symbols_cmds_CXX \
16800
    hardcode_libdir_flag_spec_CXX \
16801
    hardcode_libdir_flag_spec_ld_CXX \
16802
    hardcode_libdir_separator_CXX \
16803
    hardcode_automatic_CXX \
16804
    module_cmds_CXX \
16805
    module_expsym_cmds_CXX \
16806
    lt_cv_prog_compiler_c_o_CXX \
16807
    fix_srcfile_path_CXX \
16808
    exclude_expsyms_CXX \
16809
    include_expsyms_CXX; do
16810
16811
    case $var in
16812
    old_archive_cmds_CXX | \
16813
    old_archive_from_new_cmds_CXX | \
16814
    archive_cmds_CXX | \
16815
    archive_expsym_cmds_CXX | \
16816
    module_cmds_CXX | \
16817
    module_expsym_cmds_CXX | \
16818
    old_archive_from_expsyms_cmds_CXX | \
16819
    export_symbols_cmds_CXX | \
16820
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16821
    postinstall_cmds | postuninstall_cmds | \
16822
    old_postinstall_cmds | old_postuninstall_cmds | \
16823
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16824
      # Double-quote double-evaled strings.
16825
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16826
      ;;
16827
    *)
16828
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16829
      ;;
16830
    esac
16831
  done
16832
16833
  case $lt_echo in
16834
  *'\$0 --fallback-echo"')
16835
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16836
    ;;
16837
  esac
16838
16839
cfgfile="$ofile"
16840
16841
  cat <<__EOF__ >> "$cfgfile"
16842
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16843
16844
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16845
16846
# Shell to use when invoking shell scripts.
16847
SHELL=$lt_SHELL
16848
16849
# Whether or not to build shared libraries.
16850
build_libtool_libs=$enable_shared
16851
16852
# Whether or not to build static libraries.
16853
build_old_libs=$enable_static
16854
16855
# Whether or not to add -lc for building shared libraries.
16856
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16857
16858
# Whether or not to disallow shared libs when runtime libs are static
16859
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16860
16861
# Whether or not to optimize for fast installation.
16862
fast_install=$enable_fast_install
16863
16864
# The host system.
16865
host_alias=$host_alias
16866
host=$host
16867
host_os=$host_os
16868
16869
# The build system.
16870
build_alias=$build_alias
16871
build=$build
16872
build_os=$build_os
16873
16874
# An echo program that does not interpret backslashes.
16875
echo=$lt_echo
16876
16877
# The archiver.
16878
AR=$lt_AR
16879
AR_FLAGS=$lt_AR_FLAGS
16880
16881
# A C compiler.
16882
LTCC=$lt_LTCC
16883
16884
# LTCC compiler flags.
16885
LTCFLAGS=$lt_LTCFLAGS
16886
16887
# A language-specific compiler.
16888
CC=$lt_compiler_CXX
16889
16890
# Is the compiler the GNU C compiler?
16891
with_gcc=$GCC_CXX
16892
16893
# An ERE matcher.
16894
EGREP=$lt_EGREP
16895
16896
# The linker used to build libraries.
16897
LD=$lt_LD_CXX
16898
16899
# Whether we need hard or soft links.
16900
LN_S=$lt_LN_S
16901
16902
# A BSD-compatible nm program.
16903
NM=$lt_NM
16904
16905
# A symbol stripping program
16906
STRIP=$lt_STRIP
16907
16908
# Used to examine libraries when file_magic_cmd begins "file"
16909
MAGIC_CMD=$MAGIC_CMD
16910
16911
# Used on cygwin: DLL creation program.
16912
DLLTOOL="$DLLTOOL"
16913
16914
# Used on cygwin: object dumper.
16915
OBJDUMP="$OBJDUMP"
16916
16917
# Used on cygwin: assembler.
16918
AS="$AS"
16919
16920
# The name of the directory that contains temporary libtool files.
16921
objdir=$objdir
16922
16923
# How to create reloadable object files.
16924
reload_flag=$lt_reload_flag
16925
reload_cmds=$lt_reload_cmds
16926
16927
# How to pass a linker flag through the compiler.
16928
wl=$lt_lt_prog_compiler_wl_CXX
16929
16930
# Object file suffix (normally "o").
16931
objext="$ac_objext"
16932
16933
# Old archive suffix (normally "a").
16934
libext="$libext"
16935
16936
# Shared library suffix (normally ".so").
16937
shrext_cmds='$shrext_cmds'
16938
16939
# Executable file suffix (normally "").
16940
exeext="$exeext"
16941
16942
# Additional compiler flags for building library objects.
16943
pic_flag=$lt_lt_prog_compiler_pic_CXX
16944
pic_mode=$pic_mode
16945
16946
# What is the maximum length of a command?
16947
max_cmd_len=$lt_cv_sys_max_cmd_len
16948
16949
# Does compiler simultaneously support -c and -o options?
16950
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16951
16952
# Must we lock files when doing compilation?
16953
need_locks=$lt_need_locks
16954
16955
# Do we need the lib prefix for modules?
16956
need_lib_prefix=$need_lib_prefix
16957
16958
# Do we need a version for libraries?
16959
need_version=$need_version
16960
16961
# Whether dlopen is supported.
16962
dlopen_support=$enable_dlopen
16963
16964
# Whether dlopen of programs is supported.
16965
dlopen_self=$enable_dlopen_self
16966
16967
# Whether dlopen of statically linked programs is supported.
16968
dlopen_self_static=$enable_dlopen_self_static
16969
16970
# Compiler flag to prevent dynamic linking.
16971
link_static_flag=$lt_lt_prog_compiler_static_CXX
16972
16973
# Compiler flag to turn off builtin functions.
16974
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16975
16976
# Compiler flag to allow reflexive dlopens.
16977
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16978
16979
# Compiler flag to generate shared objects directly from archives.
16980
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16981
16982
# Compiler flag to generate thread-safe objects.
16983
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16984
16985
# Library versioning type.
16986
version_type=$version_type
16987
16988
# Format of library name prefix.
16989
libname_spec=$lt_libname_spec
16990
16991
# List of archive names.  First name is the real one, the rest are links.
16992
# The last name is the one that the linker finds with -lNAME.
16993
library_names_spec=$lt_library_names_spec
16994
16995
# The coded name of the library, if different from the real name.
16996
soname_spec=$lt_soname_spec
16997
16998
# Commands used to build and install an old-style archive.
16999
RANLIB=$lt_RANLIB
17000
old_archive_cmds=$lt_old_archive_cmds_CXX
17001
old_postinstall_cmds=$lt_old_postinstall_cmds
17002
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17003
17004
# Create an old-style archive from a shared archive.
17005
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17006
17007
# Create a temporary old-style archive to link instead of a shared archive.
17008
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17009
17010
# Commands used to build and install a shared archive.
17011
archive_cmds=$lt_archive_cmds_CXX
17012
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17013
postinstall_cmds=$lt_postinstall_cmds
17014
postuninstall_cmds=$lt_postuninstall_cmds
17015
17016
# Commands used to build a loadable module (assumed same as above if empty)
17017
module_cmds=$lt_module_cmds_CXX
17018
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17019
17020
# Commands to strip libraries.
17021
old_striplib=$lt_old_striplib
17022
striplib=$lt_striplib
17023
17024
# Dependencies to place before the objects being linked to create a
17025
# shared library.
17026
predep_objects=$lt_predep_objects_CXX
17027
17028
# Dependencies to place after the objects being linked to create a
17029
# shared library.
17030
postdep_objects=$lt_postdep_objects_CXX
17031
17032
# Dependencies to place before the objects being linked to create a
17033
# shared library.
17034
predeps=$lt_predeps_CXX
17035
17036
# Dependencies to place after the objects being linked to create a
17037
# shared library.
17038
postdeps=$lt_postdeps_CXX
17039
17040
# The directories searched by this compiler when creating a shared
17041
# library
17042
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17043
17044
# The library search path used internally by the compiler when linking
17045
# a shared library.
17046
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17047
17048
# Method to check whether dependent libraries are shared objects.
17049
deplibs_check_method=$lt_deplibs_check_method
17050
17051
# Command to use when deplibs_check_method == file_magic.
17052
file_magic_cmd=$lt_file_magic_cmd
17053
17054
# Flag that allows shared libraries with undefined symbols to be built.
17055
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17056
17057
# Flag that forces no undefined symbols.
17058
no_undefined_flag=$lt_no_undefined_flag_CXX
17059
17060
# Commands used to finish a libtool library installation in a directory.
17061
finish_cmds=$lt_finish_cmds
17062
17063
# Same as above, but a single script fragment to be evaled but not shown.
17064
finish_eval=$lt_finish_eval
17065
17066
# Take the output of nm and produce a listing of raw symbols and C names.
17067
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17068
17069
# Transform the output of nm in a proper C declaration
17070
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17071
17072
# Transform the output of nm in a C name address pair
17073
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17074
17075
# This is the shared library runtime path variable.
17076
runpath_var=$runpath_var
17077
17078
# This is the shared library path variable.
17079
shlibpath_var=$shlibpath_var
17080
17081
# Is shlibpath searched before the hard-coded library search path?
17082
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17083
17084
# How to hardcode a shared library path into an executable.
17085
hardcode_action=$hardcode_action_CXX
17086
17087
# Whether we should hardcode library paths into libraries.
17088
hardcode_into_libs=$hardcode_into_libs
17089
17090
# Flag to hardcode \$libdir into a binary during linking.
17091
# This must work even if \$libdir does not exist.
17092
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17093
17094
# If ld is used when linking, flag to hardcode \$libdir into
17095
# a binary during linking. This must work even if \$libdir does
17096
# not exist.
17097
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17098
17099
# Whether we need a single -rpath flag with a separated argument.
17100
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17101
17102
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17103
# resulting binary.
17104
hardcode_direct=$hardcode_direct_CXX
17105
17106
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17107
# resulting binary.
17108
hardcode_minus_L=$hardcode_minus_L_CXX
17109
17110
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17111
# the resulting binary.
17112
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17113
17114
# Set to yes if building a shared library automatically hardcodes DIR into the library
17115
# and all subsequent libraries and executables linked against it.
17116
hardcode_automatic=$hardcode_automatic_CXX
17117
17118
# Variables whose values should be saved in libtool wrapper scripts and
17119
# restored at relink time.
17120
variables_saved_for_relink="$variables_saved_for_relink"
17121
17122
# Whether libtool must link a program against all its dependency libraries.
17123
link_all_deplibs=$link_all_deplibs_CXX
17124
17125
# Compile-time system search path for libraries
17126
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17127
17128
# Run-time system search path for libraries
17129
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17130
17131
# Fix the shell variable \$srcfile for the compiler.
17132
fix_srcfile_path=$lt_fix_srcfile_path
17133
17134
# Set to yes if exported symbols are required.
17135
always_export_symbols=$always_export_symbols_CXX
17136
17137
# The commands to list exported symbols.
17138
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17139
17140
# The commands to extract the exported symbol list from a shared archive.
17141
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17142
17143
# Symbols that should not be listed in the preloaded symbols.
17144
exclude_expsyms=$lt_exclude_expsyms_CXX
17145
17146
# Symbols that must always be exported.
17147
include_expsyms=$lt_include_expsyms_CXX
17148
17149
# ### END LIBTOOL TAG CONFIG: $tagname
17150
17151
__EOF__
17152
17153
17154
else
17155
  # If there is no Makefile yet, we rely on a make rule to execute
17156
  # `config.status --recheck' to rerun these tests and create the
17157
  # libtool script then.
17158
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17159
  if test -f "$ltmain_in"; then
17160
    test -f Makefile && make "$ltmain"
17161
  fi
17162
fi
17163
17164
17165
ac_ext=c
17166
ac_cpp='$CPP $CPPFLAGS'
17167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17170
17171
CC=$lt_save_CC
17172
LDCXX=$LD
17173
LD=$lt_save_LD
17174
GCC=$lt_save_GCC
17175
with_gnu_ldcxx=$with_gnu_ld
17176
with_gnu_ld=$lt_save_with_gnu_ld
17177
lt_cv_path_LDCXX=$lt_cv_path_LD
17178
lt_cv_path_LD=$lt_save_path_LD
17179
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17180
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17181
17182
	else
17183
	  tagname=""
17184
	fi
17185
	;;
17186
17187
      F77)
17188
	if test -n "$F77" && test "X$F77" != "Xno"; then
17189
17190
ac_ext=f
17191
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17192
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17193
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17194
17195
17196
archive_cmds_need_lc_F77=no
17197
allow_undefined_flag_F77=
17198
always_export_symbols_F77=no
17199
archive_expsym_cmds_F77=
17200
export_dynamic_flag_spec_F77=
17201
hardcode_direct_F77=no
17202
hardcode_libdir_flag_spec_F77=
17203
hardcode_libdir_flag_spec_ld_F77=
17204
hardcode_libdir_separator_F77=
17205
hardcode_minus_L_F77=no
17206
hardcode_automatic_F77=no
17207
module_cmds_F77=
17208
module_expsym_cmds_F77=
17209
link_all_deplibs_F77=unknown
17210
old_archive_cmds_F77=$old_archive_cmds
17211
no_undefined_flag_F77=
17212
whole_archive_flag_spec_F77=
17213
enable_shared_with_static_runtimes_F77=no
17214
17215
# Source file extension for f77 test sources.
17216
ac_ext=f
17217
17218
# Object file extension for compiled f77 test sources.
17219
objext=o
17220
objext_F77=$objext
17221
17222
# Code to be used in simple compile tests
17223
lt_simple_compile_test_code="\
17224
      subroutine t
17225
      return
17226
      end
17227
"
17228
17229
# Code to be used in simple link tests
17230
lt_simple_link_test_code="\
17231
      program t
17232
      end
17233
"
17234
17235
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17236
17237
# If no C compiler was specified, use CC.
17238
LTCC=${LTCC-"$CC"}
17239
17240
# If no C compiler flags were specified, use CFLAGS.
17241
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17242
17243
# Allow CC to be a program name with arguments.
17244
compiler=$CC
17245
17246
17247
# save warnings/boilerplate of simple test code
17248
ac_outfile=conftest.$ac_objext
17249
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17250
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17251
_lt_compiler_boilerplate=`cat conftest.err`
17252
$rm conftest*
17253
17254
ac_outfile=conftest.$ac_objext
17255
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17256
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17257
_lt_linker_boilerplate=`cat conftest.err`
17258
$rm -r conftest*
17259
17260
17261
# Allow CC to be a program name with arguments.
17262
lt_save_CC="$CC"
17263
CC=${F77-"f77"}
17264
compiler=$CC
17265
compiler_F77=$CC
17266
for cc_temp in $compiler""; do
17267
  case $cc_temp in
17268
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17269
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17270
    \-*) ;;
17271
    *) break;;
17272
  esac
17273
done
17274
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17275
17276
17277
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17278
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17279
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17280
echo "${ECHO_T}$can_build_shared" >&6; }
17281
17282
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17283
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17284
test "$can_build_shared" = "no" && enable_shared=no
17285
17286
# On AIX, shared libraries and static libraries use the same namespace, and
17287
# are all built from PIC.
17288
case $host_os in
17289
aix3*)
17290
  test "$enable_shared" = yes && enable_static=no
17291
  if test -n "$RANLIB"; then
17292
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17293
    postinstall_cmds='$RANLIB $lib'
17294
  fi
17295
  ;;
17296
aix[4-9]*)
17297
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17298
    test "$enable_shared" = yes && enable_static=no
17299
  fi
17300
  ;;
17301
esac
17302
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17303
echo "${ECHO_T}$enable_shared" >&6; }
17304
17305
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17306
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17307
# Make sure either enable_shared or enable_static is yes.
17308
test "$enable_shared" = yes || enable_static=yes
17309
{ echo "$as_me:$LINENO: result: $enable_static" >&5
17310
echo "${ECHO_T}$enable_static" >&6; }
17311
17312
GCC_F77="$G77"
17313
LD_F77="$LD"
17314
17315
lt_prog_compiler_wl_F77=
17316
lt_prog_compiler_pic_F77=
17317
lt_prog_compiler_static_F77=
17318
17319
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17320
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17321
17322
  if test "$GCC" = yes; then
17323
    lt_prog_compiler_wl_F77='-Wl,'
17324
    lt_prog_compiler_static_F77='-static'
17325
17326
    case $host_os in
17327
      aix*)
17328
      # All AIX code is PIC.
17329
      if test "$host_cpu" = ia64; then
17330
	# AIX 5 now supports IA64 processor
17331
	lt_prog_compiler_static_F77='-Bstatic'
17332
      fi
17333
      ;;
17334
17335
    amigaos*)
17336
      # FIXME: we need at least 68020 code to build shared libraries, but
17337
      # adding the `-m68020' flag to GCC prevents building anything better,
17338
      # like `-m68040'.
17339
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17340
      ;;
17341
17342
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17343
      # PIC is the default for these OSes.
17344
      ;;
17345
17346
    mingw* | cygwin* | pw32* | os2*)
17347
      # This hack is so that the source file can tell whether it is being
17348
      # built for inclusion in a dll (and should export symbols for example).
17349
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17350
      # (--disable-auto-import) libraries
17351
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17352
      ;;
17353
17354
    darwin* | rhapsody*)
17355
      # PIC is the default on this platform
17356
      # Common symbols not allowed in MH_DYLIB files
17357
      lt_prog_compiler_pic_F77='-fno-common'
17358
      ;;
17359
17360
    interix[3-9]*)
17361
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17362
      # Instead, we relocate shared libraries at runtime.
17363
      ;;
17364
17365
    msdosdjgpp*)
17366
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17367
      # on systems that don't support them.
17368
      lt_prog_compiler_can_build_shared_F77=no
17369
      enable_shared=no
17370
      ;;
17371
17372
    sysv4*MP*)
17373
      if test -d /usr/nec; then
17374
	lt_prog_compiler_pic_F77=-Kconform_pic
17375
      fi
17376
      ;;
17377
17378
    hpux*)
17379
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17380
      # not for PA HP-UX.
17381
      case $host_cpu in
17382
      hppa*64*|ia64*)
17383
	# +Z the default
17384
	;;
17385
      *)
17386
	lt_prog_compiler_pic_F77='-fPIC'
17387
	;;
17388
      esac
17389
      ;;
17390
17391
    *)
17392
      lt_prog_compiler_pic_F77='-fPIC'
17393
      ;;
17394
    esac
17395
  else
17396
    # PORTME Check for flag to pass linker flags through the system compiler.
17397
    case $host_os in
17398
    aix*)
17399
      lt_prog_compiler_wl_F77='-Wl,'
17400
      if test "$host_cpu" = ia64; then
17401
	# AIX 5 now supports IA64 processor
17402
	lt_prog_compiler_static_F77='-Bstatic'
17403
      else
17404
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17405
      fi
17406
      ;;
17407
      darwin*)
17408
        # PIC is the default on this platform
17409
        # Common symbols not allowed in MH_DYLIB files
17410
       case $cc_basename in
17411
         xlc*)
17412
         lt_prog_compiler_pic_F77='-qnocommon'
17413
         lt_prog_compiler_wl_F77='-Wl,'
17414
         ;;
17415
       esac
17416
       ;;
17417
17418
    mingw* | cygwin* | pw32* | os2*)
17419
      # This hack is so that the source file can tell whether it is being
17420
      # built for inclusion in a dll (and should export symbols for example).
17421
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17422
      ;;
17423
17424
    hpux9* | hpux10* | hpux11*)
17425
      lt_prog_compiler_wl_F77='-Wl,'
17426
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17427
      # not for PA HP-UX.
17428
      case $host_cpu in
17429
      hppa*64*|ia64*)
17430
	# +Z the default
17431
	;;
17432
      *)
17433
	lt_prog_compiler_pic_F77='+Z'
17434
	;;
17435
      esac
17436
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17437
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17438
      ;;
17439
17440
    irix5* | irix6* | nonstopux*)
17441
      lt_prog_compiler_wl_F77='-Wl,'
17442
      # PIC (with -KPIC) is the default.
17443
      lt_prog_compiler_static_F77='-non_shared'
17444
      ;;
17445
17446
    newsos6)
17447
      lt_prog_compiler_pic_F77='-KPIC'
17448
      lt_prog_compiler_static_F77='-Bstatic'
17449
      ;;
17450
17451
    linux* | k*bsd*-gnu)
17452
      case $cc_basename in
17453
      icc* | ecc*)
17454
	lt_prog_compiler_wl_F77='-Wl,'
17455
	lt_prog_compiler_pic_F77='-KPIC'
17456
	lt_prog_compiler_static_F77='-static'
17457
        ;;
17458
      pgcc* | pgf77* | pgf90* | pgf95*)
17459
        # Portland Group compilers (*not* the Pentium gcc compiler,
17460
	# which looks to be a dead project)
17461
	lt_prog_compiler_wl_F77='-Wl,'
17462
	lt_prog_compiler_pic_F77='-fpic'
17463
	lt_prog_compiler_static_F77='-Bstatic'
17464
        ;;
17465
      ccc*)
17466
        lt_prog_compiler_wl_F77='-Wl,'
17467
        # All Alpha code is PIC.
17468
        lt_prog_compiler_static_F77='-non_shared'
17469
        ;;
17470
      *)
17471
        case `$CC -V 2>&1 | sed 5q` in
17472
	*Sun\ C*)
17473
	  # Sun C 5.9
17474
	  lt_prog_compiler_pic_F77='-KPIC'
17475
	  lt_prog_compiler_static_F77='-Bstatic'
17476
	  lt_prog_compiler_wl_F77='-Wl,'
17477
	  ;;
17478
	*Sun\ F*)
17479
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17480
	  lt_prog_compiler_pic_F77='-KPIC'
17481
	  lt_prog_compiler_static_F77='-Bstatic'
17482
	  lt_prog_compiler_wl_F77=''
17483
	  ;;
17484
	esac
17485
	;;
17486
      esac
17487
      ;;
17488
17489
    osf3* | osf4* | osf5*)
17490
      lt_prog_compiler_wl_F77='-Wl,'
17491
      # All OSF/1 code is PIC.
17492
      lt_prog_compiler_static_F77='-non_shared'
17493
      ;;
17494
17495
    rdos*)
17496
      lt_prog_compiler_static_F77='-non_shared'
17497
      ;;
17498
17499
    solaris*)
17500
      lt_prog_compiler_pic_F77='-KPIC'
17501
      lt_prog_compiler_static_F77='-Bstatic'
17502
      case $cc_basename in
17503
      f77* | f90* | f95*)
17504
	lt_prog_compiler_wl_F77='-Qoption ld ';;
17505
      *)
17506
	lt_prog_compiler_wl_F77='-Wl,';;
17507
      esac
17508
      ;;
17509
17510
    sunos4*)
17511
      lt_prog_compiler_wl_F77='-Qoption ld '
17512
      lt_prog_compiler_pic_F77='-PIC'
17513
      lt_prog_compiler_static_F77='-Bstatic'
17514
      ;;
17515
17516
    sysv4 | sysv4.2uw2* | sysv4.3*)
17517
      lt_prog_compiler_wl_F77='-Wl,'
17518
      lt_prog_compiler_pic_F77='-KPIC'
17519
      lt_prog_compiler_static_F77='-Bstatic'
17520
      ;;
17521
17522
    sysv4*MP*)
17523
      if test -d /usr/nec ;then
17524
	lt_prog_compiler_pic_F77='-Kconform_pic'
17525
	lt_prog_compiler_static_F77='-Bstatic'
17526
      fi
17527
      ;;
17528
17529
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17530
      lt_prog_compiler_wl_F77='-Wl,'
17531
      lt_prog_compiler_pic_F77='-KPIC'
17532
      lt_prog_compiler_static_F77='-Bstatic'
17533
      ;;
17534
17535
    unicos*)
17536
      lt_prog_compiler_wl_F77='-Wl,'
17537
      lt_prog_compiler_can_build_shared_F77=no
17538
      ;;
17539
17540
    uts4*)
17541
      lt_prog_compiler_pic_F77='-pic'
17542
      lt_prog_compiler_static_F77='-Bstatic'
17543
      ;;
17544
17545
    *)
17546
      lt_prog_compiler_can_build_shared_F77=no
17547
      ;;
17548
    esac
17549
  fi
17550
17551
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17552
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17553
17554
#
17555
# Check to make sure the PIC flag actually works.
17556
#
17557
if test -n "$lt_prog_compiler_pic_F77"; then
17558
17559
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17560
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17561
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
17562
  echo $ECHO_N "(cached) $ECHO_C" >&6
17563
else
17564
  lt_cv_prog_compiler_pic_works_F77=no
17565
  ac_outfile=conftest.$ac_objext
17566
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17567
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
17568
   # Insert the option either (1) after the last *FLAGS variable, or
17569
   # (2) before a word containing "conftest.", or (3) at the end.
17570
   # Note that $ac_compile itself does not contain backslashes and begins
17571
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17572
   # The option is referenced via a variable to avoid confusing sed.
17573
   lt_compile=`echo "$ac_compile" | $SED \
17574
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17575
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17576
   -e 's:$: $lt_compiler_flag:'`
17577
   (eval echo "\"\$as_me:17577: $lt_compile\"" >&5)
17578
   (eval "$lt_compile" 2>conftest.err)
17579
   ac_status=$?
17580
   cat conftest.err >&5
17581
   echo "$as_me:17581: \$? = $ac_status" >&5
17582
   if (exit $ac_status) && test -s "$ac_outfile"; then
17583
     # The compiler can only warn and ignore the option if not recognized
17584
     # So say no if there are warnings other than the usual output.
17585
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17586
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17587
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17588
       lt_cv_prog_compiler_pic_works_F77=yes
17589
     fi
17590
   fi
17591
   $rm conftest*
17592
17593
fi
17594
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17595
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
17596
17597
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
17598
    case $lt_prog_compiler_pic_F77 in
17599
     "" | " "*) ;;
17600
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17601
     esac
17602
else
17603
    lt_prog_compiler_pic_F77=
17604
     lt_prog_compiler_can_build_shared_F77=no
17605
fi
17606
17607
fi
17608
case $host_os in
17609
  # For platforms which do not support PIC, -DPIC is meaningless:
17610
  *djgpp*)
17611
    lt_prog_compiler_pic_F77=
17612
    ;;
17613
  *)
17614
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17615
    ;;
17616
esac
17617
17618
#
17619
# Check to make sure the static flag actually works.
17620
#
17621
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17622
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17623
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17624
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
17625
  echo $ECHO_N "(cached) $ECHO_C" >&6
17626
else
17627
  lt_cv_prog_compiler_static_works_F77=no
17628
   save_LDFLAGS="$LDFLAGS"
17629
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17630
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17631
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17632
     # The linker can only warn and ignore the option if not recognized
17633
     # So say no if there are warnings
17634
     if test -s conftest.err; then
17635
       # Append any errors to the config.log.
17636
       cat conftest.err 1>&5
17637
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17638
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17639
       if diff conftest.exp conftest.er2 >/dev/null; then
17640
         lt_cv_prog_compiler_static_works_F77=yes
17641
       fi
17642
     else
17643
       lt_cv_prog_compiler_static_works_F77=yes
17644
     fi
17645
   fi
17646
   $rm -r conftest*
17647
   LDFLAGS="$save_LDFLAGS"
17648
17649
fi
17650
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
17651
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
17652
17653
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17654
    :
17655
else
17656
    lt_prog_compiler_static_F77=
17657
fi
17658
17659
17660
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17661
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17662
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17663
  echo $ECHO_N "(cached) $ECHO_C" >&6
17664
else
17665
  lt_cv_prog_compiler_c_o_F77=no
17666
   $rm -r conftest 2>/dev/null
17667
   mkdir conftest
17668
   cd conftest
17669
   mkdir out
17670
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17671
17672
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17673
   # Insert the option either (1) after the last *FLAGS variable, or
17674
   # (2) before a word containing "conftest.", or (3) at the end.
17675
   # Note that $ac_compile itself does not contain backslashes and begins
17676
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17677
   lt_compile=`echo "$ac_compile" | $SED \
17678
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17679
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17680
   -e 's:$: $lt_compiler_flag:'`
17681
   (eval echo "\"\$as_me:17681: $lt_compile\"" >&5)
17682
   (eval "$lt_compile" 2>out/conftest.err)
17683
   ac_status=$?
17684
   cat out/conftest.err >&5
17685
   echo "$as_me:17685: \$? = $ac_status" >&5
17686
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17687
   then
17688
     # The compiler can only warn and ignore the option if not recognized
17689
     # So say no if there are warnings
17690
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17691
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17692
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17693
       lt_cv_prog_compiler_c_o_F77=yes
17694
     fi
17695
   fi
17696
   chmod u+w . 2>&5
17697
   $rm conftest*
17698
   # SGI C++ compiler will create directory out/ii_files/ for
17699
   # template instantiation
17700
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17701
   $rm out/* && rmdir out
17702
   cd ..
17703
   rmdir conftest
17704
   $rm conftest*
17705
17706
fi
17707
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17708
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17709
17710
17711
hard_links="nottested"
17712
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17713
  # do not overwrite the value of need_locks provided by the user
17714
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17715
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17716
  hard_links=yes
17717
  $rm conftest*
17718
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17719
  touch conftest.a
17720
  ln conftest.a conftest.b 2>&5 || hard_links=no
17721
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17722
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17723
echo "${ECHO_T}$hard_links" >&6; }
17724
  if test "$hard_links" = no; then
17725
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17726
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17727
    need_locks=warn
17728
  fi
17729
else
17730
  need_locks=no
17731
fi
17732
17733
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17734
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17735
17736
  runpath_var=
17737
  allow_undefined_flag_F77=
17738
  enable_shared_with_static_runtimes_F77=no
17739
  archive_cmds_F77=
17740
  archive_expsym_cmds_F77=
17741
  old_archive_From_new_cmds_F77=
17742
  old_archive_from_expsyms_cmds_F77=
17743
  export_dynamic_flag_spec_F77=
17744
  whole_archive_flag_spec_F77=
17745
  thread_safe_flag_spec_F77=
17746
  hardcode_libdir_flag_spec_F77=
17747
  hardcode_libdir_flag_spec_ld_F77=
17748
  hardcode_libdir_separator_F77=
17749
  hardcode_direct_F77=no
17750
  hardcode_minus_L_F77=no
17751
  hardcode_shlibpath_var_F77=unsupported
17752
  link_all_deplibs_F77=unknown
17753
  hardcode_automatic_F77=no
17754
  module_cmds_F77=
17755
  module_expsym_cmds_F77=
17756
  always_export_symbols_F77=no
17757
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17758
  # include_expsyms should be a list of space-separated symbols to be *always*
17759
  # included in the symbol list
17760
  include_expsyms_F77=
17761
  # exclude_expsyms can be an extended regexp of symbols to exclude
17762
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17763
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17764
  # as well as any symbol that contains `d'.
17765
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17766
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17767
  # platforms (ab)use it in PIC code, but their linkers get confused if
17768
  # the symbol is explicitly referenced.  Since portable code cannot
17769
  # rely on this symbol name, it's probably fine to never include it in
17770
  # preloaded symbol tables.
17771
  # Exclude shared library initialization/finalization symbols.
17772
  extract_expsyms_cmds=
17773
  # Just being paranoid about ensuring that cc_basename is set.
17774
  for cc_temp in $compiler""; do
17775
  case $cc_temp in
17776
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17777
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17778
    \-*) ;;
17779
    *) break;;
17780
  esac
17781
done
17782
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17783
17784
  case $host_os in
17785
  cygwin* | mingw* | pw32*)
17786
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17787
    # When not using gcc, we currently assume that we are using
17788
    # Microsoft Visual C++.
17789
    if test "$GCC" != yes; then
17790
      with_gnu_ld=no
17791
    fi
17792
    ;;
17793
  interix*)
17794
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17795
    with_gnu_ld=yes
17796
    ;;
17797
  openbsd*)
17798
    with_gnu_ld=no
17799
    ;;
17800
  esac
17801
17802
  ld_shlibs_F77=yes
17803
  if test "$with_gnu_ld" = yes; then
17804
    # If archive_cmds runs LD, not CC, wlarc should be empty
17805
    wlarc='${wl}'
17806
17807
    # Set some defaults for GNU ld with shared library support. These
17808
    # are reset later if shared libraries are not supported. Putting them
17809
    # here allows them to be overridden if necessary.
17810
    runpath_var=LD_RUN_PATH
17811
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17812
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17813
    # ancient GNU ld didn't support --whole-archive et. al.
17814
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17815
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17816
      else
17817
  	whole_archive_flag_spec_F77=
17818
    fi
17819
    supports_anon_versioning=no
17820
    case `$LD -v 2>/dev/null` in
17821
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17822
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17823
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17824
      *\ 2.11.*) ;; # other 2.11 versions
17825
      *) supports_anon_versioning=yes ;;
17826
    esac
17827
17828
    # See if GNU ld supports shared libraries.
17829
    case $host_os in
17830
    aix[3-9]*)
17831
      # On AIX/PPC, the GNU linker is very broken
17832
      if test "$host_cpu" != ia64; then
17833
	ld_shlibs_F77=no
17834
	cat <<EOF 1>&2
17835
17836
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17837
*** to be unable to reliably create shared libraries on AIX.
17838
*** Therefore, libtool is disabling shared libraries support.  If you
17839
*** really care for shared libraries, you may want to modify your PATH
17840
*** so that a non-GNU linker is found, and then restart.
17841
17842
EOF
17843
      fi
17844
      ;;
17845
17846
    amigaos*)
17847
      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)'
17848
      hardcode_libdir_flag_spec_F77='-L$libdir'
17849
      hardcode_minus_L_F77=yes
17850
17851
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17852
      # that the semantics of dynamic libraries on AmigaOS, at least up
17853
      # to version 4, is to share data among multiple programs linked
17854
      # with the same dynamic library.  Since this doesn't match the
17855
      # behavior of shared libraries on other platforms, we can't use
17856
      # them.
17857
      ld_shlibs_F77=no
17858
      ;;
17859
17860
    beos*)
17861
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17862
	allow_undefined_flag_F77=unsupported
17863
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17864
	# support --undefined.  This deserves some investigation.  FIXME
17865
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17866
      else
17867
	ld_shlibs_F77=no
17868
      fi
17869
      ;;
17870
17871
    cygwin* | mingw* | pw32*)
17872
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17873
      # as there is no search path for DLLs.
17874
      hardcode_libdir_flag_spec_F77='-L$libdir'
17875
      allow_undefined_flag_F77=unsupported
17876
      always_export_symbols_F77=no
17877
      enable_shared_with_static_runtimes_F77=yes
17878
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17879
17880
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17881
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17882
	# If the export-symbols file already is a .def file (1st line
17883
	# is EXPORTS), use it as is; otherwise, prepend...
17884
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17885
	  cp $export_symbols $output_objdir/$soname.def;
17886
	else
17887
	  echo EXPORTS > $output_objdir/$soname.def;
17888
	  cat $export_symbols >> $output_objdir/$soname.def;
17889
	fi~
17890
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17891
      else
17892
	ld_shlibs_F77=no
17893
      fi
17894
      ;;
17895
17896
    interix[3-9]*)
17897
      hardcode_direct_F77=no
17898
      hardcode_shlibpath_var_F77=no
17899
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17900
      export_dynamic_flag_spec_F77='${wl}-E'
17901
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17902
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17903
      # default) and relocated if they conflict, which is a slow very memory
17904
      # consuming and fragmenting process.  To avoid this, we pick a random,
17905
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17906
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17907
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17908
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17909
      ;;
17910
17911
    gnu* | linux* | k*bsd*-gnu)
17912
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17913
	tmp_addflag=
17914
	case $cc_basename,$host_cpu in
17915
	pgcc*)				# Portland Group C compiler
17916
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17917
	  tmp_addflag=' $pic_flag'
17918
	  ;;
17919
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17920
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17921
	  tmp_addflag=' $pic_flag -Mnomain' ;;
17922
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17923
	  tmp_addflag=' -i_dynamic' ;;
17924
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17925
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17926
	ifc* | ifort*)			# Intel Fortran compiler
17927
	  tmp_addflag=' -nofor_main' ;;
17928
	esac
17929
	case `$CC -V 2>&1 | sed 5q` in
17930
	*Sun\ C*)			# Sun C 5.9
17931
	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17932
	  tmp_sharedflag='-G' ;;
17933
	*Sun\ F*)			# Sun Fortran 8.3
17934
	  tmp_sharedflag='-G' ;;
17935
	*)
17936
	  tmp_sharedflag='-shared' ;;
17937
	esac
17938
	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17939
17940
	if test $supports_anon_versioning = yes; then
17941
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17942
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17943
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17944
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17945
	fi
17946
	link_all_deplibs_F77=no
17947
      else
17948
	ld_shlibs_F77=no
17949
      fi
17950
      ;;
17951
17952
    netbsd* | netbsdelf*-gnu)
17953
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17954
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17955
	wlarc=
17956
      else
17957
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17958
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17959
      fi
17960
      ;;
17961
17962
    solaris*)
17963
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17964
	ld_shlibs_F77=no
17965
	cat <<EOF 1>&2
17966
17967
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17968
*** create shared libraries on Solaris systems.  Therefore, libtool
17969
*** is disabling shared libraries support.  We urge you to upgrade GNU
17970
*** binutils to release 2.9.1 or newer.  Another option is to modify
17971
*** your PATH or compiler configuration so that the native linker is
17972
*** used, and then restart.
17973
17974
EOF
17975
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17976
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17977
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17978
      else
17979
	ld_shlibs_F77=no
17980
      fi
17981
      ;;
17982
17983
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17984
      case `$LD -v 2>&1` in
17985
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17986
	ld_shlibs_F77=no
17987
	cat <<_LT_EOF 1>&2
17988
17989
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17990
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17991
*** is disabling shared libraries support.  We urge you to upgrade GNU
17992
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17993
*** your PATH or compiler configuration so that the native linker is
17994
*** used, and then restart.
17995
17996
_LT_EOF
17997
	;;
17998
	*)
17999
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18000
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18001
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18002
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18003
	  else
18004
	    ld_shlibs_F77=no
18005
	  fi
18006
	;;
18007
      esac
18008
      ;;
18009
18010
    sunos4*)
18011
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18012
      wlarc=
18013
      hardcode_direct_F77=yes
18014
      hardcode_shlibpath_var_F77=no
18015
      ;;
18016
18017
    *)
18018
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18019
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18020
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18021
      else
18022
	ld_shlibs_F77=no
18023
      fi
18024
      ;;
18025
    esac
18026
18027
    if test "$ld_shlibs_F77" = no; then
18028
      runpath_var=
18029
      hardcode_libdir_flag_spec_F77=
18030
      export_dynamic_flag_spec_F77=
18031
      whole_archive_flag_spec_F77=
18032
    fi
18033
  else
18034
    # PORTME fill in a description of your system's linker (not GNU ld)
18035
    case $host_os in
18036
    aix3*)
18037
      allow_undefined_flag_F77=unsupported
18038
      always_export_symbols_F77=yes
18039
      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'
18040
      # Note: this linker hardcodes the directories in LIBPATH if there
18041
      # are no directories specified by -L.
18042
      hardcode_minus_L_F77=yes
18043
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18044
	# Neither direct hardcoding nor static linking is supported with a
18045
	# broken collect2.
18046
	hardcode_direct_F77=unsupported
18047
      fi
18048
      ;;
18049
18050
    aix[4-9]*)
18051
      if test "$host_cpu" = ia64; then
18052
	# On IA64, the linker does run time linking by default, so we don't
18053
	# have to do anything special.
18054
	aix_use_runtimelinking=no
18055
	exp_sym_flag='-Bexport'
18056
	no_entry_flag=""
18057
      else
18058
	# If we're using GNU nm, then we don't want the "-C" option.
18059
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18060
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18061
	  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'
18062
	else
18063
	  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'
18064
	fi
18065
	aix_use_runtimelinking=no
18066
18067
	# Test if we are trying to use run time linking or normal
18068
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18069
	# need to do runtime linking.
18070
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18071
	  for ld_flag in $LDFLAGS; do
18072
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18073
  	    aix_use_runtimelinking=yes
18074
  	    break
18075
  	  fi
18076
	  done
18077
	  ;;
18078
	esac
18079
18080
	exp_sym_flag='-bexport'
18081
	no_entry_flag='-bnoentry'
18082
      fi
18083
18084
      # When large executables or shared objects are built, AIX ld can
18085
      # have problems creating the table of contents.  If linking a library
18086
      # or program results in "error TOC overflow" add -mminimal-toc to
18087
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18088
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18089
18090
      archive_cmds_F77=''
18091
      hardcode_direct_F77=yes
18092
      hardcode_libdir_separator_F77=':'
18093
      link_all_deplibs_F77=yes
18094
18095
      if test "$GCC" = yes; then
18096
	case $host_os in aix4.[012]|aix4.[012].*)
18097
	# We only want to do this on AIX 4.2 and lower, the check
18098
	# below for broken collect2 doesn't work under 4.3+
18099
	  collect2name=`${CC} -print-prog-name=collect2`
18100
	  if test -f "$collect2name" && \
18101
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18102
	  then
18103
  	  # We have reworked collect2
18104
  	  :
18105
	  else
18106
  	  # We have old collect2
18107
  	  hardcode_direct_F77=unsupported
18108
  	  # It fails to find uninstalled libraries when the uninstalled
18109
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18110
  	  # to unsupported forces relinking
18111
  	  hardcode_minus_L_F77=yes
18112
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
18113
  	  hardcode_libdir_separator_F77=
18114
	  fi
18115
	  ;;
18116
	esac
18117
	shared_flag='-shared'
18118
	if test "$aix_use_runtimelinking" = yes; then
18119
	  shared_flag="$shared_flag "'${wl}-G'
18120
	fi
18121
      else
18122
	# not using gcc
18123
	if test "$host_cpu" = ia64; then
18124
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18125
  	# chokes on -Wl,-G. The following line is correct:
18126
	  shared_flag='-G'
18127
	else
18128
	  if test "$aix_use_runtimelinking" = yes; then
18129
	    shared_flag='${wl}-G'
18130
	  else
18131
	    shared_flag='${wl}-bM:SRE'
18132
	  fi
18133
	fi
18134
      fi
18135
18136
      # It seems that -bexpall does not export symbols beginning with
18137
      # underscore (_), so it is better to generate a list of symbols to export.
18138
      always_export_symbols_F77=yes
18139
      if test "$aix_use_runtimelinking" = yes; then
18140
	# Warning - without using the other runtime loading flags (-brtl),
18141
	# -berok will link without error, but may produce a broken library.
18142
	allow_undefined_flag_F77='-berok'
18143
       # Determine the default libpath from the value encoded in an empty executable.
18144
       cat >conftest.$ac_ext <<_ACEOF
18145
      program main
18146
18147
      end
18148
_ACEOF
18149
rm -f conftest.$ac_objext conftest$ac_exeext
18150
if { (ac_try="$ac_link"
18151
case "(($ac_try" in
18152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153
  *) ac_try_echo=$ac_try;;
18154
esac
18155
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156
  (eval "$ac_link") 2>conftest.er1
18157
  ac_status=$?
18158
  grep -v '^ *+' conftest.er1 >conftest.err
18159
  rm -f conftest.er1
18160
  cat conftest.err >&5
18161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162
  (exit $ac_status); } && {
18163
	 test -z "$ac_f77_werror_flag" ||
18164
	 test ! -s conftest.err
18165
       } && test -s conftest$ac_exeext &&
18166
       $as_test_x conftest$ac_exeext; then
18167
18168
lt_aix_libpath_sed='
18169
    /Import File Strings/,/^$/ {
18170
	/^0/ {
18171
	    s/^0  *\(.*\)$/\1/
18172
	    p
18173
	}
18174
    }'
18175
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18176
# Check for a 64-bit object if we didn't find anything.
18177
if test -z "$aix_libpath"; then
18178
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18179
fi
18180
else
18181
  echo "$as_me: failed program was:" >&5
18182
sed 's/^/| /' conftest.$ac_ext >&5
18183
18184
18185
fi
18186
18187
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18188
      conftest$ac_exeext conftest.$ac_ext
18189
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18190
18191
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18192
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18193
       else
18194
	if test "$host_cpu" = ia64; then
18195
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18196
	  allow_undefined_flag_F77="-z nodefs"
18197
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18198
	else
18199
	 # Determine the default libpath from the value encoded in an empty executable.
18200
	 cat >conftest.$ac_ext <<_ACEOF
18201
      program main
18202
18203
      end
18204
_ACEOF
18205
rm -f conftest.$ac_objext conftest$ac_exeext
18206
if { (ac_try="$ac_link"
18207
case "(($ac_try" in
18208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209
  *) ac_try_echo=$ac_try;;
18210
esac
18211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212
  (eval "$ac_link") 2>conftest.er1
18213
  ac_status=$?
18214
  grep -v '^ *+' conftest.er1 >conftest.err
18215
  rm -f conftest.er1
18216
  cat conftest.err >&5
18217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218
  (exit $ac_status); } && {
18219
	 test -z "$ac_f77_werror_flag" ||
18220
	 test ! -s conftest.err
18221
       } && test -s conftest$ac_exeext &&
18222
       $as_test_x conftest$ac_exeext; then
18223
18224
lt_aix_libpath_sed='
18225
    /Import File Strings/,/^$/ {
18226
	/^0/ {
18227
	    s/^0  *\(.*\)$/\1/
18228
	    p
18229
	}
18230
    }'
18231
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18232
# Check for a 64-bit object if we didn't find anything.
18233
if test -z "$aix_libpath"; then
18234
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18235
fi
18236
else
18237
  echo "$as_me: failed program was:" >&5
18238
sed 's/^/| /' conftest.$ac_ext >&5
18239
18240
18241
fi
18242
18243
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18244
      conftest$ac_exeext conftest.$ac_ext
18245
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18246
18247
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18248
	  # Warning - without using the other run time loading flags,
18249
	  # -berok will link without error, but may produce a broken library.
18250
	  no_undefined_flag_F77=' ${wl}-bernotok'
18251
	  allow_undefined_flag_F77=' ${wl}-berok'
18252
	  # Exported symbols can be pulled into shared objects from archives
18253
	  whole_archive_flag_spec_F77='$convenience'
18254
	  archive_cmds_need_lc_F77=yes
18255
	  # This is similar to how AIX traditionally builds its shared libraries.
18256
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18257
	fi
18258
      fi
18259
      ;;
18260
18261
    amigaos*)
18262
      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)'
18263
      hardcode_libdir_flag_spec_F77='-L$libdir'
18264
      hardcode_minus_L_F77=yes
18265
      # see comment about different semantics on the GNU ld section
18266
      ld_shlibs_F77=no
18267
      ;;
18268
18269
    bsdi[45]*)
18270
      export_dynamic_flag_spec_F77=-rdynamic
18271
      ;;
18272
18273
    cygwin* | mingw* | pw32*)
18274
      # When not using gcc, we currently assume that we are using
18275
      # Microsoft Visual C++.
18276
      # hardcode_libdir_flag_spec is actually meaningless, as there is
18277
      # no search path for DLLs.
18278
      hardcode_libdir_flag_spec_F77=' '
18279
      allow_undefined_flag_F77=unsupported
18280
      # Tell ltmain to make .lib files, not .a files.
18281
      libext=lib
18282
      # Tell ltmain to make .dll files, not .so files.
18283
      shrext_cmds=".dll"
18284
      # FIXME: Setting linknames here is a bad hack.
18285
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18286
      # The linker will automatically build a .lib file if we build a DLL.
18287
      old_archive_From_new_cmds_F77='true'
18288
      # FIXME: Should let the user specify the lib program.
18289
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18290
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18291
      enable_shared_with_static_runtimes_F77=yes
18292
      ;;
18293
18294
    darwin* | rhapsody*)
18295
      case $host_os in
18296
        rhapsody* | darwin1.[012])
18297
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
18298
         ;;
18299
       *) # Darwin 1.3 on
18300
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18301
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18302
         else
18303
           case ${MACOSX_DEPLOYMENT_TARGET} in
18304
             10.[012])
18305
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18306
               ;;
18307
             10.*)
18308
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18309
               ;;
18310
           esac
18311
         fi
18312
         ;;
18313
      esac
18314
      archive_cmds_need_lc_F77=no
18315
      hardcode_direct_F77=no
18316
      hardcode_automatic_F77=yes
18317
      hardcode_shlibpath_var_F77=unsupported
18318
      whole_archive_flag_spec_F77=''
18319
      link_all_deplibs_F77=yes
18320
    if test "$GCC" = yes ; then
18321
    	output_verbose_link_cmd='echo'
18322
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18323
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18324
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18325
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18326
    else
18327
      case $cc_basename in
18328
        xlc*)
18329
         output_verbose_link_cmd='echo'
18330
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18331
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18332
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18333
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18334
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18335
          ;;
18336
       *)
18337
         ld_shlibs_F77=no
18338
          ;;
18339
      esac
18340
    fi
18341
      ;;
18342
18343
    dgux*)
18344
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18345
      hardcode_libdir_flag_spec_F77='-L$libdir'
18346
      hardcode_shlibpath_var_F77=no
18347
      ;;
18348
18349
    freebsd1*)
18350
      ld_shlibs_F77=no
18351
      ;;
18352
18353
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18354
    # support.  Future versions do this automatically, but an explicit c++rt0.o
18355
    # does not break anything, and helps significantly (at the cost of a little
18356
    # extra space).
18357
    freebsd2.2*)
18358
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18359
      hardcode_libdir_flag_spec_F77='-R$libdir'
18360
      hardcode_direct_F77=yes
18361
      hardcode_shlibpath_var_F77=no
18362
      ;;
18363
18364
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18365
    freebsd2*)
18366
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18367
      hardcode_direct_F77=yes
18368
      hardcode_minus_L_F77=yes
18369
      hardcode_shlibpath_var_F77=no
18370
      ;;
18371
18372
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18373
    freebsd* | dragonfly*)
18374
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18375
      hardcode_libdir_flag_spec_F77='-R$libdir'
18376
      hardcode_direct_F77=yes
18377
      hardcode_shlibpath_var_F77=no
18378
      ;;
18379
18380
    hpux9*)
18381
      if test "$GCC" = yes; then
18382
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18383
      else
18384
	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'
18385
      fi
18386
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18387
      hardcode_libdir_separator_F77=:
18388
      hardcode_direct_F77=yes
18389
18390
      # hardcode_minus_L: Not really in the search PATH,
18391
      # but as the default location of the library.
18392
      hardcode_minus_L_F77=yes
18393
      export_dynamic_flag_spec_F77='${wl}-E'
18394
      ;;
18395
18396
    hpux10*)
18397
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18398
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18399
      else
18400
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18401
      fi
18402
      if test "$with_gnu_ld" = no; then
18403
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18404
	hardcode_libdir_separator_F77=:
18405
18406
	hardcode_direct_F77=yes
18407
	export_dynamic_flag_spec_F77='${wl}-E'
18408
18409
	# hardcode_minus_L: Not really in the search PATH,
18410
	# but as the default location of the library.
18411
	hardcode_minus_L_F77=yes
18412
      fi
18413
      ;;
18414
18415
    hpux11*)
18416
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18417
	case $host_cpu in
18418
	hppa*64*)
18419
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18420
	  ;;
18421
	ia64*)
18422
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18423
	  ;;
18424
	*)
18425
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18426
	  ;;
18427
	esac
18428
      else
18429
	case $host_cpu in
18430
	hppa*64*)
18431
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18432
	  ;;
18433
	ia64*)
18434
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18435
	  ;;
18436
	*)
18437
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18438
	  ;;
18439
	esac
18440
      fi
18441
      if test "$with_gnu_ld" = no; then
18442
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18443
	hardcode_libdir_separator_F77=:
18444
18445
	case $host_cpu in
18446
	hppa*64*|ia64*)
18447
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18448
	  hardcode_direct_F77=no
18449
	  hardcode_shlibpath_var_F77=no
18450
	  ;;
18451
	*)
18452
	  hardcode_direct_F77=yes
18453
	  export_dynamic_flag_spec_F77='${wl}-E'
18454
18455
	  # hardcode_minus_L: Not really in the search PATH,
18456
	  # but as the default location of the library.
18457
	  hardcode_minus_L_F77=yes
18458
	  ;;
18459
	esac
18460
      fi
18461
      ;;
18462
18463
    irix5* | irix6* | nonstopux*)
18464
      if test "$GCC" = yes; then
18465
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18466
      else
18467
	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'
18468
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18469
      fi
18470
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18471
      hardcode_libdir_separator_F77=:
18472
      link_all_deplibs_F77=yes
18473
      ;;
18474
18475
    netbsd* | netbsdelf*-gnu)
18476
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18477
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18478
      else
18479
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18480
      fi
18481
      hardcode_libdir_flag_spec_F77='-R$libdir'
18482
      hardcode_direct_F77=yes
18483
      hardcode_shlibpath_var_F77=no
18484
      ;;
18485
18486
    newsos6)
18487
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18488
      hardcode_direct_F77=yes
18489
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18490
      hardcode_libdir_separator_F77=:
18491
      hardcode_shlibpath_var_F77=no
18492
      ;;
18493
18494
    openbsd*)
18495
      if test -f /usr/libexec/ld.so; then
18496
	hardcode_direct_F77=yes
18497
	hardcode_shlibpath_var_F77=no
18498
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18499
	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18500
	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18501
	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18502
	  export_dynamic_flag_spec_F77='${wl}-E'
18503
	else
18504
	  case $host_os in
18505
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18506
	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18507
	     hardcode_libdir_flag_spec_F77='-R$libdir'
18508
	     ;;
18509
	   *)
18510
	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18511
	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18512
	     ;;
18513
	  esac
18514
        fi
18515
      else
18516
	ld_shlibs_F77=no
18517
      fi
18518
      ;;
18519
18520
    os2*)
18521
      hardcode_libdir_flag_spec_F77='-L$libdir'
18522
      hardcode_minus_L_F77=yes
18523
      allow_undefined_flag_F77=unsupported
18524
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18525
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18526
      ;;
18527
18528
    osf3*)
18529
      if test "$GCC" = yes; then
18530
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18531
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18532
      else
18533
	allow_undefined_flag_F77=' -expect_unresolved \*'
18534
	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'
18535
      fi
18536
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18537
      hardcode_libdir_separator_F77=:
18538
      ;;
18539
18540
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18541
      if test "$GCC" = yes; then
18542
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18543
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18544
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18545
      else
18546
	allow_undefined_flag_F77=' -expect_unresolved \*'
18547
	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'
18548
	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~
18549
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18550
18551
	# Both c and cxx compiler support -rpath directly
18552
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
18553
      fi
18554
      hardcode_libdir_separator_F77=:
18555
      ;;
18556
18557
    solaris*)
18558
      no_undefined_flag_F77=' -z text'
18559
      if test "$GCC" = yes; then
18560
	wlarc='${wl}'
18561
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18562
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18563
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18564
      else
18565
	wlarc=''
18566
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18567
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18568
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18569
      fi
18570
      hardcode_libdir_flag_spec_F77='-R$libdir'
18571
      hardcode_shlibpath_var_F77=no
18572
      case $host_os in
18573
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18574
      *)
18575
	# The compiler driver will combine and reorder linker options,
18576
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18577
	# but is careful enough not to reorder.
18578
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18579
	if test "$GCC" = yes; then
18580
	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18581
	else
18582
	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18583
	fi
18584
	;;
18585
      esac
18586
      link_all_deplibs_F77=yes
18587
      ;;
18588
18589
    sunos4*)
18590
      if test "x$host_vendor" = xsequent; then
18591
	# Use $CC to link under sequent, because it throws in some extra .o
18592
	# files that make .init and .fini sections work.
18593
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18594
      else
18595
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18596
      fi
18597
      hardcode_libdir_flag_spec_F77='-L$libdir'
18598
      hardcode_direct_F77=yes
18599
      hardcode_minus_L_F77=yes
18600
      hardcode_shlibpath_var_F77=no
18601
      ;;
18602
18603
    sysv4)
18604
      case $host_vendor in
18605
	sni)
18606
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18607
	  hardcode_direct_F77=yes # is this really true???
18608
	;;
18609
	siemens)
18610
	  ## LD is ld it makes a PLAMLIB
18611
	  ## CC just makes a GrossModule.
18612
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18613
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
18614
	  hardcode_direct_F77=no
18615
        ;;
18616
	motorola)
18617
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18618
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18619
	;;
18620
      esac
18621
      runpath_var='LD_RUN_PATH'
18622
      hardcode_shlibpath_var_F77=no
18623
      ;;
18624
18625
    sysv4.3*)
18626
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18627
      hardcode_shlibpath_var_F77=no
18628
      export_dynamic_flag_spec_F77='-Bexport'
18629
      ;;
18630
18631
    sysv4*MP*)
18632
      if test -d /usr/nec; then
18633
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18634
	hardcode_shlibpath_var_F77=no
18635
	runpath_var=LD_RUN_PATH
18636
	hardcode_runpath_var=yes
18637
	ld_shlibs_F77=yes
18638
      fi
18639
      ;;
18640
18641
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18642
      no_undefined_flag_F77='${wl}-z,text'
18643
      archive_cmds_need_lc_F77=no
18644
      hardcode_shlibpath_var_F77=no
18645
      runpath_var='LD_RUN_PATH'
18646
18647
      if test "$GCC" = yes; then
18648
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18649
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18650
      else
18651
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18652
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18653
      fi
18654
      ;;
18655
18656
    sysv5* | sco3.2v5* | sco5v6*)
18657
      # Note: We can NOT use -z defs as we might desire, because we do not
18658
      # link with -lc, and that would cause any symbols used from libc to
18659
      # always be unresolved, which means just about no library would
18660
      # ever link correctly.  If we're not using GNU ld we use -z text
18661
      # though, which does catch some bad symbols but isn't as heavy-handed
18662
      # as -z defs.
18663
      no_undefined_flag_F77='${wl}-z,text'
18664
      allow_undefined_flag_F77='${wl}-z,nodefs'
18665
      archive_cmds_need_lc_F77=no
18666
      hardcode_shlibpath_var_F77=no
18667
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18668
      hardcode_libdir_separator_F77=':'
18669
      link_all_deplibs_F77=yes
18670
      export_dynamic_flag_spec_F77='${wl}-Bexport'
18671
      runpath_var='LD_RUN_PATH'
18672
18673
      if test "$GCC" = yes; then
18674
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18675
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18676
      else
18677
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18678
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18679
      fi
18680
      ;;
18681
18682
    uts4*)
18683
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18684
      hardcode_libdir_flag_spec_F77='-L$libdir'
18685
      hardcode_shlibpath_var_F77=no
18686
      ;;
18687
18688
    *)
18689
      ld_shlibs_F77=no
18690
      ;;
18691
    esac
18692
  fi
18693
18694
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18695
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18696
test "$ld_shlibs_F77" = no && can_build_shared=no
18697
18698
#
18699
# Do we need to explicitly link libc?
18700
#
18701
case "x$archive_cmds_need_lc_F77" in
18702
x|xyes)
18703
  # Assume -lc should be added
18704
  archive_cmds_need_lc_F77=yes
18705
18706
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18707
    case $archive_cmds_F77 in
18708
    *'~'*)
18709
      # FIXME: we may have to deal with multi-command sequences.
18710
      ;;
18711
    '$CC '*)
18712
      # Test whether the compiler implicitly links with -lc since on some
18713
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18714
      # to ld, don't add -lc before -lgcc.
18715
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18716
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18717
      $rm conftest*
18718
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18719
18720
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18721
  (eval $ac_compile) 2>&5
18722
  ac_status=$?
18723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724
  (exit $ac_status); } 2>conftest.err; then
18725
        soname=conftest
18726
        lib=conftest
18727
        libobjs=conftest.$ac_objext
18728
        deplibs=
18729
        wl=$lt_prog_compiler_wl_F77
18730
	pic_flag=$lt_prog_compiler_pic_F77
18731
        compiler_flags=-v
18732
        linker_flags=-v
18733
        verstring=
18734
        output_objdir=.
18735
        libname=conftest
18736
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18737
        allow_undefined_flag_F77=
18738
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18739
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18740
  ac_status=$?
18741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742
  (exit $ac_status); }
18743
        then
18744
	  archive_cmds_need_lc_F77=no
18745
        else
18746
	  archive_cmds_need_lc_F77=yes
18747
        fi
18748
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18749
      else
18750
        cat conftest.err 1>&5
18751
      fi
18752
      $rm conftest*
18753
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18754
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18755
      ;;
18756
    esac
18757
  fi
18758
  ;;
18759
esac
18760
18761
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18762
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18763
library_names_spec=
18764
libname_spec='lib$name'
18765
soname_spec=
18766
shrext_cmds=".so"
18767
postinstall_cmds=
18768
postuninstall_cmds=
18769
finish_cmds=
18770
finish_eval=
18771
shlibpath_var=
18772
shlibpath_overrides_runpath=unknown
18773
version_type=none
18774
dynamic_linker="$host_os ld.so"
18775
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18776
18777
need_lib_prefix=unknown
18778
hardcode_into_libs=no
18779
18780
# when you set need_version to no, make sure it does not cause -set_version
18781
# flags to be left without arguments
18782
need_version=unknown
18783
18784
case $host_os in
18785
aix3*)
18786
  version_type=linux
18787
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18788
  shlibpath_var=LIBPATH
18789
18790
  # AIX 3 has no versioning support, so we append a major version to the name.
18791
  soname_spec='${libname}${release}${shared_ext}$major'
18792
  ;;
18793
18794
aix[4-9]*)
18795
  version_type=linux
18796
  need_lib_prefix=no
18797
  need_version=no
18798
  hardcode_into_libs=yes
18799
  if test "$host_cpu" = ia64; then
18800
    # AIX 5 supports IA64
18801
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18802
    shlibpath_var=LD_LIBRARY_PATH
18803
  else
18804
    # With GCC up to 2.95.x, collect2 would create an import file
18805
    # for dependence libraries.  The import file would start with
18806
    # the line `#! .'.  This would cause the generated library to
18807
    # depend on `.', always an invalid library.  This was fixed in
18808
    # development snapshots of GCC prior to 3.0.
18809
    case $host_os in
18810
      aix4 | aix4.[01] | aix4.[01].*)
18811
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18812
	   echo ' yes '
18813
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18814
	:
18815
      else
18816
	can_build_shared=no
18817
      fi
18818
      ;;
18819
    esac
18820
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18821
    # soname into executable. Probably we can add versioning support to
18822
    # collect2, so additional links can be useful in future.
18823
    if test "$aix_use_runtimelinking" = yes; then
18824
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18825
      # instead of lib<name>.a to let people know that these are not
18826
      # typical AIX shared libraries.
18827
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18828
    else
18829
      # We preserve .a as extension for shared libraries through AIX4.2
18830
      # and later when we are not doing run time linking.
18831
      library_names_spec='${libname}${release}.a $libname.a'
18832
      soname_spec='${libname}${release}${shared_ext}$major'
18833
    fi
18834
    shlibpath_var=LIBPATH
18835
  fi
18836
  ;;
18837
18838
amigaos*)
18839
  library_names_spec='$libname.ixlibrary $libname.a'
18840
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18841
  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'
18842
  ;;
18843
18844
beos*)
18845
  library_names_spec='${libname}${shared_ext}'
18846
  dynamic_linker="$host_os ld.so"
18847
  shlibpath_var=LIBRARY_PATH
18848
  ;;
18849
18850
bsdi[45]*)
18851
  version_type=linux
18852
  need_version=no
18853
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854
  soname_spec='${libname}${release}${shared_ext}$major'
18855
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18856
  shlibpath_var=LD_LIBRARY_PATH
18857
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18858
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18859
  # the default ld.so.conf also contains /usr/contrib/lib and
18860
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18861
  # libtool to hard-code these into programs
18862
  ;;
18863
18864
cygwin* | mingw* | pw32*)
18865
  version_type=windows
18866
  shrext_cmds=".dll"
18867
  need_version=no
18868
  need_lib_prefix=no
18869
18870
  case $GCC,$host_os in
18871
  yes,cygwin* | yes,mingw* | yes,pw32*)
18872
    library_names_spec='$libname.dll.a'
18873
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18874
    postinstall_cmds='base_file=`basename \${file}`~
18875
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18876
      dldir=$destdir/`dirname \$dlpath`~
18877
      test -d \$dldir || mkdir -p \$dldir~
18878
      $install_prog $dir/$dlname \$dldir/$dlname~
18879
      chmod a+x \$dldir/$dlname'
18880
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18881
      dlpath=$dir/\$dldll~
18882
       $rm \$dlpath'
18883
    shlibpath_overrides_runpath=yes
18884
18885
    case $host_os in
18886
    cygwin*)
18887
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18888
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18889
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18890
      ;;
18891
    mingw*)
18892
      # MinGW DLLs use traditional 'lib' prefix
18893
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18894
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18895
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18896
        # It is most probably a Windows format PATH printed by
18897
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18898
        # path with ; separators, and with drive letters. We can handle the
18899
        # drive letters (cygwin fileutils understands them), so leave them,
18900
        # especially as we might pass files found there to a mingw objdump,
18901
        # which wouldn't understand a cygwinified path. Ahh.
18902
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18903
      else
18904
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18905
      fi
18906
      ;;
18907
    pw32*)
18908
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18909
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18910
      ;;
18911
    esac
18912
    ;;
18913
18914
  *)
18915
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18916
    ;;
18917
  esac
18918
  dynamic_linker='Win32 ld.exe'
18919
  # FIXME: first we should search . and the directory the executable is in
18920
  shlibpath_var=PATH
18921
  ;;
18922
18923
darwin* | rhapsody*)
18924
  dynamic_linker="$host_os dyld"
18925
  version_type=darwin
18926
  need_lib_prefix=no
18927
  need_version=no
18928
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18929
  soname_spec='${libname}${release}${major}$shared_ext'
18930
  shlibpath_overrides_runpath=yes
18931
  shlibpath_var=DYLD_LIBRARY_PATH
18932
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18933
18934
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18935
  ;;
18936
18937
dgux*)
18938
  version_type=linux
18939
  need_lib_prefix=no
18940
  need_version=no
18941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18942
  soname_spec='${libname}${release}${shared_ext}$major'
18943
  shlibpath_var=LD_LIBRARY_PATH
18944
  ;;
18945
18946
freebsd1*)
18947
  dynamic_linker=no
18948
  ;;
18949
18950
freebsd* | dragonfly*)
18951
  # DragonFly does not have aout.  When/if they implement a new
18952
  # versioning mechanism, adjust this.
18953
  if test -x /usr/bin/objformat; then
18954
    objformat=`/usr/bin/objformat`
18955
  else
18956
    case $host_os in
18957
    freebsd[123]*) objformat=aout ;;
18958
    *) objformat=elf ;;
18959
    esac
18960
  fi
18961
  version_type=freebsd-$objformat
18962
  case $version_type in
18963
    freebsd-elf*)
18964
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18965
      need_version=no
18966
      need_lib_prefix=no
18967
      ;;
18968
    freebsd-*)
18969
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18970
      need_version=yes
18971
      ;;
18972
  esac
18973
  shlibpath_var=LD_LIBRARY_PATH
18974
  case $host_os in
18975
  freebsd2*)
18976
    shlibpath_overrides_runpath=yes
18977
    ;;
18978
  freebsd3.[01]* | freebsdelf3.[01]*)
18979
    shlibpath_overrides_runpath=yes
18980
    hardcode_into_libs=yes
18981
    ;;
18982
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18983
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18984
    shlibpath_overrides_runpath=no
18985
    hardcode_into_libs=yes
18986
    ;;
18987
  *) # from 4.6 on, and DragonFly
18988
    shlibpath_overrides_runpath=yes
18989
    hardcode_into_libs=yes
18990
    ;;
18991
  esac
18992
  ;;
18993
18994
gnu*)
18995
  version_type=linux
18996
  need_lib_prefix=no
18997
  need_version=no
18998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18999
  soname_spec='${libname}${release}${shared_ext}$major'
19000
  shlibpath_var=LD_LIBRARY_PATH
19001
  hardcode_into_libs=yes
19002
  ;;
19003
19004
hpux9* | hpux10* | hpux11*)
19005
  # Give a soname corresponding to the major version so that dld.sl refuses to
19006
  # link against other versions.
19007
  version_type=sunos
19008
  need_lib_prefix=no
19009
  need_version=no
19010
  case $host_cpu in
19011
  ia64*)
19012
    shrext_cmds='.so'
19013
    hardcode_into_libs=yes
19014
    dynamic_linker="$host_os dld.so"
19015
    shlibpath_var=LD_LIBRARY_PATH
19016
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19017
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018
    soname_spec='${libname}${release}${shared_ext}$major'
19019
    if test "X$HPUX_IA64_MODE" = X32; then
19020
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19021
    else
19022
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19023
    fi
19024
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19025
    ;;
19026
   hppa*64*)
19027
     shrext_cmds='.sl'
19028
     hardcode_into_libs=yes
19029
     dynamic_linker="$host_os dld.sl"
19030
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19031
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19032
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19033
     soname_spec='${libname}${release}${shared_ext}$major'
19034
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19035
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19036
     ;;
19037
   *)
19038
    shrext_cmds='.sl'
19039
    dynamic_linker="$host_os dld.sl"
19040
    shlibpath_var=SHLIB_PATH
19041
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19042
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19043
    soname_spec='${libname}${release}${shared_ext}$major'
19044
    ;;
19045
  esac
19046
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19047
  postinstall_cmds='chmod 555 $lib'
19048
  ;;
19049
19050
interix[3-9]*)
19051
  version_type=linux
19052
  need_lib_prefix=no
19053
  need_version=no
19054
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19055
  soname_spec='${libname}${release}${shared_ext}$major'
19056
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19057
  shlibpath_var=LD_LIBRARY_PATH
19058
  shlibpath_overrides_runpath=no
19059
  hardcode_into_libs=yes
19060
  ;;
19061
19062
irix5* | irix6* | nonstopux*)
19063
  case $host_os in
19064
    nonstopux*) version_type=nonstopux ;;
19065
    *)
19066
	if test "$lt_cv_prog_gnu_ld" = yes; then
19067
		version_type=linux
19068
	else
19069
		version_type=irix
19070
	fi ;;
19071
  esac
19072
  need_lib_prefix=no
19073
  need_version=no
19074
  soname_spec='${libname}${release}${shared_ext}$major'
19075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19076
  case $host_os in
19077
  irix5* | nonstopux*)
19078
    libsuff= shlibsuff=
19079
    ;;
19080
  *)
19081
    case $LD in # libtool.m4 will add one of these switches to LD
19082
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19083
      libsuff= shlibsuff= libmagic=32-bit;;
19084
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19085
      libsuff=32 shlibsuff=N32 libmagic=N32;;
19086
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19087
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19088
    *) libsuff= shlibsuff= libmagic=never-match;;
19089
    esac
19090
    ;;
19091
  esac
19092
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19093
  shlibpath_overrides_runpath=no
19094
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19095
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19096
  hardcode_into_libs=yes
19097
  ;;
19098
19099
# No shared lib support for Linux oldld, aout, or coff.
19100
linux*oldld* | linux*aout* | linux*coff*)
19101
  dynamic_linker=no
19102
  ;;
19103
19104
# This must be Linux ELF.
19105
linux* | k*bsd*-gnu)
19106
  version_type=linux
19107
  need_lib_prefix=no
19108
  need_version=no
19109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110
  soname_spec='${libname}${release}${shared_ext}$major'
19111
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19112
  shlibpath_var=LD_LIBRARY_PATH
19113
  shlibpath_overrides_runpath=no
19114
  # This implies no fast_install, which is unacceptable.
19115
  # Some rework will be needed to allow for fast_install
19116
  # before this can be enabled.
19117
  hardcode_into_libs=yes
19118
19119
  # Append ld.so.conf contents to the search path
19120
  if test -f /etc/ld.so.conf; then
19121
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19122
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19123
  fi
19124
19125
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19126
  # powerpc, because MkLinux only supported shared libraries with the
19127
  # GNU dynamic linker.  Since this was broken with cross compilers,
19128
  # most powerpc-linux boxes support dynamic linking these days and
19129
  # people can always --disable-shared, the test was removed, and we
19130
  # assume the GNU/Linux dynamic linker is in use.
19131
  dynamic_linker='GNU/Linux ld.so'
19132
  ;;
19133
19134
netbsdelf*-gnu)
19135
  version_type=linux
19136
  need_lib_prefix=no
19137
  need_version=no
19138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19139
  soname_spec='${libname}${release}${shared_ext}$major'
19140
  shlibpath_var=LD_LIBRARY_PATH
19141
  shlibpath_overrides_runpath=no
19142
  hardcode_into_libs=yes
19143
  dynamic_linker='NetBSD ld.elf_so'
19144
  ;;
19145
19146
netbsd*)
19147
  version_type=sunos
19148
  need_lib_prefix=no
19149
  need_version=no
19150
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19151
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19152
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19153
    dynamic_linker='NetBSD (a.out) ld.so'
19154
  else
19155
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19156
    soname_spec='${libname}${release}${shared_ext}$major'
19157
    dynamic_linker='NetBSD ld.elf_so'
19158
  fi
19159
  shlibpath_var=LD_LIBRARY_PATH
19160
  shlibpath_overrides_runpath=yes
19161
  hardcode_into_libs=yes
19162
  ;;
19163
19164
newsos6)
19165
  version_type=linux
19166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19167
  shlibpath_var=LD_LIBRARY_PATH
19168
  shlibpath_overrides_runpath=yes
19169
  ;;
19170
19171
nto-qnx*)
19172
  version_type=linux
19173
  need_lib_prefix=no
19174
  need_version=no
19175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19176
  soname_spec='${libname}${release}${shared_ext}$major'
19177
  shlibpath_var=LD_LIBRARY_PATH
19178
  shlibpath_overrides_runpath=yes
19179
  ;;
19180
19181
openbsd*)
19182
  version_type=sunos
19183
  sys_lib_dlsearch_path_spec="/usr/lib"
19184
  need_lib_prefix=no
19185
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19186
  case $host_os in
19187
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19188
    *)                         need_version=no  ;;
19189
  esac
19190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19191
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19192
  shlibpath_var=LD_LIBRARY_PATH
19193
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19194
    case $host_os in
19195
      openbsd2.[89] | openbsd2.[89].*)
19196
	shlibpath_overrides_runpath=no
19197
	;;
19198
      *)
19199
	shlibpath_overrides_runpath=yes
19200
	;;
19201
      esac
19202
  else
19203
    shlibpath_overrides_runpath=yes
19204
  fi
19205
  ;;
19206
19207
os2*)
19208
  libname_spec='$name'
19209
  shrext_cmds=".dll"
19210
  need_lib_prefix=no
19211
  library_names_spec='$libname${shared_ext} $libname.a'
19212
  dynamic_linker='OS/2 ld.exe'
19213
  shlibpath_var=LIBPATH
19214
  ;;
19215
19216
osf3* | osf4* | osf5*)
19217
  version_type=osf
19218
  need_lib_prefix=no
19219
  need_version=no
19220
  soname_spec='${libname}${release}${shared_ext}$major'
19221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19222
  shlibpath_var=LD_LIBRARY_PATH
19223
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19224
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19225
  ;;
19226
19227
rdos*)
19228
  dynamic_linker=no
19229
  ;;
19230
19231
solaris*)
19232
  version_type=linux
19233
  need_lib_prefix=no
19234
  need_version=no
19235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19236
  soname_spec='${libname}${release}${shared_ext}$major'
19237
  shlibpath_var=LD_LIBRARY_PATH
19238
  shlibpath_overrides_runpath=yes
19239
  hardcode_into_libs=yes
19240
  # ldd complains unless libraries are executable
19241
  postinstall_cmds='chmod +x $lib'
19242
  ;;
19243
19244
sunos4*)
19245
  version_type=sunos
19246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19247
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19248
  shlibpath_var=LD_LIBRARY_PATH
19249
  shlibpath_overrides_runpath=yes
19250
  if test "$with_gnu_ld" = yes; then
19251
    need_lib_prefix=no
19252
  fi
19253
  need_version=yes
19254
  ;;
19255
19256
sysv4 | sysv4.3*)
19257
  version_type=linux
19258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259
  soname_spec='${libname}${release}${shared_ext}$major'
19260
  shlibpath_var=LD_LIBRARY_PATH
19261
  case $host_vendor in
19262
    sni)
19263
      shlibpath_overrides_runpath=no
19264
      need_lib_prefix=no
19265
      export_dynamic_flag_spec='${wl}-Blargedynsym'
19266
      runpath_var=LD_RUN_PATH
19267
      ;;
19268
    siemens)
19269
      need_lib_prefix=no
19270
      ;;
19271
    motorola)
19272
      need_lib_prefix=no
19273
      need_version=no
19274
      shlibpath_overrides_runpath=no
19275
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19276
      ;;
19277
  esac
19278
  ;;
19279
19280
sysv4*MP*)
19281
  if test -d /usr/nec ;then
19282
    version_type=linux
19283
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19284
    soname_spec='$libname${shared_ext}.$major'
19285
    shlibpath_var=LD_LIBRARY_PATH
19286
  fi
19287
  ;;
19288
19289
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19290
  version_type=freebsd-elf
19291
  need_lib_prefix=no
19292
  need_version=no
19293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19294
  soname_spec='${libname}${release}${shared_ext}$major'
19295
  shlibpath_var=LD_LIBRARY_PATH
19296
  hardcode_into_libs=yes
19297
  if test "$with_gnu_ld" = yes; then
19298
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19299
    shlibpath_overrides_runpath=no
19300
  else
19301
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19302
    shlibpath_overrides_runpath=yes
19303
    case $host_os in
19304
      sco3.2v5*)
19305
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19306
	;;
19307
    esac
19308
  fi
19309
  sys_lib_dlsearch_path_spec='/usr/lib'
19310
  ;;
19311
19312
uts4*)
19313
  version_type=linux
19314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315
  soname_spec='${libname}${release}${shared_ext}$major'
19316
  shlibpath_var=LD_LIBRARY_PATH
19317
  ;;
19318
19319
*)
19320
  dynamic_linker=no
19321
  ;;
19322
esac
19323
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19324
echo "${ECHO_T}$dynamic_linker" >&6; }
19325
test "$dynamic_linker" = no && can_build_shared=no
19326
19327
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19328
  echo $ECHO_N "(cached) $ECHO_C" >&6
19329
else
19330
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19331
fi
19332
19333
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19334
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19335
  echo $ECHO_N "(cached) $ECHO_C" >&6
19336
else
19337
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19338
fi
19339
19340
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19341
19342
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19343
if test "$GCC" = yes; then
19344
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19345
fi
19346
19347
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19348
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19349
hardcode_action_F77=
19350
if test -n "$hardcode_libdir_flag_spec_F77" || \
19351
   test -n "$runpath_var_F77" || \
19352
   test "X$hardcode_automatic_F77" = "Xyes" ; then
19353
19354
  # We can hardcode non-existant directories.
19355
  if test "$hardcode_direct_F77" != no &&
19356
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19357
     # have to relink, otherwise we might link with an installed library
19358
     # when we should be linking with a yet-to-be-installed one
19359
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19360
     test "$hardcode_minus_L_F77" != no; then
19361
    # Linking always hardcodes the temporary library directory.
19362
    hardcode_action_F77=relink
19363
  else
19364
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19365
    hardcode_action_F77=immediate
19366
  fi
19367
else
19368
  # We cannot hardcode anything, or else we can only hardcode existing
19369
  # directories.
19370
  hardcode_action_F77=unsupported
19371
fi
19372
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19373
echo "${ECHO_T}$hardcode_action_F77" >&6; }
19374
19375
if test "$hardcode_action_F77" = relink; then
19376
  # Fast installation is not supported
19377
  enable_fast_install=no
19378
elif test "$shlibpath_overrides_runpath" = yes ||
19379
     test "$enable_shared" = no; then
19380
  # Fast installation is not necessary
19381
  enable_fast_install=needless
19382
fi
19383
19384
19385
# The else clause should only fire when bootstrapping the
19386
# libtool distribution, otherwise you forgot to ship ltmain.sh
19387
# with your package, and you will get complaints that there are
19388
# no rules to generate ltmain.sh.
19389
if test -f "$ltmain"; then
19390
  # See if we are running on zsh, and set the options which allow our commands through
19391
  # without removal of \ escapes.
19392
  if test -n "${ZSH_VERSION+set}" ; then
19393
    setopt NO_GLOB_SUBST
19394
  fi
19395
  # Now quote all the things that may contain metacharacters while being
19396
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19397
  # variables and quote the copies for generation of the libtool script.
19398
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19399
    SED SHELL STRIP \
19400
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19401
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19402
    deplibs_check_method reload_flag reload_cmds need_locks \
19403
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19404
    lt_cv_sys_global_symbol_to_c_name_address \
19405
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19406
    old_postinstall_cmds old_postuninstall_cmds \
19407
    compiler_F77 \
19408
    CC_F77 \
19409
    LD_F77 \
19410
    lt_prog_compiler_wl_F77 \
19411
    lt_prog_compiler_pic_F77 \
19412
    lt_prog_compiler_static_F77 \
19413
    lt_prog_compiler_no_builtin_flag_F77 \
19414
    export_dynamic_flag_spec_F77 \
19415
    thread_safe_flag_spec_F77 \
19416
    whole_archive_flag_spec_F77 \
19417
    enable_shared_with_static_runtimes_F77 \
19418
    old_archive_cmds_F77 \
19419
    old_archive_from_new_cmds_F77 \
19420
    predep_objects_F77 \
19421
    postdep_objects_F77 \
19422
    predeps_F77 \
19423
    postdeps_F77 \
19424
    compiler_lib_search_path_F77 \
19425
    compiler_lib_search_dirs_F77 \
19426
    archive_cmds_F77 \
19427
    archive_expsym_cmds_F77 \
19428
    postinstall_cmds_F77 \
19429
    postuninstall_cmds_F77 \
19430
    old_archive_from_expsyms_cmds_F77 \
19431
    allow_undefined_flag_F77 \
19432
    no_undefined_flag_F77 \
19433
    export_symbols_cmds_F77 \
19434
    hardcode_libdir_flag_spec_F77 \
19435
    hardcode_libdir_flag_spec_ld_F77 \
19436
    hardcode_libdir_separator_F77 \
19437
    hardcode_automatic_F77 \
19438
    module_cmds_F77 \
19439
    module_expsym_cmds_F77 \
19440
    lt_cv_prog_compiler_c_o_F77 \
19441
    fix_srcfile_path_F77 \
19442
    exclude_expsyms_F77 \
19443
    include_expsyms_F77; do
19444
19445
    case $var in
19446
    old_archive_cmds_F77 | \
19447
    old_archive_from_new_cmds_F77 | \
19448
    archive_cmds_F77 | \
19449
    archive_expsym_cmds_F77 | \
19450
    module_cmds_F77 | \
19451
    module_expsym_cmds_F77 | \
19452
    old_archive_from_expsyms_cmds_F77 | \
19453
    export_symbols_cmds_F77 | \
19454
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19455
    postinstall_cmds | postuninstall_cmds | \
19456
    old_postinstall_cmds | old_postuninstall_cmds | \
19457
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19458
      # Double-quote double-evaled strings.
19459
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19460
      ;;
19461
    *)
19462
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19463
      ;;
19464
    esac
19465
  done
19466
19467
  case $lt_echo in
19468
  *'\$0 --fallback-echo"')
19469
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19470
    ;;
19471
  esac
19472
19473
cfgfile="$ofile"
19474
19475
  cat <<__EOF__ >> "$cfgfile"
19476
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19477
19478
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19479
19480
# Shell to use when invoking shell scripts.
19481
SHELL=$lt_SHELL
19482
19483
# Whether or not to build shared libraries.
19484
build_libtool_libs=$enable_shared
19485
19486
# Whether or not to build static libraries.
19487
build_old_libs=$enable_static
19488
19489
# Whether or not to add -lc for building shared libraries.
19490
build_libtool_need_lc=$archive_cmds_need_lc_F77
19491
19492
# Whether or not to disallow shared libs when runtime libs are static
19493
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19494
19495
# Whether or not to optimize for fast installation.
19496
fast_install=$enable_fast_install
19497
19498
# The host system.
19499
host_alias=$host_alias
19500
host=$host
19501
host_os=$host_os
19502
19503
# The build system.
19504
build_alias=$build_alias
19505
build=$build
19506
build_os=$build_os
19507
19508
# An echo program that does not interpret backslashes.
19509
echo=$lt_echo
19510
19511
# The archiver.
19512
AR=$lt_AR
19513
AR_FLAGS=$lt_AR_FLAGS
19514
19515
# A C compiler.
19516
LTCC=$lt_LTCC
19517
19518
# LTCC compiler flags.
19519
LTCFLAGS=$lt_LTCFLAGS
19520
19521
# A language-specific compiler.
19522
CC=$lt_compiler_F77
19523
19524
# Is the compiler the GNU C compiler?
19525
with_gcc=$GCC_F77
19526
19527
# An ERE matcher.
19528
EGREP=$lt_EGREP
19529
19530
# The linker used to build libraries.
19531
LD=$lt_LD_F77
19532
19533
# Whether we need hard or soft links.
19534
LN_S=$lt_LN_S
19535
19536
# A BSD-compatible nm program.
19537
NM=$lt_NM
19538
19539
# A symbol stripping program
19540
STRIP=$lt_STRIP
19541
19542
# Used to examine libraries when file_magic_cmd begins "file"
19543
MAGIC_CMD=$MAGIC_CMD
19544
19545
# Used on cygwin: DLL creation program.
19546
DLLTOOL="$DLLTOOL"
19547
19548
# Used on cygwin: object dumper.
19549
OBJDUMP="$OBJDUMP"
19550
19551
# Used on cygwin: assembler.
19552
AS="$AS"
19553
19554
# The name of the directory that contains temporary libtool files.
19555
objdir=$objdir
19556
19557
# How to create reloadable object files.
19558
reload_flag=$lt_reload_flag
19559
reload_cmds=$lt_reload_cmds
19560
19561
# How to pass a linker flag through the compiler.
19562
wl=$lt_lt_prog_compiler_wl_F77
19563
19564
# Object file suffix (normally "o").
19565
objext="$ac_objext"
19566
19567
# Old archive suffix (normally "a").
19568
libext="$libext"
19569
19570
# Shared library suffix (normally ".so").
19571
shrext_cmds='$shrext_cmds'
19572
19573
# Executable file suffix (normally "").
19574
exeext="$exeext"
19575
19576
# Additional compiler flags for building library objects.
19577
pic_flag=$lt_lt_prog_compiler_pic_F77
19578
pic_mode=$pic_mode
19579
19580
# What is the maximum length of a command?
19581
max_cmd_len=$lt_cv_sys_max_cmd_len
19582
19583
# Does compiler simultaneously support -c and -o options?
19584
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19585
19586
# Must we lock files when doing compilation?
19587
need_locks=$lt_need_locks
19588
19589
# Do we need the lib prefix for modules?
19590
need_lib_prefix=$need_lib_prefix
19591
19592
# Do we need a version for libraries?
19593
need_version=$need_version
19594
19595
# Whether dlopen is supported.
19596
dlopen_support=$enable_dlopen
19597
19598
# Whether dlopen of programs is supported.
19599
dlopen_self=$enable_dlopen_self
19600
19601
# Whether dlopen of statically linked programs is supported.
19602
dlopen_self_static=$enable_dlopen_self_static
19603
19604
# Compiler flag to prevent dynamic linking.
19605
link_static_flag=$lt_lt_prog_compiler_static_F77
19606
19607
# Compiler flag to turn off builtin functions.
19608
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19609
19610
# Compiler flag to allow reflexive dlopens.
19611
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19612
19613
# Compiler flag to generate shared objects directly from archives.
19614
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19615
19616
# Compiler flag to generate thread-safe objects.
19617
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19618
19619
# Library versioning type.
19620
version_type=$version_type
19621
19622
# Format of library name prefix.
19623
libname_spec=$lt_libname_spec
19624
19625
# List of archive names.  First name is the real one, the rest are links.
19626
# The last name is the one that the linker finds with -lNAME.
19627
library_names_spec=$lt_library_names_spec
19628
19629
# The coded name of the library, if different from the real name.
19630
soname_spec=$lt_soname_spec
19631
19632
# Commands used to build and install an old-style archive.
19633
RANLIB=$lt_RANLIB
19634
old_archive_cmds=$lt_old_archive_cmds_F77
19635
old_postinstall_cmds=$lt_old_postinstall_cmds
19636
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19637
19638
# Create an old-style archive from a shared archive.
19639
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19640
19641
# Create a temporary old-style archive to link instead of a shared archive.
19642
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19643
19644
# Commands used to build and install a shared archive.
19645
archive_cmds=$lt_archive_cmds_F77
19646
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19647
postinstall_cmds=$lt_postinstall_cmds
19648
postuninstall_cmds=$lt_postuninstall_cmds
19649
19650
# Commands used to build a loadable module (assumed same as above if empty)
19651
module_cmds=$lt_module_cmds_F77
19652
module_expsym_cmds=$lt_module_expsym_cmds_F77
19653
19654
# Commands to strip libraries.
19655
old_striplib=$lt_old_striplib
19656
striplib=$lt_striplib
19657
19658
# Dependencies to place before the objects being linked to create a
19659
# shared library.
19660
predep_objects=$lt_predep_objects_F77
19661
19662
# Dependencies to place after the objects being linked to create a
19663
# shared library.
19664
postdep_objects=$lt_postdep_objects_F77
19665
19666
# Dependencies to place before the objects being linked to create a
19667
# shared library.
19668
predeps=$lt_predeps_F77
19669
19670
# Dependencies to place after the objects being linked to create a
19671
# shared library.
19672
postdeps=$lt_postdeps_F77
19673
19674
# The directories searched by this compiler when creating a shared
19675
# library
19676
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
19677
19678
# The library search path used internally by the compiler when linking
19679
# a shared library.
19680
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19681
19682
# Method to check whether dependent libraries are shared objects.
19683
deplibs_check_method=$lt_deplibs_check_method
19684
19685
# Command to use when deplibs_check_method == file_magic.
19686
file_magic_cmd=$lt_file_magic_cmd
19687
19688
# Flag that allows shared libraries with undefined symbols to be built.
19689
allow_undefined_flag=$lt_allow_undefined_flag_F77
19690
19691
# Flag that forces no undefined symbols.
19692
no_undefined_flag=$lt_no_undefined_flag_F77
19693
19694
# Commands used to finish a libtool library installation in a directory.
19695
finish_cmds=$lt_finish_cmds
19696
19697
# Same as above, but a single script fragment to be evaled but not shown.
19698
finish_eval=$lt_finish_eval
19699
19700
# Take the output of nm and produce a listing of raw symbols and C names.
19701
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19702
19703
# Transform the output of nm in a proper C declaration
19704
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19705
19706
# Transform the output of nm in a C name address pair
19707
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19708
19709
# This is the shared library runtime path variable.
19710
runpath_var=$runpath_var
19711
19712
# This is the shared library path variable.
19713
shlibpath_var=$shlibpath_var
19714
19715
# Is shlibpath searched before the hard-coded library search path?
19716
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19717
19718
# How to hardcode a shared library path into an executable.
19719
hardcode_action=$hardcode_action_F77
19720
19721
# Whether we should hardcode library paths into libraries.
19722
hardcode_into_libs=$hardcode_into_libs
19723
19724
# Flag to hardcode \$libdir into a binary during linking.
19725
# This must work even if \$libdir does not exist.
19726
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19727
19728
# If ld is used when linking, flag to hardcode \$libdir into
19729
# a binary during linking. This must work even if \$libdir does
19730
# not exist.
19731
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19732
19733
# Whether we need a single -rpath flag with a separated argument.
19734
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19735
19736
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19737
# resulting binary.
19738
hardcode_direct=$hardcode_direct_F77
19739
19740
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19741
# resulting binary.
19742
hardcode_minus_L=$hardcode_minus_L_F77
19743
19744
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19745
# the resulting binary.
19746
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19747
19748
# Set to yes if building a shared library automatically hardcodes DIR into the library
19749
# and all subsequent libraries and executables linked against it.
19750
hardcode_automatic=$hardcode_automatic_F77
19751
19752
# Variables whose values should be saved in libtool wrapper scripts and
19753
# restored at relink time.
19754
variables_saved_for_relink="$variables_saved_for_relink"
19755
19756
# Whether libtool must link a program against all its dependency libraries.
19757
link_all_deplibs=$link_all_deplibs_F77
19758
19759
# Compile-time system search path for libraries
19760
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19761
19762
# Run-time system search path for libraries
19763
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19764
19765
# Fix the shell variable \$srcfile for the compiler.
19766
fix_srcfile_path=$lt_fix_srcfile_path
19767
19768
# Set to yes if exported symbols are required.
19769
always_export_symbols=$always_export_symbols_F77
19770
19771
# The commands to list exported symbols.
19772
export_symbols_cmds=$lt_export_symbols_cmds_F77
19773
19774
# The commands to extract the exported symbol list from a shared archive.
19775
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19776
19777
# Symbols that should not be listed in the preloaded symbols.
19778
exclude_expsyms=$lt_exclude_expsyms_F77
19779
19780
# Symbols that must always be exported.
19781
include_expsyms=$lt_include_expsyms_F77
19782
19783
# ### END LIBTOOL TAG CONFIG: $tagname
19784
19785
__EOF__
19786
19787
19788
else
19789
  # If there is no Makefile yet, we rely on a make rule to execute
19790
  # `config.status --recheck' to rerun these tests and create the
19791
  # libtool script then.
19792
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19793
  if test -f "$ltmain_in"; then
19794
    test -f Makefile && make "$ltmain"
19795
  fi
19796
fi
19797
19798
19799
ac_ext=c
19800
ac_cpp='$CPP $CPPFLAGS'
19801
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19804
19805
CC="$lt_save_CC"
19806
19807
	else
19808
	  tagname=""
19809
	fi
19810
	;;
19811
19812
      GCJ)
19813
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19814
19815
19816
# Source file extension for Java test sources.
19817
ac_ext=java
19818
19819
# Object file extension for compiled Java test sources.
19820
objext=o
19821
objext_GCJ=$objext
19822
19823
# Code to be used in simple compile tests
19824
lt_simple_compile_test_code="class foo {}"
19825
19826
# Code to be used in simple link tests
19827
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19828
19829
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19830
19831
# If no C compiler was specified, use CC.
19832
LTCC=${LTCC-"$CC"}
19833
19834
# If no C compiler flags were specified, use CFLAGS.
19835
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19836
19837
# Allow CC to be a program name with arguments.
19838
compiler=$CC
19839
19840
19841
# save warnings/boilerplate of simple test code
19842
ac_outfile=conftest.$ac_objext
19843
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19844
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19845
_lt_compiler_boilerplate=`cat conftest.err`
19846
$rm conftest*
19847
19848
ac_outfile=conftest.$ac_objext
19849
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19850
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19851
_lt_linker_boilerplate=`cat conftest.err`
19852
$rm -r conftest*
19853
19854
19855
# Allow CC to be a program name with arguments.
19856
lt_save_CC="$CC"
19857
CC=${GCJ-"gcj"}
19858
compiler=$CC
19859
compiler_GCJ=$CC
19860
for cc_temp in $compiler""; do
19861
  case $cc_temp in
19862
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19863
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19864
    \-*) ;;
19865
    *) break;;
19866
  esac
19867
done
19868
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19869
19870
19871
# GCJ did not exist at the time GCC didn't implicitly link libc in.
19872
archive_cmds_need_lc_GCJ=no
19873
19874
old_archive_cmds_GCJ=$old_archive_cmds
19875
19876
19877
lt_prog_compiler_no_builtin_flag_GCJ=
19878
19879
if test "$GCC" = yes; then
19880
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19881
19882
19883
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19884
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19885
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19886
  echo $ECHO_N "(cached) $ECHO_C" >&6
19887
else
19888
  lt_cv_prog_compiler_rtti_exceptions=no
19889
  ac_outfile=conftest.$ac_objext
19890
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19891
   lt_compiler_flag="-fno-rtti -fno-exceptions"
19892
   # Insert the option either (1) after the last *FLAGS variable, or
19893
   # (2) before a word containing "conftest.", or (3) at the end.
19894
   # Note that $ac_compile itself does not contain backslashes and begins
19895
   # with a dollar sign (not a hyphen), so the echo should work correctly.
19896
   # The option is referenced via a variable to avoid confusing sed.
19897
   lt_compile=`echo "$ac_compile" | $SED \
19898
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19899
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19900
   -e 's:$: $lt_compiler_flag:'`
19901
   (eval echo "\"\$as_me:19901: $lt_compile\"" >&5)
19902
   (eval "$lt_compile" 2>conftest.err)
19903
   ac_status=$?
19904
   cat conftest.err >&5
19905
   echo "$as_me:19905: \$? = $ac_status" >&5
19906
   if (exit $ac_status) && test -s "$ac_outfile"; then
19907
     # The compiler can only warn and ignore the option if not recognized
19908
     # So say no if there are warnings other than the usual output.
19909
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19910
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19911
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19912
       lt_cv_prog_compiler_rtti_exceptions=yes
19913
     fi
19914
   fi
19915
   $rm conftest*
19916
19917
fi
19918
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19919
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19920
19921
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19922
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19923
else
19924
    :
19925
fi
19926
19927
fi
19928
19929
lt_prog_compiler_wl_GCJ=
19930
lt_prog_compiler_pic_GCJ=
19931
lt_prog_compiler_static_GCJ=
19932
19933
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19934
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19935
19936
  if test "$GCC" = yes; then
19937
    lt_prog_compiler_wl_GCJ='-Wl,'
19938
    lt_prog_compiler_static_GCJ='-static'
19939
19940
    case $host_os in
19941
      aix*)
19942
      # All AIX code is PIC.
19943
      if test "$host_cpu" = ia64; then
19944
	# AIX 5 now supports IA64 processor
19945
	lt_prog_compiler_static_GCJ='-Bstatic'
19946
      fi
19947
      ;;
19948
19949
    amigaos*)
19950
      # FIXME: we need at least 68020 code to build shared libraries, but
19951
      # adding the `-m68020' flag to GCC prevents building anything better,
19952
      # like `-m68040'.
19953
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19954
      ;;
19955
19956
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19957
      # PIC is the default for these OSes.
19958
      ;;
19959
19960
    mingw* | cygwin* | pw32* | os2*)
19961
      # This hack is so that the source file can tell whether it is being
19962
      # built for inclusion in a dll (and should export symbols for example).
19963
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19964
      # (--disable-auto-import) libraries
19965
19966
      ;;
19967
19968
    darwin* | rhapsody*)
19969
      # PIC is the default on this platform
19970
      # Common symbols not allowed in MH_DYLIB files
19971
      lt_prog_compiler_pic_GCJ='-fno-common'
19972
      ;;
19973
19974
    interix[3-9]*)
19975
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19976
      # Instead, we relocate shared libraries at runtime.
19977
      ;;
19978
19979
    msdosdjgpp*)
19980
      # Just because we use GCC doesn't mean we suddenly get shared libraries
19981
      # on systems that don't support them.
19982
      lt_prog_compiler_can_build_shared_GCJ=no
19983
      enable_shared=no
19984
      ;;
19985
19986
    sysv4*MP*)
19987
      if test -d /usr/nec; then
19988
	lt_prog_compiler_pic_GCJ=-Kconform_pic
19989
      fi
19990
      ;;
19991
19992
    hpux*)
19993
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19994
      # not for PA HP-UX.
19995
      case $host_cpu in
19996
      hppa*64*|ia64*)
19997
	# +Z the default
19998
	;;
19999
      *)
20000
	lt_prog_compiler_pic_GCJ='-fPIC'
20001
	;;
20002
      esac
20003
      ;;
20004
20005
    *)
20006
      lt_prog_compiler_pic_GCJ='-fPIC'
20007
      ;;
20008
    esac
20009
  else
20010
    # PORTME Check for flag to pass linker flags through the system compiler.
20011
    case $host_os in
20012
    aix*)
20013
      lt_prog_compiler_wl_GCJ='-Wl,'
20014
      if test "$host_cpu" = ia64; then
20015
	# AIX 5 now supports IA64 processor
20016
	lt_prog_compiler_static_GCJ='-Bstatic'
20017
      else
20018
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20019
      fi
20020
      ;;
20021
      darwin*)
20022
        # PIC is the default on this platform
20023
        # Common symbols not allowed in MH_DYLIB files
20024
       case $cc_basename in
20025
         xlc*)
20026
         lt_prog_compiler_pic_GCJ='-qnocommon'
20027
         lt_prog_compiler_wl_GCJ='-Wl,'
20028
         ;;
20029
       esac
20030
       ;;
20031
20032
    mingw* | cygwin* | pw32* | os2*)
20033
      # This hack is so that the source file can tell whether it is being
20034
      # built for inclusion in a dll (and should export symbols for example).
20035
20036
      ;;
20037
20038
    hpux9* | hpux10* | hpux11*)
20039
      lt_prog_compiler_wl_GCJ='-Wl,'
20040
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20041
      # not for PA HP-UX.
20042
      case $host_cpu in
20043
      hppa*64*|ia64*)
20044
	# +Z the default
20045
	;;
20046
      *)
20047
	lt_prog_compiler_pic_GCJ='+Z'
20048
	;;
20049
      esac
20050
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
20051
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
20052
      ;;
20053
20054
    irix5* | irix6* | nonstopux*)
20055
      lt_prog_compiler_wl_GCJ='-Wl,'
20056
      # PIC (with -KPIC) is the default.
20057
      lt_prog_compiler_static_GCJ='-non_shared'
20058
      ;;
20059
20060
    newsos6)
20061
      lt_prog_compiler_pic_GCJ='-KPIC'
20062
      lt_prog_compiler_static_GCJ='-Bstatic'
20063
      ;;
20064
20065
    linux* | k*bsd*-gnu)
20066
      case $cc_basename in
20067
      icc* | ecc*)
20068
	lt_prog_compiler_wl_GCJ='-Wl,'
20069
	lt_prog_compiler_pic_GCJ='-KPIC'
20070
	lt_prog_compiler_static_GCJ='-static'
20071
        ;;
20072
      pgcc* | pgf77* | pgf90* | pgf95*)
20073
        # Portland Group compilers (*not* the Pentium gcc compiler,
20074
	# which looks to be a dead project)
20075
	lt_prog_compiler_wl_GCJ='-Wl,'
20076
	lt_prog_compiler_pic_GCJ='-fpic'
20077
	lt_prog_compiler_static_GCJ='-Bstatic'
20078
        ;;
20079
      ccc*)
20080
        lt_prog_compiler_wl_GCJ='-Wl,'
20081
        # All Alpha code is PIC.
20082
        lt_prog_compiler_static_GCJ='-non_shared'
20083
        ;;
20084
      *)
20085
        case `$CC -V 2>&1 | sed 5q` in
20086
	*Sun\ C*)
20087
	  # Sun C 5.9
20088
	  lt_prog_compiler_pic_GCJ='-KPIC'
20089
	  lt_prog_compiler_static_GCJ='-Bstatic'
20090
	  lt_prog_compiler_wl_GCJ='-Wl,'
20091
	  ;;
20092
	*Sun\ F*)
20093
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
20094
	  lt_prog_compiler_pic_GCJ='-KPIC'
20095
	  lt_prog_compiler_static_GCJ='-Bstatic'
20096
	  lt_prog_compiler_wl_GCJ=''
20097
	  ;;
20098
	esac
20099
	;;
20100
      esac
20101
      ;;
20102
20103
    osf3* | osf4* | osf5*)
20104
      lt_prog_compiler_wl_GCJ='-Wl,'
20105
      # All OSF/1 code is PIC.
20106
      lt_prog_compiler_static_GCJ='-non_shared'
20107
      ;;
20108
20109
    rdos*)
20110
      lt_prog_compiler_static_GCJ='-non_shared'
20111
      ;;
20112
20113
    solaris*)
20114
      lt_prog_compiler_pic_GCJ='-KPIC'
20115
      lt_prog_compiler_static_GCJ='-Bstatic'
20116
      case $cc_basename in
20117
      f77* | f90* | f95*)
20118
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
20119
      *)
20120
	lt_prog_compiler_wl_GCJ='-Wl,';;
20121
      esac
20122
      ;;
20123
20124
    sunos4*)
20125
      lt_prog_compiler_wl_GCJ='-Qoption ld '
20126
      lt_prog_compiler_pic_GCJ='-PIC'
20127
      lt_prog_compiler_static_GCJ='-Bstatic'
20128
      ;;
20129
20130
    sysv4 | sysv4.2uw2* | sysv4.3*)
20131
      lt_prog_compiler_wl_GCJ='-Wl,'
20132
      lt_prog_compiler_pic_GCJ='-KPIC'
20133
      lt_prog_compiler_static_GCJ='-Bstatic'
20134
      ;;
20135
20136
    sysv4*MP*)
20137
      if test -d /usr/nec ;then
20138
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
20139
	lt_prog_compiler_static_GCJ='-Bstatic'
20140
      fi
20141
      ;;
20142
20143
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20144
      lt_prog_compiler_wl_GCJ='-Wl,'
20145
      lt_prog_compiler_pic_GCJ='-KPIC'
20146
      lt_prog_compiler_static_GCJ='-Bstatic'
20147
      ;;
20148
20149
    unicos*)
20150
      lt_prog_compiler_wl_GCJ='-Wl,'
20151
      lt_prog_compiler_can_build_shared_GCJ=no
20152
      ;;
20153
20154
    uts4*)
20155
      lt_prog_compiler_pic_GCJ='-pic'
20156
      lt_prog_compiler_static_GCJ='-Bstatic'
20157
      ;;
20158
20159
    *)
20160
      lt_prog_compiler_can_build_shared_GCJ=no
20161
      ;;
20162
    esac
20163
  fi
20164
20165
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20166
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
20167
20168
#
20169
# Check to make sure the PIC flag actually works.
20170
#
20171
if test -n "$lt_prog_compiler_pic_GCJ"; then
20172
20173
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20174
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
20175
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
20176
  echo $ECHO_N "(cached) $ECHO_C" >&6
20177
else
20178
  lt_cv_prog_compiler_pic_works_GCJ=no
20179
  ac_outfile=conftest.$ac_objext
20180
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20181
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
20182
   # Insert the option either (1) after the last *FLAGS variable, or
20183
   # (2) before a word containing "conftest.", or (3) at the end.
20184
   # Note that $ac_compile itself does not contain backslashes and begins
20185
   # with a dollar sign (not a hyphen), so the echo should work correctly.
20186
   # The option is referenced via a variable to avoid confusing sed.
20187
   lt_compile=`echo "$ac_compile" | $SED \
20188
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20189
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20190
   -e 's:$: $lt_compiler_flag:'`
20191
   (eval echo "\"\$as_me:20191: $lt_compile\"" >&5)
20192
   (eval "$lt_compile" 2>conftest.err)
20193
   ac_status=$?
20194
   cat conftest.err >&5
20195
   echo "$as_me:20195: \$? = $ac_status" >&5
20196
   if (exit $ac_status) && test -s "$ac_outfile"; then
20197
     # The compiler can only warn and ignore the option if not recognized
20198
     # So say no if there are warnings other than the usual output.
20199
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20200
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20201
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20202
       lt_cv_prog_compiler_pic_works_GCJ=yes
20203
     fi
20204
   fi
20205
   $rm conftest*
20206
20207
fi
20208
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
20209
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
20210
20211
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
20212
    case $lt_prog_compiler_pic_GCJ in
20213
     "" | " "*) ;;
20214
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20215
     esac
20216
else
20217
    lt_prog_compiler_pic_GCJ=
20218
     lt_prog_compiler_can_build_shared_GCJ=no
20219
fi
20220
20221
fi
20222
case $host_os in
20223
  # For platforms which do not support PIC, -DPIC is meaningless:
20224
  *djgpp*)
20225
    lt_prog_compiler_pic_GCJ=
20226
    ;;
20227
  *)
20228
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20229
    ;;
20230
esac
20231
20232
#
20233
# Check to make sure the static flag actually works.
20234
#
20235
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
20236
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20237
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20238
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
20239
  echo $ECHO_N "(cached) $ECHO_C" >&6
20240
else
20241
  lt_cv_prog_compiler_static_works_GCJ=no
20242
   save_LDFLAGS="$LDFLAGS"
20243
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20244
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20245
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20246
     # The linker can only warn and ignore the option if not recognized
20247
     # So say no if there are warnings
20248
     if test -s conftest.err; then
20249
       # Append any errors to the config.log.
20250
       cat conftest.err 1>&5
20251
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20252
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20253
       if diff conftest.exp conftest.er2 >/dev/null; then
20254
         lt_cv_prog_compiler_static_works_GCJ=yes
20255
       fi
20256
     else
20257
       lt_cv_prog_compiler_static_works_GCJ=yes
20258
     fi
20259
   fi
20260
   $rm -r conftest*
20261
   LDFLAGS="$save_LDFLAGS"
20262
20263
fi
20264
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
20265
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
20266
20267
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
20268
    :
20269
else
20270
    lt_prog_compiler_static_GCJ=
20271
fi
20272
20273
20274
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20275
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20276
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20277
  echo $ECHO_N "(cached) $ECHO_C" >&6
20278
else
20279
  lt_cv_prog_compiler_c_o_GCJ=no
20280
   $rm -r conftest 2>/dev/null
20281
   mkdir conftest
20282
   cd conftest
20283
   mkdir out
20284
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20285
20286
   lt_compiler_flag="-o out/conftest2.$ac_objext"
20287
   # Insert the option either (1) after the last *FLAGS variable, or
20288
   # (2) before a word containing "conftest.", or (3) at the end.
20289
   # Note that $ac_compile itself does not contain backslashes and begins
20290
   # with a dollar sign (not a hyphen), so the echo should work correctly.
20291
   lt_compile=`echo "$ac_compile" | $SED \
20292
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20293
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20294
   -e 's:$: $lt_compiler_flag:'`
20295
   (eval echo "\"\$as_me:20295: $lt_compile\"" >&5)
20296
   (eval "$lt_compile" 2>out/conftest.err)
20297
   ac_status=$?
20298
   cat out/conftest.err >&5
20299
   echo "$as_me:20299: \$? = $ac_status" >&5
20300
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20301
   then
20302
     # The compiler can only warn and ignore the option if not recognized
20303
     # So say no if there are warnings
20304
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20305
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20306
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20307
       lt_cv_prog_compiler_c_o_GCJ=yes
20308
     fi
20309
   fi
20310
   chmod u+w . 2>&5
20311
   $rm conftest*
20312
   # SGI C++ compiler will create directory out/ii_files/ for
20313
   # template instantiation
20314
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20315
   $rm out/* && rmdir out
20316
   cd ..
20317
   rmdir conftest
20318
   $rm conftest*
20319
20320
fi
20321
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20322
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
20323
20324
20325
hard_links="nottested"
20326
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20327
  # do not overwrite the value of need_locks provided by the user
20328
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20329
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20330
  hard_links=yes
20331
  $rm conftest*
20332
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20333
  touch conftest.a
20334
  ln conftest.a conftest.b 2>&5 || hard_links=no
20335
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20336
  { echo "$as_me:$LINENO: result: $hard_links" >&5
20337
echo "${ECHO_T}$hard_links" >&6; }
20338
  if test "$hard_links" = no; then
20339
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20340
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20341
    need_locks=warn
20342
  fi
20343
else
20344
  need_locks=no
20345
fi
20346
20347
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20348
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20349
20350
  runpath_var=
20351
  allow_undefined_flag_GCJ=
20352
  enable_shared_with_static_runtimes_GCJ=no
20353
  archive_cmds_GCJ=
20354
  archive_expsym_cmds_GCJ=
20355
  old_archive_From_new_cmds_GCJ=
20356
  old_archive_from_expsyms_cmds_GCJ=
20357
  export_dynamic_flag_spec_GCJ=
20358
  whole_archive_flag_spec_GCJ=
20359
  thread_safe_flag_spec_GCJ=
20360
  hardcode_libdir_flag_spec_GCJ=
20361
  hardcode_libdir_flag_spec_ld_GCJ=
20362
  hardcode_libdir_separator_GCJ=
20363
  hardcode_direct_GCJ=no
20364
  hardcode_minus_L_GCJ=no
20365
  hardcode_shlibpath_var_GCJ=unsupported
20366
  link_all_deplibs_GCJ=unknown
20367
  hardcode_automatic_GCJ=no
20368
  module_cmds_GCJ=
20369
  module_expsym_cmds_GCJ=
20370
  always_export_symbols_GCJ=no
20371
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20372
  # include_expsyms should be a list of space-separated symbols to be *always*
20373
  # included in the symbol list
20374
  include_expsyms_GCJ=
20375
  # exclude_expsyms can be an extended regexp of symbols to exclude
20376
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
20377
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20378
  # as well as any symbol that contains `d'.
20379
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20380
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20381
  # platforms (ab)use it in PIC code, but their linkers get confused if
20382
  # the symbol is explicitly referenced.  Since portable code cannot
20383
  # rely on this symbol name, it's probably fine to never include it in
20384
  # preloaded symbol tables.
20385
  # Exclude shared library initialization/finalization symbols.
20386
  extract_expsyms_cmds=
20387
  # Just being paranoid about ensuring that cc_basename is set.
20388
  for cc_temp in $compiler""; do
20389
  case $cc_temp in
20390
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20391
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20392
    \-*) ;;
20393
    *) break;;
20394
  esac
20395
done
20396
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20397
20398
  case $host_os in
20399
  cygwin* | mingw* | pw32*)
20400
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20401
    # When not using gcc, we currently assume that we are using
20402
    # Microsoft Visual C++.
20403
    if test "$GCC" != yes; then
20404
      with_gnu_ld=no
20405
    fi
20406
    ;;
20407
  interix*)
20408
    # we just hope/assume this is gcc and not c89 (= MSVC++)
20409
    with_gnu_ld=yes
20410
    ;;
20411
  openbsd*)
20412
    with_gnu_ld=no
20413
    ;;
20414
  esac
20415
20416
  ld_shlibs_GCJ=yes
20417
  if test "$with_gnu_ld" = yes; then
20418
    # If archive_cmds runs LD, not CC, wlarc should be empty
20419
    wlarc='${wl}'
20420
20421
    # Set some defaults for GNU ld with shared library support. These
20422
    # are reset later if shared libraries are not supported. Putting them
20423
    # here allows them to be overridden if necessary.
20424
    runpath_var=LD_RUN_PATH
20425
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20426
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20427
    # ancient GNU ld didn't support --whole-archive et. al.
20428
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20429
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20430
      else
20431
  	whole_archive_flag_spec_GCJ=
20432
    fi
20433
    supports_anon_versioning=no
20434
    case `$LD -v 2>/dev/null` in
20435
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20436
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20437
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20438
      *\ 2.11.*) ;; # other 2.11 versions
20439
      *) supports_anon_versioning=yes ;;
20440
    esac
20441
20442
    # See if GNU ld supports shared libraries.
20443
    case $host_os in
20444
    aix[3-9]*)
20445
      # On AIX/PPC, the GNU linker is very broken
20446
      if test "$host_cpu" != ia64; then
20447
	ld_shlibs_GCJ=no
20448
	cat <<EOF 1>&2
20449
20450
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20451
*** to be unable to reliably create shared libraries on AIX.
20452
*** Therefore, libtool is disabling shared libraries support.  If you
20453
*** really care for shared libraries, you may want to modify your PATH
20454
*** so that a non-GNU linker is found, and then restart.
20455
20456
EOF
20457
      fi
20458
      ;;
20459
20460
    amigaos*)
20461
      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)'
20462
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20463
      hardcode_minus_L_GCJ=yes
20464
20465
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20466
      # that the semantics of dynamic libraries on AmigaOS, at least up
20467
      # to version 4, is to share data among multiple programs linked
20468
      # with the same dynamic library.  Since this doesn't match the
20469
      # behavior of shared libraries on other platforms, we can't use
20470
      # them.
20471
      ld_shlibs_GCJ=no
20472
      ;;
20473
20474
    beos*)
20475
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20476
	allow_undefined_flag_GCJ=unsupported
20477
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20478
	# support --undefined.  This deserves some investigation.  FIXME
20479
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20480
      else
20481
	ld_shlibs_GCJ=no
20482
      fi
20483
      ;;
20484
20485
    cygwin* | mingw* | pw32*)
20486
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20487
      # as there is no search path for DLLs.
20488
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20489
      allow_undefined_flag_GCJ=unsupported
20490
      always_export_symbols_GCJ=no
20491
      enable_shared_with_static_runtimes_GCJ=yes
20492
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20493
20494
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20495
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20496
	# If the export-symbols file already is a .def file (1st line
20497
	# is EXPORTS), use it as is; otherwise, prepend...
20498
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20499
	  cp $export_symbols $output_objdir/$soname.def;
20500
	else
20501
	  echo EXPORTS > $output_objdir/$soname.def;
20502
	  cat $export_symbols >> $output_objdir/$soname.def;
20503
	fi~
20504
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20505
      else
20506
	ld_shlibs_GCJ=no
20507
      fi
20508
      ;;
20509
20510
    interix[3-9]*)
20511
      hardcode_direct_GCJ=no
20512
      hardcode_shlibpath_var_GCJ=no
20513
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20514
      export_dynamic_flag_spec_GCJ='${wl}-E'
20515
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20516
      # Instead, shared libraries are loaded at an image base (0x10000000 by
20517
      # default) and relocated if they conflict, which is a slow very memory
20518
      # consuming and fragmenting process.  To avoid this, we pick a random,
20519
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20520
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20521
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20522
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20523
      ;;
20524
20525
    gnu* | linux* | k*bsd*-gnu)
20526
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20527
	tmp_addflag=
20528
	case $cc_basename,$host_cpu in
20529
	pgcc*)				# Portland Group C compiler
20530
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20531
	  tmp_addflag=' $pic_flag'
20532
	  ;;
20533
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
20534
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20535
	  tmp_addflag=' $pic_flag -Mnomain' ;;
20536
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
20537
	  tmp_addflag=' -i_dynamic' ;;
20538
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
20539
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
20540
	ifc* | ifort*)			# Intel Fortran compiler
20541
	  tmp_addflag=' -nofor_main' ;;
20542
	esac
20543
	case `$CC -V 2>&1 | sed 5q` in
20544
	*Sun\ C*)			# Sun C 5.9
20545
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20546
	  tmp_sharedflag='-G' ;;
20547
	*Sun\ F*)			# Sun Fortran 8.3
20548
	  tmp_sharedflag='-G' ;;
20549
	*)
20550
	  tmp_sharedflag='-shared' ;;
20551
	esac
20552
	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20553
20554
	if test $supports_anon_versioning = yes; then
20555
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20556
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20557
  $echo "local: *; };" >> $output_objdir/$libname.ver~
20558
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20559
	fi
20560
	link_all_deplibs_GCJ=no
20561
      else
20562
	ld_shlibs_GCJ=no
20563
      fi
20564
      ;;
20565
20566
    netbsd* | netbsdelf*-gnu)
20567
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20568
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20569
	wlarc=
20570
      else
20571
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20572
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20573
      fi
20574
      ;;
20575
20576
    solaris*)
20577
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20578
	ld_shlibs_GCJ=no
20579
	cat <<EOF 1>&2
20580
20581
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20582
*** create shared libraries on Solaris systems.  Therefore, libtool
20583
*** is disabling shared libraries support.  We urge you to upgrade GNU
20584
*** binutils to release 2.9.1 or newer.  Another option is to modify
20585
*** your PATH or compiler configuration so that the native linker is
20586
*** used, and then restart.
20587
20588
EOF
20589
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20590
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20591
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20592
      else
20593
	ld_shlibs_GCJ=no
20594
      fi
20595
      ;;
20596
20597
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20598
      case `$LD -v 2>&1` in
20599
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20600
	ld_shlibs_GCJ=no
20601
	cat <<_LT_EOF 1>&2
20602
20603
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20604
*** reliably create shared libraries on SCO systems.  Therefore, libtool
20605
*** is disabling shared libraries support.  We urge you to upgrade GNU
20606
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20607
*** your PATH or compiler configuration so that the native linker is
20608
*** used, and then restart.
20609
20610
_LT_EOF
20611
	;;
20612
	*)
20613
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20614
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20615
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20616
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20617
	  else
20618
	    ld_shlibs_GCJ=no
20619
	  fi
20620
	;;
20621
      esac
20622
      ;;
20623
20624
    sunos4*)
20625
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20626
      wlarc=
20627
      hardcode_direct_GCJ=yes
20628
      hardcode_shlibpath_var_GCJ=no
20629
      ;;
20630
20631
    *)
20632
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20633
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20634
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20635
      else
20636
	ld_shlibs_GCJ=no
20637
      fi
20638
      ;;
20639
    esac
20640
20641
    if test "$ld_shlibs_GCJ" = no; then
20642
      runpath_var=
20643
      hardcode_libdir_flag_spec_GCJ=
20644
      export_dynamic_flag_spec_GCJ=
20645
      whole_archive_flag_spec_GCJ=
20646
    fi
20647
  else
20648
    # PORTME fill in a description of your system's linker (not GNU ld)
20649
    case $host_os in
20650
    aix3*)
20651
      allow_undefined_flag_GCJ=unsupported
20652
      always_export_symbols_GCJ=yes
20653
      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'
20654
      # Note: this linker hardcodes the directories in LIBPATH if there
20655
      # are no directories specified by -L.
20656
      hardcode_minus_L_GCJ=yes
20657
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20658
	# Neither direct hardcoding nor static linking is supported with a
20659
	# broken collect2.
20660
	hardcode_direct_GCJ=unsupported
20661
      fi
20662
      ;;
20663
20664
    aix[4-9]*)
20665
      if test "$host_cpu" = ia64; then
20666
	# On IA64, the linker does run time linking by default, so we don't
20667
	# have to do anything special.
20668
	aix_use_runtimelinking=no
20669
	exp_sym_flag='-Bexport'
20670
	no_entry_flag=""
20671
      else
20672
	# If we're using GNU nm, then we don't want the "-C" option.
20673
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
20674
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20675
	  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'
20676
	else
20677
	  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'
20678
	fi
20679
	aix_use_runtimelinking=no
20680
20681
	# Test if we are trying to use run time linking or normal
20682
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20683
	# need to do runtime linking.
20684
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20685
	  for ld_flag in $LDFLAGS; do
20686
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20687
  	    aix_use_runtimelinking=yes
20688
  	    break
20689
  	  fi
20690
	  done
20691
	  ;;
20692
	esac
20693
20694
	exp_sym_flag='-bexport'
20695
	no_entry_flag='-bnoentry'
20696
      fi
20697
20698
      # When large executables or shared objects are built, AIX ld can
20699
      # have problems creating the table of contents.  If linking a library
20700
      # or program results in "error TOC overflow" add -mminimal-toc to
20701
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20702
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20703
20704
      archive_cmds_GCJ=''
20705
      hardcode_direct_GCJ=yes
20706
      hardcode_libdir_separator_GCJ=':'
20707
      link_all_deplibs_GCJ=yes
20708
20709
      if test "$GCC" = yes; then
20710
	case $host_os in aix4.[012]|aix4.[012].*)
20711
	# We only want to do this on AIX 4.2 and lower, the check
20712
	# below for broken collect2 doesn't work under 4.3+
20713
	  collect2name=`${CC} -print-prog-name=collect2`
20714
	  if test -f "$collect2name" && \
20715
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
20716
	  then
20717
  	  # We have reworked collect2
20718
  	  :
20719
	  else
20720
  	  # We have old collect2
20721
  	  hardcode_direct_GCJ=unsupported
20722
  	  # It fails to find uninstalled libraries when the uninstalled
20723
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
20724
  	  # to unsupported forces relinking
20725
  	  hardcode_minus_L_GCJ=yes
20726
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
20727
  	  hardcode_libdir_separator_GCJ=
20728
	  fi
20729
	  ;;
20730
	esac
20731
	shared_flag='-shared'
20732
	if test "$aix_use_runtimelinking" = yes; then
20733
	  shared_flag="$shared_flag "'${wl}-G'
20734
	fi
20735
      else
20736
	# not using gcc
20737
	if test "$host_cpu" = ia64; then
20738
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20739
  	# chokes on -Wl,-G. The following line is correct:
20740
	  shared_flag='-G'
20741
	else
20742
	  if test "$aix_use_runtimelinking" = yes; then
20743
	    shared_flag='${wl}-G'
20744
	  else
20745
	    shared_flag='${wl}-bM:SRE'
20746
	  fi
20747
	fi
20748
      fi
20749
20750
      # It seems that -bexpall does not export symbols beginning with
20751
      # underscore (_), so it is better to generate a list of symbols to export.
20752
      always_export_symbols_GCJ=yes
20753
      if test "$aix_use_runtimelinking" = yes; then
20754
	# Warning - without using the other runtime loading flags (-brtl),
20755
	# -berok will link without error, but may produce a broken library.
20756
	allow_undefined_flag_GCJ='-berok'
20757
       # Determine the default libpath from the value encoded in an empty executable.
20758
       cat >conftest.$ac_ext <<_ACEOF
20759
/* confdefs.h.  */
20760
_ACEOF
20761
cat confdefs.h >>conftest.$ac_ext
20762
cat >>conftest.$ac_ext <<_ACEOF
20763
/* end confdefs.h.  */
20764
20765
int
20766
main ()
20767
{
20768
20769
  ;
20770
  return 0;
20771
}
20772
_ACEOF
20773
rm -f conftest.$ac_objext conftest$ac_exeext
20774
if { (ac_try="$ac_link"
20775
case "(($ac_try" in
20776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777
  *) ac_try_echo=$ac_try;;
20778
esac
20779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780
  (eval "$ac_link") 2>conftest.er1
20781
  ac_status=$?
20782
  grep -v '^ *+' conftest.er1 >conftest.err
20783
  rm -f conftest.er1
20784
  cat conftest.err >&5
20785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786
  (exit $ac_status); } && {
20787
	 test -z "$ac_c_werror_flag" ||
20788
	 test ! -s conftest.err
20789
       } && test -s conftest$ac_exeext &&
20790
       $as_test_x conftest$ac_exeext; then
20791
20792
lt_aix_libpath_sed='
20793
    /Import File Strings/,/^$/ {
20794
	/^0/ {
20795
	    s/^0  *\(.*\)$/\1/
20796
	    p
20797
	}
20798
    }'
20799
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20800
# Check for a 64-bit object if we didn't find anything.
20801
if test -z "$aix_libpath"; then
20802
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20803
fi
20804
else
20805
  echo "$as_me: failed program was:" >&5
20806
sed 's/^/| /' conftest.$ac_ext >&5
20807
20808
20809
fi
20810
20811
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20812
      conftest$ac_exeext conftest.$ac_ext
20813
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20814
20815
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20816
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20817
       else
20818
	if test "$host_cpu" = ia64; then
20819
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20820
	  allow_undefined_flag_GCJ="-z nodefs"
20821
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
20822
	else
20823
	 # Determine the default libpath from the value encoded in an empty executable.
20824
	 cat >conftest.$ac_ext <<_ACEOF
20825
/* confdefs.h.  */
20826
_ACEOF
20827
cat confdefs.h >>conftest.$ac_ext
20828
cat >>conftest.$ac_ext <<_ACEOF
20829
/* end confdefs.h.  */
20830
20831
int
20832
main ()
20833
{
20834
20835
  ;
20836
  return 0;
20837
}
20838
_ACEOF
20839
rm -f conftest.$ac_objext conftest$ac_exeext
20840
if { (ac_try="$ac_link"
20841
case "(($ac_try" in
20842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843
  *) ac_try_echo=$ac_try;;
20844
esac
20845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846
  (eval "$ac_link") 2>conftest.er1
20847
  ac_status=$?
20848
  grep -v '^ *+' conftest.er1 >conftest.err
20849
  rm -f conftest.er1
20850
  cat conftest.err >&5
20851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852
  (exit $ac_status); } && {
20853
	 test -z "$ac_c_werror_flag" ||
20854
	 test ! -s conftest.err
20855
       } && test -s conftest$ac_exeext &&
20856
       $as_test_x conftest$ac_exeext; then
20857
20858
lt_aix_libpath_sed='
20859
    /Import File Strings/,/^$/ {
20860
	/^0/ {
20861
	    s/^0  *\(.*\)$/\1/
20862
	    p
20863
	}
20864
    }'
20865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20866
# Check for a 64-bit object if we didn't find anything.
20867
if test -z "$aix_libpath"; then
20868
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20869
fi
20870
else
20871
  echo "$as_me: failed program was:" >&5
20872
sed 's/^/| /' conftest.$ac_ext >&5
20873
20874
20875
fi
20876
20877
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20878
      conftest$ac_exeext conftest.$ac_ext
20879
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20880
20881
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20882
	  # Warning - without using the other run time loading flags,
20883
	  # -berok will link without error, but may produce a broken library.
20884
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
20885
	  allow_undefined_flag_GCJ=' ${wl}-berok'
20886
	  # Exported symbols can be pulled into shared objects from archives
20887
	  whole_archive_flag_spec_GCJ='$convenience'
20888
	  archive_cmds_need_lc_GCJ=yes
20889
	  # This is similar to how AIX traditionally builds its shared libraries.
20890
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20891
	fi
20892
      fi
20893
      ;;
20894
20895
    amigaos*)
20896
      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)'
20897
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20898
      hardcode_minus_L_GCJ=yes
20899
      # see comment about different semantics on the GNU ld section
20900
      ld_shlibs_GCJ=no
20901
      ;;
20902
20903
    bsdi[45]*)
20904
      export_dynamic_flag_spec_GCJ=-rdynamic
20905
      ;;
20906
20907
    cygwin* | mingw* | pw32*)
20908
      # When not using gcc, we currently assume that we are using
20909
      # Microsoft Visual C++.
20910
      # hardcode_libdir_flag_spec is actually meaningless, as there is
20911
      # no search path for DLLs.
20912
      hardcode_libdir_flag_spec_GCJ=' '
20913
      allow_undefined_flag_GCJ=unsupported
20914
      # Tell ltmain to make .lib files, not .a files.
20915
      libext=lib
20916
      # Tell ltmain to make .dll files, not .so files.
20917
      shrext_cmds=".dll"
20918
      # FIXME: Setting linknames here is a bad hack.
20919
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20920
      # The linker will automatically build a .lib file if we build a DLL.
20921
      old_archive_From_new_cmds_GCJ='true'
20922
      # FIXME: Should let the user specify the lib program.
20923
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20924
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20925
      enable_shared_with_static_runtimes_GCJ=yes
20926
      ;;
20927
20928
    darwin* | rhapsody*)
20929
      case $host_os in
20930
        rhapsody* | darwin1.[012])
20931
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20932
         ;;
20933
       *) # Darwin 1.3 on
20934
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20935
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20936
         else
20937
           case ${MACOSX_DEPLOYMENT_TARGET} in
20938
             10.[012])
20939
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20940
               ;;
20941
             10.*)
20942
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20943
               ;;
20944
           esac
20945
         fi
20946
         ;;
20947
      esac
20948
      archive_cmds_need_lc_GCJ=no
20949
      hardcode_direct_GCJ=no
20950
      hardcode_automatic_GCJ=yes
20951
      hardcode_shlibpath_var_GCJ=unsupported
20952
      whole_archive_flag_spec_GCJ=''
20953
      link_all_deplibs_GCJ=yes
20954
    if test "$GCC" = yes ; then
20955
    	output_verbose_link_cmd='echo'
20956
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20957
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20958
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20959
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
20960
    else
20961
      case $cc_basename in
20962
        xlc*)
20963
         output_verbose_link_cmd='echo'
20964
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20965
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20966
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20967
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20968
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20969
          ;;
20970
       *)
20971
         ld_shlibs_GCJ=no
20972
          ;;
20973
      esac
20974
    fi
20975
      ;;
20976
20977
    dgux*)
20978
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20979
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20980
      hardcode_shlibpath_var_GCJ=no
20981
      ;;
20982
20983
    freebsd1*)
20984
      ld_shlibs_GCJ=no
20985
      ;;
20986
20987
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20988
    # support.  Future versions do this automatically, but an explicit c++rt0.o
20989
    # does not break anything, and helps significantly (at the cost of a little
20990
    # extra space).
20991
    freebsd2.2*)
20992
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20993
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20994
      hardcode_direct_GCJ=yes
20995
      hardcode_shlibpath_var_GCJ=no
20996
      ;;
20997
20998
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20999
    freebsd2*)
21000
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21001
      hardcode_direct_GCJ=yes
21002
      hardcode_minus_L_GCJ=yes
21003
      hardcode_shlibpath_var_GCJ=no
21004
      ;;
21005
21006
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21007
    freebsd* | dragonfly*)
21008
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21009
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21010
      hardcode_direct_GCJ=yes
21011
      hardcode_shlibpath_var_GCJ=no
21012
      ;;
21013
21014
    hpux9*)
21015
      if test "$GCC" = yes; then
21016
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21017
      else
21018
	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'
21019
      fi
21020
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21021
      hardcode_libdir_separator_GCJ=:
21022
      hardcode_direct_GCJ=yes
21023
21024
      # hardcode_minus_L: Not really in the search PATH,
21025
      # but as the default location of the library.
21026
      hardcode_minus_L_GCJ=yes
21027
      export_dynamic_flag_spec_GCJ='${wl}-E'
21028
      ;;
21029
21030
    hpux10*)
21031
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21032
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21033
      else
21034
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21035
      fi
21036
      if test "$with_gnu_ld" = no; then
21037
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21038
	hardcode_libdir_separator_GCJ=:
21039
21040
	hardcode_direct_GCJ=yes
21041
	export_dynamic_flag_spec_GCJ='${wl}-E'
21042
21043
	# hardcode_minus_L: Not really in the search PATH,
21044
	# but as the default location of the library.
21045
	hardcode_minus_L_GCJ=yes
21046
      fi
21047
      ;;
21048
21049
    hpux11*)
21050
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21051
	case $host_cpu in
21052
	hppa*64*)
21053
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21054
	  ;;
21055
	ia64*)
21056
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21057
	  ;;
21058
	*)
21059
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21060
	  ;;
21061
	esac
21062
      else
21063
	case $host_cpu in
21064
	hppa*64*)
21065
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21066
	  ;;
21067
	ia64*)
21068
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21069
	  ;;
21070
	*)
21071
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21072
	  ;;
21073
	esac
21074
      fi
21075
      if test "$with_gnu_ld" = no; then
21076
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21077
	hardcode_libdir_separator_GCJ=:
21078
21079
	case $host_cpu in
21080
	hppa*64*|ia64*)
21081
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21082
	  hardcode_direct_GCJ=no
21083
	  hardcode_shlibpath_var_GCJ=no
21084
	  ;;
21085
	*)
21086
	  hardcode_direct_GCJ=yes
21087
	  export_dynamic_flag_spec_GCJ='${wl}-E'
21088
21089
	  # hardcode_minus_L: Not really in the search PATH,
21090
	  # but as the default location of the library.
21091
	  hardcode_minus_L_GCJ=yes
21092
	  ;;
21093
	esac
21094
      fi
21095
      ;;
21096
21097
    irix5* | irix6* | nonstopux*)
21098
      if test "$GCC" = yes; then
21099
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21100
      else
21101
	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'
21102
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21103
      fi
21104
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21105
      hardcode_libdir_separator_GCJ=:
21106
      link_all_deplibs_GCJ=yes
21107
      ;;
21108
21109
    netbsd* | netbsdelf*-gnu)
21110
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21111
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21112
      else
21113
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21114
      fi
21115
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21116
      hardcode_direct_GCJ=yes
21117
      hardcode_shlibpath_var_GCJ=no
21118
      ;;
21119
21120
    newsos6)
21121
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21122
      hardcode_direct_GCJ=yes
21123
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21124
      hardcode_libdir_separator_GCJ=:
21125
      hardcode_shlibpath_var_GCJ=no
21126
      ;;
21127
21128
    openbsd*)
21129
      if test -f /usr/libexec/ld.so; then
21130
	hardcode_direct_GCJ=yes
21131
	hardcode_shlibpath_var_GCJ=no
21132
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21133
	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21134
	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21135
	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21136
	  export_dynamic_flag_spec_GCJ='${wl}-E'
21137
	else
21138
	  case $host_os in
21139
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21140
	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21141
	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
21142
	     ;;
21143
	   *)
21144
	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21145
	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21146
	     ;;
21147
	  esac
21148
        fi
21149
      else
21150
	ld_shlibs_GCJ=no
21151
      fi
21152
      ;;
21153
21154
    os2*)
21155
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21156
      hardcode_minus_L_GCJ=yes
21157
      allow_undefined_flag_GCJ=unsupported
21158
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
21159
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21160
      ;;
21161
21162
    osf3*)
21163
      if test "$GCC" = yes; then
21164
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21165
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21166
      else
21167
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
21168
	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'
21169
      fi
21170
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21171
      hardcode_libdir_separator_GCJ=:
21172
      ;;
21173
21174
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21175
      if test "$GCC" = yes; then
21176
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21177
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21178
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21179
      else
21180
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
21181
	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'
21182
	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~
21183
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
21184
21185
	# Both c and cxx compiler support -rpath directly
21186
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21187
      fi
21188
      hardcode_libdir_separator_GCJ=:
21189
      ;;
21190
21191
    solaris*)
21192
      no_undefined_flag_GCJ=' -z text'
21193
      if test "$GCC" = yes; then
21194
	wlarc='${wl}'
21195
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21196
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21197
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21198
      else
21199
	wlarc=''
21200
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21201
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21202
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21203
      fi
21204
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21205
      hardcode_shlibpath_var_GCJ=no
21206
      case $host_os in
21207
      solaris2.[0-5] | solaris2.[0-5].*) ;;
21208
      *)
21209
	# The compiler driver will combine and reorder linker options,
21210
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
21211
	# but is careful enough not to reorder.
21212
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
21213
	if test "$GCC" = yes; then
21214
	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21215
	else
21216
	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
21217
	fi
21218
	;;
21219
      esac
21220
      link_all_deplibs_GCJ=yes
21221
      ;;
21222
21223
    sunos4*)
21224
      if test "x$host_vendor" = xsequent; then
21225
	# Use $CC to link under sequent, because it throws in some extra .o
21226
	# files that make .init and .fini sections work.
21227
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21228
      else
21229
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21230
      fi
21231
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21232
      hardcode_direct_GCJ=yes
21233
      hardcode_minus_L_GCJ=yes
21234
      hardcode_shlibpath_var_GCJ=no
21235
      ;;
21236
21237
    sysv4)
21238
      case $host_vendor in
21239
	sni)
21240
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21241
	  hardcode_direct_GCJ=yes # is this really true???
21242
	;;
21243
	siemens)
21244
	  ## LD is ld it makes a PLAMLIB
21245
	  ## CC just makes a GrossModule.
21246
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21247
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21248
	  hardcode_direct_GCJ=no
21249
        ;;
21250
	motorola)
21251
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21252
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21253
	;;
21254
      esac
21255
      runpath_var='LD_RUN_PATH'
21256
      hardcode_shlibpath_var_GCJ=no
21257
      ;;
21258
21259
    sysv4.3*)
21260
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21261
      hardcode_shlibpath_var_GCJ=no
21262
      export_dynamic_flag_spec_GCJ='-Bexport'
21263
      ;;
21264
21265
    sysv4*MP*)
21266
      if test -d /usr/nec; then
21267
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21268
	hardcode_shlibpath_var_GCJ=no
21269
	runpath_var=LD_RUN_PATH
21270
	hardcode_runpath_var=yes
21271
	ld_shlibs_GCJ=yes
21272
      fi
21273
      ;;
21274
21275
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21276
      no_undefined_flag_GCJ='${wl}-z,text'
21277
      archive_cmds_need_lc_GCJ=no
21278
      hardcode_shlibpath_var_GCJ=no
21279
      runpath_var='LD_RUN_PATH'
21280
21281
      if test "$GCC" = yes; then
21282
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21283
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21284
      else
21285
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21286
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21287
      fi
21288
      ;;
21289
21290
    sysv5* | sco3.2v5* | sco5v6*)
21291
      # Note: We can NOT use -z defs as we might desire, because we do not
21292
      # link with -lc, and that would cause any symbols used from libc to
21293
      # always be unresolved, which means just about no library would
21294
      # ever link correctly.  If we're not using GNU ld we use -z text
21295
      # though, which does catch some bad symbols but isn't as heavy-handed
21296
      # as -z defs.
21297
      no_undefined_flag_GCJ='${wl}-z,text'
21298
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
21299
      archive_cmds_need_lc_GCJ=no
21300
      hardcode_shlibpath_var_GCJ=no
21301
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21302
      hardcode_libdir_separator_GCJ=':'
21303
      link_all_deplibs_GCJ=yes
21304
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21305
      runpath_var='LD_RUN_PATH'
21306
21307
      if test "$GCC" = yes; then
21308
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21309
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310
      else
21311
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21312
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21313
      fi
21314
      ;;
21315
21316
    uts4*)
21317
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21318
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21319
      hardcode_shlibpath_var_GCJ=no
21320
      ;;
21321
21322
    *)
21323
      ld_shlibs_GCJ=no
21324
      ;;
21325
    esac
21326
  fi
21327
21328
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21329
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
21330
test "$ld_shlibs_GCJ" = no && can_build_shared=no
21331
21332
#
21333
# Do we need to explicitly link libc?
21334
#
21335
case "x$archive_cmds_need_lc_GCJ" in
21336
x|xyes)
21337
  # Assume -lc should be added
21338
  archive_cmds_need_lc_GCJ=yes
21339
21340
  if test "$enable_shared" = yes && test "$GCC" = yes; then
21341
    case $archive_cmds_GCJ in
21342
    *'~'*)
21343
      # FIXME: we may have to deal with multi-command sequences.
21344
      ;;
21345
    '$CC '*)
21346
      # Test whether the compiler implicitly links with -lc since on some
21347
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21348
      # to ld, don't add -lc before -lgcc.
21349
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21350
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21351
      $rm conftest*
21352
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21353
21354
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355
  (eval $ac_compile) 2>&5
21356
  ac_status=$?
21357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358
  (exit $ac_status); } 2>conftest.err; then
21359
        soname=conftest
21360
        lib=conftest
21361
        libobjs=conftest.$ac_objext
21362
        deplibs=
21363
        wl=$lt_prog_compiler_wl_GCJ
21364
	pic_flag=$lt_prog_compiler_pic_GCJ
21365
        compiler_flags=-v
21366
        linker_flags=-v
21367
        verstring=
21368
        output_objdir=.
21369
        libname=conftest
21370
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21371
        allow_undefined_flag_GCJ=
21372
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21373
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21374
  ac_status=$?
21375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376
  (exit $ac_status); }
21377
        then
21378
	  archive_cmds_need_lc_GCJ=no
21379
        else
21380
	  archive_cmds_need_lc_GCJ=yes
21381
        fi
21382
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21383
      else
21384
        cat conftest.err 1>&5
21385
      fi
21386
      $rm conftest*
21387
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21388
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
21389
      ;;
21390
    esac
21391
  fi
21392
  ;;
21393
esac
21394
21395
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21396
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21397
library_names_spec=
21398
libname_spec='lib$name'
21399
soname_spec=
21400
shrext_cmds=".so"
21401
postinstall_cmds=
21402
postuninstall_cmds=
21403
finish_cmds=
21404
finish_eval=
21405
shlibpath_var=
21406
shlibpath_overrides_runpath=unknown
21407
version_type=none
21408
dynamic_linker="$host_os ld.so"
21409
sys_lib_dlsearch_path_spec="/lib /usr/lib"
21410
21411
need_lib_prefix=unknown
21412
hardcode_into_libs=no
21413
21414
# when you set need_version to no, make sure it does not cause -set_version
21415
# flags to be left without arguments
21416
need_version=unknown
21417
21418
case $host_os in
21419
aix3*)
21420
  version_type=linux
21421
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21422
  shlibpath_var=LIBPATH
21423
21424
  # AIX 3 has no versioning support, so we append a major version to the name.
21425
  soname_spec='${libname}${release}${shared_ext}$major'
21426
  ;;
21427
21428
aix[4-9]*)
21429
  version_type=linux
21430
  need_lib_prefix=no
21431
  need_version=no
21432
  hardcode_into_libs=yes
21433
  if test "$host_cpu" = ia64; then
21434
    # AIX 5 supports IA64
21435
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21436
    shlibpath_var=LD_LIBRARY_PATH
21437
  else
21438
    # With GCC up to 2.95.x, collect2 would create an import file
21439
    # for dependence libraries.  The import file would start with
21440
    # the line `#! .'.  This would cause the generated library to
21441
    # depend on `.', always an invalid library.  This was fixed in
21442
    # development snapshots of GCC prior to 3.0.
21443
    case $host_os in
21444
      aix4 | aix4.[01] | aix4.[01].*)
21445
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21446
	   echo ' yes '
21447
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21448
	:
21449
      else
21450
	can_build_shared=no
21451
      fi
21452
      ;;
21453
    esac
21454
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21455
    # soname into executable. Probably we can add versioning support to
21456
    # collect2, so additional links can be useful in future.
21457
    if test "$aix_use_runtimelinking" = yes; then
21458
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21459
      # instead of lib<name>.a to let people know that these are not
21460
      # typical AIX shared libraries.
21461
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21462
    else
21463
      # We preserve .a as extension for shared libraries through AIX4.2
21464
      # and later when we are not doing run time linking.
21465
      library_names_spec='${libname}${release}.a $libname.a'
21466
      soname_spec='${libname}${release}${shared_ext}$major'
21467
    fi
21468
    shlibpath_var=LIBPATH
21469
  fi
21470
  ;;
21471
21472
amigaos*)
21473
  library_names_spec='$libname.ixlibrary $libname.a'
21474
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
21475
  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'
21476
  ;;
21477
21478
beos*)
21479
  library_names_spec='${libname}${shared_ext}'
21480
  dynamic_linker="$host_os ld.so"
21481
  shlibpath_var=LIBRARY_PATH
21482
  ;;
21483
21484
bsdi[45]*)
21485
  version_type=linux
21486
  need_version=no
21487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21488
  soname_spec='${libname}${release}${shared_ext}$major'
21489
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21490
  shlibpath_var=LD_LIBRARY_PATH
21491
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21492
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21493
  # the default ld.so.conf also contains /usr/contrib/lib and
21494
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21495
  # libtool to hard-code these into programs
21496
  ;;
21497
21498
cygwin* | mingw* | pw32*)
21499
  version_type=windows
21500
  shrext_cmds=".dll"
21501
  need_version=no
21502
  need_lib_prefix=no
21503
21504
  case $GCC,$host_os in
21505
  yes,cygwin* | yes,mingw* | yes,pw32*)
21506
    library_names_spec='$libname.dll.a'
21507
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21508
    postinstall_cmds='base_file=`basename \${file}`~
21509
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21510
      dldir=$destdir/`dirname \$dlpath`~
21511
      test -d \$dldir || mkdir -p \$dldir~
21512
      $install_prog $dir/$dlname \$dldir/$dlname~
21513
      chmod a+x \$dldir/$dlname'
21514
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21515
      dlpath=$dir/\$dldll~
21516
       $rm \$dlpath'
21517
    shlibpath_overrides_runpath=yes
21518
21519
    case $host_os in
21520
    cygwin*)
21521
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21522
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21523
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21524
      ;;
21525
    mingw*)
21526
      # MinGW DLLs use traditional 'lib' prefix
21527
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21528
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21529
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21530
        # It is most probably a Windows format PATH printed by
21531
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
21532
        # path with ; separators, and with drive letters. We can handle the
21533
        # drive letters (cygwin fileutils understands them), so leave them,
21534
        # especially as we might pass files found there to a mingw objdump,
21535
        # which wouldn't understand a cygwinified path. Ahh.
21536
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21537
      else
21538
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21539
      fi
21540
      ;;
21541
    pw32*)
21542
      # pw32 DLLs use 'pw' prefix rather than 'lib'
21543
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21544
      ;;
21545
    esac
21546
    ;;
21547
21548
  *)
21549
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21550
    ;;
21551
  esac
21552
  dynamic_linker='Win32 ld.exe'
21553
  # FIXME: first we should search . and the directory the executable is in
21554
  shlibpath_var=PATH
21555
  ;;
21556
21557
darwin* | rhapsody*)
21558
  dynamic_linker="$host_os dyld"
21559
  version_type=darwin
21560
  need_lib_prefix=no
21561
  need_version=no
21562
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21563
  soname_spec='${libname}${release}${major}$shared_ext'
21564
  shlibpath_overrides_runpath=yes
21565
  shlibpath_var=DYLD_LIBRARY_PATH
21566
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21567
21568
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21569
  ;;
21570
21571
dgux*)
21572
  version_type=linux
21573
  need_lib_prefix=no
21574
  need_version=no
21575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21576
  soname_spec='${libname}${release}${shared_ext}$major'
21577
  shlibpath_var=LD_LIBRARY_PATH
21578
  ;;
21579
21580
freebsd1*)
21581
  dynamic_linker=no
21582
  ;;
21583
21584
freebsd* | dragonfly*)
21585
  # DragonFly does not have aout.  When/if they implement a new
21586
  # versioning mechanism, adjust this.
21587
  if test -x /usr/bin/objformat; then
21588
    objformat=`/usr/bin/objformat`
21589
  else
21590
    case $host_os in
21591
    freebsd[123]*) objformat=aout ;;
21592
    *) objformat=elf ;;
21593
    esac
21594
  fi
21595
  version_type=freebsd-$objformat
21596
  case $version_type in
21597
    freebsd-elf*)
21598
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21599
      need_version=no
21600
      need_lib_prefix=no
21601
      ;;
21602
    freebsd-*)
21603
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21604
      need_version=yes
21605
      ;;
21606
  esac
21607
  shlibpath_var=LD_LIBRARY_PATH
21608
  case $host_os in
21609
  freebsd2*)
21610
    shlibpath_overrides_runpath=yes
21611
    ;;
21612
  freebsd3.[01]* | freebsdelf3.[01]*)
21613
    shlibpath_overrides_runpath=yes
21614
    hardcode_into_libs=yes
21615
    ;;
21616
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21617
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21618
    shlibpath_overrides_runpath=no
21619
    hardcode_into_libs=yes
21620
    ;;
21621
  *) # from 4.6 on, and DragonFly
21622
    shlibpath_overrides_runpath=yes
21623
    hardcode_into_libs=yes
21624
    ;;
21625
  esac
21626
  ;;
21627
21628
gnu*)
21629
  version_type=linux
21630
  need_lib_prefix=no
21631
  need_version=no
21632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21633
  soname_spec='${libname}${release}${shared_ext}$major'
21634
  shlibpath_var=LD_LIBRARY_PATH
21635
  hardcode_into_libs=yes
21636
  ;;
21637
21638
hpux9* | hpux10* | hpux11*)
21639
  # Give a soname corresponding to the major version so that dld.sl refuses to
21640
  # link against other versions.
21641
  version_type=sunos
21642
  need_lib_prefix=no
21643
  need_version=no
21644
  case $host_cpu in
21645
  ia64*)
21646
    shrext_cmds='.so'
21647
    hardcode_into_libs=yes
21648
    dynamic_linker="$host_os dld.so"
21649
    shlibpath_var=LD_LIBRARY_PATH
21650
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21651
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21652
    soname_spec='${libname}${release}${shared_ext}$major'
21653
    if test "X$HPUX_IA64_MODE" = X32; then
21654
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21655
    else
21656
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21657
    fi
21658
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21659
    ;;
21660
   hppa*64*)
21661
     shrext_cmds='.sl'
21662
     hardcode_into_libs=yes
21663
     dynamic_linker="$host_os dld.sl"
21664
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21665
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21666
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21667
     soname_spec='${libname}${release}${shared_ext}$major'
21668
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21669
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21670
     ;;
21671
   *)
21672
    shrext_cmds='.sl'
21673
    dynamic_linker="$host_os dld.sl"
21674
    shlibpath_var=SHLIB_PATH
21675
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21676
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21677
    soname_spec='${libname}${release}${shared_ext}$major'
21678
    ;;
21679
  esac
21680
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21681
  postinstall_cmds='chmod 555 $lib'
21682
  ;;
21683
21684
interix[3-9]*)
21685
  version_type=linux
21686
  need_lib_prefix=no
21687
  need_version=no
21688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21689
  soname_spec='${libname}${release}${shared_ext}$major'
21690
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21691
  shlibpath_var=LD_LIBRARY_PATH
21692
  shlibpath_overrides_runpath=no
21693
  hardcode_into_libs=yes
21694
  ;;
21695
21696
irix5* | irix6* | nonstopux*)
21697
  case $host_os in
21698
    nonstopux*) version_type=nonstopux ;;
21699
    *)
21700
	if test "$lt_cv_prog_gnu_ld" = yes; then
21701
		version_type=linux
21702
	else
21703
		version_type=irix
21704
	fi ;;
21705
  esac
21706
  need_lib_prefix=no
21707
  need_version=no
21708
  soname_spec='${libname}${release}${shared_ext}$major'
21709
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21710
  case $host_os in
21711
  irix5* | nonstopux*)
21712
    libsuff= shlibsuff=
21713
    ;;
21714
  *)
21715
    case $LD in # libtool.m4 will add one of these switches to LD
21716
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21717
      libsuff= shlibsuff= libmagic=32-bit;;
21718
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21719
      libsuff=32 shlibsuff=N32 libmagic=N32;;
21720
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21721
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21722
    *) libsuff= shlibsuff= libmagic=never-match;;
21723
    esac
21724
    ;;
21725
  esac
21726
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21727
  shlibpath_overrides_runpath=no
21728
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21729
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21730
  hardcode_into_libs=yes
21731
  ;;
21732
21733
# No shared lib support for Linux oldld, aout, or coff.
21734
linux*oldld* | linux*aout* | linux*coff*)
21735
  dynamic_linker=no
21736
  ;;
21737
21738
# This must be Linux ELF.
21739
linux* | k*bsd*-gnu)
21740
  version_type=linux
21741
  need_lib_prefix=no
21742
  need_version=no
21743
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21744
  soname_spec='${libname}${release}${shared_ext}$major'
21745
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21746
  shlibpath_var=LD_LIBRARY_PATH
21747
  shlibpath_overrides_runpath=no
21748
  # This implies no fast_install, which is unacceptable.
21749
  # Some rework will be needed to allow for fast_install
21750
  # before this can be enabled.
21751
  hardcode_into_libs=yes
21752
21753
  # Append ld.so.conf contents to the search path
21754
  if test -f /etc/ld.so.conf; then
21755
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21756
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21757
  fi
21758
21759
  # We used to test for /lib/ld.so.1 and disable shared libraries on
21760
  # powerpc, because MkLinux only supported shared libraries with the
21761
  # GNU dynamic linker.  Since this was broken with cross compilers,
21762
  # most powerpc-linux boxes support dynamic linking these days and
21763
  # people can always --disable-shared, the test was removed, and we
21764
  # assume the GNU/Linux dynamic linker is in use.
21765
  dynamic_linker='GNU/Linux ld.so'
21766
  ;;
21767
21768
netbsdelf*-gnu)
21769
  version_type=linux
21770
  need_lib_prefix=no
21771
  need_version=no
21772
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21773
  soname_spec='${libname}${release}${shared_ext}$major'
21774
  shlibpath_var=LD_LIBRARY_PATH
21775
  shlibpath_overrides_runpath=no
21776
  hardcode_into_libs=yes
21777
  dynamic_linker='NetBSD ld.elf_so'
21778
  ;;
21779
21780
netbsd*)
21781
  version_type=sunos
21782
  need_lib_prefix=no
21783
  need_version=no
21784
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21785
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21786
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21787
    dynamic_linker='NetBSD (a.out) ld.so'
21788
  else
21789
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21790
    soname_spec='${libname}${release}${shared_ext}$major'
21791
    dynamic_linker='NetBSD ld.elf_so'
21792
  fi
21793
  shlibpath_var=LD_LIBRARY_PATH
21794
  shlibpath_overrides_runpath=yes
21795
  hardcode_into_libs=yes
21796
  ;;
21797
21798
newsos6)
21799
  version_type=linux
21800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21801
  shlibpath_var=LD_LIBRARY_PATH
21802
  shlibpath_overrides_runpath=yes
21803
  ;;
21804
21805
nto-qnx*)
21806
  version_type=linux
21807
  need_lib_prefix=no
21808
  need_version=no
21809
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21810
  soname_spec='${libname}${release}${shared_ext}$major'
21811
  shlibpath_var=LD_LIBRARY_PATH
21812
  shlibpath_overrides_runpath=yes
21813
  ;;
21814
21815
openbsd*)
21816
  version_type=sunos
21817
  sys_lib_dlsearch_path_spec="/usr/lib"
21818
  need_lib_prefix=no
21819
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21820
  case $host_os in
21821
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21822
    *)                         need_version=no  ;;
21823
  esac
21824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21825
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21826
  shlibpath_var=LD_LIBRARY_PATH
21827
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21828
    case $host_os in
21829
      openbsd2.[89] | openbsd2.[89].*)
21830
	shlibpath_overrides_runpath=no
21831
	;;
21832
      *)
21833
	shlibpath_overrides_runpath=yes
21834
	;;
21835
      esac
21836
  else
21837
    shlibpath_overrides_runpath=yes
21838
  fi
21839
  ;;
21840
21841
os2*)
21842
  libname_spec='$name'
21843
  shrext_cmds=".dll"
21844
  need_lib_prefix=no
21845
  library_names_spec='$libname${shared_ext} $libname.a'
21846
  dynamic_linker='OS/2 ld.exe'
21847
  shlibpath_var=LIBPATH
21848
  ;;
21849
21850
osf3* | osf4* | osf5*)
21851
  version_type=osf
21852
  need_lib_prefix=no
21853
  need_version=no
21854
  soname_spec='${libname}${release}${shared_ext}$major'
21855
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21856
  shlibpath_var=LD_LIBRARY_PATH
21857
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21858
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21859
  ;;
21860
21861
rdos*)
21862
  dynamic_linker=no
21863
  ;;
21864
21865
solaris*)
21866
  version_type=linux
21867
  need_lib_prefix=no
21868
  need_version=no
21869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21870
  soname_spec='${libname}${release}${shared_ext}$major'
21871
  shlibpath_var=LD_LIBRARY_PATH
21872
  shlibpath_overrides_runpath=yes
21873
  hardcode_into_libs=yes
21874
  # ldd complains unless libraries are executable
21875
  postinstall_cmds='chmod +x $lib'
21876
  ;;
21877
21878
sunos4*)
21879
  version_type=sunos
21880
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21881
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21882
  shlibpath_var=LD_LIBRARY_PATH
21883
  shlibpath_overrides_runpath=yes
21884
  if test "$with_gnu_ld" = yes; then
21885
    need_lib_prefix=no
21886
  fi
21887
  need_version=yes
21888
  ;;
21889
21890
sysv4 | sysv4.3*)
21891
  version_type=linux
21892
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21893
  soname_spec='${libname}${release}${shared_ext}$major'
21894
  shlibpath_var=LD_LIBRARY_PATH
21895
  case $host_vendor in
21896
    sni)
21897
      shlibpath_overrides_runpath=no
21898
      need_lib_prefix=no
21899
      export_dynamic_flag_spec='${wl}-Blargedynsym'
21900
      runpath_var=LD_RUN_PATH
21901
      ;;
21902
    siemens)
21903
      need_lib_prefix=no
21904
      ;;
21905
    motorola)
21906
      need_lib_prefix=no
21907
      need_version=no
21908
      shlibpath_overrides_runpath=no
21909
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21910
      ;;
21911
  esac
21912
  ;;
21913
21914
sysv4*MP*)
21915
  if test -d /usr/nec ;then
21916
    version_type=linux
21917
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21918
    soname_spec='$libname${shared_ext}.$major'
21919
    shlibpath_var=LD_LIBRARY_PATH
21920
  fi
21921
  ;;
21922
21923
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21924
  version_type=freebsd-elf
21925
  need_lib_prefix=no
21926
  need_version=no
21927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21928
  soname_spec='${libname}${release}${shared_ext}$major'
21929
  shlibpath_var=LD_LIBRARY_PATH
21930
  hardcode_into_libs=yes
21931
  if test "$with_gnu_ld" = yes; then
21932
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21933
    shlibpath_overrides_runpath=no
21934
  else
21935
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21936
    shlibpath_overrides_runpath=yes
21937
    case $host_os in
21938
      sco3.2v5*)
21939
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21940
	;;
21941
    esac
21942
  fi
21943
  sys_lib_dlsearch_path_spec='/usr/lib'
21944
  ;;
21945
21946
uts4*)
21947
  version_type=linux
21948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21949
  soname_spec='${libname}${release}${shared_ext}$major'
21950
  shlibpath_var=LD_LIBRARY_PATH
21951
  ;;
21952
21953
*)
21954
  dynamic_linker=no
21955
  ;;
21956
esac
21957
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21958
echo "${ECHO_T}$dynamic_linker" >&6; }
21959
test "$dynamic_linker" = no && can_build_shared=no
21960
21961
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21962
  echo $ECHO_N "(cached) $ECHO_C" >&6
21963
else
21964
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21965
fi
21966
21967
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21968
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21969
  echo $ECHO_N "(cached) $ECHO_C" >&6
21970
else
21971
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21972
fi
21973
21974
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21975
21976
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21977
if test "$GCC" = yes; then
21978
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21979
fi
21980
21981
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21982
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21983
hardcode_action_GCJ=
21984
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21985
   test -n "$runpath_var_GCJ" || \
21986
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21987
21988
  # We can hardcode non-existant directories.
21989
  if test "$hardcode_direct_GCJ" != no &&
21990
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21991
     # have to relink, otherwise we might link with an installed library
21992
     # when we should be linking with a yet-to-be-installed one
21993
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21994
     test "$hardcode_minus_L_GCJ" != no; then
21995
    # Linking always hardcodes the temporary library directory.
21996
    hardcode_action_GCJ=relink
21997
  else
21998
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21999
    hardcode_action_GCJ=immediate
22000
  fi
22001
else
22002
  # We cannot hardcode anything, or else we can only hardcode existing
22003
  # directories.
22004
  hardcode_action_GCJ=unsupported
22005
fi
22006
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22007
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
22008
22009
if test "$hardcode_action_GCJ" = relink; then
22010
  # Fast installation is not supported
22011
  enable_fast_install=no
22012
elif test "$shlibpath_overrides_runpath" = yes ||
22013
     test "$enable_shared" = no; then
22014
  # Fast installation is not necessary
22015
  enable_fast_install=needless
22016
fi
22017
22018
22019
# The else clause should only fire when bootstrapping the
22020
# libtool distribution, otherwise you forgot to ship ltmain.sh
22021
# with your package, and you will get complaints that there are
22022
# no rules to generate ltmain.sh.
22023
if test -f "$ltmain"; then
22024
  # See if we are running on zsh, and set the options which allow our commands through
22025
  # without removal of \ escapes.
22026
  if test -n "${ZSH_VERSION+set}" ; then
22027
    setopt NO_GLOB_SUBST
22028
  fi
22029
  # Now quote all the things that may contain metacharacters while being
22030
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22031
  # variables and quote the copies for generation of the libtool script.
22032
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22033
    SED SHELL STRIP \
22034
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22035
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22036
    deplibs_check_method reload_flag reload_cmds need_locks \
22037
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22038
    lt_cv_sys_global_symbol_to_c_name_address \
22039
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22040
    old_postinstall_cmds old_postuninstall_cmds \
22041
    compiler_GCJ \
22042
    CC_GCJ \
22043
    LD_GCJ \
22044
    lt_prog_compiler_wl_GCJ \
22045
    lt_prog_compiler_pic_GCJ \
22046
    lt_prog_compiler_static_GCJ \
22047
    lt_prog_compiler_no_builtin_flag_GCJ \
22048
    export_dynamic_flag_spec_GCJ \
22049
    thread_safe_flag_spec_GCJ \
22050
    whole_archive_flag_spec_GCJ \
22051
    enable_shared_with_static_runtimes_GCJ \
22052
    old_archive_cmds_GCJ \
22053
    old_archive_from_new_cmds_GCJ \
22054
    predep_objects_GCJ \
22055
    postdep_objects_GCJ \
22056
    predeps_GCJ \
22057
    postdeps_GCJ \
22058
    compiler_lib_search_path_GCJ \
22059
    compiler_lib_search_dirs_GCJ \
22060
    archive_cmds_GCJ \
22061
    archive_expsym_cmds_GCJ \
22062
    postinstall_cmds_GCJ \
22063
    postuninstall_cmds_GCJ \
22064
    old_archive_from_expsyms_cmds_GCJ \
22065
    allow_undefined_flag_GCJ \
22066
    no_undefined_flag_GCJ \
22067
    export_symbols_cmds_GCJ \
22068
    hardcode_libdir_flag_spec_GCJ \
22069
    hardcode_libdir_flag_spec_ld_GCJ \
22070
    hardcode_libdir_separator_GCJ \
22071
    hardcode_automatic_GCJ \
22072
    module_cmds_GCJ \
22073
    module_expsym_cmds_GCJ \
22074
    lt_cv_prog_compiler_c_o_GCJ \
22075
    fix_srcfile_path_GCJ \
22076
    exclude_expsyms_GCJ \
22077
    include_expsyms_GCJ; do
22078
22079
    case $var in
22080
    old_archive_cmds_GCJ | \
22081
    old_archive_from_new_cmds_GCJ | \
22082
    archive_cmds_GCJ | \
22083
    archive_expsym_cmds_GCJ | \
22084
    module_cmds_GCJ | \
22085
    module_expsym_cmds_GCJ | \
22086
    old_archive_from_expsyms_cmds_GCJ | \
22087
    export_symbols_cmds_GCJ | \
22088
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22089
    postinstall_cmds | postuninstall_cmds | \
22090
    old_postinstall_cmds | old_postuninstall_cmds | \
22091
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22092
      # Double-quote double-evaled strings.
22093
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22094
      ;;
22095
    *)
22096
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22097
      ;;
22098
    esac
22099
  done
22100
22101
  case $lt_echo in
22102
  *'\$0 --fallback-echo"')
22103
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22104
    ;;
22105
  esac
22106
22107
cfgfile="$ofile"
22108
22109
  cat <<__EOF__ >> "$cfgfile"
22110
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22111
22112
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22113
22114
# Shell to use when invoking shell scripts.
22115
SHELL=$lt_SHELL
22116
22117
# Whether or not to build shared libraries.
22118
build_libtool_libs=$enable_shared
22119
22120
# Whether or not to build static libraries.
22121
build_old_libs=$enable_static
22122
22123
# Whether or not to add -lc for building shared libraries.
22124
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22125
22126
# Whether or not to disallow shared libs when runtime libs are static
22127
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22128
22129
# Whether or not to optimize for fast installation.
22130
fast_install=$enable_fast_install
22131
22132
# The host system.
22133
host_alias=$host_alias
22134
host=$host
22135
host_os=$host_os
22136
22137
# The build system.
22138
build_alias=$build_alias
22139
build=$build
22140
build_os=$build_os
22141
22142
# An echo program that does not interpret backslashes.
22143
echo=$lt_echo
22144
22145
# The archiver.
22146
AR=$lt_AR
22147
AR_FLAGS=$lt_AR_FLAGS
22148
22149
# A C compiler.
22150
LTCC=$lt_LTCC
22151
22152
# LTCC compiler flags.
22153
LTCFLAGS=$lt_LTCFLAGS
22154
22155
# A language-specific compiler.
22156
CC=$lt_compiler_GCJ
22157
22158
# Is the compiler the GNU C compiler?
22159
with_gcc=$GCC_GCJ
22160
22161
# An ERE matcher.
22162
EGREP=$lt_EGREP
22163
22164
# The linker used to build libraries.
22165
LD=$lt_LD_GCJ
22166
22167
# Whether we need hard or soft links.
22168
LN_S=$lt_LN_S
22169
22170
# A BSD-compatible nm program.
22171
NM=$lt_NM
22172
22173
# A symbol stripping program
22174
STRIP=$lt_STRIP
22175
22176
# Used to examine libraries when file_magic_cmd begins "file"
22177
MAGIC_CMD=$MAGIC_CMD
22178
22179
# Used on cygwin: DLL creation program.
22180
DLLTOOL="$DLLTOOL"
22181
22182
# Used on cygwin: object dumper.
22183
OBJDUMP="$OBJDUMP"
22184
22185
# Used on cygwin: assembler.
22186
AS="$AS"
22187
22188
# The name of the directory that contains temporary libtool files.
22189
objdir=$objdir
22190
22191
# How to create reloadable object files.
22192
reload_flag=$lt_reload_flag
22193
reload_cmds=$lt_reload_cmds
22194
22195
# How to pass a linker flag through the compiler.
22196
wl=$lt_lt_prog_compiler_wl_GCJ
22197
22198
# Object file suffix (normally "o").
22199
objext="$ac_objext"
22200
22201
# Old archive suffix (normally "a").
22202
libext="$libext"
22203
22204
# Shared library suffix (normally ".so").
22205
shrext_cmds='$shrext_cmds'
22206
22207
# Executable file suffix (normally "").
22208
exeext="$exeext"
22209
22210
# Additional compiler flags for building library objects.
22211
pic_flag=$lt_lt_prog_compiler_pic_GCJ
22212
pic_mode=$pic_mode
22213
22214
# What is the maximum length of a command?
22215
max_cmd_len=$lt_cv_sys_max_cmd_len
22216
22217
# Does compiler simultaneously support -c and -o options?
22218
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22219
22220
# Must we lock files when doing compilation?
22221
need_locks=$lt_need_locks
22222
22223
# Do we need the lib prefix for modules?
22224
need_lib_prefix=$need_lib_prefix
22225
22226
# Do we need a version for libraries?
22227
need_version=$need_version
22228
22229
# Whether dlopen is supported.
22230
dlopen_support=$enable_dlopen
22231
22232
# Whether dlopen of programs is supported.
22233
dlopen_self=$enable_dlopen_self
22234
22235
# Whether dlopen of statically linked programs is supported.
22236
dlopen_self_static=$enable_dlopen_self_static
22237
22238
# Compiler flag to prevent dynamic linking.
22239
link_static_flag=$lt_lt_prog_compiler_static_GCJ
22240
22241
# Compiler flag to turn off builtin functions.
22242
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22243
22244
# Compiler flag to allow reflexive dlopens.
22245
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22246
22247
# Compiler flag to generate shared objects directly from archives.
22248
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22249
22250
# Compiler flag to generate thread-safe objects.
22251
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22252
22253
# Library versioning type.
22254
version_type=$version_type
22255
22256
# Format of library name prefix.
22257
libname_spec=$lt_libname_spec
22258
22259
# List of archive names.  First name is the real one, the rest are links.
22260
# The last name is the one that the linker finds with -lNAME.
22261
library_names_spec=$lt_library_names_spec
22262
22263
# The coded name of the library, if different from the real name.
22264
soname_spec=$lt_soname_spec
22265
22266
# Commands used to build and install an old-style archive.
22267
RANLIB=$lt_RANLIB
22268
old_archive_cmds=$lt_old_archive_cmds_GCJ
22269
old_postinstall_cmds=$lt_old_postinstall_cmds
22270
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22271
22272
# Create an old-style archive from a shared archive.
22273
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22274
22275
# Create a temporary old-style archive to link instead of a shared archive.
22276
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22277
22278
# Commands used to build and install a shared archive.
22279
archive_cmds=$lt_archive_cmds_GCJ
22280
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22281
postinstall_cmds=$lt_postinstall_cmds
22282
postuninstall_cmds=$lt_postuninstall_cmds
22283
22284
# Commands used to build a loadable module (assumed same as above if empty)
22285
module_cmds=$lt_module_cmds_GCJ
22286
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22287
22288
# Commands to strip libraries.
22289
old_striplib=$lt_old_striplib
22290
striplib=$lt_striplib
22291
22292
# Dependencies to place before the objects being linked to create a
22293
# shared library.
22294
predep_objects=$lt_predep_objects_GCJ
22295
22296
# Dependencies to place after the objects being linked to create a
22297
# shared library.
22298
postdep_objects=$lt_postdep_objects_GCJ
22299
22300
# Dependencies to place before the objects being linked to create a
22301
# shared library.
22302
predeps=$lt_predeps_GCJ
22303
22304
# Dependencies to place after the objects being linked to create a
22305
# shared library.
22306
postdeps=$lt_postdeps_GCJ
22307
22308
# The directories searched by this compiler when creating a shared
22309
# library
22310
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
22311
22312
# The library search path used internally by the compiler when linking
22313
# a shared library.
22314
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22315
22316
# Method to check whether dependent libraries are shared objects.
22317
deplibs_check_method=$lt_deplibs_check_method
22318
22319
# Command to use when deplibs_check_method == file_magic.
22320
file_magic_cmd=$lt_file_magic_cmd
22321
22322
# Flag that allows shared libraries with undefined symbols to be built.
22323
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22324
22325
# Flag that forces no undefined symbols.
22326
no_undefined_flag=$lt_no_undefined_flag_GCJ
22327
22328
# Commands used to finish a libtool library installation in a directory.
22329
finish_cmds=$lt_finish_cmds
22330
22331
# Same as above, but a single script fragment to be evaled but not shown.
22332
finish_eval=$lt_finish_eval
22333
22334
# Take the output of nm and produce a listing of raw symbols and C names.
22335
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22336
22337
# Transform the output of nm in a proper C declaration
22338
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22339
22340
# Transform the output of nm in a C name address pair
22341
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22342
22343
# This is the shared library runtime path variable.
22344
runpath_var=$runpath_var
22345
22346
# This is the shared library path variable.
22347
shlibpath_var=$shlibpath_var
22348
22349
# Is shlibpath searched before the hard-coded library search path?
22350
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22351
22352
# How to hardcode a shared library path into an executable.
22353
hardcode_action=$hardcode_action_GCJ
22354
22355
# Whether we should hardcode library paths into libraries.
22356
hardcode_into_libs=$hardcode_into_libs
22357
22358
# Flag to hardcode \$libdir into a binary during linking.
22359
# This must work even if \$libdir does not exist.
22360
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22361
22362
# If ld is used when linking, flag to hardcode \$libdir into
22363
# a binary during linking. This must work even if \$libdir does
22364
# not exist.
22365
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22366
22367
# Whether we need a single -rpath flag with a separated argument.
22368
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22369
22370
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22371
# resulting binary.
22372
hardcode_direct=$hardcode_direct_GCJ
22373
22374
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22375
# resulting binary.
22376
hardcode_minus_L=$hardcode_minus_L_GCJ
22377
22378
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22379
# the resulting binary.
22380
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22381
22382
# Set to yes if building a shared library automatically hardcodes DIR into the library
22383
# and all subsequent libraries and executables linked against it.
22384
hardcode_automatic=$hardcode_automatic_GCJ
22385
22386
# Variables whose values should be saved in libtool wrapper scripts and
22387
# restored at relink time.
22388
variables_saved_for_relink="$variables_saved_for_relink"
22389
22390
# Whether libtool must link a program against all its dependency libraries.
22391
link_all_deplibs=$link_all_deplibs_GCJ
22392
22393
# Compile-time system search path for libraries
22394
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22395
22396
# Run-time system search path for libraries
22397
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22398
22399
# Fix the shell variable \$srcfile for the compiler.
22400
fix_srcfile_path=$lt_fix_srcfile_path
22401
22402
# Set to yes if exported symbols are required.
22403
always_export_symbols=$always_export_symbols_GCJ
22404
22405
# The commands to list exported symbols.
22406
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22407
22408
# The commands to extract the exported symbol list from a shared archive.
22409
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22410
22411
# Symbols that should not be listed in the preloaded symbols.
22412
exclude_expsyms=$lt_exclude_expsyms_GCJ
22413
22414
# Symbols that must always be exported.
22415
include_expsyms=$lt_include_expsyms_GCJ
22416
22417
# ### END LIBTOOL TAG CONFIG: $tagname
22418
22419
__EOF__
22420
22421
22422
else
22423
  # If there is no Makefile yet, we rely on a make rule to execute
22424
  # `config.status --recheck' to rerun these tests and create the
22425
  # libtool script then.
22426
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22427
  if test -f "$ltmain_in"; then
22428
    test -f Makefile && make "$ltmain"
22429
  fi
22430
fi
22431
22432
22433
ac_ext=c
22434
ac_cpp='$CPP $CPPFLAGS'
22435
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22436
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22437
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22438
22439
CC="$lt_save_CC"
22440
22441
	else
22442
	  tagname=""
22443
	fi
22444
	;;
22445
22446
      RC)
22447
22448
22449
# Source file extension for RC test sources.
22450
ac_ext=rc
22451
22452
# Object file extension for compiled RC test sources.
22453
objext=o
22454
objext_RC=$objext
22455
22456
# Code to be used in simple compile tests
22457
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22458
22459
# Code to be used in simple link tests
22460
lt_simple_link_test_code="$lt_simple_compile_test_code"
22461
22462
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22463
22464
# If no C compiler was specified, use CC.
22465
LTCC=${LTCC-"$CC"}
22466
22467
# If no C compiler flags were specified, use CFLAGS.
22468
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22469
22470
# Allow CC to be a program name with arguments.
22471
compiler=$CC
22472
22473
22474
# save warnings/boilerplate of simple test code
22475
ac_outfile=conftest.$ac_objext
22476
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22477
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22478
_lt_compiler_boilerplate=`cat conftest.err`
22479
$rm conftest*
22480
22481
ac_outfile=conftest.$ac_objext
22482
echo "$lt_simple_link_test_code" >conftest.$ac_ext
22483
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22484
_lt_linker_boilerplate=`cat conftest.err`
22485
$rm -r conftest*
22486
22487
22488
# Allow CC to be a program name with arguments.
22489
lt_save_CC="$CC"
22490
CC=${RC-"windres"}
22491
compiler=$CC
22492
compiler_RC=$CC
22493
for cc_temp in $compiler""; do
22494
  case $cc_temp in
22495
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22496
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22497
    \-*) ;;
22498
    *) break;;
22499
  esac
22500
done
22501
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22502
22503
lt_cv_prog_compiler_c_o_RC=yes
22504
22505
# The else clause should only fire when bootstrapping the
22506
# libtool distribution, otherwise you forgot to ship ltmain.sh
22507
# with your package, and you will get complaints that there are
22508
# no rules to generate ltmain.sh.
22509
if test -f "$ltmain"; then
22510
  # See if we are running on zsh, and set the options which allow our commands through
22511
  # without removal of \ escapes.
22512
  if test -n "${ZSH_VERSION+set}" ; then
22513
    setopt NO_GLOB_SUBST
22514
  fi
22515
  # Now quote all the things that may contain metacharacters while being
22516
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22517
  # variables and quote the copies for generation of the libtool script.
22518
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22519
    SED SHELL STRIP \
22520
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22521
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22522
    deplibs_check_method reload_flag reload_cmds need_locks \
22523
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22524
    lt_cv_sys_global_symbol_to_c_name_address \
22525
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22526
    old_postinstall_cmds old_postuninstall_cmds \
22527
    compiler_RC \
22528
    CC_RC \
22529
    LD_RC \
22530
    lt_prog_compiler_wl_RC \
22531
    lt_prog_compiler_pic_RC \
22532
    lt_prog_compiler_static_RC \
22533
    lt_prog_compiler_no_builtin_flag_RC \
22534
    export_dynamic_flag_spec_RC \
22535
    thread_safe_flag_spec_RC \
22536
    whole_archive_flag_spec_RC \
22537
    enable_shared_with_static_runtimes_RC \
22538
    old_archive_cmds_RC \
22539
    old_archive_from_new_cmds_RC \
22540
    predep_objects_RC \
22541
    postdep_objects_RC \
22542
    predeps_RC \
22543
    postdeps_RC \
22544
    compiler_lib_search_path_RC \
22545
    compiler_lib_search_dirs_RC \
22546
    archive_cmds_RC \
22547
    archive_expsym_cmds_RC \
22548
    postinstall_cmds_RC \
22549
    postuninstall_cmds_RC \
22550
    old_archive_from_expsyms_cmds_RC \
22551
    allow_undefined_flag_RC \
22552
    no_undefined_flag_RC \
22553
    export_symbols_cmds_RC \
22554
    hardcode_libdir_flag_spec_RC \
22555
    hardcode_libdir_flag_spec_ld_RC \
22556
    hardcode_libdir_separator_RC \
22557
    hardcode_automatic_RC \
22558
    module_cmds_RC \
22559
    module_expsym_cmds_RC \
22560
    lt_cv_prog_compiler_c_o_RC \
22561
    fix_srcfile_path_RC \
22562
    exclude_expsyms_RC \
22563
    include_expsyms_RC; do
22564
22565
    case $var in
22566
    old_archive_cmds_RC | \
22567
    old_archive_from_new_cmds_RC | \
22568
    archive_cmds_RC | \
22569
    archive_expsym_cmds_RC | \
22570
    module_cmds_RC | \
22571
    module_expsym_cmds_RC | \
22572
    old_archive_from_expsyms_cmds_RC | \
22573
    export_symbols_cmds_RC | \
22574
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22575
    postinstall_cmds | postuninstall_cmds | \
22576
    old_postinstall_cmds | old_postuninstall_cmds | \
22577
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22578
      # Double-quote double-evaled strings.
22579
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22580
      ;;
22581
    *)
22582
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22583
      ;;
22584
    esac
22585
  done
22586
22587
  case $lt_echo in
22588
  *'\$0 --fallback-echo"')
22589
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22590
    ;;
22591
  esac
22592
22593
cfgfile="$ofile"
22594
22595
  cat <<__EOF__ >> "$cfgfile"
22596
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22597
22598
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22599
22600
# Shell to use when invoking shell scripts.
22601
SHELL=$lt_SHELL
22602
22603
# Whether or not to build shared libraries.
22604
build_libtool_libs=$enable_shared
22605
22606
# Whether or not to build static libraries.
22607
build_old_libs=$enable_static
22608
22609
# Whether or not to add -lc for building shared libraries.
22610
build_libtool_need_lc=$archive_cmds_need_lc_RC
22611
22612
# Whether or not to disallow shared libs when runtime libs are static
22613
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22614
22615
# Whether or not to optimize for fast installation.
22616
fast_install=$enable_fast_install
22617
22618
# The host system.
22619
host_alias=$host_alias
22620
host=$host
22621
host_os=$host_os
22622
22623
# The build system.
22624
build_alias=$build_alias
22625
build=$build
22626
build_os=$build_os
22627
22628
# An echo program that does not interpret backslashes.
22629
echo=$lt_echo
22630
22631
# The archiver.
22632
AR=$lt_AR
22633
AR_FLAGS=$lt_AR_FLAGS
22634
22635
# A C compiler.
22636
LTCC=$lt_LTCC
22637
22638
# LTCC compiler flags.
22639
LTCFLAGS=$lt_LTCFLAGS
22640
22641
# A language-specific compiler.
22642
CC=$lt_compiler_RC
22643
22644
# Is the compiler the GNU C compiler?
22645
with_gcc=$GCC_RC
22646
22647
# An ERE matcher.
22648
EGREP=$lt_EGREP
22649
22650
# The linker used to build libraries.
22651
LD=$lt_LD_RC
22652
22653
# Whether we need hard or soft links.
22654
LN_S=$lt_LN_S
22655
22656
# A BSD-compatible nm program.
22657
NM=$lt_NM
22658
22659
# A symbol stripping program
22660
STRIP=$lt_STRIP
22661
22662
# Used to examine libraries when file_magic_cmd begins "file"
22663
MAGIC_CMD=$MAGIC_CMD
22664
22665
# Used on cygwin: DLL creation program.
22666
DLLTOOL="$DLLTOOL"
22667
22668
# Used on cygwin: object dumper.
22669
OBJDUMP="$OBJDUMP"
22670
22671
# Used on cygwin: assembler.
22672
AS="$AS"
22673
22674
# The name of the directory that contains temporary libtool files.
22675
objdir=$objdir
22676
22677
# How to create reloadable object files.
22678
reload_flag=$lt_reload_flag
22679
reload_cmds=$lt_reload_cmds
22680
22681
# How to pass a linker flag through the compiler.
22682
wl=$lt_lt_prog_compiler_wl_RC
22683
22684
# Object file suffix (normally "o").
22685
objext="$ac_objext"
22686
22687
# Old archive suffix (normally "a").
22688
libext="$libext"
22689
22690
# Shared library suffix (normally ".so").
22691
shrext_cmds='$shrext_cmds'
22692
22693
# Executable file suffix (normally "").
22694
exeext="$exeext"
22695
22696
# Additional compiler flags for building library objects.
22697
pic_flag=$lt_lt_prog_compiler_pic_RC
22698
pic_mode=$pic_mode
22699
22700
# What is the maximum length of a command?
22701
max_cmd_len=$lt_cv_sys_max_cmd_len
22702
22703
# Does compiler simultaneously support -c and -o options?
22704
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22705
22706
# Must we lock files when doing compilation?
22707
need_locks=$lt_need_locks
22708
22709
# Do we need the lib prefix for modules?
22710
need_lib_prefix=$need_lib_prefix
22711
22712
# Do we need a version for libraries?
22713
need_version=$need_version
22714
22715
# Whether dlopen is supported.
22716
dlopen_support=$enable_dlopen
22717
22718
# Whether dlopen of programs is supported.
22719
dlopen_self=$enable_dlopen_self
22720
22721
# Whether dlopen of statically linked programs is supported.
22722
dlopen_self_static=$enable_dlopen_self_static
22723
22724
# Compiler flag to prevent dynamic linking.
22725
link_static_flag=$lt_lt_prog_compiler_static_RC
22726
22727
# Compiler flag to turn off builtin functions.
22728
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22729
22730
# Compiler flag to allow reflexive dlopens.
22731
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22732
22733
# Compiler flag to generate shared objects directly from archives.
22734
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22735
22736
# Compiler flag to generate thread-safe objects.
22737
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22738
22739
# Library versioning type.
22740
version_type=$version_type
22741
22742
# Format of library name prefix.
22743
libname_spec=$lt_libname_spec
22744
22745
# List of archive names.  First name is the real one, the rest are links.
22746
# The last name is the one that the linker finds with -lNAME.
22747
library_names_spec=$lt_library_names_spec
22748
22749
# The coded name of the library, if different from the real name.
22750
soname_spec=$lt_soname_spec
22751
22752
# Commands used to build and install an old-style archive.
22753
RANLIB=$lt_RANLIB
22754
old_archive_cmds=$lt_old_archive_cmds_RC
22755
old_postinstall_cmds=$lt_old_postinstall_cmds
22756
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22757
22758
# Create an old-style archive from a shared archive.
22759
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22760
22761
# Create a temporary old-style archive to link instead of a shared archive.
22762
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22763
22764
# Commands used to build and install a shared archive.
22765
archive_cmds=$lt_archive_cmds_RC
22766
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22767
postinstall_cmds=$lt_postinstall_cmds
22768
postuninstall_cmds=$lt_postuninstall_cmds
22769
22770
# Commands used to build a loadable module (assumed same as above if empty)
22771
module_cmds=$lt_module_cmds_RC
22772
module_expsym_cmds=$lt_module_expsym_cmds_RC
22773
22774
# Commands to strip libraries.
22775
old_striplib=$lt_old_striplib
22776
striplib=$lt_striplib
22777
22778
# Dependencies to place before the objects being linked to create a
22779
# shared library.
22780
predep_objects=$lt_predep_objects_RC
22781
22782
# Dependencies to place after the objects being linked to create a
22783
# shared library.
22784
postdep_objects=$lt_postdep_objects_RC
22785
22786
# Dependencies to place before the objects being linked to create a
22787
# shared library.
22788
predeps=$lt_predeps_RC
22789
22790
# Dependencies to place after the objects being linked to create a
22791
# shared library.
22792
postdeps=$lt_postdeps_RC
22793
22794
# The directories searched by this compiler when creating a shared
22795
# library
22796
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22797
22798
# The library search path used internally by the compiler when linking
22799
# a shared library.
22800
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22801
22802
# Method to check whether dependent libraries are shared objects.
22803
deplibs_check_method=$lt_deplibs_check_method
22804
22805
# Command to use when deplibs_check_method == file_magic.
22806
file_magic_cmd=$lt_file_magic_cmd
22807
22808
# Flag that allows shared libraries with undefined symbols to be built.
22809
allow_undefined_flag=$lt_allow_undefined_flag_RC
22810
22811
# Flag that forces no undefined symbols.
22812
no_undefined_flag=$lt_no_undefined_flag_RC
22813
22814
# Commands used to finish a libtool library installation in a directory.
22815
finish_cmds=$lt_finish_cmds
22816
22817
# Same as above, but a single script fragment to be evaled but not shown.
22818
finish_eval=$lt_finish_eval
22819
22820
# Take the output of nm and produce a listing of raw symbols and C names.
22821
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22822
22823
# Transform the output of nm in a proper C declaration
22824
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22825
22826
# Transform the output of nm in a C name address pair
22827
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22828
22829
# This is the shared library runtime path variable.
22830
runpath_var=$runpath_var
22831
22832
# This is the shared library path variable.
22833
shlibpath_var=$shlibpath_var
22834
22835
# Is shlibpath searched before the hard-coded library search path?
22836
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22837
22838
# How to hardcode a shared library path into an executable.
22839
hardcode_action=$hardcode_action_RC
22840
22841
# Whether we should hardcode library paths into libraries.
22842
hardcode_into_libs=$hardcode_into_libs
22843
22844
# Flag to hardcode \$libdir into a binary during linking.
22845
# This must work even if \$libdir does not exist.
22846
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22847
22848
# If ld is used when linking, flag to hardcode \$libdir into
22849
# a binary during linking. This must work even if \$libdir does
22850
# not exist.
22851
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22852
22853
# Whether we need a single -rpath flag with a separated argument.
22854
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22855
22856
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22857
# resulting binary.
22858
hardcode_direct=$hardcode_direct_RC
22859
22860
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22861
# resulting binary.
22862
hardcode_minus_L=$hardcode_minus_L_RC
22863
22864
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22865
# the resulting binary.
22866
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22867
22868
# Set to yes if building a shared library automatically hardcodes DIR into the library
22869
# and all subsequent libraries and executables linked against it.
22870
hardcode_automatic=$hardcode_automatic_RC
22871
22872
# Variables whose values should be saved in libtool wrapper scripts and
22873
# restored at relink time.
22874
variables_saved_for_relink="$variables_saved_for_relink"
22875
22876
# Whether libtool must link a program against all its dependency libraries.
22877
link_all_deplibs=$link_all_deplibs_RC
22878
22879
# Compile-time system search path for libraries
22880
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22881
22882
# Run-time system search path for libraries
22883
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22884
22885
# Fix the shell variable \$srcfile for the compiler.
22886
fix_srcfile_path=$lt_fix_srcfile_path
22887
22888
# Set to yes if exported symbols are required.
22889
always_export_symbols=$always_export_symbols_RC
22890
22891
# The commands to list exported symbols.
22892
export_symbols_cmds=$lt_export_symbols_cmds_RC
22893
22894
# The commands to extract the exported symbol list from a shared archive.
22895
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22896
22897
# Symbols that should not be listed in the preloaded symbols.
22898
exclude_expsyms=$lt_exclude_expsyms_RC
22899
22900
# Symbols that must always be exported.
22901
include_expsyms=$lt_include_expsyms_RC
22902
22903
# ### END LIBTOOL TAG CONFIG: $tagname
22904
22905
__EOF__
22906
22907
22908
else
22909
  # If there is no Makefile yet, we rely on a make rule to execute
22910
  # `config.status --recheck' to rerun these tests and create the
22911
  # libtool script then.
22912
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22913
  if test -f "$ltmain_in"; then
22914
    test -f Makefile && make "$ltmain"
22915
  fi
22916
fi
22917
22918
22919
ac_ext=c
22920
ac_cpp='$CPP $CPPFLAGS'
22921
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22922
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22923
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22924
22925
CC="$lt_save_CC"
22926
22927
	;;
22928
22929
      *)
22930
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22931
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22932
   { (exit 1); exit 1; }; }
22933
	;;
22934
      esac
22935
22936
      # Append the new tag name to the list of available tags.
22937
      if test -n "$tagname" ; then
22938
      available_tags="$available_tags $tagname"
22939
    fi
22940
    fi
22941
  done
22942
  IFS="$lt_save_ifs"
22943
22944
  # Now substitute the updated list of available tags.
22945
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22946
    mv "${ofile}T" "$ofile"
22947
    chmod +x "$ofile"
22948
  else
22949
    rm -f "${ofile}T"
22950
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22951
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22952
   { (exit 1); exit 1; }; }
22953
  fi
22954
fi
22955
22956
22957
22958
# This can be used to rebuild libtool when needed
22959
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22960
22961
# Always use our own libtool.
22962
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22963
22964
# Prevent multiple expansion
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22989
	if test -n "$ac_tool_prefix"; then
22990
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22991
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22992
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22994
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22995
  echo $ECHO_N "(cached) $ECHO_C" >&6
22996
else
22997
  case $PKG_CONFIG in
22998
  [\\/]* | ?:[\\/]*)
22999
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23000
  ;;
23001
  *)
23002
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23003
for as_dir in $PATH
23004
do
23005
  IFS=$as_save_IFS
23006
  test -z "$as_dir" && as_dir=.
23007
  for ac_exec_ext in '' $ac_executable_extensions; do
23008
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23009
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23010
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23011
    break 2
23012
  fi
23013
done
23014
done
23015
IFS=$as_save_IFS
23016
23017
  ;;
23018
esac
23019
fi
23020
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23021
if test -n "$PKG_CONFIG"; then
23022
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23023
echo "${ECHO_T}$PKG_CONFIG" >&6; }
23024
else
23025
  { echo "$as_me:$LINENO: result: no" >&5
23026
echo "${ECHO_T}no" >&6; }
23027
fi
23028
23029
23030
fi
23031
if test -z "$ac_cv_path_PKG_CONFIG"; then
23032
  ac_pt_PKG_CONFIG=$PKG_CONFIG
23033
  # Extract the first word of "pkg-config", so it can be a program name with args.
23034
set dummy pkg-config; ac_word=$2
23035
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23037
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
23038
  echo $ECHO_N "(cached) $ECHO_C" >&6
23039
else
23040
  case $ac_pt_PKG_CONFIG in
23041
  [\\/]* | ?:[\\/]*)
23042
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23043
  ;;
23044
  *)
23045
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23046
for as_dir in $PATH
23047
do
23048
  IFS=$as_save_IFS
23049
  test -z "$as_dir" && as_dir=.
23050
  for ac_exec_ext in '' $ac_executable_extensions; do
23051
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23052
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23053
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23054
    break 2
23055
  fi
23056
done
23057
done
23058
IFS=$as_save_IFS
23059
23060
  ;;
23061
esac
23062
fi
23063
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23064
if test -n "$ac_pt_PKG_CONFIG"; then
23065
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23066
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
23067
else
23068
  { echo "$as_me:$LINENO: result: no" >&5
23069
echo "${ECHO_T}no" >&6; }
23070
fi
23071
23072
  if test "x$ac_pt_PKG_CONFIG" = x; then
23073
    PKG_CONFIG=""
23074
  else
23075
    case $cross_compiling:$ac_tool_warned in
23076
yes:)
23077
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23078
whose name does not start with the host triplet.  If you think this
23079
configuration is useful to you, please write to autoconf@gnu.org." >&5
23080
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23081
whose name does not start with the host triplet.  If you think this
23082
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23083
ac_tool_warned=yes ;;
23084
esac
23085
    PKG_CONFIG=$ac_pt_PKG_CONFIG
23086
  fi
23087
else
23088
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23089
fi
23090
23091
fi
23092
if test -n "$PKG_CONFIG"; then
23093
	_pkg_min_version=0.9.0
23094
	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23095
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
23096
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23097
		{ echo "$as_me:$LINENO: result: yes" >&5
23098
echo "${ECHO_T}yes" >&6; }
23099
	else
23100
		{ echo "$as_me:$LINENO: result: no" >&5
23101
echo "${ECHO_T}no" >&6; }
23102
		PKG_CONFIG=""
23103
	fi
23104
23105
fi
23106
23107
pkg_failed=no
23108
{ echo "$as_me:$LINENO: checking for PACKAGE" >&5
23109
echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
23110
23111
if test -n "$PKG_CONFIG"; then
23112
    if test -n "$PACKAGE_CFLAGS"; then
23113
        pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
23114
    else
23115
        if test -n "$PKG_CONFIG" && \
23116
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3\"") >&5
23117
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3") 2>&5
23118
  ac_status=$?
23119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120
  (exit $ac_status); }; then
23121
  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3" 2>/dev/null`
23122
else
23123
  pkg_failed=yes
23124
fi
23125
    fi
23126
else
23127
	pkg_failed=untried
23128
fi
23129
if test -n "$PKG_CONFIG"; then
23130
    if test -n "$PACKAGE_LIBS"; then
23131
        pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
23132
    else
23133
        if test -n "$PKG_CONFIG" && \
23134
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3\"") >&5
23135
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3") 2>&5
23136
  ac_status=$?
23137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138
  (exit $ac_status); }; then
23139
  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3" 2>/dev/null`
23140
else
23141
  pkg_failed=yes
23142
fi
23143
    fi
23144
else
23145
	pkg_failed=untried
23146
fi
23147
23148
23149
23150
if test $pkg_failed = yes; then
23151
23152
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23153
        _pkg_short_errors_supported=yes
23154
else
23155
        _pkg_short_errors_supported=no
23156
fi
23157
        if test $_pkg_short_errors_supported = yes; then
23158
	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3"`
23159
        else
23160
	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3"`
23161
        fi
23162
	# Put the nasty error message in config.log where it belongs
23163
	echo "$PACKAGE_PKG_ERRORS" >&5
23164
23165
	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3) were not met:
23166
23167
$PACKAGE_PKG_ERRORS
23168
23169
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23170
installed software in a non-standard prefix.
23171
23172
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23173
and PACKAGE_LIBS to avoid the need to call pkg-config.
23174
See the pkg-config man page for more details.
23175
" >&5
23176
echo "$as_me: error: Package requirements (gtk+-2.0 gdk-2.0 gconf-2.0 libexif sqlite3) were not met:
23177
23178
$PACKAGE_PKG_ERRORS
23179
23180
Consider adjusting the PKG_CONFIG_PATH environment variable if you
23181
installed software in a non-standard prefix.
23182
23183
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23184
and PACKAGE_LIBS to avoid the need to call pkg-config.
23185
See the pkg-config man page for more details.
23186
" >&2;}
23187
   { (exit 1); exit 1; }; }
23188
elif test $pkg_failed = untried; then
23189
	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
23190
is in your PATH or set the PKG_CONFIG environment variable to the full
23191
path to pkg-config.
23192
23193
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23194
and PACKAGE_LIBS to avoid the need to call pkg-config.
23195
See the pkg-config man page for more details.
23196
23197
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23198
See \`config.log' for more details." >&5
23199
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
23200
is in your PATH or set the PKG_CONFIG environment variable to the full
23201
path to pkg-config.
23202
23203
Alternatively, you may set the environment variables PACKAGE_CFLAGS
23204
and PACKAGE_LIBS to avoid the need to call pkg-config.
23205
See the pkg-config man page for more details.
23206
23207
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23208
See \`config.log' for more details." >&2;}
23209
   { (exit 1); exit 1; }; }
23210
else
23211
	PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
23212
	PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
23213
        { echo "$as_me:$LINENO: result: yes" >&5
23214
echo "${ECHO_T}yes" >&6; }
23215
	:
23216
fi
23217
23218
23219
23220
23221
if test "x${prefix}" = "xNONE"; then
23222
23223
cat >>confdefs.h <<_ACEOF
23224
#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
23225
_ACEOF
23226
23227
else
23228
23229
cat >>confdefs.h <<_ACEOF
23230
#define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
23231
_ACEOF
23232
23233
fi
23234
23235
packagesrcdir=`cd $srcdir && pwd`
23236
23237
if test "x${prefix}" = "xNONE"; then
23238
  packageprefix=${ac_default_prefix}
23239
else
23240
  packageprefix=${prefix}
23241
fi
23242
23243
packagedatadir=share
23244
packagedocdir=doc/${PACKAGE}
23245
23246
packagepixmapsdir=${packagedatadir}/pixmaps
23247
packagehelpdir=${packagedatadir}/help
23248
packagemenudir=${packagedatadir}
23249
23250
NO_PREFIX_PACKAGE_DATA_DIR="${packagedatadir}"
23251
23252
PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}"
23253
23254
23255
NO_PREFIX_PACKAGE_DOC_DIR="${packagedocdir}"
23256
23257
PACKAGE_DOC_DIR="${packageprefix}/${packagedocdir}"
23258
23259
23260
NO_PREFIX_PACKAGE_PIXMAPS_DIR="${packagepixmapsdir}"
23261
23262
PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}"
23263
23264
23265
NO_PREFIX_PACKAGE_HELP_DIR="${packagehelpdir}"
23266
23267
PACKAGE_HELP_DIR="${packageprefix}/${packagehelpdir}"
23268
23269
23270
NO_PREFIX_PACKAGE_MENU_DIR="${packagemenudir}"
23271
23272
PACKAGE_MENU_DIR="${packageprefix}/${packagemenudir}"
23273
23274
23275
cat >>confdefs.h <<_ACEOF
23276
#define PACKAGE_DATA_DIR "${packageprefix}/${packagedatadir}"
23277
_ACEOF
23278
23279
cat >>confdefs.h <<_ACEOF
23280
#define PACKAGE_DOC_DIR "${packageprefix}/${packagedocdir}"
23281
_ACEOF
23282
23283
cat >>confdefs.h <<_ACEOF
23284
#define PACKAGE_PIXMAPS_DIR "${packageprefix}/${packagepixmapsdir}"
23285
_ACEOF
23286
23287
cat >>confdefs.h <<_ACEOF
23288
#define PACKAGE_HELP_DIR "${packageprefix}/${packagehelpdir}"
23289
_ACEOF
23290
23291
cat >>confdefs.h <<_ACEOF
23292
#define PACKAGE_MENU_DIR "${packageprefix}/${packagemenudir}"
23293
_ACEOF
23294
23295
cat >>confdefs.h <<_ACEOF
23296
#define PACKAGE_SOURCE_DIR "${packagesrcdir}"
23297
_ACEOF
23298
23299
23300
ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile pixmaps/Makefile data/Makefile"
23301
23302
cat >confcache <<\_ACEOF
23303
# This file is a shell script that caches the results of configure
23304
# tests run on this system so they can be shared between configure
23305
# scripts and configure runs, see configure's option --config-cache.
23306
# It is not useful on other systems.  If it contains results you don't
23307
# want to keep, you may remove or edit it.
23308
#
23309
# config.status only pays attention to the cache file if you give it
23310
# the --recheck option to rerun configure.
23311
#
23312
# `ac_cv_env_foo' variables (set or unset) will be overridden when
23313
# loading this file, other *unset* `ac_cv_foo' will be assigned the
23314
# following values.
23315
23316
_ACEOF
23317
23318
# The following way of writing the cache mishandles newlines in values,
23319
# but we know of no workaround that is simple, portable, and efficient.
23320
# So, we kill variables containing newlines.
23321
# Ultrix sh set writes to stderr and can't be redirected directly,
23322
# and sets the high bit in the cache file unless we assign to the vars.
23323
(
23324
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23325
    eval ac_val=\$$ac_var
23326
    case $ac_val in #(
23327
    *${as_nl}*)
23328
      case $ac_var in #(
23329
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23330
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23331
      esac
23332
      case $ac_var in #(
23333
      _ | IFS | as_nl) ;; #(
23334
      *) $as_unset $ac_var ;;
23335
      esac ;;
23336
    esac
23337
  done
23338
23339
  (set) 2>&1 |
23340
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23341
    *${as_nl}ac_space=\ *)
23342
      # `set' does not quote correctly, so add quotes (double-quote
23343
      # substitution turns \\\\ into \\, and sed turns \\ into \).
23344
      sed -n \
23345
	"s/'/'\\\\''/g;
23346
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23347
      ;; #(
23348
    *)
23349
      # `set' quotes correctly as required by POSIX, so do not add quotes.
23350
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23351
      ;;
23352
    esac |
23353
    sort
23354
) |
23355
  sed '
23356
     /^ac_cv_env_/b end
23357
     t clear
23358
     :clear
23359
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23360
     t end
23361
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23362
     :end' >>confcache
23363
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23364
  if test -w "$cache_file"; then
23365
    test "x$cache_file" != "x/dev/null" &&
23366
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23367
echo "$as_me: updating cache $cache_file" >&6;}
23368
    cat confcache >$cache_file
23369
  else
23370
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23371
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23372
  fi
23373
fi
23374
rm -f confcache
23375
23376
test "x$prefix" = xNONE && prefix=$ac_default_prefix
23377
# Let make expand exec_prefix.
23378
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23379
23380
DEFS=-DHAVE_CONFIG_H
23381
23382
ac_libobjs=
23383
ac_ltlibobjs=
23384
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23385
  # 1. Remove the extension, and $U if already installed.
23386
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23387
  ac_i=`echo "$ac_i" | sed "$ac_script"`
23388
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23389
  #    will be set to the directory where LIBOBJS objects are built.
23390
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23391
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23392
done
23393
LIBOBJS=$ac_libobjs
23394
23395
LTLIBOBJS=$ac_ltlibobjs
23396
23397
23398
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23399
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23400
Usually this means the macro was only invoked conditionally." >&5
23401
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23402
Usually this means the macro was only invoked conditionally." >&2;}
23403
   { (exit 1); exit 1; }; }
23404
fi
23405
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23406
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23407
Usually this means the macro was only invoked conditionally." >&5
23408
echo "$as_me: error: conditional \"AMDEP\" was never defined.
23409
Usually this means the macro was only invoked conditionally." >&2;}
23410
   { (exit 1); exit 1; }; }
23411
fi
23412
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23413
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23414
Usually this means the macro was only invoked conditionally." >&5
23415
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23416
Usually this means the macro was only invoked conditionally." >&2;}
23417
   { (exit 1); exit 1; }; }
23418
fi
23419
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23420
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23421
Usually this means the macro was only invoked conditionally." >&5
23422
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23423
Usually this means the macro was only invoked conditionally." >&2;}
23424
   { (exit 1); exit 1; }; }
23425
fi
23426
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23427
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23428
Usually this means the macro was only invoked conditionally." >&5
23429
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23430
Usually this means the macro was only invoked conditionally." >&2;}
23431
   { (exit 1); exit 1; }; }
23432
fi
23433
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23434
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23435
Usually this means the macro was only invoked conditionally." >&5
23436
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23437
Usually this means the macro was only invoked conditionally." >&2;}
23438
   { (exit 1); exit 1; }; }
23439
fi
23440
23441
: ${CONFIG_STATUS=./config.status}
23442
ac_clean_files_save=$ac_clean_files
23443
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23444
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23445
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23446
cat >$CONFIG_STATUS <<_ACEOF
23447
#! $SHELL
23448
# Generated by $as_me.
23449
# Run this file to recreate the current configuration.
23450
# Compiler output produced by configure, useful for debugging
23451
# configure, is in config.log if it exists.
23452
23453
debug=false
23454
ac_cs_recheck=false
23455
ac_cs_silent=false
23456
SHELL=\${CONFIG_SHELL-$SHELL}
23457
_ACEOF
23458
23459
cat >>$CONFIG_STATUS <<\_ACEOF
23460
## --------------------- ##
23461
## M4sh Initialization.  ##
23462
## --------------------- ##
23463
23464
# Be more Bourne compatible
23465
DUALCASE=1; export DUALCASE # for MKS sh
23466
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23467
  emulate sh
23468
  NULLCMD=:
23469
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23470
  # is contrary to our usage.  Disable this feature.
23471
  alias -g '${1+"$@"}'='"$@"'
23472
  setopt NO_GLOB_SUBST
23473
else
23474
  case `(set -o) 2>/dev/null` in
23475
  *posix*) set -o posix ;;
23476
esac
23477
23478
fi
23479
23480
23481
23482
23483
# PATH needs CR
23484
# Avoid depending upon Character Ranges.
23485
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23486
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23487
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23488
as_cr_digits='0123456789'
23489
as_cr_alnum=$as_cr_Letters$as_cr_digits
23490
23491
# The user is always right.
23492
if test "${PATH_SEPARATOR+set}" != set; then
23493
  echo "#! /bin/sh" >conf$$.sh
23494
  echo  "exit 0"   >>conf$$.sh
23495
  chmod +x conf$$.sh
23496
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23497
    PATH_SEPARATOR=';'
23498
  else
23499
    PATH_SEPARATOR=:
23500
  fi
23501
  rm -f conf$$.sh
23502
fi
23503
23504
# Support unset when possible.
23505
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23506
  as_unset=unset
23507
else
23508
  as_unset=false
23509
fi
23510
23511
23512
# IFS
23513
# We need space, tab and new line, in precisely that order.  Quoting is
23514
# there to prevent editors from complaining about space-tab.
23515
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23516
# splitting by setting IFS to empty value.)
23517
as_nl='
23518
'
23519
IFS=" ""	$as_nl"
23520
23521
# Find who we are.  Look in the path if we contain no directory separator.
23522
case $0 in
23523
  *[\\/]* ) as_myself=$0 ;;
23524
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23525
for as_dir in $PATH
23526
do
23527
  IFS=$as_save_IFS
23528
  test -z "$as_dir" && as_dir=.
23529
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23530
done
23531
IFS=$as_save_IFS
23532
23533
     ;;
23534
esac
23535
# We did not find ourselves, most probably we were run as `sh COMMAND'
23536
# in which case we are not to be found in the path.
23537
if test "x$as_myself" = x; then
23538
  as_myself=$0
23539
fi
23540
if test ! -f "$as_myself"; then
23541
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23542
  { (exit 1); exit 1; }
23543
fi
23544
23545
# Work around bugs in pre-3.0 UWIN ksh.
23546
for as_var in ENV MAIL MAILPATH
23547
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23548
done
23549
PS1='$ '
23550
PS2='> '
23551
PS4='+ '
23552
23553
# NLS nuisances.
23554
for as_var in \
23555
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23556
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23557
  LC_TELEPHONE LC_TIME
23558
do
23559
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23560
    eval $as_var=C; export $as_var
23561
  else
23562
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23563
  fi
23564
done
23565
23566
# Required to use basename.
23567
if expr a : '\(a\)' >/dev/null 2>&1 &&
23568
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23569
  as_expr=expr
23570
else
23571
  as_expr=false
23572
fi
23573
23574
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23575
  as_basename=basename
23576
else
23577
  as_basename=false
23578
fi
23579
23580
23581
# Name of the executable.
23582
as_me=`$as_basename -- "$0" ||
23583
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23584
	 X"$0" : 'X\(//\)$' \| \
23585
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23586
echo X/"$0" |
23587
    sed '/^.*\/\([^/][^/]*\)\/*$/{
23588
	    s//\1/
23589
	    q
23590
	  }
23591
	  /^X\/\(\/\/\)$/{
23592
	    s//\1/
23593
	    q
23594
	  }
23595
	  /^X\/\(\/\).*/{
23596
	    s//\1/
23597
	    q
23598
	  }
23599
	  s/.*/./; q'`
23600
23601
# CDPATH.
23602
$as_unset CDPATH
23603
23604
23605
23606
  as_lineno_1=$LINENO
23607
  as_lineno_2=$LINENO
23608
  test "x$as_lineno_1" != "x$as_lineno_2" &&
23609
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23610
23611
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23612
  # uniformly replaced by the line number.  The first 'sed' inserts a
23613
  # line-number line after each line using $LINENO; the second 'sed'
23614
  # does the real work.  The second script uses 'N' to pair each
23615
  # line-number line with the line containing $LINENO, and appends
23616
  # trailing '-' during substitution so that $LINENO is not a special
23617
  # case at line end.
23618
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23619
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23620
  # E. McMahon (1931-1989) for sed's syntax.  :-)
23621
  sed -n '
23622
    p
23623
    /[$]LINENO/=
23624
  ' <$as_myself |
23625
    sed '
23626
      s/[$]LINENO.*/&-/
23627
      t lineno
23628
      b
23629
      :lineno
23630
      N
23631
      :loop
23632
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23633
      t loop
23634
      s/-\n.*//
23635
    ' >$as_me.lineno &&
23636
  chmod +x "$as_me.lineno" ||
23637
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23638
   { (exit 1); exit 1; }; }
23639
23640
  # Don't try to exec as it changes $[0], causing all sort of problems
23641
  # (the dirname of $[0] is not the place where we might find the
23642
  # original and so on.  Autoconf is especially sensitive to this).
23643
  . "./$as_me.lineno"
23644
  # Exit status is that of the last command.
23645
  exit
23646
}
23647
23648
23649
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23650
  as_dirname=dirname
23651
else
23652
  as_dirname=false
23653
fi
23654
23655
ECHO_C= ECHO_N= ECHO_T=
23656
case `echo -n x` in
23657
-n*)
23658
  case `echo 'x\c'` in
23659
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23660
  *)   ECHO_C='\c';;
23661
  esac;;
23662
*)
23663
  ECHO_N='-n';;
23664
esac
23665
23666
if expr a : '\(a\)' >/dev/null 2>&1 &&
23667
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23668
  as_expr=expr
23669
else
23670
  as_expr=false
23671
fi
23672
23673
rm -f conf$$ conf$$.exe conf$$.file
23674
if test -d conf$$.dir; then
23675
  rm -f conf$$.dir/conf$$.file
23676
else
23677
  rm -f conf$$.dir
23678
  mkdir conf$$.dir
23679
fi
23680
echo >conf$$.file
23681
if ln -s conf$$.file conf$$ 2>/dev/null; then
23682
  as_ln_s='ln -s'
23683
  # ... but there are two gotchas:
23684
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23685
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23686
  # In both cases, we have to default to `cp -p'.
23687
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23688
    as_ln_s='cp -p'
23689
elif ln conf$$.file conf$$ 2>/dev/null; then
23690
  as_ln_s=ln
23691
else
23692
  as_ln_s='cp -p'
23693
fi
23694
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23695
rmdir conf$$.dir 2>/dev/null
23696
23697
if mkdir -p . 2>/dev/null; then
23698
  as_mkdir_p=:
23699
else
23700
  test -d ./-p && rmdir ./-p
23701
  as_mkdir_p=false
23702
fi
23703
23704
if test -x / >/dev/null 2>&1; then
23705
  as_test_x='test -x'
23706
else
23707
  if ls -dL / >/dev/null 2>&1; then
23708
    as_ls_L_option=L
23709
  else
23710
    as_ls_L_option=
23711
  fi
23712
  as_test_x='
23713
    eval sh -c '\''
23714
      if test -d "$1"; then
23715
        test -d "$1/.";
23716
      else
23717
	case $1 in
23718
        -*)set "./$1";;
23719
	esac;
23720
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23721
	???[sx]*):;;*)false;;esac;fi
23722
    '\'' sh
23723
  '
23724
fi
23725
as_executable_p=$as_test_x
23726
23727
# Sed expression to map a string onto a valid CPP name.
23728
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23729
23730
# Sed expression to map a string onto a valid variable name.
23731
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23732
23733
23734
exec 6>&1
23735
23736
# Save the log message, to keep $[0] and so on meaningful, and to
23737
# report actual input values of CONFIG_FILES etc. instead of their
23738
# values after options handling.
23739
ac_log="
23740
This file was extended by $as_me, which was
23741
generated by GNU Autoconf 2.61.  Invocation command line was
23742
23743
  CONFIG_FILES    = $CONFIG_FILES
23744
  CONFIG_HEADERS  = $CONFIG_HEADERS
23745
  CONFIG_LINKS    = $CONFIG_LINKS
23746
  CONFIG_COMMANDS = $CONFIG_COMMANDS
23747
  $ $0 $@
23748
23749
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23750
"
23751
23752
_ACEOF
23753
23754
cat >>$CONFIG_STATUS <<_ACEOF
23755
# Files that config.status was made for.
23756
config_files="$ac_config_files"
23757
config_headers="$ac_config_headers"
23758
config_commands="$ac_config_commands"
23759
23760
_ACEOF
23761
23762
cat >>$CONFIG_STATUS <<\_ACEOF
23763
ac_cs_usage="\
23764
\`$as_me' instantiates files from templates according to the
23765
current configuration.
23766
23767
Usage: $0 [OPTIONS] [FILE]...
23768
23769
  -h, --help       print this help, then exit
23770
  -V, --version    print version number and configuration settings, then exit
23771
  -q, --quiet      do not print progress messages
23772
  -d, --debug      don't remove temporary files
23773
      --recheck    update $as_me by reconfiguring in the same conditions
23774
  --file=FILE[:TEMPLATE]
23775
		   instantiate the configuration file FILE
23776
  --header=FILE[:TEMPLATE]
23777
		   instantiate the configuration header FILE
23778
23779
Configuration files:
23780
$config_files
23781
23782
Configuration headers:
23783
$config_headers
23784
23785
Configuration commands:
23786
$config_commands
23787
23788
Report bugs to <bug-autoconf@gnu.org>."
23789
23790
_ACEOF
23791
cat >>$CONFIG_STATUS <<_ACEOF
23792
ac_cs_version="\\
23793
config.status
23794
configured by $0, generated by GNU Autoconf 2.61,
23795
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23796
23797
Copyright (C) 2006 Free Software Foundation, Inc.
23798
This config.status script is free software; the Free Software Foundation
23799
gives unlimited permission to copy, distribute and modify it."
23800
23801
ac_pwd='$ac_pwd'
23802
srcdir='$srcdir'
23803
INSTALL='$INSTALL'
23804
MKDIR_P='$MKDIR_P'
23805
_ACEOF
23806
23807
cat >>$CONFIG_STATUS <<\_ACEOF
23808
# If no file are specified by the user, then we need to provide default
23809
# value.  By we need to know if files were specified by the user.
23810
ac_need_defaults=:
23811
while test $# != 0
23812
do
23813
  case $1 in
23814
  --*=*)
23815
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23816
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23817
    ac_shift=:
23818
    ;;
23819
  *)
23820
    ac_option=$1
23821
    ac_optarg=$2
23822
    ac_shift=shift
23823
    ;;
23824
  esac
23825
23826
  case $ac_option in
23827
  # Handling of the options.
23828
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23829
    ac_cs_recheck=: ;;
23830
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23831
    echo "$ac_cs_version"; exit ;;
23832
  --debug | --debu | --deb | --de | --d | -d )
23833
    debug=: ;;
23834
  --file | --fil | --fi | --f )
23835
    $ac_shift
23836
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23837
    ac_need_defaults=false;;
23838
  --header | --heade | --head | --hea )
23839
    $ac_shift
23840
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23841
    ac_need_defaults=false;;
23842
  --he | --h)
23843
    # Conflict between --help and --header
23844
    { echo "$as_me: error: ambiguous option: $1
23845
Try \`$0 --help' for more information." >&2
23846
   { (exit 1); exit 1; }; };;
23847
  --help | --hel | -h )
23848
    echo "$ac_cs_usage"; exit ;;
23849
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23850
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23851
    ac_cs_silent=: ;;
23852
23853
  # This is an error.
23854
  -*) { echo "$as_me: error: unrecognized option: $1
23855
Try \`$0 --help' for more information." >&2
23856
   { (exit 1); exit 1; }; } ;;
23857
23858
  *) ac_config_targets="$ac_config_targets $1"
23859
     ac_need_defaults=false ;;
23860
23861
  esac
23862
  shift
23863
done
23864
23865
ac_configure_extra_args=
23866
23867
if $ac_cs_silent; then
23868
  exec 6>/dev/null
23869
  ac_configure_extra_args="$ac_configure_extra_args --silent"
23870
fi
23871
23872
_ACEOF
23873
cat >>$CONFIG_STATUS <<_ACEOF
23874
if \$ac_cs_recheck; then
23875
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23876
  CONFIG_SHELL=$SHELL
23877
  export CONFIG_SHELL
23878
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23879
fi
23880
23881
_ACEOF
23882
cat >>$CONFIG_STATUS <<\_ACEOF
23883
exec 5>>config.log
23884
{
23885
  echo
23886
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23887
## Running $as_me. ##
23888
_ASBOX
23889
  echo "$ac_log"
23890
} >&5
23891
23892
_ACEOF
23893
cat >>$CONFIG_STATUS <<_ACEOF
23894
#
23895
# INIT-COMMANDS
23896
#
23897
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23898
23899
23900
_ACEOF
23901
23902
cat >>$CONFIG_STATUS <<\_ACEOF
23903
23904
# Handling of arguments.
23905
for ac_config_target in $ac_config_targets
23906
do
23907
  case $ac_config_target in
23908
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23909
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23910
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23911
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23912
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23913
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23914
    "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
23915
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23916
23917
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23918
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23919
   { (exit 1); exit 1; }; };;
23920
  esac
23921
done
23922
23923
23924
# If the user did not use the arguments to specify the items to instantiate,
23925
# then the envvar interface is used.  Set only those that are not.
23926
# We use the long form for the default assignment because of an extremely
23927
# bizarre bug on SunOS 4.1.3.
23928
if $ac_need_defaults; then
23929
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23930
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23931
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23932
fi
23933
23934
# Have a temporary directory for convenience.  Make it in the build tree
23935
# simply because there is no reason against having it here, and in addition,
23936
# creating and moving files from /tmp can sometimes cause problems.
23937
# Hook for its removal unless debugging.
23938
# Note that there is a small window in which the directory will not be cleaned:
23939
# after its creation but before its name has been assigned to `$tmp'.
23940
$debug ||
23941
{
23942
  tmp=
23943
  trap 'exit_status=$?
23944
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23945
' 0
23946
  trap '{ (exit 1); exit 1; }' 1 2 13 15
23947
}
23948
# Create a (secure) tmp directory for tmp files.
23949
23950
{
23951
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23952
  test -n "$tmp" && test -d "$tmp"
23953
}  ||
23954
{
23955
  tmp=./conf$$-$RANDOM
23956
  (umask 077 && mkdir "$tmp")
23957
} ||
23958
{
23959
   echo "$me: cannot create a temporary directory in ." >&2
23960
   { (exit 1); exit 1; }
23961
}
23962
23963
#
23964
# Set up the sed scripts for CONFIG_FILES section.
23965
#
23966
23967
# No need to generate the scripts if there are no CONFIG_FILES.
23968
# This happens for instance when ./config.status config.h
23969
if test -n "$CONFIG_FILES"; then
23970
23971
_ACEOF
23972
23973
23974
23975
ac_delim='%!_!# '
23976
for ac_last_try in false false false false false :; do
23977
  cat >conf$$subs.sed <<_ACEOF
23978
SHELL!$SHELL$ac_delim
23979
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23980
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23981
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23982
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23983
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23984
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23985
exec_prefix!$exec_prefix$ac_delim
23986
prefix!$prefix$ac_delim
23987
program_transform_name!$program_transform_name$ac_delim
23988
bindir!$bindir$ac_delim
23989
sbindir!$sbindir$ac_delim
23990
libexecdir!$libexecdir$ac_delim
23991
datarootdir!$datarootdir$ac_delim
23992
datadir!$datadir$ac_delim
23993
sysconfdir!$sysconfdir$ac_delim
23994
sharedstatedir!$sharedstatedir$ac_delim
23995
localstatedir!$localstatedir$ac_delim
23996
includedir!$includedir$ac_delim
23997
oldincludedir!$oldincludedir$ac_delim
23998
docdir!$docdir$ac_delim
23999
infodir!$infodir$ac_delim
24000
htmldir!$htmldir$ac_delim
24001
dvidir!$dvidir$ac_delim
24002
pdfdir!$pdfdir$ac_delim
24003
psdir!$psdir$ac_delim
24004
libdir!$libdir$ac_delim
24005
localedir!$localedir$ac_delim
24006
mandir!$mandir$ac_delim
24007
DEFS!$DEFS$ac_delim
24008
ECHO_C!$ECHO_C$ac_delim
24009
ECHO_N!$ECHO_N$ac_delim
24010
ECHO_T!$ECHO_T$ac_delim
24011
LIBS!$LIBS$ac_delim
24012
build_alias!$build_alias$ac_delim
24013
host_alias!$host_alias$ac_delim
24014
target_alias!$target_alias$ac_delim
24015
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24016
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24017
INSTALL_DATA!$INSTALL_DATA$ac_delim
24018
am__isrc!$am__isrc$ac_delim
24019
CYGPATH_W!$CYGPATH_W$ac_delim
24020
PACKAGE!$PACKAGE$ac_delim
24021
VERSION!$VERSION$ac_delim
24022
ACLOCAL!$ACLOCAL$ac_delim
24023
AUTOCONF!$AUTOCONF$ac_delim
24024
AUTOMAKE!$AUTOMAKE$ac_delim
24025
AUTOHEADER!$AUTOHEADER$ac_delim
24026
MAKEINFO!$MAKEINFO$ac_delim
24027
install_sh!$install_sh$ac_delim
24028
STRIP!$STRIP$ac_delim
24029
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24030
mkdir_p!$mkdir_p$ac_delim
24031
AWK!$AWK$ac_delim
24032
SET_MAKE!$SET_MAKE$ac_delim
24033
am__leading_dot!$am__leading_dot$ac_delim
24034
AMTAR!$AMTAR$ac_delim
24035
am__tar!$am__tar$ac_delim
24036
am__untar!$am__untar$ac_delim
24037
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24038
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24039
MAINT!$MAINT$ac_delim
24040
CC!$CC$ac_delim
24041
CFLAGS!$CFLAGS$ac_delim
24042
LDFLAGS!$LDFLAGS$ac_delim
24043
CPPFLAGS!$CPPFLAGS$ac_delim
24044
ac_ct_CC!$ac_ct_CC$ac_delim
24045
EXEEXT!$EXEEXT$ac_delim
24046
OBJEXT!$OBJEXT$ac_delim
24047
DEPDIR!$DEPDIR$ac_delim
24048
am__include!$am__include$ac_delim
24049
am__quote!$am__quote$ac_delim
24050
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24051
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24052
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24053
CCDEPMODE!$CCDEPMODE$ac_delim
24054
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24055
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24056
CPP!$CPP$ac_delim
24057
GREP!$GREP$ac_delim
24058
EGREP!$EGREP$ac_delim
24059
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
24060
USE_NLS!$USE_NLS$ac_delim
24061
MSGFMT!$MSGFMT$ac_delim
24062
MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
24063
GMSGFMT!$GMSGFMT$ac_delim
24064
XGETTEXT!$XGETTEXT$ac_delim
24065
CATALOGS!$CATALOGS$ac_delim
24066
CATOBJEXT!$CATOBJEXT$ac_delim
24067
DATADIRNAME!$DATADIRNAME$ac_delim
24068
GMOFILES!$GMOFILES$ac_delim
24069
INSTOBJEXT!$INSTOBJEXT$ac_delim
24070
INTLLIBS!$INTLLIBS$ac_delim
24071
PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
24072
PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
24073
POFILES!$POFILES$ac_delim
24074
POSUB!$POSUB$ac_delim
24075
_ACEOF
24076
24077
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24078
    break
24079
  elif $ac_last_try; then
24080
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24081
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24082
   { (exit 1); exit 1; }; }
24083
  else
24084
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24085
  fi
24086
done
24087
24088
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24089
if test -n "$ac_eof"; then
24090
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24091
  ac_eof=`expr $ac_eof + 1`
24092
fi
24093
24094
cat >>$CONFIG_STATUS <<_ACEOF
24095
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24096
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24097
_ACEOF
24098
sed '
24099
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24100
s/^/s,@/; s/!/@,|#_!!_#|/
24101
:n
24102
t n
24103
s/'"$ac_delim"'$/,g/; t
24104
s/$/\\/; p
24105
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24106
' >>$CONFIG_STATUS <conf$$subs.sed
24107
rm -f conf$$subs.sed
24108
cat >>$CONFIG_STATUS <<_ACEOF
24109
CEOF$ac_eof
24110
_ACEOF
24111
24112
24113
ac_delim='%!_!# '
24114
for ac_last_try in false false false false false :; do
24115
  cat >conf$$subs.sed <<_ACEOF
24116
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
24117
build!$build$ac_delim
24118
build_cpu!$build_cpu$ac_delim
24119
build_vendor!$build_vendor$ac_delim
24120
build_os!$build_os$ac_delim
24121
host!$host$ac_delim
24122
host_cpu!$host_cpu$ac_delim
24123
host_vendor!$host_vendor$ac_delim
24124
host_os!$host_os$ac_delim
24125
SED!$SED$ac_delim
24126
LN_S!$LN_S$ac_delim
24127
ECHO!$ECHO$ac_delim
24128
AR!$AR$ac_delim
24129
RANLIB!$RANLIB$ac_delim
24130
DSYMUTIL!$DSYMUTIL$ac_delim
24131
NMEDIT!$NMEDIT$ac_delim
24132
CXX!$CXX$ac_delim
24133
CXXFLAGS!$CXXFLAGS$ac_delim
24134
ac_ct_CXX!$ac_ct_CXX$ac_delim
24135
CXXDEPMODE!$CXXDEPMODE$ac_delim
24136
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24137
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24138
CXXCPP!$CXXCPP$ac_delim
24139
F77!$F77$ac_delim
24140
FFLAGS!$FFLAGS$ac_delim
24141
ac_ct_F77!$ac_ct_F77$ac_delim
24142
LIBTOOL!$LIBTOOL$ac_delim
24143
PKG_CONFIG!$PKG_CONFIG$ac_delim
24144
PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
24145
PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
24146
NO_PREFIX_PACKAGE_DATA_DIR!$NO_PREFIX_PACKAGE_DATA_DIR$ac_delim
24147
PACKAGE_DATA_DIR!$PACKAGE_DATA_DIR$ac_delim
24148
NO_PREFIX_PACKAGE_DOC_DIR!$NO_PREFIX_PACKAGE_DOC_DIR$ac_delim
24149
PACKAGE_DOC_DIR!$PACKAGE_DOC_DIR$ac_delim
24150
NO_PREFIX_PACKAGE_PIXMAPS_DIR!$NO_PREFIX_PACKAGE_PIXMAPS_DIR$ac_delim
24151
PACKAGE_PIXMAPS_DIR!$PACKAGE_PIXMAPS_DIR$ac_delim
24152
NO_PREFIX_PACKAGE_HELP_DIR!$NO_PREFIX_PACKAGE_HELP_DIR$ac_delim
24153
PACKAGE_HELP_DIR!$PACKAGE_HELP_DIR$ac_delim
24154
NO_PREFIX_PACKAGE_MENU_DIR!$NO_PREFIX_PACKAGE_MENU_DIR$ac_delim
24155
PACKAGE_MENU_DIR!$PACKAGE_MENU_DIR$ac_delim
24156
LIBOBJS!$LIBOBJS$ac_delim
24157
LTLIBOBJS!$LTLIBOBJS$ac_delim
24158
_ACEOF
24159
24160
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
24161
    break
24162
  elif $ac_last_try; then
24163
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24164
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24165
   { (exit 1); exit 1; }; }
24166
  else
24167
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24168
  fi
24169
done
24170
24171
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24172
if test -n "$ac_eof"; then
24173
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24174
  ac_eof=`expr $ac_eof + 1`
24175
fi
24176
24177
cat >>$CONFIG_STATUS <<_ACEOF
24178
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24179
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24180
_ACEOF
24181
sed '
24182
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24183
s/^/s,@/; s/!/@,|#_!!_#|/
24184
:n
24185
t n
24186
s/'"$ac_delim"'$/,g/; t
24187
s/$/\\/; p
24188
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24189
' >>$CONFIG_STATUS <conf$$subs.sed
24190
rm -f conf$$subs.sed
24191
cat >>$CONFIG_STATUS <<_ACEOF
24192
:end
24193
s/|#_!!_#|//g
24194
CEOF$ac_eof
24195
_ACEOF
24196
24197
24198
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24199
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24200
# trailing colons and then remove the whole line if VPATH becomes empty
24201
# (actually we leave an empty line to preserve line numbers).
24202
if test "x$srcdir" = x.; then
24203
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24204
s/:*\$(srcdir):*/:/
24205
s/:*\${srcdir}:*/:/
24206
s/:*@srcdir@:*/:/
24207
s/^\([^=]*=[	 ]*\):*/\1/
24208
s/:*$//
24209
s/^[^=]*=[	 ]*$//
24210
}'
24211
fi
24212
24213
cat >>$CONFIG_STATUS <<\_ACEOF
24214
fi # test -n "$CONFIG_FILES"
24215
24216
24217
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24218
do
24219
  case $ac_tag in
24220
  :[FHLC]) ac_mode=$ac_tag; continue;;
24221
  esac
24222
  case $ac_mode$ac_tag in
24223
  :[FHL]*:*);;
24224
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24225
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24226
   { (exit 1); exit 1; }; };;
24227
  :[FH]-) ac_tag=-:-;;
24228
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24229
  esac
24230
  ac_save_IFS=$IFS
24231
  IFS=:
24232
  set x $ac_tag
24233
  IFS=$ac_save_IFS
24234
  shift
24235
  ac_file=$1
24236
  shift
24237
24238
  case $ac_mode in
24239
  :L) ac_source=$1;;
24240
  :[FH])
24241
    ac_file_inputs=
24242
    for ac_f
24243
    do
24244
      case $ac_f in
24245
      -) ac_f="$tmp/stdin";;
24246
      *) # Look for the file first in the build tree, then in the source tree
24247
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24248
	 # because $ac_f cannot contain `:'.
24249
	 test -f "$ac_f" ||
24250
	   case $ac_f in
24251
	   [\\/$]*) false;;
24252
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24253
	   esac ||
24254
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24255
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24256
   { (exit 1); exit 1; }; };;
24257
      esac
24258
      ac_file_inputs="$ac_file_inputs $ac_f"
24259
    done
24260
24261
    # Let's still pretend it is `configure' which instantiates (i.e., don't
24262
    # use $as_me), people would be surprised to read:
24263
    #    /* config.h.  Generated by config.status.  */
24264
    configure_input="Generated from "`IFS=:
24265
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24266
    if test x"$ac_file" != x-; then
24267
      configure_input="$ac_file.  $configure_input"
24268
      { echo "$as_me:$LINENO: creating $ac_file" >&5
24269
echo "$as_me: creating $ac_file" >&6;}
24270
    fi
24271
24272
    case $ac_tag in
24273
    *:-:* | *:-) cat >"$tmp/stdin";;
24274
    esac
24275
    ;;
24276
  esac
24277
24278
  ac_dir=`$as_dirname -- "$ac_file" ||
24279
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24280
	 X"$ac_file" : 'X\(//\)[^/]' \| \
24281
	 X"$ac_file" : 'X\(//\)$' \| \
24282
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24283
echo X"$ac_file" |
24284
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24285
	    s//\1/
24286
	    q
24287
	  }
24288
	  /^X\(\/\/\)[^/].*/{
24289
	    s//\1/
24290
	    q
24291
	  }
24292
	  /^X\(\/\/\)$/{
24293
	    s//\1/
24294
	    q
24295
	  }
24296
	  /^X\(\/\).*/{
24297
	    s//\1/
24298
	    q
24299
	  }
24300
	  s/.*/./; q'`
24301
  { as_dir="$ac_dir"
24302
  case $as_dir in #(
24303
  -*) as_dir=./$as_dir;;
24304
  esac
24305
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24306
    as_dirs=
24307
    while :; do
24308
      case $as_dir in #(
24309
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24310
      *) as_qdir=$as_dir;;
24311
      esac
24312
      as_dirs="'$as_qdir' $as_dirs"
24313
      as_dir=`$as_dirname -- "$as_dir" ||
24314
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24315
	 X"$as_dir" : 'X\(//\)[^/]' \| \
24316
	 X"$as_dir" : 'X\(//\)$' \| \
24317
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24318
echo X"$as_dir" |
24319
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24320
	    s//\1/
24321
	    q
24322
	  }
24323
	  /^X\(\/\/\)[^/].*/{
24324
	    s//\1/
24325
	    q
24326
	  }
24327
	  /^X\(\/\/\)$/{
24328
	    s//\1/
24329
	    q
24330
	  }
24331
	  /^X\(\/\).*/{
24332
	    s//\1/
24333
	    q
24334
	  }
24335
	  s/.*/./; q'`
24336
      test -d "$as_dir" && break
24337
    done
24338
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24339
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24340
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24341
   { (exit 1); exit 1; }; }; }
24342
  ac_builddir=.
24343
24344
case "$ac_dir" in
24345
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24346
*)
24347
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24348
  # A ".." for each directory in $ac_dir_suffix.
24349
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24350
  case $ac_top_builddir_sub in
24351
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24352
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24353
  esac ;;
24354
esac
24355
ac_abs_top_builddir=$ac_pwd
24356
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24357
# for backward compatibility:
24358
ac_top_builddir=$ac_top_build_prefix
24359
24360
case $srcdir in
24361
  .)  # We are building in place.
24362
    ac_srcdir=.
24363
    ac_top_srcdir=$ac_top_builddir_sub
24364
    ac_abs_top_srcdir=$ac_pwd ;;
24365
  [\\/]* | ?:[\\/]* )  # Absolute name.
24366
    ac_srcdir=$srcdir$ac_dir_suffix;
24367
    ac_top_srcdir=$srcdir
24368
    ac_abs_top_srcdir=$srcdir ;;
24369
  *) # Relative name.
24370
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24371
    ac_top_srcdir=$ac_top_build_prefix$srcdir
24372
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24373
esac
24374
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24375
24376
24377
  case $ac_mode in
24378
  :F)
24379
  #
24380
  # CONFIG_FILE
24381
  #
24382
24383
  case $INSTALL in
24384
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24385
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24386
  esac
24387
  ac_MKDIR_P=$MKDIR_P
24388
  case $MKDIR_P in
24389
  [\\/$]* | ?:[\\/]* ) ;;
24390
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24391
  esac
24392
_ACEOF
24393
24394
cat >>$CONFIG_STATUS <<\_ACEOF
24395
# If the template does not know about datarootdir, expand it.
24396
# FIXME: This hack should be removed a few years after 2.60.
24397
ac_datarootdir_hack=; ac_datarootdir_seen=
24398
24399
case `sed -n '/datarootdir/ {
24400
  p
24401
  q
24402
}
24403
/@datadir@/p
24404
/@docdir@/p
24405
/@infodir@/p
24406
/@localedir@/p
24407
/@mandir@/p
24408
' $ac_file_inputs` in
24409
*datarootdir*) ac_datarootdir_seen=yes;;
24410
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24411
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24412
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24413
_ACEOF
24414
cat >>$CONFIG_STATUS <<_ACEOF
24415
  ac_datarootdir_hack='
24416
  s&@datadir@&$datadir&g
24417
  s&@docdir@&$docdir&g
24418
  s&@infodir@&$infodir&g
24419
  s&@localedir@&$localedir&g
24420
  s&@mandir@&$mandir&g
24421
    s&\\\${datarootdir}&$datarootdir&g' ;;
24422
esac
24423
_ACEOF
24424
24425
# Neutralize VPATH when `$srcdir' = `.'.
24426
# Shell code in configure.ac might set extrasub.
24427
# FIXME: do we really want to maintain this feature?
24428
cat >>$CONFIG_STATUS <<_ACEOF
24429
  sed "$ac_vpsub
24430
$extrasub
24431
_ACEOF
24432
cat >>$CONFIG_STATUS <<\_ACEOF
24433
:t
24434
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24435
s&@configure_input@&$configure_input&;t t
24436
s&@top_builddir@&$ac_top_builddir_sub&;t t
24437
s&@srcdir@&$ac_srcdir&;t t
24438
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24439
s&@top_srcdir@&$ac_top_srcdir&;t t
24440
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24441
s&@builddir@&$ac_builddir&;t t
24442
s&@abs_builddir@&$ac_abs_builddir&;t t
24443
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24444
s&@INSTALL@&$ac_INSTALL&;t t
24445
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24446
$ac_datarootdir_hack
24447
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24448
24449
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24450
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24451
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24452
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24453
which seems to be undefined.  Please make sure it is defined." >&5
24454
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24455
which seems to be undefined.  Please make sure it is defined." >&2;}
24456
24457
  rm -f "$tmp/stdin"
24458
  case $ac_file in
24459
  -) cat "$tmp/out"; rm -f "$tmp/out";;
24460
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24461
  esac
24462
 ;;
24463
  :H)
24464
  #
24465
  # CONFIG_HEADER
24466
  #
24467
_ACEOF
24468
24469
# Transform confdefs.h into a sed script `conftest.defines', that
24470
# substitutes the proper values into config.h.in to produce config.h.
24471
rm -f conftest.defines conftest.tail
24472
# First, append a space to every undef/define line, to ease matching.
24473
echo 's/$/ /' >conftest.defines
24474
# Then, protect against being on the right side of a sed subst, or in
24475
# an unquoted here document, in config.status.  If some macros were
24476
# called several times there might be several #defines for the same
24477
# symbol, which is useless.  But do not sort them, since the last
24478
# AC_DEFINE must be honored.
24479
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24480
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24481
# NAME is the cpp macro being defined, VALUE is the value it is being given.
24482
# PARAMS is the parameter list in the macro definition--in most cases, it's
24483
# just an empty string.
24484
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24485
ac_dB='\\)[	 (].*,\\1define\\2'
24486
ac_dC=' '
24487
ac_dD=' ,'
24488
24489
uniq confdefs.h |
24490
  sed -n '
24491
	t rset
24492
	:rset
24493
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24494
	t ok
24495
	d
24496
	:ok
24497
	s/[\\&,]/\\&/g
24498
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24499
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24500
  ' >>conftest.defines
24501
24502
# Remove the space that was appended to ease matching.
24503
# Then replace #undef with comments.  This is necessary, for
24504
# example, in the case of _POSIX_SOURCE, which is predefined and required
24505
# on some systems where configure will not decide to define it.
24506
# (The regexp can be short, since the line contains either #define or #undef.)
24507
echo 's/ $//
24508
s,^[	 #]*u.*,/* & */,' >>conftest.defines
24509
24510
# Break up conftest.defines:
24511
ac_max_sed_lines=50
24512
24513
# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24514
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24515
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24516
# et cetera.
24517
ac_in='$ac_file_inputs'
24518
ac_out='"$tmp/out1"'
24519
ac_nxt='"$tmp/out2"'
24520
24521
while :
24522
do
24523
  # Write a here document:
24524
    cat >>$CONFIG_STATUS <<_ACEOF
24525
    # First, check the format of the line:
24526
    cat >"\$tmp/defines.sed" <<\\CEOF
24527
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24528
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24529
b
24530
:def
24531
_ACEOF
24532
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24533
  echo 'CEOF
24534
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24535
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24536
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24537
  grep . conftest.tail >/dev/null || break
24538
  rm -f conftest.defines
24539
  mv conftest.tail conftest.defines
24540
done
24541
rm -f conftest.defines conftest.tail
24542
24543
echo "ac_result=$ac_in" >>$CONFIG_STATUS
24544
cat >>$CONFIG_STATUS <<\_ACEOF
24545
  if test x"$ac_file" != x-; then
24546
    echo "/* $configure_input  */" >"$tmp/config.h"
24547
    cat "$ac_result" >>"$tmp/config.h"
24548
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24549
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24550
echo "$as_me: $ac_file is unchanged" >&6;}
24551
    else
24552
      rm -f $ac_file
24553
      mv "$tmp/config.h" $ac_file
24554
    fi
24555
  else
24556
    echo "/* $configure_input  */"
24557
    cat "$ac_result"
24558
  fi
24559
  rm -f "$tmp/out12"
24560
# Compute $ac_file's index in $config_headers.
24561
_am_arg=$ac_file
24562
_am_stamp_count=1
24563
for _am_header in $config_headers :; do
24564
  case $_am_header in
24565
    $_am_arg | $_am_arg:* )
24566
      break ;;
24567
    * )
24568
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24569
  esac
24570
done
24571
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24572
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24573
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24574
	 X"$_am_arg" : 'X\(//\)$' \| \
24575
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24576
echo X"$_am_arg" |
24577
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24578
	    s//\1/
24579
	    q
24580
	  }
24581
	  /^X\(\/\/\)[^/].*/{
24582
	    s//\1/
24583
	    q
24584
	  }
24585
	  /^X\(\/\/\)$/{
24586
	    s//\1/
24587
	    q
24588
	  }
24589
	  /^X\(\/\).*/{
24590
	    s//\1/
24591
	    q
24592
	  }
24593
	  s/.*/./; q'`/stamp-h$_am_stamp_count
24594
 ;;
24595
24596
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24597
echo "$as_me: executing $ac_file commands" >&6;}
24598
 ;;
24599
  esac
24600
24601
24602
  case $ac_file$ac_mode in
24603
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24604
  # Strip MF so we end up with the name of the file.
24605
  mf=`echo "$mf" | sed -e 's/:.*$//'`
24606
  # Check whether this is an Automake generated Makefile or not.
24607
  # We used to match only the files named `Makefile.in', but
24608
  # some people rename them; so instead we look at the file content.
24609
  # Grep'ing the first line is not enough: some people post-process
24610
  # each Makefile.in and add a new line on top of each file to say so.
24611
  # Grep'ing the whole file is not good either: AIX grep has a line
24612
  # limit of 2048, but all sed's we know have understand at least 4000.
24613
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24614
    dirpart=`$as_dirname -- "$mf" ||
24615
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24616
	 X"$mf" : 'X\(//\)[^/]' \| \
24617
	 X"$mf" : 'X\(//\)$' \| \
24618
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24619
echo X"$mf" |
24620
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24621
	    s//\1/
24622
	    q
24623
	  }
24624
	  /^X\(\/\/\)[^/].*/{
24625
	    s//\1/
24626
	    q
24627
	  }
24628
	  /^X\(\/\/\)$/{
24629
	    s//\1/
24630
	    q
24631
	  }
24632
	  /^X\(\/\).*/{
24633
	    s//\1/
24634
	    q
24635
	  }
24636
	  s/.*/./; q'`
24637
  else
24638
    continue
24639
  fi
24640
  # Extract the definition of DEPDIR, am__include, and am__quote
24641
  # from the Makefile without running `make'.
24642
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24643
  test -z "$DEPDIR" && continue
24644
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24645
  test -z "am__include" && continue
24646
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24647
  # When using ansi2knr, U may be empty or an underscore; expand it
24648
  U=`sed -n 's/^U = //p' < "$mf"`
24649
  # Find all dependency output files, they are included files with
24650
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24651
  # simplest approach to changing $(DEPDIR) to its actual value in the
24652
  # expansion.
24653
  for file in `sed -n "
24654
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24655
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24656
    # Make sure the directory exists.
24657
    test -f "$dirpart/$file" && continue
24658
    fdir=`$as_dirname -- "$file" ||
24659
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24660
	 X"$file" : 'X\(//\)[^/]' \| \
24661
	 X"$file" : 'X\(//\)$' \| \
24662
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24663
echo X"$file" |
24664
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24665
	    s//\1/
24666
	    q
24667
	  }
24668
	  /^X\(\/\/\)[^/].*/{
24669
	    s//\1/
24670
	    q
24671
	  }
24672
	  /^X\(\/\/\)$/{
24673
	    s//\1/
24674
	    q
24675
	  }
24676
	  /^X\(\/\).*/{
24677
	    s//\1/
24678
	    q
24679
	  }
24680
	  s/.*/./; q'`
24681
    { as_dir=$dirpart/$fdir
24682
  case $as_dir in #(
24683
  -*) as_dir=./$as_dir;;
24684
  esac
24685
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24686
    as_dirs=
24687
    while :; do
24688
      case $as_dir in #(
24689
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24690
      *) as_qdir=$as_dir;;
24691
      esac
24692
      as_dirs="'$as_qdir' $as_dirs"
24693
      as_dir=`$as_dirname -- "$as_dir" ||
24694
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24695
	 X"$as_dir" : 'X\(//\)[^/]' \| \
24696
	 X"$as_dir" : 'X\(//\)$' \| \
24697
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24698
echo X"$as_dir" |
24699
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24700
	    s//\1/
24701
	    q
24702
	  }
24703
	  /^X\(\/\/\)[^/].*/{
24704
	    s//\1/
24705
	    q
24706
	  }
24707
	  /^X\(\/\/\)$/{
24708
	    s//\1/
24709
	    q
24710
	  }
24711
	  /^X\(\/\).*/{
24712
	    s//\1/
24713
	    q
24714
	  }
24715
	  s/.*/./; q'`
24716
      test -d "$as_dir" && break
24717
    done
24718
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24719
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24720
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24721
   { (exit 1); exit 1; }; }; }
24722
    # echo "creating $dirpart/$file"
24723
    echo '# dummy' > "$dirpart/$file"
24724
  done
24725
done
24726
 ;;
24727
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
24728
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24729
      esac ;;
24730
24731
  esac
24732
done # for ac_tag
24733
24734
24735
{ (exit 0); exit 0; }
24736
_ACEOF
24737
chmod +x $CONFIG_STATUS
24738
ac_clean_files=$ac_clean_files_save
24739
24740
24741
# configure is writing to config.log, and then calls config.status.
24742
# config.status does its own redirection, appending to config.log.
24743
# Unfortunately, on DOS this fails, as config.log is still kept open
24744
# by configure, so config.status won't be able to write to it; its
24745
# output is simply discarded.  So we exec the FD to /dev/null,
24746
# effectively closing config.log, so it can be properly (re)opened and
24747
# appended to by config.status.  When coming back to configure, we
24748
# need to make the FD available again.
24749
if test "$no_create" != yes; then
24750
  ac_cs_success=:
24751
  ac_config_status_args=
24752
  test "$silent" = yes &&
24753
    ac_config_status_args="$ac_config_status_args --quiet"
24754
  exec 5>/dev/null
24755
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24756
  exec 5>>config.log
24757
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24758
  # would make configure fail if this is the last instruction.
24759
  $ac_cs_success || { (exit 1); exit 1; }
24760
fi
24761
24762